зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1233668 - Ensure Firefox Accounts is loaded with a valid history entry. r=markh
FxA was loaded using webNav.loadURI and LOAD_FLAGS_BYPASS_HISTORY which caused the initial FxA history entry to be `about:blank`. This caused two problems: 1) The "back" button did not work on the "Choose what to Sync" page, and 2) If the user reloaded the page, an exception would occur as soon as the user filled out the first form.
This commit is contained in:
Родитель
546a796711
Коммит
660bbcb38d
|
@ -127,10 +127,11 @@ var wrapper = {
|
||||||
url += (url.includes("?") ? "&" : "?") + urlParamStr;
|
url += (url.includes("?") ? "&" : "?") + urlParamStr;
|
||||||
}
|
}
|
||||||
this.url = url;
|
this.url = url;
|
||||||
// Set the iframe's location with loadURI/LOAD_FLAGS_BYPASS_HISTORY to
|
// Set the iframe's location with loadURI/LOAD_FLAGS_REPLACE_HISTORY to
|
||||||
// avoid having a new history entry being added.
|
// avoid having a new history entry being added. REPLACE_HISTORY is used
|
||||||
|
// to replace the current entry, which is `about:blank`.
|
||||||
let webNav = iframe.frameLoader.docShell.QueryInterface(Ci.nsIWebNavigation);
|
let webNav = iframe.frameLoader.docShell.QueryInterface(Ci.nsIWebNavigation);
|
||||||
webNav.loadURI(url, Ci.nsIWebNavigation.LOAD_FLAGS_BYPASS_HISTORY, null, null, null);
|
webNav.loadURI(url, Ci.nsIWebNavigation.LOAD_FLAGS_REPLACE_HISTORY, null, null, null);
|
||||||
},
|
},
|
||||||
|
|
||||||
retry: function () {
|
retry: function () {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче