Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(188)

Issue 2468953002: Make mixedContent/insecure-plugin-in-iframe.html test OOPIF-compatible. (Closed)

Created:
4 years, 1 month ago by Łukasz Anforowicz
Modified:
4 years, 1 month ago
Reviewers:
tkent
CC:
alexmos, blink-reviews, chromium-reviews, rune, site-isolation-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make 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)
Łukasz Anforowicz
tkent@, could you please take a look? https://codereview.chromium.org/2468953002/diff/20001/third_party/WebKit/LayoutTests/http/tests/security/mixedContent/insecure-plugin-in-iframe-expected.txt File third_party/WebKit/LayoutTests/http/tests/security/mixedContent/insecure-plugin-in-iframe-expected.txt (right): https://codereview.chromium.org/2468953002/diff/20001/third_party/WebKit/LayoutTests/http/tests/security/mixedContent/insecure-plugin-in-iframe-expected.txt#newcode1 third_party/WebKit/LayoutTests/http/tests/security/mixedContent/insecure-plugin-in-iframe-expected.txt:1: CONSOLE WARNING: ...
4 years, 1 month ago (2016-11-01 18:28:12 UTC) #10
tkent
lgtm
4 years, 1 month ago (2016-11-01 23:03:57 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2468953002/20001
4 years, 1 month ago (2016-11-01 23:04:32 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-01 23:15:49 UTC) #15
commit-bot: I haz the power
4 years, 1 month ago (2016-11-01 23:19:28 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/cd8d931dc59e273273701feae744adff8714c27f
Cr-Commit-Position: refs/heads/master@{#429147}

Powered by Google App Engine
This is Rietveld 408576698