Separate WebviewManager from Webview in compositor and constellation (#36302)

Create a separate file for `WebviewManager` to improve clarity.

Testing: This change is just a refactor, so no new tests are needed.

Signed-off-by: Shubham Gupta <shubham13297@gmail.com>
This commit is contained in:
Shubham Gupta 2025-04-04 15:34:19 +08:00 committed by GitHub
parent b4079b3ff3
commit df9efde1c3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 253 additions and 239 deletions

View file

@ -175,7 +175,7 @@ use crate::serviceworker::ServiceWorkerUnprivilegedContent;
use crate::session_history::{
JointSessionHistory, NeedsToReload, SessionHistoryChange, SessionHistoryDiff,
};
use crate::webview::WebViewManager;
use crate::webview_manager::WebViewManager;
type PendingApprovalNavigations = HashMap<PipelineId, (LoadData, NavigationHistoryBehavior)>;

View file

@ -15,7 +15,7 @@ mod pipeline;
mod sandboxing;
mod serviceworker;
mod session_history;
mod webview;
mod webview_manager;
pub use crate::constellation::{Constellation, InitialConstellationState};
pub use crate::logging::{FromCompositorLogger, FromScriptLogger};

View file

@ -87,7 +87,7 @@ mod test {
BrowsingContextId, BrowsingContextIndex, PipelineNamespace, PipelineNamespaceId, WebViewId,
};
use crate::webview::WebViewManager;
use crate::webview_manager::WebViewManager;
fn id(namespace_id: u32, index: u32) -> WebViewId {
WebViewId(BrowsingContextId {