Updated 1.7 Setting Extension Permission Exceptions (markdown)

Thorin-Oakenpants 2017-10-09 17:59:22 +13:00
parent 1980f00970
commit 3285fc8373

@ -2,7 +2,9 @@
Cookies control access to **local storage** and **indexedDB**. The `ghacks user.js` denies cookies by default. This is the pref `network.cookie.cookieBehavior` (see `2701`). A value of `2` denies all cookies, a value of `1` allows first party only. Cookies control access to **local storage** and **indexedDB**. The `ghacks user.js` denies cookies by default. This is the pref `network.cookie.cookieBehavior` (see `2701`). A value of `2` denies all cookies, a value of `1` allows first party only.
Extensions <sup>1</sup> that use local dom storage and/or indexedDB **will break** if they are not allowed a cookie, even though they do not actually set any. Extensions that use such storage include uBlock Origin, uMatrix, Stylus and Violentmonkey. Extensions <sup>1</sup> that use local dom storage and/or indexedDB **will break** if they are not allowed a cookie, even though they do not actually set any. Extensions that use such storage include uBlock Origin, uMatrix, Stylus and Violentmonkey. Extension IndexedDB entries are located in your `profile\storage\default` directory and start with `moz-extension`.
![](https://github.com/ghacksuserjs/ghacks-user.js/blob/master/wikipiki/exceptions03.png)
<sup>1</sup> `Extensions` = Web Extensions API, `Legacy Extensions` = legacy APIs or the Add-on SDK. <sup>1</sup> `Extensions` = Web Extensions API, `Legacy Extensions` = legacy APIs or the Add-on SDK.
@ -21,7 +23,22 @@ You have two choices
- For `Set Cookies`, uncheck `use default` and check `Allow` - For `Set Cookies`, uncheck `use default` and check `Allow`
- Restart Firefox for the extension to start using storage - Restart Firefox for the extension to start using storage
### :small_orange_diamond: Notes ![](https://github.com/ghacksuserjs/ghacks-user.js/blob/master/wikipiki/exceptions01.png)
- You can view cookie exceptions under Options > Privacy & Security > History > custom settings > Accept cookies from websites > Exceptions
- The exception uses the extension's `UUID`, which is a random unique value generated on each install of the extension. Be aware of that if you uninstall, reinstall.
### :small_orange_diamond: Notes
- The exception uses the extension's `Internal UUID`, which is a random unique value generated on each install of the extension. So be aware of that if you uninstall and reinstall.
- You can view cookie exceptions under Options > Privacy & Security > History > custom settings > Accept cookies from websites > Exceptions
![](https://github.com/ghacksuserjs/ghacks-user.js/blob/master/wikipiki/exceptions02.png)
`Pro Tip`: If you are not sure what extensions require IndexedDB
* enable first party cookies in your `user.js` and restart
* check the options (if any) for each extension
* look in your `profile\storage\default` directory for `moz-extension` entries (see pic 1)
* add these entries manually via the cookies exceptions dialog
* just replace `+++` with `://` (see pic 3)
* directory: `moz-extension+++e0cc77c6-3785-4297-a034-7896f46563af`
* exception: `moz-extension://e0cc77c6-3785-4297-a034-7896f46563af`
* set cookies in the `user.js` back to none and restart
* clean out any unwanted cookies and storage collected during this exercise