Bug 1346286 - Remove CPOWs from browser_bug749738.js. r=Felipe

MozReview-Commit-ID: 3gKvozefXY9

--HG--
extra : rebase_source : b761ac645af959ab01bf65290f4b04ca4d756955
This commit is contained in:
Blake Kaplan 2017-03-09 10:33:05 -08:00
parent 067318cce2
commit 65ed1c4695

View File

@ -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);
}