https://github.com/web-platform-tests/wpt
Revision 4e5f09f89e6f1976dd49a57ba46cd447c7e19a1e authored by Alex Moshchuk on 13 April 2018, 15:22:14 UTC, committed by Chromium WPT Sync on 13 April 2018, 15:22:14 UTC
Changes from original attempt at https://crrev.com/c/999182:
- fix flakiness in two additional ChromeOS login tests
- fix CSP WPT tests to not depend on ordering between iframe's onload
  and postMessage - see https://crbug.com/832319.

Previously, we sent the IPC to forward a cross-process postMessage
immediately.  This caused a behavioral difference from the
same-process case where the postMessage is always scheduled.  Namely,
in a scenario like this:

  frame.postMessage(...);
  doSomethingThatSendsIPCsToFrame(frame);

the IPCs from JS following the postMessage would've been ordered
incorrectly, causing |frame| to see their side effects after the
postMessage dispatch in the cross-process case, whereas they would be
seen before the postMessage dispatch in the same-process case.  One
example of this is frame.focus(), and another is a frame element
onload event (dispatched via FrameHostMsg_DispatchLoad) arriving after
a postMessage dispatched from an inline script while the frame was
still loading.

To resolve these ordering concerns, this CL changes cross-process
postMessage to do a PostTask on the sender side before sending the
message to the browser process.  This improves the current state of
the world, but does not yet achieve a perfect match for the IPC
ordering in the same-process case - see discussion on the bug.

Bug: 828529
Change-Id: I62a627c501526d09900be4f5bd2c899acf4d1e07
Reviewed-on: https://chromium-review.googlesource.com/999182
Reviewed-by: Xiyuan Xia <xiyuan@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Alex Moshchuk <alexmos@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#550284}
Reviewed-on: https://chromium-review.googlesource.com/1011287
Cr-Commit-Position: refs/heads/master@{#550621}
1 parent f90d3d6
History
Tip revision: 4e5f09f89e6f1976dd49a57ba46cd447c7e19a1e authored by Alex Moshchuk on 13 April 2018, 15:22:14 UTC
Reland: Use PostTask to schedule cross-process postMessage forwarding.
Tip revision: 4e5f09f
File Mode Size
resources
OWNERS -rw-r--r-- 64 bytes
SyntheticResponse.py -rw-r--r-- 891 bytes
clear_resource_timing_functionality.html -rw-r--r-- 1.1 KB
idlharness.html -rw-r--r-- 3.0 KB
iframe-setdomain.sub.html -rw-r--r-- 384 bytes
resource-timing-tojson.html -rw-r--r-- 1.4 KB
resource-timing.html -rw-r--r-- 578 bytes
resource-timing.js -rw-r--r-- 26.0 KB
resource_TAO_cross_origin_redirect_chain.html -rw-r--r-- 2.0 KB
resource_TAO_match_origin.htm -rw-r--r-- 2.2 KB
resource_TAO_match_wildcard.htm -rw-r--r-- 2.1 KB
resource_TAO_multi.htm -rw-r--r-- 2.2 KB
resource_TAO_null.htm -rw-r--r-- 2.0 KB
resource_TAO_origin.htm -rw-r--r-- 2.8 KB
resource_TAO_origin_uppercase.htm -rw-r--r-- 2.2 KB
resource_TAO_space.htm -rw-r--r-- 2.1 KB
resource_TAO_wildcard.htm -rw-r--r-- 2.0 KB
resource_TAO_zero.htm -rw-r--r-- 2.5 KB
resource_cached.htm -rw-r--r-- 1.6 KB
resource_connection_reuse.html -rw-r--r-- 2.1 KB
resource_dedicated_worker.html -rw-r--r-- 1.1 KB
resource_dynamic_insertion.html -rw-r--r-- 2.3 KB
resource_ignore_data_url.html -rw-r--r-- 1.3 KB
resource_ignore_failures.html -rw-r--r-- 1.3 KB
resource_initiator_types.html -rw-r--r-- 7.9 KB
resource_memory_cached.sub.html -rw-r--r-- 3.5 KB
resource_redirects.html -rw-r--r-- 2.4 KB
resource_reparenting.html -rw-r--r-- 2.0 KB
resource_script_types.html -rw-r--r-- 3.0 KB
resource_subframe_self_navigation.html -rw-r--r-- 1.6 KB
resource_timing.worker.js -rw-r--r-- 1.5 KB
resource_timing_TAO_cross_origin_redirect.html -rw-r--r-- 1.8 KB
resource_timing_buffer_full_when_populate_entries.html -rw-r--r-- 1.7 KB
resource_timing_buffer_full_when_shrink_buffer_size.html -rw-r--r-- 1.3 KB
resource_timing_cross_origin_redirect.html -rw-r--r-- 2.4 KB
resource_timing_cross_origin_redirect_chain.html -rw-r--r-- 1.9 KB
resource_timing_same_origin_redirect.html -rw-r--r-- 1.7 KB
resource_timing_store_and_clear_during_callback.html -rw-r--r-- 2.8 KB
single-entry-per-resource.html -rw-r--r-- 1.5 KB
test_resource_timing.html -rw-r--r-- 1.2 KB
test_resource_timing.js -rw-r--r-- 9.1 KB

back to top