Bug 250758

Summary: HTMLFrameOwnerElement::getSVGDocument should return null rather than throwing
Product: WebKit Reporter: Ahmad Saleem <ahmad.saleem792>
Component: SVGAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: akeerthi, karlcow, rniwa, sabouhallawa, webkit-bug-importer, zimmermann
Priority: P2 Keywords: BrowserCompat, InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Ahmad Saleem 2023-01-18 04:06:03 PST
Hi Team,

While going through Blink's fixes, I came across another Web-Compat issue:

Test Case (failing in STP161 & Safari 16.2) - https://jsfiddle.net/k1wn9qtu/1/

^ Passes in Chrome Canary 111 and Firefox Nightly 111

Blink Commit - https://chromium.googlesource.com/chromium/blink/+/cf7eb89e462b4f8b003025cab9c99a6770ef6c44

WebKit Source - https://searchfox.org/wubkat/source/Source/WebCore/html/HTMLFrameOwnerElement.cpp#118

Just wanted to raise so we can fix it. Thanks!
Comment 1 Karl Dubost 2023-01-18 17:49:43 PST
I haven't found specific WPT tests for these. 
Maybe there is an opportunity for it.
Comment 2 Radar WebKit Bug Importer 2023-01-25 04:06:19 PST
<rdar://problem/104641450>
Comment 3 Ahmad Saleem 2023-02-05 04:53:33 PST
PR - https://github.com/WebKit/WebKit/pull/9648
Comment 4 EWS 2023-02-06 11:43:23 PST
Committed 259905@main (47f7b571335b): <https://commits.webkit.org/259905@main>

Reviewed commits have been landed. Closing PR #9648 and removing active labels.