1 var
expected = [
"TabOpen",
"onLocationChange",
"onStateChange",
"onLinkIconAvailable"];
8 tabIndex = gBrowser.tabContainer.childElementCount;
10 gBrowser.tabContainer.addEventListener(
"TabOpen",
TabOpen,
false);
11 gBrowser.addTab(
"data:text/html,<html><head><link href='about:logo' rel='shortcut icon'>");
20 "got events and progress notifications in expected order");
21 gBrowser.removeTab(
tab);
23 gBrowser.tabContainer.removeEventListener(
"TabOpen",
TabOpen,
false);
29 if (aEvent.target ==
tab)
34 onLocationChange:
function onLocationChange(
aBrowser) {
38 onProgressChange:
function () {},
39 onSecurityChange:
function () {},
44 onStatusChange:
function () {},
45 onLinkIconAvailable:
function onLinkIconAvailable(
aBrowser) {
__defineGetter__("tab", function() gBrowser.tabContainer.childNodes[tabIndex])
return!aWindow arguments!aWindow arguments[0]
_updateTextAndScrollDataForTab aBrowser
ContinuingWebProgressListener prototype onStateChange