Bug 1973726 - Set DOM file path for webkitRelativePath. r=sefeng,geckoview-reviewers,webidl,smaug,ohall
Actually, there is no way to set webkitRelativePath from JavaScript.
Since GeckoView's folder picker handles virtual file data, we need to
set relative path from JavaScript directly.
A content URI of System storage document provider only allow file data
access from file/folder picker, so there is no way to test it on
geckoivew-junit.
Also, after landing bug 1591640, GVE always crash when using folder
picker. So this includes a fix for it.
Differential Revision: https://phabricator.services.mozilla.com/D255615
<!--Copyright (c) 2019 The Khronos Group Inc.Use of this source code is governed by an MIT-style license that can befound in the LICENSE.txt file.--><!DOCTYPE html><html><head><metacharset="utf-8"><title>Negative tests for the use of the invariant qualifier and pragma</title><linkrel="stylesheet"href="../../resources/js-test-style.css"/><linkrel="stylesheet"href="../../resources/glsl-feature-tests.css"/><scriptsrc="../../js/js-test-pre.js"></script><scriptsrc="../../js/webgl-test-utils.js"></script><scriptsrc="../../js/glsl-conformance-test.js"></script></head><body><divid="description"></div><divid="console"></div><scriptid="vertexShaderInvariant"type="text/something-not-javascript">#version300esprecisionmediumpfloat;invariantoutvec4v_varying;voidmain(){v_varying=vec4(0.0,0.0,0.0,1.0);gl_Position=v_varying;}</script><scriptid="fragmentShaderVariant"type="text/something-not-javascript">#version300esprecisionmediumpfloat;invec4v_varying;outvec4my_color;voidmain(){my_color=v_varying;}</script><scriptid="fragmentShaderInputInvariant"type="text/something-not-javascript">#version300esprecisionmediumpfloat;invariantinvec4v_varying;outvec4my_color;voidmain(){my_color=v_varying;}</script><scriptid="fragmentShaderGlobalInvariant"type="text/something-not-javascript">#version300es#pragmaSTDGLinvariant(all)precisionmediumpfloat;invec4v_varying;outvec4my_color;voidmain(){my_color=v_varying;}</script><scripttype="application/javascript">"use strict";description();GLSLConformanceTester.runTests([{vShaderId:"vertexShaderInvariant",vShaderSuccess:true,fShaderId:"fragmentShaderGlobalInvariant",fShaderSuccess:false,linkSuccess:false,passMsg:"fragment shader with global invariant pragma must fail",},{vShaderId:"vertexShaderInvariant",vShaderSuccess:true,fShaderId:"fragmentShaderInputInvariant",fShaderSuccess:false,linkSuccess:false,passMsg:"fragment shader with an input variable which is invariant must fail",},],2);</script></body></html>