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

Issue 1227793006: Navigations are renderer-initiated if no WebUI bindings present. (Closed)

Created:
5 years, 5 months ago by wjmaclean
Modified:
5 years, 5 months ago
CC:
chromium-reviews, jam, nasko+codewatch_chromium.org, creis+watch_chromium.org, darin-cc_chromium.org, kmadhusu
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Navigations are renderer-initiated if no WebUI bindings present. This CL is designed to allow extensions to have their navigations to be considered "renderer-initiated". It also allows extensions to have referrers, and removes some apparently dead code. BUG=488053

Patch Set 1 #

Patch Set 2 : Apply WebUI bindings criterion to entire block. #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -13 lines) Patch
M content/browser/frame_host/navigator_impl.cc View 1 1 chunk +8 lines, -13 lines 8 comments Download

Depends on Patchset:

Messages

Total messages: 22 (7 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/1227793006/1
5 years, 5 months ago (2015-07-09 15:48:40 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 5 months ago (2015-07-09 17:41:21 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/1227793006/20001
5 years, 5 months ago (2015-07-15 13:36:08 UTC) #6
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 5 months ago (2015-07-15 14:28:58 UTC) #8
wjmaclean
creis@ - Since there are no branch points imminent, shall we try to land this, ...
5 years, 5 months ago (2015-07-15 14:32:17 UTC) #10
Charlie Reis
[+kmadhusu,kalman] It looks like this change might not be safe after all. I'm including people ...
5 years, 5 months ago (2015-07-15 20:38:00 UTC) #12
not at google - send to devlin
I'd rather tackle this problem from why extensions need to be treated as webui, rather ...
5 years, 5 months ago (2015-07-15 20:42:03 UTC) #13
wjmaclean
On 2015/07/15 20:42:03, kalman wrote: > I'd rather tackle this problem from why extensions need ...
5 years, 5 months ago (2015-07-15 20:55:43 UTC) #14
not at google - send to devlin
> > kalman@ - is there any reason why extension navigations cannot be considered > ...
5 years, 5 months ago (2015-07-15 21:00:15 UTC) #15
wjmaclean
On 2015/07/15 21:00:15, kalman wrote: > > > > kalman@ - is there any reason ...
5 years, 5 months ago (2015-07-16 14:26:18 UTC) #16
wjmaclean
A follow-on question to the is_renderer_initiated discussion above: "What are all the ways an extension ...
5 years, 5 months ago (2015-07-16 14:46:06 UTC) #17
not at google - send to devlin
> is it safe to allow the navigation to use POST I don't see why ...
5 years, 5 months ago (2015-07-16 17:26:06 UTC) #18
wjmaclean
On 2015/07/16 17:26:06, kalman wrote: > > > an AppWindow will kill in-tab navigations of ...
5 years, 5 months ago (2015-07-16 19:27:56 UTC) #19
kmadhusu
creis@: Adding current owners of NTP to the reviewers list to address your comment. Thanks. ...
5 years, 5 months ago (2015-07-17 04:06:48 UTC) #21
fserb
5 years, 5 months ago (2015-07-17 15:59:11 UTC) #22
Message was sent while issue was closed.
https://codereview.chromium.org/1227793006/diff/20001/content/browser/frame_h...
File content/browser/frame_host/navigator_impl.cc (left):

https://codereview.chromium.org/1227793006/diff/20001/content/browser/frame_h...
content/browser/frame_host/navigator_impl.cc:567: // link clicks (e.g., so the
new tab page can specify AUTO_BOOKMARK for
On 2015/07/17 04:06:47, kmadhusu wrote:
> On 2015/07/15 20:38:00, Charlie Reis wrote:
> > Looking deeper, this change doesn't look safe.
> > 
> > NewTabUI still calls SetLinkTransitionType with AUTO_BOOKMARK, so the NTP
may
> > still rely on this.  @kmadhusu: Can you confirm?
> > 
> 
> mathp@/fserb@: Please address this comment.
> 
> >
>
https://code.google.com/p/chromium/codesearch#chromium/src/chrome/browser/ui/...
> > 
> > I also see it used by the bookmark manager extension in ExtensionWebUI
(which
> > doesn't have bindings):
> >
>
https://code.google.com/p/chromium/codesearch#chromium/src/chrome/browser/ext...
> 

Yep. We still rely on this when we analyse history. This should not be removed.

Powered by Google App Engine
This is Rietveld 408576698