First Firefox tab on a window doesn't fire "ready" event

RESOLVED FIXED in 1.0

Status

Add-on SDK
General
P1
normal
RESOLVED FIXED
7 years ago
7 years ago

People

(Reporter: PaulV, Assigned: irakli)

Tracking

unspecified

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

7 years ago
User-Agent:       Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0) Gecko/20100101 Firefox/4.0
Build Identifier: 

The tabs.on("ready") handler isn't fired when Firefox is started and the first window+tab opens, or on subsequent new windows.

Reproducible: Always

Steps to Reproduce:
1. require("tabs").on('ready', function(tab) {console.log('tab is loaded', tab.title, tab.url);});

Actual Results:  
No "ready" event is fired when the browser is started and the first tab opens, nor is the even fired if the tab is created along with a new window (e.g. by hitting accel-w).

Expected Results:  
A ready event fires.

Addons SDK 1.0b3
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Mac OS X → All
Priority: -- → P1
Hardware: x86 → All
Target Milestone: --- → 1.0

Comment 1

7 years ago
Some similars problems with the tabs.onActivate event :
https://bugzilla.mozilla.org/show_bug.cgi?id=648241
https://bugzilla.mozilla.org/show_bug.cgi?id=648244
Irakli: can you take this one on?
Assignee: nobody → rFobic
Depends on: 648241
Created attachment 532665 [details]
Pointer to Github pull request: https://github.com/mozilla/addon-sdk/pull/165

Pointer to Github pull-request
Attachment #532665 - Flags: review?(dietrich)
Comment on attachment 532665 [details]
Pointer to Github pull request: https://github.com/mozilla/addon-sdk/pull/165

r=me on the tests.
Attachment #532665 - Flags: review?(dietrich) → review+
https://github.com/mozilla/addon-sdk/commit/171933accf3727d26ee0e750ba294c6709a43331
Status: NEW → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.