[webkit-changes] [WebKit/WebKit] 047303: Restrict performance entries from no-cors cross-or...

Matthew Finkel noreply at github.com
Mon Jul 15 14:30:38 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 0473037b55025aebdf5a4e9297518b832ab3aaac
      https://github.com/WebKit/WebKit/commit/0473037b55025aebdf5a4e9297518b832ab3aaac
  Author: Matthew Finkel <sysrqb at apple.com>
  Date:   2024-07-15 (Mon, 15 Jul 2024)

  Changed paths:
    A LayoutTests/http/tests/media/resources/hls/.htaccess
    A LayoutTests/http/tests/performance/performance-resource-timing-cross-origin-media-expected.txt
    A LayoutTests/http/tests/performance/performance-resource-timing-cross-origin-media-with-cors-expected.txt
    A LayoutTests/http/tests/performance/performance-resource-timing-cross-origin-media-with-cors.html
    A LayoutTests/http/tests/performance/performance-resource-timing-cross-origin-media.html
    M LayoutTests/platform/glib/TestExpectations
    M LayoutTests/platform/win/TestExpectations
    M Source/WebCore/loader/MediaResourceLoader.cpp
    M Source/WebCore/loader/MediaResourceLoader.h

  Log Message:
  -----------
  Restrict performance entries from no-cors cross-origin media requests
https://bugs.webkit.org/show_bug.cgi?id=276208
rdar://124946839

Reviewed by Ryosuke Niwa.

This patch now sets a media request as coming from an opaque source if it is
  1. cross-origin
  2. no-cors
  3. a nested resource (e.g., from an index file)

* LayoutTests/http/tests/media/resources/hls/.htaccess: Added.
* LayoutTests/http/tests/performance/performance-resource-timing-cross-origin-media-expected.txt: Added.
* LayoutTests/http/tests/performance/performance-resource-timing-cross-origin-media-with-cors-expected.txt: Added.
* LayoutTests/http/tests/performance/performance-resource-timing-cross-origin-media-with-cors.html: Added.
* LayoutTests/http/tests/performance/performance-resource-timing-cross-origin-media.html: Added.
* LayoutTests/platform/glib/TestExpectations:
* LayoutTests/platform/wincairo/TestExpectations:
* Source/WebCore/loader/MediaResourceLoader.cpp:
(WebCore::MediaResourceLoader::requestResource):
* Source/WebCore/loader/MediaResourceLoader.h:

Canonical link: https://commits.webkit.org/280985@main



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list