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

Issue 1374053002: Remove AboutToNavigateRenderFrame, issue custom notification for DevTools. (Closed)

Created:
5 years, 2 months ago by dgozman
Modified:
5 years, 2 months ago
Reviewers:
Charlie Reis, yurys
CC:
chromium-reviews, tim+watch_chromium.org, nasko+codewatch_chromium.org, creis+watch_chromium.org, zea+watch_chromium.org, maxbogue+watch_chromium.org, jam, yurys, pvalenzuela+watch_chromium.org, plaree+watch_chromium.org, devtools-reviews_chromium.org, darin-cc_chromium.org, pfeldman
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove AboutToNavigateRenderFrame, issue custom notification for DevTools. DevTools gets a notification right before FrameMsg_Navigate is sent. This ensures that we can pause in onbeforeunload, pretend that navigation did not happen yet and debug the page. As DevTools was the last client of AboutToNavigateRenderFrame, the notification itself is removed. BUG=131371 TBR=pavely@chromium.org (for test) Committed: https://crrev.com/3723dfcf3d1ba40102029e4a1f989539ab5c9022 Cr-Commit-Position: refs/heads/master@{#352389}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Wrapped with SendNavigateMessage #

Patch Set 3 : rebased, win test fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -80 lines) Patch
M chrome/browser/devtools/devtools_ui_bindings.cc View 2 chunks +7 lines, -10 lines 0 comments Download
M chrome/browser/ui/sync/one_click_signin_sync_observer_unittest.cc View 1 2 7 chunks +8 lines, -8 lines 0 comments Download
M content/browser/devtools/protocol/devtools_protocol_browsertest.cc View 1 2 6 chunks +36 lines, -18 lines 0 comments Download
M content/browser/devtools/render_frame_devtools_agent_host.h View 3 chunks +5 lines, -2 lines 0 comments Download
M content/browser/devtools/render_frame_devtools_agent_host.cc View 2 chunks +8 lines, -1 line 0 comments Download
M content/browser/frame_host/navigator_delegate.h View 1 chunk +0 lines, -5 lines 0 comments Download
M content/browser/frame_host/navigator_impl.cc View 1 1 chunk +0 lines, -6 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 1 1 chunk +8 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 4 chunks +15 lines, -7 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 chunk +0 lines, -3 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 1 chunk +0 lines, -10 lines 0 comments Download
M content/public/browser/web_contents_observer.h View 1 chunk +0 lines, -10 lines 0 comments Download

Messages

Total messages: 26 (11 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/1374053002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1374053002/1
5 years, 2 months ago (2015-09-28 22:18:12 UTC) #2
dgozman
Hi, Could you please take a look? This is a successor of https://codereview.chromium.org/1358153002/. Turned out ...
5 years, 2 months ago (2015-09-28 22:20:26 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win8_chromium_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_ng/builds/46515) win_chromium_x64_rel_ng on ...
5 years, 2 months ago (2015-09-28 22:59:49 UTC) #6
yurys
lgtm https://codereview.chromium.org/1374053002/diff/1/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/1374053002/diff/1/content/browser/frame_host/render_frame_host_impl.cc#newcode1710 content/browser/frame_host/render_frame_host_impl.cc:1710: Send(new FrameMsg_Navigate(routing_id_, common_params, start_params, Let's extract this into ...
5 years, 2 months ago (2015-09-28 23:37:30 UTC) #7
Charlie Reis
Yes, this is much nicer. LGTM once the test passes the bots.
5 years, 2 months ago (2015-09-28 23:44:30 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/1374053002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1374053002/1
5 years, 2 months ago (2015-09-29 18:29:04 UTC) #10
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win8_chromium_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_ng/builds/46956)
5 years, 2 months ago (2015-09-29 19:17:46 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1374053002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1374053002/20001
5 years, 2 months ago (2015-10-01 01:04:09 UTC) #14
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win8_chromium_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_ng/builds/47904)
5 years, 2 months ago (2015-10-01 01:43:10 UTC) #16
dgozman
https://chromiumcodereview.appspot.com/1374053002/diff/1/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://chromiumcodereview.appspot.com/1374053002/diff/1/content/browser/frame_host/render_frame_host_impl.cc#newcode1710 content/browser/frame_host/render_frame_host_impl.cc:1710: Send(new FrameMsg_Navigate(routing_id_, common_params, start_params, On 2015/09/28 23:37:30, yurys wrote: ...
5 years, 2 months ago (2015-10-01 20:15:26 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1374053002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1374053002/40001
5 years, 2 months ago (2015-10-01 20:16:36 UTC) #19
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/111833)
5 years, 2 months ago (2015-10-01 20:22:57 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1374053002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1374053002/40001
5 years, 2 months ago (2015-10-05 18:16:24 UTC) #24
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 2 months ago (2015-10-05 19:40:23 UTC) #25
commit-bot: I haz the power
5 years, 2 months ago (2015-10-05 19:40:59 UTC) #26
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/3723dfcf3d1ba40102029e4a1f989539ab5c9022
Cr-Commit-Position: refs/heads/master@{#352389}

Powered by Google App Engine
This is Rietveld 408576698