[whatwg] navigation shouldn't abort if canceled

Boris Zbarsky bzbarsky at MIT.EDU
Wed Feb 2 12:32:24 PST 2011


On 2/2/11 3:22 PM, Michael Nordman wrote:
> That does sound like a bug? I'd be curious to know what the reasoning
> was for the existing sequence of steps.

 From what I can tell, current browser behavior.

> Step 10 looks out of place too...
>
> "10. If the new resource is to be handled using a mechanism that does
> not affect the browsing context, e.g. ignoring the navigation request
> altogether because the specified scheme is not one of the supported
> protocols, then abort these steps and proceed with that mechanism
> instead."
>
> Aborting the active document sounds like an undesirable side affect on
> the browsing context for mailto links.

I suspect that again this is current browser behavior.

Note that in some cases mailto: links will load a web page (and thus 
abort the document they were in).  So it may be worthwhile to have them 
always abort it, for consistency.

-Boris



More information about the whatwg mailing list