Chromium Code Reviews
DescriptionMake mixedContent/insecure-plugin-in-iframe.html test OOPIF-compatible.
The CL makes the following changes:
- Moves the call to
internals.updateLayoutIgnorePendingStylesheetsAndRunPostLayoutTasks
from the parent frame into the child frame. This ensures that this
method works on a local document - this is important because the
method doesn't support OOPIFs.
- Delays the call to
internals.updateLayoutIgnorePendingStylesheetsAndRunPostLayoutTasks
via window.setTimeout. This ensures that the mixed content message
does not include the line number of the call (and so appears the same
with an without OOPIFs). The line number used to indicate which line
called internals.updateLayoutIgnore...heetsAndRunPostLayoutTasks and
this piece of information is artificial (and not essential to test
for) - no real page will call this test-only window.internals method.
- To make sure the test finishes *after* the delayed call to
internals.updateLayoutIgnorePendingStylesheetsAndRunPostLayoutTasks
a pair of testRunner.waitUntilDone / testRunner.notifyDone calls
has been added. Note that the subframe used to post a "done"
message back to the opener, but this message was never listened to
(and so the postMessage call can be deleted).
BUG=660872
Committed: https://crrev.com/cd8d931dc59e273273701feae744adff8714c27f
Cr-Commit-Position: refs/heads/master@{#429147}
Patch Set 1 #Patch Set 2 : No line numbers (by delaying mixed content message via setTimeout). #
Total comments: 3
Messages
Total messages: 17 (12 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||