New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 808826 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 312727
Owner: ----
Closed: Mar 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug



Sign in to add a comment

WebVTT is not loadable from local file

Reported by s.h.h.n....@gmail.com, Feb 3 2018

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.119 Safari/537.36

Example URL:

Steps to reproduce the problem:
1. Store attached files to same directory in your local computer
2. Open test.html

What is the expected behavior?
test.html can load test.vtt file.

What went wrong?
Console says following:
"Text track from origin 'file://' has been blocked from loading: Not at same origin as the document, and parent of track element does not have a 'crossorigin' attribute. Origin 'null' is therefore not allowed access."

Local files in the same folder is usually treated as same-origin, but not in case of WebVTT file. This works correctly in other browsers.

Did this work before? N/A 

Is it a problem with Flash or HTML5? HTML5

Does this work in other browsers? Yes

Chrome version: 64.0.3282.119  Channel: n/a
OS Version: OS X 10.13.3
Flash Version: 

Contents of chrome://gpu:
 
test.html
675 bytes View Download
test.vtt
73 bytes Download
Labels: Needs-Triage-M64
Cc: susanjun...@techmahindra.com
Labels: Triaged-ET M-66 FoundIn-66 Target-66 OS-Linux OS-Windows
Status: Untriaged (was: Unconfirmed)
Reporter@ Thanks for the issue.

Tested this issue Windows 10, Mac OS 10.12.6 and Ubuntu 14.04 on the latest Canary 66.0.3340.0 and Stable 64.0.3282.140 and able to reproduce the issue by following the steps mentioned in the original comment.

Can observe the error "Text track from origin 'file://' has been blocked from loading: Not at same origin as the document, and parent of track element does not have a 'crossorigin' attribute. Origin 'null' is therefore not allowed access." in Devtools -> Console after loading the given html file.
Attached is the screen cast for reference.

This is a Non-Regression issue as this behavior is observed from M60 Chrome builds. 
Hence marking this as Untriaged for further updates from Dev.

Thanks..
808826.webm
2.5 MB View Download
Cc: dalecur...@chromium.org yini...@chromium.org
Components: -Internals>Media Internals>Media>Track
Status: Available (was: Untriaged)
Dale, who is the owner of media track? philipj@opera is not in the owner list anymore.
Cc: foolip@chromium.org

Comment 5 by f...@opera.com, Mar 6 2018

Mergedinto: 312727
Status: Duplicate (was: Available)
This happens because/is caused by file:// URLs having unique origins in Blink, and because of the default CORS requirements of <track> the file will fail to load. It seems more likely that other UAs will align with this behavior in the future than the opposite.

Sign in to add a comment