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

Issue 774917 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Buried. Ping if important.
Closed: Oct 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug



Sign in to add a comment

Chromium don't support for cross-origin attribute under some URL scheme

Reported by lesleyde...@gmail.com, Oct 16 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36

Example URL:

Steps to reproduce the problem:
1. create an html webpage containing video element and it's attributes should be set as follows:
  <video controls autoplay crossorigin="use-credentials">
    <source src="https:/sing.aac">
  </video>
here the "crossorigin" attribute can be assigned either "use-credentials" or "anonymous", and can be "video" or "audio" with mp3,mp4,aac,oga,ogv,or webm type. the URL scheme here can be http, https, ftp, and file.
2. place this html file on a web site
3. open this webpage in browser

What is the expected behavior?

What went wrong?
video files can not be loaded

Did this work before? N/A 

Is it a problem with Flash or HTML5? HTML5

Does this work in other browsers? No
 Opera

Chrome version: 52.0  Channel: n/a
OS Version: 10.0
Flash Version: Shockwave Flash 26.0 r0

Contents of chrome://gpu: 
Sorry but that's a problem I found earlier in another computer
Graphics Feature Status
Canvas: Hardware accelerated
Flash: Hardware accelerated
Flash Stage3D: Hardware accelerated
Flash Stage3D Baseline profile: Hardware accelerated
Compositing: Hardware accelerated
Multiple Raster Threads: Enabled
Native GpuMemoryBuffers: Software only. Hardware acceleration disabled
Rasterization: Software only. Hardware acceleration disabled
Video Decode: Hardware accelerated
Video Encode: Hardware accelerated
VPx Video Decode: Software only, hardware acceleration unavailable
WebGL: Hardware accelerated
Driver Bug Workarounds
clear_uniforms_before_first_program_use
disable_discard_framebuffer
disable_framebuffer_cmaa
exit_on_context_lost
force_cube_complete
msaa_is_slow
scalarize_vec_and_mat_constructor_args
texsubimage_faster_than_teximage
Problems Detected
VPx decoding isn't supported before Windows 10 anniversary update.: 616318
Disabled Features: accelerated_vpx_decode
VPx decoding is too slow on Intel Broadwell, Skylake, and CherryView: 616318
Disabled Features: accelerated_vpx_decode
Accelerated VPx decoding is hanging on some videos.: 654111
Disabled Features: accelerated_vpx_decode
Some drivers are unable to reset the D3D device in the GPU process sandbox
Applied Workarounds: exit_on_context_lost
TexSubImage is faster for full uploads on ANGLE
Applied Workarounds: texsubimage_faster_than_teximage
Clear uniforms before first program use on all platforms: 124764, 349137
Applied Workarounds: clear_uniforms_before_first_program_use
Always rewrite vec/mat constructors to be consistent: 398694
Applied Workarounds: scalarize_vec_and_mat_constructor_args
ANGLE crash on glReadPixels from incomplete cube map texture: 518889
Applied Workarounds: force_cube_complete
On Intel GPUs MSAA performance is not acceptable for GPU rasterization: 527565
Applied Workarounds: msaa_is_slow
Framebuffer discarding can hurt performance on non-tilers: 570897
Applied Workarounds: disable_discard_framebuffer
Limited enabling of Chromium GL_INTEL_framebuffer_CMAA: 535198
Applied Workarounds: disable_framebuffer_cmaa
Accelerated rasterization has been disabled, either via blacklist, about:flags or the command line.
Disabled Features: rasterization
Native GpuMemoryBuffers have been disabled, either via about:flags or command line.
Disabled Features: native_gpu_memory_buffers
Version Information
Data exported	2017/10/16 下午12:44:28
Chrome version	Chrome/55.0.2883.87
Operating system	Windows NT 10.0.10586
Software rendering list version	11.17
Driver bug list version	9.15
ANGLE commit id	4d208abb1926
2D graphics backend	Skia/55 d1740f81c843c65acd58d1b571ce94b90fee99d0
Command Line Args	Files (x86)\Google\Chrome\Application\chrome.exe" --flag-switches-begin --flag-switches-end
Driver Information
Initialization time	96
In-process GPU	false
Sandboxed	false
GPU0	VENDOR = 0x8086, DEVICE= 0x1616 *ACTIVE*
GPU1	VENDOR = 0x10de, DEVICE= 0x1347
Optimus	false
AMD switchable	false
DisplayLink Version	7.5.54609.0
Desktop compositing	Aero Glass
Diagonal Monitor Size of \\.\DISPLAY2	22.9"
Diagonal Monitor Size of \\.\DISPLAY1	13.9"
Driver vendor	Intel Corporation
Driver version	20.19.15.4474
Driver date	6-13-2016
Pixel shader version	5.0
Vertex shader version	5.0
Max. MSAA samples	8
Machine model name	
Machine model version	
GL_VENDOR	Google Inc.
GL_RENDERER	ANGLE (Intel(R) HD Graphics 5500 Direct3D11 vs_5_0 ps_5_0)
GL_VERSION	OpenGL ES 3.0 (ANGLE 2.1.0.4d208abb1926)
GL_EXTENSIONS	GL_ANGLE_depth_texture GL_ANGLE_framebuffer_blit GL_ANGLE_framebuffer_multisample GL_ANGLE_instanced_arrays GL_ANGLE_lossy_etc_decode GL_ANGLE_pack_reverse_row_order GL_ANGLE_robust_client_memory GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_ANGLE_texture_usage GL_ANGLE_translated_shader_source GL_CHROMIUM_bind_generates_resource GL_CHROMIUM_bind_uniform_location GL_CHROMIUM_copy_texture GL_CHROMIUM_sync_query GL_EXT_blend_minmax GL_EXT_color_buffer_float GL_EXT_color_buffer_half_float GL_EXT_debug_marker GL_EXT_discard_framebuffer GL_EXT_disjoint_timer_query GL_EXT_draw_buffers GL_EXT_frag_depth GL_EXT_map_buffer_range GL_EXT_occlusion_query_boolean GL_EXT_read_format_bgra GL_EXT_robustness GL_EXT_sRGB GL_EXT_shader_texture_lod GL_EXT_texture_compression_dxt1 GL_EXT_texture_filter_anisotropic GL_EXT_texture_format_BGRA8888 GL_EXT_texture_norm16 GL_EXT_texture_rg GL_EXT_texture_storage GL_EXT_unpack_subimage GL_KHR_debug GL_NV_EGL_stream_consumer_external GL_NV_fence GL_NV_pack_subimage GL_NV_pixel_buffer_object GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_EGL_image_external_essl3 GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth32 GL_OES_element_index_uint GL_OES_get_program_binary GL_OES_mapbuffer GL_OES_packed_depth_stencil GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_texture_float GL_OES_texture_float_linear GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_texture_npot GL_OES_vertex_array_object
Disabled Extensions	
Window system binding vendor	Google Inc. (adapter LUID: 000000000000f3f3)
Window system binding version	1.4 (ANGLE 2.1.0.4d208abb1926)
Window system binding extensions	EGL_EXT_create_context_robustness EGL_ANGLE_d3d_share_handle_client_buffer EGL_ANGLE_surface_d3d_texture_2d_share_handle EGL_ANGLE_query_surface_pointer EGL_ANGLE_window_fixed_size EGL_ANGLE_keyed_mutex EGL_ANGLE_surface_orientation EGL_ANGLE_direct_composition EGL_NV_post_sub_buffer EGL_KHR_create_context EGL_EXT_device_query EGL_KHR_image EGL_KHR_image_base EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_get_all_proc_addresses EGL_KHR_stream EGL_KHR_stream_consumer_gltexture EGL_NV_stream_consumer_gltexture_yuv EGL_ANGLE_flexible_surface_compatibility EGL_ANGLE_stream_producer_d3d_texture_nv12 EGL_ANGLE_create_context_webgl_compatibility EGL_CHROMIUM_create_context_bind_generates_resource
Direct rendering	Yes
Reset notification strategy	0x8252
GPU process crash count	0
Compositor Information
Tile Update Mode	One-copy
Partial Raster	Enabled
GpuMemoryBuffers Status
ATC	Software only
ATCIA	Software only
DXT1	Software only
DXT5	Software only
ETC1	Software only
R_8	Software only
RG_88	Software only
BGR_565	Software only
RGBA_4444	Software only
RGBX_8888	Software only
RGBA_8888	Software only
BGRX_8888	Software only
BGRA_8888	Software only
YVU_420	Software only
YUV_420_BIPLANAR	Software only
UYVY_422	Software only
Diagnostics
0
b3DAccelerationEnabled	true
b3DAccelerationExists	true
bAGPEnabled	true
bAGPExistenceValid	true
bAGPExists	true
bCanRenderWindow	true
bDDAccelerationEnabled	true
bDriverBeta	false
bDriverDebug	false
bDriverSigned	false
bDriverSignedValid	false
bNoHardware	false
dwBpp	32
dwDDIVersion	12
dwHeight	900
dwRefreshRate	60
dwWHQLLevel	0
dwWidth	1600
iAdapter	1
lDriverSize	39862352
lMiniVddSize	0
szAGPStatusEnglish	Enabled
szAGPStatusLocalized	已启用
szChipType	Intel(R) HD Graphics Family
szD3DStatusEnglish	Enabled
szD3DStatusLocalized	已启用
szDACType	Internal
szDDIVersionEnglish	12
szDDIVersionLocalized	12
szDDStatusEnglish	Enabled
szDDStatusLocalized	已启用
szDXVAHDEnglish	Supported
szDXVAModes	ModeMPEG2_A ModeMPEG2_C ModeWMV9_C ModeVC1_C
szDescription	Intel(R) HD Graphics 5500
szDeviceId	0x1616
szDeviceIdentifier	{D7B78E66-5556-11CF-6065-3870B5C2D935}
szDeviceName	\\.\DISPLAY1
szDisplayMemoryEnglish	2024 MB
szDisplayMemoryLocalized	2024 MB
szDisplayModeEnglish	1600 x 900 (32 bit) (60Hz)
szDisplayModeLocalized	1600 x 900 (32 bit) (60Hz)
szDriverAssemblyVersion	20.19.15.4474
szDriverAttributes	Final Retail
szDriverDateEnglish	2016/6/13 0:00:00
szDriverDateLocalized	6/13/2016 00:00:00
szDriverLanguageEnglish	English
szDriverLanguageLocalized	英语(美国)
szDriverModelEnglish	WDDM 2.0
szDriverModelLocalized	WDDM 2.0
szDriverName	igdumdim64.dll,igd10iumd64.dll,igd10iumd64.dll,igd12umd64.dll,igdumdim32,igd10iumd32,igd10iumd32,igd12umd32
szDriverNodeStrongName	oem72.inf:5f63e53468b7076c:iBDWM_w10:20.19.15.4474:pci\ven_8086&dev_1616&subsys_503717aa
szDriverSignDate	
szDriverVersion	20.19.0015.4474
szKeyDeviceID	Enum\PCI\VEN_8086&DEV_1616&SUBSYS_503717AA&REV_09
szKeyDeviceKey	\Registry\Machine\System\CurrentControlSet\Control\Video\{16E1E736-6A21-407D-A7D5-A3E1CAD916A4}\0000
szManufacturer	Intel Corporation
szMiniVdd	暂缺
szMiniVddDateEnglish	n/a
szMiniVddDateLocalized	暂缺
szMonitorMaxRes	
szMonitorName	LCD 1600x900
szNotesEnglish	No problems found.
szNotesLocalized	没有发现问题。
szOverlayEnglish	Supported
szRankOfInstalledDriver	00D10001
szRegHelpText	
szRevision	
szRevisionId	0x0009
szSubSysId	0x503717AA
szTestResultD3D7English	Not run
szTestResultD3D7Localized	未运行
szTestResultD3D8English	Not run
szTestResultD3D8Localized	未运行
szTestResultD3D9English	Not run
szTestResultD3D9Localized	未运行
szTestResultDDEnglish	Not run
szTestResultDDLocalized	未运行
szVdd	暂缺
szVendorId	0x8086
1
b3DAccelerationEnabled	true
b3DAccelerationExists	true
bAGPEnabled	true
bAGPExistenceValid	true
bAGPExists	true
bCanRenderWindow	true
bDDAccelerationEnabled	true
bDriverBeta	false
bDriverDebug	false
bDriverSigned	false
bDriverSignedValid	false
bNoHardware	false
dwBpp	32
dwDDIVersion	12
dwHeight	1080
dwRefreshRate	60
dwWHQLLevel	0
dwWidth	1920
iAdapter	0
lDriverSize	39862352
lMiniVddSize	0
szAGPStatusEnglish	Enabled
szAGPStatusLocalized	已启用
szChipType	Intel(R) HD Graphics Family
szD3DStatusEnglish	Enabled
szD3DStatusLocalized	已启用
szDACType	Internal
szDDIVersionEnglish	12
szDDIVersionLocalized	12
szDDStatusEnglish	Enabled
szDDStatusLocalized	已启用
szDXVAHDEnglish	Supported
szDXVAModes	ModeMPEG2_A ModeMPEG2_C ModeWMV9_C ModeVC1_C
szDescription	Intel(R) HD Graphics 5500
szDeviceId	0x1616
szDeviceIdentifier	{D7B78E66-5556-11CF-6065-3870B5C2D935}
szDeviceName	\\.\DISPLAY2
szDisplayMemoryEnglish	2024 MB
szDisplayMemoryLocalized	2024 MB
szDisplayModeEnglish	1920 x 1080 (32 bit) (60Hz)
szDisplayModeLocalized	1920 x 1080 (32 bit) (60Hz)
szDriverAssemblyVersion	20.19.15.4474
szDriverAttributes	Final Retail
szDriverDateEnglish	2016/6/13 0:00:00
szDriverDateLocalized	6/13/2016 00:00:00
szDriverLanguageEnglish	English
szDriverLanguageLocalized	英语(美国)
szDriverModelEnglish	WDDM 2.0
szDriverModelLocalized	WDDM 2.0
szDriverName	igdumdim64.dll,igd10iumd64.dll,igd10iumd64.dll,igd12umd64.dll,igdumdim32,igd10iumd32,igd10iumd32,igd12umd32
szDriverNodeStrongName	oem72.inf:5f63e53468b7076c:iBDWM_w10:20.19.15.4474:pci\ven_8086&dev_1616&subsys_503717aa
szDriverSignDate	
szDriverVersion	20.19.0015.4474
szKeyDeviceID	Enum\PCI\VEN_8086&DEV_1616&SUBSYS_503717AA&REV_09
szKeyDeviceKey	\Registry\Machine\System\CurrentControlSet\Control\Video\{16E1E736-6A21-407D-A7D5-A3E1CAD916A4}\0001
szManufacturer	Intel Corporation
szMiniVdd	暂缺
szMiniVddDateEnglish	n/a
szMiniVddDateLocalized	暂缺
szMonitorMaxRes	
szMonitorName	Dell P2314H (VGA)
szNotesEnglish	No problems found.
szNotesLocalized	没有发现问题。
szOverlayEnglish	Supported
szRankOfInstalledDriver	00D10001
szRegHelpText	
szRevision	
szRevisionId	0x0009
szSubSysId	0x503717AA
szTestResultD3D7English	Not run
szTestResultD3D7Localized	未运行
szTestResultD3D8English	Not run
szTestResultD3D8Localized	未运行
szTestResultD3D9English	Not run
szTestResultD3D9Localized	未运行
szTestResultDDEnglish	Not run
szTestResultDDLocalized	未运行
szVdd	暂缺
szVendorId	0x8086
Log Messages
GpuProcessHostUIShim: The GPU process exited normally. Everything is okay.

