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

Issue 2666193002: Switch RenderViewContextMenu to use RequestOpenURL (Closed)

Created:
3 years, 10 months ago by Patrick Noland
Modified:
3 years, 10 months ago
CC:
chromium-reviews, jam, nasko+codewatch_chromium.org, darin-cc_chromium.org, creis+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Switch RenderViewContextMenu to use RequestOpenURL Currently, RenderViewContextMenu calls OpenURL on the source WebContents when "open link in new tab" is activated. This is almost identical to RequestOpenURL, except that it doesn't notify WebContentsObservers. This change: Changes NavigatorDelegate's RequestOpenURL to OpenURL, with a signature identical to PageNavigator's OpenURL Adds source_render_frame_host_id and source_render_process_id to OpenURLParams Populates the above ids in NavigatorImpl's RequestOpenURL Populates the above ids in RenderViewContextMenu's call to OpenURL Removes RenderViewContextMenu's NotifyURLOpened BUG=688214 R=nasko@chromium.org, creis@chromium.org CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2666193002 Cr-Commit-Position: refs/heads/master@{#452151} Committed: https://chromium.googlesource.com/chromium/src/+/48894465b91ec112cbb9bd92e37f4c83010c14be

Patch Set 1 #

Patch Set 2 : Change existing interface #

Patch Set 3 : Add started_from_context_menu #

Total comments: 7

Patch Set 4 : cleanup #

Total comments: 14

Patch Set 5 : Requested fixes #

Total comments: 4

Patch Set 6 : CHECK site instance matches #

Total comments: 2

Patch Set 7 : Initialize frame_id to MSG_ROUTING_NONE #

Total comments: 13

Patch Set 8 : Address Charlie's comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -57 lines) Patch
M chrome/browser/extensions/api/web_navigation/web_navigation_api.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/web_navigation/web_navigation_api.cc View 1 2 4 5 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/renderer_context_menu/render_view_context_menu.h View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/renderer_context_menu/render_view_context_menu.cc View 1 2 3 4 5 6 2 chunks +0 lines, -19 lines 1 comment Download
M components/renderer_context_menu/render_view_context_menu_base.h View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M components/renderer_context_menu/render_view_context_menu_base.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -4 lines 0 comments Download
M content/browser/frame_host/interstitial_page_impl.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/frame_host/interstitial_page_impl.cc View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigator_delegate.h View 1 2 3 4 1 chunk +2 lines, -3 lines 0 comments Download
M content/browser/frame_host/navigator_impl.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 2 chunks +18 lines, -19 lines 0 comments Download
M content/public/browser/page_navigator.h View 1 2 3 4 5 6 7 2 chunks +8 lines, -0 lines 0 comments Download
M content/public/browser/web_contents_observer.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M content/test/web_contents_observer_sanity_checker.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M content/test/web_contents_observer_sanity_checker.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 94 (65 generated)
Patrick Noland
Please let me know how this change looks. I'm not 100% committed to this approach, ...
3 years, 10 months ago (2017-02-02 20:11:43 UTC) #18
Charlie Reis
Thanks for putting this together. Can you file a bug to track this? I'd like ...
3 years, 10 months ago (2017-02-02 23:34:23 UTC) #19
ncarter (slow)
On 2017/02/02 23:34:23, Charlie Reis (OOO til Feb 13) wrote: > Thanks for putting this ...
3 years, 10 months ago (2017-02-02 23:47:07 UTC) #20
Charlie Reis
On 2017/02/02 23:47:07, ncarter (away) wrote: > I'm also on vacation starting basically now, so ...
3 years, 10 months ago (2017-02-02 23:57:04 UTC) #21
Patrick Noland
On 2017/02/02 23:57:04, Charlie Reis (OOO til Feb 13) wrote: > On 2017/02/02 23:47:07, ncarter ...
3 years, 10 months ago (2017-02-03 01:35:36 UTC) #22
nasko
On 2017/02/03 01:35:36, Patrick Noland wrote: > On 2017/02/02 23:57:04, Charlie Reis (OOO til Feb ...
3 years, 10 months ago (2017-02-07 19:39:13 UTC) #24
nasko
https://codereview.chromium.org/2666193002/diff/40001/components/renderer_context_menu/render_view_context_menu_base.cc File components/renderer_context_menu/render_view_context_menu_base.cc (left): https://codereview.chromium.org/2666193002/diff/40001/components/renderer_context_menu/render_view_context_menu_base.cc#oldcode399 components/renderer_context_menu/render_view_context_menu_base.cc:399: NotifyURLOpened(url, new_contents); On 2017/02/02 23:34:22, Charlie Reis (OOO til ...
3 years, 10 months ago (2017-02-07 19:39:34 UTC) #25
Patrick Noland
On 2017/02/07 19:39:34, nasko (very slow) wrote: > https://codereview.chromium.org/2666193002/diff/40001/components/renderer_context_menu/render_view_context_menu_base.cc > File components/renderer_context_menu/render_view_context_menu_base.cc (left): > > ...
3 years, 10 months ago (2017-02-08 18:23:00 UTC) #30
Patrick Noland
> The current behavior is to only call DidOpenRequestedURL when a new WebContents > is ...
3 years, 10 months ago (2017-02-08 18:29:13 UTC) #31
nasko
On 2017/02/08 18:29:13, Patrick Noland wrote: > > The current behavior is to only call ...
3 years, 10 months ago (2017-02-09 00:04:53 UTC) #32
Patrick Noland
Hi Nasko, This patchset: - Merges OpenURL and RequestOpenURL, although OpenURL exists on two separate ...
3 years, 10 months ago (2017-02-10 22:42:55 UTC) #39
nasko
Thanks a ton for this work! It is mostly there and I've added a few ...
3 years, 10 months ago (2017-02-14 00:10:23 UTC) #40
Patrick Noland
Nasko, PTAL https://codereview.chromium.org/2666193002/diff/100001/components/renderer_context_menu/render_view_context_menu_base.cc File components/renderer_context_menu/render_view_context_menu_base.cc (left): https://codereview.chromium.org/2666193002/diff/100001/components/renderer_context_menu/render_view_context_menu_base.cc#oldcode399 components/renderer_context_menu/render_view_context_menu_base.cc:399: NotifyURLOpened(url, new_contents); On 2017/02/14 00:10:22, nasko wrote: ...
3 years, 10 months ago (2017-02-14 01:16:17 UTC) #43
nasko
https://codereview.chromium.org/2666193002/diff/120001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/2666193002/diff/120001/content/browser/web_contents/web_contents_impl.cc#newcode2581 content/browser/web_contents/web_contents_impl.cc:2581: I realized we discussed one thing I forgot to ...
3 years, 10 months ago (2017-02-14 01:20:11 UTC) #44
Patrick Noland
PTAL https://codereview.chromium.org/2666193002/diff/120001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/2666193002/diff/120001/content/browser/web_contents/web_contents_impl.cc#newcode2581 content/browser/web_contents/web_contents_impl.cc:2581: On 2017/02/14 01:20:11, nasko wrote: > I realized ...
3 years, 10 months ago (2017-02-14 21:34:00 UTC) #51
nasko
Let's wait for Charlie to look over the CL, as he was intrigued by the ...
3 years, 10 months ago (2017-02-15 00:58:07 UTC) #52
Patrick Noland
Charlie, PTAL https://codereview.chromium.org/2666193002/diff/140001/content/public/browser/page_navigator.h File content/public/browser/page_navigator.h (right): https://codereview.chromium.org/2666193002/diff/140001/content/public/browser/page_navigator.h#newcode75 content/public/browser/page_navigator.h:75: int render_frame_id; On 2017/02/15 00:58:07, nasko wrote: ...
3 years, 10 months ago (2017-02-15 22:30:42 UTC) #57
Charlie Reis
I like it. One step closer to removing NOTIFICATION_RETARGETING, too, which is nice. Please update ...
3 years, 10 months ago (2017-02-16 00:21:09 UTC) #58
Patrick Noland
Adding avi@ for owners review of renderer_context_menu files https://codereview.chromium.org/2666193002/diff/160001/chrome/browser/extensions/api/web_navigation/web_navigation_api.cc File chrome/browser/extensions/api/web_navigation/web_navigation_api.cc (right): https://codereview.chromium.org/2666193002/diff/160001/chrome/browser/extensions/api/web_navigation/web_navigation_api.cc#newcode124 chrome/browser/extensions/api/web_navigation/web_navigation_api.cc:124: case ...
3 years, 10 months ago (2017-02-16 00:57:12 UTC) #64
Charlie Reis
Thanks! https://codereview.chromium.org/2666193002/diff/160001/content/public/browser/page_navigator.h File content/public/browser/page_navigator.h (right): https://codereview.chromium.org/2666193002/diff/160001/content/public/browser/page_navigator.h#newcode79 content/public/browser/page_navigator.h:79: int render_process_id; On 2017/02/16 00:57:12, Patrick Noland wrote: ...
3 years, 10 months ago (2017-02-16 00:59:40 UTC) #65
Avi (use Gerrit)
lgtm https://codereview.chromium.org/2666193002/diff/180001/chrome/browser/renderer_context_menu/render_view_context_menu.cc File chrome/browser/renderer_context_menu/render_view_context_menu.cc (left): https://codereview.chromium.org/2666193002/diff/180001/chrome/browser/renderer_context_menu/render_view_context_menu.cc#oldcode1982 chrome/browser/renderer_context_menu/render_view_context_menu.cc:1982: chrome::NOTIFICATION_RETARGETING, Whoo!
3 years, 10 months ago (2017-02-17 22:52:07 UTC) #68
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2666193002/180001
3 years, 10 months ago (2017-02-17 22:55:49 UTC) #71
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) chromeos_amd64-generic_chromium_compile_only_ng on ...
3 years, 10 months ago (2017-02-18 00:58:23 UTC) #73
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2666193002/180001
3 years, 10 months ago (2017-02-18 01:04:47 UTC) #75
commit-bot: I haz the power
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_tsan_rel_ng/builds/17692)
3 years, 10 months ago (2017-02-18 01:48:38 UTC) #77
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2666193002/180001
3 years, 10 months ago (2017-02-21 22:09:22 UTC) #83
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
3 years, 10 months ago (2017-02-22 00:12:47 UTC) #85
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2666193002/180001
3 years, 10 months ago (2017-02-22 18:52:04 UTC) #91
commit-bot: I haz the power
3 years, 10 months ago (2017-02-22 18:59:45 UTC) #94
Message was sent while issue was closed.
Committed patchset #8 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/48894465b91ec112cbb9bd92e37f...

Powered by Google App Engine
This is Rietveld 408576698