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

Issue 1363233003: Make sure <url>s are being serialized according to spec (Closed)

Created:
5 years, 3 months ago by nainar
Modified:
5 years, 2 months ago
Reviewers:
Timothy Loh
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make sure <url>s are being serialized according to spec Chrome doesn't serialize string as is stated in the spec here: https://drafts.csswg.org/cssom/#serialize-a-url. Each string passed to a URL is supposed to be in quotes. As opposed to what we do currently. Gecko on Firefox does this right. BUG=534674 Committed: https://crrev.com/3475df106fbbf3d5a686ff166be869077b8a16b3 Cr-Commit-Position: refs/heads/master@{#351033}

Patch Set 1 #

Patch Set 2 : CSSPrimitiveValue and CSSSVGDocumentValue customCSSText changes #

Total comments: 4

Patch Set 3 : #

Patch Set 4 : As per reviews #

Patch Set 5 : Fix Mac and Windows tests #

Total comments: 3

Patch Set 6 : Make layout tests readable #

Patch Set 7 : Layout test readability #

Total comments: 10

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : Remove decodeURIComponent #

Total comments: 4

Patch Set 11 : Fix interpolation tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+614 lines, -631 lines) Patch
M third_party/WebKit/LayoutTests/animations/interpolation/backdrop-filter-interpolation.html View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/animations/interpolation/backdrop-filter-interpolation-expected.txt View 1 2 3 4 5 6 7 8 9 10 3 chunks +42 lines, -42 lines 0 comments Download
M third_party/WebKit/LayoutTests/animations/interpolation/filter-interpolation.html View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/animations/interpolation/filter-interpolation-expected.txt View 1 2 3 4 5 6 7 8 9 10 2 chunks +28 lines, -28 lines 0 comments Download
M third_party/WebKit/LayoutTests/animations/interpolation/resources/interpolation-test.js View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/animations/responsive/fill-responsive.html View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/css3/filters/filter-property-expected.txt View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/css3/filters/filter-property-parsing-expected.txt View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/css3/filters/script-tests/filter-property.js View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/css3/filters/script-tests/filter-property-parsing.js View 1 2 3 4 5 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/backgrounds/background-shorthand-after-set-backgroundSize.html View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/backgrounds/background-shorthand-after-set-backgroundSize-expected.txt View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/backgrounds/background-shorthand-multiple-layers.html View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/backgrounds/background-shorthand-multiple-layers-expected.txt View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/backgrounds/background-shorthand-with-backgroundSize-style.html View 1 2 3 4 5 1 chunk +63 lines, -63 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/backgrounds/background-shorthand-with-backgroundSize-style-expected.txt View 1 2 3 4 5 1 chunk +52 lines, -52 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/backgrounds/multiple-backgrounds-computed-style-expected.txt View 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/backgrounds/script-tests/multiple-backgrounds-computed-style.js View 1 2 3 4 5 1 chunk +32 lines, -32 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css/background-position-serialize-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/css/background-serialize.html View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css/background-serialize-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css/bug523527-cursor-doesnt-update-with-same-hotspot.html View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css/css-escaped-identifier.html View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css/css-imagevalue-url.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/css/csstext-of-content-string.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/css/csstext-of-content-string-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/css/cursor-parsing.html View 1 2 3 4 5 3 chunks +17 lines, -17 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css/cursor-parsing-expected.txt View 1 2 3 1 chunk +26 lines, -26 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css/cursor-parsing-image-set.html View 1 2 3 2 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css/cursor-parsing-image-set-expected.txt View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css/cursor-parsing-quirks.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/css/cursor-parsing-quirks-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/css/getComputedStyle-relativeURL.html View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css/getComputedStyle/computed-style-border-image.html View 1 2 3 4 5 1 chunk +34 lines, -34 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css/getComputedStyle/computed-style-border-image-expected.txt View 1 2 3 4 5 1 chunk +34 lines, -34 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css/getComputedStyle/computed-style-cross-fade.html View 1 2 3 4 5 1 chunk +22 lines, -22 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css/getComputedStyle/computed-style-cross-fade-expected.txt View 1 chunk +9 lines, -9 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css/getComputedStyle/computed-style-properties.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/css/getComputedStyle/computed-style-properties-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/css/getComputedStyle/getComputedStyle-background-shorthand.html View 1 2 3 4 5 1 chunk +9 lines, -9 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css/getComputedStyle/getComputedStyle-background-shorthand-expected.txt View 1 2 3 4 5 1 chunk +9 lines, -9 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css/getComputedStyle/getComputedStyle-list-style-shorthand.html View 1 2 3 4 5 1 chunk +5 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css/getComputedStyle/getComputedStyle-list-style-shorthand-expected.txt View 1 2 3 4 5 1 chunk +5 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css/image-set-parsing-expected.txt View 1 2 1 chunk +18 lines, -18 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css/image-set-setting-expected.txt View 1 2 3 1 chunk +10 lines, -10 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css/parse-border-image-repeat-null-crash-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/css/script-tests/image-set-parsing.js View 1 2 3 4 5 6 7 1 chunk +10 lines, -10 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css/script-tests/image-set-setting.js View 1 2 3 4 5 1 chunk +9 lines, -13 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css/uri-token-parsing.html View 1 chunk +23 lines, -23 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css/uri-token-parsing-expected.txt View 1 chunk +46 lines, -46 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css/url-with-multi-byte-unicode-escape.html View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/css/url-with-multi-byte-unicode-escape-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/innerHTML/innerHTML-uri-resolution.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/inspector-support/cssURLQuotes.html View 1 chunk +6 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/inspector-support/cssURLQuotes-expected.txt View 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/js/resources/image-preload-helper.js View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/masking/parsing-clip-path-iri.html View 1 2 3 4 5 6 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/masking/parsing-clip-path-iri-expected.txt View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/masking/parsing-mask.html View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/masking/parsing-mask-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/shapes/parsing/parsing-shape-outside.html View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/shapes/parsing/parsing-shape-outside-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/shapes/parsing/parsing-test-utils.js View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/elements/styles-2/inject-stylesheet-expected.txt View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/extensions/extensions-panel.html View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/extensions/extensions-panel-expected.txt View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/svg/css/script-tests/svg-attribute-parser-mode.js View 1 2 3 4 5 6 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/svg/css/svg-attribute-parser-mode-expected.txt View 1 2 3 4 5 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/svg/custom/marker-getPropertyValue.svg View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/svg/custom/marker-getPropertyValue-expected.txt View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/transitions/svg-transitions-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/CSSImageValue.cpp View 1 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSMarkup.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/CSSMarkup.cpp View 1 1 chunk +2 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSPrimitiveValue.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/CSSSVGDocumentValue.cpp View 1 1 chunk +1 line, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 20 (3 generated)
nainar
Tim, PTAL? Thanks!
5 years, 3 months ago (2015-09-24 04:21:38 UTC) #2
Timothy Loh
On 2015/09/24 04:21:38, nainar wrote: > Tim, > > PTAL? > > Thanks! OK (I ...
5 years, 3 months ago (2015-09-24 04:45:32 UTC) #3
Timothy Loh
On 2015/09/24 04:45:32, Timothy Loh wrote: > On 2015/09/24 04:21:38, nainar wrote: > > Tim, ...
5 years, 3 months ago (2015-09-24 04:47:17 UTC) #4
nainar
Tim, Made the changes you asked for in your first comment, PTAL?
5 years, 3 months ago (2015-09-24 07:41:15 UTC) #5
Timothy Loh
https://codereview.chromium.org/1363233003/diff/20001/third_party/WebKit/LayoutTests/css3/filters/filter-property-expected.txt File third_party/WebKit/LayoutTests/css3/filters/filter-property-expected.txt (right): https://codereview.chromium.org/1363233003/diff/20001/third_party/WebKit/LayoutTests/css3/filters/filter-property-expected.txt#newcode8 third_party/WebKit/LayoutTests/css3/filters/filter-property-expected.txt:8: FAIL declaration.getPropertyValue('-webkit-filter') should be url('#a') url('#b'). Was url("#a") url("#b"). ...
5 years, 3 months ago (2015-09-24 07:53:21 UTC) #6
nainar
Tim, PTAL? I am currently looking into the test failing on Mac, Windows. Thanks! https://codereview.chromium.org/1363233003/diff/20001/third_party/WebKit/LayoutTests/css3/filters/filter-property-expected.txt ...
5 years, 2 months ago (2015-09-25 04:10:19 UTC) #7
nainar
Patch 5 has a fix for extensions-panel.html.
5 years, 2 months ago (2015-09-25 04:27:33 UTC) #8
Timothy Loh
Code change is fine. Layout test changes need some tweaks to make the tests more ...
5 years, 2 months ago (2015-09-25 05:25:23 UTC) #9
nainar
Made the changes you suggested, PTAL? https://codereview.chromium.org/1363233003/diff/80001/third_party/WebKit/LayoutTests/svg/css/svg-attribute-parser-mode-expected.txt File third_party/WebKit/LayoutTests/svg/css/svg-attribute-parser-mode-expected.txt (right): https://codereview.chromium.org/1363233003/diff/80001/third_party/WebKit/LayoutTests/svg/css/svg-attribute-parser-mode-expected.txt#newcode18 third_party/WebKit/LayoutTests/svg/css/svg-attribute-parser-mode-expected.txt:18: FAIL document.defaultView.getComputedStyle(rect, null).fill ...
5 years, 2 months ago (2015-09-25 09:29:02 UTC) #10
Timothy Loh
should be the last round of comments https://codereview.chromium.org/1363233003/diff/120001/third_party/WebKit/LayoutTests/animations/interpolation/resources/interpolation-test.js File third_party/WebKit/LayoutTests/animations/interpolation/resources/interpolation-test.js (right): https://codereview.chromium.org/1363233003/diff/120001/third_party/WebKit/LayoutTests/animations/interpolation/resources/interpolation-test.js#newcode214 third_party/WebKit/LayoutTests/animations/interpolation/resources/interpolation-test.js:214: if (/url\("([^\)]*)"\)/g.test(matches[i])) ...
5 years, 2 months ago (2015-09-25 14:22:05 UTC) #11
nainar
Tim, PTAL? Thanks! https://codereview.chromium.org/1363233003/diff/120001/third_party/WebKit/LayoutTests/animations/interpolation/resources/interpolation-test.js File third_party/WebKit/LayoutTests/animations/interpolation/resources/interpolation-test.js (right): https://codereview.chromium.org/1363233003/diff/120001/third_party/WebKit/LayoutTests/animations/interpolation/resources/interpolation-test.js#newcode214 third_party/WebKit/LayoutTests/animations/interpolation/resources/interpolation-test.js:214: if (/url\("([^\)]*)"\)/g.test(matches[i])) Done. https://codereview.chromium.org/1363233003/diff/120001/third_party/WebKit/LayoutTests/animations/responsive/resources/responsive-test.js File third_party/WebKit/LayoutTests/animations/responsive/resources/responsive-test.js ...
5 years, 2 months ago (2015-09-28 01:19:18 UTC) #12
nainar
Tim, Removed decodeURIComponent, PTAL? Thanks!
5 years, 2 months ago (2015-09-28 04:18:15 UTC) #13
Timothy Loh
lgtm https://codereview.chromium.org/1363233003/diff/180001/third_party/WebKit/LayoutTests/animations/interpolation/resources/interpolation-test.js File third_party/WebKit/LayoutTests/animations/interpolation/resources/interpolation-test.js (right): https://codereview.chromium.org/1363233003/diff/180001/third_party/WebKit/LayoutTests/animations/interpolation/resources/interpolation-test.js#newcode210 third_party/WebKit/LayoutTests/animations/interpolation/resources/interpolation-test.js:210: var matches = value.match(/url\([^\)]*\)/g); should update this too ...
5 years, 2 months ago (2015-09-28 06:18:13 UTC) #14
nainar
Have fixed the interop tests please take a look? https://codereview.chromium.org/1363233003/diff/180001/third_party/WebKit/LayoutTests/animations/interpolation/resources/interpolation-test.js File third_party/WebKit/LayoutTests/animations/interpolation/resources/interpolation-test.js (right): https://codereview.chromium.org/1363233003/diff/180001/third_party/WebKit/LayoutTests/animations/interpolation/resources/interpolation-test.js#newcode210 third_party/WebKit/LayoutTests/animations/interpolation/resources/interpolation-test.js:210: ...
5 years, 2 months ago (2015-09-28 07:22:54 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1363233003/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1363233003/200001
5 years, 2 months ago (2015-09-28 07:58:15 UTC) #18
commit-bot: I haz the power
Committed patchset #11 (id:200001)
5 years, 2 months ago (2015-09-28 08:15:27 UTC) #19
commit-bot: I haz the power
5 years, 2 months ago (2015-09-28 08:16:09 UTC) #20
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/3475df106fbbf3d5a686ff166be869077b8a16b3
Cr-Commit-Position: refs/heads/master@{#351033}

Powered by Google App Engine
This is Rietveld 408576698