I found this problem earlier in version 52, and I'm planning to make sure whether it appears on the latest version.
 
Components: Blink>SecurityFeature>CORS

Comment 2 by ajha@chromium.org, Oct 17 2017

Labels: Needs-Milestone
Cc: vamshi.k...@techmahindra.com
Labels: M-64 Triaged-ET OS-Linux OS-Mac
Status: Untriaged (was: Unconfirmed)
As the similar behavior is seen in the latest stable 61.0.3163.100, latest canary 64.0.3241.0 and on M50[50.0.2634.0] . Hence treating it as non-regression and marking it as untriaged.

Comment 4 by mkwst@chromium.org, Oct 19 2017

Cc: mkwst@chromium.org
lesleydeng0: Can you clarify the report a little bit? Pointing to a page that fails to load a video would be pretty helpful! It would be helpful to know if the video is sending reasonable CORS headers, for instance, which the `crossorigin` attribute would require.
Here is a demo webpage, you can place it on websites (I verify it on a https site) and try to visit it.

The host website is "techslides.com", I find mp4 video file on it and use its URL as video src. But I'm not sure whether this web server (seems like Ngix) has enabled CORS setting, because I've not seen 'Access-Control-Allow-origin' in request or response headers in developer tool of Chrome. But directly visitting "http://techslides.com/demos/sample-videos/small.mp4" or viewing this video without "cross-origin" attribute set in video element (the 3rd example in the attached file) can correctly get this video file. I may try to set an web server with CROS configured and verify it again, or I'll also be very glad to know your response if you get the answers first.

