mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
enhance: Add support for unsafe-eval
and wasm-unsafe-eval
(#32893)
Signed-off-by: Chocolate Pie <106949016+chocolate-pie@users.noreply.github.com>
This commit is contained in:
parent
2cf207ddc8
commit
92866ab911
51 changed files with 755 additions and 73 deletions
|
@ -3672,6 +3672,8 @@ impl ScriptThread {
|
|||
.and_then(|h| h.typed_get::<ReferrerPolicyHeader>())
|
||||
.map(ReferrerPolicy::from);
|
||||
|
||||
let status_code = metadata.status.map(|status| status.0).unwrap_or(200);
|
||||
|
||||
let document = Document::new(
|
||||
&window,
|
||||
HasBrowsingContext::Yes,
|
||||
|
@ -3685,6 +3687,7 @@ impl ScriptThread {
|
|||
loader,
|
||||
referrer,
|
||||
referrer_policy,
|
||||
Some(status_code),
|
||||
incomplete.canceller,
|
||||
);
|
||||
document.set_ready_state(DocumentReadyState::Loading);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue