Closed Bug 1149262 Opened 9 years ago Closed 9 years ago

Add contentDocumentAsCPOW and contentWindowAsCPOW shortcuts to gBrowser

Categories

(Firefox :: Tabbed Browser, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 40
Tracking Status
firefox40 --- fixed

People

(Reporter: mconley, Assigned: mconley)

References

Details

Attachments

(1 file)

gBrowser has shortcuts to the selected browser's contentDocument and contentWindow, however, these are null for remote browsers.

We should define contentDocumentAsCPOW and contentWindowAsCPOW on gBrowser instead, and forward those over to the selected browser's contentDocumentAsCPOW and contentWindowAsCPOW.

Ideally, consumers of these getters will switch away from directly accessing these probably-CPOWs. This is just a bandaid while we wait for that to occur.
Comment on attachment 8585644 [details] [diff] [review]
Add contentDocumentAsCPOW and contentWindowAsCPOW shortcuts to tabbrowser.xml. r=?

Hey mak, picking on you because your queue is apparently empty. Hope that's cool. :)
Attachment #8585644 - Flags: review?(mak77)
Blocks: 1147014
Blocks: 1147035
Attachment #8585644 - Flags: review?(mak77) → review+
https://hg.mozilla.org/mozilla-central/rev/cdc95f8c3bb0
Assignee: nobody → mconley
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 40
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: