mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Bug 1346286 - Remove CPOWs from browser_bug749738.js. r=Felipe
MozReview-Commit-ID: 3gKvozefXY9 --HG-- extra : rebase_source : b761ac645af959ab01bf65290f4b04ca4d756955
This commit is contained in:
parent
067318cce2
commit
65ed1c4695
@ -12,7 +12,8 @@ function test() {
|
||||
let tab = gBrowser.addTab();
|
||||
gBrowser.selectedTab = tab;
|
||||
|
||||
load(tab, DUMMY_PAGE, function() {
|
||||
BrowserTestUtils.loadURI(tab.linkedBrowser, DUMMY_PAGE);
|
||||
BrowserTestUtils.browserLoaded(tab.linkedBrowser).then(() => {
|
||||
gFindBar.onFindCommand();
|
||||
EventUtils.sendString("Dummy");
|
||||
gBrowser.removeTab(tab);
|
||||
@ -26,10 +27,3 @@ function test() {
|
||||
finish();
|
||||
});
|
||||
}
|
||||
|
||||
function load(aTab, aUrl, aCallback) {
|
||||
aTab.linkedBrowser.addEventListener("load", function(aEvent) {
|
||||
waitForFocus(aCallback, content);
|
||||
}, {capture: true, once: true});
|
||||
aTab.linkedBrowser.loadURI(aUrl);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user