We seem to have all the code for parsing the toolbar window feature and the state seems to be plumbed all the way to make ChromeClientImpl::getNavigationPolicy() return NavigationPolicyNewForegroundTab. My guess is there's just a bug somewhere. Given you you seem excited about this bug, my guess is that you could track it down by following the trail from WindowFeatures to ChromeClientImpl::getNavigationPolicy() in a debugger to see where we go off the rails.
Adam
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
How come codesearch shows that some code is calling a function with six parameters and when you click on the name of the function in codesearch, it shows a function with eight parameters?...
If I'm understanding the issue correctly, it was an intention choice to simplify things here. Chrome has an option in the popup window menu to "show as tab" which gives you back all of the standard controls.
-Darin
If I'm understanding the issue correctly, it was an intention choice to simplify things here. Chrome has an option in the popup window menu to "show as tab" which gives you back all of the standard controls.
On Sat, Jun 28, 2014 at 2:18 PM, Darin Fisher <da...@chromium.org> wrote:
If I'm understanding the issue correctly, it was an intention choice to simplify things here. Chrome has an option in the popup window menu to "show as tab" which gives you back all of the standard controls.
This. We allow you to convert popup windows into full-fledged tabbed windows as needed, but don't do it automatically.I'm not opposed to a behavior where, in general, we open window.open() pages as new tabs in the current window instead of popup windows, but authors probably have to be able to do both, and not being familiar with the various permutations of window.open, I can't tell you what the heuristics should be to pick one over the other. (Personally, I would be happy with a world where all such windows _always_ opened in new tabs, and indeed that's how I used to configure Firefox... but I bet that breaks some pages and might confuse users if it were the default behavior. Blink experts, feel free to tell me I'm wrong and this is actually a good idea.)
It seems like today I see pages doing both of these behaviors, so I imagine we already have some code along these lines.The only place we really don't want to be is where we allow some window features (nav controls, editable URLs) but not others (a tabstrip), because the downsides are greater than the upsides. (Even more confusing to users than our current world, more code complexity to maintain.)
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
Opening a new window with a tab is more of a change (it will change the existing behavior for the no-features case). I am not willing to implement that myself because the code that creates a new window needs profile information and I'm not confident I can do it without breaking security/privacy in some way. But an expert could do it.
I propose we switch to the new tab behavior on widow.open because (a) it's easier to pop a tab out into a window rather than the reverse with a window that has no controls and (b) it disables only something that is already considered broken by some of our users (and is incompatible with other browsers).
Doing it right probably requires a user-level setting of a default new tab or new window behavior, with Ctrl-clink or other UI to offer per-click choice, as the spec does not offer any way to choose from script. That's for the UI team to decide.
On Mon, Jun 30, 2014 at 8:11 AM, Stephen Chenney <sche...@chromium.org> wrote:
Opening a new window with a tab is more of a change (it will change the existing behavior for the no-features case). I am not willing to implement that myself because the code that creates a new window needs profile information and I'm not confident I can do it without breaking security/privacy in some way. But an expert could do it.
We shouldn't move to a world where we sometimes open new windows with one tab in them for window.open. The two behaviors we have today -- a special popup window, and a regular tab in the current window -- are the right two.
I've got patches up for the UseCounter. That will tell us the proportion of window.open that use the features string which is a proxy for popup a new window rather than a new tab. There is a major caveat in that corporate sites will bias the statistics (a la showModalDialog) so we'll have to be careful what we infer. That is particularly the case because we are currently suggesting window.open as the alternative for showModalDialog.
On Mon, Jun 30, 2014 at 2:50 PM, Peter Kasting <pkas...@google.com> wrote:On Mon, Jun 30, 2014 at 8:11 AM, Stephen Chenney <sche...@chromium.org> wrote:
Opening a new window with a tab is more of a change (it will change the existing behavior for the no-features case). I am not willing to implement that myself because the code that creates a new window needs profile information and I'm not confident I can do it without breaking security/privacy in some way. But an expert could do it.
We shouldn't move to a world where we sometimes open new windows with one tab in them for window.open. The two behaviors we have today -- a special popup window, and a regular tab in the current window -- are the right two.Unfortunately the new spec, as I understand it, requires us choosing one or the other (or ignore the spec). It seems that the <dialog> element is explicitly intended to give us the popup window functionality, leaving window.open to be a tab-opening method.
There is historically a line in the sand between what is specified and what is left up to the user agent. Maybe the spec is being overly prescriptive about a UA concern? Also, <dialog> is not really a replacement for pop-ups. It does not create a new overlapped window. The <dialog> is scoped (clipped) to the parent window, right?
Note that Mac doesn't support the context-click menu on the title bar, so there is no way to do this on Mac. I think i WONTFIXd that bug 3 or 4 years ago because it was an undiscoverable action that doesn't fit with the platform. Now typing this, I see you can do this in the Finder to adjust toolbar contents/appearance, so maybe we should re-evaluate the decision and support it, if that's how we want to handle this for realz.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.