aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/url.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2016-10-02 14:29:01 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2016-10-06 21:35:44 +0200
commitf38159b7d39acccef464857b101e9c8a6855aa6e (patch)
tree2dedb19401e0f2586a8e0bfa8d29f67ecc7abce5 /components/script/dom/url.rs
parent092504b4e3c10593730e3c625f98863651b9cc91 (diff)
downloadservo-f38159b7d39acccef464857b101e9c8a6855aa6e.tar.gz
servo-f38159b7d39acccef464857b101e9c8a6855aa6e.zip
Introduce GlobalScope::get_url
Diffstat (limited to 'components/script/dom/url.rs')
-rw-r--r--components/script/dom/url.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/url.rs b/components/script/dom/url.rs
index 2d5968e9e07..33520beee9d 100644
--- a/components/script/dom/url.rs
+++ b/components/script/dom/url.rs
@@ -118,7 +118,7 @@ impl URL {
pub fn CreateObjectURL(global: GlobalRef, blob: &Blob) -> DOMString {
/// XXX: Second field is an unicode-serialized Origin, it is a temporary workaround
/// and should not be trusted. See issue https://github.com/servo/servo/issues/11722
- let origin = get_blob_origin(&global.get_url());
+ let origin = get_blob_origin(&global.as_global_scope().get_url());
if blob.IsClosed() {
// Generate a dummy id
@@ -142,7 +142,7 @@ impl URL {
NOTE: The first step is unnecessary, since closed blobs do not exist in the store
*/
- let origin = get_blob_origin(&global.get_url());
+ let origin = get_blob_origin(&global.as_global_scope().get_url());
if let Ok(url) = Url::parse(&url) {
if let Ok((id, _, _)) = parse_blob_url(&url) {