mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-25 01:01:52 +00:00
Let 'Edit Page' use the focused frame, b=89975, r=syd, sr=hewitt
This commit is contained in:
parent
5529879f4d
commit
5742094355
@ -103,6 +103,14 @@ function contentAreaFrameFocus()
|
||||
}
|
||||
}
|
||||
|
||||
function editPageOrFrame()
|
||||
{
|
||||
if (gFocusedURL)
|
||||
editPage(gFocusedURL, window, false);
|
||||
else
|
||||
editPage(window._content.location.href, window, false);
|
||||
}
|
||||
|
||||
//////////////////////////////// BOOKMARKS ////////////////////////////////////
|
||||
|
||||
function UpdateBookmarksLastVisitedDate(event)
|
||||
|
@ -109,7 +109,7 @@
|
||||
<command id="cmd_newEditorDraft"/> -->
|
||||
<command id="Browser:OpenFile" oncommand="BrowserOpenFileWindow();"/>
|
||||
<command id="Browser:SavePage" oncommand="saveDocument(window._content.document);"/>
|
||||
<command id="Browser:EditPage" oncommand="editPage(window._content.location.href,window, false);"/>
|
||||
<command id="Browser:EditPage" oncommand="editPageOrFrame();"/>
|
||||
<command id="Browser:Open" oncommand="BrowserOpenWindow();"/>
|
||||
<command id="Browser:PrintSetup" oncommand="BrowserPrintSetup();"/>
|
||||
<command id="Browser:Print" oncommand="BrowserPrint();"/>
|
||||
|
Loading…
Reference in New Issue
Block a user