зеркало из https://github.com/mozilla/gecko-dev.git
Bug 370771 - 'Send Link' (to page) doesn't work in web panels. r=gavin.
This commit is contained in:
Родитель
e420e1d4c4
Коммит
92ff26e456
|
@ -133,7 +133,7 @@
|
|||
<menuitem id="context-sendpage"
|
||||
label="&sendPageCmd.label;"
|
||||
accesskey="&sendPageCmd.accesskey;"
|
||||
command="Browser:SendLink"/>
|
||||
oncommand="gContextMenu.sendPage();"/>
|
||||
<menuseparator id="context-sep-viewbgimage"/>
|
||||
<menuitem id="context-viewbgimage"
|
||||
label="&viewBGImageCmd.label;"
|
||||
|
|
|
@ -75,7 +75,8 @@
|
|||
<command id="Browser:SavePage" oncommand="saveDocument(window.content.document);"/>
|
||||
<command id="Browser:SaveFrame" oncommand="saveFrameDocument();"/>
|
||||
|
||||
<command id="Browser:SendLink" oncommand="MailIntegration.sendLinkForContent();"/>
|
||||
<command id="Browser:SendLink"
|
||||
oncommand="MailIntegration.sendLinkForWindow(window.content);"/>
|
||||
|
||||
<command id="cmd_pageSetup" oncommand="PrintUtils.showPageSetup();"/>
|
||||
<command id="cmd_print" oncommand="PrintUtils.print();"/>
|
||||
|
|
|
@ -5060,9 +5060,9 @@ function WindowIsClosing()
|
|||
}
|
||||
|
||||
var MailIntegration = {
|
||||
sendLinkForContent: function () {
|
||||
this.sendMessage(window.content.location.href,
|
||||
window.content.document.title);
|
||||
sendLinkForWindow: function (aWindow) {
|
||||
this.sendMessage(aWindow.location.href,
|
||||
aWindow.document.title);
|
||||
},
|
||||
|
||||
sendMessage: function (aBody, aSubject) {
|
||||
|
|
|
@ -1126,11 +1126,15 @@ nsContextMenu.prototype = {
|
|||
},
|
||||
#endif
|
||||
|
||||
savePageAs: function() {
|
||||
savePageAs: function CM_savePageAs() {
|
||||
saveDocument(this.browser.contentDocument);
|
||||
},
|
||||
|
||||
printFrame: function() {
|
||||
sendPage: function CM_sendPage() {
|
||||
MailIntegration.sendLinkForWindow(this.browser.contentWindow);
|
||||
},
|
||||
|
||||
printFrame: function CM_printFrame() {
|
||||
PrintUtils.print(this.target.ownerDocument.defaultView);
|
||||
}
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче