aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | added wrapper selection and subsumes logicddh2017-04-252-8/+102
| | | | |
| * | | | added JSPrincipal bindingsddh2017-04-253-3/+32
| | | | |
* | | | | feat: shorten thread namesyvt2021-07-194-5/+4
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Linux kernel imposes a 15-byte limit on thread names[1]. This means information that does not fit in this limit, e.g., the pipeline ID of layout and script threads, is lost in a debugger and profiler (see the first column of the table below). This commit shortens the thread names used in Servo to maximize the amount of information conveyed. It also rectifies some inconsistencies in the names. | Before | After | |-------------------|-------------------| | `BluetoothThread` | `Bluetooth` | | `CanvasThread` | `Canvas` | | `display alert d` | `AlertDialog` | | `FontCacheThread` | `FontCache` | | `GLPlayerThread` | `GLPlayer` | | `HTML Parser` | `Parse:www.examp` | | `LayoutThread Pi` | `Layout(1,1)` | | `Memory profiler` | `MemoryProfiler` | | `Memory profiler` | `MemoryProfTimer` | | `OfflineAudioCon` | `OfflineACResolv` | | `PullTimelineMar` | `PullTimelineDat` | | `ScriptThread Pi` | `Script(1,1)` | | `WebWorker for h` | `WW:www.example.` | | `ServiceWorker f` | `SW:www.example.` | | `ServiceWorkerMa` | `SvcWorkerManage` | | `Time profiler t` | `TimeProfTimer` | | `Time profiler` | `TimeProfiler` | | `WebGL thread` | `WebGL` | | `Choose a device` | `DevicePicker` | | `Pick a file` | `FilePicker` | | `Pick files` | `FilePicker` | [1]: https://stackoverflow.com/questions/5026531/thread-name-longer-than-15-chars
* | | | doc(script): use the recommended format of a WHATWG linkyvt2021-07-131-1/+1
| | | | | | | | | | | | Enforced by `./mach test-tidy`
* | | | doc(script): update comments in `run_worker_scope` and `run_serviceworker_scope`yvt2021-07-132-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The step numbers changed over time. Note that service workers and non-service workers use different steps defined in different specifications.
* | | | fix(script): Set `DedicatedWorkerGlobalScope`'s origin correctlyyvt2021-07-131-2/+13
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | <https://html.spec.whatwg.org/multipage/workers.html#worker-processing-model> > 10.2.4 Processing model > > When a user agent is to run a worker for a script with `Worker` or > `SharedWorker` object `worker`, [...] it must run the following steps. > > [...] > > 8. Set up a worker environment settings object with `realm execution > context` and `outside settings`, and let `inside settings` be the > result. <https://html.spec.whatwg.org/multipage/workers.html#script-settings-for-workers> > To **set up a worker environment settings object**, given a JavaScript > execution context `execution context` and environment settings object > `outside settings`: > > 1. Let `inherited origin` be `outside settings`'s origin. > > 2. Let `realm` be the value of `execution context`'s Realm component. > > 3. Let `worker global scope` be `realm`'s global object. > > 4. Let `settings object` be a new environment settings object whose > algorithms are defined as follows: > > **The origin** Return a unique opaque origin if `worker global > scope`'s url's scheme is "data", and `inherited origin` otherwise.
* | | Auto merge of #28538 - yvt:chore-mozjs, r=jdmbors-servo2021-07-102-0/+11
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update mozjs - <https://github.com/servo/rust-mozjs/pull/548> --- - [x] `./mach build -d` does not report any errors - [ ] `./mach test-tidy` does not report any errors - [ ] These changes fix #___ (GitHub issue number if applicable) --- - [ ] There are tests for these changes OR - [x] These changes do not require tests because it introduces no behavioral changes
| * | | chore(deps): update mozjsyvt2021-07-102-0/+11
| | |/ | |/| | | | | | | - a8b688a: Add `ProxyTraps::{getPrototype, setPrototype, setImmutablePrototype}`
* | | Auto merge of #27805 - halvko:html_progress_element, r=jdmbors-servo2021-07-102-5/+79
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Properly implement HTMLProgressElement DOM code <!-- Please describe your changes on the following line: --> The DOM code for HTMLProgressElement have been implemented, according to https://html.spec.whatwg.org/multipage/form-elements.html#the-progress-element . As mentioned in #23201, tests already exists for this element in tests/wpt/web-platform-tests/html/semantics/forms/the-progress-element/, which now passes (tested on Linux). --- <!-- 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 - [ ] These changes fix #___ (GitHub issue number if applicable) <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because ___ <!-- 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. -->
| * | Properly implement HTMLProgressElement DOM codeErik Funder Carstensen2021-03-312-5/+79
| | | | | | | | | | | | Signed-off-by: Erik Funder Carstensen <fundererik@gmail.com>
* | | doc(script): we don't do cross-compartment brain transplantation anymoreyvt2021-07-071-7/+5
| | |
* | | fix(script): one compartment for each script thread (agent)yvt2021-07-061-0/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | Documents in the same agent[1] can share and exchange JS and DOM objects freely, so putting them in separate compartments would require almost every instance of `Dom` to be able to handle cross-compartment references. [1]: https://html.spec.whatwg.org/multipage/webappapis.html#integration-with-the-javascript-agent-formalism
* | | Replaced ref_slice::ref_slice with std::slice::from_refAdrian Willenbücher2021-06-102-7/+7
| | | | | | | | | | | | | | | | | | | | | ref_slice::ref_slice is deprecated in ref_slice-1.2.1, because it's redundant with std since rust 1.28. Signed-off-by: Adrian Willenbücher <willenbuecher@xq-tec.com>
* | | Fix errorsagudev2021-04-171-1/+1
| | |
* | | Fix for bindgensagudev2021-04-171-0/+1
| | |
* | | Update mozjs to 88sagudev2021-04-141-9/+12
|/ /
* | Auto merge of #28300 - sagudev:master, r=jdmbors-servo2021-03-301-1/+2
|\ \ | | | | | | | | | | | | | | | Update mozjs to 87 Depends on: https://github.com/servo/rust-mozjs/pull/540
| * | Fix warningsagu2021-03-301-1/+0
| | |
| * | fmtsagudev2021-03-301-6/+2
| | |
| * | Update imagedata.rssagu2021-03-301-1/+1
| | |
| * | Fix errorssagudev2021-03-191-1/+7
| | |
* | | Improve IME messaging to embedder with insertion point index and multiline flag.Philip Lamb2021-03-291-4/+17
|/ /
* | Formatingsagudev2021-03-121-1/+2
| |
* | Fix errorssagudev2021-03-122-7/+4
| |
* | Miscellaneous build / tidy fixes.Emilio Cobos Álvarez2021-02-2612-48/+71
| |
* | Reformat with rustfmt 1.4.36-nightly (7de6968 2021-02-07)Simon Sapin2021-02-251-1/+1
| |
* | Port some code to Python3Vincent Ricard2021-02-188-2250/+1311
| |
* | Implement toStringTag symbol for DOM objects.Josh Matthews2021-02-181-22/+69
| | | | | | | | This symbol is now required for the expected stringification behaviour in WPT.
* | Update mozjs.Josh Matthews2021-02-188-29/+72
| |
* | fmtteymour-aldridge2021-02-053-8/+4
| |
* | Remove unused arguments from methods.teymour-aldridge2021-02-054-23/+10
| |
* | Fix errorsteymour-aldridge2021-02-051-4/+4
| |
* | Mark methods as unsafe.teymour-aldridge2021-02-051-4/+4
| |
* | Clean up the code to BOM sniff.Andreu Botella2021-01-091-15/+5
| | | | | | | | See https://github.com/servo/servo/pull/28006#discussion_r551968553
* | Fix `document.characterSet` not reflecting byte order marks.Andreu Botella2020-12-313-8/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | The process of decoding the network byte stream to Unicode is backed by an instance of `encoding_rs::Decoder`, which will switch the encoding it uses if it finds a BOM in the byte stream. However, this change in encoding is not communicated back to the caller and so `document.characterSet` gives the wrong result. This change fixes that. See whatwg/html#5359 and whatwg/encoding#203 for the spec-level backing for this change. Signed-off-by: Andreu Botella <abb@randomunok.com>
* | Fix mouse button handlingYUAN LYU2020-12-061-2/+6
| |
* | Implement referrerPolicy for HTMLLinkElement and HTMLScriptElementYUAN LYU2020-12-015-6/+50
| |
* | Added is_platform_obj_staticSean Joseph2020-11-262-5/+21
| |
* | Add creation url and Secure ContextsJonathan Kingston2020-11-2513-4/+88
| |
* | Replace generic 'value' variable name with 'id' and 'name' to reduce confusionTyler Wilcock2020-11-231-5/+5
| |
* | Use data_url::Mime to parse the MIME TypesVincent Ricard2020-11-182-24/+120
| | | | | | | | | | This commit follows the spectification https://fetch.spec.whatwg.org/#concept-header-extract-mime-type
* | Fix deprecation warnings.Josh Matthews2020-11-121-2/+2
| |
* | Implements StyleSheet.mediaVincent Ricard2020-10-163-1/+16
| |
* | Implements Stylesheet.ownerNodeVincent Ricard2020-10-108-23/+52
| |
* | Make hidden input _charset_ check case insensitiveVincent Ricard2020-10-092-3/+3
| |
* | Implement DOMTokenList.supports APIVincent Ricard2020-10-059-16/+129
| |
* | Implements HTMLDetailsElement toggleVincent Ricard2020-09-263-1/+71
| |
* | Implement ParentNode#replaceChildrenVincent Ricard2020-09-255-0/+29
| |
* | Auto merge of #27666 - ghostd:fix-checkbox-radio-activation, r=jdmbors-servo2020-09-241-12/+2
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow mutating <input disabled type=checkbox/radio> --- <!-- 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 #27586 <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because ___ <!-- 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. -->
| * | Remove unnecessary checksVincent Ricard2020-09-241-13/+0
| | |