tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 9e27f248e2345d7ea8eb91c748ca5e97d605e870
parent 2e9363e66390ed1c7c8e36e35ee69400767a96dd
Author: Simon Farre <simon.farre.cx@gmail.com>
Date:   Tue,  9 Dec 2025 20:12:17 +0000

Bug 2004902 - Make Frame busting check pass for history load r=dom-core,farre

This is the bug exposed via usage of reddit where STR was
- click on post
- go back (frame busting check will fail silently)
- click on same post (assertion triggers)

Believed to be responsible for the majority of the assertions in
https://bugzilla.mozilla.org/show_bug.cgi?id=1999518

Differential Revision: https://phabricator.services.mozilla.com/D275586

Diffstat:
Mdocshell/base/BrowsingContext.cpp | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/docshell/base/BrowsingContext.cpp b/docshell/base/BrowsingContext.cpp @@ -2038,6 +2038,10 @@ nsresult BrowsingContext::CheckFramebusting(nsDocShellLoadState* aLoadState) { return NS_OK; } + if (XRE_IsParentProcess()) { + return NS_OK; + } + // Only applies to top-level navigations. if (!IsTop()) { return NS_OK;