Closed Bug 1134699 Opened 10 years ago Closed 7 years ago

tabs.activeTab returns wrapper object when no window is open

Categories

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

defect

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: jamie, Unassigned)

References

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/600.3.18 (KHTML, like Gecko) Version/8.0.3 Safari/600.3.18 Steps to reproduce: Call `tabs.activeTab` with no window open. (Our add-on code uses a WebSocket connection and needs to check for the activeTab exists to know how to handle messages). Actual results: When logging tabs.activeTab to console, it shows `[object Tab]`. All properties I poked at (id, index, url, title) were undefined. Expected results: tabs.activeTab should be null or undefined if no tab is open
Summary: tabs.activeTab returns wrapper object when no tab is open → tabs.activeTab returns wrapper object when no window is open
Blocks: sdk/tabs
Priority: -- → P2
Whiteboard: [good first bug]
QA Contact: evold
I would like to take this bug up as my first contribution and submit the patch. How do I get started?
This appears no longer to be the case. I see now that tabs.activeTab returns null when there is no open window in Firefox 48.0a2
Because of the difficulty finding mentors and the expected life span of the SDK, we are removing [good first bug] from remaining SDK bugs.
Whiteboard: [good first bug]
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.