bug 1534827: remote: fix constants in transitionToLoadFlag; r=yulia
authorAndreas Tolfsen <ato@sny.no>
Wed, 13 Mar 2019 14:35:57 +0000
changeset 521709 95f4b83aed87
parent 521708 a710a25b6c5d
child 521710 4db925ab7d46
push id10867
push userdvarga@mozilla.com
push dateThu, 14 Mar 2019 15:20:45 +0000
treeherdermozilla-beta@abad13547875 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersyulia
bugs1534827
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
bug 1534827: remote: fix constants in transitionToLoadFlag; r=yulia The transitionType is converted into undefined because there is a typo in the constants. These should be "FLAGS" rather than "FLAG". Thanks-to: Mark Banner <standard8@mozilla.com> Differential Revision: https://phabricator.services.mozilla.com/D23315
remote/domains/content/Page.jsm
--- a/remote/domains/content/Page.jsm
+++ b/remote/domains/content/Page.jsm
@@ -102,14 +102,14 @@ class Page extends ContentProcessDomain 
       break;
     }
   }
 }
 
 function transitionToLoadFlag(transitionType) {
   switch (transitionType) {
   case "reload":
-    return Ci.nsIWebNavigation.LOAD_FLAG_IS_REFRESH;
+    return Ci.nsIWebNavigation.LOAD_FLAGS_IS_REFRESH;
   case "link":
   default:
-    return Ci.nsIWebNavigation.LOAD_FLAG_IS_LINK;
+    return Ci.nsIWebNavigation.LOAD_FLAGS_IS_LINK;
   }
 }