mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 772299 - <browser> widget's addProgressListener method should pass through aNotifyMask argument; r=gavin
--HG-- extra : rebase_source : 10c623c2adcb771312bb85896dbe7d4d9fc4d83c
This commit is contained in:
parent
e33e2203e3
commit
5c8c887f8c
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user