Bug 12863 - WebKit does not implement window.stop()
Summary: WebKit does not implement window.stop()
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 420+
Hardware: All All
: P3 Enhancement
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2007-02-22 19:03 PST by Jeremy Volkman
Modified: 2007-03-16 17:05 PDT (History)
2 users (show)

See Also:


Attachments
Proposed Fix (4.62 KB, patch)
2007-03-16 16:48 PDT, Brady Eidson
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Volkman 2007-02-22 19:03:19 PST
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.
Comment 1 Alexey Proskuryakov 2007-02-23 03:44:25 PST
Confirmed.

Are there any sites relying on this feature? What are the use cases for which it is necessary?
Comment 2 Jeremy Volkman 2007-02-23 05:06:24 PST
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.
Comment 3 David Kilzer (:ddkilzer) 2007-03-14 03:00:08 PDT
Per comments in r20178, implementing window.stop() is now in Radar:

<rdar://problem/5061826>

http://trac.webkit.org/projects/webkit/changeset/20178

Comment 4 Brady Eidson 2007-03-14 11:04:27 PDT
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.
Comment 5 Brady Eidson 2007-03-16 16:48:43 PDT
Created attachment 13676 [details]
Proposed Fix
Comment 6 Brady Eidson 2007-03-16 17:00:36 PDT
Comment on attachment 13676 [details]
Proposed Fix

Anders reviewed this
Comment 7 Brady Eidson 2007-03-16 17:05:01 PDT
Landed in r20253