Re: [whatwg] Proposal for Links to Unrelated Browsing Contexts

2012-10-02 Thread Ian Hickson
On Mon, 1 Oct 2012, Glenn Maynard wrote: Primary goals: + have the new page use a different event loop if possible (new process) + have the window of the new page not be able to reach the opener via a named window.open() or target= As a result, I think these are also necessary

Re: [whatwg] Proposal for Links to Unrelated Browsing Contexts

2012-10-02 Thread James Graham
On 10/02/2012 02:34 AM, Boris Zbarsky wrote: On 10/1/12 6:10 PM, Ian Hickson wrote: On Tue, 19 Jun 2012, Boris Zbarsky wrote: On 6/19/12 1:56 PM, Charlie Reis wrote: That's from the [if] the user agent determines that the two browsing contexts are related enough that it is ok if they reach

Re: [whatwg] Proposal for Links to Unrelated Browsing Contexts

2012-10-02 Thread Ian Hickson
On Tue, 2 Oct 2012, James Graham wrote: On 10/02/2012 02:34 AM, Boris Zbarsky wrote: On 10/1/12 6:10 PM, Ian Hickson wrote: On Tue, 19 Jun 2012, Boris Zbarsky wrote: On 6/19/12 1:56 PM, Charlie Reis wrote: That's from the [if] the user agent determines that the two browsing

Re: [whatwg] Proposal for Links to Unrelated Browsing Contexts

2012-10-01 Thread Ian Hickson
Summary: I've changed rel=noreferrer so that when it creates a new top-level browsing context, it doesn't clone sessionStorage. Turns out that as specced, it already did everything else that was needed. On Wed, 6 Jun 2012, Charlie Reis wrote: I've posted a new proposal to the WhatWG wiki to

Re: [whatwg] Proposal for Links to Unrelated Browsing Contexts

2012-10-01 Thread Glenn Maynard
On Mon, Oct 1, 2012 at 5:10 PM, Ian Hickson i...@hixie.ch wrote: + have the new page be in a new browsing context ...it's a new browsing context (e.g. target=_blank). I'm not very familiar with the browsing context concept: what's the practical security issue here? It should never be

Re: [whatwg] Proposal for Links to Unrelated Browsing Contexts

2012-10-01 Thread Boris Zbarsky
On 10/1/12 6:10 PM, Ian Hickson wrote: On Tue, 19 Jun 2012, Boris Zbarsky wrote: On 6/19/12 1:56 PM, Charlie Reis wrote: That's from the [if] the user agent determines that the two browsing contexts are related enough that it is ok if they reach each other part, which is quite vague. This

Re: [whatwg] Proposal for Links to Unrelated Browsing Contexts

2012-10-01 Thread Ian Hickson
On Mon, 1 Oct 2012, Glenn Maynard wrote: On Mon, Oct 1, 2012 at 5:10 PM, Ian Hickson i...@hixie.ch wrote: + have the new page be in a new browsing context ...it's a new browsing context (e.g. target=_blank). I'm not very familiar with the browsing context concept: what's the

Re: [whatwg] Proposal for Links to Unrelated Browsing Contexts

2012-10-01 Thread Glenn Maynard
On Mon, Oct 1, 2012 at 8:37 PM, Ian Hickson i...@hixie.ch wrote: The all-too-common bad reason is we want people to keep pages open in the user's browser for long as possible in the hopes that it'll make them come back by accident, so we'll sprinkle target=_blank everywhere, eg.

Re: [whatwg] Proposal for Links to Unrelated Browsing Contexts

2012-09-24 Thread Ian Hickson
On Mon, 27 Aug 2012, Charlie Reis wrote: Does this need to be done from window.open()? Yes. For example, Gmail uses window.open() for the links in emails, but would like the links to open in an unrelated context. Why does GMail need to use window.open()? Surely the right way to expose

Re: [whatwg] Proposal for Links to Unrelated Browsing Contexts

