Bug 13039 - WebKit doesn't load page resources during event tracking (NSEventTrackingRunLoopMode)
Summary: WebKit doesn't load page resources during event tracking (NSEventTrackingRunL...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Page Loading (show other bugs)
Version: 419.x
Hardware: Mac OS X 10.4
: P2 Major
Assignee: Nobody
URL: http://macrabbit.com/misc/webkit-even...
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2007-03-10 16:04 PST by Jan Van Boghout
Modified: 2012-10-11 16:36 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Van Boghout 2007-03-10 16:04:20 PST
When a subresource is loaded during an event tracking loop (sliders and color wheel actions, for example), WebKit doesn't actually load the changes until the loop is ended. It appears that the data does get loaded during the loop, but the page isn't updated until the loop ends.

Sample project and app displaying the bug: http://macrabbit.com/misc/webkit-event-tracking/WebKitEventTracking.zip
Comment 1 Jan Van Boghout 2007-08-10 09:03:46 PDT
I have tracked the problem down to NSURLConnection. WebKit uses NSURLConnection in ResourceHandleMac.mm: start(Frame* frame). Since NSURLConnection refuses to send delegate methods during event tracking, all of WebKit inherits this behavior.

Possible solutions: threading the resource load or fixing this bug in Foundation. The latter is probably more preferable.
Comment 2 David Kilzer (:ddkilzer) 2007-08-11 06:55:08 PDT
(In reply to comment #1)
> I have tracked the problem down to NSURLConnection. WebKit uses NSURLConnection
> in ResourceHandleMac.mm: start(Frame* frame). Since NSURLConnection refuses to
> send delegate methods during event tracking, all of WebKit inherits this
> behavior.
> 
> Possible solutions: threading the resource load or fixing this bug in
> Foundation. The latter is probably more preferable.

Foundation bugs/enhancement requests need to be reported through <https://bugreport.apple.com/>.  If you do not have an ADC account, you may sign up for a free "online" account at <http://connect.apple.com/>.  Please reference the Bugzilla bug there and provide the radar bug number here when you're done.

Comment 3 Jan Van Boghout 2007-08-11 07:04:07 PDT
Related Radar bug: radar://5401429
Comment 4 Jan Van Boghout 2007-08-16 16:02:23 PDT
To the Apple employees that work on WebKit: I am now aware of a fix for the NSURLConnection issue in Leopard, but I can't disclose it. You may want to contact John Montbriand at Developer Technical Support.