Re: A new hack for singleton objects

On Wed, Mar 18, 2015 at 2:11 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> As currently defined, Notification.requestPermission uses the origin of
> "wherever script was entered" (entry settings object's origin).  See
> <https://notifications.spec.whatwg.org/#dom-notification-requestpermission>.
> I personally consider this sort of action-at-a-distance very broken, but
> some spec editors seem to think that because UAs do it for some things (e.g.
> Location) we should do it for everything.  :(

Being the editor, I don't think that's true. We lack some clear
terminology and principles around globals and origins which is why
they continue to be a mess. As you know I've filed various bugs on
both HTML and IDL to get this cleared up, but not much progress to
date. Given how the Notifications API is not really widely deployed
yet, I'm sure we can change this. What would you suggest it says?


-- 
https://annevankesteren.nl/

Received on Wednesday, 18 March 2015 13:21:57 UTC