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

Issue 844313002: Add ContentBrowserClient::OpenURL to allow tab opening wo/ WebContents. (Closed)

Created:
5 years, 11 months ago by mlamouri (slow - plz ping)
Modified:
5 years, 10 months ago
CC:
chromium-reviews, darin-cc_chromium.org, Fady Samuel, jam, jochen+watch_chromium.org, mkwst+moarreviews-shell_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add ContentBrowserClient::OpenURL to allow tab opening wo/ WebContents. This is fairly similar to WebContentsDelegate::OpenURLFromTab without the WebContents requirement. This is required in order to open windows from workers. Especially, to allow ServiceWorker's Clients.openWindow() to work properly given that there is no associated WebContents. BUG=437151

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : add thread check #

Patch Set 4 : rebase #

Patch Set 5 : fix android/ios build #

Total comments: 2

Patch Set 6 : fix typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -1 line) Patch
M chrome/browser/chrome_content_browser_client.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 1 chunk +21 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client_unittest.cc View 1 2 chunks +38 lines, -1 line 0 comments Download
M content/public/browser/content_browser_client.h View 1 2 3 4 5 2 chunks +6 lines, -0 lines 0 comments Download
M content/public/browser/content_browser_client.cc View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M content/shell/browser/shell_content_browser_client.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/shell/browser/shell_content_browser_client.cc View 2 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 39 (6 generated)
mlamouri (slow - plz ping)
Jochen and Mike, could you review this CL? The description should explain its purpose. Jochen, ...
5 years, 11 months ago (2015-01-12 15:26:25 UTC) #3
Mike West
On 2015/01/12 15:26:25, Mounir Lamouri wrote: > Jochen and Mike, could you review this CL? ...
5 years, 11 months ago (2015-01-12 15:28:29 UTC) #4
jochen (gone - plz use gerrit)
yeah, same reaction here can we have some discussion about this feature on blink-dev first ...
5 years, 11 months ago (2015-01-12 15:31:18 UTC) #6
mlamouri (slow - plz ping)
On 2015/01/12 at 15:28:29, mkwst wrote: > On 2015/01/12 15:26:25, Mounir Lamouri wrote: > > ...
5 years, 11 months ago (2015-01-12 15:33:33 UTC) #7
mlamouri (slow - plz ping)
Jochen and I discussed the issue and we agreed that we could handle opening window ...
5 years, 11 months ago (2015-01-12 16:43:11 UTC) #8
jochen (gone - plz use gerrit)
i wonder what kind of events the webNavigation API sees for a tab opened like ...
5 years, 11 months ago (2015-01-13 14:36:46 UTC) #9
mlamouri (slow - plz ping)
On 2015/01/13 at 14:36:46, jochen wrote: > i wonder what kind of events the webNavigation ...
5 years, 11 months ago (2015-01-13 15:45:07 UTC) #10
jochen (gone - plz use gerrit)
cool, what about the compile errors?
5 years, 11 months ago (2015-01-13 15:47:19 UTC) #11
mlamouri (slow - plz ping)
On 2015/01/13 at 15:45:07, Mounir Lamouri wrote: > > maybe we should send a onCreatedNavigationTarget ...
5 years, 11 months ago (2015-01-13 15:48:03 UTC) #12
mlamouri (slow - plz ping)
Jochen, PTAL. I have updated the CL to not compile the content of ChromeContentBrowserClient::OpenURL() on ...
5 years, 11 months ago (2015-01-13 16:44:37 UTC) #13
jsbell
thanks for picking this up, Mounir! https://codereview.chromium.org/844313002/diff/80001/content/public/browser/content_browser_client.h File content/public/browser/content_browser_client.h (right): https://codereview.chromium.org/844313002/diff/80001/content/public/browser/content_browser_client.h#newcode592 content/public/browser/content_browser_client.h:592: // Allows programmatic ...
5 years, 11 months ago (2015-01-13 17:08:46 UTC) #15
mlamouri (slow - plz ping)
https://codereview.chromium.org/844313002/diff/80001/content/public/browser/content_browser_client.h File content/public/browser/content_browser_client.h (right): https://codereview.chromium.org/844313002/diff/80001/content/public/browser/content_browser_client.h#newcode592 content/public/browser/content_browser_client.h:592: // Allows programmatic opening of a new tab/window without ...
5 years, 11 months ago (2015-01-13 18:11:53 UTC) #16
michaeln
virtual WebContents* OpenURL(BrowserContext* browser_context, const OpenURLParams& params); How does this work given site isolation / ...
5 years, 11 months ago (2015-01-13 22:23:40 UTC) #18
mlamouri (slow - plz ping)
On 2015/01/13 at 22:23:40, michaeln wrote: > virtual WebContents* OpenURL(BrowserContext* browser_context, > const OpenURLParams& params); ...
5 years, 11 months ago (2015-01-13 23:32:33 UTC) #19
michaeln
> Hopefully, the navigation code tries to find the right SiteInstance associated > with the ...
5 years, 11 months ago (2015-01-14 01:09:47 UTC) #20
jochen (gone - plz use gerrit)
On 2015/01/13 at 23:32:33, mlamouri wrote: > On 2015/01/13 at 22:23:40, michaeln wrote: > > ...
5 years, 11 months ago (2015-01-14 13:20:45 UTC) #21
mlamouri (slow - plz ping)
On 2015/01/14 at 13:20:45, jochen wrote: > On 2015/01/13 at 23:32:33, mlamouri wrote: > > ...
5 years, 11 months ago (2015-01-14 14:36:39 UTC) #22
michaeln
> > can we somehow enforce this that you can't pass in arbitrary stuff to ...
5 years, 11 months ago (2015-01-14 19:46:09 UTC) #23
mlamouri (slow - plz ping)
On 2015/01/14 at 19:46:09, michaeln wrote: > > > can we somehow enforce this that ...
5 years, 11 months ago (2015-01-15 16:37:52 UTC) #24
mlamouri (slow - plz ping)
On 2015/01/15 at 16:37:52, Mounir Lamouri wrote: > On 2015/01/14 at 19:46:09, michaeln wrote: > ...
5 years, 11 months ago (2015-01-15 17:03:41 UTC) #25
michaeln
This new sw function should probably have similar behavior to plain old window.open(). What happens ...
5 years, 11 months ago (2015-01-15 20:37:33 UTC) #26
jsbell
On 2015/01/15 20:37:33, michaeln wrote: > This new sw function should probably have similar behavior ...
5 years, 11 months ago (2015-01-15 21:18:55 UTC) #27
michaeln
Ok, maybe in the chromeapp + webview case, an attempt by a sw buried in ...
5 years, 11 months ago (2015-01-15 22:13:34 UTC) #28
mlamouri (slow - plz ping)
On 2015/01/15 at 22:13:34, michaeln wrote: > Ok, maybe in the chromeapp + webview case, ...
5 years, 11 months ago (2015-01-15 22:57:05 UTC) #29
jochen (gone - plz use gerrit)
ok, I think we really crossed the line where this should get some form of ...
5 years, 11 months ago (2015-01-16 08:03:42 UTC) #30
michaeln
On 2015/01/16 08:03:42, jochen (slow) wrote: > ok, I think we really crossed the line ...
5 years, 11 months ago (2015-01-16 21:45:35 UTC) #31
mlamouri (slow - plz ping)
On 2015/01/16 at 21:45:35, michaeln wrote: > On 2015/01/16 08:03:42, jochen (slow) wrote: > > ...
5 years, 11 months ago (2015-01-19 21:39:51 UTC) #32
mlamouri (slow - plz ping)
+creis@
5 years, 11 months ago (2015-01-19 22:18:24 UTC) #34
jochen (gone - plz use gerrit)
I don't know. It's not clear to me that we want to allow a service ...
5 years, 11 months ago (2015-01-20 15:59:06 UTC) #35
mlamouri (slow - plz ping)
It seems that there are two different issues here: 1. michaeln@ is worried about the ...
5 years, 11 months ago (2015-01-23 19:27:02 UTC) #36
jochen (gone - plz use gerrit)
as discussed offline, can you please merge the service worker change into this CL?
5 years, 10 months ago (2015-01-26 14:55:44 UTC) #37
mlamouri (slow - plz ping)
I'm applying the change we discussed and will upload a merged CL.
5 years, 10 months ago (2015-01-26 15:02:04 UTC) #38
mlamouri (slow - plz ping)
5 years, 10 months ago (2015-01-26 15:11:06 UTC) #39
I've merged everything to https://codereview.chromium.org/843583005.

Powered by Google App Engine
This is Rietveld 408576698