зеркало из https://github.com/mozilla/pjs.git
add debug info
This commit is contained in:
Родитель
c1a6a89fb8
Коммит
ba2176eadc
|
@ -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() {
|
||||
|
|
Загрузка…
Ссылка в новой задаче