Bug 1159259 - Add content.js frameScript to the web-panel sidebar so link-related context commands will work draft
authorIan Moody <moz-ian@perix.co.uk>
Wed, 25 May 2016 15:34:56 +0100
changeset 370932 326da21d766c0f0090a3d5482f0ce95d749bd6d6
parent 370842 d6d4e8417d2fd71fdf47c319b7a217f6ace9d5a5
child 521860 00bd2dd40b0289daf4ce864743bc58a2005d5237
push id19179
push usermoz-ian@perix.co.uk
push dateWed, 25 May 2016 15:52:29 +0000
bugs1159259
milestone49.0a1
Bug 1159259 - Add content.js frameScript to the web-panel sidebar so link-related context commands will work MozReview-Commit-ID: 4hATHPLC24Z
browser/base/content/web-panels.js
--- a/browser/base/content/web-panels.js
+++ b/browser/base/content/web-panels.js
@@ -69,16 +69,17 @@ function loadWebPanel(aURI) {
     panelBrowser.setAttribute("cachedurl", aURI);
 }
 
 function load()
 {
     var panelBrowser = getPanelBrowser();
     panelBrowser.webProgress.addProgressListener(panelProgressListener,
                                                  Ci.nsIWebProgress.NOTIFY_ALL);
+    panelBrowser.messageManager.loadFrameScript("chrome://browser/content/content.js", true);
     var cachedurl = panelBrowser.getAttribute("cachedurl")
     if (cachedurl) {
         panelBrowser.webNavigation
                     .loadURI(cachedurl, nsIWebNavigation.LOAD_FLAGS_NONE, null,
                              null, null);
     }
 
     gLoadFired = true;