Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

facebook fix + configurable storage/cookie archiving #277

Merged
merged 5 commits into from
Nov 20, 2024
Merged

facebook fix + configurable storage/cookie archiving #277

merged 5 commits into from
Nov 20, 2024

Conversation

ikreymer
Copy link
Member

support for configurable cookie / storage archiving, from UI settings from #276
fix for facebook archiving + replay using dash rewriting + range-from-query replay via wabac.js 2.20.4
fixes #272, #273

fix for facebook archiving + replay, fixes #272 via wabac.js 2.20.4
fixes crash when facebook archiving as well, fixes #273
@tw4l
Copy link
Member

tw4l commented Nov 20, 2024

The settings in the Preferences tab don't seem to actually save/stick, so I'm unable to test this.

Steps to reproduce:

  1. Build local AWP
  2. Add as extension to browser (I tested Chrome and Brave) via "Load unpacked" on chrome://extensions
  3. Open extension preferences, attempt to modify cookie and local storage settings and press Save
  4. Open extension preferences again, verify saved choices didn't persist

@ikreymer
Copy link
Member Author

@tw4l Should be fixed now! Somehow missed in switch to using abstracted localStorage (either extension specific or regular in app)

@ikreymer ikreymer requested a review from tw4l November 20, 2024 17:36
src/ui/app.ts Outdated
Comment on lines 113 to 116
if (archiveCookies === null) {
await setLocalOption("archiveCookies", "1");
this.archiveCookies = true;
}
Copy link
Member

@tw4l tw4l Nov 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might need to add another if statement here to set this.archiveCookies to true if archiveCookies === "1" or false if it's "0"? It doesn't seem to be persisting currently if I leave the settings page (e.g. to view an archived item) and then come back.

Copy link
Member

@tw4l tw4l left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, after those changes to make the settings persist, this is working well! Verified that Facebook photos and videos are now fixed, and that Bluesky logged-in replay works if archiving local storage is enabled.

Nice work!

@ikreymer ikreymer merged commit 42d428a into main Nov 20, 2024
1 of 3 checks passed
@ikreymer ikreymer deleted the fb-fix branch November 20, 2024 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: web-recorder can not detect facebook video
2 participants