tor-browser

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

commit a78eaeedbe9911065d648280d9f87eb89a60eecf
parent c0271e0fcc3fdde0a9e7f874095f3958f26a45ee
Author: Edgar Chen <echen@mozilla.com>
Date:   Thu, 11 Dec 2025 09:50:59 +0000

Bug 2002446 - Make document name getter handle the torn-down iframe contentWindow; r=smaug

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

Diffstat:
Mdom/html/nsHTMLDocument.cpp | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/dom/html/nsHTMLDocument.cpp b/dom/html/nsHTMLDocument.cpp @@ -587,6 +587,10 @@ void nsHTMLDocument::NamedGetter(JSContext* aCx, const nsAString& aName, aRv.NoteJSContextException(aCx); return; } + + if (v.isNullOrUndefined()) { + return; + } } else { // Step 3. Otherwise, if elements has only one element, return that // element.