зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1863701 - Remove SSTabClosing event. r=sessionstore-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D193069
This commit is contained in:
Родитель
e17a30add4
Коммит
0e9dc5fabc
|
@ -2979,12 +2979,6 @@ var SessionStoreInternal = {
|
|||
* Tab reference
|
||||
*/
|
||||
onTabClose: function ssi_onTabClose(aWindow, aTab) {
|
||||
// notify the tabbrowser that the tab state will be retrieved for the last time
|
||||
// (so that extension authors can easily set data on soon-to-be-closed tabs)
|
||||
var event = aWindow.document.createEvent("Events");
|
||||
event.initEvent("SSTabClosing", true, false);
|
||||
aTab.dispatchEvent(event);
|
||||
|
||||
// don't update our internal state if we don't have to
|
||||
if (this._max_tabs_undo == 0) {
|
||||
return;
|
||||
|
|
Загрузка…
Ссылка в новой задаче