mirror of
https://github.com/floccusaddon/floccus.git
synced 2026-04-25 22:26:06 +03:00
[PR #494] [CLOSED] Cookie hack #1599
Labels
No labels
browser-specific
bug
correctness issues
enhancement
feature: Google Drive
feature: Linkwarden
feature: git
feature: nextcloud-bookmarks
feature: tabs
feature: webdav
help wanted
native-app
priority: high
priority: low
priority: medium
pull-request
question
question
stale
upstream
waiting for more information
wontfix
🙁 Not following issue template
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/floccus#1599
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/floccusaddon/floccus/pull/494
Author: @pogoba
Created: 4/13/2020
Status: ❌ Closed
Base:
develop← Head:cookie-hack📝 Commits (10+)
0b626afadd demo of cookie container for NextcloudFoldersd5e3c8fremove print debuggingca3a782renameing things56df699make it not crash on chrome545f170Use fresh cookiejar for every sync8823b42add destructor for unregistering listeners4bf3875have a global AuthManager which deduplicates listenersee18c8drename CookieManager.js -> ../AuthManager.js2b0b778clean up memory under all circumstancesdfa3d48clean up comments📊 Changes
8 files changed (+447 additions, -67 deletions)
View changed files
📝
manifest.json(+1 -1)➕
src/lib/AuthManager.js(+324 -0)📝
src/lib/Controller.js(+5 -0)📝
src/lib/adapters/NextcloudFolders.js(+22 -4)➕
src/lib/api_versions.js(+22 -0)📝
src/lib/browser-api.js(+1 -0)📝
src/lib/interfaces/Adapter.js(+10 -0)📝
src/test/test.js(+62 -62)📄 Description
Keep auth cookies in a cookie jar which is seperated from the users cookie jar. Leads to nextcloud servers not having to verfifyPassword for each request.
@marcelklehr Please check especially Account.js and Controller.js if you are ok with what i changed. I only fixed a single test. I will fix the others as soon as you approve Account.js and Controller.js.
Working/Used test:
/dist/html/test.html?pw=admin-pass&server=https://192.168.178.117&grep=Floccus nextcloud-folders benchmark standard-root Account with two clients should handle deep hierarchies with lots of bookmarksTest results:
with this patch (firefox): ~160000ms 170s
with this patch (chrome): ~90000ms 100s
without this patch (firefox): ~210000ms 255s
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.