Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate a new document.open() #3651

Closed
wants to merge 2 commits into from
Closed

Conversation

annevk
Copy link
Member

@annevk annevk commented Apr 27, 2018

@annevk
Copy link
Member Author

annevk commented Apr 27, 2018

TODO:

  • Investigate if IDL can be simplified
  • Write tests
  • Compare new algorithm to Chromium and WebKit code
  • This makes it so that each document always has a single global. Investigate if we can simplify prose therefore. I think it means we can just use the document's relevant global object throughout.
  • Look at other callers of InitializeHostDefinedRealm and see if they can be simplified.

For #1698, #3564, ... Needs many tests.
@annevk annevk force-pushed the annevk/redo-document-open branch from fc36e7d to 15f80d1 Compare May 3, 2018 07:33
annevk added a commit to web-platform-tests/wpt that referenced this pull request May 3, 2018
annevk added a commit to web-platform-tests/wpt that referenced this pull request May 3, 2018
For whatwg/html#3651 or possibly a standalone patch.

It seems that Firefox only supports the reload override flag for about:blank resources. Edge always supports it. Safari overrides the URL and therefore ends up in a loop. Chrome doesn't support it, which seems most desirable as it's a rather hairy feature.
annevk added a commit to web-platform-tests/wpt that referenced this pull request May 3, 2018
annevk added a commit to web-platform-tests/wpt that referenced this pull request May 3, 2018
@annevk
Copy link
Member Author

annevk commented May 4, 2018

I don't understand how #1018 came about. I cannot get any browser to fire the unload event when invoking document.open(). Not when the document is still loading and not when it's finished loading. (If I had to guess bz did not consider that and nobody tested it.)

