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

<form> submission checks #5761

Merged
merged 2 commits into from
Sep 22, 2017
Merged

<form> submission checks #5761

merged 2 commits into from
Sep 22, 2017

Conversation

annevk
Copy link
Member

@annevk annevk commented May 2, 2017

Simple tests for #3109 and whatwg/html#2615.

@wpt-pr-bot
Copy link
Collaborator

Notifying @ayg. (Learn how reviewing works.)

@wpt-pr-bot wpt-pr-bot added the html label May 2, 2017
@ghost
Copy link

ghost commented May 2, 2017

These tests are now available on w3c-test.org

@ghost
Copy link

ghost commented May 2, 2017

View the complete job log.

Firefox (nightly channel)

Testing web-platform-tests at revision 3ea8c23
Using browser at version BuildID 20170501100238; SourceStamp 076a7a66096f9e8d102548397254be32eb26bc3d
Starting 10 test iterations
All results were stable

All results

1 test ran
/html/semantics/forms/form-submission-0/submission-checks.window.html
Subtest Results Messages
OK
<form> not connected to a document cannot navigate PASS
<form> in a navigated document cannot navigate FAIL

@ghost
Copy link

ghost commented May 2, 2017

View the complete job log.

Chrome (unstable channel)

Testing web-platform-tests at revision 3ea8c23
Using browser at version 60.0.3080.5 dev
Starting 10 test iterations
All results were stable

All results

1 test ran
/html/semantics/forms/form-submission-0/submission-checks.window.html
Subtest Results Messages
OK
<form> not connected to a document cannot navigate PASS
<form> in a navigated document cannot navigate PASS

annevk added a commit to whatwg/html that referenced this pull request May 3, 2017
Require that they are all connected to a document that is fully
active. There is enough difference between implementations that this
appears to be web compatible.

Tests:

* web-platform-tests/wpt#5758
* web-platform-tests/wpt#5759
* web-platform-tests/wpt#5761

Fixes #2615.
annevk added a commit to whatwg/html that referenced this pull request May 9, 2017
Require that they are all connected to a document that is fully
active. There is enough difference between implementations that this
appears to be web compatible.

Tests:

* web-platform-tests/wpt#5758
* web-platform-tests/wpt#5759
* web-platform-tests/wpt#5761

Fixes #2615.
@sideshowbarker
Copy link
Member

Is this just waiting on a reviewer?

frame.onload = t.step_func(() => {
if(frame.contentWindow.location.href === "about:blank")
return;
assert_unreached();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the origial navigation to /common/blank.html is expected to be interrupted but the disconnected form submission, but that submission should not actually cause any other navigation to occur either?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's only a single potential navigation here. And it would be due to the form submission, except it shouldn't work as the form is not connected.

Copy link
Contributor

@jdm jdm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These tests look fine from a code point of view.

annevk added a commit to whatwg/html that referenced this pull request Aug 23, 2017
Require that they are all connected to a document that is fully
active. There is enough difference between implementations that this
appears to be web compatible.

Tests:

* web-platform-tests/wpt#5758
* web-platform-tests/wpt#5759
* web-platform-tests/wpt#5761

Fixes #2615.
@ghost
Copy link

ghost commented Sep 15, 2017

Build PASSED

Started: 2017-09-15 13:32:57
Finished: 2017-09-15 13:43:59

View more information about this build on:

Copy link
Member

@domenic domenic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Ideally we'd test connected vs. in a document tree as well, but that's optional...

@annevk annevk merged commit 6667388 into master Sep 22, 2017
annevk added a commit to whatwg/html that referenced this pull request Sep 22, 2017
Require that they are all connected to a document (except for <a>) that is fully active (including <a>). There is enough difference between implementations that this appears to be web compatible.

Also perform a second connected check for <form>.

Tests:

* web-platform-tests/wpt#5758
* web-platform-tests/wpt#5759
* web-platform-tests/wpt#5761

Fixes #2615 and fixes #2708.
@zcorpan zcorpan deleted the annevk/form-submission-checks branch September 22, 2017 14:49
alice pushed a commit to alice/html that referenced this pull request Jan 8, 2019
Require that they are all connected to a document (except for <a>) that is fully active (including <a>). There is enough difference between implementations that this appears to be web compatible.

Also perform a second connected check for <form>.

Tests:

* web-platform-tests/wpt#5758
* web-platform-tests/wpt#5759
* web-platform-tests/wpt#5761

Fixes whatwg#2615 and fixes whatwg#2708.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants