Closed
Bug 1267718
Opened 8 years ago
Closed 8 years ago
Add a nsPIDOMWindow::GetScriptableParentOrNull method
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla49
Tracking | Status | |
---|---|---|
firefox49 | --- | fixed |
People
(Reporter: jwatt, Assigned: jwatt)
Details
(Whiteboard: btpp-active)
Attachments
(1 file)
5.63 KB,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
In bug 1162772 I've found myself twice writing; nsPIDOMWindowOuter* parentOuterWin = GetScriptableParent(); MOZ_ASSERT(parentOuterWin, "How can we get here? No docShell somehow?"); if (nsGlobalWindow::Cast(parentOuterWin) != this) { which could be more simply written as: if (GetScriptableParentOrNull()) { if that method existed. There are a few other places in the code that might benefit from this function too, but to a lesser extent.
Assignee | ||
Comment 1•8 years ago
|
||
Attachment #8745436 -
Flags: review?(bzbarsky)
Comment 2•8 years ago
|
||
Comment on attachment 8745436 [details] [diff] [review] patch nsPIDOMWindow.h needs documentation for the new method. r=me with that.
Attachment #8745436 -
Flags: review?(bzbarsky) → review+
Updated•8 years ago
|
Whiteboard: btpp-active
Comment 4•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/d7beb35b55c7
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox49:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla48
Updated•8 years ago
|
Target Milestone: mozilla48 → mozilla49
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•