зеркало из https://github.com/mozilla/gecko-dev.git
bug 772299 - <browser> widget's addProgressListener method should pass through aNotifyMask argument; r=gavin
This commit is contained in:
Родитель
66ea0de2e2
Коммит
5e9898d8e0
|
@ -447,9 +447,13 @@
|
|||
|
||||
<method name="addProgressListener">
|
||||
<parameter name="aListener"/>
|
||||
<parameter name="aNotifyMask"/>
|
||||
<body>
|
||||
<![CDATA[
|
||||
this.webProgress.addProgressListener(aListener, Components.interfaces.nsIWebProgress.NOTIFY_ALL);
|
||||
if (!aNotifyMask) {
|
||||
aNotifyMask = Components.interfaces.nsIWebProgress.NOTIFY_ALL;
|
||||
}
|
||||
this.webProgress.addProgressListener(aListener, aNotifyMask);
|
||||
]]>
|
||||
</body>
|
||||
</method>
|
||||
|
|
|
@ -61,8 +61,8 @@ function onLoad() {
|
|||
// available beforehand.
|
||||
Services.obs.addObserver(function observeOnce(subj, topic, data) {
|
||||
Services.obs.removeObserver(observeOnce, "webapprt-test-did-install");
|
||||
gAppBrowser.webProgress.
|
||||
addProgressListener(progressListener,Ci.nsIWebProgress.NOTIFY_LOCATION);
|
||||
gAppBrowser.addProgressListener(progressListener,
|
||||
Ci.nsIWebProgress.NOTIFY_LOCATION);
|
||||
}, "webapprt-test-did-install", false);
|
||||
|
||||
// This observer is present for the lifetime of the runtime.
|
||||
|
|
|
@ -36,8 +36,8 @@ function test() {
|
|||
}
|
||||
};
|
||||
|
||||
appBrowser.webProgress.
|
||||
addProgressListener(progressListener, Ci.nsIWebProgress.NOTIFY_LOCATION);
|
||||
appBrowser.addProgressListener(progressListener,
|
||||
Ci.nsIWebProgress.NOTIFY_LOCATION);
|
||||
|
||||
function testNext() {
|
||||
if (!tests.length) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче