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

Issue 1849013004: Fix JavaScript alerts from frames with oopif on, after a cross-process click. (Closed)

Created:
4 years, 8 months ago by Avi (use Gerrit)
Modified:
4 years, 8 months ago
Reviewers:
Charlie Reis, nasko
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@alertfix
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix JavaScript alerts from frames with oopif on, after a cross-process click. BUG=453893, 593482 TEST=as in bug CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/6b8dbb34625fc40457dcffc75ae0409176d843af Cr-Commit-Position: refs/heads/master@{#386158}

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : ordering #

Total comments: 3

Patch Set 4 : cleaner re swapped out #

Total comments: 6

Patch Set 5 : fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -50 lines) Patch
M content/browser/frame_host/render_frame_host_impl.h View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.cc View 1 2 3 4 1 chunk +2 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.h View 1 chunk +0 lines, -6 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M content/browser/web_contents/web_contents_impl_browsertest.cc View 1 2 3 4 3 chunks +20 lines, -9 lines 0 comments Download
M content/common/frame_messages.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M content/common/view_messages.h View 1 2 3 4 1 chunk +0 lines, -5 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 6 chunks +11 lines, -9 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 2 chunks +0 lines, -6 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 3 chunks +0 lines, -8 lines 0 comments Download

Messages

Total messages: 37 (14 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1849013004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1849013004/1
4 years, 8 months ago (2016-04-01 20:47:32 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_dbg_simulator_gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_gn/builds/12716) ios_rel_device_gn on ...
4 years, 8 months ago (2016-04-01 20:50:27 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1849013004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1849013004/20001
4 years, 8 months ago (2016-04-01 21:09:16 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/47123)
4 years, 8 months ago (2016-04-01 21:46:02 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1849013004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1849013004/40001
4 years, 8 months ago (2016-04-02 17:45:28 UTC) #10
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-02 19:10:48 UTC) #12
Avi (use Gerrit)
Charlie, because you introduced this in https://codereview.chromium.org/50223002 . That also modified BrowserTest.CrossProcessNavCancelsDialogs to test this, ...
4 years, 8 months ago (2016-04-03 23:59:26 UTC) #14
Avi (use Gerrit)
On 2016/04/03 23:59:26, Avi wrote: > Charlie, because you introduced this in https://codereview.chromium.org/50223002 > . ...
4 years, 8 months ago (2016-04-04 01:47:18 UTC) #15
nasko
Just one question. Otherwise it looks fine. https://codereview.chromium.org/1849013004/diff/40001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/1849013004/diff/40001/content/renderer/render_frame_impl.cc#newcode1581 content/renderer/render_frame_impl.cc:1581: suppress_dialogs_until_swap_out_ = ...
4 years, 8 months ago (2016-04-04 22:00:16 UTC) #16
Avi (use Gerrit)
Nasko, As I noted, please hold off on this. I don't fully understand this code, ...
4 years, 8 months ago (2016-04-05 01:31:18 UTC) #17
Avi (use Gerrit)
https://codereview.chromium.org/1849013004/diff/40001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/1849013004/diff/40001/content/renderer/render_frame_impl.cc#newcode1581 content/renderer/render_frame_impl.cc:1581: suppress_dialogs_until_swap_out_ = false; On 2016/04/04 22:00:16, nasko (very slow ...
4 years, 8 months ago (2016-04-06 22:20:44 UTC) #18
nasko
On 2016/04/06 22:20:44, Avi wrote: > https://codereview.chromium.org/1849013004/diff/40001/content/renderer/render_frame_impl.cc > File content/renderer/render_frame_impl.cc (right): > > https://codereview.chromium.org/1849013004/diff/40001/content/renderer/render_frame_impl.cc#newcode1581 > ...
4 years, 8 months ago (2016-04-06 22:28:30 UTC) #19
dcheng
On 2016/04/06 at 22:28:30, nasko wrote: > On 2016/04/06 22:20:44, Avi wrote: > > https://codereview.chromium.org/1849013004/diff/40001/content/renderer/render_frame_impl.cc ...
4 years, 8 months ago (2016-04-07 01:54:47 UTC) #20
Avi (use Gerrit)
On 2016/04/07 01:54:47, dcheng wrote: > On 2016/04/06 at 22:28:30, nasko wrote: > > On ...
4 years, 8 months ago (2016-04-07 01:58:40 UTC) #21
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1849013004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1849013004/60001
4 years, 8 months ago (2016-04-07 14:41:06 UTC) #23
Avi (use Gerrit)
Nasko, Charlie, PTAL.
4 years, 8 months ago (2016-04-07 17:40:57 UTC) #24
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-07 17:46:06 UTC) #26
Charlie Reis
Nice. LGTM! There's a chance that this logic might be technically unnecessary (in terms of ...
4 years, 8 months ago (2016-04-08 17:27:39 UTC) #28
nasko
LGTM with a nit. https://codereview.chromium.org/1849013004/diff/60001/content/browser/web_contents/web_contents_impl_browsertest.cc File content/browser/web_contents/web_contents_impl_browsertest.cc (right): https://codereview.chromium.org/1849013004/diff/60001/content/browser/web_contents/web_contents_impl_browsertest.cc#newcode990 content/browser/web_contents/web_contents_impl_browsertest.cc:990: // Navigate the top frame ...
4 years, 8 months ago (2016-04-08 17:33:23 UTC) #29
Avi (use Gerrit)
https://codereview.chromium.org/1849013004/diff/60001/content/browser/frame_host/render_frame_host_impl.h File content/browser/frame_host/render_frame_host_impl.h (right): https://codereview.chromium.org/1849013004/diff/60001/content/browser/frame_host/render_frame_host_impl.h#newcode564 content/browser/frame_host/render_frame_host_impl.h:564: // separately so that the PageGroupLoadDeferrers of any current ...
4 years, 8 months ago (2016-04-08 17:44:01 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1849013004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1849013004/80001
4 years, 8 months ago (2016-04-08 17:45:37 UTC) #33
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 8 months ago (2016-04-08 18:59:48 UTC) #35
commit-bot: I haz the power
4 years, 8 months ago (2016-04-08 19:01:20 UTC) #37
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/6b8dbb34625fc40457dcffc75ae0409176d843af
Cr-Commit-Position: refs/heads/master@{#386158}

Powered by Google App Engine
This is Rietveld 408576698