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
This commit is contained in:
Paul Bone 2020-06-23 06:25:33 +00:00
Родитель 6633b739e9
Коммит 8749f45b54
2 изменённых файлов: 1 добавлений и 3 удалений

Просмотреть файл

@ -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();
}
},

Просмотреть файл

@ -134,8 +134,6 @@ const kDocumentChannelDeniedSchemes = ["javascript"];
const kDocumentChannelDeniedURIs = [
"about:blank",
"about:crashcontent",
"about:newtab",
"about:home",
"about:printpreview",
];