mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1156939 - don't stash a reference to a CPOW and then spin the event loop. r=mconley
This commit is contained in:
parent
0df6240241
commit
715034e51d
@ -5,23 +5,20 @@ function test()
|
||||
{
|
||||
waitForExplicitFinish();
|
||||
|
||||
let doc;
|
||||
|
||||
gBrowser.selectedTab = gBrowser.addTab();
|
||||
gBrowser.selectedBrowser.addEventListener("load", function onload() {
|
||||
gBrowser.selectedBrowser.removeEventListener("load", onload, true);
|
||||
doc = content.document;
|
||||
waitForFocus(performTest, content);
|
||||
}, true);
|
||||
|
||||
content.location = "data:text/html,<a href='%23xxx'><span>word1 <span> word2 </span></span><span> word3</span></a>";
|
||||
content.location = "data:text/html;charset=utf-8,<a href='%23xxx'><span>word1 <span> word2 </span></span><span> word3</span></a>";
|
||||
|
||||
function performTest()
|
||||
{
|
||||
let doc = content.document;
|
||||
let link = doc.querySelector("a");;
|
||||
let text = gatherTextUnder(link);
|
||||
is(text, "word1 word2 word3", "Text under link is correctly computed.");
|
||||
doc = null;
|
||||
gBrowser.removeCurrentTab();
|
||||
finish();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user