mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Use Heap for dictionary and union members.
This commit is contained in:
parent
5eaa19bdd4
commit
8ce9ca6243
10 changed files with 35 additions and 27 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue