aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_task.rs
Commit message (Collapse)AuthorAgeFilesLines
* Move ScriptMsg from msg crate into script_traitsTomas Cernaj2015-12-091-3/+2
|
* Moved WorkerId type to devtools_traitsFlorian Strübe2015-12-071-2/+2
|
* move FocusType enum to the script crateRoman Klauke2015-12-061-2/+2
| | | | | | | This commit moves the FocusType enum to the script crate and replaces all usages with the new `usage`. Fixes #8840
* Auto merge of #8812 - jitendra29:support-withCredentials, r=jdmbors-servo2015-12-051-0/+1
|\ | | | | | | | | | | | | | | | | | | | | | | M1504: Implement basic support for withCredentials API The pull request includes the following task: * Implemented basic network-level support by adding a member to LoadData that is used by http_loader.rs to conditionally exclude cookies from the HTTP request if the flag is false (default true) <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8812) <!-- Reviewable:end -->
| * implement support for withCredentialsJigesh Mehta2015-12-041-0/+1
| |
* | Create and invoke XML parser for XML documents.ronak2015-12-041-21/+12
| |
* | Introduce abstraction over HTML and XML parsers for parser network listener.Josh Matthews2015-12-041-5/+5
| |
* | Prepare infrastructure for XML parser.jsharda2015-12-041-3/+38
|/
* Minor refactoring of mouse event typesMatt Brubeck2015-12-031-18/+7
| | | | | * Move some types into the `msg` crate so they can be shared more. * Use MouseEventType instead of duplicating it in other enums.
* Dispatch load events for cross origin iframes. Resolves #6672.Josh Matthews2015-11-301-0/+12
|
* Auto merge of #8661 - craftytrickster:8623/some-webdriver-commands, r=jgrahambors-servo2015-11-301-0/+6
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Webdriver - GetWindowSize/IsEnabled/IsSelected Added handlers for https://github.com/servo/servo/issues/8623: GetWindowSize IsEnabled(WebElement) IsSelected(WebElement) I am not sure how to actually verify my webdriver code works, if someone can give advice I would make the necessary changes. Thanks! <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8661) <!-- Reviewable:end -->
| * Removed duplicate webdriver_traits file and added webdriver handler for ↵David Raifaizen2015-11-291-0/+6
| | | | | | | | GetWindowSize, IsSelected and IsEnabled
* | Update string_cache to 0.2.Alan Jeffrey2015-11-251-2/+2
|/ | | | | | | | | | | Updated string_cache, html5ever, xml5ever and selectors in Cargo.toml files and Cargo.lock. Removed references to string_cache_plugin. Import atom! and ns! from string_cache. Replaced ns!("") by ns!(). Replaced ns!(XML) and co by ns!(xml) and co. Replaced atom!(foo) by atom!("foo"). Replaced Atom::from_slice by Atom::from. Replaced atom.as_slice() by &*atom.
* Auto merge of #8622 - frewsxcv:url-plugin, r=SimonSapinbors-servo2015-11-211-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | Implement 'url!(..)' macro https://github.com/servo/rust-url/issues/136 https://github.com/servo/rust-url/pull/137 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8622) <!-- Reviewable:end -->
| * Implement 'url!(..)' macroCorey Farwell2015-11-211-1/+1
| | | | | | | | | | | | https://github.com/servo/rust-url/issues/136 https://github.com/servo/rust-url/pull/137
* | Auto merge of #8633 - rilut:remove-node-is-anchor-element, r=noxbors-servo2015-11-211-2/+3
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove 'Node::is_anchor_element' Should fixes #8631. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8633) <!-- Reviewable:end -->
| * | Remove 'Node::is_anchor_element'Rizky Luthfianto2015-11-211-2/+3
| |/
* | Auto merge of #8627 - rilut:refactor-script, r=Ms2gerbors-servo2015-11-211-3/+2
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | Move SetDOMProxyInformation() call from script_task.rs to script/lib.rs Actually, I'm not sure whether to move `unsafe extern "C" fn shadow_check_callback` from script_task.rs to lib.rs or to keep it there. cc: @wenderen <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8627) <!-- Reviewable:end -->
| * | refactor(script): move SetDOMProxyInformation() call to lib.rsRizky Luthfianto2015-11-211-3/+2
| | |
* | | Add support for getting an element's computed style through WebDriver.James Graham2015-11-201-0/+2
| |/ |/|
* | compositing: Split Servo up into multiple sandboxed processes.Patrick Walton2015-11-191-8/+24
| | | | | | | | | | Multiprocess mode is enabled with the `-M` switch, and sandboxing is enabled with the `-S` switch.
* | Auto merge of #8564 - jgraham:webdriver_attr, r=Ms2gerbors-servo2015-11-191-0/+2
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | Implement Get Element Attribute WebDriver command This intentionally doesn't implement the special handling for boolean attributes yet, since that requires some kind of exhaustive list of all such attributes <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8564) <!-- Reviewable:end -->
| * Implement Get Element Attribute WebDriver commandJames Graham2015-11-181-0/+2
| |
* | Split ConstellationMsg into ScriptMsg and CompositorMsgKeith Yeung2015-11-161-2/+2
|/
* Implement support for WebDriver send keys command.James Graham2015-11-161-0/+2
| | | | | | Supports sending keys to an element. The specification here is still rather unfinished so the error handling and so on in this code will need iteration as it becomes clearer what the expected behaviour is.
* Add DOM-related performance timing propertiesGreg Guthe2015-11-131-0/+2
|
* Auto merge of #8500 - frewsxcv:subpage, r=jdmbors-servo2015-11-131-11/+12
|\ | | | | | | | | | | | | | | Consolidate 'subpage finding' script_task logic <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8500) <!-- Reviewable:end -->
| * Consolidate 'subpage finding' script_task logicCorey Farwell2015-11-121-11/+12
| |
* | Auto merge of #8477 - asajeffrey:opaque-domstring, r=asajeffreybors-servo2015-11-131-3/+3
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Opaque DOMString This patch makes DOMString an opaque wrapper round String (currently it's a transparent wrapper). The changes are: * Replacing DOMString(foo) by DOMString::from(foo). * Replacing foo.0 by String::from(foo). * Adding functions clear, push_str and extend for in-place mutation of DOMStrings. * Replacing DOMString by String in other threads (devtools, storage and filereader). * Making DOMString implement !Send. * Removing the pub attribute from the contents of DOMString. This enables experimenting with other string representations in the DOM. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8477) <!-- Reviewable:end -->
| * | Replaced DOMString by String in devtools.Alan Jeffrey2015-11-121-3/+3
| | |
* | | Auto merge of #8492 - jdm:e10s-timer-events, r=jdmbors-servo2015-11-131-17/+7
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | script: Make timer events e10s-safe. Closes #8235. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8492) <!-- Reviewable:end -->
| * | script: Make timer events e10s-safe.Patrick Walton2015-11-121-17/+7
| |/ | | | | | | Closes #8235.
* | Auto merge of #8428 - Ms2ger:conversions, r=Manishearthbors-servo2015-11-131-5/+7
|\ \ | |/ |/| | | | | | | | | | | Update js. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8428) <!-- Reviewable:end -->
| * Use the conversion traits from js.Ms2ger2015-11-121-5/+7
| |
* | Auto merge of #7844 - Wafflespeanut:requests, r=jdmbors-servo2015-11-121-1/+1
|\ \ | |/ |/| | | | | | | | | | | | | | | Cancelable network requests! fixes #4974 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7844) <!-- Reviewable:end -->
| * Implement cancellation listener for cancelling network requestsRavi Shankar2015-11-121-1/+1
| |
* | Execute XHR timeout callbacks directly. (Fixes #8468.)benshu2015-11-111-2/+0
|/
* Auto merge of #8286 - eefriedman:no-move, r=noxbors-servo2015-11-081-5/+6
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove unnecessary uses of #[no_move] The patch makes RootCollection a bit safer by making the StackRootTLS hold it in place. RootedVec was doing an extremely delicate dance and just hoping nobody messed it up; switch to a Box to be safe. CodeGenRust seemed to be using no_move for no particularly good reason. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8286) <!-- Reviewable:end -->
| * Clean up some code related to #[no_move].Eli Friedman2015-11-071-5/+6
| | | | | | | | | | | | | | | | The patch makes RootCollection a bit safer by making the StackRootTLS hold it in place. The use of no_move in CodeGenRust was leftover from when roots couldn't be moved.
* | Auto merge of #8039 - tschneidereit:script-owns-stylesheets, r=jdmbors-servo2015-11-081-12/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move Stylesheet loading and ownership from the layout task into HTML elements Stylesheets for `HTMLLinkElement`s are now loaded by the resource task, triggered by the element in question. Stylesheets are owned by the elements they're associated with, which can be `HTMLStyleElement`, `HTMLLinkElement`, and `HTMLMetaElement` (for `<meta name="viewport">). Additionally, the quirks mode stylesheet (just as the user and user agent stylesheets a couple of commits ago), is implemented as a lazy static, loaded once per process and shared between all documents. This all has various nice consequences: - Stylesheet loading becomes a non-blocking operation. - Stylesheets are removed when the element they're associated with is removed from the document. - It'll be possible to implement the CSSOM APIs that require direct access to the stylesheets (i.e., ~ all of them). - Various subtle correctness issues are fixed. One piece of interesting follow-up work would be to move parsing of external stylesheets to the resource task, too. Right now, it happens in the link element once loading is complete, so blocks the script task. Moving it to the resource task would probably be fairly straight-forward as it doesn't require access to any external state. Depends on #7979 because without that loading stylesheets asynchronously breaks lots of content. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8039) <!-- Reviewable:end -->
| * | Move Stylesheet loading and ownership from the layout task into HTML elementsTill Schneidereit2015-11-071-12/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Stylesheets for `HTMLLinkElement`s are now loaded by the resource task, triggered by the element in question. Stylesheets are owned by the elements they're associated with, which can be `HTMLStyleElement`, `HTMLLinkElement`, and `HTMLMetaElement` (for `<meta name="viewport">). Additionally, the quirks mode stylesheet (just as the user and user agent stylesheets a couple of commits ago), is implemented as a lazy static, loaded once per process and shared between all documents. This all has various nice consequences: - Stylesheet loading becomes a non-blocking operation. - Stylesheets are removed when the element they're associated with is removed from the document. - It'll be possible to implement the CSSOM APIs that require direct access to the stylesheets (i.e., ~ all of them). - Various subtle correctness issues are fixed. One piece of interesting follow-up work would be to move parsing of external stylesheets to the resource task, too. Right now, it happens in the link element once loading is complete, so blocks the script task. Moving it to the resource task would probably be fairly straight-forward as it doesn't require access to any external state.
* | | Auto merge of #8355 - Ms2ger:Exit, r=noxbors-servo2015-11-071-9/+9
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cleanup exit messages and related code. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8355) <!-- Reviewable:end -->
| * | | Remove the unused PipelineExitType field from ↵Ms2ger2015-11-051-1/+1
| | | | | | | | | | | | | | | | ConstellationControlMsg::ExitPipeline.
| * | | Remove the unused PipelineExitType arguments from ↵Ms2ger2015-11-051-7/+7
| | | | | | | | | | | | | | | | ScriptTask::handle_exit_pipeline_msg and shut_down_layout.
| * | | Remove the unused PipelineExitType field from layout_interface::Msg::ExitNow.Ms2ger2015-11-051-3/+3
| | | |
* | | | Auto merge of #8359 - ben0x539:js-url-query-fragment, r=eefriedmanbors-servo2015-11-071-2/+24
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Append query string + fragment to javascript: url. When loading a URL whose scheme is javascript, we should do what https://html.spec.whatwg.org/multipage/browsers.html#javascript-protocol says and append the URL's query and fragment components to the scheme data, as well as percent- and utf-8-decode the whole thing, before evaluating it as javascript. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8359) <!-- Reviewable:end -->
| * | | Append query string + fragment to javascript: url.Benjamin Herr2015-11-061-2/+24
| |/ / | | | | | | | | | | | | | | | | | | | | | When loading a URL whose scheme is javascript, we should do what https://html.spec.whatwg.org/multipage/#javascript-protocol says and append the URL's query and fragment components to the scheme data, as well as percent- and utf-8-decode the whole thing, before evaluating it as javascript.
* / / Implement cancellable runnables.Josh Matthews2015-11-061-2/+37
|/ / | | | | | | Additionally, make image load events cancellable. Resolves #7731.
* | Make DOMString a newtype around String, rather than a typedef.Ms2ger2015-11-041-5/+5
| | | | | | | | | | | | | | | | | | | | This should make it somewhat easier to experiment with alternative representations in the future. To reduce churn, this commit leaves the String field public, though. Also, this will allow us to use the default String type to represent the IDL USVString type, which explicitly forbids unpaired surrogates, ans as such is a better match to the Rust String type.
* | Use DOMString::new() somewhat consistently.Ms2ger2015-11-041-2/+2
| |