aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_traits/script_msg.rs
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Add support for fullscreen #10102Jansen Jan2016-12-091-0/+2
|
* Auto merge of #14367 - mrobinson:scroll-fragment-point, r=pcwaltonbors-servo2016-12-061-1/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reimplement scrolling to fragments <!-- 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 - [x] These changes fix #13736, #10753 (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. --> This reimplemntation of the feature uses ScrollRootIds to scroll particular scrollable areas of the page. Fixes #13736. Fixes #10753. <!-- 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/14367) <!-- Reviewable:end -->
| * Reimplement scrolling to fragmentsMartin Robinson2016-11-291-1/+2
| | | | | | | | | | | | | | | | This reimplemntation of the feature uses ScrollRootIds to scroll particular scrollable areas of the page. Fixes #13736. Fixes #10753.
* | Implement synchronous about:blank loading.Ms2ger2016-11-301-1/+5
|/ | | | Based on initial work by jdm in <https://github.com/servo/servo/pull/8600>.
* Report errors using the top-level frame id rather than the pipeline id.Alan Jeffrey2016-11-171-3/+3
|
* Urlmageddon: Use refcounted urls more often.Emilio Cobos Álvarez2016-11-171-10/+10
|
* Storage notifications routed via the constellation.Alan Jeffrey2016-11-151-0/+4
|
* Indicate items in doc comments as code-like.Corey Farwell2016-11-081-1/+1
|
* Lookup frames by frame_id, not pipeline_id.Alan Jeffrey2016-11-031-4/+3
|
* Move LoadData to script_traits.Ms2ger2016-10-211-1/+2
|
* Remove concept of Layers from ServoMartin Robinson2016-10-211-2/+1
| | | | | | | | Layers were a feature of the legacy drawing path. If we re-add them at some point, it probably makes more sense to make them a product of display list inspection. This change also remove a bunch of dead painting code.
* Remove old rendering backend.Glenn Watson2016-10-181-2/+0
| | | | | | | | | | | | | | This removes paint threads, rust-layers dependency, and changes optional webrender types to be required. The use_webrender option has been removed, however I've left the "-w" command line option in place so that wpt runner can continue to pass that. Once it's removed from there we can also remove the -w option. Once this stage is complete, it should be fine to change the display list building code to generate webrender display lists directly and avoid the conversion step.
* Send touch events to root pipeline, and allow forwarding to iframes.Glenn Watson2016-10-081-6/+3
| | | | | | | | | Instead of letting the compositor try to find the correct scroll layer for a touch event, switch touch events to work the same way that mouse events do. Touch events are now dispatched to the root pipeline, and then forwarded to child iframes as required.
* Remove ScopeThings::pipeline_idAnthony Ramine2016-10-041-2/+0
| | | | It can be retrieved through its init field.
* Replace current session entry for reloadsConnor Brewster2016-09-191-2/+3
|
* Auto merge of #12910 - creativcoder:swsender, r=jdmbors-servo2016-09-151-1/+11
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement postMessage for ServiceWorkers <!-- Please describe your changes on the following line: --> Fixes #12773 r? @jdm Changes: * Implements `postMessage` on `ServiceWorker` object. * Removes unused channels from sw and their scopes. * Fixes a crash when calling `scope.script_chan()` in sw-scopes event handling. --- <!-- 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 #12773 <!-- Either: --> - [X] There are tests for these changes at `tests/html/service-worker` <!-- 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/12910) <!-- Reviewable:end -->
| * make structured clone an enumRahul Sharma2016-09-151-1/+1
| |
| * store senders instead of buffering messagesRahul Sharma2016-09-071-5/+8
| |
| * Make service workers talk to their serviceworkerglobalscopesRahul Sharma2016-09-071-0/+7
| |
* | Excise SubpageId and use only PipelineIdsAneesh Agrawal2016-09-131-2/+3
|/ | | | | | | SubpageId was originally introduced in 2013 to help iframes keep track of their associated (children) pipelines. However, since each pipeline already has a PipelineId, and those are unique, those are sufficient to keep track of children.
* Remove #[serde(bound = "")] attributesDavid Tolnay2016-08-121-1/+0
| | | | These were fixed in serde_codegen 0.8.0 by serde-rs/serde#456.
* Implement history.lengthConnor Brewster2016-08-031-0/+2
| | | | | Add full frame tree iter to reduce code duplication Add FrameId field to the Frame struct.
* Auto merge of #12563 - emilio:stylo, r=bholley,jdm,pcwaltonbors-servo2016-07-271-5/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | stylo: Improve restyling performance This commit adds hooks to the Servo style traversal to avoid traversing all the DOM for every restyle. Additionally it changes the behavior of the dirty flag to be propagated top down, to prevent extra overhead when an element is dirtied. This commit doesn't aim to change the behavior on Servo just yet, since Servo does extra job when dirtying the node related with DOM revision counters that might be necessary. CC @asajeffrey for the DOM revision counters stuff. When a node is dirty, do all its descendants really need to increment the revision counter, or is this an unintended effect? My intuition is that this is hurting performance quite a lot for servo. r? @bholley <!-- 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 <!-- Either: --> - [x] These changes do not require tests because no geckolib tests 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="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12563) <!-- Reviewable:end -->
| * script: Unify LoadComplete and DOMLoad messages.Emilio Cobos Álvarez2016-07-271-5/+2
| | | | | | | | | | See the PR in which this commit landed and also https://github.com/servo/servo/pull/6415#issuecomment-122294169
* | Update Rust to 1.12.0-nightly (9316ae515 2016-07-24)Eduard Burtescu2016-07-261-0/+1
|/
* Implement beginnings of joint session historyConnor Brewster2016-07-211-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix backward navigation make use of history iterator Add frame iterator add different back logic cleanup navigation_info Add extra explanation for iter logic Remove forward history on full frame tree Rename navigation to traversal where appropriate check full tree for can go back/forward simplify frame iter logic remove FrameIterator cleanup history iter reduce amount of vec allocations removed extra parenthesis Remove history iterator cleanup after rebasing avoid recursive vec allocation remove full_frame_tree remove_forward_history_in_frame_tree -> clear_joint_session_future
* Auto merge of #12426 - asajeffrey:mozbrowser-event-targets, r=SimonSapinbors-servo2016-07-201-2/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow window elements as well as iframes to the the target of mozbrowser events <!-- Please describe your changes on the following line: --> Allow mozbrowser events, in particular mozbrowsererror events, to target a window. Needed for https://github.com/browserhtml/browserhtml/issues/1182 --- <!-- 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 #12420 - [X] These changes do not require tests because we're not testing our issue reporting system, which this is intended for. <!-- 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/12426) <!-- Reviewable:end -->
| * Allow window elements as well as iframes to the the target of mozbrowser events.Alan Jeffrey2016-07-181-2/+3
| |
* | make resource_thread talk to sw-managerRahul Sharma2016-07-181-6/+10
| |
* | Integrate service worker manager threadRahul Sharma2016-07-161-0/+45
|/
* Sent log messages to the constellation.Alan Jeffrey2016-07-151-0/+15
|
* Make textinput handle actual key values. Don't restrict character values to ↵Josh Matthews2016-07-061-1/+1
| | | | a single byte.
* Associate logical and physical keypresses together to support non-QWERTY ↵Josh Matthews2016-07-051-1/+1
| | | | keyboards.
* Implement non-visible pipeline and iframe visibility methodsjmr02016-06-151-0/+4
|
* Avoid deadlock when shutting down.Alan Jeffrey2016-06-031-0/+2
|
* Remove the script listener thread (fixes #11345).Ms2ger2016-05-251-2/+31
| | | | | | | | | | | | | We needed a separate thread in the chrome process because communication to the compositor is done through a trait object, and cross-process virtual calls are forbidden. Also, the fact that these messages are ultimately handled by the compositor is an implementation detail; conceptually, the relevant constellation is supposed to handle these messages. So instead, the script thread will now send the messages to the constellation, which will ask the compositor to handle them.
* Implement alert dialogsConnor Brewster2016-05-031-0/+2
| | | | | | | | | | | | | | | | | | | | Fixed conflict Fixed merge issue Finished implementation Disable tinyfiledialogs on Windows addressed comments Use ancestor's SubpageId Move display alert from method to function Add extra test for nested iframes Addressed comments Updated tinyfiledialogs
* Added a dedicated panic channel.Alan Jeffrey2016-04-191-17/+1
|
* Added panic message to failures.Alan Jeffrey2016-04-131-0/+12
|