Skip to content

Commit 0e9dc5f

Browse files
committed
Bug 1863701 - Remove SSTabClosing event. r=sessionstore-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D193069
1 parent e17a30a commit 0e9dc5f

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

browser/components/sessionstore/SessionStore.sys.mjs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2979,12 +2979,6 @@ var SessionStoreInternal = {
29792979
* Tab reference
29802980
*/
29812981
onTabClose: function ssi_onTabClose(aWindow, aTab) {
2982-
// notify the tabbrowser that the tab state will be retrieved for the last time
2983-
// (so that extension authors can easily set data on soon-to-be-closed tabs)
2984-
var event = aWindow.document.createEvent("Events");
2985-
event.initEvent("SSTabClosing", true, false);
2986-
aTab.dispatchEvent(event);
2987-
29882982
// don't update our internal state if we don't have to
29892983
if (this._max_tabs_undo == 0) {
29902984
return;

0 commit comments

Comments
 (0)