TimothyGu pushed a commit to web-platform-tests/wpt that referenced this pull request Jul 13, 2018
TimothyGu pushed a commit to web-platform-tests/wpt that referenced this pull request Aug 1, 2018
TimothyGu pushed a commit to web-platform-tests/wpt that referenced this pull request Aug 2, 2018
TimothyGu pushed a commit to web-platform-tests/wpt that referenced this pull request Aug 2, 2018
TimothyGu added a commit to TimothyGu/html that referenced this pull request Aug 14, 2018
Based on the work by Anne van Kesteren in whatwg#3651, but without the parts
concerning the session history. Changes to that area will come later
(see whatwg#3818).

Tests: web-platform-tests/wpt#10773
Tests: web-platform-tests/wpt#10778
Tests: web-platform-tests/wpt#10789
Tests: web-platform-tests/wpt#10815
Tests: web-platform-tests/wpt#10818

Fixes whatwg#1698.
Fixes whatwg#3286.
Fixes whatwg#3306.
Closes whatwg#3665.

Co-authored-by: Anne van Kesteren <annevk@annevk.nl>
TimothyGu added a commit to TimothyGu/html that referenced this pull request Aug 14, 2018
Based on the work by Anne van Kesteren in whatwg#3651, but without the parts
concerning the session history. Changes to that area will come later
(see whatwg#3818).

Tests: web-platform-tests/wpt#10773
Tests: web-platform-tests/wpt#10778
Tests: web-platform-tests/wpt#10815
Tests: web-platform-tests/wpt#10818

Fixes whatwg#1698.
Fixes whatwg#3286.
Fixes whatwg#3306.
Closes whatwg#3665.

Co-authored-by: Anne van Kesteren <annevk@annevk.nl>
TimothyGu pushed a commit to web-platform-tests/wpt that referenced this pull request Aug 14, 2018
TimothyGu pushed a commit to web-platform-tests/wpt that referenced this pull request Aug 15, 2018
domenic pushed a commit that referenced this pull request Aug 16, 2018
In particular, removes the realm creation, document unloading, and tasks
removal steps.

Based on the work by Anne van Kesteren in #3651, but without the parts
concerning the session history. Changes to that area will come later
(see #3818).

These changes allow us to remove several auxiliary concepts that only
existed to support document.open():

- The recycle parameter to the "unload a Document" algorithm
- The window parameter to the "set the active document" algorithm

Tests: web-platform-tests/wpt#10773
Tests: web-platform-tests/wpt#10778
Tests: web-platform-tests/wpt#10815
Tests: web-platform-tests/wpt#10818

Fixes #1698.
Fixes #3286.
Fixes #3306.
Closes #3665.
TimothyGu pushed a commit to web-platform-tests/wpt that referenced this pull request Aug 17, 2018
TimothyGu pushed a commit to web-platform-tests/wpt that referenced this pull request Aug 20, 2018
TimothyGu pushed a commit to web-platform-tests/wpt that referenced this pull request Aug 20, 2018
TimothyGu added a commit to TimothyGu/html that referenced this pull request Sep 4, 2018
This implements the "ideal 2" plan in whatwg#3651, which is found to be
compatible with the existing Chrome test suite.

Closes whatwg#3651.
Fixes whatwg#3975.

Tests: web-platform-tests/wpt#10789
@domenic domenic closed this in #3999 Sep 6, 2018
domenic pushed a commit that referenced this pull request Sep 6, 2018
This implements the "ideal 2" plan in #3975, which was found to be
compatible with the existing Chrome test suite while being reasonably
straightforward.

Closes #3651.
Fixes #3975.

Tests: web-platform-tests/wpt#10789
@annevk annevk deleted the annevk/redo-document-open branch January 25, 2019 10:11
mustaqahmed pushed a commit to mustaqahmed/html that referenced this pull request Feb 15, 2019
In particular, removes the realm creation, document unloading, and tasks
removal steps.

Based on the work by Anne van Kesteren in whatwg#3651, but without the parts
concerning the session history. Changes to that area will come later
(see whatwg#3818).

These changes allow us to remove several auxiliary concepts that only
existed to support document.open():

- The recycle parameter to the "unload a Document" algorithm
- The window parameter to the "set the active document" algorithm

Tests: web-platform-tests/wpt#10773
Tests: web-platform-tests/wpt#10778
Tests: web-platform-tests/wpt#10815
Tests: web-platform-tests/wpt#10818

Fixes whatwg#1698.
Fixes whatwg#3286.
Fixes whatwg#3306.
Closes whatwg#3665.
mustaqahmed pushed a commit to mustaqahmed/html that referenced this pull request Feb 15, 2019
This implements the "ideal 2" plan in whatwg#3975, which was found to be
compatible with the existing Chrome test suite while being reasonably
straightforward.

Closes whatwg#3651.
Fixes whatwg#3975.

Tests: web-platform-tests/wpt#10789
mustaqahmed pushed a commit to mustaqahmed/html that referenced this pull request Feb 15, 2019
In particular, removes the realm creation, document unloading, and tasks
removal steps.

Based on the work by Anne van Kesteren in whatwg#3651, but without the parts
concerning the session history. Changes to that area will come later
(see whatwg#3818).

These changes allow us to remove several auxiliary concepts that only
existed to support document.open():

- The recycle parameter to the "unload a Document" algorithm
- The window parameter to the "set the active document" algorithm

Tests: web-platform-tests/wpt#10773
Tests: web-platform-tests/wpt#10778
Tests: web-platform-tests/wpt#10815
Tests: web-platform-tests/wpt#10818

Fixes whatwg#1698.
Fixes whatwg#3286.
Fixes whatwg#3306.
Closes whatwg#3665.
mustaqahmed pushed a commit to mustaqahmed/html that referenced this pull request Feb 15, 2019
This implements the "ideal 2" plan in whatwg#3975, which was found to be
compatible with the existing Chrome test suite while being reasonably
straightforward.

Closes whatwg#3651.
Fixes whatwg#3975.

Tests: web-platform-tests/wpt#10789
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

2 participants