aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
Commit message (Collapse)AuthorAgeFilesLines
* Remove CheckAnyPermissions / CheckAllPermissions extended attributes.Ms2ger2016-07-121-42/+21
|
* Explicitly expose everything everywhere.Ms2ger2016-07-12201-140/+243
|
* Allow [Pref] annotations on worker-exposed interfaces.Ms2ger2016-07-123-12/+29
| | | | Servo does not have the same main-thread limitation as Gecko here.
* Auto merge of #12383 - zeusintuivo:feature/11611, r=noxbors-servo2016-07-113-3/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rename SharedKeyboardAndMouseEventInit to EventModifierInit <!-- Please describe your changes on the following line: --> - [X] renamed file SharedMouseAndKeyboardEventInit, - [X] changed SharedKeyboardAndMouseEventInit to EventModifierInit. - [X] Rebased mozilla/master into it. - [x] Ran build and tidy test without errors --- <!-- 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 #11611 (github issue number if applicable). <!-- 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/12383) <!-- Reviewable:end -->
| * Rename SharedKeyboardAndMouseEventInit to EventModifierInitzeusintuivo2016-07-113-3/+3
| |
* | Auto merge of #12378 - izgzhen:blob-url-revocation-fix, r=Manishearthbors-servo2016-07-112-17/+54
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add FileID validity setting/checking logic to Blob URL implementation r? @Manishearth --- <!-- 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: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- 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/12378) <!-- Reviewable:end -->
| * Add FileID validity setting/checking logic to Blob URL implementationZhen Zhang2016-07-112-17/+54
| |
* | Auto merge of #12376 - sappharx:master, r=ConnorGBrewsterbors-servo2016-07-101-0/+2
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add Runnable::name() implementation for PlannedNavigation #12333 <!-- Please describe your changes on the following line: --> implements Runnable::name() for PlannedNavigation --- <!-- 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 #12333 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [x] These changes do not require tests because the issue stated no tests were needed <!-- 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/12376) <!-- Reviewable:end -->
| * add Runnable::name() implementation for PlannedNavigation resolve #12333sappharx2016-07-101-0/+2
| |
* | Auto merge of #12375 - gpoesia:master, r=KiChjangbors-servo2016-07-101-0/+2
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement Runnable::name() for ImageResponseHandlerRunnable <!-- Please describe your changes on the following line: --> Implement the name() method from the Runnable trait for ImageResponseHandlerRunnable. --- <!-- 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 #12345 (github issue number if applicable). <!-- Either: --> - [X] These changes do not require tests because it's stated in the issue (the change is trivial). <!-- 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/12375) <!-- Reviewable:end -->
| * Implement Runnable::name() for ImageResponseHandlerRunnableGabriel Poesia2016-07-101-0/+2
| |
* | Avoid memmove in HTMLDivElement constructor.Josh Matthews2016-07-101-2/+3
|/
* Implements name method for FilerReader event from trait RunnableNikhil Shagrithaya2016-07-101-0/+2
|
* Implement Runnable trait name method for FireSimpleEventTaskMovingtoMars2016-07-101-0/+2
|
* Auto merge of #12360 - pierre-alain-b:master, r=Wafflespeanutbors-servo2016-07-091-0/+4
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add name method for Runnable trait in DedicatedMediaSourceFailureTask… Add name method for Runnable trait in DedicatedMediaSourceFailureTask. - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #12349. - [X] These changes do not require tests because it is says so in the issue description. <!-- 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/12360) <!-- Reviewable:end -->
| * Implement Runnable trait name method for ResourceSelectionTask, fixing #12348Pierre-Alain Bandinelli2016-07-091-0/+2
| |
| * Add name method for Runnable trait in DedicatedMediaSourceFailureTask, ↵Pierre-Alain Bandinelli2016-07-091-0/+2
| | | | | | | | fixing #12349
* | Add ability to WPT-test file uploads and fetches, fixes #12322Zhen Zhang2016-07-092-59/+90
|/
* Auto merge of #12268 - izgzhen:fm-spawn, r=Manishearthbors-servo2016-07-081-11/+11
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Spawn threads for requests in file manager r? @Manishearth --- <!-- 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 OR <!-- 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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12268) <!-- Reviewable:end -->
| * Spawn threads for requests in file manager and other style fixesZhen Zhang2016-07-081-11/+11
| |
* | Auto merge of #12277 - ConnorGBrewster:network_listener_cancellable, ↵bors-servo2016-07-087-7/+23
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r=Manishearth Make network listener runnable cancellable <!-- Please describe your changes on the following line: --> This keeps scripts from executing after its script thread has been shut down. --- <!-- 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 (maybe) #12048 (github issue number if applicable). <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- 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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12277) <!-- Reviewable:end -->
| * | Change ignore async events ordering to SeqCstConnor Brewster2016-07-082-2/+2
| | |
| * | Make network listener runnable cancellableConnor Brewster2016-07-086-5/+21
| |/
* | Auto merge of #12118 - emilio:animation-shorthand, r=SimonSapinbors-servo2016-07-081-0/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | style: Add support to the animation shorthand and fix parsing of animation-name <!-- Please describe your changes on the following line: --> --- <!-- 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 <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> Part of #11916. r? @SimonSapin <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12118) <!-- Reviewable:end -->
| * | style: Add support to the animation shorthand and fix parsing of animation-name.Emilio Cobos Álvarez2016-07-071-0/+1
| | |
* | | Auto merge of #11781 - sjmelia:8719_support_for_css_active, r=Manishearthbors-servo2016-07-084-2/+45
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue 8719: Add basic support for :active selector <!-- Please describe your changes on the following line: --> Added toggling of active state for element and parents on mousedown/mouseup. Active state is removed when mouseout. (hover) - As with my other PR i'm struggling a bit with the automated testing. I've added a manual test case and found quirks-mode/active-and-hover-manual.html which - aside from also being a manual test, is functional in Firefox but does not render correctly in Servo. - Not implemented: In Firefox, behaviour differs with a <!DOCTYPE HTML> and an anchor does not lose it's activation on mouseout; whereas a button does. --- <!-- 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 #8719 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- 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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11781) <!-- Reviewable:end -->
| * | | Issue 8719: Add basic support for :active selectorSteve Melia2016-07-044-2/+45
| | | |
* | | | Add name method for Runnable trait into DetailsNotificationRunnableChangwan Hong2016-07-081-0/+2
| | | |
* | | | Add name method for Runnable trait in DocumentProgressHandlerAndrew Savchyn2016-07-081-0/+2
| |_|/ |/| |
* | | Auto merge of #12309 - szeged:descriptor-functions, r=jdmbors-servo2016-07-072-3/+9
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add missing steps to descriptors writeValue function <!-- Please describe your changes on the following line: --> Add two missing steps to characteristic's writeValue function. https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothremotegattdescriptor-writevalue (Step 4 and 5) <!-- 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 do not require tests, because there is no Web Bluetooth test API implementation yet. <!-- 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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12309) <!-- Reviewable:end -->
| * | | Add missing steps to descriptors writeValue functionzakorgyula2016-07-072-3/+9
| | |/ | |/|
* | | Auto merge of #12292 - ConnorGBrewster:runnable_variant, r=KiChjangbors-servo2016-07-077-36/+25
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Consolidate runnable variants on DOMManipulationTask into a single Runnable variant. <!-- Please describe your changes on the following line: --> Consolidates the runnable variants on `DOMManipulationTask` into a single `Runnable` variant. Also combines `MainThreadRunnable` into the `Runnable` trait. I plan on filing a few E-Easy issues after this lands to implement `name` on each of the structs that implement `Runnable`. --- <!-- 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: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because refactoring <!-- 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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12292) <!-- Reviewable:end -->
| * | Add name method to Runnable traitConnor Brewster2016-07-062-0/+3
| | |
| * | Combined DOMManipulationTask runnable variants into a single variantConnor Brewster2016-07-067-36/+22
| | |
* | | Auto merge of #12272 - Ms2ger:report, r=jdmbors-servo2016-07-061-10/+4
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reuse report_pending_exception in CallSetup. <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12272) <!-- Reviewable:end -->
| * | | Reuse report_pending_exception in CallSetup.Ms2ger2016-07-051-10/+4
| | | |
* | | | Auto merge of #12287 - nox:die-util-die, r=KiChjangbors-servo2016-07-062-3/+4
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove util::breakpoint <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12287) <!-- Reviewable:end -->
| * | | | Remove util::breakpointAnthony Ramine2016-07-062-3/+4
| | | | |
* | | | | Auto merge of #12261 - szeged:gattcharacteristicfunctions, r=jdmbors-servo2016-07-062-1/+19
|\ \ \ \ \ | |_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Missing steps of Characteristic's readValue, writeValue functions <!-- Please describe your changes on the following line: --> Add a check for the read property of the characteristic as described in https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothremotegattcharacteristic-readvalue (Step 4.1) Add two missing steps to characteristic's WriteValue function. https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothremotegattcharacteristic-writevalue (Step 4 and 5) --- <!-- 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 do not require tests because, there are no Web Bluetooth test API implementation yet. <!-- 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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12261) <!-- Reviewable:end -->
| * | | | Missing steps of Characteristic's readValue, writeValue functionszakorgy2016-07-062-1/+19
| | | | |
* | | | | Auto merge of #11950 - jdm:keylayout2, r=emiliobors-servo2016-07-066-69/+67
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support non-QWERTY keyboards Using the ReceivedCharacter event from glutin, we can obtain the actual key characters that the user is pressing and releasing. This gets passed to the script thread along with the physical key data, since KeyboardEvent needs both pieces of information, where they get merged into a single logical key that gets processed by clients like TextInput without any special changes. Tested by switching my macbook keyboard to dvorak and looking at the output of keypress/keyup/keydown event listeners, as well as playing with tests/html/textarea.html. Non-content keybindings like reload work as expected, too - the remapped keybinding triggers the reload action. --- - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #4144 - [X] These changes do not require tests because I can't think of a way to test remapped keyboard input Fixes #11991. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11950) <!-- Reviewable:end -->
| * | | | Make textinput handle actual key values. Don't restrict character values to ↵Josh Matthews2016-07-065-60/+37
| | | | | | | | | | | | | | | | | | | | a single byte.
| * | | | Associate logical and physical keypresses together to support non-QWERTY ↵Josh Matthews2016-07-055-27/+48
| | |/ / | |/| | | | | | | | | | keyboards.
* | | | Auto merge of #11948 - stshine:flex-shorthand-properties, r=emiliobors-servo2016-07-051-0/+3
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support 'flex' and 'flex-flow' shorthand properties <!-- Please describe your changes on the following line: --> Support the `flex` and `flex-flow` shorthand properties in servo. Currently they are marked as experimental, so they are added to `__dir__.ini`. Thanks SimonSapin and jdm for help :) --- <!-- 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] 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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11948) <!-- Reviewable:end -->
| * | | | Support flexbox shorthand propertiesPu Xingyu2016-06-301-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support the `flex` and `flex-flow` shorthand properties in servo. Currently they are marked as experimental, so they are added to '__dir__.ini'. Thanks SimonSapin and jdm for help :)
* | | | | Remove get_attr from TElement. \o/Bobby Holley2016-07-051-7/+7
| | | | |
* | | | | Upgrade rust-selectors.Bobby Holley2016-07-053-61/+68
| | | | |
* | | | | Add attr_equals to TElement.Bobby Holley2016-07-051-0/+5
| | | | | | | | | | | | | | | | | | | | Same reasons as the previous patch.
* | | | | Add has_attr method to TElement.Bobby Holley2016-07-051-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | If this is all the information the caller needs, we can get it from gecko without worrying about atomization and string conversions.
* | | | | Remove get_attrs from TElement.Bobby Holley2016-07-051-8/+4
| | | | | | | | | | | | | | | | | | | | This should just be a helper.