diff options
Diffstat (limited to 'components/script/fetch.rs')
-rw-r--r-- | components/script/fetch.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/fetch.rs b/components/script/fetch.rs index 9003887d24a..131f2c930ba 100644 --- a/components/script/fetch.rs +++ b/components/script/fetch.rs @@ -161,7 +161,7 @@ pub fn Fetch( let timing_type = request.timing_type(); let mut request_init = request_init_from_request(request); - request_init.csp_list = global.get_csp_list().clone(); + request_init.csp_list.clone_from(&global.get_csp_list()); // Step 3 if global.downcast::<ServiceWorkerGlobalScope>().is_some() { |