зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1085246 - Make browser_fxa_login.js ignore the load for the placeholder tab in openFxASettings. r=gavin, r=Mossop, a=me
--HG-- extra : amend_source : abbb3dcb181d3cd2aa34ef5c8edbd90997c8330b extra : transplant_source : y%CFj%AA%B4%C3%E06%BC%EA%90jEK%E0%BFRX%25_
This commit is contained in:
Родитель
50905e0270
Коммит
12b79ce664
|
@ -421,6 +421,10 @@ add_task(function* openFxASettings() {
|
|||
yield new Promise((resolve, reject) => {
|
||||
let progressListener = {
|
||||
onLocationChange: function onLocationChange(aBrowser) {
|
||||
if (aBrowser.currentURI.spec == BASE_URL) {
|
||||
// Ignore the changes from the addTab above.
|
||||
return;
|
||||
}
|
||||
gBrowser.removeTabsProgressListener(progressListener);
|
||||
let contentURI = Services.io.newURI(params.content_uri, null, null);
|
||||
is(aBrowser.currentURI.spec, Services.io.newURI("/settings", null, contentURI).spec,
|
||||
|
|
Загрузка…
Ссылка в новой задаче