W3C home > Mailing lists > Public > public-script-coord@w3.org > January to March 2015

Re: A new hack for singleton objects

From: Anne van Kesteren <annevk@annevk.nl>
Date: Wed, 18 Mar 2015 14:21:30 +0100
Message-ID: <CADnb78i4addtRzCe3MbPdL0azdfXY=bD23S4n-onw7eeeKCMLQ@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: Domenic Denicola <d@domenic.me>, "public-script-coord@w3.org" <public-script-coord@w3.org>
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

This archive was generated by hypermail 2.3.1 : Wednesday, 18 March 2015 13:21:57 UTC