mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-07 18:04:46 +00:00
Bug 1575326 - Fix usage of nsIDocShellTreeItem in nsDocShell::SetIsActive. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D58443 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
1fb4d249f5
commit
ea36f666a0
@ -4874,9 +4874,7 @@ nsDocShell::SetIsActive(bool aIsActive) {
|
||||
if (RefPtr<Document> doc = mScriptGlobal->GetExtantDoc()) {
|
||||
// Update orientation when the top-level browsing context becomes active.
|
||||
if (aIsActive) {
|
||||
nsCOMPtr<nsIDocShellTreeItem> parent;
|
||||
GetInProcessSameTypeParent(getter_AddRefs(parent));
|
||||
if (!parent) {
|
||||
if (mBrowsingContext->IsTop()) {
|
||||
// We only care about the top-level browsing context.
|
||||
uint16_t orientation = OrientationLock();
|
||||
ScreenOrientation::UpdateActiveOrientationLock(orientation);
|
||||
|
Loading…
Reference in New Issue
Block a user