Skip to content

Commit abb6ce3

Browse files
author
bors-servo
authored
Auto merge of #17077 - asajeffrey:constellation-no-root-browsing-context, r=cbrewster
Removed root browsing context from constellation <!-- Please describe your changes on the following line: --> Removed the special root browsing context from the constellation. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #13994 - [X] These changes do not require tests because this isn't visible from user code <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/17077) <!-- Reviewable:end -->
2 parents 3553ae4 + 86c09ac commit abb6ce3

File tree

5 files changed

+181
-153
lines changed

5 files changed

+181
-153
lines changed

components/constellation/browsingcontext.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,11 @@ impl BrowsingContext {
9696
self.instant = entry.instant;
9797
self.load_data = entry.load_data;
9898
}
99+
100+
/// Is this a top-level browsing context?
101+
pub fn is_top_level(&self) -> bool {
102+
self.id == self.top_level_id
103+
}
99104
}
100105

101106
/// An entry in a browsing context's session history.

0 commit comments

Comments
 (0)