mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 02:14:43 +00:00
Bug 728541. (Av1) browser_bug703210.js: Add a missing removeEventListener(). r=smaug.
This commit is contained in:
parent
40a42f5623
commit
190f19bce5
@ -1,5 +1,6 @@
|
||||
function test() {
|
||||
waitForExplicitFinish();
|
||||
|
||||
gBrowser.selectedTab = gBrowser.addTab();
|
||||
|
||||
SpecialPowers.setIntPref("ui.tooltipDelay", 0);
|
||||
@ -60,8 +61,10 @@ function test() {
|
||||
EventUtils.synthesizeMouseAtCenter(p1, { type: "mousemove" }, win);
|
||||
}
|
||||
|
||||
gBrowser.selectedBrowser.addEventListener("load",
|
||||
function () { setTimeout(onLoad, 0); }, true);
|
||||
gBrowser.selectedBrowser.addEventListener("load", function loadListener() {
|
||||
gBrowser.selectedBrowser.removeEventListener("load", loadListener, true);
|
||||
setTimeout(onLoad, 0);
|
||||
}, true);
|
||||
|
||||
content.location = "data:text/html," +
|
||||
"<p id=\"p1\" title=\"tooltip is here\">This paragraph has a tooltip.</p>" +
|
||||
|
Loading…
Reference in New Issue
Block a user