aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_traits/lib.rs
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Update webrenderManish Goregaokar2018-11-271-2/+2
|
* introduce a background-hang-monitor:Gregory Terzian2018-11-261-0/+3
| | | | | Mac-Os implementation of a thread sampler, Linux and Windows skeleton implementations.
* Auto merge of #22225 - servo:webgl, r=emiliobors-servo2018-11-211-1/+1
|\ | | | | | | | | | | | | | | Send an IpcSharedMemory in tex_image_2d and tex_sub_image_2d <!-- 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/22225) <!-- Reviewable:end -->
| * Move PixelFormat to the pixels crateAnthony Ramine2018-11-201-1/+1
| |
* | Auto merge of #22224 - pyfisch:composition-webdriver, r=noxbors-servo2018-11-201-2/+5
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Forward WebDriver CompositionEvent Dispatch composition events in JS. Insert characters from composition events to text input. CompositionEvents currently can only be created by WebDriver and not by embedders. <!-- 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: --> - [ ] 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/22224) <!-- Reviewable:end -->
| * Forward WebDriver CompositionEventPyfisch2018-11-191-2/+5
| | | | | | | | | | | | | | | | Dispatch composition events in JS. Insert characters from composition events to text input. CompositionEvents currently can only be created by WebDriver and not by embedders.
* | Update MPL license to https (part 4)Jan Andre Ikenmeyer2018-11-191-1/+1
|/
* Update crossbeam-channel to 0.3Bastien Orivel2018-11-181-1/+7
|
* `cargo fix --edition-idioms`Simon Sapin2018-11-081-25/+2
|
* Remove rustc-serialize from the dependenciesBastien Orivel2018-11-071-1/+0
|
* Reorder importsPyfisch2018-11-061-8/+12
|
* Sort `use` statementsSimon Sapin2018-11-061-1/+1
|
* `cargo fix --edition`Simon Sapin2018-11-061-3/+3
|
* Update hyper to 0.12Bastien Orivel2018-11-011-5/+6
|
* Add lots of derived Debug implsAlan Jeffrey2018-10-291-17/+17
|
* Auto merge of #21881 - pyfisch:keyboard-types, r=paulrougetbors-servo2018-10-171-5/+7
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 -->
| * Use keyboard-types cratePyfisch2018-10-071-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Rustfmt and make tidy happyFernando Jiménez Moreno2018-10-081-3/+1
| |
* | Provide webrender_api::RenderApiSender to ScriptThread and DOM WindowVíctor Manuel Jáquez Leal2018-10-081-1/+5
|/ | | | | | | | | | | This will allow the HTMLMediaElement later to get a handle to the RenderApi for rendering video frames. At a later time, all media handling should be moved to its own thread/process that is communicated with via IPC. At that point this can be removed again. Original-patch-by: Sebastian Dröge <sebastian@centricular.com>
* Auto merge of #21693 - chansuke:format_script_traits, r=jdmbors-servo2018-09-121-27/+68
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Format components/script_traits <!-- 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 part of #21373. - [x] These changes do not require tests because format the code only. <!-- 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/21693) <!-- Reviewable:end -->
| * Format components/script_traitschansuke2018-09-131-27/+68
| |
* | Replace mpsc with crossbeam/servo channel, update ipc-channelSimon Sapin2018-09-121-7/+2
|/ | | | Co-authored-by: Gregory Terzian <gterzian@users.noreply.github.com>
* Refactor embedder NewBrowser flowGregory Terzian2018-08-111-1/+1
|
* implement opener, disowningGregory Terzian2018-08-111-0/+4
|
* implement window.open, create auxiliary browsing contextGregory Terzian2018-08-111-0/+13
|
* move msg to embedder_traits, use in script, handle send error in embedderGregory Terzian2018-05-231-0/+4
|
* Cleanup constellation debug messagesConnor Brewster2018-05-181-1/+29
|
* beforeunload and unload infrastructureGregory Terzian2018-05-051-0/+3
|
* Make session history aware of URLsConnor Brewster2018-04-241-3/+3
|
* Remove insaccessible history statesConnor Brewster2018-04-171-0/+3
|
* Implement history stateConnor Brewster2018-04-161-2/+5
|
* alias some euclid typesPaul Rouget2018-03-161-2/+2
|
* Use typed coordinates.Paul Rouget2018-03-161-2/+2
| | | | | | | | We use Size2D and Point2D across compositing, constellation and script, losing the type of pixels we use (DevicePixel, DeviceIndepententPixel or CSSPixel) along the way, which might lead to bugs like window.outerHeight not taking into account the page zoom (using DeviceIndepententPixel instead of CSSPixel).
* constellation: Make setting up the WebGL state fallible.Emilio Cobos Álvarez2018-03-091-2/+2
| | | | | | | | | | This fixes a regression caused by the glutin update. We now are creating EGL contexts in Linux Wayland, instead of X context, so the GLContextFactory assumption of one GL back-end per platform is broken. This just works around it, for now, but in general I think not relying on available WebGL state is a good thing, and we do that already for WebVR anyway.