Bug 941469 - RemoteWebProgress doesn't pass flags param for onLocationChange. r=felipe

This commit is contained in:
Mark Hammond 2013-11-22 17:39:05 +11:00
parent e833b2dcf1
commit 3ff2a9909d
2 changed files with 3 additions and 1 deletions

View File

@ -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;

View File

@ -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":