|
@@ -80,7 +80,7 @@ Fetch::Infrastructure::RequestOrResponseBlocking should_fetching_request_be_bloc
|
|
|
|| false
|
|
|
|
|
|
// 4. request’s destination is "document", and request’s target browsing context has no parent browsing context.
|
|
|
- || (request.destination() == Fetch::Infrastructure::Request::Destination::Document && !request.client()->target_browsing_context->parent())) {
|
|
|
+ || (request.destination() == Fetch::Infrastructure::Request::Destination::Document && !(request.client()->target_browsing_context && request.client()->target_browsing_context->parent()))) {
|
|
|
return Fetch::Infrastructure::RequestOrResponseBlocking::Allowed;
|
|
|
}
|
|
|
|
|
@@ -104,7 +104,7 @@ Web::Fetch::Infrastructure::RequestOrResponseBlocking should_response_to_request
|
|
|
|| false
|
|
|
|
|
|
// 4. request’s destination is "document", and request’s target browsing context has no parent browsing context.
|
|
|
- || (request.destination() == Fetch::Infrastructure::Request::Destination::Document && !request.client()->target_browsing_context->parent())) {
|
|
|
+ || (request.destination() == Fetch::Infrastructure::Request::Destination::Document && !(request.client()->target_browsing_context && request.client()->target_browsing_context->parent()))) {
|
|
|
return Fetch::Infrastructure::RequestOrResponseBlocking::Allowed;
|
|
|
}
|
|
|
|