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

Issue 1297713004: Fix flakiness in postMessage-related SitePerProcessBrowserTests. (Closed)

Created:
5 years, 4 months ago by alexmos
Modified:
5 years, 4 months ago
Reviewers:
Charlie Reis, nasko
CC:
chromium-reviews, darin-cc_chromium.org, jam; site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix flakiness in postMessage-related SitePerProcessBrowserTests. See https://crbug.com/518729 for the complete description. This CL fixes two underlying issues for flakiness in SitePerProcessBrowserTest.PostMessageWithSubframeOnOpenerChain: 1. ExecuteScript* wasn't properly dealing with domAutomationController messages that might have arrived right after the expected response to ExecuteScript*, but before its message loop shut down. 2. DOMMessageQueue was instantiated after the ExecuteScript* in the test, causing it to never see the message it was waiting for if it happened to arrive on ExecuteScript's message loop above. BUG=518729 Committed: https://crrev.com/17e5753ea2e213295dc6a959be2ff286082faacd Cr-Commit-Position: refs/heads/master@{#343548}

Patch Set 1 #

Total comments: 11

Patch Set 2 : Charlie's comments (and rebase) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -13 lines) Patch
M content/browser/site_per_process_browsertest.cc View 1 3 chunks +5 lines, -10 lines 0 comments Download
M content/public/test/browser_test_utils.cc View 1 chunk +5 lines, -3 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
alexmos
Charlie, can you please take a look? Comment #3 on https://crbug.com/518729 has the background for ...
5 years, 4 months ago (2015-08-14 22:15:07 UTC) #2
Charlie Reis
I think this makes sense, but see my questions below. On 2015/08/14 22:15:07, alexmos wrote: ...
5 years, 4 months ago (2015-08-14 22:54:13 UTC) #3
nasko
A small drive-by nit. https://codereview.chromium.org/1297713004/diff/1/content/browser/site_per_process_browsertest.cc File content/browser/site_per_process_browsertest.cc (right): https://codereview.chromium.org/1297713004/diff/1/content/browser/site_per_process_browsertest.cc#newcode54 content/browser/site_per_process_browsertest.cc:54: content::DOMMessageQueue msg_queue; nit: no need ...
5 years, 4 months ago (2015-08-14 23:21:13 UTC) #5
alexmos
> > Not sure whether to re-enable PostMessageWithSubframeOnOpenerChain for Windows > > now or after ...
5 years, 4 months ago (2015-08-14 23:51:32 UTC) #6
Charlie Reis
Thanks, LGTM. https://codereview.chromium.org/1297713004/diff/1/content/browser/site_per_process_browsertest.cc File content/browser/site_per_process_browsertest.cc (right): https://codereview.chromium.org/1297713004/diff/1/content/browser/site_per_process_browsertest.cc#newcode53 content/browser/site_per_process_browsertest.cc:53: // See https://crbug.com/518729. On 2015/08/14 23:51:32, alexmos ...
5 years, 4 months ago (2015-08-15 00:09:50 UTC) #7
alexmos
Thanks! https://codereview.chromium.org/1297713004/diff/1/content/browser/site_per_process_browsertest.cc File content/browser/site_per_process_browsertest.cc (right): https://codereview.chromium.org/1297713004/diff/1/content/browser/site_per_process_browsertest.cc#newcode53 content/browser/site_per_process_browsertest.cc:53: // See https://crbug.com/518729. On 2015/08/15 00:09:50, Charlie Reis ...
5 years, 4 months ago (2015-08-15 00:57:24 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1297713004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1297713004/20001
5 years, 4 months ago (2015-08-15 00:57:53 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 4 months ago (2015-08-15 02:54:41 UTC) #11
commit-bot: I haz the power
5 years, 4 months ago (2015-08-15 02:55:31 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/17e5753ea2e213295dc6a959be2ff286082faacd
Cr-Commit-Position: refs/heads/master@{#343548}

Powered by Google App Engine
This is Rietveld 408576698