Closed Bug 1527321 Opened 6 years ago Closed 5 years ago

Implement BrowsingContext::IsTargetable

Categories

(Core :: DOM: Core & HTML, task, P2)

task

Tracking

()

RESOLVED FIXED
mozilla70
Fission Milestone M4
Tracking Status
firefox70 --- fixed

People

(Reporter: farre, Assigned: u608768)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

nsDocShell can see if it is 'active' using ItemIsActive(nsIDocShellTreeItem* aItem). This isn't reliable in BrowsingContext. We need to utilize BrowsingContext::mClosed to check this, but mClosed is currently always 'false'.

Priority: -- → P3
Component: DOM → DOM: Core & HTML
Assignee: nobody → kmadan
Blocks: improve-bc
No longer blocks: browsingcontext
Status: NEW → ASSIGNED
Type: enhancement → task
Fission Milestone: --- → M4
Priority: P3 → P2

IsTargetable might be a better name for this?

Summary: Implement BrowsingContext::IsActive → Implement BrowsingContext::IsTargetable
Depends on: 1516343

Renames IsActive to IsTargetable, and updates its implementation to check that
the current browsing context is neither closed nor cached.

No longer depends on: 1516343
Pushed by kmadan@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/41203f2b6b34 Implement BrowsingContext::IsTargetable, r=nika
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla70
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: