3 const Cr = Components.results;
4 const Cm = Components.manager;
20 throw Cr.NS_ERROR_NO_AGGREGATION;
32 Cm.QueryInterface(
Ci.nsIComponentRegistrar)
37 Ci.nsIWebProgressListener.STATE_IS_NETWORK;
39 const kDummyPage =
"http://example.org/browser/browser/base/content/test/dummy_page.html";
41 "bad://www.mozilla.org/",
46 var gProgressListener = {
50 if (++this._runCount !=
kURIs.length)
53 ok(
didFail,
"Correctly failed on unknown protocol");
55 ok(gBrowser.mTabs.length ==
kURIs.length,
"Correctly opened all expected tabs");
60 onProgressChange:
function () {},
61 onLocationChange:
function () {},
62 onStatusChange:
function () {},
63 onSecurityChange:
function () {}
69 gBrowser.addTabsProgressListener(gProgressListener);
75 Cm.QueryInterface(
Ci.nsIComponentRegistrar)
80 Cm.QueryInterface(
Ci.nsIComponentRegistrar)
85 gBrowser.removeTabsProgressListener(gProgressListener);
88 for (var
i = gBrowser.mTabs.length-1;
i > 0;
i--)
89 gBrowser.removeTab(gBrowser.mTabs[
i]);
Cm QueryInterface(Ci.nsIComponentRegistrar).registerFactory(Components.ID(kPromptServiceUUID)
const kPromptServiceFactory
function loadOneOrMoreURIs(aURIString)
const kPromptServiceContractID
let fakePromptServiceFactory
_updateTextAndScrollDataForTab aBrowser
ContinuingWebProgressListener prototype onStateChange
_getSelectedPageStyle s i