Closed Bug 1391956 Opened 8 years ago Closed 8 years ago

tabs.onCreated event errors on Undo Closed Tab when all tabs have been closed

Categories

(Firefox :: Untriaged, defect)

56 Branch
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: michael_773, Unassigned)

Details

Attachments

(1 file)

500 bytes, application/x-xpinstall
Details
Attached file test.xpi
User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:55.0) Gecko/20100101 Firefox/55.0 Build ID: 20170814072924 Steps to reproduce: Set browser.tabs.closeWindowWithLastTab set to false in about:config. Install extension containing: browser.tabs.onCreated.addListener( function() { // some code } ) Close all tabs so that only the about:newtab that is created on the last tab close remains. Actual results: The onCreated event errors. 01:58:51.051 this.browser is null 1 ExtensionTabs.jsm:305 get frameLoader resource://gre/modules/ExtensionTabs.jsm:305:5 get frameLoader chrome://browser/content/ext-utils.js:496:5 get width chrome://browser/content/ext-utils.js:549:5 convert resource://gre/modules/ExtensionTabs.jsm:503:7 convert resource://gre/modules/ExtensionTabs.jsm:1677:12 listener chrome://browser/content/ext-tabs.js:121:24 runSafeSyncWithoutClone resource://gre/modules/ExtensionUtils.jsm:61:14 emit/promises< resource://gre/modules/ExtensionUtils.jsm:256:55 from self-hosted:611:17 emit resource://gre/modules/ExtensionUtils.jsm:255:20 emitCreated chrome://browser/content/ext-utils.js:406:5 handleEvent/< chrome://browser/content/ext-utils.js:256:13 Expected results: The onCreated event should have fired.
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: