Skip to content
This repository has been archived by the owner on Sep 19, 2020. It is now read-only.

Extension error: TypeError: cookies is undefined #209

Closed
8 of 9 tasks
puchu opened this issue Dec 7, 2019 · 10 comments
Closed
8 of 9 tasks

Extension error: TypeError: cookies is undefined #209

puchu opened this issue Dec 7, 2019 · 10 comments
Labels
duplicate This issue or pull request already exists

Comments

@puchu
Copy link

puchu commented Dec 7, 2019

Prerequisites

  • I performed a cursory search of the issue tracker to avoid opening a duplicate issue
  • This is not a support issue or a question
    • Support issues and questions are handled at /r/uMatrix
  • I tried to reproduce the issue when...
    • uMatrix is the only extension
    • uMatrix with default lists/settings
    • using a new, unmodified browser profile
  • I am running the latest version of uMatrix
  • I checked the documentation to understand that the issue I report is not a normal behavior
  • I used the logger to rule out that the issue is caused by my ruleset

Description

After I upgraded to Firefox 71.0 i get the following error/exception when FF is started

JavaScript error: , line 0: uncaught exception: 2147746065
Extension error: TypeError: cookies is undefined moz-extension://86ce0190-77cd-41d0-82da-41a241cb7361/js/cookies.js 103
[[Exception stack
addCookiesToDict@moz-extension://86ce0190-77cd-41d0-82da-41a241cb7361/js/cookies.js:103:13
Current stack
applySafeWithoutClone@resource://gre/modules/ExtensionCommon.jsm:601:13
wrapPromise/</<@resource://gre/modules/ExtensionCommon.jsm:824:20
withLastError@resource://gre/modules/ExtensionCommon.jsm:743:14
wrapPromise/<@resource://gre/modules/ExtensionCommon.jsm:812:16
]]

Your environment

  • uMatrix version: 1.4.0
  • Browser Name and version: Firefox 71.0
  • Operating System and version: Linux 5.4.2
@gwarser
Copy link

gwarser commented Dec 8, 2019

All green here: https://firefox-storage-test.glitch.me/ ?

@uBlock-user uBlock-user added Firefox specific to Firefox unable to reproduce cannot reproduce the given issue labels Dec 8, 2019
@puchu
Copy link
Author

puchu commented Dec 8, 2019

Although I created a new profile the error showed up again but it seems I did something wrong. I couldn't reproduce the error with a new profile and after some investigation i found out that

privacy.firstparty.isolate - true

was the reason of the crash. Is there a way to use privacy.firstparty.isolate and still use uMatrix without a crash on startup, although the error is shown it seems that uMatrix works normal

@gwarser
Copy link

gwarser commented Dec 8, 2019

gorhill/uMatrix#878 ?

@gwarser gwarser removed the unable to reproduce cannot reproduce the given issue label Dec 8, 2019
@gwarser
Copy link

gwarser commented Dec 8, 2019

cookies is undefined cookies.js:103
    addCookiesToDict moz-extension://37c2fedf-eb6b-47e9-b6b9-3442e36d36af/js/cookies.js:103
    apply self-hosted:1868
    applySafeWithoutClone resource://gre/modules/ExtensionCommon.jsm:595
    wrapPromise resource://gre/modules/ExtensionCommon.jsm:824
    withLastError resource://gre/modules/ExtensionCommon.jsm:743
    wrapPromise resource://gre/modules/ExtensionCommon.jsm:812

Unchecked lastError value: Error: First-Party Isolation is enabled, but the required 'firstPartyDomain' attribute was not set. vapi-background.js:594
    getAll moz-extension://37c2fedf-eb6b-47e9-b6b9-3442e36d36af/js/vapi-background.js:594

@uBlock-user
Copy link
Contributor

Unchecked lastError value: Error: First-Party Isolation is enabled, but the required 'firstPartyDomain' attribute was not set. vapi-background.js:594
getAll moz-extension://37c2fedf-eb6b-47e9-b6b9-3442e36d36af/js/vapi-background.js:594

That's all I see on Nightly.

@uBlock-user uBlock-user added something to address something to address external an external factor is involved labels Dec 8, 2019
@gorhill
Copy link
Member

gorhill commented Feb 20, 2020

I un-checked "using a new, unmodified browser profile" since user originally failed to disclosed he modified privacy.firstparty.isolate.

@opusforlife2
Copy link

@gorhill So does this confirm that the bug I experienced is caused by uMatrix and not Snowflake?

@gorhill
Copy link
Member

gorhill commented Feb 22, 2020

The issue arises when using uMatrix with the setting privacy.firstparty.isolate set to true.

@uBlock-user
Copy link
Contributor

uBlock-user commented Feb 22, 2020

I have privacy.firstparty.isolate toggled to true on Nightly and this appears --

Capture

@gorhill
Copy link
Member

gorhill commented Mar 1, 2020

Duplicate of gorhill/uMatrix#878.

@gorhill gorhill added the duplicate This issue or pull request already exists label Mar 1, 2020
@uBlock-user uBlock-user removed Firefox specific to Firefox something to address something to address external an external factor is involved labels Mar 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

5 participants