aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/webdriver_handlers.rs
Commit message (Collapse)AuthorAgeFilesLines
* Renamed constellation::Frame to constellation::BrowsingContext.Alan Jeffrey2017-05-151-4/+4
|
* Update Hyper and OpenSSLddh2017-03-311-11/+13
|
* Added some same-origin-domain checks.Alan Jeffrey2017-03-141-13/+8
|
* Refactor and simplify 'set cookies' operations on resource thread.Corey Farwell2016-12-151-5/+5
|
* Remove redundant url clonesPu Xingyu2016-11-181-5/+5
| | | | | They are now redundant since now document.url() returns a struct rather than a reference.
* Urlmageddon: Use refcounted urls more often.Emilio Cobos Álvarez2016-11-171-3/+3
|
* Replace script thread root browsing context by a collection of documents.Alan Jeffrey2016-11-081-99/+102
|
* Move JS evaluation functions to GlobalScopeAnthony Ramine2016-10-061-3/+2
|
* Introduce GlobalScope::resource_threadsAnthony Ramine2016-10-061-4/+4
|
* Introduce GlobalScope::pipeline_idAnthony Ramine2016-10-061-1/+2
|
* Replace ScriptHelpers by GlobalRef methodsAnthony Ramine2016-10-031-3/+5
|
* Use fn pipeline_id consistently, not fn pipelineAneesh Agrawal2016-09-131-1/+1
| | | | | | | | | | | | Consistently use the name 'pipeline_id' to refer to a function that returns an (optional) PipelineId. This was prompted by discovering both fn pipeline and fn pipeline_id doing the same job in htmliframeelement.rs. Note that there is fn pipeline in components/compositing/compositor.rs, but that actually returns an Option<&CompositionPipeline>, not any kind of PipelineId.
* Reorder `use` statementsUK9922016-09-091-2/+2
|
* Update rust-mozjs dependencyGuillaume Gomez2016-08-241-3/+10
|
* Update serde to 0.8 (fixes #12659)Anthony Ramine2016-08-121-2/+3
|
* Removed some sources of panic from script thread and devtools, using Option ↵David Raifaizen2016-07-251-4/+15
| | | | values instead to indicate when a pipeline context is missing where appropriate. Additionally, removed erroneous method get_browsing_context.
* Move webdriver_msg to script_traits.Ms2ger2016-07-051-2/+2
|
* Add style check, test, and code fixes for an else brace check.Travis Dean2016-07-041-2/+1
|
* Switch to using the new rooted!/RootedGuard API for rooting.Eduard Burtescu2016-07-041-4/+3
|
* Use common cookie struct add cookie webdriver cmdsDan Robertson2016-06-251-1/+66
| | | | | One cookie struct to rule them all. One struct to represent them. One cookie struct to bind them all, and through the IPC carry them.
* Support WindowProxy return values in bindingsJansen Jan2016-06-091-2/+1
| | | | unscopable
* Move DOMString back to scriptAnthony Ramine2016-05-241-1/+1
| | | | This entirely removes the 'non-geckolib' feature of the util crate.
* Added a timeout to SetWindowSize.Alan Jeffrey2016-05-201-3/+2
|
* Made SetWindowSize synchronous.Alan Jeffrey2016-05-201-20/+0
|
* Implemented webdriver SetWindowSize.Alan Jeffrey2016-05-201-1/+14
|
* removed instances of &Root<BrowsingContext>Connor Brewster2016-05-111-18/+18
|
* remove page and move functionality to browing contextConnor Brewster2016-05-111-44/+46
| | | | | | | | | | Allow for adding history items Fixed nested iframe test failure Cleanup and small refactors fixup
* Remove `get_*` on getters as per RFC 0344.Corey Farwell2016-04-101-1/+1
| | | | | | https://github.com/rust-lang/rfcs/blob/master/text/0344-conventions-galore.md#gettersetter-apis https://github.com/servo/servo/issues/6224
* Remove `get_*` on getters as per RFC 0344.Corey Farwell2016-03-311-4/+4
| | | | | | https://github.com/rust-lang/rfcs/blob/master/text/0344-conventions-galore.md#gettersetter-apis https://github.com/servo/servo/issues/6224
* find_node_by_unique_id should use findDaniel Robertson2016-02-241-9/+1
| | | | find_node_by_unique_id should use find instead of for-loop
* Implement GetElementRect webdriver commandDaniel Robertson2016-02-241-0/+41
| | | | Implement the webdriver Get Element Rect command
* task -> threadrohan.prinja2016-01-101-1/+1
|
* Fix a bunch of clippy lintsJohannes Linke2016-01-021-1/+1
|
* Removed duplicate webdriver_traits file and added webdriver handler for ↵David Raifaizen2015-11-291-1/+51
| | | | GetWindowSize, IsSelected and IsEnabled
* Add support for getting an element's computed style through WebDriver.James Graham2015-11-201-0/+17
|
* Implement Get Element Attribute WebDriver commandJames Graham2015-11-181-0/+15
|
* Implement support for WebDriver send keys command.James Graham2015-11-161-0/+21
| | | | | | 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.
* Replaced DOMString constructor by conversion functions.Alan Jeffrey2015-11-121-6/+6
| | | | | | Replaced DOMString(...) by DOMString::from(...). Replaced ....0 by String::from(...). Removed any uses of .to_owner() in DOMString::from("...").
* Use the conversion traits from js.Ms2ger2015-11-121-6/+10
|
* Make DOMString a newtype around String, rather than a typedef.Ms2ger2015-11-041-8/+8
| | | | | | | | | | 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.
* Get rid of a bunch of explicit derefsDavid Zbarsky2015-11-031-18/+18
|
* merge from masterrohan.prinja2015-11-031-2/+2
|\
| * Avoid string copies in handle_find_{element,elements}_css.Ms2ger2015-10-301-2/+2
| |
* | move Castable into dom::bindings::inheritancerohan.prinja2015-10-301-1/+2
|/
* Clean up the cast callsAnthony Ramine2015-10-211-4/+2
|
* Introduce trait CastableAnthony Ramine2015-10-211-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This trait is used to hold onto the downcast and upcast functions of all castable IDL interfaces. A castable IDL interface is one which either derives from or is derived by other interfaces. The deriving relation is represented by implementations of marker trait DerivedFrom<T: Castable> generated in InheritTypes. /^[ ]*use dom::bindings::codegen::InheritTypes::.*(Base|Cast|Derived)/ { /::[a-zA-Z]+(Base|Cast|Derived);/d s/([{ ])[a-zA-Z]+(Base|Cast|Derived), /\1/g s/([{ ])[a-zA-Z]+(Base|Cast|Derived), /\1/g s/, [a-zA-Z]+(Base|Cast|Derived)([},])/\2/g s/, [a-zA-Z]+(Base|Cast|Derived)([},])/\2/g /\{([a-zA-Z]+(Base|Cast|Derived))?\};$/d s/\{([a-zA-Z_]+)\};$/\1;/ } s/([a-zA-Z]+)Cast::from_ref\(\&?\**([a-zA-Z_]+)(\.r\(\))?\)/\2.upcast::<\1>()/g s/([a-zA-Z]+)Cast::from_ref\(\&?\**([a-zA-Z_]+)(\.[a-zA-Z_]+\(\))?\)/\2\3.upcast::<\1>()/g s/\(([a-zA-Z]+)Cast::from_ref\)/\(Castable::upcast::<\1>\)/g s/([a-zA-Z]+)Cast::from_root/Root::upcast::<\1>/g s/([a-zA-Z]+)Cast::from_layout_js\(\&([a-zA-Z_.]+)\)/\2.upcast::<\1>()/g s/([a-zA-Z]+)Cast::to_ref\(\&?\**([a-zA-Z_]+)(\.r\(\))?\)/\2.downcast::<\1>()/g s/([a-zA-Z]+)Cast::to_ref\(\&?\**([a-zA-Z_]+)(\.[a-zA-Z_]+\(\))?\)/\2\3.downcast::<\1>()/g s/\(([a-zA-Z]+)Cast::to_ref\)/\(Castable::downcast::<\1>\)/g s/([a-zA-Z]+)Cast::to_root/Root::downcast::<\1>/g s/([a-zA-Z]+)Cast::to_layout_js\(&?([a-zA-Z_.]+(\(\))?)\)/\2.downcast::<\1>()/g s/\.is_document\(\)/.is::<Document>()/g s/\.is_htmlanchorelement\(\)/.is::<HTMLAnchorElement>()/g s/\.is_htmlappletelement\(\)/.is::<HTMLAppletElement>()/g s/\.is_htmlareaelement\(\)/.is::<HTMLAreaElement>()/g s/\.is_htmlbodyelement\(\)/.is::<HTMLBodyElement>()/g s/\.is_htmlembedelement\(\)/.is::<HTMLEmbedElement>()/g s/\.is_htmlfieldsetelement\(\)/.is::<HTMLFieldSetElement>()/g s/\.is_htmlformelement\(\)/.is::<HTMLFormElement>()/g s/\.is_htmlframesetelement\(\)/.is::<HTMLFrameSetElement>()/g s/\.is_htmlhtmlelement\(\)/.is::<HTMLHtmlElement>()/g s/\.is_htmlimageelement\(\)/.is::<HTMLImageElement>()/g s/\.is_htmllegendelement\(\)/.is::<HTMLLegendElement>()/g s/\.is_htmloptgroupelement\(\)/.is::<HTMLOptGroupElement>()/g s/\.is_htmloptionelement\(\)/.is::<HTMLOptionElement>()/g s/\.is_htmlscriptelement\(\)/.is::<HTMLScriptElement>()/g s/\.is_htmltabledatacellelement\(\)/.is::<HTMLTableDataCellElement>()/g s/\.is_htmltableheadercellelement\(\)/.is::<HTMLTableHeaderCellElement>()/g s/\.is_htmltablerowelement\(\)/.is::<HTMLTableRowElement>()/g s/\.is_htmltablesectionelement\(\)/.is::<HTMLTableSectionElement>()/g s/\.is_htmltitleelement\(\)/.is::<HTMLTitleElement>()/g
* Remove webdriver use of SubpageIdGlenn Watson2015-10-151-3/+3
|
* script: Stop copying the document URL.Patrick Walton2015-09-241-2/+3
|
* sorted the extern crate, mod & use declarationsRavi Shankar2015-09-241-3/+3
|
* Fix reported test-tidy errors for unmerged import blocksBrandon Fairchild2015-09-191-2/+1
| | | | This merges import blocks that were reported by tidy as unmerged.