OOPIF: fix uses of Document::topDocument |
||||
Issue description
There are currently 9 call sites for Document::topDocument(), dealing with cookies, scrolling, SVG, fullscreen, and WebGL. They very likely need to be updated/fixed for OOPIF scenarios.
Currently, Document::topDocument just returns the local root's Document and also has this note:
// FIXME: Not clear what topDocument() should do in the OOPI case--should it return the topmost
// available Document, or something else?
I noticed it's used incorrectly in Document::firstPartyForCookies, which checks whether the top frame is local, but then assumes that topDocument() will return the top frame's Document, which won't work when called from the bottom frame in an A-B-A hierarchy. We should probably try to remove this API completely, given the confusion it's causing.
,
Sep 28 2016
,
Sep 29 2017
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue. Sorry for the inconvenience if the bug really should have been left as Available. If you change it back, also remove the "Hotlist-Recharge-Cold" label. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Sep 29 2017
Still 7 callsites: - 1 in HTMLCanvasElement::GetExecutionContextUrl (returns top doc's url) - 4 in AutoplayUmaHelper::RecordCrossOriginAutoplayResult (top doc passed as last arg of Platform::RecordRapporURL) - 1 in RootScrollerController.cpp in FillsViewport helper function (https://crbug.com/642378) - 1 in SVGRootPainter::PaintReplaced (PaintTiming::From(...<top document>...)) |
||||
►
Sign in to add a comment |
||||
Comment 1 by bugdroid1@chromium.org
, Jun 8 2016