Skip to content

Instantly share code, notes, and snippets.

@yurydelendik
Created November 10, 2014 18:53
Show Gist options
  • Save yurydelendik/303c47976afaa80d5f11 to your computer and use it in GitHub Desktop.
Save yurydelendik/303c47976afaa80d5f11 to your computer and use it in GitHub Desktop.
e10s shumway fix
diff --git a/browser/components/nsBrowserGlue.js b/browser/components/nsBrowserGlue.js
--- a/browser/components/nsBrowserGlue.js
+++ b/browser/components/nsBrowserGlue.js
@@ -580,19 +580,16 @@ BrowserGlue.prototype = {
NewTabUtils.init();
DirectoryLinksProvider.init();
NewTabUtils.links.addProvider(DirectoryLinksProvider);
#ifdef NIGHTLY_BUILD
if (Services.prefs.getBoolPref("dom.identity.enabled")) {
SignInToWebsiteUX.init();
}
#endif
-#ifdef NIGHTLY_BUILD
- ShumwayUtils.init();
-#endif
webrtcUI.init();
AboutHome.init();
SessionStore.init();
BrowserUITelemetry.init();
ContentSearch.init();
FormValidationHandler.init();
ContentClick.init();
@@ -754,16 +751,22 @@ BrowserGlue.prototype = {
// pdf content handler, and initializes parent side message manager
// shim for privileged api access.
PdfJs.init(true);
// child only: similar to the call above for parent - register content
// handler and init message manager child shim for privileged api access.
// With older versions of the extension installed, this load will fail
// passively.
aWindow.messageManager.loadFrameScript("resource://pdf.js/pdfjschildbootstrap.js", true);
+#ifdef NIGHTLY_BUILD
+ // Registering Shumway bootstrap script the child processes.
+ aWindow.messageManager.loadFrameScript("chrome://shumway/content/bootstrap-content.js", true);
+ // Initializing Shumway (shall be run after child script registration).
+ ShumwayUtils.init();
+#endif
#ifdef XP_WIN
// For windows seven, initialize the jump list module.
const WINTASKBAR_CONTRACTID = "@mozilla.org/windows-taskbar;1";
if (WINTASKBAR_CONTRACTID in Cc &&
Cc[WINTASKBAR_CONTRACTID].getService(Ci.nsIWinTaskbar).available) {
let temp = {};
Cu.import("resource:///modules/WindowsJumpLists.jsm", temp);
temp.WinTaskbarJumpList.startup();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment