diff options
author | Ms2ger <Ms2ger@gmail.com> | 2017-02-14 14:32:49 +0100 |
---|---|---|
committer | Ms2ger <Ms2ger@gmail.com> | 2017-02-16 11:03:21 +0100 |
commit | 8ce9ca624367c8e5737b8673548b230b69f4558b (patch) | |
tree | 7bc140deb5090fe0ff0f91f456d38c2896c4675c /components/script/dom/request.rs | |
parent | 5eaa19bdd4ae221b2db7b547d6dfae0003511735 (diff) | |
download | servo-8ce9ca624367c8e5737b8673548b230b69f4558b.tar.gz servo-8ce9ca624367c8e5737b8673548b230b69f4558b.zip |
Use Heap for dictionary and union members.
Diffstat (limited to 'components/script/dom/request.rs')
-rw-r--r-- | components/script/dom/request.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/request.rs b/components/script/dom/request.rs index 2b26d5e1e8c..bf4914f8255 100644 --- a/components/script/dom/request.rs +++ b/components/script/dom/request.rs @@ -139,12 +139,12 @@ impl Request { // TODO: `environment settings object` is not implemented in Servo yet. // Step 10 - if !init.window.is_undefined() && !init.window.is_null() { + if !init.window.handle().is_null_or_undefined() { return Err(Error::Type("Window is present and is not null".to_string())) } // Step 11 - if !init.window.is_undefined() { + if !init.window.handle().is_undefined() { window = Window::NoWindow; } @@ -179,7 +179,7 @@ impl Request { init.redirect.is_some() || init.referrer.is_some() || init.referrerPolicy.is_some() || - !init.window.is_undefined() { + !init.window.handle().is_undefined() { // Step 13.1 if request.mode == NetTraitsRequestMode::Navigate { return Err(Error::Type( |