Mozilla and Opera implement the window.stop() method which stops a window (frame or iframe) from completing a page load. IE provides similar functionality though its document.execCommand("Stop") call. It would be nice if WebKit provided this functionality.
Confirmed. Are there any sites relying on this feature? What are the use cases for which it is necessary?
My particular use case is a component that uploads files to the server asynchronously. I'm writing a component for an Ajax web application framework (Echo2), and the component submits files to an off-screen iframe to prevent a full page refresh. In the supporting browsers, I use window.stop to give the ability to stop a file transfer. As of now in WebKit and KHTML there is no way to stop a transfer once it has started.
Per comments in r20178, implementing window.stop() is now in Radar: <rdar://problem/5061826> http://trac.webkit.org/projects/webkit/changeset/20178
Thats hilarious, I had no idea someone else was asking for it. It's something I might work on adding soon - if noone else takes it on.
Created attachment 13676 [details] Proposed Fix
Comment on attachment 13676 [details] Proposed Fix Anders reviewed this
Landed in r20253