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
Родитель e833b2dcf1
Коммит 3ff2a9909d
2 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

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