Closed
Bug 1604040
Opened 5 years ago
Closed 5 years ago
Add nsDocShell::BrowsingContext getter
Categories
(Core :: DOM: Core & HTML, enhancement)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: evilpie, Unassigned)
References
(Blocks 1 open bug)
Details
It seems like nsDocShell::mBrowsingContext can never be null. This is still not totally obvious to me. If this is actually the case adding nsDocShell::BrowsingContext() would make this more obvious and would short some callsite. We can also remove some null-checks.
Comment 1•5 years ago
|
||
How about using OwningNonNull
or mozilla::NotNull
to make the constraint obvious to the compiler?
Comment 2•5 years ago
|
||
We already have GetBrowsingContext()
for this. Using the name BrowsingContext
unfortunately requires every reference to the BrowsingContext
type to be fully qualified, which isn't worth the trouble.
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•