NEW301766
Safari stuck in loading if window.stop() called while parsing the document
https://bugs.webkit.org/show_bug.cgi?id=301766
Summary Safari stuck in loading if window.stop() called while parsing the document
Jeff Johnson
Reported 2025-10-31 12:30:51 PDT
Created attachment 477245 [details] Example HTML demonstrating the bug Testing with Safari 26.0.1 on macOS 15.7.1, but this bug has existed for years, I think. The bug does not occur in Chrome or Firefox. Steps to reproduce: 1. Open the attached HTML in Safari Expected results: The address bar shows that loading has stopped. Actual results: The address bar shows that loading continues. From a practical standpoint, this bug can affect Safari extensions, for example, which can run their own code while the document is parsing, and may call window.stop(). There are some other weird side effects, such as SFSafariTab navigate failing. https://developer.apple.com/documentation/safariservices/sfsafaritab/navigate(to:)
Attachments
Example HTML demonstrating the bug (324 bytes, text/html)
2025-10-31 12:30 PDT, Jeff Johnson
no flags
Screenshot of Safari address bar (37.08 KB, image/png)
2025-10-31 12:31 PDT, Jeff Johnson
no flags
Jeff Johnson
Comment 1 2025-10-31 12:31:52 PDT
Created attachment 477246 [details] Screenshot of Safari address bar
Alexey Proskuryakov
Comment 2 2025-11-02 14:50:08 PST
Indeed, I'm quite surprised that I cannot find any earlier report. Notably, document.readyState is stuck at "loading", so this is not just an API delegate issue.
Jeff Johnson
Comment 3 2025-11-02 14:59:32 PST
(In reply to Alexey Proskuryakov from comment #2) > Indeed, I'm quite surprised that I cannot find any earlier report. Until recently, I believed that it was just an extension issue, for which I had a workaround.
Radar WebKit Bug Importer
Comment 4 2025-11-07 11:31:11 PST
Note You need to log in before you can comment on or make changes to this bug.