Skip to content

Commit

Permalink
2675: block top level data: URIs
Browse files Browse the repository at this point in the history
note: I changed `data://` to `data:` in section 4000's 1300671 description
  • Loading branch information
Thorin-Oakenpants committed Sep 28, 2017
1 parent 12f80bd commit 0912b03
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion user.js
Original file line number Diff line number Diff line change
Expand Up @@ -1421,6 +1421,11 @@ user_pref("security.csp.enable", true);
* [1] https://bugzilla.mozilla.org/show_bug.cgi?id=855326
* [2] https://bugzilla.mozilla.org/show_bug.cgi?id=883975 ***/
user_pref("security.csp.experimentalEnabled", true);
/* 2675: block top level window data: URIs (FF56+)
* [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1331351
* [2] https://www.wordfence.com/blog/2017/01/gmail-phishing-data-uri/
* [3] https://www.fxsitecompat.com/en-CA/docs/2017/data-url-navigations-on-top-level-window-will-be-blocked/ ***/
user_pref("security.data_uri.block_toplevel_data_uri_navigations", true);

/*** 2700: COOKIES & DOM STORAGE ***/
user_pref("_user.js.parrot", "2700 syntax error: the parrot's joined the bleedin' choir invisible!");
Expand Down Expand Up @@ -1526,7 +1531,7 @@ user_pref("privacy.sanitize.timeSpan", 0);
** 1334693 - isolate SPDY/HTTP2 (FF55+)
** 1337893 - isolate DNS cache (FF55+)
** 1344170 - isolate blob: URI (FF55+)
** 1300671 - isolate data://, about: URLs (FF55+)
** 1300671 - isolate data:, about: URLs (FF55+)
***/
user_pref("_user.js.parrot", "4000 syntax error: the parrot's pegged out");
/* 4001: enable First Party Isolation (FF51+)
Expand Down

0 comments on commit 0912b03

Please sign in to comment.