2012-09-24 Thread Mihai Parparita
On Mon, Sep 24, 2012 at 12:11 PM, Ian Hickson i...@hixie.ch wrote: Why does GMail need to use window.open()? Surely the right way to expose a link is to use a href=. What is forcing them to use window.open()? I can't speak for Gmail, but Google Reader uses window.open since it allows

Re: [whatwg] Proposal for Links to Unrelated Browsing Contexts

2012-09-24 Thread Boris Zbarsky
On 9/24/12 8:42 PM, Mihai Parparita wrote: On Mon, Sep 24, 2012 at 12:11 PM, Ian Hickson i...@hixie.ch wrote: Why does GMail need to use window.open()? Surely the right way to expose a link is to use a href=. What is forcing them to use window.open()? I can't speak for Gmail, but Google

Re: [whatwg] Proposal for Links to Unrelated Browsing Contexts

2012-08-31 Thread Glenn Maynard
On Wed, Aug 29, 2012 at 3:01 PM, Charlie Reis cr...@chromium.org wrote: On Tue, Aug 28, 2012 at 9:39 AM, Glenn Maynard gl...@zewt.org wrote: I had to do this recently (a script-initiated rel=noreferrer navigation). FYI, I worked around it by creating a temporary HTMLAnchorElement, setting

Re: [whatwg] Proposal for Links to Unrelated Browsing Contexts

2012-08-29 Thread Charlie Reis
On Tue, Aug 28, 2012 at 9:39 AM, Glenn Maynard gl...@zewt.org wrote: On Tue, Aug 28, 2012 at 11:18 AM, Charlie Reis cr...@chromium.org wrote: There are two main differences from the rel=noreferrer feature. First (as you note), this does still send the referrer. That's useful for sites that

Re: [whatwg] Proposal for Links to Unrelated Browsing Contexts

2012-08-28 Thread Maciej Stachowiak
Someone earlier in the thread mentioned that this feature sounds an awful lot like rel=noreferrer, which has been in WebKit for several years: http://www.webkit.org/blog/907/webkit-nightlies-support-html5-noreferrer-link-relation/ It is also mentioned in the official link relation registry:

Re: [whatwg] Proposal for Links to Unrelated Browsing Contexts

2012-08-28 Thread Maciej Stachowiak
I overlooked that it's also in the spec itself, not just the registry: http://www.whatwg.org/specs/web-apps/current-work/multipage/links.html#link-type-noreferrer Regards, Maciej On Aug 27, 2012, at 11:23 PM, Maciej Stachowiak m...@apple.com wrote: Someone earlier in the thread mentioned

Re: [whatwg] Proposal for Links to Unrelated Browsing Contexts

2012-08-28 Thread Maciej Stachowiak
James pointed out to me that the proposal explains the difference to noreferrer, which is essential that it *does* send a referrer, but has the rel=noreferrer behavior of nulling out window.opener. I'm still not clear on the use case for nulling the opener but still sending the Referer

Re: [whatwg] Proposal for Links to Unrelated Browsing Contexts

2012-08-28 Thread Charlie Reis
On Mon, Aug 27, 2012 at 11:43 PM, Maciej Stachowiak m...@apple.com wrote: James pointed out to me that the proposal explains the difference to noreferrer, which is essential that it *does* send a referrer, but has the rel=noreferrer behavior of nulling out window.opener. I'm still not clear

Re: [whatwg] Proposal for Links to Unrelated Browsing Contexts

2012-08-28 Thread Glenn Maynard
On Tue, Aug 28, 2012 at 11:18 AM, Charlie Reis cr...@chromium.org wrote: There are two main differences from the rel=noreferrer feature. First (as you note), this does still send the referrer. That's useful for sites that don't want to be affected by the newly opened page but that still rely

Re: [whatwg] Proposal for Links to Unrelated Browsing Contexts

2012-08-27 Thread Ian Hickson
On Wed, 6 Jun 2012, Charlie Reis wrote: I've posted a new proposal to the WhatWG wiki to give web sites a way to open a link in an unrelated browsing context. These links would open in a new window with no script connections back to the original site, which is useful for web apps like

