|
|
Chromium Code Reviews|
Created:
3 years, 8 months ago by Avi (use Gerrit) Modified:
3 years, 8 months ago Reviewers:
Nico CC:
chromium-reviews, jam, nasko+codewatch_chromium.org, darin-cc_chromium.org, creis+watch_chromium.org Target Ref:
refs/heads/master Project:
chromium Visibility:
Public. |
DescriptionFix races in tests waiting for beforeunload dialogs.
BUG=707342, 130411
TEST=no flakes
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation
Review-Url: https://codereview.chromium.org/2787393003
Cr-Commit-Position: refs/heads/master@{#462293}
Committed: https://chromium.googlesource.com/chromium/src/+/3c70a0d266c02d7e91fc5a2e5649247367a8fecc
Patch Set 1 #Patch Set 2 : fixes #Patch Set 3 : one more #Patch Set 4 : rev #
Total comments: 1
Messages
Total messages: 40 (33 generated)
The CQ bit was checked by avi@chromium.org to run a CQ dry run
Description was changed from ========== Fix hangs in tests waiting for beforeunload dialogs. BUG=707342 TEST=no flakes ========== to ========== Fix hangs in tests waiting for beforeunload dialogs. BUG=707342 TEST=no flakes CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation ==========
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== Fix hangs in tests waiting for beforeunload dialogs. BUG=707342 TEST=no flakes CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation ========== to ========== Fix hangs in tests waiting for beforeunload dialogs. BUG=707342, 130411 TEST=no flakes CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation ==========
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
Description was changed from ========== Fix hangs in tests waiting for beforeunload dialogs. BUG=707342, 130411 TEST=no flakes CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation ========== to ========== Fix races in tests waiting for beforeunload dialogs. BUG=707342, 130411 TEST=no flakes CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation ==========
Description was changed from ========== Fix races in tests waiting for beforeunload dialogs. BUG=707342, 130411 TEST=no flakes CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation ========== to ========== Fix races in tests waiting for beforeunload dialogs. BUG=707342, 130411, 655628 TEST=no flakes CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation ==========
Description was changed from ========== Fix races in tests waiting for beforeunload dialogs. BUG=707342, 130411, 655628 TEST=no flakes CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation ========== to ========== Fix races in tests waiting for beforeunload dialogs. BUG=707342, 130411 TEST=no flakes CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation ==========
Description was changed from ========== Fix races in tests waiting for beforeunload dialogs. BUG=707342, 130411 TEST=no flakes CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation ========== to ========== Fix races in tests waiting for beforeunload dialogs. BUG=707342, 130411, 655628 TEST=no flakes CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation ==========
avi@chromium.org changed reviewers: + clamy@chromium.org, jam@chromium.org
Description was changed from ========== Fix races in tests waiting for beforeunload dialogs. BUG=707342, 130411, 655628 TEST=no flakes CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation ========== to ========== Fix races in tests waiting for beforeunload dialogs. BUG=707342, 130411 TEST=no flakes CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation ==========
The CQ bit was checked by avi@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
avi@chromium.org changed reviewers: - clamy@chromium.org
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_androi...)
The CQ bit was checked by avi@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by avi@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_tsan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by avi@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
John, please take a look.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
avi@chromium.org changed reviewers: + thakis@chromium.org - jam@chromium.org
Nico, can you take this?
Two questions: 1. Shouldn't the beforeunload timer be disabled before navigations to it instead of after? 2. This is a medium amount of copy-pasta does it make sense to try and consolidate it into some "NavigateToOnUnloadURL()" function? https://codereview.chromium.org/2787393003/diff/60001/chrome/browser/ui/brows... File chrome/browser/ui/browser_browsertest.cc (right): https://codereview.chromium.org/2787393003/diff/60001/chrome/browser/ui/brows... chrome/browser/ui/browser_browsertest.cc:838: contents->GetMainFrame()->DisableBeforeUnloadHangMonitorForTesting(); Shouldn't you do this before the navigation to the beforeunload page right above? (question applies to everywhere in this file)
On 2017/04/05 19:26:00, Nico wrote: > 1. Shouldn't the beforeunload timer be disabled before navigations to it instead > of after? I don't see why it would need to be. It would work either way. When you load a page with a beforeunload handler, you need to disable the timer before you *leave* that page. Loading that page is fine. So I let the pages load and immediately disable the timer afterwards. > 2. This is a medium amount of copy-pasta does it make sense to try and > consolidate it into some "NavigateToOnUnloadURL()" function? Every test has some variation of a flavor of beforeunload. I'm not going to second-guess the contents of the pages loaded by these tests. (Also, we're talking beforeunload, not unload.)
lgtm
The CQ bit was checked by avi@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch.
Bot data: {"patchset_id": 60001, "attempt_start_ts": 1491433222320710,
"parent_rev": "c467f3db3f1e4d2aef973373740d7213e6660246", "commit_rev":
"3c70a0d266c02d7e91fc5a2e5649247367a8fecc"}
Message was sent while issue was closed.
Description was changed from ========== Fix races in tests waiting for beforeunload dialogs. BUG=707342, 130411 TEST=no flakes CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation ========== to ========== Fix races in tests waiting for beforeunload dialogs. BUG=707342, 130411 TEST=no flakes CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2787393003 Cr-Commit-Position: refs/heads/master@{#462293} Committed: https://chromium.googlesource.com/chromium/src/+/3c70a0d266c02d7e91fc5a2e5649... ==========
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/3c70a0d266c02d7e91fc5a2e5649... |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
