Re: [webidl] Add a [SecureContext] operator attribute (#65)

@bifurcation: The more interesting case for the "exposure" method is:

    var thing = navigator.secureOnlyFeature;
    document.domain = document.domain;
    thing.whatever();

I don't know what we'd do in that case; it seems difficult to deal with. Throwing seems to deal with it more cleanly (assuming we're doing runtime checks).

@bzbarsky's note that the prototypes are fixed at load time is (I think) true for V8 as well (@jeisinger to confirm). Removing things based on runtime checks might be difficult to implement.

---
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/pull/65#issuecomment-156356090

Received on Friday, 13 November 2015 07:49:11 UTC