Re: [whatwg] Proposal for Links to Unrelated Browsing Contexts

2012-08-27 Thread Charlie Reis
On Mon, Aug 27, 2012 at 4:46 PM, Ian Hickson i...@hixie.ch wrote: On Wed, 6 Jun 2012, Charlie Reis wrote: I've posted a new proposal to the WhatWG wiki to give web sites a way to open a link in an unrelated browsing context. These links would open in a new window with no script

Re: [whatwg] Proposal for Links to Unrelated Browsing Contexts

2012-06-29 Thread Anne van Kesteren
On Thu, Jun 28, 2012 at 9:00 PM, Charlie Reis cr...@chromium.org wrote: What's the next step for this proposal? Hixie, does the _unrelated target approach sound good to you at this point? http://wiki.whatwg.org/wiki/Links_to_Unrelated_Browsing_Contexts FWIW, all emails to the list will be

Re: [whatwg] Proposal for Links to Unrelated Browsing Contexts

2012-06-28 Thread Charlie Reis
On Tue, Jun 19, 2012 at 2:52 PM, Charlie Reis cr...@chromium.org wrote: On Tue, Jun 19, 2012 at 2:16 PM, James Graham jgra...@opera.com wrote: The way the process here works is that Hixie reads these emails agrees that the change is a good idea (hopefully; in this case it seems likely since

Re: [whatwg] Proposal for Links to Unrelated Browsing Contexts

2012-06-19 Thread Boris Zbarsky
On 6/19/12 1:56 PM, Charlie Reis wrote: That's from the [if] the user agent determines that the two browsing contexts are related enough that it is ok if they reach each other part, which is quite vague. This is, imo, the part that says unrelated browsing contexts should not be able to reach

Re: [whatwg] Proposal for Links to Unrelated Browsing Contexts

2012-06-19 Thread Charlie Reis
On Tue, Jun 19, 2012 at 11:38 AM, Boris Zbarsky bzbar...@mit.edu wrote: On 6/19/12 1:56 PM, Charlie Reis wrote: That's from the [if] the user agent determines that the two browsing contexts are related enough that it is ok if they reach each other part, which is quite vague. This is, imo,

Re: [whatwg] Proposal for Links to Unrelated Browsing Contexts

2012-06-19 Thread James Graham
On Tue, 19 Jun 2012, Charlie Reis wrote: On Tue, Jun 19, 2012 at 11:38 AM, Boris Zbarsky bzbar...@mit.edu wrote: On 6/19/12 1:56 PM, Charlie Reis wrote: That's from the [if] the user agent determines that the two browsing contexts are related enough that it is

Re: [whatwg] Proposal for Links to Unrelated Browsing Contexts

2012-06-19 Thread Charlie Reis
On Tue, Jun 19, 2012 at 2:16 PM, James Graham jgra...@opera.com wrote: The way the process here works is that Hixie reads these emails agrees that the change is a good idea (hopefully; in this case it seems likely since we seem to have three implementors in agreement) and it happens. There

Re: [whatwg] Proposal for Links to Unrelated Browsing Contexts

2012-06-18 Thread Charlie Reis
On Thu, Jun 14, 2012 at 10:45 AM, Charlie Reis cr...@chromium.org wrote: I do observe that Safari, IE, and even Opera currently allow windows in unrelated contexts to discover named windows, though. Just do a window.open(foo.html, foo) from two independently opened windows and they'll both

Re: [whatwg] Proposal for Links to Unrelated Browsing Contexts

2012-06-18 Thread Boris Zbarsky
On 6/18/12 6:10 PM, Charlie Reis wrote: I'm going to go out on a limb and say that it's ok if named but unrelated windows are able to discover each other. I actually don't; I think the fact that it happens in Firefox is a (longstanding) bug that needs to get fixed. If we want to change

Re: [whatwg] Proposal for Links to Unrelated Browsing Contexts

2012-06-14 Thread Simon Pieters
On Thu, 14 Jun 2012 01:44:12 +0200, Michal Zalewski lcam...@coredump.cx wrote: Any feedback on this revised approach? My vague concern is that the separation is a bit fuzzy, beyond saying that window.opener will be null... if that's the only guaranteed outcome, then maybe that should be

Re: [whatwg] Proposal for Links to Unrelated Browsing Contexts

2012-06-14 Thread James Graham
On 06/14/2012 04:06 AM, Boris Zbarsky wrote: On 6/13/12 7:44 PM, Michal Zalewski wrote: The degree of separation between browsing contexts is intuitive in the case of Chrome Except it's not, because Chrome will sometimes put things in the same process when they could have gone in different

Re: [whatwg] Proposal for Links to Unrelated Browsing Contexts

2012-06-14 Thread Charlie Reis
On Thu, Jun 14, 2012 at 4:04 AM, James Graham jgra...@opera.com wrote: On 06/14/2012 04:06 AM, Boris Zbarsky wrote: On 6/13/12 7:44 PM, Michal Zalewski wrote: The degree of separation between browsing contexts is intuitive in the case of Chrome Except it's not, because Chrome will

Re: [whatwg] Proposal for Links to Unrelated Browsing Contexts

2012-06-13 Thread Charlie Reis
On Tue, Jun 12, 2012 at 7:39 AM, Charlie Reis cr...@chromium.org wrote: On Mon, Jun 11, 2012 at 11:24 PM, Anne van Kesteren ann...@annevk.nlwrote: Having a rel attribute imply a target attribute value seems bad. Thus far they have been orthogonal. Maybe it should be a new target attribute

Re: [whatwg] Proposal for Links to Unrelated Browsing Contexts

2012-06-13 Thread Michal Zalewski
Any feedback on this revised approach? My vague concern is that the separation is a bit fuzzy, beyond saying that window.opener will be null... if that's the only guaranteed outcome, then maybe that should be spelled out more clearly? The degree of separation between browsing contexts is

Re: [whatwg] Proposal for Links to Unrelated Browsing Contexts

2012-06-13 Thread Charlie Reis
On Wed, Jun 13, 2012 at 4:44 PM, Michal Zalewski lcam...@coredump.cxwrote: Any feedback on this revised approach? My vague concern is that the separation is a bit fuzzy, beyond saying that window.opener will be null... if that's the only guaranteed outcome, then maybe that should be spelled

Re: [whatwg] Proposal for Links to Unrelated Browsing Contexts

2012-06-13 Thread Boris Zbarsky
On 6/13/12 7:44 PM, Michal Zalewski wrote: The degree of separation between browsing contexts is intuitive in the case of Chrome Except it's not, because Chrome will sometimes put things in the same process when they could have gone in different ones, based on whatever heuristics it uses for

Re: [whatwg] Proposal for Links to Unrelated Browsing Contexts

2012-06-12 Thread Anne van Kesteren
On Mon, Jun 11, 2012 at 11:32 PM, Charlie Reis cr...@chromium.org wrote: Any other feedback on this proposal? http://wiki.whatwg.org/wiki/Links_to_Unrelated_Browsing_Contexts Having a rel attribute imply a target attribute value seems bad. Thus far they have been orthogonal. Maybe it should be

Re: [whatwg] Proposal for Links to Unrelated Browsing Contexts

2012-06-12 Thread Charlie Reis
On Mon, Jun 11, 2012 at 11:24 PM, Anne van Kesteren ann...@annevk.nlwrote: On Mon, Jun 11, 2012 at 11:32 PM, Charlie Reis cr...@chromium.org wrote: Any other feedback on this proposal? http://wiki.whatwg.org/wiki/Links_to_Unrelated_Browsing_Contexts Having a rel attribute imply a target

Re: [whatwg] Proposal for Links to Unrelated Browsing Contexts

2012-06-11 Thread Charlie Reis
On Thu, Jun 7, 2012 at 9:21 AM, Charlie Reis cr...@chromium.org wrote: On Wed, Jun 6, 2012 at 11:47 PM, Adam Barth w...@adambarth.com wrote: On Wed, Jun 6, 2012 at 6:59 PM, Glenn Maynard gl...@zewt.org wrote: On Wed, Jun 6, 2012 at 8:26 PM, Bjartur Thorlacius svartma...@gmail.comwrote:

Re: [whatwg] Proposal for Links to Unrelated Browsing Contexts

2012-06-07 Thread Adam Barth
On Wed, Jun 6, 2012 at 6:59 PM, Glenn Maynard gl...@zewt.org wrote: On Wed, Jun 6, 2012 at 8:26 PM, Bjartur Thorlacius svartma...@gmail.comwrote: On Wed, Jun 06, 2012 at 07:32:34PM -0500, Glenn Maynard wrote: Please don't encourage yet more sites to open new tabs when I didn't ask for it.

Re: [whatwg] Proposal for Links to Unrelated Browsing Contexts

2012-06-07 Thread Charlie Reis
On Wed, Jun 6, 2012 at 11:47 PM, Adam Barth w...@adambarth.com wrote: On Wed, Jun 6, 2012 at 6:59 PM, Glenn Maynard gl...@zewt.org wrote: On Wed, Jun 6, 2012 at 8:26 PM, Bjartur Thorlacius svartma...@gmail.com wrote: On Wed, Jun 06, 2012 at 07:32:34PM -0500, Glenn Maynard wrote: Please

[whatwg] Proposal for Links to Unrelated Browsing Contexts

2012-06-06 Thread Charlie Reis
Hi all-- I've posted a new proposal to the WhatWG wiki to give web sites a way to open a link in an unrelated browsing context. These links would open in a new window with no script connections back to the original site, which is useful for web apps like Gmail that open user-contributed links.

Re: [whatwg] Proposal for Links to Unrelated Browsing Contexts

2012-06-06 Thread Michal Zalewski
Several questions: 1) How would this mechanism work with named windows (which may be targeted by means other than accessing opener.*)? In certain implementations (e.g., Chrome), the separation in this namespace comes free, but that's not given for other browsers. There are ways in which the

