mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 776293 - Right-clicking a hyperlinked image and pressing "g" now copies the hyperlink URL. r=jaws
This commit is contained in:
parent
dc62382d18
commit
a110ad1d44
@ -62,6 +62,7 @@ Browser context menu subtest.
|
||||
</div>
|
||||
<div id="test-select-text">Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</div>
|
||||
<div id="test-select-text-link">http://mozilla.com</div>
|
||||
<a id="test-image-link" href="#"><img src="ctxmenu-image.png"></a>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
@ -758,6 +758,31 @@ function runTest(testNum) {
|
||||
].concat(inspectItems));
|
||||
}
|
||||
closeContextMenu();
|
||||
// clear the selection because following tests don't expect any selection
|
||||
subwindow.getSelection().removeAllRanges();
|
||||
|
||||
openContextMenuFor(imagelink)
|
||||
break;
|
||||
|
||||
case 26:
|
||||
// Context menu for image link
|
||||
checkContextMenu(["context-openlinkintab", true,
|
||||
"context-openlink", true,
|
||||
"---", null,
|
||||
"context-bookmarklink", true,
|
||||
"context-savelink", true,
|
||||
"context-copylink", true,
|
||||
"---", null,
|
||||
"context-viewimage", true,
|
||||
"context-copyimage-contents", true,
|
||||
"context-copyimage", true,
|
||||
"---", null,
|
||||
"context-saveimage", true,
|
||||
"context-sendimage", true,
|
||||
"context-setDesktopBackground", true,
|
||||
"context-viewimageinfo", true
|
||||
].concat(inspectItems));
|
||||
closeContextMenu();
|
||||
|
||||
subwindow.close();
|
||||
SimpleTest.finish();
|
||||
@ -784,7 +809,8 @@ var testNum = 1;
|
||||
var subwindow, chromeWin, contextMenu, lastElement;
|
||||
var text, link, mailto, input, img, canvas, video_ok, video_bad, video_bad2,
|
||||
iframe, video_in_iframe, image_in_iframe, textarea, contenteditable,
|
||||
inputspell, pagemenu, dom_full_screen, plainTextItems, audio_in_video;
|
||||
inputspell, pagemenu, dom_full_screen, plainTextItems, audio_in_video,
|
||||
imagelink;
|
||||
|
||||
function startTest() {
|
||||
chromeWin = SpecialPowers.wrap(subwindow)
|
||||
@ -809,6 +835,7 @@ function startTest() {
|
||||
|
||||
text = subwindow.document.getElementById("test-text");
|
||||
link = subwindow.document.getElementById("test-link");
|
||||
imagelink = subwindow.document.getElementById("test-image-link");
|
||||
mailto = subwindow.document.getElementById("test-mailto");
|
||||
input = subwindow.document.getElementById("test-input");
|
||||
img = subwindow.document.getElementById("test-image");
|
||||
@ -853,7 +880,7 @@ function waitForEvents(event)
|
||||
}
|
||||
}
|
||||
|
||||
var subwindow = window.open("./subtst_contextmenu.html", "contextmenu-subtext", "width=600,height=700");
|
||||
var subwindow = window.open("./subtst_contextmenu.html", "contextmenu-subtext", "width=600,height=800");
|
||||
subwindow.addEventListener("MozAfterPaint", waitForEvents, false);
|
||||
subwindow.onload = waitForEvents;
|
||||
|
||||
|
@ -450,7 +450,7 @@ These should match what Safari and other Apple applications use on OS X Lion. --
|
||||
<!ENTITY saveAudioCmd.label "Save Audio As…">
|
||||
<!ENTITY saveAudioCmd.accesskey "v">
|
||||
<!ENTITY emailImageCmd.label "Email Image…">
|
||||
<!ENTITY emailImageCmd.accesskey "a">
|
||||
<!ENTITY emailImageCmd.accesskey "g">
|
||||
<!ENTITY emailVideoCmd.label "Email Video…">
|
||||
<!ENTITY emailVideoCmd.accesskey "a">
|
||||
<!ENTITY emailAudioCmd.label "Email Audio…">
|
||||
|
Loading…
Reference in New Issue
Block a user