From 8749f45b54a9933a2a2e8676fcd9765771cbb6d1 Mon Sep 17 00:00:00 2001 From: Paul Bone Date: Tue, 23 Jun 2020 06:25:33 +0000 Subject: [PATCH] Bug 1626507 - Remove documentchannel exceptions r=mattwoodrow This patch removes the excemptions for about:newtab, about:home and about:blank. When we switch processes using session restore we sometimes focus the content area. We mustn't do this if the uri is undefined, this can happen for some of these pages and we expect the address bar to be focused instead. Differential Revision: https://phabricator.services.mozilla.com/D80339 --- browser/components/sessionstore/SessionStore.jsm | 2 +- toolkit/modules/E10SUtils.jsm | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/browser/components/sessionstore/SessionStore.jsm b/browser/components/sessionstore/SessionStore.jsm index 716166a60582..4259f39eafc1 100644 --- a/browser/components/sessionstore/SessionStore.jsm +++ b/browser/components/sessionstore/SessionStore.jsm @@ -4924,7 +4924,7 @@ var SessionStoreInternal = { }); // Focus the tab's content area. - if (aTab.selected && !window.isBlankPageURL(uri)) { + if (aTab.selected && uri && !window.isBlankPageURL(uri)) { browser.focus(); } }, diff --git a/toolkit/modules/E10SUtils.jsm b/toolkit/modules/E10SUtils.jsm index 53e158c74e0e..142af08563ed 100644 --- a/toolkit/modules/E10SUtils.jsm +++ b/toolkit/modules/E10SUtils.jsm @@ -134,8 +134,6 @@ const kDocumentChannelDeniedSchemes = ["javascript"]; const kDocumentChannelDeniedURIs = [ "about:blank", "about:crashcontent", - "about:newtab", - "about:home", "about:printpreview", ];