mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-15 13:09:14 +00:00
![Drew Willcoxon](/assets/img/avatar_default.png)
The SelectedOneOffButtonChanged event can fire when the popup is closed, so we should ignore it then. browser_switchTab_decodeuri.js hits this, as Mark says in the bug. The stack is: _on_SelectedOneOffButtonChanged@resource:///modules/UrlbarView.jsm:569:131 handleEvent@resource:///modules/UrlbarView.jsm:298:23 dispatchEvent@chrome://browser/content/search/search-one-offs.js:147:20 set selectedButton@chrome://browser/content/search/search-one-offs.js:306:10 _on_popuphidden/<@chrome://browser/content/search/search-one-offs.js:1281:7 Alternatively we could modify the selectedButton setter in the one offs not to fire the event when the popup is closed. However, theoretically someone could be interested in listening for the selected button change even then, so I think it's better to modify the listener here. Differential Revision: https://phabricator.services.mozilla.com/D22204 --HG-- extra : moz-landing-system : lando