mirror of
https://github.com/servo/servo.git
synced 2025-09-30 00:29:14 +01:00
bump mozjs to 137.0-1 (#38561)
This bump downgrades icu_capi to 1.5.0, to match the version vendored in spidermonkey. Previous mozjs PRs: - https://github.com/servo/mozjs/pull/606 - https://github.com/servo/mozjs/pull/605 Testing: Covered by existing tests --------- Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
This commit is contained in:
parent
d33ae1549d
commit
ff4971012f
4 changed files with 13 additions and 12 deletions
|
@ -13,6 +13,7 @@ use std::ffi::{CStr, CString};
|
|||
use std::io::{Write, stdout};
|
||||
use std::ops::Deref;
|
||||
use std::os::raw::c_void;
|
||||
use std::ptr::NonNull;
|
||||
use std::rc::Rc;
|
||||
use std::sync::Mutex;
|
||||
use std::time::{Duration, Instant};
|
||||
|
@ -489,13 +490,12 @@ unsafe extern "C" fn content_security_policy_allows(
|
|||
|
||||
allowed = match runtime_code {
|
||||
RuntimeCode::JS => {
|
||||
let source = match sample {
|
||||
sample if !sample.is_null() => &jsstr_to_string(*cx, *sample),
|
||||
_ => "",
|
||||
};
|
||||
let source = NonNull::new(*sample)
|
||||
.map(|sample| jsstr_to_string(*cx, sample))
|
||||
.unwrap_or("".to_string());
|
||||
global
|
||||
.get_csp_list()
|
||||
.is_js_evaluation_allowed(global, source)
|
||||
.is_js_evaluation_allowed(global, &source)
|
||||
},
|
||||
RuntimeCode::WASM => global.get_csp_list().is_wasm_evaluation_allowed(global),
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue