Read-only Git mirror of the Mercurial gecko repositories at https://hg.mozilla.org. How to contribute: https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
Go to file
OJ Kwon 3b32f0e8be servo: Merge #20406 - feat(fetch): accept arraybuffer in consume_body (from kwonoj:feat-fetch-body-arraybuffer); r=jdm
feat(fetch): accept arraybuffer in consume_body

<!-- Please describe your changes on the following line: -->
Related to https://github.com/servo/servo/issues/20346.

I realized I am not sufficiently knowledgeable about codebases and have high confidence this PR is not ready to be accepted. Raising it as PR early to possibly ask some suggestions around codebases.

If this PR seems unrecoverable by code review, please feel freely close and unassign me from issue 🙏

This PR tries to implement #20346, updating `Body` idl and implements corresponding implementation in `body.rs` for `fetch`. Criteria for changes may includes

- does `run_array_buffer_data_algorithm` implementation is legit for allocating arraybuffer? (probably not)
- does `run_array_buffer_data_algorithm` implementation is acceptable for handling error, by naively returning `Error::JSFailed`?
- there are some number of wpt test started to PASS with this PR. Is this legit side effect, or something incorrect by current implementation?
- etcs, vice versa

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #20346 (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____
- wpt test has changed in PR, need to be reviewed.

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: 23b2f42a368cdc68548310e79b31306f40f95553

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 3cf96067aca4fa0a3f7d31256758f472b3d1c169
2018-03-24 13:46:20 -04:00
.cargo Bug 1426116 - Update for changes in WR PR 2251. r=jrmuizel 2018-01-08 09:19:27 -05:00
.vscode Bug 1423565 - Update tasks.json as per documentation. r=rillian 2017-12-06 14:59:35 +01:00
accessible Bug 1431256 correction: AccessibleHandler: Really return E_NOINTERFACE for IEnumVARIANT if there are no children. r=MarcoZ 2018-03-22 17:57:34 -04:00
browser Bug 1448133 - Add a Nightly-only preference to set the tab throbber to animate at 30fps. r=jaws 2018-03-22 16:05:49 -04:00
build Bug 1440714 - Convert Android browser test harnesses to adb.py; r=bc 2018-03-23 18:06:27 -06:00
caps Bug 1442239 - Make URI deserialization (nsISerializable.read) happen via nsIURIMutator only r=mayhemer 2018-03-19 20:22:32 +01:00
chrome Bug 1443079 - nsScriptError.isFromPrivateWindow must match the correct value also in e10s mode, r=smaug 2018-03-13 06:40:38 +01:00
config Bug 1429875 - Implement OBJ_SUFFIX overriding for the profile generation phase on linux in mozbuild. r=glandium 2018-03-20 16:44:12 -07:00
db Bug 1442370 - Change SQLITE_TEMP_FILE_PREFIX to a Mozilla unique value. r=asuth 2018-03-01 20:55:18 +01:00
devtools Merge inbound to mozilla-central. a=merge 2018-03-24 00:00:40 +02:00
docshell Bug 1447098 part 1. Rename FromContent on various DOM classes to FromNode. r=mystor 2018-03-21 17:39:04 -04:00
dom Bug 1437281 - OSX dragging image to desktop changes OSX File associations r=mystor 2018-03-22 14:04:23 -07:00
editor Bug 1447483: Merge nsStyleContext and ServoStyleContext, rename to ComputedStyle. r=jwatt on a CLOSED TREE 2018-03-22 20:06:24 +01:00
embedding Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian 2018-01-29 15:20:18 -08:00
extensions Bug 1446711 part 5. Get rid of nsIDOMMouseEvent::GetButton. r=qdot 2018-03-20 00:16:06 -04:00
gfx Bug 1448189 - Realign stack before using SSE2 in Skia. r=lsalzman 2018-03-23 06:40:27 +00:00
gradle/wrapper Bug 1411654 - Part 1: Upgrade to Android-Gradle 3.0+ and build-tools;26.0.2. r=maliu 2017-10-26 11:00:36 -07:00
hal Bug 1447873 - Remove Time API backend in hal. r=gsvelto 2018-03-22 10:46:42 +09:00
image Bug 1445302 - Replace TArray.RemoveElementAt(TArray.Length() - 1) pattern with TArray.RemoveLastElement() or TArray.PopLastElement() r=froydnj 2018-03-13 14:51:33 +01:00
intl Bug 1447189 - Support BCP47 private use subtags in MozLocale. r=jfkthame 2018-03-22 15:19:15 -07:00
ipc Bug 1448053 - be more efficient in MessageChannel::RepostAllMessages; r=jld 2018-03-23 09:40:53 -04:00
js Merge inbound to mozilla-central. a=merge 2018-03-24 00:00:40 +02:00
layout Bug 1448529 - Remove aListDescendants param of ComputedStyle::List. r=emilio 2018-03-24 15:50:14 +11:00
media Backed out 3 changesets (bug 1446233) for permafailing on dom/media/tests/mochitest/test_peerConnection_replaceTrack.html. a=backout 2018-03-23 15:18:23 +02:00
memory Bug 1447795 - Add some more UseItOrLoseIt to SmokeDMD.cpp. r=njn 2018-03-21 13:52:00 +02:00
mfbt Bug 1448387: Use alignof() in HasFreeLSB. r=froydnj 2018-03-23 19:09:42 +01:00
mobile Bug 1448048. Restrict the window.Components shim to non-nightly-only to see whether sites actually use it. r=mccr8 2018-03-23 12:53:48 -04:00
modules Bug 1447210 - Upper-case log levels for Console.createInstance(), r=bgrins 2018-03-24 08:21:01 +01:00
mozglue Bug 1446680 - Restrict WindowsDllBlocklist's gStartAddressesToBlock to Nightly builds. r=aklotz 2018-03-17 21:14:18 +01:00
netwerk Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-03-23 01:00:18 +02:00
nsprpub Bug 1432480, land NSPR_4_19_RTM, no code changes, only version numbers. Require version 4.19 for building. r=me 2018-03-05 17:05:18 +01:00
other-licenses Bug 1436475 Part 5 - Add a readme and a patch file with our changes to the 7-zip directory. r=agashlin 2018-02-13 09:17:07 -08:00
parser Bug 1447098 part 1. Rename FromContent on various DOM classes to FromNode. r=mystor 2018-03-21 17:39:04 -04:00
python Bug 1447817 - correlate mach static-analysis documentation with configuration file. r=sylvestre 2018-03-24 13:01:04 +02:00
rdf Bug 1443080 - Use the static call for static methods (not instance) r=Ehsan 2018-03-16 14:29:15 +01:00
security No bug, Automated HPKP preload list update from host bld-linux64-spot-302 - a=hpkp-update 2018-03-24 00:08:51 -07:00
services Merge inbound to mozilla-central. a=merge 2018-03-22 01:46:39 +02:00
servo servo: Merge #20406 - feat(fetch): accept arraybuffer in consume_body (from kwonoj:feat-fetch-body-arraybuffer); r=jdm 2018-03-24 13:46:20 -04:00
startupcache Bug 1439047 - Part 2: Cleanup StartupCache::PutBuffer hashtable usage. r=froydnj 2018-02-16 15:58:30 -08:00
storage Bug 1435446 - Add a default transaction type for storage connections. r=mak 2018-02-28 22:44:40 -08:00
taskcluster Bug 1448438 - Document how to upgrade Mercurial in CI; r=sheehan 2018-03-23 12:43:36 -07:00
testing Bug 1448438 - Update to latest robustcheckout; r=sheehan 2018-03-23 12:53:34 -07:00
third_party No bug - Revendor rust dependencies 2018-03-21 19:17:05 +00:00
toolkit Merge mozilla-central to autoland a=merge on a CLOSED TREE 2018-03-24 11:48:16 +02:00
tools Bug 1447483: Merge nsStyleContext and ServoStyleContext, rename to ComputedStyle. r=jwatt on a CLOSED TREE 2018-03-22 20:06:24 +01:00
uriloader Bug 1442465 - Part 4.2: Stop unnecessarily awaiting on BrowserTestUtils.removeTab (simple part). r=dao 2018-03-19 11:16:45 +09:00
view Bug 1423551: Use BaseRect access methods instead of member variables in view/. r=jet 2018-01-10 11:16:22 -05:00
widget Bug 1437281 - OSX dragging image to desktop changes OSX File associations r=mystor 2018-03-22 14:04:23 -07:00
xpcom Merge inbound to mozilla-central. a=merge 2018-03-23 11:51:38 +02:00
xpfe Backed out changeset becfb5f6388d (bug 1447875) for failing browser chrome at browser/base/content/test/performance/browser_windowopen_reflows.js on a CLOSED TREE 2018-03-22 08:54:03 +02:00
.arcconfig Bug 1424950: Add missing repository.callsign to .arcconfig. r=dkl 2017-12-13 15:38:18 +01:00
.clang-format Bug 1414764 - Remove Mozilla specific options to avoid build warnings with gcc and -Wcomment enabled. r=sylvestre 2017-11-06 11:47:40 +02:00
.clang-format-ignore Bug 1448382 - Add js/src/vtune/ to the ThirdPartyPaths and .clang-format-ignore. r=sylvestre 2018-03-23 21:38:55 +02:00
.cron.yml Bug 1418188 - Run Searchfox indexing in TaskCluster on a daily basis (r=dustin,chmanchester) 2017-11-23 07:25:12 -08:00
.eslintignore Bug 1444926 - Move devtools/shim to devtools/startup;r=ochameau 2018-03-12 14:41:48 +01:00
.eslintrc.js Bug 1434446 - Enable no-unused-vars for global scope on jsm files in browser/. r=mossop 2018-03-01 20:06:06 +00:00
.flake8 Bug 1434430 - [flake8] Fix blank 'except' statements r=rwood 2018-01-31 14:32:08 -05:00
.gdbinit Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro. 2017-10-03 09:05:19 +11:00
.gdbinit_python
.gitignore Bug 1439727 - Ignore third_party/python/psutil/tmp/ in VCS; r=nalexander 2018-03-07 08:59:48 -08:00
.hgignore Bug 1439727 - Ignore third_party/python/psutil/tmp/ in VCS; r=nalexander 2018-03-07 08:59:48 -08:00
.hgtags No bug - Tagging mozilla-central fdd1a0082c71673239fc2f3a6a93de889c07a1be with FIREFOX_NIGHTLY_60_END a=release DONTBUILD CLOSED TREE 2018-03-12 13:18:08 +00:00
.inferconfig
.lldbinit Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro. 2017-10-03 09:05:19 +11:00
.mailmap NO BUG - Use ato's new address. r=me 2018-02-26 15:59:29 +00:00
.taskcluster.yml Bug 1437562: only use ..:branch:default role, not :*; r=bstack 2018-02-12 18:58:05 +00:00
.yamllint
.ycm_extra_conf.py
aclocal.m4
AUTHORS
build.gradle Bug 1447734 - Specify Google Play Services library version in Gradle r=nalexander 2018-03-22 14:35:38 -05:00
Cargo.lock Backed out 3 changesets (bug 1446233) for permafailing on dom/media/tests/mochitest/test_peerConnection_replaceTrack.html. a=backout 2018-03-23 15:18:23 +02:00
Cargo.toml Bug 1444174 - point people away from Cargo.toml for opt-level settings of Rust code; r=nalexander 2018-03-09 09:31:17 -05:00
client.mk Bug 1417264 - Write .mozconfig.json from Python; r=nalexander 2017-11-13 17:45:03 -08:00
client.py
CLOBBER Bug 1445524 - Always embed ICU data directly into the library, not storing it in a separate file in the file system. r=ted 2018-03-19 20:33:48 -07:00
configure.in
configure.py Bug 1412460 - Don't write make variables in configure.d; r=mshal 2017-11-01 15:02:11 -07:00
GNUmakefile
gradle.properties Bug 1411654 - Part 2: Update Robolectric to 3.5.1. r=mcomella 2017-11-07 20:26:43 -08:00
gradlew
LEGAL
LICENSE
mach
Makefile.in Bug 1445398 - Do not re-generate buildid.h for every Tup build. r=mshal 2018-03-22 16:03:12 -07:00
moz.build Bug 1445763 - Update moz.build meta data with "Firefox Build System". r=froydnj 2018-03-14 21:44:46 +01:00
moz.configure Bug 1435424 - Remove doxygen support from the build system. r=gps 2018-02-02 14:24:18 -08:00
mozilla-config.h.in Bug 1431803 Turn __try into if(true) and __except into else in the chromium sandbox code r=bobowen,glandium 2018-01-22 12:18:51 -06:00
npm-shrinkwrap.json Bug 1443093 - Update eslint-plugin-no-unsanitized to 3.0.0 / eslint to 4.18.2. r=mossop 2018-03-05 10:34:38 +00:00
old-configure.in Bug 1446270 - Android/arm target should turn on crash reporter as default. r=froydnj 2018-03-16 16:38:14 +09:00
package.json Bug 1443093 - Update eslint-plugin-no-unsanitized to 3.0.0 / eslint to 4.18.2. r=mossop 2018-03-05 10:34:38 +00:00
README.txt
settings.gradle Bug 1360587 - Part 2. Remove bouncer apk build config; source; docs, r=nalexander 2017-10-25 22:51:44 +08:00
test.mozbuild

An explanation of the Mozilla Source Code Directory Structure and links to
project pages with documentation can be found at:

    https://developer.mozilla.org/en/Mozilla_Source_Code_Directory_Structure

For information on how to build Mozilla from the source code, see:

    https://developer.mozilla.org/en/docs/Build_Documentation

To have your bug fix / feature added to Mozilla, you should create a patch and
submit it to Bugzilla (https://bugzilla.mozilla.org). Instructions are at:

    https://developer.mozilla.org/en/docs/Creating_a_patch
    https://developer.mozilla.org/en/docs/Getting_your_patch_in_the_tree

If you have a question about developing Mozilla, and can't find the solution
on https://developer.mozilla.org, you can try asking your question in a
mozilla.* Usenet group, or on IRC at irc.mozilla.org. [The Mozilla news groups
are accessible on Google Groups, or news.mozilla.org with a NNTP reader.]

You can download nightly development builds from the Mozilla FTP server.
Keep in mind that nightly builds, which are used by Mozilla developers for
testing, may be buggy. Firefox nightlies, for example, can be found at:

    https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/
            - or -
    https://nightly.mozilla.org/