Bug 1719285 - Make nsFrameLoader::GetExistingDocShell returning nsDocShell; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D119183
This commit is contained in:
@@ -244,8 +244,8 @@ nsresult nsGenericHTMLFrameElement::AfterSetAttr(
|
||||
if (aName == nsGkAtoms::scrolling) {
|
||||
if (mFrameLoader) {
|
||||
ScrollbarPreference pref = MapScrollingAttribute(aValue);
|
||||
if (nsIDocShell* docshell = mFrameLoader->GetExistingDocShell()) {
|
||||
nsDocShell::Cast(docshell)->SetScrollbarPreference(pref);
|
||||
if (nsDocShell* docshell = mFrameLoader->GetExistingDocShell()) {
|
||||
docshell->SetScrollbarPreference(pref);
|
||||
} else if (auto* child = mFrameLoader->GetBrowserBridgeChild()) {
|
||||
// NOTE(emilio): We intentionally don't deal with the
|
||||
// GetBrowserParent() case, and only deal with the fission iframe
|
||||
|
||||
Reference in New Issue
Block a user