Javascript URLs do not run in the right context when using frame targeting (e.g. `<a target="foo" src="javascript:...">`).
Created attachment 442600 [details] Patch
Created attachment 442624 [details] Patch
Created attachment 442627 [details] Patch
Created attachment 442640 [details] Patch
ping review?
<rdar://problem/84976051>
Comment on attachment 442640 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=442640&action=review > LayoutTests/imported/w3c/web-platform-tests/html/browsers/browsing-the-web/navigating-across-documents/010-expected.txt:2 > +FAIL Link with onclick form submit to javascript url with delayed document.write and href navigation assert_equals: expected "href" but got "write" Chrome and Firefox pass this test. While this appears to be a step in the right direction, do you know what it would take to pass?
Comment on attachment 442640 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=442640&action=review >> LayoutTests/imported/w3c/web-platform-tests/html/browsers/browsing-the-web/navigating-across-documents/010-expected.txt:2 >> +FAIL Link with onclick form submit to javascript url with delayed document.write and href navigation assert_equals: expected "href" but got "write" > > Chrome and Firefox pass this test. While this appears to be a step in the right direction, do you know what it would take to pass? I explained it in the changelog. I haven't done a full investigation yet but I suspect it is because we're running the Javascript URL synchronously in the form submission case. However, I tried running the JavaScript URL asynchronously and this caused some other side effects and other test failures so I am not making that change in this patch.
Tools/Scripts/svn-apply failed to apply attachment 442640 [details] to trunk. Please resolve the conflicts and upload a new patch.
Created attachment 443204 [details] Patch
Committed r285214 (243839@main): <https://commits.webkit.org/243839@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 443204 [details].