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

Issue 1752713002: Fix SVGDocument return title that is not a child of the root element (Closed)

Created:
4 years, 9 months ago by hyunjunekim2
Modified:
4 years, 9 months ago
Reviewers:
pdr., fs
CC:
blink-reviews, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, rwlbuis, sof
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix SVGDocument return title that is not a child of the root element The title element should be a child of the root element. But currently return invalid title that is not a child of the root element. Because on getting, if the root element is an svg element in the SVG namespace, then let value ba a concatenation of the data of all the child Text nodes of the first title element in the SVG namespace that is a child of the root element.[1] And on setting, let element be the first title element in the SVG namespace that is a child of the root element, if any. If there isn't one, create a title element in the SVG namespace, insert it as the first child of the root element, and let element be that element.[1] [1] https://html.spec.whatwg.org/multipage/dom.html#document.title BUG=543061 Committed: https://crrev.com/2764e5d8a0ec6cf13cb4d918a5032e45da691247 Cr-Commit-Position: refs/heads/master@{#379301}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : Add test #

Total comments: 19

Patch Set 6 : Testing #

Patch Set 7 : #

Total comments: 12

Patch Set 8 : #

Total comments: 2

Patch Set 9 : #

Patch Set 10 : #

Total comments: 2

Patch Set 11 : #

Total comments: 7

Patch Set 12 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -17 lines) Patch
M third_party/WebKit/LayoutTests/imported/web-platform-tests/html/dom/documents/dom-tree-accessors/document.title-09-expected.txt View 1 2 3 4 5 1 chunk +0 lines, -8 lines 0 comments Download
A third_party/WebKit/LayoutTests/svg/dom/svg-document-set-title-mutations.html View 1 2 3 4 5 6 7 1 chunk +21 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +38 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGTitleElement.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGTitleElement.cpp View 1 2 3 4 5 6 7 2 chunks +19 lines, -1 line 0 comments Download

Messages

