aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Make first argument of DOMManipulationTaskSource as a Box<ScriptChan +CYBAI2018-10-185-11/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Send> We don't have `window` for `workers`. So, if we use `global.as_window()` to get the DOMManipulationTaskSource, it will make worker panic. Instead, we should get the DOMManipulationTaskSource from each own thread. Ref: https://github.com/servo/servo/pull/20755#discussion_r193557746
| * | Implement unhandledrejection eventCYBAI2018-10-189-12/+333
| | |
| * | Make expectionCode of Promise have newline character automaticallyCYBAI2018-10-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | In the `fill` method, it will check if the exception code is empty string or has newline character in the end of string or not. However, we didn't do any change to exceptionCode when type is Promise. Thus, we add the newline character to make it pass the checking in `fill` method. See more detail from the log of IRC: https://mozilla.logbot.info/servo/20180501#c14692647
* | | Fix Servo build.Emilio Cobos Álvarez2018-10-192-16/+26
| | |
* | | Auto merge of #21961 - servo:webgl, r=jdmbors-servo2018-10-185-14/+8
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Properly support gl_PointSize and gl_PointCoord Fixes #21719. Fixes #20993. Fixes #20992. Fixes #21007. Fixes #20979. <!-- 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/21961) <!-- Reviewable:end -->
| * | | Properly support gl_PointSize and gl_PointCoordAnthony Ramine2018-10-185-14/+8
| | |/ | |/| | | | | | | | | | | | | | | | | | | Fixes #21719. Fixes #20993. Fixes #20992. Fixes #21007. Fixes #20979.
* | | Correctly determine text selection directionPyfisch2018-10-171-5/+24
| |/ |/| | | | | | | | | Add some debug! output. Closes #21891
* | Auto merge of #21881 - pyfisch:keyboard-types, r=paulrougetbors-servo2018-10-176-875/+179
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use keyboard-types crate Have embedders send DOM keys to servo and use a strongly typed KeyboardEvent from the W3C UI Events spec. All keyboard handling now uses the new types. Introduce a ShortcutMatcher to recognize key bindings. Shortcuts are now recognized in a uniform way. Updated the winit port. Updated webdriver integration. part of #20331 What this PR does: * allow the use non-ASCII keyboards for text input * decouple keyboard event "key" from "code" (key meaning vs location) What this PR does not do: * completely improve keyboard events send from winit and webdriver * add support for CompositionEvent or IME Notes: * The winit embedder does not send keyup events for printable keys (this is a regression) * keyboard-types is on crates.io because I believe it to be useful outside of servo. If you prefer I can add a copy in this repo. <!-- 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/21881) <!-- Reviewable:end -->
| * Minor keyboard updatesPyfisch2018-10-133-98/+31
| | | | | | | | | | | | Support combined character input from winit. Make use of utility methods from keyboard-types. Remove prinatable attribute of KeyboardEvent.
| * Use keyboard-types cratePyfisch2018-10-076-838/+209
| | | | | | | | | | | | | | | | | | | | | | | | | | Have embedders send DOM keys to servo and use a strongly typed KeyboardEvent from the W3C UI Events spec. All keyboard handling now uses the new types. Introduce a ShortcutMatcher to recognize key bindings. Shortcuts are now recognized in a uniform way. Updated the winit port. Updated webdriver integration. part of #20331
* | Auto merge of #21959 - servo:webgl, r=jdmbors-servo2018-10-162-1/+6
|\ \ | | | | | | | | | | | | | | | | | | | | | Fix a couple of Drop implementations for WebGL objects <!-- 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/21959) <!-- Reviewable:end -->
| * | Remove assertion in Drop for WebGLBufferAnthony Ramine2018-10-161-1/+0
| | |
| * | Implement Drop for WebGLRenderbufferAnthony Ramine2018-10-161-0/+6
| | |
* | | Auto merge of #21882 - dguenther:update-document-open, r=noxbors-servo2018-10-162-100/+57
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update document.open to latest spec <!-- Please describe your changes on the following line: --> This is one of my first contributions, so I might need some direction cleaning it up -- I ran web-platform-tests locally, but the suite has several intermittent passes/failures for me. Thanks! Few notes: * I may have been wrong to eliminate all of the resets listed in what was formerly Step 18 (starts with `self.implementation.set(None);`). It's not clear to me that they're still needed or if so, what step they would fall under, but I didn't notice any web platform tests break as a result. * <s>If I'm reading the spec right, there's a discrepancy in the error returned by the three-parameter overload of Document.open between the spec and web-platform-tests/implementations in other browsers. As written, I favored the spec, but it causes one web-platform-test to fail.</s> This has been resolved in https://github.com/whatwg/html/pull/4066 * I'm not 100% certain that tests pass as expected, I had several intermittent failures that disappeared when re-run. --- <!-- 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 #21445 <!-- Either: --> - [x] There are tests for these changes (existing web-platform-tests) <!-- 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. --> <!-- 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/21882) <!-- Reviewable:end -->
| * | Update document.open to latest specDerek Guenther2018-10-152-100/+57
| | |
* | | Auto merge of #21923 - est31:master, r=ferjmbors-servo2018-10-161-3/+22
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 🐈🐈🐈 Implement basic <source> take-first-then-fail algo for HtmlMediaElement The spec has a complicated algorithm for selecting a <source> element among multiple <source> children of a HtmlMediaElement where it loops over all of them, tries each and takes the first where "everything works out". This PR implements a much simpler and restricted approach by just taking the first <source> child, and if that fails, failing altogether, without looking at any further children. This is an improvement over the current status and makes gifv items on imgur playable, although it doesn't mean full <source> support. See it in action: https://i.imgur.com/WoEhYj3.gifv <!-- 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 - [ ] 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. --> <!-- 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/21923) <!-- Reviewable:end -->
| * | Implement basic <source> support for HtmlMediaElementest312018-10-121-3/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The spec has a complicated algorithm for selecting a <source> element among multiple <source> children of a HtmlMediaElement where it loops over all of them, tries each and takes the first where "everything works out". This commit implements a much simpler and restricted approach by just taking the first <source> child, and if that fails, failing altogether, without looking at any further children. This is an improvement over the current status and makes gifv items on imgur playable, although it doesn't mean full <source> support.
* | | Auto merge of #21931 - jdm:reload-images, r=emiliobors-servo2018-10-132-0/+21
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make layout use available image data before querying the image cache. These changes make layout more efficient for any page which contains images that have already loaded, since it does not require synchronously querying the image cache thread for each image present. It also makes reloading a page actually display the images that are already in the image cache. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #21919 - [x] There are tests for these changes <!-- 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/21931) <!-- Reviewable:end -->
| * | | Make layout use available image data before querying the image cache.Josh Matthews2018-10-122-0/+21
| |/ /
* | | Auto merge of #21927 - Eijebong:unicode_serialization, r=jdmbors-servo2018-10-122-2/+2
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove Origin::unicode_serialization Fixes #20701 <!-- 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/21927) <!-- Reviewable:end -->
| * | | Remove Origin::unicode_serializationBastien Orivel2018-10-122-2/+2
| | | | | | | | | | | | | | | | Fixes #20701
* | | | Auto merge of #21922 - Eijebong:storage, r=SimonSapinbors-servo2018-10-122-13/+33
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for StorageEvent.initstorageevent() Fixes #21874 <!-- 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/21922) <!-- Reviewable:end -->
| * | | | Add support for StorageEvent.initstorageevent()Bastien Orivel2018-10-112-13/+33
| |/ / / | | | | | | | | | | | | Fixes #21874
* | | | Auto merge of #21856 - zcorpan:zcorpan/remove-td-th-interfaces, r=jdmbors-servo2018-10-1212-137/+38
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove the HTMLTable{Header,Data}CellElement interfaces Fixes #17222. <!-- Please describe your changes on the following line: --> This removes the `HTMLTableHeaderCellElement` and `HTMLTableDataCellElement` interfaces and uses the `HTMLTableCellElement` interface for both `th` and `td` elements, as per 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 - [X] These changes fix #17222. <!-- 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. --> <!-- 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/21856) <!-- Reviewable:end -->
| * | | Remove the HTMLTable{Header,Data}CellElement interfacesSimon Pieters2018-10-0212-137/+38
| | | | | | | | | | | | | | | | Fixes #17222.
* | | | Auto merge of #21911 - servo:webgl, r=jdmbors-servo2018-10-121-28/+5
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Simplify ctx.drawImage a bit There is no need to swap between RGBA and BGRA twice. <!-- 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/21911) <!-- Reviewable:end -->
| * | | | Simplify ctx.drawImage a bitAnthony Ramine2018-10-111-28/+5
| | | | | | | | | | | | | | | | | | | | There is no need to swap between RGBA and BGRA twice.
* | | | | More accurate names for .started and .stoppedManish Goregaokar2018-10-112-11/+11
| | | | |
* | | | | Allow reusing AudioBuffersFernando Jiménez Moreno2018-10-112-57/+72
| |_|/ / |/| | |
* | | | Auto merge of #21906 - Manishearth:minor-webaudio-fixes, r=ferjmbors-servo2018-10-112-3/+7
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Minor WebAudio fixes Stuff I discovered whilst working on https://github.com/servo/media/pull/148 r? @ferjm <!-- 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/21906) <!-- Reviewable:end -->
| * | | | Increase webaudio sample rate threshold to match firefoxManish Goregaokar2018-10-101-2/+2
| | | | |
| * | | | Handle case when OfflineAudioContext doesn't receive all the buffersManish Goregaokar2018-10-101-1/+5
| |/ / /
* / / / Add task source for media elementchansuke2018-10-105-14/+82
|/ / /
* | | Auto merge of #21877 - servo:webgl, r=jdmbors-servo2018-10-097-216/+171
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Improve some byte-swap and premultiply operations <!-- 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/21877) <!-- Reviewable:end -->
| * | | Share some code between 2D canvas and WebGLAnthony Ramine2018-10-093-64/+27
| | | |
| * | | Add a couple of bug linksAnthony Ramine2018-10-081-0/+2
| | | |
| * | | Avoid ctx.getImageData in canvas.toDataURLAnthony Ramine2018-10-082-22/+29
| | | |
| * | | Abstract some stuff common to ctx.getImageData and ctx.putImageDataAnthony Ramine2018-10-081-119/+80
| | | |
| * | | Handle some transparent black cases in ctx.getImageDataAnthony Ramine2018-10-072-33/+40
| | | |
| * | | Align ctx.createImageData and ctx.getImageData with the specAnthony Ramine2018-10-063-54/+36
| | | |
| * | | Avoid copying pixels in ctx.putImageData sometimesAnthony Ramine2018-10-064-35/+43
| | | |
| * | | Introduce ImageData::get_rectAnthony Ramine2018-10-062-10/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | We use that to send only the pixels that will be actually drawn to the canvas thread in CanvasRenderingContext2d::PutImageData. We also make the canvas thread byte swap and premultiply colours in-place.
| * | | Merge some byte swap/premultiply functions in their own crateAnthony Ramine2018-10-064-14/+13
| | | |
* | | | Auto merge of #21543 - ceyusa:wip-player, r=<try>bors-servo2018-10-0911-66/+384
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add <audio> and <video> player backends These patches enables audio and video playing inside Servo. It is bit hackish way to enable it, thus the purpose of this pull request is for an early request for comments. It is tested with the current servo-media GStreamer backend in Linux. ~~The produced layout is not correct, since the elements after the video seems to be stacked behind, and the same with the scrolling bars.~~ ~~There is no JavaScript interface yet~~, neither controls. --- <!-- 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 #6711 <!-- 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/21543) <!-- Reviewable:end -->
| * | | | Make sure we do not skip the HaveMetadata state. Fixes a bunch of testsFernando Jiménez Moreno2018-10-081-0/+5
| | | | |
| * | | | Handle Player errorsFernando Jiménez Moreno2018-10-082-15/+28
| | | | |
| * | | | Update servo-media: handle decoder errors and use safer/nicer player APIFernando Jiménez Moreno2018-10-082-6/+4
| | | | |
| * | | | Move player setup to common path, deal with setup error and clean debug msgsFernando Jiménez Moreno2018-10-081-12/+10
| | | | |
| * | | | Network EOF does't imply media processing EOSVíctor Manuel Jáquez Leal2018-10-081-27/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since media processing is highly asynchronous, there is no need to match one event with the other. Then error handling is done when the player emits the EOS event. The have_metadata attribute is not required anymore.
| * | | | Fix HAVE_METADATA and HAVE_CURRENT_DATA state transitionsFernando Jiménez Moreno2018-10-081-37/+46
| | | | |