Closed Bug 1340750 Opened 9 years ago Closed 9 years ago

Fix sidebar remote browser handling

Categories

(WebExtensions :: General, defect)

49 Branch
defect
Not set
normal

Tracking

(firefox54 fixed)

RESOLVED FIXED
mozilla54
Tracking Status
firefox54 --- fixed

People

(Reporter: mixedpuppy, Assigned: mixedpuppy)

References

Details

Attachments

(1 file)

Switching the browser to a remote browser was not correct and spitting out a couple errors.
Assignee: nobody → mixedpuppy
Comment on attachment 8838810 [details] Bug 1340750 fix remote handling of sidebar browser, https://reviewboard.mozilla.org/r/113626/#review115676 ::: browser/base/content/webext-panels.js:36 (Diff revision 2) > + > + let readyPromise; > + if (sidebar.remote) { > browser.setAttribute("remote", "true"); > - browser.setAttribute("remoteType", remoteType); > + browser.setAttribute("remoteType", E10SUtils.getRemoteTypeForURI(sidebar.uri, true, > + E10SUtils.EXTENSION_REMOTE_TYPE)); Nit: Weird indentation. ::: browser/base/content/webext-panels.js:39 (Diff revision 2) > browser.setAttribute("remote", "true"); > - browser.setAttribute("remoteType", remoteType); > + browser.setAttribute("remoteType", E10SUtils.getRemoteTypeForURI(sidebar.uri, true, > + E10SUtils.EXTENSION_REMOTE_TYPE)); > + readyPromise = promiseEvent(browser, "XULFrameLoaderCreated"); > } else { > - browser.removeAttribute("remote"); > + readyPromise = promiseEvent(browser, "load"); This generally shouldn't be necessary. ::: browser/base/content/webext-panels.js:44 (Diff revision 2) > -} > + } > + document.documentElement.appendChild(browser); > > -function load() { > + return readyPromise.then(() => { > - let browser = document.getElementById("webext-panels-browser"); > - browser.messageManager.loadFrameScript("chrome://browser/content/content.js", true); > + browser.messageManager.loadFrameScript("chrome://browser/content/content.js", true); s/true/false/, please.
Attachment #8838810 - Flags: review?(kmaglione+bmo) → review+
Pushed by mixedpuppy@gmail.com: https://hg.mozilla.org/integration/autoland/rev/6d18f9e14d5d fix remote handling of sidebar browser, r=kmag
Blocks: 1340739
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla54
Product: Toolkit → WebExtensions
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: