Bug 1580766 - Add a unique ID for the BrowsingContext tree inside a browser element. r=kmag

This adds a `browserId` property to all browsing contexts. This ID is the same
for the entire tree of contexts inside a frame element. Each new top-level
context created for a given frame also inherits this ID. This allows identifying
the frame element for a given browsing context.

Originally authored by :mossop in D56245.

Differential Revision: https://phabricator.services.mozilla.com/D77911
This commit is contained in:
Dave Townsend
2020-06-16 17:25:16 +00:00
parent 0da4e90f1b
commit 25aeede5c9
16 changed files with 269 additions and 23 deletions

View File

@@ -208,6 +208,7 @@ void nsGenericHTMLFrameElement::UnbindFromTree(bool aNullParent) {
mFrameLoader = nullptr;
}
nsFrameLoaderOwner::UnbindFromTree();
nsGenericHTMLElement::UnbindFromTree(aNullParent);
}