Skip to content

Implement document.domain  #934

Closed

Description

@DavidBruant

This is related to #633.
document.domain changes the origin of a document. Any current and coming optimizations based on the assumption that the origin of a document not changing over time like the recent Make sandboxed iframes run with different script tasks may require removing these optimizations later.

For that reason, I feel it'd be important to implement document.domain early and start using it in Servo tests to make sure Servo is actually running the web and not an idealized version

For the specific case of sandbox iframes and document.domain, it's been discussed in standards, there was agreement among the few who participated in the discussion and a solution has been implemented in Firefox (poison document.domain setter in sandboxed iframes regardless of allow-same-origin).
Assuming this sticks, this particular optimization will remain.

Activity

  1. bzbarsky commented on Sep 13, 2013

    @bzbarsky
    Contributor

    Actually, need to neuter indexed/named access to subframes too. Or make it async. Or something.

  2. bzbarsky commented on Sep 13, 2013

    @bzbarsky
    Contributor

    And in particular, if that access gets you a same-origin frame, there's a possible problem

  3. added a commit that references this issue on Sep 7, 2014
  4. frewsxcv commented on Aug 26, 2015

    @frewsxcv
    Contributor

    Visiting for triage: as of today, this is still not done

    // attribute DOMString domain;

  5. mbrubeck commented on May 25, 2016

    @mbrubeck
    Contributor

    Fixed by #8655.

  6. samlh commented on May 25, 2016

    @samlh
    Contributor

    I think the document.domain setter is still missing.

  7. self-assigned this
    on Jan 12, 2017
  8. asajeffrey commented on Feb 10, 2017

    @asajeffrey
    Contributor

    A first-cut implementation for the setter: asajeffrey@7aaa5c6

  9. asajeffrey commented on Feb 13, 2017

    @asajeffrey
    Contributor

    A PR for the setter: #15536.

  10. added 2 commits that reference this issue on Mar 15, 2017
    ea09005
    e600e04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-content/dom

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions