Changeset 147754 in webkit
- Timestamp:
- Apr 5, 2013 9:40:31 AM (11 years ago)
- Location:
- trunk/Source
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/mac/ChangeLog
r147485 r147754 1 2013-04-05 Timothy Hatcher <timothy@apple.com> 2 3 Allow the Web Inspector to use WebSQL. 4 5 This fixes an exception on load in the Safari Web Inspector. 6 7 https://webkit.org/b/114040 8 rdar://problem/13581422 9 10 Reviewed by Anders Carlsson. 11 12 * WebCoreSupport/WebInspectorClient.mm: 13 (-[WebInspectorWindowController webView:frame:exceededDatabaseQuotaForSecurityOrigin:database:]): Added. 14 1 15 2013-04-02 Timothy Hatcher <timothy@apple.com> 2 16 -
trunk/Source/WebKit/mac/WebCoreSupport/WebInspectorClient.mm
r147482 r147754 34 34 #import "WebFrameView.h" 35 35 #import "WebInspector.h" 36 #import "WebInspectorFrontend.h" 36 37 #import "WebInspectorPrivate.h" 37 #import "WebInspectorFrontend.h"38 38 #import "WebLocalizableStringsInternal.h" 39 39 #import "WebNodeHighlighter.h" 40 #import "WebPolicyDelegate.h" 41 #import "WebQuotaManager.h" 42 #import "WebSecurityOriginPrivate.h" 40 43 #import "WebUIDelegate.h" 41 #import "WebPolicyDelegate.h"42 44 #import "WebViewInternal.h" 45 #import <algorithm> 43 46 #import <WebCore/Frame.h> 44 47 #import <WebCore/InspectorController.h> … … 688 691 } 689 692 693 - (void)webView:(WebView *)sender frame:(WebFrame *)frame exceededDatabaseQuotaForSecurityOrigin:(WebSecurityOrigin *)origin database:(NSString *)databaseIdentifier 694 { 695 id <WebQuotaManager> databaseQuotaManager = origin.databaseQuotaManager; 696 databaseQuotaManager.quota = std::max<unsigned long long>(5 * 1024 * 1024, databaseQuotaManager.usage * 1.25); 697 } 698 690 699 // MARK: - 691 700 // MARK: Policy delegate -
trunk/Source/WebKit2/ChangeLog
r147752 r147754 1 2013-04-05 Timothy Hatcher <timothy@apple.com> 2 3 Allow the Web Inspector to use WebSQL. 4 5 This fixes an exception on load in the Safari Web Inspector. 6 7 https://webkit.org/b/114040 8 rdar://problem/13581422 9 10 Reviewed by Anders Carlsson. 11 12 * UIProcess/mac/WebInspectorProxyMac.mm: 13 (WebKit::exceededDatabaseQuota): Added. 14 (WebKit::WebInspectorProxy::platformCreateInspectorPage): Hook up exceededDatabaseQuota. 15 1 16 2013-04-04 Brady Eidson <beidson@apple.com> 2 17 -
trunk/Source/WebKit2/UIProcess/mac/WebInspectorProxyMac.mm
r147004 r147754 37 37 #import "WebPreferences.h" 38 38 #import "WebProcessProxy.h" 39 #import <algorithm> 39 40 #import <mach-o/dyld.h> 40 41 #import <WebKitSystemInterface.h> … … 223 224 224 225 webInspectorProxy->setInspectorWindowFrame(frame); 226 } 227 228 static unsigned long long exceededDatabaseQuota(WKPageRef, WKFrameRef, WKSecurityOriginRef, WKStringRef, WKStringRef, unsigned long long, unsigned long long, unsigned long long currentDatabaseUsage, unsigned long long expectedUsage, const void*) 229 { 230 return std::max<unsigned long long>(expectedUsage, currentDatabaseUsage * 1.25); 225 231 } 226 232 … … 411 417 0, // didDraw 412 418 0, // pageDidScroll 413 0, // exceededDatabaseQuota419 exceededDatabaseQuota, 414 420 0, // runOpenPanel 415 421 0, // decidePolicyForGeolocationPermissionRequest
Note: See TracChangeset
for help on using the changeset viewer.