Loading docshell/base/nsDocShell.cpp +5 −6 Original line number Diff line number Diff line Loading @@ -10186,7 +10186,11 @@ nsresult nsDocShell::DoURILoad(nsDocShellLoadState* aLoadState, if (StaticPrefs::dom_block_external_protocol_in_iframes()) { // Only allow URLs able to return data in iframes. if (nsContentUtils::IsExternalProtocol(aLoadState->URI())) { bool doesNotReturnData = false; NS_URIChainHasFlags(aLoadState->URI(), nsIProtocolHandler::URI_DOES_NOT_RETURN_DATA, &doesNotReturnData); if (doesNotReturnData) { // The context to check user-interaction with for the purposes of // popup-blocking. // Loading Loading @@ -12847,11 +12851,6 @@ nsresult nsDocShell::OnLinkClick( return NS_OK; } Document* ownerDoc = aContent->OwnerDoc(); if (nsContentUtils::IsExternalProtocol(aURI)) { ownerDoc->EnsureNotEnteringAndExitFullscreen(); } bool noOpenerImplied = false; nsAutoString target(aTargetSpec); if (aFileName.IsVoid() && Loading dom/base/Document.cpp +0 −7 Original line number Diff line number Diff line Loading @@ -3959,13 +3959,6 @@ nsresult Document::InitFeaturePolicy(nsIChannel* aChannel) { return NS_OK; } void Document::EnsureNotEnteringAndExitFullscreen() { Document::ClearPendingFullscreenRequests(this); if (GetFullscreenElement()) { Document::AsyncExitFullscreen(this); } } void Document::SetReferrerInfo(nsIReferrerInfo* aReferrerInfo) { mReferrerInfo = aReferrerInfo; mCachedReferrerInfoForInternalCSSAndSVGResources = nullptr; Loading dom/base/Document.h +0 −2 Original line number Diff line number Diff line Loading @@ -1549,8 +1549,6 @@ class Document : public nsINode, void InitFeaturePolicy(); nsresult InitFeaturePolicy(nsIChannel* aChannel); void EnsureNotEnteringAndExitFullscreen(); protected: friend class nsUnblockOnloadEvent; Loading dom/base/LocationBase.cpp +0 −5 Original line number Diff line number Diff line Loading @@ -175,11 +175,6 @@ void LocationBase::SetURI(nsIURI* aURI, nsIPrincipal& aSubjectPrincipal, } aRv.Throw(rv); } Document* doc = bc->GetDocument(); if (doc && nsContentUtils::IsExternalProtocol(aURI)) { doc->EnsureNotEnteringAndExitFullscreen(); } } void LocationBase::SetHref(const nsAString& aHref, Loading dom/base/nsContentUtils.cpp +0 −7 Original line number Diff line number Diff line Loading @@ -957,13 +957,6 @@ mozilla::EventClassID nsContentUtils::GetEventClassIDFromMessage( } } bool nsContentUtils::IsExternalProtocol(nsIURI* aURI) { bool doesNotReturnData = false; nsresult rv = NS_URIChainHasFlags( aURI, nsIProtocolHandler::URI_DOES_NOT_RETURN_DATA, &doesNotReturnData); return NS_SUCCEEDED(rv) && doesNotReturnData; } static nsAtom* GetEventTypeFromMessage(EventMessage aEventMessage) { switch (aEventMessage) { #define MESSAGE_TO_EVENT(name_, message_, type_, struct_) \ Loading Loading
docshell/base/nsDocShell.cpp +5 −6 Original line number Diff line number Diff line Loading @@ -10186,7 +10186,11 @@ nsresult nsDocShell::DoURILoad(nsDocShellLoadState* aLoadState, if (StaticPrefs::dom_block_external_protocol_in_iframes()) { // Only allow URLs able to return data in iframes. if (nsContentUtils::IsExternalProtocol(aLoadState->URI())) { bool doesNotReturnData = false; NS_URIChainHasFlags(aLoadState->URI(), nsIProtocolHandler::URI_DOES_NOT_RETURN_DATA, &doesNotReturnData); if (doesNotReturnData) { // The context to check user-interaction with for the purposes of // popup-blocking. // Loading Loading @@ -12847,11 +12851,6 @@ nsresult nsDocShell::OnLinkClick( return NS_OK; } Document* ownerDoc = aContent->OwnerDoc(); if (nsContentUtils::IsExternalProtocol(aURI)) { ownerDoc->EnsureNotEnteringAndExitFullscreen(); } bool noOpenerImplied = false; nsAutoString target(aTargetSpec); if (aFileName.IsVoid() && Loading
dom/base/Document.cpp +0 −7 Original line number Diff line number Diff line Loading @@ -3959,13 +3959,6 @@ nsresult Document::InitFeaturePolicy(nsIChannel* aChannel) { return NS_OK; } void Document::EnsureNotEnteringAndExitFullscreen() { Document::ClearPendingFullscreenRequests(this); if (GetFullscreenElement()) { Document::AsyncExitFullscreen(this); } } void Document::SetReferrerInfo(nsIReferrerInfo* aReferrerInfo) { mReferrerInfo = aReferrerInfo; mCachedReferrerInfoForInternalCSSAndSVGResources = nullptr; Loading
dom/base/Document.h +0 −2 Original line number Diff line number Diff line Loading @@ -1549,8 +1549,6 @@ class Document : public nsINode, void InitFeaturePolicy(); nsresult InitFeaturePolicy(nsIChannel* aChannel); void EnsureNotEnteringAndExitFullscreen(); protected: friend class nsUnblockOnloadEvent; Loading
dom/base/LocationBase.cpp +0 −5 Original line number Diff line number Diff line Loading @@ -175,11 +175,6 @@ void LocationBase::SetURI(nsIURI* aURI, nsIPrincipal& aSubjectPrincipal, } aRv.Throw(rv); } Document* doc = bc->GetDocument(); if (doc && nsContentUtils::IsExternalProtocol(aURI)) { doc->EnsureNotEnteringAndExitFullscreen(); } } void LocationBase::SetHref(const nsAString& aHref, Loading
dom/base/nsContentUtils.cpp +0 −7 Original line number Diff line number Diff line Loading @@ -957,13 +957,6 @@ mozilla::EventClassID nsContentUtils::GetEventClassIDFromMessage( } } bool nsContentUtils::IsExternalProtocol(nsIURI* aURI) { bool doesNotReturnData = false; nsresult rv = NS_URIChainHasFlags( aURI, nsIProtocolHandler::URI_DOES_NOT_RETURN_DATA, &doesNotReturnData); return NS_SUCCEEDED(rv) && doesNotReturnData; } static nsAtom* GetEventTypeFromMessage(EventMessage aEventMessage) { switch (aEventMessage) { #define MESSAGE_TO_EVENT(name_, message_, type_, struct_) \ Loading