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
<!DOCTYPE html><html><!--https://bugzilla.mozilla.org/show_bug.cgi?id=765590--><head><title>Test for Bug 765590</title><scriptsrc="/tests/SimpleTest/SimpleTest.js"></script><linkrel="stylesheet"type="text/css"href="/tests/SimpleTest/test.css"/><style>@namespacesvg"http://www.w3.org/2000/svg";</style></head><body><script>varstyleElement=document.getElementsByTagName("style")[0]varrule=styleElement.sheet.cssRules[0];is(rule.type,10,"rule type should be equal 10")is(CSSRule.NAMESPACE_RULE,10,"NAMESPACE_RULE should be equal to 10")</script></body>