Bug 1345807 Part 1: When viewing source of existing browser always use its remoteType. r=Gijs
This commit is contained in:
@@ -2416,14 +2416,14 @@ function BrowserViewSourceOfDocument(aArgsOrDocument) {
|
||||
if (inTab) {
|
||||
let tabBrowser = gBrowser;
|
||||
let preferredRemoteType;
|
||||
if (!tabBrowser) {
|
||||
if (!args.browser) {
|
||||
if (args.browser) {
|
||||
preferredRemoteType = args.browser.remoteType;
|
||||
} else {
|
||||
if (!tabBrowser) {
|
||||
throw new Error("BrowserViewSourceOfDocument should be passed the " +
|
||||
"subject browser if called from a window without " +
|
||||
"gBrowser defined.");
|
||||
}
|
||||
preferredRemoteType = args.browser.remoteType;
|
||||
} else {
|
||||
// Some internal URLs (such as specific chrome: and about: URLs that are
|
||||
// not yet remote ready) cannot be loaded in a remote browser. View
|
||||
// source in tab expects the new view source browser's remoteness to match
|
||||
|
||||
Reference in New Issue
Block a user