Bug 1567300 - Include about:protections as a secure internal UI page. r=johannh
authorJan Andre Ikenmeyer <jan@ikenmeyer.eu>
Thu, 18 Jul 2019 21:24:39 +0000
changeset 483405 ddd5cd04f8d683703af1ddfbfdd8f4738ff7161e
parent 483404 fe8cfb80b5b87b25ae24e81893ee1fe4d5fc7488
child 483406 61ef4dac17e190ce1f861737de3d21c13b024b1a
push id36315
push useropoprus@mozilla.com
push dateFri, 19 Jul 2019 03:55:35 +0000
treeherdermozilla-central@5fff2a9bf078 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjohannh
bugs1567300
milestone70.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1567300 - Include about:protections as a secure internal UI page. r=johannh Differential Revision: https://phabricator.services.mozilla.com/D38568
browser/base/content/browser-siteIdentity.js
--- a/browser/base/content/browser-siteIdentity.js
+++ b/browser/base/content/browser-siteIdentity.js
@@ -45,17 +45,17 @@ var gIdentityHandler = {
    * Bitmask provided by nsIWebProgressListener.onSecurityChange.
    */
   _state: 0,
 
   /**
    * RegExp used to decide if an about url should be shown as being part of
    * the browser UI.
    */
-  _secureInternalUIWhitelist: /^(?:accounts|addons|cache|config|crashes|downloads|license|logins|preferences|rights|sessionrestore|support|welcomeback)(?:[?#]|$)/i,
+  _secureInternalUIWhitelist: /^(?:accounts|addons|cache|config|crashes|downloads|license|logins|preferences|protections|rights|sessionrestore|support|welcomeback)(?:[?#]|$)/i,
 
   get _isBroken() {
     return this._state & Ci.nsIWebProgressListener.STATE_IS_BROKEN;
   },
 
   get _isSecure() {
     // If a <browser> is included within a chrome document, then this._state
     // will refer to the security state for the <browser> and not the top level