Total messages: 47 (31 generated)
hyunjunekim2
pdr, fs Could you check this patch and give me advice? Thank you :)
4 years, 9 months ago (2016-03-01 14:40:54 UTC) #11
fs
https://codereview.chromium.org/1752713002/diff/80001/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/dom/documents/dom-tree-accessors/document.title-09-expected.txt File third_party/WebKit/LayoutTests/imported/web-platform-tests/html/dom/documents/dom-tree-accessors/document.title-09-expected.txt (right): https://codereview.chromium.org/1752713002/diff/80001/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/dom/documents/dom-tree-accessors/document.title-09-expected.txt#newcode5 third_party/WebKit/LayoutTests/imported/web-platform-tests/html/dom/documents/dom-tree-accessors/document.title-09-expected.txt:5: FAIL Title element not in SVG namespace assert_equals: expected ...
4 years, 9 months ago (2016-03-01 15:49:04 UTC) #17
hyunjunekim2
fs, pdr Could you check PS7? Thank you. :) https://codereview.chromium.org/1752713002/diff/80001/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/dom/documents/dom-tree-accessors/document.title-09-expected.txt File third_party/WebKit/LayoutTests/imported/web-platform-tests/html/dom/documents/dom-tree-accessors/document.title-09-expected.txt (right): https://codereview.chromium.org/1752713002/diff/80001/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/dom/documents/dom-tree-accessors/document.title-09-expected.txt#newcode5 third_party/WebKit/LayoutTests/imported/web-platform-tests/html/dom/documents/dom-tree-accessors/document.title-09-expected.txt:5: ...
4 years, 9 months ago (2016-03-03 14:06:11 UTC) #29
fs
https://codereview.chromium.org/1752713002/diff/120001/third_party/WebKit/LayoutTests/svg/dom/svg-document-set-title-mutations.html File third_party/WebKit/LayoutTests/svg/dom/svg-document-set-title-mutations.html (right): https://codereview.chromium.org/1752713002/diff/120001/third_party/WebKit/LayoutTests/svg/dom/svg-document-set-title-mutations.html#newcode7 third_party/WebKit/LayoutTests/svg/dom/svg-document-set-title-mutations.html:7: function newSVGDocument() { This is only used once, so ...
4 years, 9 months ago (2016-03-03 15:49:45 UTC) #30
hyunjunekim2
fs, pdr Could you check PS8? Thank you. https://codereview.chromium.org/1752713002/diff/120001/third_party/WebKit/LayoutTests/svg/dom/svg-document-set-title-mutations.html File third_party/WebKit/LayoutTests/svg/dom/svg-document-set-title-mutations.html (right): https://codereview.chromium.org/1752713002/diff/120001/third_party/WebKit/LayoutTests/svg/dom/svg-document-set-title-mutations.html#newcode7 third_party/WebKit/LayoutTests/svg/dom/svg-document-set-title-mutations.html:7: function ...
4 years, 9 months ago (2016-03-04 11:29:32 UTC) #31
fs
https://codereview.chromium.org/1752713002/diff/140001/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/1752713002/diff/140001/third_party/WebKit/Source/core/dom/Document.cpp#newcode1329 third_party/WebKit/Source/core/dom/Document.cpp:1329: String titleText; This is not quite what I meant... ...
4 years, 9 months ago (2016-03-04 11:47:06 UTC) #32
hyunjunekim2
fs, Could you check condition? Thank you. https://codereview.chromium.org/1752713002/diff/140001/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/1752713002/diff/140001/third_party/WebKit/Source/core/dom/Document.cpp#newcode1329 third_party/WebKit/Source/core/dom/Document.cpp:1329: String titleText; ...
4 years, 9 months ago (2016-03-04 12:58:09 UTC) #33
fs
https://codereview.chromium.org/1752713002/diff/180001/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/1752713002/diff/180001/third_party/WebKit/Source/core/dom/Document.cpp#newcode1329 third_party/WebKit/Source/core/dom/Document.cpp:1329: if (isSVGDocument() && ((isSVGSVGElement(documentElement()) && isHTMLTitleElement(m_titleElement)) I think a ...
4 years, 9 months ago (2016-03-04 13:11:09 UTC) #34
hyunjunekim2
fs, Could you check PS 11? https://codereview.chromium.org/1752713002/diff/180001/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/1752713002/diff/180001/third_party/WebKit/Source/core/dom/Document.cpp#newcode1329 third_party/WebKit/Source/core/dom/Document.cpp:1329: if (isSVGDocument() && ...
4 years, 9 months ago (2016-03-04 14:42:17 UTC) #35
fs
LGTM w/ nits https://codereview.chromium.org/1752713002/diff/200001/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/1752713002/diff/200001/third_party/WebKit/Source/core/dom/Document.cpp#newcode1331 third_party/WebKit/Source/core/dom/Document.cpp:1331: // If the root element that ...
4 years, 9 months ago (2016-03-04 14:57:12 UTC) #36
hyunjunekim2
fs, Could you check PS12? Thank you. https://codereview.chromium.org/1752713002/diff/200001/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/1752713002/diff/200001/third_party/WebKit/Source/core/dom/Document.cpp#newcode1331 third_party/WebKit/Source/core/dom/Document.cpp:1331: // If ...
4 years, 9 months ago (2016-03-04 15:14:44 UTC) #37
fs
lgtm
4 years, 9 months ago (2016-03-04 15:18:39 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1752713002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1752713002/220001
4 years, 9 months ago (2016-03-04 15:21:03 UTC) #42
commit-bot: I haz the power
Committed patchset #12 (id:220001)
4 years, 9 months ago (2016-03-04 16:33:10 UTC) #44
commit-bot: I haz the power
Patchset 12 (id:??) landed as https://crrev.com/2764e5d8a0ec6cf13cb4d918a5032e45da691247 Cr-Commit-Position: refs/heads/master@{#379301}
4 years, 9 months ago (2016-03-04 16:35:42 UTC) #46
hyunjunekim2
4 years, 9 months ago (2016-03-07 07:36:54 UTC) #47
Message was sent while issue was closed.
A revert of this CL (patchset #12 id:220001) has been created in
https://codereview.chromium.org/1771703003/ by hyunjune.kim@samsung.com.

The reason for reverting is: Crash in blink:Document::setTitleElement.

Issue :https://bugs.chromium.org/p/chromium/issues/detail?id=592323.

Powered by Google App Engine
This is Rietveld 408576698