Commit 3ff2a990 authored by Mark Hammond's avatar Mark Hammond
Browse files

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

parent e833b2dc
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
+2 −1
Original line number Diff line number Diff line
@@ -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":