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><!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. --><metacharset="UTF-8"><title>Canvas test: 2d.shadow.offset.positiveY</title><scriptsrc="/resources/testharness.js"></script><scriptsrc="/resources/testharnessreport.js"></script><scriptsrc="/html/canvas/resources/canvas-tests.js"></script><linkrel="stylesheet"href="/html/canvas/resources/canvas-tests.css"><bodyclass="show_output"><h1>2d.shadow.offset.positiveY</h1><pclass="desc">Shadows can be offset with positive y</p><pclass="output">Actual output:</p><canvasid="c"class="output"width="100"height="50"><pclass="fallback">FAIL (fallback content)</p></canvas><pclass="output expectedtext">Expected output:<p><imgsrc="/images/green-100x50.png"class="output expected"id="expected"alt=""><ulid="d"></ul><script>vart=async_test("Shadows can be offset with positive y");_addTest(function(canvas,ctx){ctx.fillStyle='#f00';ctx.fillRect(0,0,100,50);ctx.fillStyle='#0f0';ctx.shadowColor='#0f0';ctx.shadowOffsetY=25;ctx.fillRect(0,0,100,25);_assertPixel(canvas,50,12,0,255,0,255);_assertPixel(canvas,50,37,0,255,0,255);});</script>