aboutsummaryrefslogtreecommitdiffstats
path: root/components/shared/base/id.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/shared/base/id.rs')
-rw-r--r--components/shared/base/id.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/shared/base/id.rs b/components/shared/base/id.rs
index 47625ae7d44..a20e4d20889 100644
--- a/components/shared/base/id.rs
+++ b/components/shared/base/id.rs
@@ -282,6 +282,8 @@ thread_local!(pub static TOP_LEVEL_BROWSING_CONTEXT_ID: Cell<Option<TopLevelBrow
Clone, Copy, Deserialize, Eq, Hash, MallocSizeOf, Ord, PartialEq, PartialOrd, Serialize,
)]
pub struct TopLevelBrowsingContextId(pub BrowsingContextId);
+/// An alias to ID of top level browsing context. A web view is usually what people would treat as
+/// a normal web page.
pub type WebViewId = TopLevelBrowsingContextId;
size_of_test!(TopLevelBrowsingContextId, 8);