зеркало из https://github.com/mozilla/gecko-dev.git
Bug 941469 - RemoteWebProgress doesn't pass flags param for onLocationChange. r=felipe
This commit is contained in:
Родитель
e833b2dcf1
Коммит
3ff2a9909d
|
@ -74,6 +74,7 @@ let WebProgressListener = {
|
|||
let objects = this._setupObjects(aWebProgress);
|
||||
|
||||
json.location = aLocationURI ? aLocationURI.spec : "";
|
||||
json.flags = aFlags;
|
||||
|
||||
if (json.isTopLevel) {
|
||||
json.canGoBack = docShell.canGoBack;
|
||||
|
|
|
@ -162,6 +162,7 @@ RemoteWebProgressManager.prototype = {
|
|||
|
||||
case "Content:LocationChange":
|
||||
let location = newURI(json.location);
|
||||
let flags = json.flags;
|
||||
|
||||
if (json.isTopLevel) {
|
||||
this._browser.webNavigation._currentURI = location;
|
||||
|
@ -172,7 +173,7 @@ RemoteWebProgressManager.prototype = {
|
|||
this._browser._imageDocument = null;
|
||||
}
|
||||
|
||||
this._callProgressListeners("onLocationChange", webProgress, request, location);
|
||||
this._callProgressListeners("onLocationChange", webProgress, request, location, flags);
|
||||
break;
|
||||
|
||||
case "Content:SecurityChange":
|
||||
|
|
Загрузка…
Ссылка в новой задаче