Created attachment 50581 [details] Test case When a window is loaded with a JSURL, the window uload event is not fired when another JSURL is loaded over it.
Confirmed with r55339. Also, an assertion fails when reproducing this bug: ASSERTION FAILED: item->documentSequenceNumber() == history()->currentItem()->documentSequenceNumber() (/Users/ap/Safari/OpenSource/WebCore/loader/FrameLoader.cpp:3702 void WebCore::FrameLoader::navigateWithinDocument(WebCore::HistoryItem*)) It seems unrelated, but I don't know if it's important.
Is the unload event supposed to fire...?
ASSERT failure is interesting, though.
I think it supposed to fire, yes. I was going to suggest opening a new bug for the assertion failure, but now I think there's a chance it could theoretically have same root cause.