WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
232868
Use isValidCustomIdentifier in consumeWillChange
https://bugs.webkit.org/show_bug.cgi?id=232868
Summary
Use isValidCustomIdentifier in consumeWillChange
Tim Nguyen (:ntim)
Reported
2021-11-08 22:50:03 PST
This is what the spec says:
https://drafts.csswg.org/css-will-change/#will-change
> The <custom-ident> production used here excludes the keywords will-change, none, all, auto, scroll-position, and contents, in addition to the keywords normally excluded from <custom-ident>.
Attachments
Patch
(2.14 KB, patch)
2021-11-08 22:55 PST
,
Tim Nguyen (:ntim)
koivisto
: review+
Details
Formatted Diff
Diff
Patch
(4.79 KB, patch)
2021-11-09 00:44 PST
,
Tim Nguyen (:ntim)
no flags
Details
Formatted Diff
Diff
Patch
(14.21 KB, patch)
2021-11-09 01:02 PST
,
Tim Nguyen (:ntim)
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Tim Nguyen (:ntim)
Comment 1
2021-11-08 22:55:08 PST
Created
attachment 443655
[details]
Patch
Antti Koivisto
Comment 2
2021-11-08 23:39:50 PST
Comment on
attachment 443655
[details]
Patch Can you either include the relevant WPT merge with the patch or merge the WPT first? Landing behaviour changes without tests is not nice.
Tim Nguyen (:ntim)
Comment 3
2021-11-09 00:44:53 PST
Created
attachment 443657
[details]
Patch
EWS Watchlist
Comment 4
2021-11-09 00:45:55 PST
This patch modifies the imported WPT tests. Please ensure that any changes on the tests (not coming from a WPT import) are exported to WPT. Please see
https://trac.webkit.org/wiki/WPTExportProcess
Tim Nguyen (:ntim)
Comment 5
2021-11-09 01:02:40 PST
Created
attachment 443659
[details]
Patch
EWS
Comment 6
2021-11-09 01:31:08 PST
Committed
r285487
(
244011@main
): <
https://commits.webkit.org/244011@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 443659
[details]
.
Radar WebKit Bug Importer
Comment 7
2021-11-09 01:32:24 PST
<
rdar://problem/85193689
>
Antti Koivisto
Comment 8
2021-11-09 02:16:19 PST
Comment on
attachment 443655
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=443655&action=review
> Source/WebCore/css/parser/CSSPropertyParser.cpp:517 > + if (!isValidCustomIdentifier(id)) > + return nullptr; > // Append properties we don't recognize, but that are legal, as strings. > values->append(consumeCustomIdent(range).releaseNonNull());
consumeCustomIdent should ASSERT(isValidCustomIdentifier) to catch all these.
Antti Koivisto
Comment 9
2021-11-09 02:34:39 PST
Comment on
attachment 443659
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=443659&action=review
> Source/WebCore/css/parser/CSSPropertyParser.cpp:517 > + if (!isValidCustomIdentifier(id)) > + return nullptr; > // Append properties we don't recognize, but that are legal, as strings. > values->append(consumeCustomIdent(range).releaseNonNull());
Actually since consumeCustomIdent already check isValidCustomIdentifier() a better fix here would be to just null chack consumeCustomIdent result
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug