Skip to content

Serializing origins #14892

Closed
Closed

Description

@asajeffrey

IRC conversation with @bzbarsky: http://logs.glob.uno/?c=mozilla%23servo&s=6+Jan+2017&e=6+Jan+2017#c588833

Origin objects have object identity, which can be observed in at least two ways: a) we create new opaque origins, then check their identity, and b) document.domain allows origin objects to be mutated.

This is fine for threads which share an address space, not so good for serializing origins from script to the constellation. In particular, we need to store origins in the session history, so that if an about:blank page is reloaded, it does so with the same origin as it had before.

Activity

  1. added
    A-constellation
    A-content/script
    on Jan 6, 2017
  2. Ms2ger commented on Jan 9, 2017

    @Ms2ger
    Contributor

    Did we end up moving to process-global counters rather than uuids for opaque origins? We would probably need to revert that if we want to send origins across processes.

  3. asajeffrey commented on Jan 10, 2017

    @asajeffrey
    ContributorAuthor

    We did move away from uuids and we would have to move back if we wanted them to be global.

  4. self-assigned this
    on Jan 10, 2017
  5. changed the title [-]Sending origins from script to the constellation[/-] [+]Serializing origins[/+] on Feb 7, 2017
  6. asajeffrey commented on Feb 7, 2017

    @asajeffrey
    ContributorAuthor

    This is needed in a few places: anywhere we're sending origins to the contstellation, and anywhere where a helper thread needs to know the origin that its acting on behalf of, notably fetch.

  7. added 5 commits that reference this issue on Feb 22, 2017
    124f0f3
    f11ea5c
    2f73c51
    78e8c31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-constellationA-content/script

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions