UNCONFIRMED 61753
REGRESSION: Cache Policy Ignored when Resource Loaded by Multiple Webviews
https://bugs.webkit.org/show_bug.cgi?id=61753
Summary REGRESSION: Cache Policy Ignored when Resource Loaded by Multiple Webviews
Raj Doshi
Reported 2011-05-30 16:36:24 PDT
Created attachment 95379 [details] Test Project for Bug I noticed a Webkit bug in my Mac application when testing on the latest Mac OS X Lion developer preview, and I created a sample project to confirm the bug: When there are multiple webviews open with same resource loaded (in my case, a CSS stylesheet), then the cached version of the stylesheet is used even when specifying NSURLRequestReloadIgnoringCacheData for the cache policy. The result is that changes in the stylesheet will not be reflected when reloading one of the webviews, or creating a new webview that uses the stylesheet. I created a sample project (based on MiniBrowser) that opens a page with an external stylesheet, and after 10 seconds modifies the background in the stylesheet and reloads the page. By default, when the application opens, there is just one window and the background changes like it should. If you open a second window when the app launches with Command+N, the background on the webviews won't change. This bug occurs on latest Mac OS X 10.7 developer preview. It doesn't occur on the latest public Webkit release for Mac OS X 10.6. I didn't test against the Webkit nightly, because I couldn't find the instructions on how to do it. I'd be happy to try if someone can point me in the right direction.
Attachments
Test Project for Bug (42.37 KB, application/zip)
2011-05-30 16:36 PDT, Raj Doshi
no flags
Raj Doshi
Comment 1 2011-06-02 09:12:34 PDT
I found the environment variables that need to be set to test against the WebKit nightly, and confirmed that this bug exists in the nightly. Please, try to fix this one in time for the public release of Safari, as it would be difficult to work around and would have a big impact on applications like mine, an HTML editor.
Alexey Proskuryakov
Comment 2 2011-06-02 09:18:04 PDT
Raj Doshi
Comment 3 2011-06-17 14:21:56 PDT
This issue was fixed in the latest Lion developer preview update, but is still not fixed in the WebKit nightly running on Snow Leopard.
Raj Doshi
Comment 4 2011-07-20 15:09:49 PDT
This bug was fixed in Safari 5.1 on Lion, as I mentioned before. Unfortunately, the bug is still present with Safari 5.1 on Snow Leopard.
Note You need to log in before you can comment on or make changes to this bug.