aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_traits/lib.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix media session action handlingFernando Jiménez Moreno2019-11-201-2/+2
|
* Format code and fix rebase errorsFernando Jiménez Moreno2019-11-201-0/+1
|
* Move active media session logic to constellationFernando Jiménez Moreno2019-11-201-1/+1
|
* Send MediaSessionAction from AndroidFernando Jiménez Moreno2019-11-201-0/+17
|
* Introduce embedder MediaSessionEvent and move active session to ServoFernando Jiménez Moreno2019-11-201-31/+0
|
* Register media instance with session and prepare communication with embedderFernando Jiménez Moreno2019-11-201-0/+31
|
* MediaSession: update action handler algorithmFernando Jiménez Moreno2019-11-201-1/+1
|
* MediaSessionAction message from embedder to script threadFernando Jiménez Moreno2019-11-201-0/+34
|
* Auto merge of #24664 - gterzian:fix_port_transfer, r=jdmbors-servo2019-11-181-2/+6
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix loophole in messageport transfer <!-- 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: --> - [ ] `./mach build -d` does not report any errors - [ ] `./mach test-tidy` does not report any errors - [ ] These changes fix #24600 (GitHub issue number if applicable) <!-- Either: --> - [ ] 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. -->
| * fix complete messageport transferGregory Terzian2019-11-151-2/+6
| |
* | Implement srcdoc support for iframes.jaymodi982019-11-121-0/+4
| |
* | Ensure layout/script always have a correct viewport size when a new pipeline ↵Josh Matthews2019-11-061-1/+3
|/ | | | is created.
* Auto merge of #24492 - gterzian:update_timer_scheduler, r=asajeffreybors-servo2019-10-211-7/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update timer scheduler to use crossbeam <!-- Please describe your changes on the following line: --> It seems time to update the timer scheduler implementation to use crossbeam constructs. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [ ] `./mach build -d` does not report any errors - [ ] `./mach test-tidy` does not report any errors - [ ] These changes fix #___ (GitHub issue number if applicable) <!-- Either: --> - [ ] 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. -->
| * update timer scheduler to use crossbeamGregory Terzian2019-10-201-7/+2
| |
* | continue messageport, transferable, postmessage optionsGregory Terzian2019-10-191-3/+38
|/
* Implement pointerMove webdriver actionGeorge Roman2019-08-221-0/+2
|
* Implement TakeElementScreenshot WebDriver commandGeorge Roman2019-08-201-6/+7
|
* Auto merge of #23988 - georgeroman:implement_pointer_up_and_down_actions, r=jdmbors-servo2019-08-181-0/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement pointerDown and pointerUp webdriver actions <!-- 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 <!-- 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/23988) <!-- Reviewable:end -->
| * Implement pointerDown and pointerUp webdriver actionsGeorge Roman2019-08-161-0/+2
| |
* | restructure content process shutdown ack with threaded sender, without layoutGregory Terzian2019-08-171-3/+1
|/
* Initial actions support in WebDriverGeorge Roman2019-08-101-0/+2
|
* Remove extra webgl message pumping thread.Josh Matthews2019-07-251-1/+3
|
* Update euclid.Emilio Cobos Álvarez2019-07-231-8/+14
| | | | | | | | There are a few canvas2d-related dependencies that haven't updated, but they only use euclid internally so that's not blocking landing the rest of the changes. Given the size of this patch, I think it's useful to get this landed as-is.
* Auto merge of #23368 - gterzian:clean_up_navigation, r=asajeffreybors-servo2019-07-181-5/+29
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clean-up navigation <!-- Please describe your changes on the following line: --> 1. Navigation as a result of following a hyperlink should be done in a task: https://html.spec.whatwg.org/multipage/links.html#following-hyperlinks:dom-manipulation-task-source 2. The javascript url navigation should also be done in a task: https://html.spec.whatwg.org/multipage/browsing-the-web.html#navigating-across-documents:dom-manipulation-task-source 3. In `window.load_url`, it seems there is no need to send a message to the script-thread(the entirety of `load_url` should instead be done in a task when appropriate), so we can just do that last part "sync" by calling a method on the script, which will send a message to the constellation(for the parallel navigation steps), or queue task(for the JS navigation), as appropriate. 4. Separate the "normal" navigation flow from the handling of "navigate an iframe" message from constellation, since doing everything in one method as was previously done with `handle_navigate`, is confusing. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [ ] `./mach build -d` does not report any errors - [ ] `./mach test-tidy` does not report any errors - [ ] These changes fix #___ (GitHub issue number if applicable) <!-- Either: --> - [ ] 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/23368) <!-- Reviewable:end -->
| * clean-up navigationGregory Terzian2019-07-181-5/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | security: check target and source origin before executing JS url implement replacement-enabled flag as a HistoryEntryReplacement enum add source origin string on loaddata add LoadOrigin iframe: remove optional load-data auxiliaries: add load-data into info constellation: remove url from Pipeline::new check load origin: link to whatwg issue switch loadorigin toplevel to constellation
* | WebRender units are no longer reexported.Patrick Walton2019-07-091-3/+2
| |
* | Media crateFernando Jiménez Moreno2019-07-041-1/+1
| |
* | Add media (WindowGLContext) module in canvas_traitVíctor Manuel Jáquez Leal2019-07-041-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This module adds a structure (WindowGLContext) which holds the OpenGL parameters that are going to be used by servo-media player to render video frames using OpenGL. In order to fill this structure, three new methods were added to WindowMethods trait. In this patch only the Glutin-based implementation provides a simple boilerplate. The WindowGLContext is created in the entry point of libservo, when the application window is created, and later passed to the constellation, the pipeline and to the window element in dom, thus htmlmediaelement has a mean to obtain these parameters via its window.
* | Use webxr IPC to get a WebXR device registry to each script threadAlan Jeffrey2019-07-031-0/+2
| |
* | Script: removed a few opts::get()oneturkmen2019-06-261-0/+14
| |
* | Fix some new warningsSimon Sapin2019-06-221-1/+1
|/
* Implement WheelEvent InterfaceRobert Snakard2019-06-091-0/+26
| | | | | | | | | | | Note: The WheelEvent interface supports rotation in all 3 spatial dimensions. This implementation only supports two due to limitations in the Glutin compositor. The wheelevent interface is a dom interface that triggers for any attached device that can rotate in one or more spatial dimensions. Traditionally this is the mouse wheel though other devices could be used as well. E.g. the trackball on a trackball mouse.
* Remove unused code from script* cratesest312019-06-021-4/+0
|
* Implement MouseEvent buttons attributeGeorge Roman2019-05-161-5/+12
|
* Auto merge of #23090 - miller-time:nav-fetch-referrer, r=gterzianbors-servo2019-04-251-4/+5
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add referrer to navigation fetch request <!-- Please describe your changes on the following line: --> Implement step 13 of [following hyperlinks](https://html.spec.whatwg.org/#following-hyperlinks-2) and step 14.3 of [window open](https://html.spec.whatwg.org/#window-open-steps), as well as other referrer- and fetch-related updates. --- <!-- 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 #22890 (GitHub issue number if applicable) <!-- Either: --> - [ ] 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/23090) <!-- Reviewable:end -->
| * set referrer in window.load_urlRussell Cousineau2019-04-191-4/+5
| | | | | | | | | | | | | | | | - this conforms to follow-hyperlinks spec step 13 - this conforms to window-open spec step 14.3 - replace uses of `referrer_url` with `referrer` - in Request class, change "no-referrer" to "" - set websocket fetch referrer to "no-referrer"
* | Measure layout queries blocked by ongoing layoutPhilipp Albrecht2019-04-131-0/+3
|/
* Bug: #22853 - Make Window::set_fullscreen pass a non-None value when ↵Kamal Umudlu2019-04-011-0/+6
| | | | | | | | | | | | | | | | | | | | | | entering fullscreen is fixed and SetFullscreenState in exit_fullscreen changed to False Added patch for bug:22853 Added implementation to exit from fullscreen mode by pressing ESC button Added patch that supports to exit from fullscreen mode by pressing ESC Deleted patch files Added all requested changes on project Removed the loop over self.pending_changes in switch_fullscreen_mode function Bug #22853 - Make Window::set_fullscreen pass a non-None value when entering fullscreen is fixed and SetFullscreenState in exit_fullscreen changed to False Added missing bracket in constellation.rs file to fix build issue Bug: #22853 --> Make Window::set_fullscreen pass a non-None value when entering fullscreen is fixed and SetFullscreenState in exit_fullscreen changed to False
* bound sampler bufferGregory Terzian2019-03-311-2/+2
|
* Support multiprocess in sampling profiler.Josh Matthews2019-03-261-0/+7
|
* Ensure iframe's contentWindow is updated when traversing the session history.Josh Matthews2019-03-071-0/+1
|
* Fix servo build and rustfmt recent changes.Emilio Cobos Álvarez2019-01-201-2/+2
| | | | | We need to introduce another Cursor enum that is specific to embedder_traits and that layout converts to to avoid dependency hell.
* Suppress iframe size messages from layout that include unchanged sizes.Josh Matthews2019-01-141-1/+3
|
* Provide the source window as part of postMessage events.Josh Matthews2019-01-071-2/+13
|
* Rustfmt has changed its default style :/Simon Sapin2018-12-281-1/+1
|
* Auto merge of #22121 - gterzian:remove_constellation_block_in_navigation, ↵bors-servo2018-12-261-0/+8
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r=paulrouget Remove sync constellation -> embedder communication <!-- 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: --> - [ ] `./mach build -d` does not report any errors - [ ] `./mach test-tidy` does not report any errors - [ ] These changes fix #22042 (github issue number if applicable). <!-- Either: --> - [ ] 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/22121) <!-- Reviewable:end -->
| * implement windowproxy "delay-load-event-mode", and partially document ↵Gregory Terzian2018-12-231-0/+5
| | | | | | | | "completely-loaded"
| * constellation: restructure navigation, remove sync commGregory Terzian2018-12-231-0/+3
| |
* | style: Make Servo use a single thread-pool for layout-related tasks per-process.Emilio Cobos Álvarez2018-12-231-2/+0
|/ | | | | | Instead of per-document. This also allows to reuse this thread-pool if needed for other stuff, like parallel CSS parsing (#22478), and to share more code with Gecko, which is always nice.
* Initial window sizes are mandatory.Josh Matthews2018-12-141-2/+2
|