зеркало из https://github.com/mozilla/gecko-dev.git
Fix browser_save_video.js
This commit is contained in:
Родитель
bf1900c141
Коммит
ce475c1daf
|
@ -212,6 +212,7 @@ _BROWSER_FILES = \
|
|||
browser_clearplugindata_noage.html \
|
||||
browser_popupUI.js \
|
||||
browser_sanitizeDialog.js \
|
||||
browser_save_video.js \
|
||||
bug564387.html \
|
||||
bug564387_video1.ogv \
|
||||
bug564387_video1.ogv^headers^ \
|
||||
|
|
|
@ -20,12 +20,14 @@ function test() {
|
|||
return;
|
||||
gBrowser.removeEventListener("pageshow", pageShown);
|
||||
|
||||
document.addEventListener("popupshown", contextMenuOpened);
|
||||
executeSoon(function () {
|
||||
document.addEventListener("popupshown", contextMenuOpened);
|
||||
|
||||
var video1 = gBrowser.contentDocument.getElementById("video1");
|
||||
EventUtils.synthesizeMouseAtCenter(video1,
|
||||
{ type: "contextmenu", button: 2 },
|
||||
gBrowser.contentWindow);
|
||||
var video1 = gBrowser.contentDocument.getElementById("video1");
|
||||
EventUtils.synthesizeMouseAtCenter(video1,
|
||||
{ type: "contextmenu", button: 2 },
|
||||
gBrowser.contentWindow);
|
||||
});
|
||||
});
|
||||
|
||||
function contextMenuOpened(event) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче