mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
Bug 1432949 - Return error if channel cannot be opened. Expand download blob test case r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D75687
This commit is contained in:
parent
8a6e6ca874
commit
5f323edf67
@ -6,11 +6,13 @@
|
||||
<script>
|
||||
const blob = new Blob(["Downloaded Data"], {type: "text/plain"});
|
||||
const element = document.createElement("a");
|
||||
element.href = URL.createObjectURL(blob);
|
||||
const uri = URL.createObjectURL(blob);
|
||||
element.href = uri;
|
||||
element.download = "download.txt";
|
||||
element.style.display = "none";
|
||||
document.body.appendChild(element);
|
||||
element.click();
|
||||
URL.revokeObjectURL(uri);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -414,9 +414,7 @@ nsresult WebExecutorSupport::CreateStreamLoader(
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
// Finally, open the channel
|
||||
rv = channel->AsyncOpen(listener);
|
||||
|
||||
return NS_OK;
|
||||
return channel->AsyncOpen(listener);
|
||||
}
|
||||
|
||||
void WebExecutorSupport::Fetch(jni::Object::Param aRequest, int32_t aFlags,
|
||||
|
Loading…
Reference in New Issue
Block a user