Open
Bug 1513400
Opened 7 years ago
Updated 10 months ago
Create target check convenience methods in nsDocShellLoadState
Categories
(Core :: DOM: Navigation, enhancement, P3)
Core
DOM: Navigation
Tracking
()
REOPENED
People
(Reporter: qdot, Unassigned)
References
Details
From this comment by :nika on https://phabricator.services.mozilla.com/D13488:
> I wonder if LoadState should have a TargetIs(...) method or similar, because I imagine we'll be doing these checks a good amount.
>
> Perhaps even adding "IsTargetBlank()", "IsTargetParent()", "IsTargetTop()", "IsTargetSelf()"?
>
> It might also be good to have a "HasTarget()" method to get rid of some of the empty() checks. *shrug*.
And
> Hmm, I wonder if there should be a ClearTarget() method rather than setting target to the empty string...
| Reporter | ||
Updated•6 years ago
|
Assignee: kyle → nobody
Comment 1•4 years ago
|
||
nsDocShell has been changed a lot (and replaced by BrowsingContext at a number of places) to make it Fission compatible via other bugs. So, closing all of this bug list as WFM.
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → WORKSFORME
Comment 2•10 months ago
|
||
This particular code is still same as when it was reviewed:
aLoadState->Target().LowerCaseEqualsLiteral("_self") ||
aLoadState->Target().LowerCaseEqualsLiteral("_parent") ||
aLoadState->Target().LowerCaseEqualsLiteral("_top")) {
https://phabricator.services.mozilla.com/D13488?id=41317#inline-76100
Might still be worth tracking.
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
You need to log in
before you can comment on or make changes to this bug.
Description
•