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

Issue 2062133005: Add a (disabled) test to demonstrate child frame creation race. (Closed)

Created:
4 years, 6 months ago by lazyboy
Modified:
4 years, 6 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a (disabled) test to demonstrate child frame creation race. This test demonstrates that browser/ process can encounter a child frame creation message after its parent/main frame got deleted. This will hit a check in web_contents_observer_sanity_checker.cc, specifically: through WebContentsObserverSanityChecker::RenderFrameHostChange(), AssertRenderFrameExists(new_host->GetParent()) will fail complaining: "Check failed: render_frame_created_happened..." An app's main frame/window is created through chrome.app.window.create(). The main frame creates a child <iframe> in its window.onload handler, but the test also tries to shutdown inside chrome.app.window.create()'s creation callback. This exposes the race mentioned above. BUG=620194 Tests=Without fixing the underlying cause, the test will flake, it locally fails at least once in every 10 runs. No --site-per-process or --isolate-extensions flag is necessary: ./out/Debug/browser_tests --gtest_filter=PlatformAppBrowserTest.AppWindowIframe --gtest_also_run_disabled_tests Committed: https://crrev.com/5c038c14402bbb9d73aeae6a8642f1595d2fc75f Cr-Commit-Position: refs/heads/master@{#400353}

Patch Set 1 #

Patch Set 2 : manifest_version #

Patch Set 3 : comments from Devlin #

Total comments: 5

Patch Set 4 : sync @tott #

Patch Set 5 : actually disable the test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -0 lines) Patch
M chrome/browser/apps/app_browsertest.cc View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/platform_apps/app_window_send_message/main.html View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/app_window_send_message/main.js View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/platform_apps/app_window_send_message/manifest.json View 1 1 chunk +1 line, -1 line 0 comments Download
A chrome/test/data/extensions/platform_apps/app_window_send_message/test.js View 1 2 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (9 generated)
lazyboy
See the bug for more context.
4 years, 6 months ago (2016-06-15 03:16:33 UTC) #2
Devlin
On 2016/06/15 03:16:33, lazyboy wrote: > See the bug for more context. There doesn't seem ...
4 years, 6 months ago (2016-06-15 15:16:53 UTC) #3
lazyboy
Bug id attached. I've added a note about shutdown. Since the test waits for the ...
4 years, 6 months ago (2016-06-15 18:43:47 UTC) #5
Devlin
https://codereview.chromium.org/2062133005/diff/40001/chrome/test/data/extensions/platform_apps/app_window_send_message/test.js File chrome/test/data/extensions/platform_apps/app_window_send_message/test.js (right): https://codereview.chromium.org/2062133005/diff/40001/chrome/test/data/extensions/platform_apps/app_window_send_message/test.js#newcode8 chrome/test/data/extensions/platform_apps/app_window_send_message/test.js:8: // This is the last step the test does ...
4 years, 6 months ago (2016-06-15 19:42:33 UTC) #6
lazyboy
https://codereview.chromium.org/2062133005/diff/40001/chrome/test/data/extensions/platform_apps/app_window_send_message/test.js File chrome/test/data/extensions/platform_apps/app_window_send_message/test.js (right): https://codereview.chromium.org/2062133005/diff/40001/chrome/test/data/extensions/platform_apps/app_window_send_message/test.js#newcode8 chrome/test/data/extensions/platform_apps/app_window_send_message/test.js:8: // This is the last step the test does ...
4 years, 6 months ago (2016-06-15 20:08:04 UTC) #7
Devlin
https://codereview.chromium.org/2062133005/diff/40001/chrome/test/data/extensions/platform_apps/app_window_send_message/test.js File chrome/test/data/extensions/platform_apps/app_window_send_message/test.js (right): https://codereview.chromium.org/2062133005/diff/40001/chrome/test/data/extensions/platform_apps/app_window_send_message/test.js#newcode8 chrome/test/data/extensions/platform_apps/app_window_send_message/test.js:8: // This is the last step the test does ...
4 years, 6 months ago (2016-06-15 20:13:44 UTC) #8
lazyboy
https://codereview.chromium.org/2062133005/diff/40001/chrome/test/data/extensions/platform_apps/app_window_send_message/test.js File chrome/test/data/extensions/platform_apps/app_window_send_message/test.js (right): https://codereview.chromium.org/2062133005/diff/40001/chrome/test/data/extensions/platform_apps/app_window_send_message/test.js#newcode8 chrome/test/data/extensions/platform_apps/app_window_send_message/test.js:8: // This is the last step the test does ...
4 years, 6 months ago (2016-06-15 20:22:52 UTC) #9
Devlin
https://codereview.chromium.org/2062133005/diff/40001/chrome/test/data/extensions/platform_apps/app_window_send_message/test.js File chrome/test/data/extensions/platform_apps/app_window_send_message/test.js (right): https://codereview.chromium.org/2062133005/diff/40001/chrome/test/data/extensions/platform_apps/app_window_send_message/test.js#newcode8 chrome/test/data/extensions/platform_apps/app_window_send_message/test.js:8: // This is the last step the test does ...
4 years, 6 months ago (2016-06-15 20:34:44 UTC) #10
lazyboy
On 2016/06/15 20:34:44, Devlin wrote: > https://codereview.chromium.org/2062133005/diff/40001/chrome/test/data/extensions/platform_apps/app_window_send_message/test.js > File chrome/test/data/extensions/platform_apps/app_window_send_message/test.js > (right): > > https://codereview.chromium.org/2062133005/diff/40001/chrome/test/data/extensions/platform_apps/app_window_send_message/test.js#newcode8 ...
4 years, 6 months ago (2016-06-15 21:16:23 UTC) #11
Devlin
On 2016/06/15 21:16:23, lazyboy wrote: > On 2016/06/15 20:34:44, Devlin wrote: > > > https://codereview.chromium.org/2062133005/diff/40001/chrome/test/data/extensions/platform_apps/app_window_send_message/test.js ...
4 years, 6 months ago (2016-06-15 22:08:36 UTC) #12
lazyboy
+Antony for chrome/browser/apps/app_browsertest.cc
4 years, 6 months ago (2016-06-15 23:09:50 UTC) #14
asargent_no_longer_on_chrome
lgtm
4 years, 6 months ago (2016-06-15 23:59:58 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2062133005/80001
4 years, 6 months ago (2016-06-16 01:30:35 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_gn_rel/builds/128104)
4 years, 6 months ago (2016-06-16 02:33:36 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2062133005/80001
4 years, 6 months ago (2016-06-17 03:24:28 UTC) #22
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 6 months ago (2016-06-17 04:21:17 UTC) #24
commit-bot: I haz the power
4 years, 6 months ago (2016-06-17 04:22:45 UTC) #26
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/5c038c14402bbb9d73aeae6a8642f1595d2fc75f
Cr-Commit-Position: refs/heads/master@{#400353}

Powered by Google App Engine
This is Rietveld 408576698