1 2007-11-27 Anders Carlsson <andersca@apple.com>
5 * Storage/WebDatabaseManager.mm:
6 * Storage/WebDatabaseManagerPrivate.h:
7 * Storage/WebDatabaseTrackerClient.mm:
8 (WebDatabaseTrackerClient::dispatchDidModifyOrigin):
9 (WebDatabaseTrackerClient::dispatchDidModifyDatabase):
10 * Storage/WebSecurityOrigin.mm:
11 (-[WebSecurityOrigin _initWithWebCoreSecurityOriginData:]):
12 * Storage/WebSecurityOriginInternal.h:
14 2007-11-27 Kevin Decker <kdecker@apple.com>
16 Reviewed by Darin, landed by Anders.
18 Fixed: <rdar://problem/4610818> CrashTracer: 1533 crashes in Safari at com.macromedia.Flash Player.plugin: native_ShockwaveFlash_TCallLabel + 271131
20 The problem was that some Leopard users were still inadvertently using the old Flash 8 plug-in, even though Leopard
21 shipped with Flash 9. To avoid loading an older version of a plug-in when a newer version is installed, the plug-in
22 database will compare bundle versions and always load the latest version.
24 * Plugins/WebBasePluginPackage.h:
25 * Plugins/WebBasePluginPackage.m:
26 (-[WebBasePluginPackage versionNumber]): New method. CFBundleGetVersionNumber doesn't work with all possible versioning schemes,
27 but we think for now it's good enough for us.
28 * Plugins/WebPluginDatabase.m:
29 (considerCandidate): Added a C utility function which compares the current plug-in against a candidate plug-in's version number.
30 If both plug-ins have the same bundle ID and the candiate is newer, the current plug-in becomes the candidate.
31 (-[WebPluginDatabase pluginForKey:withEnumeratorSelector:]): Calls the new considerCandidate() function.
33 2007-11-26 Timothy Hatcher <timothy@apple.com>
35 Reviewed by Dave Hyatt.
37 <rdar://problem/5569233> Add the ability to disable author and user CSS styles
39 * WebView/WebPreferenceKeysPrivate.h: Define WebKitRespectStandardStyleKeyEquivalentsPreferenceKey.
40 * WebView/WebPreferences.m:
41 (+[WebPreferences initialize]): Default WebKitRespectStandardStyleKeyEquivalentsPreferenceKey to YES.
42 (-[WebPreferences authorAndUserStylesEnabled]): Return the setting's BOOL value.
43 (-[WebPreferences setAuthorAndUserStylesEnabled:]): Set the setting's BOOL value.
44 * WebView/WebPreferencesPrivate.h: Add authorAndUserStylesEnabled and setAuthorAndUserStylesEnabled:.
46 (-[WebView _preferencesChangedNotification:]): Update WebCore::Settings::authorAndUserStylesEnabled.
48 2007-11-26 Brady Eidson <beidson@apple.com>
52 Provide API for setting the default storage quota per database origin
54 * Misc/WebNSDictionaryExtras.h:
55 * Misc/WebNSDictionaryExtras.m:
56 (-[NSMutableDictionary _webkit_setUnsignedLongLong:forKey:]): Helper for UINT64 preferences
58 * WebView/WebPreferenceKeysPrivate.h:
59 * WebView/WebPreferences.m:
60 (-[WebPreferences _unsignedLongLongValueForKey:]): Helper for UINT64 prefs
61 (-[WebPreferences _setUnsignedLongLongValue:forKey:]): Ditto
62 (-[WebPreferences defaultDatabaseQuota]):
63 (-[WebPreferences setDefaultDatabaseQuota:]):
64 * WebView/WebPreferencesPrivate.h:
67 (-[WebView _preferencesChangedNotification:]): Set the WebCore Settings version of the default storage pref
69 2007-11-26 Darin Adler <darin@apple.com>
73 - some middle-mouse-button-related fixes
75 These don't affect Safari since it maps the middle mouse button to the command key,
76 but that might not always be the case for future versions.
78 * WebView/WebHTMLView.mm:
79 (-[WebHTMLView otherMouseDown:]): Pass through middle mouse down events to WebCore.
80 (-[WebHTMLView otherMouseDragged:]): Ditto, for drag events.
81 (-[WebHTMLView otherMouseUp:]): Ditto, for up events.
83 * WebView/WebPolicyDelegate.h: Fixed inaccurate documentation of WebActionButtonKey.
85 2007-11-26 Anders Carlsson <andersca@apple.com>
89 Get rid of the WebSecurityOriginPrivate object and store
90 the WebCore::SecurityOriginData pointer in the _private field of
91 the WebSecurityOrigin object instead.
93 * Storage/WebDatabaseManager.mm:
94 (-[WebDatabaseManager databasesWithOrigin:]):
95 (-[WebDatabaseManager detailsForDatabase:withOrigin:]):
96 (-[WebDatabaseManager deleteDatabasesWithOrigin:]):
97 (-[WebDatabaseManager deleteDatabase:withOrigin:]):
98 * Storage/WebSecurityOrigin.mm:
99 (-[WebSecurityOrigin initWithProtocol:domain:port:]):
100 (-[WebSecurityOrigin protocol]):
101 (-[WebSecurityOrigin domain]):
102 (-[WebSecurityOrigin port]):
103 (-[WebSecurityOrigin usage]):
104 (-[WebSecurityOrigin quota]):
105 (-[WebSecurityOrigin setQuota:]):
106 (-[WebSecurityOrigin dealloc]):
107 (-[WebSecurityOrigin finalize]):
108 (-[WebSecurityOrigin _initWithWebCoreSecurityOriginData:]):
109 (-[WebSecurityOrigin _core]):
110 * Storage/WebSecurityOriginInternal.h:
112 2007-11-26 Timothy Hatcher <timothy@apple.com>
114 Reviewed by Adam Roben.
116 Bug 16137: Web Inspector window on Leopard should have a unified toolbar and window title
117 http://bugs.webkit.org/show_bug.cgi?id=16137
119 Create the Web Inspector window with the textured style. Set the content border
120 thickness for the top of the window or the height of the toolbar. Also make the
121 window's bottom corners square, since a normal textured window normally has
122 rounded bottom corners.
124 * WebCoreSupport/WebInspectorClient.mm:
125 (-[WebInspectorWindowController window]):
127 2007-11-24 Mark Rowe <mrowe@apple.com>
131 * Plugins/WebBaseNetscapePluginStream.mm:
132 (CarbonPathFromPOSIXPath): Use WebCFAutorelease as this also works on Tiger.
134 2007-11-24 Mark Rowe <mrowe@apple.com>
136 Reviewed by Tim Hatcher.
138 Fix <rdar://problem/5432686> 333MB RPRVT seems to leak @ www.43folders.com (1hr plug-in stream).
139 http://bugs.webkit.org/show_bug.cgi?id=13705
141 Have NP_ASFILE and NP_ASFILEONLY streams write the data to disk as they receive it rather than
142 dumping the data to disk in a single go when the stream has completed loading. On a test case
143 involving a 150MB Flash movie being streamed from a local web server this reduces memory consumption
144 on page load from around 400MB to 22MB.
146 The only plugin I have found that uses NP_ASFILE or NP_ASFILEONLY on the Mac is our NetscapeMoviePlugin
147 example code so the NP_ASFILE portion of this change has not had any testing with a real-world plugin.
149 * Plugins/WebBaseNetscapePluginStream.h:
150 * Plugins/WebBaseNetscapePluginStream.mm:
151 (-[WebBaseNetscapePluginStream initWithRequestURL:plugin:notifyData:sendNotification:]):
152 (-[WebBaseNetscapePluginStream dealloc]):
153 (-[WebBaseNetscapePluginStream finalize]):
154 (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:headers:]):
155 (-[WebBaseNetscapePluginStream _destroyStream]): Update to work with paths as NSStrings.
156 (-[WebBaseNetscapePluginStream _deliverDataToFile:]): Open the file if it is not already open, and write any data
158 (-[WebBaseNetscapePluginStream finishedLoading]): If the stream is NP_ASFILE or NP_ASFILEONLY we need to ensure
159 that the file exists before _destroyStream passes it to the plugin. Simulating the arrival of an empty data block
160 ensure that the file will be created if it has not already.
161 (-[WebBaseNetscapePluginStream receivedData:]):
162 (CarbonPathFromPOSIXPath):
163 * Plugins/WebBaseNetscapePluginView.mm:
164 (-[WebBaseNetscapePluginView pluginViewFinishedLoading:]): Data is dealt with incrementally so there's no need to pass
165 it to finishedLoading.
166 (-[WebBaseNetscapePluginView evaluateJavaScriptPluginRequest:]): Ditto.
168 2007-11-23 Oliver Hunt <oliver@apple.com>
170 Reviewed by Mark Rowe.
172 Fixed <rdar://problem/3759190> allow input methods the option of processing mouse events themselves
174 * WebView/WebHTMLView.mm:
175 (-[WebHTMLView mouseDown:]):
177 2007-11-22 Dan Bernstein <mitz@apple.com>
179 Reviewed by Antti Koivisto.
181 - http://bugs.webkit.org/show_bug.cgi?id=15811
182 WebKit plug-ins can re-enter WebKit under attach()
183 <rdar://problem/5577978>
185 * Plugins/WebNullPluginView.mm:
186 (-[WebNullPluginView viewDidMoveToWindow]): Removed workaround for the
187 above bug that added as part of fixing
188 <http://bugs.webkit.org/show_bug.cgi?id=15804>.
190 2007-11-21 Mark Rowe <mrowe@apple.com>
194 Fix WebKit to build without warnings under GCC 4.2.
196 * Configurations/Base.xcconfig:
198 2007-11-21 Mark Rowe <mrowe@apple.com>
200 Reviewed by Tim Hatcher.
202 Changes due to <rdar://problem/5602936> Need to resolve new GCC 4.2 warnings
204 Update format strings to use format specifiers that match the argument types.
206 * Misc/WebGraphicsExtras.c:
207 (WebConvertBGRAToARGB):
209 2007-11-19 Brady Eidson <beidson@apple.com>
213 Finished hooking up the WebKit API for database management.
214 Most of the API is actually implemented in WebCore and some of those methods might
215 only be stubs for now.
217 * Storage/WebDatabaseManager.mm:
218 (-[WebDatabaseManager origins]): Call through to the WebCore tracker and construct an API result
219 (-[WebDatabaseManager databasesWithOrigin:]): Ditto
220 (-[WebDatabaseManager detailsForDatabase:withOrigin:]): Ditto
222 * Storage/WebSecurityOrigin.mm:
223 (-[WebSecurityOrigin usage]): Call through to WebCore
224 (-[WebSecurityOrigin quota]): Ditto
225 (-[WebSecurityOrigin setQuota:]): Ditto
226 (-[WebSecurityOrigin _core]): Get WebCore version of this object
227 * Storage/WebSecurityOriginInternal.h:
229 2007-11-17 Timothy Hatcher <timothy@apple.com>
231 Reviewed by Mark Rowe.
233 Bug 13470: i18n: The Web Inspector is not localizable
234 http://bugs.webkit.org/show_bug.cgi?id=13470
236 Implement the localizedStringsURL() client method to return the
237 localized URL of InspectorLocalizedStrings.js in WebCore.
239 * WebCoreSupport/WebInspectorClient.h: Added localizedStringsURL.
240 * WebCoreSupport/WebInspectorClient.mm:
241 (WebInspectorClient::localizedStringsURL): Added.
242 (WebInspectorClient::updateWindowTitle): Localized the window title.
243 (-[WebInspectorWindowController init]): Remove a FIXME that dosen't make sense anymore.
244 (-[WebInspectorWindowController initWithInspectedWebView:]): Code style cleanup.
246 2007-11-17 Alexey Proskuryakov <ap@webkit.org>
250 http://bugs.webkit.org/show_bug.cgi?id=15969
251 Eliminate Editor::deleteRange()
253 * WebView/WebHTMLView.mm:
254 (+[WebHTMLView initialize]):
255 (-[WebHTMLView yank:]):
256 (-[WebHTMLView yankAndSelect:]):
257 (-[WebHTMLView setMark:]):
258 (-[WebHTMLView deleteToMark:]):
259 (-[WebHTMLView selectToMark:]):
260 (-[WebHTMLView swapWithMark:]):
261 Pushed all kill ring methods to WebCore. They were guilty of using Editor::deleteRange()!
263 2007-11-16 Mark Rowe <mrowe@apple.com>
265 Reviewed by Tim Hatcher.
267 Build WebCore as a sub-framework of WebKit in all configurations.
269 * Configurations/WebKit.xcconfig:
271 2007-11-16 John Sullivan <sullivan@apple.com>
276 Exported some new database-related symbols
278 2007-11-16 Brady Eidson <beidson@apple.com>
282 Database management API tweaks
284 Fleshed out "WebSecurityOrigin" to be the API object representing an origin. This relieves some
285 burden off WebDatabaseManager and allows usage/quota operations on the SecurityOrigin object itself
287 Also added a new subdirectory for Storage related API - Why are we afraid to add new directories to
290 * Misc/WebSecurityOrigin.mm: Removed.
291 * Misc/WebSecurityOriginInternal.h: Removed.
292 * Misc/WebSecurityOriginPrivate.h: Removed.
294 * Storage/WebDatabaseManager.mm: Work in terms of WebSecurityOrigin
295 * Storage/WebDatabaseManagerPrivate.h:
297 * Storage/WebSecurityOrigin.mm: Added.
298 (-[WebSecurityOriginPrivate initWithProtocol:domain:port:]):
299 (-[WebSecurityOriginPrivate initWithWebCoreSecurityOrigin:]):
300 (-[WebSecurityOriginPrivate finalize]):
301 (-[WebSecurityOriginPrivate dealloc]):
302 (-[WebSecurityOrigin initWithProtocol:domain:]):
303 (-[WebSecurityOrigin initWithProtocol:domain:port:]):
304 (-[WebSecurityOrigin protocol]):
305 (-[WebSecurityOrigin domain]):
306 (-[WebSecurityOrigin port]):
307 (-[WebSecurityOrigin usage]):
308 (-[WebSecurityOrigin quota]):
309 (-[WebSecurityOrigin setQuota:]): Clients will set quotas on the WebSecurityOrigin object itself
310 (-[WebSecurityOrigin dealloc]):
311 (-[WebSecurityOrigin _initWithWebCoreSecurityOriginData:]):
312 * Storage/WebSecurityOriginInternal.h: Added.
313 * Storage/WebSecurityOriginPrivate.h: Added.
315 2007-11-15 Brady Eidson <beidson@apple.com>
319 Stubbing out everything required for a WebKit API for databases
321 These interfaces seem to provide everything we need for UI and management at the browser level
323 * Misc/WebDatabaseManager.h: Removed.
324 * Misc/WebDatabaseManager.mm: Removed.
325 * Misc/WebDatabaseManagerPrivate.h: Removed.
327 * Misc/WebSecurityOrigin.mm: Added. Object that acts as a container for the "SecurityOrigin tuple"
328 (protocol, domain, and port)
329 (-[WebSecurityOriginPrivate initWithProtocol:domain:port:]):
330 (-[WebSecurityOriginPrivate dealloc]):
331 (-[WebSecurityOrigin initWithProtocol:domain:]):
332 (-[WebSecurityOrigin initWithProtocol:domain:port:]):
333 (-[WebSecurityOrigin protocol]):
334 (-[WebSecurityOrigin domain]):
335 (-[WebSecurityOrigin port]):
336 (-[WebSecurityOrigin dealloc]):
337 (-[WebSecurityOrigin _initWithWebCoreSecurityOriginData:WebCore::]):
338 * Misc/WebSecurityOriginInternal.h: Added.
339 * Misc/WebSecurityOriginPrivate.h: Added.
341 * Storage/WebDatabaseManager.mm: Added.
342 (+[WebDatabaseManager sharedWebDatabaseManager]):
343 (-[WebDatabaseManager origins]): Get a list of all origins currently tracked
344 (-[WebDatabaseManager detailsForOrigin:]): Get the current usage and current quota for the given origin
345 (-[WebDatabaseManager databasesWithOrigin:]): Get all databases for a certain origin
346 (-[WebDatabaseManager detailsForDatabase:withOrigin:]): Get all details about a specific database
347 (-[WebDatabaseManager setQuota:forOrigin:]): Change origin-wide quota
348 (-[WebDatabaseManager deleteAllDatabases]):
349 (-[WebDatabaseManager deleteAllDatabasesWithOrigin:]):
350 (-[WebDatabaseManager deleteDatabase:withOrigin:]):
351 * Storage/WebDatabaseManagerPrivate.h: Added.
352 * Storage/WebDatabaseManagerInternal.h: Added.
353 (WebKitInitializeDatabasesIfNecessary): One-time initialization of database-related things
355 * Storage/WebDatabaseTrackerClient.h: Added. Stubbed out client for notifications
356 * Storage/WebDatabaseTrackerClient.mm: Added.
357 (WebDatabaseTrackerClient::sharedWebDatabaseTrackerClient):
358 (WebDatabaseTrackerClient::WebDatabaseTrackerClient):
359 (WebDatabaseTrackerClient::~WebDatabaseTrackerClient):
360 (WebDatabaseTrackerClient::dispatchDidModifyOrigin):
361 (WebDatabaseTrackerClient::dispatchDidModifyDatabase):
363 * WebView/WebView.mm:
364 (-[WebView _commonInitializationWithFrameName:groupName:]): Do one-time initialization of
365 Database-related things here
367 2007-11-13 Geoffrey Garen <ggaren@apple.com>
369 Reviewed by Anders Carlsson.
371 Renamed Shared to RefCounted.
373 * ForwardingHeaders/wtf/RefCounted.h: Copied from WebKit/mac/ForwardingHeaders/wtf/Shared.h.
374 * ForwardingHeaders/wtf/Shared.h: Removed.
375 * WebCoreSupport/WebContextMenuClient.h:
377 2007-11-13 Geoffrey Garen <ggaren@apple.com>
379 Reviewed by Sam Weinig.
381 Moved Shared.h into wtf so it could be used in more places.
384 * WebCoreSupport/WebContextMenuClient.h:
386 2007-11-13 John Sullivan <sullivan@apple.com>
390 removed recently-added PreferredType concept; we found a better way to do what
391 ths was accomplishing
393 * WebCoreSupport/WebChromeClient.mm:
394 (WebChromeClient::createWindow):
395 removed use of PreferredType
397 2007-11-13 John Sullivan <sullivan@apple.com>
399 Reviewed by Dan Bernstein.
401 - fixed <rdar://problem/5567954> REGRESSION (Safari 2-3): Autofill no longer automatically fills in
402 form fields other than the one you're typing into
404 * WebCoreSupport/WebEditorClient.mm:
405 (selectorForKeyEvent):
406 correct the key identifier strings for Tab and Esc; these were updated in WebCore as part of r21445
407 but didn't get updated here.
409 2007-11-12 Josh Aas <joshmoz@gmail.com>
413 - http://bugs.webkit.org/show_bug.cgi?id=15946
414 add NPPValue NPPVpluginDrawingModel (Mozilla bug 403418 compat)
416 * Plugins/WebBaseNetscapePluginView.mm:
417 (-[WebBaseNetscapePluginView setVariable:value:]):
419 2007-11-12 Alexey Proskuryakov <ap@webkit.org>
423 http://bugs.webkit.org/show_bug.cgi?id=15954
424 Move DOM Selection operations out of SelectionController
426 * WebView/WebHTMLView.mm:
427 (-[WebHTMLView _expandSelectionToGranularity:]):
428 (-[WebHTMLView selectToMark:]):
429 (-[WebHTMLView swapWithMark:]):
430 * WebView/WebView.mm:
431 (-[WebView setSelectedDOMRange:affinity:]):
432 Adapted for SelectionController::setSelectedRange() now returning a bool.
434 2007-11-12 Oliver Hunt <oliver@apple.com>
436 Reviewed by Darin and Geoff.
438 <rdar://problem/5522011> The content of the password field of
439 Safari is displayed by reconversion.
441 Some input methods (notably Kotoeri) can incorrectly provide
442 access to the raw text of a password field. To work around
443 this we forcefully override the inputContext whenever a password
446 * WebView/WebHTMLView.mm:
447 (-[WebHTMLView inputContext]):
449 2007-11-12 John Sullivan <sullivan@apple.com>
451 Reviewed by Tim Hatcher
453 - speculative fix for <rdar://problem/5509989> CrashTracer: [USER] 1 crash in Safari at com.apple.WebKit:
454 -[WebPDFView(FileInternal) _updatePreferencesSoon] + 56
456 The crash is probably due to messaging a dealloc'ed dataSource ivar. The dataSource ivar isn't retained
457 by this class, but should be. (It is retained by WebHTMLView, e.g.).
459 * WebView/WebPDFView.mm:
460 (-[WebPDFView dealloc]):
461 release dataSource ivar
462 (-[WebPDFView setDataSource:]):
463 retain dataSource ivar
465 2007-11-09 Tristan O'Tierney <tristan@apple.com>
467 Reviewed by Timothy Hatcher.
469 This patch is for the WebKit side of <rdar://problem/5591115>.
470 We need a way to tell context menu navigations, such as "Open in New Window"
471 to override any sort of browser preference for tab based navigation.
473 * WebCoreSupport/WebChromeClient.mm:
474 (WebChromeClient::createWindow):
475 Pass up the new preferredType parameter as a string.
477 2007-11-09 Timothy Hatcher <timothy@apple.com>
481 <rdar://problem/5103720> REGRESSION: [WebView stringByEvaluatingJavaScriptFromString:] fails if "return" is used
483 Extend the linked on or after check to every application when a script passed to
484 stringByEvaluatingJavaScriptFromString: has a return statement. Before the check
485 was limited to VitalSource Bookshelf, but other developers are running into this.
487 * Misc/WebKitVersionChecks.h: Add the WEBKIT_FIRST_VERSION_WITHOUT_JAVASCRIPT_RETURN_QUIRK define.
488 * WebView/WebDocumentLoaderMac.mm:
489 (needsDataLoadWorkaround): Use WEBKIT_FIRST_VERSION_WITHOUT_ADOBE_INSTALLER_QUIRK sicne the
490 WebKitLinkedOnOrAfter check here was about the Adobe installer, not VitalSource.
491 * WebView/WebView.mm:
492 (-[WebView stringByEvaluatingJavaScriptFromString:]): Remove the bundle ID check and use
493 WEBKIT_FIRST_VERSION_WITHOUT_JAVASCRIPT_RETURN_QUIRK for the WebKitLinkedOnOrAfter call.
495 2007-11-08 Kevin McCullough <kmccullough@apple.com>
499 * WebCoreSupport/WebFrameLoaderClient.h:
500 * WebCoreSupport/WebFrameLoaderClient.mm:
501 (WebFrameLoaderClient::windowObjectCleared):
503 2007-11-07 Darin Adler <darin@apple.com>
507 - removed some unused WebCore bridge methods
509 * WebCoreSupport/WebFrameBridge.mm: Removed issueTransposeCommand and overrideMediaType.
511 * WebCoreSupport/WebFrameLoaderClient.mm:
512 (WebFrameLoaderClient::overrideMediaType): Changed to call WebView directly instead of
513 using the bridge object.
515 2007-11-06 Mark Rowe <mrowe@apple.com>
517 Rubber-stamped by Dave Kilzer.
519 Move Mac files from WebKit into WebKit/mac.
521 * Carbon: Copied from WebKit/Carbon.
522 * ChangeLog: Copied from WebKit/ChangeLog.
523 * ChangeLog-2002-12-03: Copied from WebKit/ChangeLog-2002-12-03.
524 * ChangeLog-2006-02-09: Copied from WebKit/ChangeLog-2006-02-09.
525 * ChangeLog-2007-10-14: Copied from WebKit/ChangeLog-2007-10-14.
526 * Configurations: Copied from WebKit/Configurations.
527 * DOM: Copied from WebKit/DOM.
528 * DefaultDelegates: Copied from WebKit/DefaultDelegates.
529 * ForwardingHeaders: Copied from WebKit/ForwardingHeaders.
530 * History: Copied from WebKit/History.
531 * Info.plist: Copied from WebKit/Info.plist.
532 * MigrateHeaders.make: Copied from WebKit/MigrateHeaders.make.
533 * Misc: Copied from WebKit/Misc.
534 * Panels: Copied from WebKit/Panels.
535 * Plugins: Copied from WebKit/Plugins.
536 * PublicHeaderChangesFromTiger.txt: Copied from WebKit/PublicHeaderChangesFromTiger.txt.
537 * Resources: Copied from WebKit/Resources.
538 * WebCoreSupport: Copied from WebKit/WebCoreSupport.
539 * WebInspector: Copied from WebKit/WebInspector.
540 * WebKit.exp: Copied from WebKit/WebKit.exp.
541 * WebKit.order: Copied from WebKit/WebKit.order.
542 * WebKitPrefix.h: Copied from WebKit/WebKitPrefix.h.
543 * WebView: Copied from WebKit/WebView.
544 * icu: Copied from WebKit/icu.
546 2007-11-06 Alexey Proskuryakov <ap@webkit.org>
550 http://bugs.webkit.org/show_bug.cgi?id=15847
553 No change in functionality.
555 * WebView/WebHTMLView.mm:
556 (-[WebHTMLView deleteToEndOfLine:]):
557 (-[WebHTMLView deleteToEndOfParagraph:]):
558 WebCore had a duplicate of the same logic already. We are passing a boundary value to
559 a function that expects granularity, this may need to be straightened out in the future.
561 2007-11-05 John Sullivan <sullivan@apple.com>
563 * WebView/WebView.mm:
564 (-[WebView _searchWithSpotlightFromMenu:]):
566 Teeny style tweak to test svn access on other machine
568 2007-11-05 John Sullivan <sullivan@apple.com>
570 * WebView/WebView.mm:
571 (-[WebView computedStyleForElement:pseudoElement:]):
573 Teeny style tweak to test svn access
575 2007-11-02 Tristan O'Tierney <tristan@apple.com>
577 Reviewed by Darin Adler.
579 * DefaultDelegates/WebDefaultUIDelegate.m:
580 (-[WebDefaultUIDelegate webView:createWebViewWithRequest:windowFeatures:]):
581 Forward the UI delegate to call webView:createWebViewWithRequest: if
582 this method doesn't exist.
584 * WebCoreSupport/WebFrameLoaderClient.mm:
585 (WebFrameLoaderClient::dispatchCreatePage):
586 * Plugins/WebBaseNetscapePluginView.mm:
587 (-[WebBaseNetscapePluginView loadPluginRequest:]):
588 * WebView/WebView.mm:
589 (-[WebView _openNewWindowWithRequest:]):
590 Revised to use new webView:createWebViewWithRequest:windowFeatures: callback.
592 * WebCoreSupport/WebChromeClient.h:
593 * WebCoreSupport/WebChromeClient.mm:
594 (WebChromeClient::createWindow):
595 Added a new createWindow that accepts 3 parameters, so we can pass up windowFeatures to the chrome.
596 Removed createModalDialog to use new createWindow function.
598 * WebView/WebUIDelegatePrivate.h:
599 Added new webView:createWebViewWithRequest:windowFeatures: method.
601 2007-11-05 Geoffrey Garen <ggaren@apple.com>
603 Reviewed by Darin Adler.
605 http://bugs.webkit.org/show_bug.cgi?id=15835
607 Small adaptations to new KJS::List class.
609 * ForwardingHeaders/kjs/value.h: Added.
611 2007-11-03 David D. Kilzer <ddkilzer@webkit.org>
613 Sort files(...); sections of Xcode project files.
615 Rubber-stamped by Darin.
617 * WebKit.xcodeproj/project.pbxproj:
619 2007-11-02 Antti Koivisto <antti@apple.com>
623 Add method to enable video composition.
625 * WebCoreSupport/WebSystemInterface.m:
626 (InitWebCoreSystemInterface):
628 2007-11-02 Darin Adler <darin@apple.com>
632 - fix problem I ran into while doing some testing on Mac for
633 <rdar://problem/5530185> WebKit does not show <object>
634 fallback content when both URL and MIME type is omitted
636 I don't know how to reproduce this failure in DumpRenderTree, so there is no
639 * Plugins/WebNullPluginView.h: Removed some unneeded declarations, including
640 the didSendError local variable. Instead we just set the error to nil once
642 * Plugins/WebNullPluginView.mm:
643 (-[WebNullPluginView initWithFrame:error:DOMElement:]): Refactored so that
644 the null plug-in image code is separate from the rest of the function and
645 so that the whole thing is not inside an if statement. Also don't hold a
646 reference to the DOM element if there is no error to report.
647 (-[WebNullPluginView reportFailure]): Added. Does the actual delegate
648 callback. Happens back at the top level of the run loop so it doesn't
649 fire deep inside layout. Also wrote this so that it is guaranteed not to
650 reenter and so that it can handle the case where the delegate destroys
651 the world (including this object). NOTE: This is not a real, general
652 solution to the problem of plug-ins that do work inside layout. We will need
653 a more general fix that works for other plug-ins, and we'll track that with
654 a separate bug report.
655 (-[WebNullPluginView viewDidMoveToWindow]): Removed most of the code;
656 changed so it just does a performSelector:afterDelay:0.
658 2007-11-02 Mark Rowe <mrowe@apple.com>
660 Reviewed by Darin Adler.
662 Fix http://bugs.webkit.org/show_bug.cgi?id=15780
663 Bug 15780: WebFrameLoaderClient: WebActionElementKey wrong if view is scrolled
665 * WebCoreSupport/WebFrameLoaderClient.mm:
666 (WebFrameLoaderClient::actionDictionary): Retrieve the mouse event coordinates
667 in the page coordinate system rather than the client area coordinate system.
669 2007-11-01 Dan Bernstein <mitz@apple.com>
671 Reviewed by Oliver Hunt.
673 - fix an assertion failure when Command-Tabbing out of Safari
675 * WebView/WebHTMLView.mm:
676 (-[WebHTMLView flagsChanged:]): Avoid passing key code 0 down to
679 2007-11-01 Justin Garcia <justin.garcia@apple.com>
681 Reviewed by Oliver Hunt.
683 <rdar://problem/5195056> Huge plain text pastes are slow, time spent in ApplyStyleCommand::doApply
685 No need to match style when pasting plain text, since the fragment we build for plain text
686 won't have any style information on it.
688 * WebView/WebHTMLView.mm:
689 (-[WebHTMLView _documentFragmentFromPasteboard:inContext:allowPlainText:]): There's no
690 longer a need to know whether this function chosePlaintext.
691 (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]):
692 (-[WebHTMLView _documentFragmentFromPasteboard:]):
694 2007-10-31 Timothy Hatcher <timothy@apple.com>
696 Reviewed by John Sullivan.
698 Move the developer extras preference to WebPreferences.
700 * WebView/WebPreferenceKeysPrivate.h: Add WebKitDeveloperExtrasEnabledPreferenceKey
701 * WebView/WebPreferences.m:
702 (+[WebPreferences initialize]): Initialize WebKitDeveloperExtrasEnabledPreferenceKey to NO.
703 (-[WebPreferences developerExtrasEnabled]): Check DisableWebKitDeveloperExtras, WebKitDeveloperExtras
704 and IncludeDebugMenu in addition to WebKitDeveloperExtrasEnabledPreferenceKey.
705 (-[WebPreferences setDeveloperExtrasEnabled:]): Set WebKitDeveloperExtrasEnabledPreferenceKey.
706 * WebView/WebPreferencesPrivate.h: Add developerExtrasEnabled and setDeveloperExtrasEnabled:.
707 * WebView/WebView.mm:
708 (+[WebView _developerExtrasEnabled]): Removed.
709 (-[WebView _preferencesChangedNotification:]): Check the WebPreferences object for developerExtrasEnabled.
710 * WebView/WebViewPrivate.h: Removed _developerExtrasEnabled.
712 2007-10-30 David D. Kilzer <ddkilzer@webkit.org>
714 Generated files missing from WebCore's Xcode project file
715 <http://bugs.webkit.org/show_bug.cgi?id=15406>
719 Added the following private header files to MigrateHeaders.make:
721 - DOMCSSStyleSheetPrivate.h
723 - DOMHTMLCollectionPrivate.h
724 - DOMHTMLEmbedElementPrivate.h
725 - DOMHTMLIFrameElementPrivate.h
726 - DOMHTMLObjectElementPrivate.h
727 - DOMHTMLSelectElementPrivate.h
729 * MigrateHeaders.make:
731 2007-10-29 Antti Koivisto <antti@apple.com>
735 Some SPIs for media support.
737 * WebCoreSupport/WebSystemInterface.m:
738 (InitWebCoreSystemInterface):
740 2007-10-29 Timothy Hatcher <timothy@apple.com>
742 Reviewed by John Sullivan.
744 Various semi-related changes:
745 - A WebView can now be asked for it's WebInspector. There is one
746 WebInspector per WebView.
747 - Refactor the WebInspector class and move obsolete methods to
749 - Add new WebInspector methods to show, hide and show the
750 console/timeline panels.
751 - Add an isDisabled method to WebCache.
752 - Allow WebLocalizableStrings.h to be used in C files.
754 * Misc/WebCache.h: Add isDisabled.
756 (+[WebCache isDisabled]): New method.
758 * Misc/WebLocalizableStrings.h: Changes to allow use in plain C files.
760 * WebCoreSupport/WebInspectorClient.mm:
761 (-[WebInspectorWindowController showWindow:]): Call super if already visible
762 so the window will be ordered front.
763 (-[WebInspectorWindowController showWebInspector:]): Method used by menu items,
764 so they are enabled and work when the Inspector window is key.
765 (-[WebInspectorWindowController showErrorConsole:]): Ditto.
766 (-[WebInspectorWindowController showNetworkTimeline:]): Ditto.
768 * WebInspector/WebInspector.h: Add and remove methods.
769 * WebInspector/WebInspector.mm:
770 (-[WebInspector webViewClosed]): Called when the WebView is closed/dealloced.
771 Clears the _webView pointer.
772 (-[WebInspector show:]): Calls thru to the Page's InspectorController.
773 (-[WebInspector showConsole:]): Ditto.
774 (-[WebInspector showTimeline:]): Ditto.
775 (-[WebInspector close:]): Ditto.
776 (-[WebInspector attach:]): Ditto.
777 (-[WebInspector detach:]): Ditto.
778 (+[WebInspector sharedWebInspector]): Moved to the obsolete category.
779 (+[WebInspector webInspector]): Ditto.
780 (-[WebInspector setWebFrame:]): Ditto.
781 (-[WebInspector window]): Ditto.
782 (-[WebInspector showWindow:]): Ditto.
784 * WebView/WebView.mm:
785 (-[WebViewPrivate dealloc]): Release the WebInspector.
786 (-[WebView _close]): Call webViewClosed on the WebInspector.
787 (-[WebView inspector]): Create a WebInspector if needed and return it.
788 * WebView/WebViewPrivate.h: Add the inspector method.
790 2007-10-30 Adele Peterson <adele@apple.com>
794 WebKit part of fix for http://bugs.webkit.org/show_bug.cgi?id=10577
795 <rdar://problem/5103625> REGRESSION: Caps lock icon should show in password fields
797 * WebView/WebHTMLView.mm:
798 (-[WebHTMLView flagsChanged:]): Call capsLockStateMayHaveChanged so WebCore knows it may have to update a password field.
799 (+[WebHTMLView _postFlagsChangedEvent:]): Added a comment with a Radar number for why this isn't just in flagsChanged.
800 (-[WebHTMLView scrollWheel:]): Instead of calling the next responder explicitly, we can just call super, which will take care of this.
802 2007-10-27 Mark Ambachtsheer <mark.a@apple.com>
806 Fix for bug 15710, When QD plugins draw to an offscreen bitmap and the plugin is not at
807 (0, 0) the clipping rectangle is not correct.
808 Added the origin to the window clip rectangle coordinates to account for plugins that
809 don't originate at (0,0); affects code for offscreen GWorlds only.
811 * Plugins/WebBaseNetscapePluginView.mm:
812 (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
814 2007-10-26 Adele Peterson <adele@apple.com>
818 Adding WebKitSystemInterface support for the caps lock indicator
820 * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface):
822 2007-10-25 David Hyatt <hyatt@apple.com>
824 Fix for bug 15672, backgrounds don't tile properly inside transforms. This patch fixes tiling
825 of backgrounds inside CSS transforms and also of HTML content with background images inside SVG
828 Reviewed by aroben and mmitz
830 * WebCoreSupport/WebSystemInterface.m:
831 (InitWebCoreSystemInterface):
832 * WebKit.xcodeproj/project.pbxproj:
834 2007-10-25 John Sullivan <sullivan@apple.com>
836 Reviewed by Tim Hatcher
838 Removed the support for toggling whether WebKit uses the 10.5 PDFKit improvements. Now it
839 always does, when available.
841 * WebView/WebPreferencesPrivate.h:
842 removed _usePDFPreviewView and _setUsePDFPreviewView:. Note that these were guarded with
843 a comment that says that they can be removed when no longer needed. That time is now.
845 * WebView/WebPreferences.m:
846 (+[WebPreferences initialize]):
847 removed WebKitUsePDFPreviewViewPreferenceKey
848 (-[WebPreferences _usePDFPreviewView]):
850 (-[WebPreferences _setUsePDFPreviewView:]):
853 * WebView/WebPDFView.mm:
854 (-[WebPDFView initWithFrame:]):
855 don't check _usePDFPreviewView
857 * WebView/WebPreferenceKeysPrivate.h:
858 removed WebKitUsePDFPreviewViewPreferenceKey
860 2007-10-24 Timothy Hatcher <timothy@apple.com>
862 Reviewed by Mark Rowe.
864 <rdar://problem/5069711> OpenSource version of libWebKitSystemInterface.a is Tiger only, causes issues if used on Leopard
866 Use the WebKitSystemInterface that matches the system version.
868 * Configurations/DebugRelease.xcconfig:
869 * WebKit.xcodeproj/project.pbxproj:
871 2007-10-24 Brady Eidson <beidson@apple.com>
875 <rdar://problem/5554130> DatabaseTracker.o has a global initializer
877 * Misc/WebDatabaseManager.mm:
878 (WebKitSetWebDatabasesPathIfNecessary): Call the member function instead of a static one
880 2007-10-23 Mark Rowe <mrowe@apple.com>
882 Build fix for Eric's build fix in r26916.
884 * MigrateHeaders.make:
886 2007-10-22 Eric Seidel <eric@webkit.org>
890 * MigrateHeaders.make: copy over font-face related DOM headers
892 2007-10-22 Andrew Wellington <proton@wiretapped.net>
894 Reviewed by Mark Rowe.
896 Fix for local database support after r26879
897 Ensure that ENABLE_DATABASE and ENABLE_ICONDATABASE are correctly set
899 * Configurations/WebKit.xcconfig:
901 2007-10-19 Brady Eidson <beidson@apple.com>
903 Reviewed by Tim Hatcher
905 Added support for Chrome prompts required by the Storage API
906 Added support API for future managing of databases from the WebKit client
907 Added preference and initialization for the databases path
909 * Misc/WebDatabaseManager.h: Added. WebDatabaseManager is how a WebKit application can list and
910 remove the current available databases
911 * Misc/WebDatabaseManager.mm: Added.
912 (+[WebDatabaseManager origins]):
913 (+[WebDatabaseManager databasesWithOrigin:]):
914 (+[WebDatabaseManager deleteAllDatabases]):
915 (+[WebDatabaseManager deleteAllDatabasesWithOrigin:]):
916 (+[WebDatabaseManager deleteDatabaseWithOrigin:named:]):
917 (WebKitSetWebDatabasesPathIfNecessary): Setup the database path
918 * Misc/WebDatabaseManagerPrivate.h: Added.
920 * WebCoreSupport/WebChromeClient.h: Support for calling the delegate to run the prompt for
921 an origin exceeding its size limit
922 * WebCoreSupport/WebChromeClient.mm:
923 (WebChromeClient::runDatabaseSizeLimitPrompt):
924 * WebKit.xcodeproj/project.pbxproj:
925 * WebView/WebUIDelegate.h:
927 * WebView/WebView.mm:
928 (-[WebView _commonInitializationWithFrameName:groupName:]): Setup the database path
929 * WebView/WebViewInternal.h:
931 2007-10-19 John Sullivan <sullivan@apple.com>
933 Reviewed by Tim Hatcher
935 - fixed <rdar://problem/5540325> REGRESSION (2.0.4-3): History menu looks odd after clearing history
937 * History/WebHistory.mm:
938 (-[WebHistoryPrivate removeAllItems]):
939 This was fallout from r25275. We need to clear the orderedLastVisitedDays cache here, in addition
940 to the other places where it's cleared.
942 2007-10-18 Dan Bernstein <mitz@apple.com>
946 * WebView/WebDataSource.mm:
947 (-[WebDataSource _MIMETypeOfResponse:]):
949 2007-10-18 Dan Bernstein <mitz@apple.com>
951 Reviewed by Adam Roben.
953 - fix <rdar://problem/5313523>
954 REGRESSION(Leopard): http/tests/incremental/slow-utf8-text.pl fails on Leopard
956 * WebCoreSupport/WebFrameLoaderClient.mm:
957 (WebFrameLoaderClient::makeDocumentView): Changed to use _responseMIMEType.
958 * WebView/WebDataSource.mm:
959 (-[WebDataSource _MIMETypeOfResponse:]): Added. Works around
960 <rdar://problem/5321972> by testing for the case of an NSHTTPURLResponse
961 with a MIMEType of application/octet-stream and a Content-Type header
962 starting with text/plain and returning text/plain as the MIME type in
964 (-[WebDataSource _responseMIMEType]): Added. Used to get the correct
966 (-[WebDataSource _isDocumentHTML]): Changed to use _responseMIMEType.
967 (-[WebDataSource _makeRepresentation]): Ditto.
968 (-[WebDataSource mainResource]): Ditto.
969 (-[WebDataSource subresources]): Changed to use _MIMETypeOfResponse and
970 pass the MIME type explicitly.
971 (-[WebDataSource subresourceForURL:]): Ditto.
972 * WebView/WebDataSourcePrivate.h:
973 * WebView/WebFrameView.mm:
974 (-[WebFrameView _makeDocumentViewForDataSource:]): Changed to use
976 * WebView/WebResource.mm:
977 (-[WebResource _initWithData:URL:response:MIMEType:]): Changed this
978 method to take a MIME type instead of extracting it from the response,
979 so that WebDataSource could pass the correct MIME type.
980 * WebView/WebResourcePrivate.h:
982 2007-10-17 Darin Adler <darin@apple.com>
984 Reviewed by Mark Rowe.
986 - fix <rdar://problem/5183775> Uninitialized memory in -[WebDynamicScrollBarsView updateScrollers]
988 * WebView/WebDynamicScrollBarsView.m: (-[WebDynamicScrollBarsView updateScrollers]):
989 Change code path so it doesn't dispatch a method that returns an NSSize passing a nil object.
990 It's safe to do that for functions that return integers or pointers, but not structures.
992 2007-10-16 David Kilzer <ddkilzer@apple.com>
996 <rdar://problem/5544354> Wrong delegate method called in
997 WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad()
999 * WebCoreSupport/WebFrameLoaderClient.mm:
1000 (WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad): Fixed selector name.
1002 2007-10-16 Darin Adler <darin@apple.com>
1006 - moved transpose command implementation into WebCore
1008 * WebView/WebHTMLView.mm: Removed transpose: and replaced it with standard WebCore forwarding.
1010 2007-10-16 Darin Adler <darin@apple.com>
1012 Reviewed by Maciej and Geoff (and looked over by Eric).
1014 - http://bugs.webkit.org/show_bug.cgi?id=15519
1015 eliminate use of <ctype.h> for processing ASCII
1017 * ForwardingHeaders/wtf/ASCIICType.h: Added.
1018 * ForwardingHeaders/wtf/DisallowCType.h: Added.
1020 * WebKitPrefix.h: Include DisallowCType.h.
1022 * Misc/WebNSURLExtras.mm: (-[NSURL _web_URLWithLowercasedScheme]): Use toASCIILower.
1023 * WebView/WebHTMLView.mm:
1024 (-[WebHTMLView callWebCoreCommand:]): Use toASCIIUpper.
1025 (-[WebTextCompleteController filterKeyDown:]): Add a list of specific character codes,
1026 instead of using ispunct.
1028 2007-10-16 John Sullivan <sullivan@apple.com>
1030 Reviewed by Adam Roben
1032 Cleaned up localizable strings
1034 * English.lproj/Localizable.strings:
1036 * StringsNotToBeLocalized.txt:
1038 * WebKit.xcodeproj/project.pbxproj:
1039 StringsNotToBeLocalized.txt recently moved but project file wasn't updated to match; now it is
1041 2007-10-15 Kevin Decker <kdecker@apple.com>
1043 Reviewed by Darin Adler.
1045 Fixed: <rdar://problem/5520541> REGRESSION: Broken image when forwarding certain email on Tiger
1047 * WebCoreSupport/WebFrameBridge.mm: The problem was that we were loading Mail's WebKit plug-in
1048 too soon, which borked some necessary housekeeping on behalf of Mail. The fix is to add a quirk
1049 that treats Tiger Mail's WebKit plug-in like a Netscape plug-in, thus ensuring the plug-in will
1050 load during first layout and not attach time. For this plug-in, loading at first layout is
1051 expected and is consistent with Safari 2 behavior.
1053 2007-10-15 John Sullivan <sullivan@apple.com>
1055 Reviewed by Geoff Garen
1057 Replaced NS_DURING/NS_HANDLER with @try/@catch throughout WebKit
1059 I made the following changes:
1060 - replaced NS_DURING with @try, and added opening brace if there wasn't one
1061 - replaced NS_HANDLER with @catch (NSException *localException), and added braces if there weren't any
1062 - removed NS_ENDHANDLER, and added a closing brace if there wasn't one
1063 - in a couple of places, fixed indentation therein
1065 * Misc/WebIconDatabase.mm:
1066 (objectFromPathForKey):
1067 * WebView/WebHTMLView.mm:
1068 (-[WebHTMLView drawSingleRect:]):
1069 (-[WebHTMLView beginDocument]):
1070 (-[WebHTMLView deleteToMark:]):
1071 * WebView/WebView.mm:
1072 (-[WebView initWithCoder:]):
1074 == Rolled over to ChangeLog-2007-10-14 ==