This commit is contained in:
Dão Gottwald 2009-09-20 03:59:39 +02:00
Родитель c1a6a89fb8
Коммит ba2176eadc
1 изменённых файлов: 11 добавлений и 13 удалений

Просмотреть файл

@ -79,7 +79,9 @@ function test() {
let browser = gBrowser.getBrowserAtIndex(gPageB.index);
browser.addProgressListener({
onStateChange: function(webProgress, request, stateFlags, status) {
onStateChange: function (webProgress, request, stateFlags, status) {
info("onStateChange: " + stateFlags);
const complete = Ci.nsIWebProgressListener.STATE_IS_WINDOW +
Ci.nsIWebProgressListener.STATE_IS_NETWORK +
Ci.nsIWebProgressListener.STATE_STOP;
@ -89,18 +91,13 @@ function test() {
}
},
onLocationChange: function() { return 0; },
onProgressChange: function() { return 0; },
onStatusChange: function() { return 0; },
onSecurityChange: function() { return 0; },
QueryInterface: function(iid) {
if (iid.equals(Ci.nsISupportsWeakReference) ||
iid.equals(Ci.nsIWebProgressListener) ||
iid.equals(Ci.nsISupports))
return this;
throw Components.results.NS_ERROR_NO_INTERFACE;
}
onLocationChange: function () 0,
onProgressChange: function () 0,
onStatusChange: function () 0,
onSecurityChange: function () 0,
QueryInterface: XPCOMUtils.generateQI([Ci.nsISupportsWeakReference,
Ci.nsIWebProgressListener,
Ci.nsISupports])
});
// test loading new content with a frame into a tab
@ -111,6 +108,7 @@ function test() {
function onPageBLoadWithFrames(event) {
gPageLoadCount++;
info("onPageBLoadWithFrames: " + gPageLoadCount);
}
function onPageBLoadComplete() {