test-cros-http.html
681 bytes View Download

Comment 6 by mkwst@chromium.org, Oct 20 2017

Cc: -mkwst@chromium.org
Owner: mkwst@chromium.org
Status: WontFix (was: Untriaged)
I believe this is expected behavior. The video you're trying to load does not send CORS headers which would opt it into allowing you access to its bits. Loading the HTML file you provided yields "Failed to load http://techslides.com/demos/sample-videos/small.mp4: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '...' is therefore not allowed access." in the console, which seems pretty dispositive.

Happy to reopen this if I've misunderstood the scenario, but it seems that this is working as intended.
Thank you, I may have misunderstood the use of "cross-origin" attribute. So visiting the video file on host from another origin doesn't need to set this attribute in the origin webpages?  I now get understand why the 3rd testcase get passed.
But for the first 2 test cases, do you mean that the assignment of "cross-origin" is only needed when the server is configured with CROS setting otherwise the loading process can not be done? I kind of can't get the point why the loading process failed when setting the attribute. And it failed in not only Chrome, but also Firefox and Opera. But in Safari version 9.1 it seems this attribute will not bother the loading process.

Comment 8 by mkwst@chromium.org, Oct 20 2017

You only need to add the `crossorigin` attribute if you'd like to access the video's pixels directly. Perhaps you're writing some sort of visualization, or analyzing the data stream: in those cases, the browser should require the target server to opt-in (which is what the CORS headers support). If you just want to play the video, you shouldn't need the attribute.

It might be the case that Safari doesn't support the `crossorigin` attribute on `<video>` (though 9 is pretty old. Safari 11 is current.)
Thanks a lot for your reply! Now I get it.

Sign in to add a comment