[GH-ISSUE #42] Extension includes cookies from other extensions unrelated to youtube #25

Closed
opened 2026-03-23 20:31:49 +00:00 by mirror · 2 comments
Owner

Originally created by @chrisliebaer on GitHub (Jul 7, 2024).
Original GitHub issue: https://github.com/tubearchivist/browser-extension/issues/42

This issue might be somewhat related to #22

I'm using the extension https://github.com/Cookie-AutoDelete/Cookie-AutoDelete on Firefox.

When attempting to download a video with the extension, Tube Archivist fails with
cookie file is invalid: invalid Netscape format cookies file

And when inspecting the request I can see, that the Tube Archivist browser extension included the following cookie

www.youtube.com	TRUE	/<redacted-possibly-random-code>	FALSE	1751875552	CookieAutoDeleteBrowsingDataCleanup	CookieAutoDeleteBrowsingDataCleanup

So I'm no broser extension developer, I don't know if spilling into page cookies by Cookie AutoDelete is a good approach but I would also expect at least some extensions and user script to do the same.

I think it would be reasonable to filter out all cookies that don't match the format required by whatever tool generated the error message above, probably key=value.

Originally created by @chrisliebaer on GitHub (Jul 7, 2024). Original GitHub issue: https://github.com/tubearchivist/browser-extension/issues/42 This issue might be somewhat related to #22 I'm using the extension https://github.com/Cookie-AutoDelete/Cookie-AutoDelete on Firefox. When attempting to download a video with the extension, Tube Archivist fails with ```cookie file is invalid: invalid Netscape format cookies file``` And when inspecting the request I can see, that the Tube Archivist browser extension included the following cookie ``` www.youtube.com TRUE /<redacted-possibly-random-code> FALSE 1751875552 CookieAutoDeleteBrowsingDataCleanup CookieAutoDeleteBrowsingDataCleanup ``` So I'm no broser extension developer, I don't know if spilling into page cookies by Cookie AutoDelete is a good approach but I would also expect at least some extensions and user script to do the same. I think it would be reasonable to filter out all cookies that don't match the format required by whatever tool generated the error message above, probably `key=value`.
mirror 2026-03-23 20:31:49 +00:00
Author
Owner

@bbilly1 commented on GitHub (Jul 8, 2024):

Well, it's not unrelated. It's a cookie for the domain www.youtube.com, so that is working as expected. Strange that this is invalid. Does removing that cookie make it work?

Ultimately, there is no expectation of compatibility with other extensions. If you want to make it compatible, please do.

<!-- gh-comment-id:2214674946 --> @bbilly1 commented on GitHub (Jul 8, 2024): Well, it's not unrelated. It's a cookie for the domain `www.youtube.com`, so that is working as expected. Strange that this is invalid. Does removing that cookie make it work? Ultimately, there is no expectation of compatibility with other extensions. If you want to make it compatible, please do.
Author
Owner

@chrisliebaer commented on GitHub (Jul 9, 2024):

Removing the cookie either from the request or from the cookie store does make it work. Of course the other extension is adding it back after the next page request but everything done before that will work.

As I understand it, the error originates from yt-dlp? I sadly don't have the entire debug output anymore but I think the other cookies passed to tubearchivist all had a value of somekey=somevalue and this one didn't. I guess I have a look at it.

<!-- gh-comment-id:2216492454 --> @chrisliebaer commented on GitHub (Jul 9, 2024): Removing the cookie either from the request or from the cookie store does make it work. Of course the other extension is adding it back after the next page request but everything done before that will work. As I understand it, the error originates from `yt-dlp`? I sadly don't have the entire debug output anymore but I think the other cookies passed to tubearchivist all had a value of `somekey=somevalue` and this one didn't. I guess I have a look at it.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
tubearchivist/archived-browser-extension#25
No description provided.