Bug 1067527 - [e10s] Use contentWindowAsCPOW in context menu code (r=mconley)

This commit is contained in:
Bill McCloskey 2014-09-23 15:48:53 -07:00
parent 635ad76c63
commit 960897ceaf

View File

@ -946,7 +946,7 @@ nsContextMenu.prototype = {
viewPartialSource: function(aContext) {
var focusedWindow = document.commandDispatcher.focusedWindow;
if (focusedWindow == window)
focusedWindow = content;
focusedWindow = gBrowser.selectedBrowser.contentWindowAsCPOW;
var docCharset = null;
if (focusedWindow)
@ -1621,7 +1621,7 @@ nsContextMenu.prototype = {
},
savePageAs: function CM_savePageAs() {
saveDocument(this.browser.contentDocument);
saveDocument(this.browser.contentDocumentAsCPOW);
},
printFrame: function CM_printFrame() {
@ -1629,7 +1629,7 @@ nsContextMenu.prototype = {
},
switchPageDirection: function CM_switchPageDirection() {
SwitchDocumentDirection(this.browser.contentWindow);
SwitchDocumentDirection(this.browser.contentWindowAsCPOW);
},
mediaCommand : function CM_mediaCommand(command, data) {