aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/location.rs
Commit message (Collapse)AuthorAgeFilesLines
* Implement Location.replacePu Xingyu2016-11-181-0/+12
|
* Move fragment navigation into Document objectPu Xingyu2016-11-181-4/+5
| | | | | | | Move the `check_and_scroll_fragment()` method into Document, make the mothod set the fragment of url after navigation, and use the `perform_a_scroll()` method to scroll rather than an individual method. Also removes the broken `Window.fragment` fields.
* Urlmageddon: Use refcounted urls more often.Emilio Cobos Álvarez2016-11-171-3/+3
|
* Make reflect_dom_object take a &GlobalScopeAnthony Ramine2016-10-061-2/+1
|
* Make Assign throw error on invalid urlEric Coan2016-09-261-1/+5
|
* Bring referrer policy delivery to <a> and <link> via rel attributeYing-Ruei Liang(KK)2016-09-201-4/+4
|
* Replace current session entry for reloadsConnor Brewster2016-09-191-4/+4
|
* Ensure that a navigation to the same URL is aborted. Fixes #10952.Josh Matthews2016-06-291-1/+4
|
* Move DOMString back to scriptAnthony Ramine2016-05-241-2/+1
| | | | This entirely removes the 'non-geckolib' feature of the util crate.
* add origin to location and url apiChandler Abraham2016-01-211-0/+5
|
* Use Url.join instead of UrlParser.base_url(...).parse (#9002)Mathieu Agopian2015-12-181-3/+3
|
* Replaced DOMString constructor by conversion functions.Alan Jeffrey2015-11-121-1/+1
| | | | | | Replaced DOMString(...) by DOMString::from(...). Replaced ....0 by String::from(...). Removed any uses of .to_owner() in DOMString::from("...").
* Make DOMString a newtype around String, rather than a typedef.Ms2ger2015-11-041-1/+1
| | | | | | | | | | 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.
* rearrange imports to be in alphabetical orderrohan.prinja2015-10-301-1/+1
|
* more refactoringrohan.prinja2015-10-301-1/+1
|
* Update URL-related interfaces and their tests up to specAnthony Ramine2015-10-191-43/+21
| | | | | | | | | The URL spec recently changed and the variour "mixins" interfaces are gone, this commit updates our code and WPT accordingly. The new expected failures related to HTMLAnchorElement and HTMLAreaElement's attributes are due to their moving to the HTMLHyperLinkElementUtils interface, which is not anymore in a separate <script class=untested> element.
* Do not root Location::windowAnthony Ramine2015-10-191-11/+8
|
* implement window.location.reload()Paul Rouget2015-09-211-0/+5
|
* Fix reported test-tidy errors for unmerged import blocksBrandon Fairchild2015-09-191-1/+0
| | | | This merges import blocks that were reported by tidy as unmerged.
* Implement setters in URLUtilsAnthony Ramine2015-08-301-9/+68
|
* Make the traits for the IDL interfaces take &selfAnthony Ramine2015-08-271-13/+13
|
* Remove helper traitsAnthony Ramine2015-08-271-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that JSRef<T> is gone, there is no need to have helper traits. On components/script/*.rs: # Remove imports. /^ *use dom::[a-z]+::\{.*Helpers/ { s/\{(Raw[^L]|[^L][^a])[a-zA-Z]+Helpers, /\{/ s/, (Raw[^L]|[^L][^a])[a-zA-Z]+Helpers([,}])/\2/g s/\{([a-zA-Z]+)\}/\1/ /\{\}/d s/::self;$/;/ } /^ *use dom::[a-z]+::\{?(Raw[^L]|[^L][^a])[a-zA-Z]+Helpers\}?;$/d On components/script/dom/*.rs: # Ignore layout things. /^(pub )?(impl|trait).*Layout.* \{/,/^}$/ { P; D; } # Delete helpers traits. /^(pub )?trait ([^L][^ ]|L[^a])[^ ]+Helpers(<'a>)? \{$/,/^\}$/D # Patch private helpers. /^impl.*Private.*Helpers/,/^\}$/ { s/^impl<'a> Private([^L][^ ]|L[^a])[^ ]+Helpers(<'a>)? for &'a ([^ ]+) \{$/impl \3 {/ /^ *(unsafe )?fn .*\(self.*[<&]'a/ { s/&'a /\&/g s/<'a, /</g } /^ *(unsafe )?fn /s/\(self([,)])/\(\&self\1/ } # Patch public helpers. /^impl.*Helpers/,/^\}$/ { s/^impl(<'a>)? ([^L][^ ]|L[^a])[^ ]+Helpers(<'a>)? for (&'a )?([^ ]+) \{$/impl \5 {/ /^ *(unsafe )?fn .*\(self.*[<&]'a/ { s/&'a /\&/g s/<'a, /</g } /^ *(unsafe )?fn .*\(&?self[,)]/s/(unsafe )?fn/pub &/ /^ *pub (unsafe )?fn /s/\(self([,)])/\(\&self\1/ } The few error cases were then fixed by hand.
* make dom_struct derive HeapSizeOf,João Oliveira2015-08-271-1/+0
| | | | closes #7357
* sort all usesJohann Tuffe2015-08-201-1/+1
|
* Measure heap memory usage for more types. Fixes #6951Bogdan Cuza2015-08-131-0/+1
|
* Handle url parse errors in Location#assign more gracefully.Ms2ger2015-08-071-4/+3
|
* Push the url parsing out of Window::load_url.Ms2ger2015-08-071-2/+9
| | | | This will allow the two callers to decide on the base url independently.
* Implement URL and trivially missing URLUtils membersAnthony Ramine2015-06-201-3/+33
| | | | Fixes #6322.
* Upgrade to SM 39Michael Wu2015-06-191-6/+6
|
* Properly generate proxy stringifiersAnthony Ramine2015-04-291-1/+1
|
* Uniformise root() methodsAnthony Ramine2015-04-281-1/+1
| | | | | They now live in traits Rootable, OptionalOptionalRootable, OptionalRootable and ResultRootable.
* Add/update comments with links to specCorey Farwell2015-04-141-0/+5
| | | | | | | | | | Extracted out of #5649 * add more hyperlinks to associated specification for structs/methods * follow redirects and update links * replace broken links * removal of WHATWG multipage page name since the page name is not guaranteed to be stable
* Update some URLs.Ms2ger2015-04-141-1/+1
| | | | | The HTML spec's division into pages is not stable, so it is safer to use the URL without a specific page (which will redirect).
* add readonly pathname function in locationyodalee2015-04-041-0/+4
| | | | | pathname function implemented in UrlHelper 'url is null' check is skip for now
* Use USVString for URLUtils and URLUtilsReadOnly.Ms2ger2015-03-131-4/+5
|
* Move everything unrelated to the frame tree out of Page and into Document or ↵Josh Matthews2015-03-031-13/+21
| | | | Window. Reduce the API surface of Page to a bare minimum to allow for easier future removal.
* Add stringifier method support to CodegenRust.py (fixes #1986)Chris Manchester2015-02-201-0/+4
| | | | | | Add a stringifier to URLUtils (Location). (fixes #4605) wpt metadata updates for #4605
* Implemented Location.assignKeith Yeung2015-02-061-0/+6
|
* Import the util crate as util rather than servo_util.Ms2ger2015-01-291-1/+1
| | | | | | | | This used to conflict with the util crate from the standard library, which has long since been removed. The import in layout has not been changed because of a conflict with the util mod there.
* Remove manual impls of Reflectors (autogen)Manish Goregaokar2014-12-271-6/+1
| | | | | | | | | Obtained via: `find . -maxdepth 1 -type f -print0 | xargs -0 sed -z -i "s/\\nimpl Reflectable for[^{]*{[^}]*}[^}]*}\\n//"` `find . -maxdepth 1 -type f -print0 |xargs -0 grep -lZ dom_struct | xargs -0 grep -LZ "reflector()\\|Reflector::new" |xargs -0 sed -z -i "s/use dom::bindings::utils::{Reflectable, Reflector, reflect_dom_object};/use dom::bindings::utils::reflect_dom_object;/"` followed by semi-automated removal of leftover imports
* script: Remove glob imports added in #4405Tetsuharu OHZEKI2014-12-191-2/+2
|
* Updated reflect_dom_object to be passed by valueMichael Booth2014-11-301-1/+1
|
* Use #[dom_struct] everywhereManish Goregaokar2014-10-161-3/+1
|
* Remove obsolete comments about cycles.Ms2ger2014-10-161-1/+1
| | | | | The tracing setup has ensured that the cycles can be collected for a long time now.
* Simple privatizationsTim Taubert2014-10-131-0/+1
|
* Upgrade to rustc d2b30f7d3 2014-09-23Simon Sapin2014-09-291-2/+2
|
* Made some DOM fields private.ProgramFOX2014-09-261-1/+1
| | | | Relevant to #2242.
* Use JSTraceable everywhereManish Goregaokar2014-09-241-1/+1
|
* More progress in the &JSRef -> JSRef conversionCameron Zwarich2014-09-201-3/+3
| | | | | Change all of the <Class>Methods traits to take `self` instead of `&self`.
* Share code between Navigator and WorkerNavigatorGilles Leblanc2014-09-201-11/+4
| | | | | | | Also shares code between Location and WorkerLocation. This has been done by introducing NavigatorInfo and UrlHelper. Fixes #3159