Closed Bug 969976 Opened 11 years ago Closed 11 years ago

Tabs on close fires for all tabs at launch

Categories

(Add-on SDK Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: willmarquardt, Assigned: evold)

References

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:27.0) Gecko/20100101 Firefox/27.0 (Beta/Release) Build ID: 20140127194636 Steps to reproduce: I registered `tabs.on('close', function(tab){console.log('onClose called');})` in exports.main Actual results: 'onClose called' was printed to the console for each tab Expected results: Nothing should have happened. I didn't close any tabs.
So this seems to work for me, and I see that we don't have a test for it, so I wrote one. If this is still an issue for you then we'll need better steps to reproduce.
Assignee: nobody → evold
Comment on attachment 8374364 [details] [review] https://github.com/mozilla/addon-sdk/pull/1401 I'm not sure of a better way to test this, but this seems to work -- maybe rename the test dir to something, 'tab-close-on-startup' sounds like it should be firing that event on startup or something. Or maybe just a reference to the bug number for the future
Attachment #8374364 - Flags: review?(jsantell) → review+
This could be because I'm installing it with Extention Auto-Installer: https://addons.mozilla.org/en-US/firefox/addon/autoinstaller/ It works normally if I: - Do cfx run - Create an xpi and install it - Remove the exports.main function
*extension
Commits pushed to master at https://github.com/mozilla/addon-sdk https://github.com/mozilla/addon-sdk/commit/3d3187974d528081f1014d433f78003396537336 Bug 969976 - Test that tabs on close events do not fire at launch https://github.com/mozilla/addon-sdk/commit/2496486cd5966c8ab3356c89779736a85e94ff4c Merge pull request #1401 from erikvold/969976 Bug 969976 - Test that tabs on close events do not fire at launch r=@jsantell
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Depends on: 972925
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: