Bug 1283812 - Stop dispatching the TabSwitched event. r=mconley

This commit is contained in:
Dão Gottwald 2016-07-19 18:20:41 +02:00
Родитель a1816a5043
Коммит dd4d5abfe5
1 изменённых файлов: 0 добавлений и 5 удалений

Просмотреть файл

@ -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);