Support isSecureContext for custom protocols

Signed-off-by: Tony <legendmastertony@gmail.com>
This commit is contained in:
Tony 2025-04-25 22:01:08 +08:00
parent 894fbd003d
commit d49689bf09
No known key found for this signature in database
GPG key ID: 34BDD3EA27824956
13 changed files with 103 additions and 10 deletions

View file

@ -35,9 +35,9 @@ use ipc_channel::ipc::{IpcReceiver, IpcSender};
use keyboard_types::Modifiers;
use malloc_size_of_derive::MallocSizeOf;
use media::WindowGLContext;
use net_traits::ResourceThreads;
use net_traits::image_cache::ImageCache;
use net_traits::storage_thread::StorageType;
use net_traits::{Protocols, ResourceThreads};
use pixels::PixelFormat;
use profile_traits::mem;
use serde::{Deserialize, Serialize};
@ -324,6 +324,8 @@ pub struct InitialScriptState {
pub player_context: WindowGLContext,
/// User content manager
pub user_content_manager: UserContentManager,
/// Registered custom protocols
pub protocols: Protocols,
}
/// Errors from executing a paint worklet