[Bug 27301] New: Define context variables, such as "context object"


            Bug ID: 27301
           Summary: Define context variables, such as "context object"
           Product: WebAppsWG
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: WebIDL
          Assignee: cam@mcc.id.au
          Reporter: annevk@annevk.nl
        QA Contact: public-webapps-bugzilla@w3.org
                CC: mike@w3.org, public-script-coord@w3.org

The current flow is:

  JavaScript -> IDL -> API spec -> IDL -> JavaScript

I think it would be useful if IDL defined a bit more explicitly what the API
spec has access to. E.g. one thing we often stumble with is something DOM calls
the "context object". Perhaps IDL could "invent" something named "this" and
hand that to the API spec.

Another thing we might need access to is the Realm. It has been suggested to
base origin checks on that. (Although in that case IDL would also need to make
it clear what the origin is of a Realm, as JavaScript doesn't do that.)

You are receiving this mail because:
You are on the CC list for the bug.

Received on Tuesday, 11 November 2014 11:47:11 UTC