WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
146272
LayoutTests/http/tests/security/contentSecurityPolicy/media-src-track-block.html always passes
https://bugs.webkit.org/show_bug.cgi?id=146272
Summary
LayoutTests/http/tests/security/contentSecurityPolicy/media-src-track-block.h...
Daniel Bates
Reported
2015-06-23 19:19:19 PDT
The test LayoutTests/http/tests/security/contentSecurityPolicy/media-src-track-block.html will always pass regardless of presence of the Content Security Policy <meta> tag in it because the referenced external text track file, <
http://trac.webkit.org/browser/trunk/LayoutTests/http/tests/security/contentSecurityPolicy/resources/track.vtt?rev=138820
>, is not a valid WebVTT-formatted file. Steps to reproduce: 1. Run, Tools/Scripts/run-webkit-tests LayoutTests/http/tests/security/contentSecurityPolicy/media-src-track-block.html Notice that the test passes. 2. Open the file LayoutTests/http/tests/security/contentSecurityPolicy/media-src-track-block.html in a text editor, remove the following line, and save the file: <meta http-equiv="Content-Security-Policy" content="media-src 'none'"> LayoutTests/http/tests/security/contentSecurityPolicy/media-src-track-block.html 3. Run, Tools/Scripts/run-webkit-tests LayoutTests/http/tests/security/contentSecurityPolicy/media-src-track-block.html Notice that the test passes. But it should fail with JavaScript alert "FAIL".
Attachments
Patch
(1.99 KB, patch)
2015-06-23 19:24 PDT
,
Daniel Bates
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Daniel Bates
Comment 1
2015-06-23 19:21:48 PDT
By <
https://html.spec.whatwg.org/multipage/embedded-content.html#text-track-failed-to-load
>, "failed to load" for an external text track "indicates that the text track was enabled, but when the user agent attempted to obtain it, this failed in some way (e.g. URL could not be resolved, network error, unknown text track format). Some or all of the cues are likely missing and will not be obtained." In particular, an external text track is considered to have "failed to load" if it has an "unknown text track format".
Daniel Bates
Comment 2
2015-06-23 19:24:08 PDT
Created
attachment 255470
[details]
Patch
Daniel Bates
Comment 3
2015-06-24 07:47:50 PDT
Comment on
attachment 255470
[details]
Patch Clearing flags on attachment: 255470 Committed
r185910
: <
http://trac.webkit.org/changeset/185910
>
Daniel Bates
Comment 4
2015-06-24 07:47:53 PDT
All reviewed patches have been landed. Closing bug.
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