mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1067527 - [e10s] Use contentWindowAsCPOW in context menu code (r=mconley)
This commit is contained in:
parent
635ad76c63
commit
960897ceaf
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user