Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Issue 2261393002: Fixed the behaviour of form submit to Firefox: form does not submit once it has been removed. (Closed)

Created:
4 years, 4 months ago by lunalu1
Modified:
4 years, 2 months ago
Reviewers:
Lei Zhang, tkent, jwd, iclelland, ojan
CC:
blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fixed the behaviour of form submit to match the standard: no submit is taken place when the form is detached from the document (e.g., form is removed). One additional layout test (form-removed-from-document.html) is added to verify the change made above. Two layout tests has been modified to match the behaviour of submitting form (when from is detached from/attached to the document) in Firefox. BUG=586749 Committed: https://crrev.com/aaad992eef8e8c1e879f72afd9dabb05d3855e67 Cr-Commit-Position: refs/heads/master@{#414590}

Patch Set 1 #

Patch Set 2 : Reformat #

Patch Set 3 : Test update #

Patch Set 4 : Remove form stats #

Total comments: 6

Patch Set 5 : Layout test modification #

Patch Set 6 : Code review change #

Total comments: 2

Patch Set 7 : Code review change #

Total comments: 8

Patch Set 8 : Code review change #

Total comments: 2

Patch Set 9 : "Final nit update" #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -4 lines) Patch
A third_party/WebKit/LayoutTests/fast/forms/submit-form-not-attached-to-document.html View 1 2 3 4 5 6 7 1 chunk +24 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/cookies/same-site/popup-cross-site-post.html View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/cookies/same-site/popup-same-site-post.html View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/UseCounter.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/HTMLFormElement.cpp View 1 2 3 4 5 6 7 1 chunk +6 lines, -2 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 43 (19 generated)
lunalu1
4 years, 4 months ago (2016-08-23 17:27:33 UTC) #7
iclelland
This looks pretty good -- I thought of one more layout test that we should ...
4 years, 4 months ago (2016-08-23 17:46:23 UTC) #8
lunalu1
On 2016/08/23 17:46:23, iclelland wrote: > This looks pretty good -- I thought of one ...
4 years, 4 months ago (2016-08-23 18:55:55 UTC) #9
lunalu1
Hi, I made some changes to fix the issue crbug.com/586749. Could you please help me ...
4 years, 4 months ago (2016-08-24 15:24:43 UTC) #11
iclelland
Thanks, this looks good -- LGTM, just one small nit in the new test. https://codereview.chromium.org/2261393002/diff/100001/third_party/WebKit/LayoutTests/fast/forms/submit-form-not-attached-to-document.html ...
4 years, 4 months ago (2016-08-24 15:41:57 UTC) #12
lunalu1
On 2016/08/24 15:41:57, iclelland wrote: > Thanks, this looks good -- LGTM, just one small ...
4 years, 4 months ago (2016-08-24 15:59:33 UTC) #13
tkent
https://codereview.chromium.org/2261393002/diff/120001/third_party/WebKit/LayoutTests/fast/forms/submit-form-not-attached-to-document.html File third_party/WebKit/LayoutTests/fast/forms/submit-form-not-attached-to-document.html (right): https://codereview.chromium.org/2261393002/diff/120001/third_party/WebKit/LayoutTests/fast/forms/submit-form-not-attached-to-document.html#newcode19 third_party/WebKit/LayoutTests/fast/forms/submit-form-not-attached-to-document.html:19: function redirect() { assert_true(false); } Use assert_unreached('description'). https://codereview.chromium.org/2261393002/diff/120001/third_party/WebKit/Source/core/html/HTMLFormElement.cpp File ...
4 years, 4 months ago (2016-08-25 00:52:54 UTC) #14
iclelland
https://codereview.chromium.org/2261393002/diff/120001/third_party/WebKit/Source/core/html/HTMLFormElement.cpp File third_party/WebKit/Source/core/html/HTMLFormElement.cpp (right): https://codereview.chromium.org/2261393002/diff/120001/third_party/WebKit/Source/core/html/HTMLFormElement.cpp#newcode354 third_party/WebKit/Source/core/html/HTMLFormElement.cpp:354: // Do not submit if the form is not ...
4 years, 3 months ago (2016-08-25 13:17:30 UTC) #15
lunalu1
Hi asvikine, I made some changes in the histograms.xml file. Please review the changes. Thanks, ...
4 years, 3 months ago (2016-08-25 15:05:35 UTC) #17
tkent
lgtm
4 years, 3 months ago (2016-08-25 16:08:35 UTC) #18
lunalu1
Hi I didn't realize that asvitkine was OOO. jwd, could you please review the change ...
4 years, 3 months ago (2016-08-25 17:22:40 UTC) #21
jwd
LGTM with nit. https://codereview.chromium.org/2261393002/diff/140001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (left): https://codereview.chromium.org/2261393002/diff/140001/tools/metrics/histograms/histograms.xml#oldcode79082 tools/metrics/histograms/histograms.xml:79082: - <int value="1399" label="FormSubmissionNotInDocumentTree"/> Please prefix ...
4 years, 3 months ago (2016-08-25 17:53:31 UTC) #22
lunalu1
https://codereview.chromium.org/2261393002/diff/140001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (left): https://codereview.chromium.org/2261393002/diff/140001/tools/metrics/histograms/histograms.xml#oldcode79082 tools/metrics/histograms/histograms.xml:79082: - <int value="1399" label="FormSubmissionNotInDocumentTree"/> On 2016/08/25 17:53:31, jwd wrote: ...
4 years, 3 months ago (2016-08-25 18:09:08 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2261393002/160001
4 years, 3 months ago (2016-08-25 18:10:35 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/281262)
4 years, 3 months ago (2016-08-25 20:18:21 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2261393002/160001
4 years, 3 months ago (2016-08-25 22:47:15 UTC) #32
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 3 months ago (2016-08-26 00:16:37 UTC) #33
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/aaad992eef8e8c1e879f72afd9dabb05d3855e67 Cr-Commit-Position: refs/heads/master@{#414590}
4 years, 3 months ago (2016-08-26 00:28:09 UTC) #35
Lei Zhang
FYI, I'm attempting to manually revert this in https://codereview.chromium.org/2409863002
4 years, 2 months ago (2016-10-10 23:31:58 UTC) #37
Lei Zhang
On 2016/10/10 23:31:58, Lei Zhang wrote: > FYI, I'm attempting to manually revert this in ...
4 years, 2 months ago (2016-10-10 23:41:38 UTC) #38
ojan
Did this have an intent to ship or intent to remove? I can't seem to ...
4 years, 2 months ago (2016-10-10 23:46:02 UTC) #40
iclelland
On 2016/10/10 23:46:02, ojan wrote: > Did this have an intent to ship or intent ...
4 years, 2 months ago (2016-10-11 03:09:06 UTC) #41
ojan
Ah, I missed that. Thanks. I was just looking for more explanation on the change. ...
4 years, 2 months ago (2016-10-11 03:11:30 UTC) #42
ojan
4 years, 2 months ago (2016-10-11 03:11:30 UTC) #43
Message was sent while issue was closed.
Ah, I missed that. Thanks. I was just looking for more explanation on the
change.

On Mon, Oct 10, 2016 at 8:09 PM <iclelland@chromium.org> wrote:

> On 2016/10/10 23:46:02, ojan wrote:
> > Did this have an intent to ship or intent to remove? I can't seem to
> find it.
>
> From the original bug report, it seemed like a small enough corner case,
> with
> negligible use, that an intent wasn't required
> (https://bugs.chromium.org/p/chromium/issues/detail?id=586749#c10). The
> fix was
> to match the spec, and to match Firefox behaviour in the same circumstance,
> although it seems now like the rules that Gecko uses might be more subtle
> than
> originally believed.
>
> https://codereview.chromium.org/2261393002/
>

-- 
You received this message because you are subscribed to the Google Groups "Blink
Reviews" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to blink-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698