Re: [whatwg] Proposal for Links to Unrelated Browsing Contexts

2012-06-06 Thread Charlie Reis
I'm hoping to bypass all of those by overriding any specification of target in the link. That is, if rel=unrelated is specified, that forces target to be _blank. Charlie On Wed, Jun 6, 2012 at 4:53 PM, Michal Zalewski lcam...@coredump.cx wrote: Several questions: 1) How would this mechanism

Re: [whatwg] Proposal for Links to Unrelated Browsing Contexts

2012-06-06 Thread Glenn Maynard
On Wed, Jun 6, 2012 at 6:56 PM, Charlie Reis cr...@chromium.org wrote: I'm hoping to bypass all of those by overriding any specification of target in the link. That is, if rel=unrelated is specified, that forces target to be _blank. Please don't encourage yet more sites to open new tabs

Re: [whatwg] Proposal for Links to Unrelated Browsing Contexts

2012-06-06 Thread Bjartur Thorlacius
On Wed, Jun 06, 2012 at 07:32:34PM -0500, Glenn Maynard wrote: Please don't encourage yet more sites to open new tabs when I didn't ask for it. It's merely a new browsing context IIUC, not necessarily a new window (frame, tab, tile or whatever it's called this year). Someone that understands

Re: [whatwg] Proposal for Links to Unrelated Browsing Contexts

2012-06-06 Thread Glenn Maynard
On Wed, Jun 6, 2012 at 8:26 PM, Bjartur Thorlacius svartma...@gmail.comwrote: On Wed, Jun 06, 2012 at 07:32:34PM -0500, Glenn Maynard wrote: Please don't encourage yet more sites to open new tabs when I didn't ask for it. It's merely a new browsing context IIUC, not necessarily a new window