<rdar://problem/45296285> Content blocker rule "raw" blocks media elements from loading
authorbenjamin@webkit.org <benjamin@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 11 Dec 2018 05:37:24 +0000 (05:37 +0000)
committerbenjamin@webkit.org <benjamin@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 11 Dec 2018 05:37:24 +0000 (05:37 +0000)
commit5ebdfa76cc4fc33a20db24bff5463e7c6ad392b1
tree0a4c727fc6c637605425bce3af360be4f96d328c
parent9648f63ef9a609555038762b2358907d9782022e
<rdar://problem/45296285> Content blocker rule "raw" blocks media elements from loading
https://bugs.webkit.org/show_bug.cgi?id=192439

Reviewed by Dean Jackson.

Source/WebCore:

This broken when WebKit switched to NSURLSession.
In CachedResourceLoader::requestResource(), toResourceType() was turning media load into RAW.

Test: http/tests/contentextensions/video-element-resource-type.html

* loader/ResourceLoadInfo.cpp:
(WebCore::toResourceType):

LayoutTests:

* http/tests/contentextensions/video-element-resource-type-expected.txt: Added.
* http/tests/contentextensions/video-element-resource-type.html: Added.
* http/tests/contentextensions/video-element-resource-type.html.json: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@239069 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/http/tests/contentextensions/video-element-resource-type-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/contentextensions/video-element-resource-type.html [new file with mode: 0644]
LayoutTests/http/tests/contentextensions/video-element-resource-type.html.json [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/loader/ResourceLoadInfo.cpp