RESOLVED FIXED 30417
Need to properly disable applicationCache at runtime
https://bugs.webkit.org/show_bug.cgi?id=30417
Summary Need to properly disable applicationCache at runtime
Andrew Wilson
Reported 2009-10-15 16:46:30 PDT
This if statement should evaluate to false if applicationCache is disabled at runtime: if ('applicationCache' in window) You can look at https://bugs.webkit.org/show_bug.cgi?id=30240 for an example of how this was done for window.Audio(). We probably need to move this setting out of WebCore::Settings and into a global static so it's easily accessible from the V8 bindings.
Attachments
Proposed fix (2.31 KB, patch)
2009-11-04 11:01 PST, Jenn Braithwaite
levin: review-
Revised fix (4.48 KB, patch)
2009-11-04 11:16 PST, Jenn Braithwaite
levin: review+
Jenn Braithwaite
Comment 1 2009-11-04 11:01:58 PST
Created attachment 42497 [details] Proposed fix
David Levin
Comment 2 2009-11-04 11:09:35 PST
Comment on attachment 42497 [details] Proposed fix > Index: WebCore/ChangeLog > + Adding applicationCacheEnabled bit to V8 RuntimeEnabledFeatures. There is a TAB in the changelog that needs to be removed. Nice start, but this is incomplete as discussed.
Jenn Braithwaite
Comment 3 2009-11-04 11:16:35 PST
Created attachment 42499 [details] Revised fix
David Levin
Comment 4 2009-11-04 11:22:33 PST
Comment on attachment 42499 [details] Revised fix > Index: WebCore/ChangeLog > + Just adding a bit, so new tests. I think you have not really changed the visible functionality so no new tests. > Index: WebCore/bindings/v8/custom/V8CustomBinding.h > #if ENABLE(OFFLINE_WEB_APPLICATIONS) > + DECLARE_ACCESSOR_RUNTIME_ENABLER(DOMApplicationCache); Another TAB to remove. I can fix this on landing.
David Levin
Comment 5 2009-11-04 16:36:17 PST
Note You need to log in before you can comment on or make changes to this bug.