aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_traits/script_msg.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* move msg to embedder_traits, use in script, handle send error in embedderGregory Terzian2018-05-231-35/+4
|
* Cleanup constellation debug messagesConnor Brewster2018-05-181-0/+71
|
* Auto merge of #20615 - KiChjang:window-indexed-getter, r=emiliobors-servo2018-05-171-0/+2
|\ | | | | | | | | | | | | | | | | | | | | Implement window indexed getter Fixes #4589. <!-- 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/20615) <!-- Reviewable:end -->
| * Add a new RPC call for getting a child browsing context IDKeith Yeung2018-04-301-0/+2
| |
* | Auto merge of #20329 - gterzian:before_unload, r=cbrewsterbors-servo2018-05-071-0/+2
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement beforeunload event and infrastructure <!-- Please describe your changes on the following line: --> Implementation of: 1. https://html.spec.whatwg.org/multipage/#prompt-to-unload-a-document, and 2. https://html.spec.whatwg.org/multipage/#unload-a-document --- <!-- 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 #10787 and fix #20485 and fix #20588 and fix #20496 (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/20329) <!-- Reviewable:end -->
| * | beforeunload and unload infrastructureGregory Terzian2018-05-051-0/+2
| |/
* | Auto merge of #20743 - paulrouget:rmFwdEvent, r=emiliobors-servo2018-05-031-3/+0
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove useless message <!-- 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/20743) <!-- Reviewable:end -->
| * Remove useless messagePaul Rouget2018-05-031-3/+0
| |
* | Auto merge of #20671 - cbrewster:history_url, r=asajeffreybors-servo2018-04-301-2/+2
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make session history aware of URLs <!-- 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 build-geckolib` 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/20671) <!-- Reviewable:end -->
| * Make session history aware of URLsConnor Brewster2018-04-241-2/+2
| |
* | Notify the embedder when it should display or hide an IMEFabrice Desré2018-04-211-1/+5
|/
* Implement history stateConnor Brewster2018-04-161-1/+5
|
* Add unique canvas IDs to all canvas operations.Brody Eastwood2018-04-021-2/+2
|
* Reduce the number of calls to the embedder by grouping the screen and window ↵Paul Rouget2018-03-221-2/+2
| | | | coordinates into one structure
* alias some euclid typesPaul Rouget2018-03-161-7/+8
|
* Use typed coordinates.Paul Rouget2018-03-161-7/+7
| | | | | | | | 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).
* remove mozbrowser codePaul Rouget2018-02-131-5/+2
|
* style: Move cursor property out of makoIgor Gutorov2018-01-201-2/+2
|
* Revert "Send IPC receiver for canvas as part of CreateCanvasPaintThread message"Josh Matthews2017-12-181-1/+1
| | | | This reverts commit a504c9358b70fcf02bd8f2067fcbd17d16c89439.
* Send IPC receiver for canvas as part of CreateCanvasPaintThread messagetigercosmos2017-12-161-1/+1
|
* Use FetchCanceller for document loadsManish Goregaokar2017-11-221-2/+2
|
* Enable screen.availHeight/availWidth/Height/WidthShing Lyu2017-11-131-0/+4
|
* Auto merge of #18704 - mrobinson:wr-hit-testing, r=jdm,glennw,mbrubeckbors-servo2017-10-171-3/+0
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Switch to using WebRender hit testing This trades quite a bit of complicated code in Servo for few more messages and a significant performance improvement. In particular, WebRender can search the entire display list at once instead of ping-ponging down the pipeline tree. This allows us to send mouse events to the correct pipeline immediately. <!-- 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 - [x] These changes do not require tests because they should not change behavior. <!-- 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/18704) <!-- Reviewable:end -->
| * Switch to using WebRender hit testingMartin Robinson2017-10-171-3/+0
| | | | | | | | | | | | | | | | This trades quite a bit of complicated code in Servo for few more messages and a significant performance improvement. In particular, WebRender can search the entire display list at once instead of ping-ponging down the pipeline tree. This allows us to send mouse events to the correct pipeline immediately.
* | Fix commonmark Markdown warnings in docs, part 1Matt Brubeck2017-10-171-1/+1
|/ | | | | | | | Fixes warnings from rust-lang/rust#44229 when `--enable-commonmark` is passed to rustdoc. This is mostly a global find-and-replace for bare URIs on lines by themselves in doc comments.
* Auto merge of #17083 - danielj41:javascript-url-global-3, r=jdmbors-servo2017-09-091-0/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "javascript:" urls: execute in correct global scope <!-- Please describe your changes on the following line: --> #### Summary This pull request makes `javascript:` urls execute in the correct global scope. #### Example ```html <script> var x = 4; </script> <!-- this branch: logs "4" --> <!-- master: undefined variable error --> <a href="javascript:console.log(x)">link</a> ``` #### Questions I'm new to servo and rust, so I'm unsure about these changes. In particular: * What's the appropriate place to evaluate the js? * I moved it to `handle_navigate`, but I'm not sure if this will catch all occurrences of `javascript:` urls. I also don't know if this will execute in the correct thread and the correct window. * What should I do with the result of the js evaluation? * I just ignored it. The previous behavior displayed it as the content of a new page load. --- <!-- 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 #15147, #16718 <!-- Either: --> - [x] There are tests for these changes <!-- 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/17083) <!-- Reviewable:end -->
| * "javascript:" urls: clean up after aborting a page loadDaniel Johnson2017-08-271-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: After aborting on a 204 or 205 status code, you could no longer follow links on the page. Cause: `constellation.rs` ignores new LoadUrl requests since the aborted one is in its `pending_changes` list. Solution: Send a message to constellation that lets it clean up its `pending_changes` list.
* | order derivable traits listsClément DAVID2017-08-231-2/+2
|/ | | | | | Ignoring : - **generated**.rs - python/tidy/servo_tidy_tests/rust_tidy.rs
* Wait for actual paint before setting paint related metricsFernando Jiménez Moreno2017-08-221-0/+4
|
* Revert "Auto merge of #18114 - emilio:revert-webgl-refactor, r=nox"Anthony Ramine2017-08-161-7/+1
| | | | | This reverts commit 4d10d39e8fe841c5fe2ac58da2daaa13c10c140e, reversing changes made to ee94e2b7c0bd327abe8f9545b2a1f792f67a2bdd.
* Revert "Auto merge of #17891 - MortimerGoro:webgl_move, r=glennw,emilio"Emilio Cobos Álvarez2017-08-161-1/+7
| | | | | This reverts commit 90f55ea4580e2a15f7d70d0491444f18b972d450, reversing changes made to 2e60b27a2186a8cba4b952960155dfcf3f47d7db.
* Improve WebGL architecture.Imanol Fernandez2017-08-151-7/+1
|
* make use of ScriptToConstellationChanPaul Rouget2017-08-151-19/+19
|
* Upgrade to the latest version of WebRenderMartin Robinson2017-07-131-1/+1
|
* Bump euclid to 0.14.Nicolas Silva2017-06-141-2/+1
|
* Removed root browsing context from constellation.Alan Jeffrey2017-06-071-3/+2
|
* Redirect document loads manuallyNikhil Shagrithaya2017-05-311-0/+4
|
* Webdriver uses browsing context ids rather than pipeline ids.Alan Jeffrey2017-05-251-3/+3
|
* Added a TopLevelBrowsingContextId type.Alan Jeffrey2017-05-221-2/+2
|
* Renamed constellation::Frame to constellation::BrowsingContext.Alan Jeffrey2017-05-151-8/+8
|
* Make non-initial about:blank loads asynchronousConnor Brewster2017-05-121-4/+4
| | | | | | | | | | | | | | | Don't update iframe pipeline until load completes To preserve the previous functionality of delaying load events when a new navigation is triggered, pending pipeline id represents the current pending load. The load event is only fired if the load message's pipeline id matches the pending pipeline id. Track frame size on Frame instead of Pipeline Disabled matchMedia test Track creator pipeline id
* Eliminate ScrollRootIdMartin Robinson2017-04-201-2/+2
| | | | | | | Just use WebRender's ClipId directly. This will allow us to create and use ReferenceFrames in the future, if we need to do that. It will also make it easier to have Servo responsible for creating the root scrolling area, which will allow removing some old hacks in the future.
* Implement dissimilar-origin window.parent and window.top.Alan Jeffrey2017-03-171-1/+5
|
* Implement dissimilar-origin postMessage.Alan Jeffrey2017-03-151-0/+3
|
* Introduce CSSPixel as a replacement for ViewportPx and PagePx.Glenn Watson2017-02-241-2/+2
|
* Revert "Revert "frame-resize refactor""Emilio Cobos Álvarez2017-01-241-1/+4
| | | | This reverts commit 6ead3952a3dd745da79ac8b02fc18f2f58f6e0ae.
* Revert "frame-resize refactor"Matt Brubeck2017-01-231-4/+1
| | | | This reverts commit bca565a1a3c7f09724736e844560dbc121248612.
* frame-resize refactorNikhil Shagrithaya2017-01-231-1/+4
|
* Implement browsing context discarding.Alan Jeffrey2017-01-051-1/+2
|
* Rustfmt script_traits.Ms2ger2017-01-031-5/+4
|