mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Modularize security_manager by moving report logic (#37347)
Move all report structs into the same file, to keep them consistent and reuse functions such as stripping of the URL and serialization of disposition. This is part of modularizing security_manager, which contained various logic related to CSP. Part of #4577 Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com>
This commit is contained in:
parent
f09042340c
commit
dfbd5b7d21
4 changed files with 244 additions and 230 deletions
|
@ -107,6 +107,7 @@ use crate::dom::bindings::weakref::{DOMTracker, WeakRef};
|
|||
use crate::dom::blob::Blob;
|
||||
use crate::dom::broadcastchannel::BroadcastChannel;
|
||||
use crate::dom::crypto::Crypto;
|
||||
use crate::dom::csppolicyviolationreport::CSPViolationReportBuilder;
|
||||
use crate::dom::dedicatedworkerglobalscope::{
|
||||
DedicatedWorkerControlMsg, DedicatedWorkerGlobalScope,
|
||||
};
|
||||
|
@ -145,7 +146,7 @@ use crate::realms::{AlreadyInRealm, InRealm, enter_realm};
|
|||
use crate::script_module::{DynamicModuleList, ModuleScript, ModuleTree, ScriptFetchOptions};
|
||||
use crate::script_runtime::{CanGc, JSContext as SafeJSContext, ThreadSafeJSContext};
|
||||
use crate::script_thread::{ScriptThread, with_script_thread};
|
||||
use crate::security_manager::{CSPViolationReportBuilder, CSPViolationReportTask};
|
||||
use crate::security_manager::CSPViolationReportTask;
|
||||
use crate::task_manager::TaskManager;
|
||||
use crate::task_source::SendableTaskSource;
|
||||
use crate::timers::{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue