Backed out changeset 791dcf072a98 (bug 1496844) for browser_identity_UI.js failures CLOSED TREE
authorBogdan Tara <btara@mozilla.com>
Wed, 08 May 2019 04:21:19 +0300
changeset 531807 3245e485822f8681ec8cacdc49d761f01efd74b9
parent 531806 690025a0dcd52340c05432a84131d5239df2d61a
child 531808 b1d829e6fe2f40052c6bbeb18f5fb3d996f66871
push id11265
push userffxbld-merge
push dateMon, 13 May 2019 10:53:39 +0000
treeherdermozilla-beta@77e0fe8dbdd3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1496844
milestone68.0a1
backs out791dcf072a98c3524c79d9b765c812b82920869d
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
Backed out changeset 791dcf072a98 (bug 1496844) for browser_identity_UI.js failures CLOSED TREE
browser/base/content/browser-siteIdentity.js
browser/base/content/test/siteIdentity/browser_check_identity_state.js
--- a/browser/base/content/browser-siteIdentity.js
+++ b/browser/base/content/browser-siteIdentity.js
@@ -790,19 +790,16 @@ var gIdentityHandler = {
 
     // Update per-site permissions section.
     this.updateSitePermissions();
 
     ContentBlocking.toggleReportBreakageButton();
   },
 
   setURI(uri) {
-    if (uri.schemeIs("view-source")) {
-      uri = Services.io.newURI(uri.spec.replace(/^view-source:/i, ""));
-    }
     this._uri = uri;
 
     try {
       // Account for file: urls and catch when "" is the value
       this._uriHasHost = !!this._uri.host;
     } catch (ex) {
       this._uriHasHost = false;
     }
--- a/browser/base/content/test/siteIdentity/browser_check_identity_state.js
+++ b/browser/base/content/test/siteIdentity/browser_check_identity_state.js
@@ -167,29 +167,16 @@ async function secureTest(secureCheck) {
   await SpecialPowers.popPrefEnv();
 }
 
 add_task(async function test_secure_enabled() {
   await secureTest(true);
   await secureTest(false);
 });
 
-async function viewSourceTest() {
-  let sourceTab = await loadNewTab("view-source:https://example.com/" + DUMMY);
-
-  gBrowser.selectedTab = sourceTab;
-  is(getIdentityMode(), "verifiedDomain", "Identity should be verified while viewing source");
-
-  gBrowser.removeTab(sourceTab);
-}
-
-add_task(async function test_viewSource() {
-  await viewSourceTest();
-});
-
 async function insecureTest(secureCheck) {
   let oldTab = gBrowser.selectedTab;
   await SpecialPowers.pushPrefEnv({set: [[INSECURE_ICON_PREF, secureCheck]]});
 
   let newTab = await loadNewTab("http://example.com/" + DUMMY);
   if (secureCheck) {
     is(getIdentityMode(), "notSecure", "Identity should be not secure");
   } else {