author Drew Willcoxon <adw@mozilla.com>
Tue, 14 May 2019 09:37:30 +0000
changeset 473801 4934e59477f4d9cb7ab742973b4c31ee3b9bd261
parent 405410 8934930b9199c69ec3d89ff119efafda87fef38c
permissions -rw-r--r--
Bug 1485288 - Fix intermittent browser/base/content/test/urlbar/browser_urlbarStop.js by waiting for URLBarSetURI to be called by using a progress listener. r=mak When the load is stopped, tabbrowser calls URLBarSetURI [1] and then calls onStateChange [2] on its progress listeners. That's the URLBarSetURI call that updates the urlbar value in this case. So to properly wait until the urlbar value has been updated, add our own progress listener in the test. [1] https://searchfox.org/mozilla-central/rev/cc280c4be94ff8cf64a27cc9b3d6831ffa49fa45/browser/base/content/tabbrowser.js#5036 [2] https://searchfox.org/mozilla-central/rev/cc280c4be94ff8cf64a27cc9b3d6831ffa49fa45/browser/base/content/tabbrowser.js#5071 Differential Revision: https://phabricator.services.mozilla.com/D31018

Andreas Tolfsen <ato@sny.no> <ato@mozilla.com>
Nika Layzell <nika@thelayzells.com> Michael Layzell <michael@thelayzells.com>