mirror of
https://github.com/tubearchivist/browser-extension.git
synced 2026-03-23 20:37:07 +00:00
[PR #50] [MERGED] Fix handling of cookies for absolute domains #58
Labels
No labels
bug
bug
duplicate
enhancement
help wanted
invalid
not an issue
not an issue
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
tubearchivist/archived-browser-extension#58
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/tubearchivist/browser-extension/pull/50
Author: @chrisliebaer
Created: 11/26/2024
Status: ✅ Merged
Merged: 1/28/2025
Merged by: @bbilly1
Base:
master← Head:master📝 Commits (1)
0c6c4f2Fix handling of cookies for absolute domains📊 Changes
1 file changed (+4 additions, -1 deletions)
View changed files
📝
extension/background.js(+4 -1)📄 Description
As mentioned in #42, other extensions might introduce additional cookies into the
youtube.comcookie space. There appears to be a difference between cookies which are readable from subdomains and cookies which can only be read from the domain that set it. The actual cookies set by YouTube all include subdomains, but the one set by Cookie AutoDelete does not.This causes the Python cookie file loader to fail, since it expects domains starting with a dot to match the subdomain flag (2nd flag in cookie file):
github.com/python/cpython@f46d847574/Lib/http/cookiejar.py (L2050-L2051)I couldn't figure out, which exact format is represented here, but this commit fixes the browser plugin to respect the wishes of the underlying Python cookie jar.
Closes #42
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.