Performance.getEntriesByName/Type should match case sensitive master
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 4 Aug 2020 07:40:12 +0000 (07:40 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 4 Aug 2020 07:40:12 +0000 (07:40 +0000)
commitd2f0798b6f6e397ac7f035dbab8c891fceb77c36
tree499db732121400b10010cba937cfa46eea1885eb
parent54d7757f50dd93920036dd5b6ca569d10777d599
Performance.getEntriesByName/Type should match case sensitive
https://bugs.webkit.org/show_bug.cgi?id=214960

Patch by Rob Buis <rbuis@igalia.com> on 2020-08-04
Reviewed by Youenn Fablet.

LayoutTests/imported/w3c:

Import relevant test.

* web-platform-tests/performance-timeline/case-sensitivity.any-expected.txt: Added.
* web-platform-tests/performance-timeline/case-sensitivity.any.html: Added.
* web-platform-tests/performance-timeline/case-sensitivity.any.js: Added.
(test):
* web-platform-tests/performance-timeline/case-sensitivity.any.worker-expected.txt: Added.
* web-platform-tests/performance-timeline/case-sensitivity.any.worker.html: Added.

Source/WebCore:

Performance.getEntriesByName/Type should match case sensitive [1].

Behavior matches Firefox and Chrome.

Tests: imported/w3c/web-platform-tests/performance-timeline/case-sensitivity.any.html
       imported/w3c/web-platform-tests/performance-timeline/case-sensitivity.any.worker.html

[1] https://w3c.github.io/performance-timeline/#getentriesbytype-method

* page/Performance.cpp:
(WebCore::Performance::getEntriesByType const):
(WebCore::Performance::getEntriesByName const):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@265243 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/imported/w3c/ChangeLog
LayoutTests/imported/w3c/web-platform-tests/performance-timeline/case-sensitivity.any-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/performance-timeline/case-sensitivity.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/performance-timeline/case-sensitivity.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/performance-timeline/case-sensitivity.any.worker-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/performance-timeline/case-sensitivity.any.worker.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/page/Performance.cpp