Closed Bug 1523439 Opened 6 years ago Closed 4 years ago

Audit usage of nsLayoutUtils::IsAncestorFrameCrossDoc

Categories

(Core :: Layout, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
Fission Milestone M7

People

(Reporter: emilio, Assigned: jwatt)

References

(Blocks 1 open bug)

Details

Replacing for IsProperAncestorFrame if needed.

Depends on: 1523500
Summary: Audit usage of nsLayoutUtils::IsCrossDocAncestorFrame → Audit usage of nsLayoutUtils::IsAncestorFrameCrossDoc
Priority: -- → P3

I didn't see any consumers of this function that we need to worry about. Things like event targeting and display list pruning for pages are not something we need to worry about across iframe process boundaries.

Assignee: nobody → jwatt
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED

Oops, I misread the function name in the title.

Status: RESOLVED → REOPENED
Resolution: FIXED → ---

I cleaned up my own notes that I had on the consumers of this method:

nsDisplayPerspective::CreateWebRenderCommands:

mattwoodrow says this should not be using the cross-document variant
of this function. I think we could fix this as part of bug 1523500
(I mentioned it over there in bug 1523500 comment 5).

nsIPresShell::ClearMouseCapture:

Covered by bug 1533499.

nsRootPresContext::ComputePluginGeometryUpdates:

Covered by bug 1525720?

GetClosest in PositionedEventTarget.cpp:

Henri/Botond are working on making sure that events go to the correct process
using the APZ code, so this reaching across document boundaries should be
okay at that point.

DOMIntersectionObserver::Update:

This is fine. Script can't observe elements that it can't reach (i.e. anything
cross-document would need to belong to the same origin etc.). The exception to
that is when script passes 'null' to observe intersection with the root
viewport.

nsLayoutUtils::IsProperAncestorFrameCrossDoc

No issues - see comment 1.

Depends on: 1533499, 1518911

jwatt, can you re-evaluate this for Fission and triage into appropriate Fission milestone?
M7: launch Beta experiment
M7a: Add Linux and BFCache to Beta experiment, increase beta experiment %age, automation test coverage for Fission
M8: Launch Release experiment
MVP: Fission rides the trains

Fission Milestone: --- → ?
Flags: needinfo?(jwatt)

nsDisplayPerspective::CreateWebRenderCommands seems to be the remaining case and (as mentioned in comment 0) we can use bug 1523500 for that. So it looks like we're now done here.

Status: REOPENED → RESOLVED
Fission Milestone: ? → M7
Closed: 6 years ago4 years ago
Flags: needinfo?(jwatt)
Resolution: --- → FIXED
See Also: → 1700245
Blocks: 1700245
You need to log in before you can comment on or make changes to this bug.