зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1283812 - Stop dispatching the TabSwitched event. r=mconley
This commit is contained in:
Родитель
a1816a5043
Коммит
dd4d5abfe5
|
@ -3785,11 +3785,6 @@
|
||||||
this.getTabState(this.requestedTab) == this.STATE_LOADED) {
|
this.getTabState(this.requestedTab) == this.STATE_LOADED) {
|
||||||
// After this point the tab has switched from the content thread's point of view.
|
// After this point the tab has switched from the content thread's point of view.
|
||||||
// The changes will be visible after the next refresh driver tick + composite.
|
// The changes will be visible after the next refresh driver tick + composite.
|
||||||
let event = new CustomEvent("TabSwitched", {
|
|
||||||
bubbles: true,
|
|
||||||
cancelable: true
|
|
||||||
});
|
|
||||||
this.tabbrowser.dispatchEvent(event);
|
|
||||||
let time = TelemetryStopwatch.timeElapsed("FX_TAB_SWITCH_TOTAL_E10S_MS", window);
|
let time = TelemetryStopwatch.timeElapsed("FX_TAB_SWITCH_TOTAL_E10S_MS", window);
|
||||||
if (time != -1) {
|
if (time != -1) {
|
||||||
TelemetryStopwatch.finish("FX_TAB_SWITCH_TOTAL_E10S_MS", window);
|
TelemetryStopwatch.finish("FX_TAB_SWITCH_TOTAL_E10S_MS", window);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче