New issue
Advanced search Search tips

Issue 919639 link

Starred by 1 user

Issue metadata

Status: Started
Owner:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android , Fuchsia
Pri: 2
Type: Bug



Sign in to add a comment

Stop using file:// paths in web tests

Project Member Reported by sergeyu@chromium.org, Jan 7

Issue description

Currently some web tests load resources with file:// urls. These file URLs are also remapped in content_shell to resolve full file path, see https://codesearch.chromium.org/chromium/src/content/shell/renderer/web_test/blink_test_helpers.cc?q=blink_test_helpers&sq=package:chromium&g=0&l=175 . This approach doesn't work on systems that load these tests from https origin, specifically Android and Fuchsia. This issue exists in the following smoke tests:

device_orientation/motion/add-listener-from-callback.html
fast/speech/scripted/speechrecognition-re-restart.html
presentation/presentationconnectionavailableevent-ctor-mock.html
webmidi/permission.html

This can be solved by using relative urls that don't include protocol, e.g. 
<script src="/gen/layout_test_data/mojo/public/js/mojo_bindings.js">
 

Sign in to add a comment