servo/components/script/dom
bors-servo 1153ca9841 Auto merge of #13909 - dati91:promise-queue, r=jdm
Webbluetooth Async behaviour

<!-- Please describe your changes on the following line: -->

Note: depends on https://github.com/servo/servo/pull/13612

The current WBT communication is synchronous. With this, it should work properly (except the disconnect function, which will need some more work, because the current implementation differ from the spec).

<!-- 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

<!-- Either: -->
- [X] There are tests for these changes

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

<!-- Reviewable:start -->
---

This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13909)

<!-- Reviewable:end -->
2016-11-08 09:05:12 -06:00
..
bindings Rename media_queries::MediaQueryList to MediaList 2016-11-08 13:09:31 +11:00
servoparser Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
webgl_validations webgl: Fix up maximum size validation. 2016-10-23 17:46:10 -07:00
webidls Implement HTMLAnchorElement.origin 2016-11-08 09:54:46 +01:00
abstractworker.rs Remove dead error handling code. 2016-09-05 17:53:53 +02:00
abstractworkerglobalscope.rs implement related sw interface and register method 2016-06-02 04:09:39 +05:30
activation.rs Remove intrinsic Root::r() 2016-10-11 19:44:32 +02:00
attr.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
beforeunloadevent.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
blob.rs Rename Reflectable::global_scope to global 2016-10-06 21:36:41 +02:00
bluetooth.rs Webbluetooth Async behaviour 2016-11-08 13:27:56 +01:00
bluetoothadvertisingdata.rs Make reflect_dom_object take a &GlobalScope 2016-10-06 20:59:09 +02:00
bluetoothcharacteristicproperties.rs Make reflect_dom_object take a &GlobalScope 2016-10-06 20:59:09 +02:00
bluetoothdevice.rs Return the same JS object for the same Bluetooth item. 2016-11-04 15:36:57 +01:00
bluetoothremotegattcharacteristic.rs Webbluetooth Async behaviour 2016-11-08 13:27:56 +01:00
bluetoothremotegattdescriptor.rs Webbluetooth Async behaviour 2016-11-08 13:27:56 +01:00
bluetoothremotegattserver.rs Webbluetooth Async behaviour 2016-11-08 13:27:56 +01:00
bluetoothremotegattservice.rs Webbluetooth Async behaviour 2016-11-08 13:27:56 +01:00
bluetoothuuid.rs Pass a &GlobalScope to WebIDL static methods and constructors 2016-10-06 21:35:49 +02:00
browsingcontext.rs Introduce GlobalScope::pipeline_id 2016-10-06 20:59:13 +02:00
canvasgradient.rs Make reflect_dom_object take a &GlobalScope 2016-10-06 20:59:09 +02:00
canvaspattern.rs Make reflect_dom_object take a &GlobalScope 2016-10-06 20:59:09 +02:00
canvasrenderingcontext2d.rs Remove old rendering backend. 2016-10-18 10:21:27 +10:00
characterdata.rs Revert "Make DOMRefCell use style’s copy of RefCell" 2016-10-04 18:35:01 +02:00
client.rs Make reflect_dom_object take a &GlobalScope 2016-10-06 20:59:09 +02:00
closeevent.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
comment.rs Remove intrinsic Root::r() 2016-10-11 19:44:32 +02:00
console.rs Pass a &GlobalScope to WebIDL static methods and constructors 2016-10-06 21:35:49 +02:00
create.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
crypto.rs Make reflect_dom_object take a &GlobalScope 2016-10-06 20:59:09 +02:00
css.rs Pass a &GlobalScope to WebIDL static methods and constructors 2016-10-06 21:35:49 +02:00
cssstyledeclaration.rs Prefer Servo-specific ToCss for all types 2016-11-07 09:14:22 +05:30
customevent.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
dedicatedworkerglobalscope.rs Rewrite load_whole_resource using the fetch stack. 2016-11-02 16:15:27 +01:00
document.rs Stop using associated types for the concrete ElementSnapshot implementation. 2016-11-07 10:07:34 -08:00
documentfragment.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
documenttype.rs Inline DOM element creation into box expressions in components/script/dom/ 2016-07-14 08:44:22 +02:00
domexception.rs Make reflect_dom_object take a &GlobalScope 2016-10-06 20:59:09 +02:00
domimplementation.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
dommatrix.rs Pass a &GlobalScope to WebIDL static methods and constructors 2016-10-06 21:35:49 +02:00
dommatrixreadonly.rs Rename Reflectable::global_scope to global 2016-10-06 21:36:41 +02:00
domparser.rs Remove intrinsic Root::r() 2016-10-11 19:44:32 +02:00
dompoint.rs Pass a &GlobalScope to WebIDL static methods and constructors 2016-10-06 21:35:49 +02:00
dompointreadonly.rs Pass a &GlobalScope to WebIDL static methods and constructors 2016-10-06 21:35:49 +02:00
domquad.rs Rename Reflectable::global_scope to global 2016-10-06 21:36:41 +02:00
domrect.rs Pass a &GlobalScope to WebIDL static methods and constructors 2016-10-06 21:35:49 +02:00
domrectlist.rs Make reflect_dom_object take a &GlobalScope 2016-10-06 20:59:09 +02:00
domrectreadonly.rs Pass a &GlobalScope to WebIDL static methods and constructors 2016-10-06 21:35:49 +02:00
domstringmap.rs Remove intrinsic Root::r() 2016-10-11 19:44:32 +02:00
domtokenlist.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
element.rs Concurrent rule tree, v1 2016-11-05 17:29:52 +01:00
errorevent.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
event.rs remove extra clones from dom event script 2016-11-05 13:43:27 -07:00
eventdispatcher.rs Rename Reflectable::global_scope to global 2016-10-06 21:36:41 +02:00
eventsource.rs Pass a &GlobalScope to WebIDL static methods and constructors 2016-10-06 21:35:49 +02:00
eventtarget.rs Migrate EventTarget event firing functions to use Atoms. 2016-11-03 17:04:30 -04:00
extendableevent.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
extendablemessageevent.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
file.rs Pass a &GlobalScope to WebIDL static methods and constructors 2016-10-06 21:35:49 +02:00
filelist.rs Make reflect_dom_object take a &GlobalScope 2016-10-06 20:59:09 +02:00
filereader.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
filereadersync.rs Pass a &GlobalScope to WebIDL static methods and constructors 2016-10-06 21:35:49 +02:00
focusevent.rs Pass a &GlobalScope to WebIDL static methods and constructors 2016-10-06 21:35:49 +02:00
forcetouchevent.rs Make reflect_dom_object take a &GlobalScope 2016-10-06 20:59:09 +02:00
formdata.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
globalscope.rs Remove GlobalRoot and GlobalRef 2016-10-06 21:36:00 +02:00
hashchangeevent.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
headers.rs Pass a &GlobalScope to WebIDL static methods and constructors 2016-10-06 21:35:49 +02:00
history.rs Introduce GlobalScope::pipeline_id 2016-10-06 20:59:13 +02:00
htmlanchorelement.rs Implement HTMLAnchorElement.origin 2016-11-08 09:54:46 +01:00
htmlappletelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmlareaelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmlaudioelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmlbaseelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmlbodyelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmlbrelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmlbuttonelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmlcanvaselement.rs canvas: Cleanup CanvasData and layout and script messages. 2016-11-07 11:28:40 +01:00
htmlcollection.rs fix getElementsByTagName() 2016-11-04 16:58:19 +01:00
htmldataelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmldatalistelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmldetailselement.rs Migrate EventTarget event firing functions to use Atoms. 2016-11-03 17:04:30 -04:00
htmldialogelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmldirectoryelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmldivelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmldlistelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmlelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmlembedelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmlfieldsetelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmlfontelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmlformcontrolscollection.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmlformelement.rs Migrate EventTarget event firing functions to use Atoms. 2016-11-03 17:04:30 -04:00
htmlframeelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmlframesetelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmlheadelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmlheadingelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmlhrelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmlhtmlelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmliframeelement.rs Auto merge of #14036 - frewsxcv:event, r=nox 2016-11-04 06:43:56 -05:00
htmlimageelement.rs Migrate EventTarget event firing functions to use Atoms. 2016-11-03 17:04:30 -04:00
htmlinputelement.rs Migrate EventTarget event firing functions to use Atoms. 2016-11-03 17:04:30 -04:00
htmllabelelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmllegendelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmllielement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmllinkelement.rs Rename media_queries::MediaQueryList to MediaList 2016-11-08 13:09:31 +11:00
htmlmapelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmlmediaelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmlmetaelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmlmeterelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmlmodelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmlobjectelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmlolistelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmloptgroupelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmloptionelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmloptionscollection.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmloutputelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmlparagraphelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmlparamelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmlpreelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmlprogresselement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmlquoteelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmlscriptelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmlselectelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmlsourceelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmlspanelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmlstyleelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmltablecaptionelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmltablecellelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmltablecolelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmltabledatacellelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmltableelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmltableheadercellelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmltablerowelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmltablesectionelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmltemplateelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmltextareaelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmltimeelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmltitleelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmltrackelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmlulistelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmlunknownelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
htmlvideoelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
imagedata.rs Make reflect_dom_object take a &GlobalScope 2016-10-06 20:59:09 +02:00
keyboardevent.rs Pass a &GlobalScope to WebIDL static methods and constructors 2016-10-06 21:35:49 +02:00
location.rs Make reflect_dom_object take a &GlobalScope 2016-10-06 20:59:09 +02:00
macros.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
mediaerror.rs Make reflect_dom_object take a &GlobalScope 2016-10-06 20:59:09 +02:00
mediaquerylist.rs Rename media_queries::MediaQueryList to MediaList 2016-11-08 13:09:31 +11:00
messageevent.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
mimetype.rs Report use statements that use {} with only one entry 2016-05-27 10:18:44 +01:00
mimetypearray.rs Make reflect_dom_object take a &GlobalScope 2016-10-06 20:59:09 +02:00
mod.rs WebBluetooth Test API 2016-11-04 12:36:23 +01:00
mouseevent.rs Pass a &GlobalScope to WebIDL static methods and constructors 2016-10-06 21:35:49 +02:00
namednodemap.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
navigator.rs Rename Reflectable::global_scope to global 2016-10-06 21:36:41 +02:00
navigatorinfo.rs Move DOMString back to script 2016-05-24 10:54:57 +02:00
node.rs Auto merge of #14027 - frewsxcv:htmlcollection-iter-refactor, r=emilio 2016-11-03 16:05:14 -05:00
nodeiterator.rs Remove intrinsic Root::r() 2016-10-11 19:44:32 +02:00
nodelist.rs Remove intrinsic Root::r() 2016-10-11 19:44:32 +02:00
pagetransitionevent.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
performance.rs Make reflect_dom_object take a &GlobalScope 2016-10-06 20:59:09 +02:00
performancetiming.rs Remove intrinsic Root::r() 2016-10-11 19:44:32 +02:00
plugin.rs Use Option<T> to return from getters 2016-08-30 19:07:19 +02:00
pluginarray.rs Make reflect_dom_object take a &GlobalScope 2016-10-06 20:59:09 +02:00
popstateevent.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
processinginstruction.rs Move DOMString back to script 2016-05-24 10:54:57 +02:00
progressevent.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
promise.rs Update js. 2016-11-02 13:25:49 +01:00
promisenativehandler.rs Make reflect_dom_object take a &GlobalScope 2016-10-06 20:59:09 +02:00
radionodelist.rs Make reflect_dom_object take a &GlobalScope 2016-10-06 20:59:09 +02:00
range.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
request.rs Code review comments and upstream merge conflicts 2016-11-04 11:18:22 -04:00
response.rs Implement response API Clone step 1 2016-10-23 12:32:48 +03:00
screen.rs Make reflect_dom_object take a &GlobalScope 2016-10-06 20:59:09 +02:00
serviceworker.rs Add more event names to atom list; use more atom macros. 2016-11-06 11:03:14 -05:00
serviceworkercontainer.rs Add more event names to atom list; use more atom macros. 2016-11-06 11:03:14 -05:00
serviceworkerglobalscope.rs Add more event names to atom list; use more atom macros. 2016-11-06 11:03:14 -05:00
serviceworkerregistration.rs Make create_scope_things take a &GlobalScope 2016-10-06 21:35:48 +02:00
storage.rs Remove intrinsic Root::r() 2016-10-11 19:44:32 +02:00
storageevent.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
stylesheet.rs Make reflect_dom_object take a &GlobalScope 2016-10-06 20:59:09 +02:00
stylesheetlist.rs Make reflect_dom_object take a &GlobalScope 2016-10-06 20:59:09 +02:00
svgelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
svggraphicselement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
svgsvgelement.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
testbinding.rs Rename Reflectable::global_scope to global 2016-10-06 21:36:41 +02:00
testbindingiterable.rs Pass a &GlobalScope to WebIDL static methods and constructors 2016-10-06 21:35:49 +02:00
testbindingpairiterable.rs Pass a &GlobalScope to WebIDL static methods and constructors 2016-10-06 21:35:49 +02:00
testbindingproxy.rs Use Option<T> to return from getters 2016-08-30 19:07:19 +02:00
testrunner.rs Webbluetooth Async behaviour 2016-11-08 13:27:56 +01:00
text.rs Remove intrinsic Root::r() 2016-10-11 19:44:32 +02:00
textdecoder.rs Pass a &GlobalScope to WebIDL static methods and constructors 2016-10-06 21:35:49 +02:00
textencoder.rs Pass a &GlobalScope to WebIDL static methods and constructors 2016-10-06 21:35:49 +02:00
touch.rs Make reflect_dom_object take a &GlobalScope 2016-10-06 20:59:09 +02:00
touchevent.rs Make reflect_dom_object take a &GlobalScope 2016-10-06 20:59:09 +02:00
touchlist.rs Make reflect_dom_object take a &GlobalScope 2016-10-06 20:59:09 +02:00
transitionevent.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
treewalker.rs Remove extra spaces in function calls and declarations 2016-10-31 18:11:37 +01:00
uievent.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
url.rs Remove URL.domainToASCII and URL.domainToUnicode 2016-10-25 19:05:57 -04:00
urlhelper.rs Made fixes for PR. 2016-09-18 07:12:39 -05:00
urlsearchparams.rs Make URLSearchParams iterable. 2016-10-07 17:35:54 +02:00
userscripts.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
validation.rs Implement initial pieces of form validation. 2016-03-24 09:07:38 -04:00
validitystate.rs Make #[derive(JSTraceable)] a procedural macro 2016-11-03 01:10:35 +01:00
values.rs
virtualmethods.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
webglactiveinfo.rs Make reflect_dom_object take a &GlobalScope 2016-10-06 20:59:09 +02:00
webglbuffer.rs Make reflect_dom_object take a &GlobalScope 2016-10-06 20:59:09 +02:00
webglcontextevent.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
webglframebuffer.rs webgl: Re-check FBO status on binding an FBO. 2016-10-25 22:19:29 -07:00
webglobject.rs Make reflect_dom_object take a &GlobalScope 2016-10-06 20:59:09 +02:00
webglprogram.rs Rename Reflectable::global_scope to global 2016-10-06 21:36:41 +02:00
webglrenderbuffer.rs webgl: Add support for renderbufferStorage(). 2016-10-25 22:18:28 -07:00
webglrenderingcontext.rs webgl: Detach RBs and textures from the bound FBO on deletion. 2016-10-25 22:19:26 -07:00
webglshader.rs Make reflect_dom_object take a &GlobalScope 2016-10-06 20:59:09 +02:00
webglshaderprecisionformat.rs Make reflect_dom_object take a &GlobalScope 2016-10-06 20:59:09 +02:00
webgltexture.rs Make reflect_dom_object take a &GlobalScope 2016-10-06 20:59:09 +02:00
webgluniformlocation.rs Make reflect_dom_object take a &GlobalScope 2016-10-06 20:59:09 +02:00
websocket.rs Migrate EventTarget event firing functions to use Atoms. 2016-11-03 17:04:30 -04:00
window.rs Webbluetooth Async behaviour 2016-11-08 13:27:56 +01:00
worker.rs Migrate EventTarget event firing functions to use Atoms. 2016-11-03 17:04:30 -04:00
workerglobalscope.rs Rewrite load_whole_resource using the fetch stack. 2016-11-02 16:15:27 +01:00
workerlocation.rs Make reflect_dom_object take a &GlobalScope 2016-10-06 20:59:09 +02:00
workernavigator.rs Make reflect_dom_object take a &GlobalScope 2016-10-06 20:59:09 +02:00
xmldocument.rs Remove intrinsic Root::r() 2016-10-11 19:44:32 +02:00
xmlhttprequest.rs Move ReferrerPolicy to net_traits. 2016-11-04 10:43:37 +01:00
xmlhttprequesteventtarget.rs
xmlhttprequestupload.rs Make reflect_dom_object take a &GlobalScope 2016-10-06 20:59:09 +02:00