Closed Bug 891463 Opened 11 years ago Closed 10 years ago

window/utils module's windows() method requires special undocumented parameters in order to see private windows

Categories

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

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: josesigna, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.116 Safari/537.36

Steps to reproduce:

Used window/utils module to iterate through all open windows using its windows() method.


Actual results:

The method does not iterate through private windows (even after adding the required permission to package.json). It only works when adding the following parameters:
window(null, { includePrivate: true })


Expected results:

The required parameters to make this method work with private windows should be specified on the docs:
https://addons.mozilla.org/en-US/developers/docs/sdk/latest/modules/sdk/window/utils.html#windows()
Assignee: nobody → evold
Github won't let me create a pull request atm, need to attach this later: 
https://github.com/erikvold/addon-sdk/tree/891463
Flags: needinfo?(evold)
Attachment #772819 - Flags: review?(wbamberg)
Flags: needinfo?(evold)
Priority: -- → P2
Assignee: evold → nobody
Comment on attachment 772819 [details]
Pointer to Github pull request: https://github.com/mozilla/addon-sdk/pull/1090

I've left comments on this in the pull request.
Attachment #772819 - Flags: review?(wbamberg) → review-
-> https://developer.mozilla.org/en-US/Add-ons/SDK/Low-Level_APIs/window_utils#windows%28%29
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: