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

Issue 371413004: Fix for input/datalist failure when datalist is created outside document (Closed)

Created:
6 years, 5 months ago by deepak.sa
Modified:
6 years, 5 months ago
Reviewers:
keishi, tkent, esprehn
CC:
blink-reviews, blink-reviews-html_chromium.org, dglazkov+blink
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Fix for input/datalist failure when datalist is created outside document This patch fixes the failure, where datalist, when created in a shadowroot outside the document, doesnot behave as expected. This patch changes HTMLInputElement::resetListAttributeTargetObserver to update the list reference when it resets the observer. TEST=fast/forms/datalist/datalist-inside-shadow-dom.html BUG=391995 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=178632

Patch Set 1 #

Total comments: 4

Patch Set 2 : Another approach #

Total comments: 1

Patch Set 3 : Using didNotifySubtreeInsertionsToDocument #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -1 line) Patch
A LayoutTests/fast/forms/datalist/datalist-inside-shadow-dom.html View 1 2 1 chunk +19 lines, -0 lines 0 comments Download
A LayoutTests/fast/forms/datalist/datalist-inside-shadow-dom-expected.html View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
M Source/core/html/HTMLInputElement.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/html/HTMLInputElement.cpp View 1 2 2 chunks +6 lines, -1 line 0 comments Download

Messages

Total messages: 16 (0 generated)
deepak.sa
Please have a look. Thanks!
6 years, 5 months ago (2014-07-08 17:10:38 UTC) #1
tkent
+keishi
6 years, 5 months ago (2014-07-08 23:34:04 UTC) #2
keishi
lgtm https://codereview.chromium.org/371413004/diff/1/LayoutTests/fast/forms/datalist/datalist-inside-shadow-dom.html File LayoutTests/fast/forms/datalist/datalist-inside-shadow-dom.html (right): https://codereview.chromium.org/371413004/diff/1/LayoutTests/fast/forms/datalist/datalist-inside-shadow-dom.html#newcode10 LayoutTests/fast/forms/datalist/datalist-inside-shadow-dom.html:10: Could we have a description what this test ...
6 years, 5 months ago (2014-07-09 02:04:37 UTC) #3
esprehn
Thanks for fixing this so fast!
6 years, 5 months ago (2014-07-10 05:10:48 UTC) #4
deepak.sa
This patch is working in Release build but not in Debug build, as it is ...
6 years, 5 months ago (2014-07-15 05:39:20 UTC) #5
keishi
https://codereview.chromium.org/371413004/diff/1/LayoutTests/fast/forms/datalist/datalist-inside-shadow-dom-expected.html File LayoutTests/fast/forms/datalist/datalist-inside-shadow-dom-expected.html (right): https://codereview.chromium.org/371413004/diff/1/LayoutTests/fast/forms/datalist/datalist-inside-shadow-dom-expected.html#newcode5 LayoutTests/fast/forms/datalist/datalist-inside-shadow-dom-expected.html:5: <datalist id="lang"> Extra tab. You can move the datalist ...
6 years, 5 months ago (2014-07-15 06:12:13 UTC) #6
esprehn
We need to roll this patch out, you've caused security bugs if you made that ...
6 years, 5 months ago (2014-07-15 06:52:21 UTC) #7
deepak.sa
Could you take another look? In the previous approach, ASSERT was failing as ContainerNode::notifyNodeInternal was ...
6 years, 5 months ago (2014-07-16 14:47:37 UTC) #8
esprehn
ContainerNode shouldn't know anything about specific elements, this is not correct.
6 years, 5 months ago (2014-07-16 16:23:42 UTC) #9
esprehn
https://codereview.chromium.org/371413004/diff/20001/Source/core/dom/ContainerNode.cpp File Source/core/dom/ContainerNode.cpp (right): https://codereview.chromium.org/371413004/diff/20001/Source/core/dom/ContainerNode.cpp#newcode785 Source/core/dom/ContainerNode.cpp:785: toHTMLInputElement(root).listAttributeTargetChanged(); I think you might want to use didNotifySubtreeInsertionsToDocument()?
6 years, 5 months ago (2014-07-16 19:43:50 UTC) #10
deepak.sa
Patchset 3 uses didNotifySubtreeInsertionsToDocument() to call listAttributeTargetChanged. PTAL? Thanks!
6 years, 5 months ago (2014-07-17 12:14:09 UTC) #11
deepak.sa
Ping!
6 years, 5 months ago (2014-07-21 05:23:49 UTC) #12
esprehn
This lgtm. It might regress the performance on pages with lots of <input> elements though ...
6 years, 5 months ago (2014-07-22 06:10:17 UTC) #13
deepak.sa
The CQ bit was checked by deepak.sa@samsung.com
6 years, 5 months ago (2014-07-22 07:06:03 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/deepak.sa@samsung.com/371413004/30001
6 years, 5 months ago (2014-07-22 07:06:31 UTC) #15
commit-bot: I haz the power
6 years, 5 months ago (2014-07-22 07:58:47 UTC) #16
Message was sent while issue was closed.
Change committed as 178632

Powered by Google App Engine
This is Rietveld 408576698