2008-02-29 Mark Rowe <mrowe@apple.com>
[WebKit-https.git] / WebKit / mac / ChangeLog
1 2008-02-29  Mark Rowe  <mrowe@apple.com>
2
3         Reviewed by Oliver Hunt.
4
5         Don't use WKSupportsMultipartXMixedReplace on Leopard as multipart/x-mixed-replace is always handled by NSURLRequest.
6
7         * WebCoreSupport/WebSystemInterface.m:
8         (InitWebCoreSystemInterface):
9
10 2008-02-29  Mark Rowe  <mrowe@apple.com>
11
12         Reviewed by Oliver Hunt.
13
14         Remove obsolete code that had been left intact to support users running WebKit with older versions of Safari.
15
16         * Misc/WebNSViewExtras.m:  Remove _web_superviewOfClass:stoppingAtClass:.
17         * Misc/WebNSWindowExtras.m:  Remove _webkit_displayThrottledWindows.
18         * Misc/WebSearchableTextView.m:  Remove selectionImageForcingWhiteText:.
19         * WebCoreSupport/WebImageRendererFactory.m:  Update comment to mention the last version of Safari that
20         requires this class.
21         * WebInspector/WebInspector.mm:  Remove sharedWebInspector and update comments to mention the last version
22         of Safari that calls other obsolete methods.
23         * WebView/WebDocumentPrivate.h:  Remove selectionImageForcingWhiteText:.
24         * WebView/WebHTMLView.mm:  Ditto.
25         * WebView/WebPDFView.mm:  Ditto.
26         * WebView/WebView.mm:  Update comment to mentoin the last version of Safari that requires the obsolete method.
27
28 2008-02-29  Mark Rowe  <mrowe@apple.com>
29
30         Rubber-stamped by Eric Seidel.
31
32         Remove unneeded includes of WebKitSystemInterface.h.
33
34         * History/WebHistoryItem.mm:
35         * Misc/WebNSViewExtras.m:
36         * WebCoreSupport/WebFrameLoaderClient.mm:
37         * WebView/WebDataSource.mm:
38         * WebView/WebPDFView.mm:
39
40 2008-02-29  Mark Rowe  <mrowe@apple.com>
41
42         Reviewed by Oliver Hunt and Oliver Hunt.
43
44         <rdar://problem/4753845> WebKit should use CGEventSourceSecondsSinceLastEventType in place of WKSecondsSinceLastInputEvent SPI.
45
46         * WebCoreSupport/WebSystemInterface.m:
47         (InitWebCoreSystemInterface):  Remove unused symbol.
48         * WebKit.order:  Ditto.
49
50 2008-02-28  Mark Rowe  <mrowe@apple.com>
51
52         Reviewed by Dave Hyatt.
53
54         Make use of new CGFont APIs on Leopard rather than making a WebKitSystemInterface call.
55
56         * WebCoreSupport/WebSystemInterface.m:
57         (InitWebCoreSystemInterface): Only initialize wkGetFontMetrics on Tiger.
58
59 2008-02-27  Brady Eidson  <beidson@apple.com>
60
61         Reviewed by Mark Rowe (code) and Darin (concept)
62
63         Much better fix for <rdar://problem/4930688> (see r19549)
64         Original fix for <rdar://problem/3947312> (and 14 dupes)
65         
66         Let me tell you a story:
67         A long time ago, in a cvs repository far, far away, loader code was almost all up in WebKit.
68         WebArchive code was intertwined with that code in bizarre and complex ways.
69         During the months long loader re-factoring where we pushed much loader code down into WebCore,
70         many portions of the WebKit loader were thinned out until they ceased to exist.  Others remained
71         with a sole purpose.
72
73         One such section of code whose lineage traces back from WebFrameLoaderClient to WebFrameLoader
74         to WebLoader was originally rooted in the method [WebLoader loadRequest:].  This method was the 
75         single entry point for almost all loading (network or web archives)
76
77         This method would check various headers and other fields on the NSURLRequest and NSURLResponse 
78         to make decisions about the load.  If the cache control fields were expired or other conditions 
79         in the headers were met, the load would be forced to go out to the network.
80
81         As the loader was moved and tweaked repeatedly, most of this code was pruned or re-factored.  
82         At some point, all that remained was the special cases for loading WebArchives.  
83         
84         Somewhere in the r16,000s, this remaining responsibility was noticed and related methods we renamed
85         to be WebArchive specific, further cementing the assumed design.
86
87         Problem is, the design was bad.  A WebArchive is meant to be a static snapshot of a WebPage at a
88         specific point in time.  Referring to the request to see if the resource should be reloaded seems
89         nonsensical, as does referring to the response headers to see if the resource is "expired".  In the 
90         context of loading a WebArchive, available data should *always* be loaded from the WebArchive, at least
91         during the initial load!
92
93         After discovering the secret to reproducing all of these bugs is both emptying our your Foundation 
94         cache and disconnecting your network, it was easy to reproduce the 16 individually reported cases 
95         that were all symptoms of this bug, and easy to verify that they are fixed with this patch.
96
97         * WebCoreSupport/WebFrameLoaderClient.h:
98         * WebCoreSupport/WebFrameLoaderClient.mm:
99         (WebFrameLoaderClient::willUseArchive): Do not call either form of "canUseArchivedResource()" that
100           inspect the request or response objects - We are loading from a WebArchive, and we should never
101           make the decision to go out to the network when we actually have the resource available.
102
103         * WebCoreSupport/WebSystemInterface.m:
104         (InitWebCoreSystemInterface):  Remove two methods that are no longer used anywhere in WebKit
105
106 2008-02-27  Matt Lilek  <webkit@mattlilek.com>
107
108         Reviewed by Adam Roben.
109
110         Bug 14348: Messing up the inspector by dragging an URL into it
111         http://bugs.webkit.org/show_bug.cgi?id=14348
112         <rdar://problem/5283620> and <rdar://problem/5712808>
113
114         * WebCoreSupport/WebInspectorClient.mm:
115         (-[WebInspectorWindowController init]): Remove duplicate preference setting.
116         (-[WebInspectorWindowController webView:dragDestinationActionMaskForDraggingInfo:]):
117
118 2008-02-25  Darin Adler  <darin@apple.com>
119
120         Reviewed by Adam.
121
122         * WebView/WebArchiver.mm:
123         (+[WebArchiver archiveSelectionInFrame:]): Use blankURL.
124         * WebView/WebFrame.mm:
125         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]): Avoid the
126         variable name URL to avoid clashing with the renamed KURL in the future. Also use
127         blankURL.
128         (-[WebFrame loadData:MIMEType:textEncodingName:baseURL:]): Ditto.
129         (-[WebFrame _loadHTMLString:baseURL:unreachableURL:]): Ditto.
130         (-[WebFrame loadHTMLString:baseURL:]): Ditto.
131         (-[WebFrame loadAlternateHTMLString:baseURL:forUnreachableURL:]): Ditto.
132
133 2008-02-24  Darin Adler  <darin@apple.com>
134
135         Reviewed by Sam.
136
137         - remove separate client calls for "standard" and "reload' history
138
139         * WebCoreSupport/WebFrameLoaderClient.h:
140         * WebCoreSupport/WebFrameLoaderClient.mm:
141         (WebFrameLoaderClient::updateGlobalHistory):
142
143 2008-02-23  Alexey Proskuryakov  <ap@webkit.org>
144
145         Reviewed by Darin.
146
147         Move basic threading support from WebCore to WTF.
148
149         * ForwardingHeaders/wtf/Threading.h: Added.
150         * ForwardingHeaders/wtf/Locker.h: Added.
151
152 2008-02-23  David Kilzer  <ddkilzer@apple.com>
153
154         Please clarify licensing for some files
155         <http://bugs.webkit.org/show_bug.cgi?id=14970>
156
157         Reviewed by Darin.
158
159         * Plugins/WebNetscapeDeprecatedFunctions.c: Updated copyright statement
160         and added Apple BSD-style license.
161         * Plugins/WebNetscapeDeprecatedFunctions.h: Ditto.
162
163 2008-02-22  John Sullivan  <sullivan@apple.com>
164
165         Reviewed by Adam Roben
166         
167         Reverted the changed from yesterday to add pasteAndMatchStyle:, as the existing
168         pasteAsPlainText: has the same behavior.
169
170         * WebView/WebHTMLView.mm:
171         (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]):
172         (-[WebHTMLView readSelectionFromPasteboard:]):
173         (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]):
174         (-[WebHTMLView pasteAsRichText:]):
175         (-[WebHTMLView paste:]):
176         * WebView/WebView.mm:
177         * WebView/WebViewPrivate.h:
178
179 2008-02-21  Anders Carlsson  <andersca@apple.com>
180
181         Reviewed by Sam.
182
183         Use BackForwardList::create instead.
184         
185         * History/WebBackForwardList.mm:
186         (-[WebBackForwardList init]):
187
188 2008-02-21  John Sullivan  <sullivan@apple.com>
189
190         Reviewed by Jessica Kahn
191         
192         support for pasteAndMatchStyle: command (see <rdar://problem/5723952>)
193
194         * WebView/WebHTMLView.mm:
195         (-[WebHTMLView _pasteWithPasteboard:allowPlainText:matchStyle:]):
196         added matchStyle parameter, passed along to bridge (formerly always passed NO to bridge)
197         (-[WebHTMLView readSelectionFromPasteboard:]):
198         pass NO for new matchStyle parameter to match old behavior
199         (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]):
200         validate pasteAndMatchStyle the same way as pasteAsRichText
201         (-[WebHTMLView pasteAndMatchStyle:]):
202         just like pasteAsRichText but passes YES for matchStyle
203         (-[WebHTMLView pasteAsRichText:]):
204         pass NO for new matchStyle parameter to match old behavior
205         (-[WebHTMLView paste:]):
206         ditto
207         
208         * WebView/WebView.mm:
209         added macro(pasteAndMatchStyle)
210         
211         * WebView/WebViewPrivate.h:
212         added pasteAndMatchStyle: to WebViewEditingActionsPendingPublic category
213
214 2008-02-20  Sam Weinig  <sam@webkit.org>
215
216         Reviewed by Darin and Geoff.
217
218         - WebKit part of <rdar://problem/5754378> work around missing video on YouTube front page with a site-specific hack
219
220         * WebView/WebView.mm:
221         (-[WebView _preferencesChangedNotification:]): Added a call to Settings::setNeedsSiteSpecificQuirks.
222         There are currently no site-specific quirks on Mac, but we will propagate the state
223         to WebCore to avoid possible mistakes later.
224
225 2008-02-19  Anders Carlsson  <andersca@apple.com>
226
227         Reviewed by Darin.
228
229         Move back WebKit methods that were unused in WebCore.
230         
231         * Misc/WebNSURLExtras.mm:
232         (+[NSURL _web_URLWithData:]):
233         (+[NSURL _web_URLWithData:relativeToURL:]):
234         (-[NSURL _web_originalData]):
235         (-[NSURL _web_originalDataAsString]):
236         (-[NSURL _web_isEmpty]):
237         (-[NSURL _webkit_canonicalize]):
238         (-[NSURL _webkit_URLByRemovingComponent:]):
239         (-[NSURL _webkit_URLByRemovingFragment]):
240         (-[NSURL _webkit_URLByRemovingResourceSpecifier]):
241         (-[NSURL _webkit_isFileURL]):
242         (-[NSString _webkit_isFileURL]):
243         * WebCoreSupport/WebFrameLoaderClient.mm:
244         (WebFrameLoaderClient::setTitle):
245         * WebCoreSupport/WebSystemInterface.m:
246         (InitWebCoreSystemInterface):
247
248 2008-02-18  Darin Adler  <darin@apple.com>
249
250         Reviewed by Sam.
251
252         * Misc/WebNSAttributedStringExtras.mm:
253         (+[NSAttributedString _web_attributedStringFromRange:]): Eliminate use of
254         DeprecatedString.
255
256 2008-02-17  Sam Weinig  <sam@webkit.org>
257
258         Reviewed by Dan Bernstein.
259
260         Fix for http://bugs.webkit.org/show_bug.cgi?id=17365
261         document.createEvent("MessageEvent") throws NOT_SUPPORTED_ERR
262
263         * MigrateHeaders.make: Migrate DOMProgressEvent.h and DOMTextPrivate.h which were
264         mistakenly not migrated.
265
266 2008-02-15  Dan Bernstein  <mitz@apple.com>
267
268         Reviewed by Alexey Proskuryakov.
269
270         - WebKit part of fixing http://bugs.webkit.org/show_bug.cgi?id=17360
271           <rdar://problem/5743131> REGRESSION: mp4 file downloaded from server is downloaded as html
272
273         * WebView/WebDataSource.mm:
274         (+[WebDataSource _representationClassForMIMEType:]):
275         (-[WebDataSource _responseMIMEType]):
276         (-[WebDataSource subresources]):
277         (-[WebDataSource subresourceForURL:]):
278         * WebView/WebResource.mm:
279         (-[WebResource _initWithData:URL:response:]):
280         * WebView/WebResourcePrivate.h:
281
282 2008-02-15  Adam Roben  <aroben@apple.com>
283
284         Make WebKit's FEATURE_DEFINES match WebCore's
285
286         Reviewed by Mark.
287
288         * Configurations/WebKit.xcconfig:
289
290 2008-02-14  Darin Adler  <darin@apple.com>
291
292         Reviewed by Eric Seidel.
293
294         - updated for WebCore KURL changes
295
296         * History/WebHistoryItem.mm:
297         (-[WebHistoryItem URL]): Removed getNSURL call.
298         * Misc/WebElementDictionary.mm:
299         (-[WebElementDictionary _absoluteImageURL]): Ditto.
300         (-[WebElementDictionary _absoluteLinkURL]): Ditto.
301         * Misc/WebNSAttributedStringExtras.mm:
302         (fileWrapperForElement): Ditto.
303         (+[NSAttributedString _web_attributedStringFromRange:]): Ditto.
304         * Misc/WebNSURLExtras.mm:
305         (-[NSString _webkit_stringByReplacingValidPercentEscapes]): Updated
306         for function name change.
307         * WebCoreSupport/WebContextMenuClient.mm:
308         (WebContextMenuClient::downloadURL): Removed getNSURL call.
309         * WebCoreSupport/WebDragClient.mm:
310         (WebDragClient::createDragImageForLink): Ditto.
311         * WebCoreSupport/WebFrameLoaderClient.mm:
312         (WebFrameLoaderClient::dispatchWillPerformClientRedirect): Ditto.
313         (WebFrameLoaderClient::startDownload): Ditto.
314         (WebFrameLoaderClient::updateGlobalHistoryForStandardLoad): Ditto.
315         (WebFrameLoaderClient::updateGlobalHistoryForReload): Ditto.
316         (WebFrameLoaderClient::cancelledError): Ditto.
317         (WebFrameLoaderClient::blockedError): Ditto.
318         (WebFrameLoaderClient::cannotShowURLError): Ditto.
319         (WebFrameLoaderClient::interruptForPolicyChangeError): Ditto.
320         (WebFrameLoaderClient::cannotShowMIMETypeError): Ditto.
321         (WebFrameLoaderClient::fileDoesNotExistError): Ditto.
322         (WebFrameLoaderClient::willUseArchive): Ditto.
323         (WebFrameLoaderClient::setTitle): Ditto.
324         (WebFrameLoaderClient::actionDictionary): Ditto.
325         (WebFrameLoaderClient::createFrame): Ditto.
326         (WebFrameLoaderClient::objectContentType): Ditto.
327         (WebFrameLoaderClient::createPlugin): Ditto.
328         (WebFrameLoaderClient::createJavaAppletWidget): Ditto.
329         * WebView/WebDataSource.mm:
330         (-[WebDataSource _URL]): Ditto.
331         (-[WebDataSource _initWithDocumentLoader:]): Ditto.
332         (-[WebDataSource unreachableURL]): Ditto.
333         * WebView/WebHTMLView.mm:
334         (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]): Ditto.
335
336 2008-02-14  Stephanie Lewis  <slewis@apple.com>
337
338         Reviewed by Geoff.
339
340         Update order files.
341
342         * WebKit.order:
343
344 2008-02-14  Alexey Proskuryakov  <ap@webkit.org>
345
346         Reviewed by Adam Roben.
347
348         http://bugs.webkit.org/show_bug.cgi?id=17207
349         Database example doesn't work (requires not-yet-released Safari)
350
351         * WebCoreSupport/WebChromeClient.mm:
352         (WebChromeClient::exceededDatabaseQuota): Check Safari version, and allow 5 megabytes of storage
353         if it's too old.
354
355 2008-02-11  Darin Adler  <darin@apple.com>
356
357         - roll out fix for <rdar://problem/5726016> REGRESSION: Xcode News window renders
358           incorrectly due to visibility fix
359
360         Removed the Xcode-specific quirk at the request of some folks on the Xcode team.
361
362         * Misc/WebKitVersionChecks.h: Removed the constant.
363
364         * WebView/WebView.mm:
365         (-[WebView _needsXcodeVisibilityQuirk]): Removed.
366         (-[WebView _preferencesChangedNotification:]): Removed call to
367         setNeedsXcodeVisibilityQuirk.
368
369 2008-02-12  Anders Carlsson  <andersca@apple.com>
370
371         Reviewed by Mitz.
372
373         * WebCoreSupport/WebFrameBridge.mm:
374         * WebCoreSupport/WebViewFactory.mm:
375         (-[WebViewFactory imageTitleForFilename:size:]):
376         Move implementation from WebFrameBridge to WebViewFactory.
377
378 2008-02-11  Darin Adler  <darin@apple.com>
379
380         Reviewed by Mitz.
381
382         - fix <rdar://problem/5726016> REGRESSION: Xcode News window renders
383           incorrectly due to visibility fix
384
385         Added an Xcode-specific quirk.
386
387         * Misc/WebKitVersionChecks.h: Added a constant for the "linked on or after"
388         part of the check.
389
390         * WebView/WebView.mm:
391         (-[WebView _needsXcodeVisibilityQuirk]): Added.
392         (-[WebView _preferencesChangedNotification:]): Added a call to
393         setNeedsXcodeVisibilityQuirk based on _needsXcodeVisibilityQuirk.
394
395 2008-02-10  Darin Adler  <darin@apple.com>
396
397         - fix http://bugs.webkit.org/show_bug.cgi?id=17274
398           REGRESSION: User Agent string broken in r30119
399
400         * WebView/WebView.mm:
401         (-[WebView _userAgentWithApplicationName:andWebKitVersion:]):
402         Fix wrong variable name. Doh!
403
404 2008-02-09  Darin Adler  <darin@apple.com>
405
406         Reviewed by Tim Hatcher.
407
408         - fix <rdar://problem/5725996> crash every time you open the Xcode documentation window
409
410         * WebView/WebView.mm:
411         (-[WebView _userAgentWithApplicationName:andWebKitVersion:]): Work around a bug in the
412         garbage collector's Objective C++ support by not initializing a static to an object
413         that needs to be marked when running under GC.
414
415 2008-02-05  Dan Bernstein  <mitz@apple.com>
416
417         Reviewed by Darin Adler.
418
419         - WebKit part of <rdar://problem/5724303> Should implement writing direction shortcuts
420
421         The key bindings are Command-Control-left arrow and
422         Command-Control-right arrow. To match AppKit, the bindings are enabled
423         only when certain user defaults are set.
424
425         * WebView/WebHTMLView.mm:
426         (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]):
427         (-[WebHTMLView toggleBaseWritingDirection:]): Changed to call
428         Frame::baseWritingDirectionForSelectionStart() and
429         Editor::setBaseWritingDirection() directly.
430         (-[WebHTMLView changeBaseWritingDirection:]): Ditto.
431         (writingDirectionKeyBindingsEnabled): Added.
432         (-[WebHTMLView _changeBaseWritingDirectionTo:]): Added this helper
433         method.
434         (-[WebHTMLView changeBaseWritingDirectionToLTR:]): Added.
435         (-[WebHTMLView changeBaseWritingDirectionToRTL:]): Added.
436         * WebView/WebView.mm:
437
438 2008-02-05  Mark Rowe  <mrowe@apple.com>
439
440         Unreviewed build fix.
441
442         * WebView/WebView.mm: Add missing #import.
443
444 2008-02-05  Mark Rowe  <mrowe@apple.com>
445
446         Reviewed by Oliver Hunt.
447
448         Update versioning to support the mysterious future.
449
450         * Configurations/Version.xcconfig: Add SYSTEM_VERSION_PREFIX_1060.
451
452 2008-01-30  Justin Garcia  <justin.garcia@apple.com>
453
454         Reviewed by Darin Adler.
455         
456         <rdar://problem/5708115> REGRESSION: Words selected with a double click and copied won't paste into Mail
457
458         * WebView/WebHTMLView.mm:
459         (-[WebHTMLView _smartInsertForString:replacingRange:beforeString:afterString:]): Brought 
460         this back, it's used by Mail.
461         (-[WebHTMLView _canSmartReplaceWithPasteboard:]): This WebInternal method is
462         also used by Mail.  Moved to WebPrivate.
463         * WebView/WebHTMLViewPrivate.h: Expose two methods that Mail uses here, so that we don't
464         accidently remove them in the future.
465
466 2008-01-30  Mark Rowe  <mrowe@apple.com>
467
468         Reviewed by Oliver Hunt.
469
470         Move off deprecated NSTableView methods.
471
472         * WebView/WebHTMLView.mm:
473         (-[WebTextCompleteController _buildUI]): Switch from -setDrawsGrid: to -setGridStyleMask:.
474         (-[WebTextCompleteController _placePopupWindow:]): Switch from -selectRow:byExtendingSelection: to -selectRowIndexes:byExtendingSelection:.
475         (-[WebTextCompleteController filterKeyDown:]): Ditto.
476
477 2008-01-26  Mark Rowe  <mrowe@apple.com>
478
479         Reviewed by Darin Adler.
480
481         Fix leaks seen after loading <http://www.funnyordie.com/videos/d70b5a11cb>.
482
483         * Misc/WebNSDataExtras.m:
484         (-[NSString _web_capitalizeRFC822HeaderFieldName]): Transfer ownerhip of the allocated buffers
485         to the new CFString so that they will be freed when no longer needed.
486
487 2008-01-26  Greg Bolsinga  <bolsinga@apple.com>
488
489         <rdar://problem/5708388> WebDashboardRegion.h duplicated between WebCore / WebKit
490
491         Reviewed by Darin.
492
493         * WebCoreSupport/WebDashboardRegion.h: Removed.
494         * WebView/WebView.mm: Updated #import to use copy of WebDashboardRegion.h from WebCore.
495
496 2008-01-21  Darin Adler  <darin@apple.com>
497
498         Reviewed by John Sullivan.
499
500         - fix <rdar://problem/5644324> Delegate-less WebKit clients should have no databases
501         - add a missing export of WebDatabaseExpectedSizeKey
502         - implement deleteOrigin: and remove deleteDatabasesWithOrigin:
503
504         * Storage/WebDatabaseManager.mm:
505         (-[WebDatabaseManager detailsForDatabase:withOrigin:]): Updated to check for a null
506         name instead of calling isValid().
507         (-[WebDatabaseManager deleteOrigin:]): Implemented.
508         (WebKitInitializeDatabasesIfNecessary): Updated for name change.
509
510         * Storage/WebDatabaseManagerPrivate.h: Removed deleteDatabasesWithOrigin:.
511
512         * WebCoreSupport/WebChromeClient.h: Updated for changes to ChromeClient.
513         * WebCoreSupport/WebChromeClient.mm:
514         (WebChromeClient::exceededDatabaseQuota): Replaced the two different client functions
515         we had before with a single one.
516
517         * WebKit.exp: Added missing export for WebDatabaseExpectedSizeKey.
518
519         * WebView/WebPreferenceKeysPrivate.h: Removed WebKitDefaultDatabaseQuotaKey.
520         * WebView/WebPreferences.m:
521         (+[WebPreferences initialize]): Removed the default for WebKitDefaultDatabaseQuotaKey.
522         * WebView/WebPreferencesPrivate.h: Removed defaultDatabaseQuota and
523         setDefaultDatabaseQuota:.
524
525         * WebView/WebUIDelegatePrivate.h: Replaced the two different database quota delegate
526         methods we had before with a single one.
527
528         * WebView/WebView.mm:
529         (-[WebView _preferencesChangedNotification:]): Removed the code to set the
530         default database origin quota in WebCore::Settings based on WebPreferences.
531
532         * WebView/WebViewInternal.h: Removed delegate method dispatch functions for unusual
533         types of parameters that the database UI delegate methods had before.
534
535 2008-01-20  Mark Rowe  <mrowe@apple.com>
536
537         Reviewed by Dan Bernstein.
538
539         Remove code bracketed by REMOVE_SAFARI_DOM_TREE_DEBUG_ITEM as we are no longer
540         interested in supporting Safari 2 with TOT WebKit.
541
542         * WebView/WebView.mm:
543         (+[WebView initialize]):
544
545 2008-01-17  Timothy Hatcher  <timothy@apple.com>
546
547         Reviewed by Adam Roben.
548
549         <rdar://problem/5693558> REGRESSION (r29581): no form field focus rings
550         and inactive text selection after loading a page
551         Bug 16917: REGRESSION (r29581/2): Google Maps search box loses focused appearance
552
553         The problem was other frames were changing the FocusController's active
554         status to false after the first responder frame set it to true. The last
555         frame to call _updateActiveState would win.
556
557         * WebView/WebHTMLView.mm:
558         (-[WebHTMLView _updateActiveState]): Only call page->focusController()->setActive()
559         if the first responder is the current WebHTMLView or the WebFrameView.
560         (-[WebHTMLView _web_firstResponderCausesFocusDisplay]): Removed, inlined code in _updateActiveState.
561
562 2008-01-18  Adam Roben  <aroben@apple.com>
563
564         Rename _updateActiveState to _updateFocusedAndActiveState
565
566         Also renamed any related methods/members similarly.
567
568         Reviewed by Adele.
569
570         * WebView/WebHTMLView.mm:
571         (-[WebHTMLViewPrivate dealloc]):
572         (-[WebHTMLView _cancelUpdateFocusedAndActiveStateTimer]):
573         (-[WebHTMLView close]):
574         (_updateFocusedAndActiveStateTimerCallback):
575         (-[WebHTMLView viewWillMoveToWindow:]):
576         (-[WebHTMLView viewDidMoveToWindow]):
577         (-[WebHTMLView windowDidBecomeKey:]):
578         (-[WebHTMLView windowDidResignKey:]):
579         (-[WebHTMLView becomeFirstResponder]):
580         (-[WebHTMLView resignFirstResponder]):
581         * WebView/WebHTMLViewInternal.h:
582         * WebView/WebHTMLViewPrivate.h:
583
584 2008-01-17  John Sullivan  <sullivan@apple.com>
585
586         Reviewed by Darin
587         
588         - fixed <rdar://problem/5692068> -1 WebFrameView world leaks reported after closing view source window
589
590         * WebView/WebFrameView.mm:
591         (-[WebFrameView initWithCoder:]):
592         override to bump the global WebFrameView count
593
594 2008-01-16  Adam Roben  <aroben@apple.com>
595
596         Updated for renames/removal of WebCore methods.
597
598         Reviewed by Darin.
599
600         * Plugins/WebPluginController.mm:
601         (-[WebPluginController webPlugInContainerSelectionColor]): Changed to
602         ask isFocusedAndActive directly, instead of going through the frame
603         bridge.
604         * WebView/WebHTMLView.mm:
605         (-[WebHTMLView _updateActiveState]): Updated for method renames.
606
607 2008-01-16  John Sullivan  <sullivan@apple.com>
608
609         Reviewed by Adam and Dan
610         
611         - cleaned up some existing logging
612
613         * WebView/WebHTMLView.mm:
614         (-[WebHTMLView setNeedsDisplay:]):
615         add method name to log, use "YES" and "NO" instead of (int)flag
616         (-[WebHTMLView setNeedsLayout:]):
617         ditto
618         (-[WebHTMLView setNeedsToApplyStyles:]):
619         ditto
620
621 2008-01-15  Geoffrey Garen  <ggaren@apple.com>
622
623         Reviewed by Andre Boule.
624
625         Fixed <rdar://problem/5667627> [WebCache empty] implementation should
626         not disable/enable the cache
627         
628         Toggle the cache model instead -- toggling disable/enable just causes
629         the cache to forget about resources, not reclaim their memory.
630
631         * Misc/WebCache.mm:
632         (+[WebCache empty]):
633         * WebView/WebView.mm:
634         * WebView/WebViewInternal.h:
635
636 2008-01-15  Adele Peterson  <adele@apple.com>
637
638         Reviewed by Adam and Antti.
639
640         WebKit part of fix for <rdar://problem/5619062> Add load progress indicator to video controls
641
642         * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface):
643           Removed initialization for GetMediaControlBackgroundImageData.  Added initialization for DrawMediaSliderTrack.
644
645 2008-01-10  Geoffrey Garen  <ggaren@apple.com>
646
647         Reviewed by John Sullivan.
648
649         Fixed some world leak reports:
650         * <rdar://problem/5669436> PLT complains about world leak of 1 JavaScript
651         Interpreter after running cvs-base suite
652
653         * <rdar://problem/5669423> PLT complains about world leak if browser
654         window is open when PLT starts
655         
656         These were both bugs in the reporting mechanism, so I took the
657         opportunity to do some house cleaning there.
658
659         * Misc/WebCoreStatistics.h: Did a little renaming, to match
660         JavaScriptCore better. I kept the methods with the old names around,
661         though, because old versions of Safari need them.
662
663         * Misc/WebCoreStatistics.mm: Removed dependence on
664         WebCore::JavaScriptStatistics, which is gone now. 
665         
666         These two methods are now distinct, for the sake of world leak reporting:
667         (+[WebCoreStatistics javaScriptGlobalObjectsCount]):
668         (+[WebCoreStatistics javaScriptProtectedGlobalObjectsCount]):
669
670 2008-01-10  Maciej Stachowiak  <mjs@apple.com>
671
672         Not reviewed. Build fix.
673         
674         - Attempt to fix mac build.
675
676         * Storage/WebDatabaseManager.mm:
677
678 2008-01-10  Maciej Stachowiak  <mjs@apple.com>
679
680         Reviewed by Sam.
681
682         - remove SecurityOriginData and fold its functionality into SecurityOrigin
683
684         * Storage/WebDatabaseManager.mm:
685         (-[WebDatabaseManager origins]):
686         (-[WebDatabaseManager databasesWithOrigin:]):
687         (-[WebDatabaseManager detailsForDatabase:withOrigin:]):
688         (-[WebDatabaseManager deleteDatabasesWithOrigin:]):
689         (-[WebDatabaseManager deleteDatabase:withOrigin:]):
690         * Storage/WebDatabaseTrackerClient.h:
691         * Storage/WebDatabaseTrackerClient.mm:
692         (WebDatabaseTrackerClient::dispatchDidModifyOrigin):
693         (WebDatabaseTrackerClient::dispatchDidModifyDatabase):
694         * Storage/WebSecurityOrigin.mm:
695         (-[WebSecurityOrigin initWithProtocol:domain:port:]):
696         (-[WebSecurityOrigin protocol]):
697         (-[WebSecurityOrigin domain]):
698         (-[WebSecurityOrigin port]):
699         (-[WebSecurityOrigin usage]):
700         (-[WebSecurityOrigin quota]):
701         (-[WebSecurityOrigin setQuota:]):
702         (-[WebSecurityOrigin isEqual:]):
703         (-[WebSecurityOrigin dealloc]):
704         (-[WebSecurityOrigin finalize]):
705         (-[WebSecurityOrigin _initWithWebCoreSecurityOrigin:]):
706         (-[WebSecurityOrigin _core]):
707         * Storage/WebSecurityOriginInternal.h:
708         * WebCoreSupport/WebChromeClient.h:
709         * WebCoreSupport/WebChromeClient.mm:
710         (WebChromeClient::requestQuotaIncreaseForNewDatabase):
711         (WebChromeClient::requestQuotaIncreaseForDatabaseOperation):
712
713 2008-01-10  Sam Weinig  <sam@webkit.org>
714
715         Reviewed by Anders Carlsson.
716
717         Fixes: http://bugs.webkit.org/show_bug.cgi?id=16522
718         <rdar://problem/5657355>
719
720         * Plugins/WebBaseNetscapePluginView.mm:
721         (-[WebBaseNetscapePluginView loadPluginRequest:]): call findFrameForNavigation
722         to ensure the shouldAllowNavigation check is made.
723
724 2008-01-07  Nikolas Zimmermann  <zimmermann@kde.org>
725
726         Reviewed by Mark.
727
728         Enable SVG_FONTS by default.
729
730         * Configurations/WebKit.xcconfig:
731
732 2008-01-07  Adele Peterson  <adele@apple.com>
733
734         Reviewed by Antti, Adam, and Mitz.
735
736         WebKit part of fix for 
737         <rdar://problem/5619073> Updated look for <video> controls
738         <rdar://problem/5619057> Add volume control to video controls
739
740         * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface):
741
742 2008-01-07  Dan Bernstein  <mitz@apple.com>
743
744         Reviewed by Dave Hyatt.
745
746         - <rdar://problem/5665216> Support the unicode-range property in @font-face rules
747
748         * Misc/WebNSAttributedStringExtras.mm:
749
750 2008-01-03  Alexey Proskuryakov  <ap@webkit.org>
751
752         Reviewed by Darin.
753
754         <rdar://problem/5463489> A number of layout tests should be using execCommand instead of textInputController
755
756         * WebView/WebView.mm:
757         (-[WebView _executeCoreCommandByName:value:]):
758         * WebView/WebViewPrivate.h:
759         Added an SPI to implement layoutTestController.execCommand.
760
761 2008-01-03  Kevin Decker  <kdecker@apple.com>
762
763         Reviewed by Darin.
764
765         Fixed: <rdar://problem/4106190> Include "Where from" metadata in drag-and-dropped images
766         
767         * Misc/WebNSFileManagerExtras.h:
768         * Misc/WebNSFileManagerExtras.m:
769         (-[NSFileManager _webkit_setMetadataURL:referrer:atPath:]): Added new method. Uses WebKitSystemInterface to set
770         "Where from:" metadata information.
771         * WebView/WebHTMLView.mm:
772         (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]): Added "Where from:" metadata for drag and dropped images.
773         
774 2008-01-03  Alice Liu  <alice.liu@apple.com>
775
776         Reviewed by Darin.
777
778         This fixes pageup/down in iframes.  test for this is fast/frames/iframe-scroll-page-up-down.html
779
780         * WebView/WebHTMLView.mm:
781         (-[WebHTMLView doCommandBySelector:]):
782         Have the editor handle all the commands it supports instead of just text commands.
783         If not handled by the editor, the webview will handle the command. 
784
785 2008-01-02  Kevin Decker  <kdecker@apple.com>
786
787         Reviewed by Darin.
788         
789         Fixed: <rdar://problem/5660603> QuickDraw plug-ins can cause a 100% reproducible assertion failure in AppKit (breaks Safari UI)
790
791         * Plugins/WebBaseNetscapePluginView.mm:
792         (-[WebBaseNetscapePluginView updateAndSetWindow]): Simplified an early return for non-QuickDraw plug-ins and switched
793         to using the more NSView friendly version of lockFocus, lockFocusIfCanDraw.
794
795 2008-01-01  David D. Kilzer  <ddkilzer@webkit.org>
796
797         Reviewed by Dan.
798
799         - fix http://bugs.webkit.org/show_bug.cgi?id=16700
800           Fix -[WebDefaultPolicyDelegate webView:decidePolicyForMIMEType:request:frame:decisionListener:]
801
802         * DefaultDelegates/WebDefaultPolicyDelegate.m: Check return value of
803         -[NSFileManager fileExistsAtPath:isDirectory:] before using the value
804         of isDirectory.
805
806 2007-12-29  Nikolas Zimmermann  <zimmermann@kde.org>
807
808         Reviewed by Eric.
809
810         Add DOMSVGFontElement/DOMSVGGlyphElement/DOMSVGMissingGlyphElement to MigrateHeaders.make
811
812         * MigrateHeaders.make:
813
814 2007-12-25  Dan Bernstein  <mitz@apple.com>
815
816         Reviewed by Oliver Hunt.
817
818         - fix an assertion failure when pressing the num lock key
819
820         * WebView/WebHTMLView.mm:
821         (-[WebHTMLView flagsChanged:]): Avoid passing key code 10 down to
822         WebCore.
823
824 2007-12-20  Darin Adler  <darin@apple.com>
825
826         Reviewed by Oliver.
827
828         - fix <rdar://problem/5658787> Selector -[WebView insertLineBreak:] is not implemented
829
830         * WebView/WebView.mm: Added all selectors implemented by WebHTMLView to the list of
831         selectors to forward here. The new ones are: changeBaseWritingDirection:, changeSpelling:,
832         deleteToMark:, insertLineBreak:, moveParagraphBackwardAndModifySelection:,
833         moveParagraphForwardAndModifySelection:, pageDownAndModifySelection:, pageUpAndModifySelection:,
834         selectToMark:, setMark:, swapWithMark:, takeFindStringFromSelection:, toggleBaseWritingDirection:,
835         and transpose:.
836
837 2007-12-20  Kevin Decker  <kdecker@apple.com>
838
839         Reviewed by Anders.
840         
841         Fixed: <rdar://problem/5638288> REGRESSION: Flash movies show up in other tabs above the page (16373)
842
843         * Plugins/WebBaseNetscapePluginView.mm:
844         (-[WebBaseNetscapePluginView updateAndSetWindow]): QuickDraw plug-ins must manually be told when to stop
845          writing to the window backing store. The problem was that change-set 28400 introduced an early return 
846          which prevented this necessary operation. The fix is to limit the scope of the early return to CG and GL
847          plug-ins and to tweak the needsFocus check to prevent an exception from occurring in QuickDraw-based plug-ins.
848
849 2007-12-19  Geoffrey Garen  <ggaren@apple.com>
850
851         Reviewed by Oliver Hunt.
852
853         Build fix.
854
855         * ForwardingHeaders/kjs/SymbolTable.h: Added.
856         * ForwardingHeaders/wtf/VectorTraits.h: Added.
857
858 2007-12-16  Mark Rowe  <mrowe@apple.com>
859
860         Reviewed by Maciej Stachowiak.
861
862         Refactor Mac plugin stream code to use the shared NetscapePlugInStreamLoader implementation.
863
864         * Plugins/WebBaseNetscapePluginStream.h:
865         * Plugins/WebNetscapePluginStream.h:
866         * Plugins/WebNetscapePluginStream.mm:
867         (-[WebNetscapePluginStream initWithRequest:plugin:notifyData:sendNotification:]):
868         (-[WebNetscapePluginStream dealloc]):
869         (-[WebNetscapePluginStream finalize]):
870         * Plugins/WebPlugInStreamLoaderDelegate.h: Moved from WebCore.
871         * WebCoreSupport/WebNetscapePlugInStreamLoaderClient.h: Added.
872         (WebNetscapePlugInStreamLoaderClient::WebNetscapePlugInStreamLoaderClient):
873         * WebCoreSupport/WebNetscapePlugInStreamLoaderClient.mm: Added.
874         (WebNetscapePlugInStreamLoaderClient::didReceiveResponse): Call through to the equivalent WebPlugInStreamLoaderDelegate method.
875         (WebNetscapePlugInStreamLoaderClient::didReceiveData): Ditto.
876         (WebNetscapePlugInStreamLoaderClient::didFail): Ditto.
877         (WebNetscapePlugInStreamLoaderClient::didFinishLoading): Ditto.
878
879 2007-12-16  Alexey Proskuryakov  <ap@webkit.org>
880
881         Reviewed by Darin.
882
883         http://bugs.webkit.org/show_bug.cgi?id=14140
884         <rdar://problem/5270958> REGRESSION: Complex system KeyBindings don't work properly
885
886         * WebView/WebHTMLView.mm:
887         (-[WebHTMLView _interceptEditingKeyEvent:shouldSaveCommand:]): Made command replaying work
888         when handling keypress, too.
889         (-[WebHTMLView doCommandBySelector:]): Adapted for the new way to store commands in events.
890         (-[WebHTMLView insertText:]): Append a command, not replace the whole existing vector. Also,
891         restore the state for additional commands to be saved correctly.
892
893 2007-12-14  David D. Kilzer  <ddkilzer@apple.com>
894
895         <rdar://problem/5647272> Remove user agent string hack for flickr.com
896
897         Reviewed by Darin.
898
899         * WebView/WebView.mm:
900         (-[WebView _userAgentForURL:]): Removed hack.
901
902 2007-12-14  David D. Kilzer  <ddkilzer@apple.com>
903
904         <rdar://problem/5647261> Remove user agent string hack for yahoo.com
905
906         Reviewed by Darin.
907
908         * WebView/WebView.mm:
909         (-[WebView _userAgentForURL:]): Removed hack.
910
911 2007-12-14  Darin Adler  <darin@apple.com>
912
913         Reviewed by Brady.
914
915         - fix http://bugs.webkit.org/show_bug.cgi?id=16296
916           <rdar://problem/5635641> -[WebFrameLoadDelegate didReceiveIcon:forFrame:] never called
917
918         * WebView/WebView.mm:
919         (-[WebView setFrameLoadDelegate:]): Call [WebIconDatabase sharedIconDatabase] if the
920         a didReceiveIcon method is present.
921
922 2007-12-14  Darin Adler  <darin@apple.com>
923
924         Reviewed by Alexey.
925
926         - Changed a few more editing operations to use WebCore instead of WebKit.
927         - Removed some obsolete unused code.
928
929         * WebCoreSupport/WebFrameBridge.h: Moved declarations of methods that are both
930         defined and used on the WebKit side to here. These no longer belong on the bridge
931         and should be moved to the WebFrame class (or elsewhere).
932         * WebCoreSupport/WebFrameBridge.mm: Removed some unused methods.
933
934         * WebView/WebFrameView.mm:
935         (+[WebFrameView _viewTypesAllowImageTypeOmission:]): Fix typo in comment.
936
937         * WebView/WebHTMLView.mm:
938         (-[WebHTMLViewPrivate dealloc]): Removed unused firstResponderTextViewAtMouseDownTime.
939         (-[WebHTMLViewPrivate clear]): Ditto.
940         (-[WebHTMLView _setMouseDownEvent:]): Ditto.
941         (commandNameForSelector): Added special cases for pageDown:, pageDownAndModifySelection:,
942         pageUp:, and pageUpAndModifySelection:, since those names probably aren't specific enough
943         to be used in WebCore (what AppKit calls scrollPageDown: vs. pageDown: needs to be
944         disambiguated with the word "Move"). Added deleteBackward:,
945         deleteBackwardByDecomposingPreviousCharacter:, deleteForward:, deleteToBeginningOfLine:,
946         deleteToBeginningOfParagraph:, deleteToEndOfLine:, deleteToEndOfParagraph:, pageDown:,
947         pageDownAndModifySelection:, pageUp:, pageUpAndModifySelection:, selectLine:,
948         selectParagraph:, selectSentence:, and selectWord: to the list of commands that are
949         forwarded to WebCore.
950         (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]): Eliminated the long list of
951         operations that we forward to WebCore. Instead, look up any command that WebCore can
952         handle, after any that we handle specially in WebHTMLView. Also fixed a bug where
953         an item that's not a menu item with changeBaseWritingDirection:NSWritingDirectionNatural
954         would end up enabled instead of disabled and streamlined the logic for toggleGrammarChecking:.
955         (-[WebHTMLView mouseDown:]): Removed unused firstResponderTextViewAtMouseDownTime.
956         (-[WebHTMLView becomeFirstResponder]): Removed unused willBecomeFirstResponderForNodeFocus.
957         (-[WebHTMLView resignFirstResponder]): Ditto.
958         (-[WebHTMLView checkSpelling:]): Took unneeded extra initialization of NSSpellChecker.
959
960         * WebView/WebHTMLViewInternal.h: Removed unused willBecomeFirstResponderForNodeFocus,
961         firstResponderTextViewAtMouseDownTime, _textViewWasFirstResponderAtMouseDownTime: and
962         _willMakeFirstResponderForNodeFocus.
963
964 2007-12-13  Alexey Proskuryakov  <ap@webkit.org>
965
966         Reviewed by Darin.
967
968         Turn on keyboard event processing quirks for feed views and old applications on Mac OS X.
969
970         * Misc/WebKitVersionChecks.h:
971         * WebView/WebView.mm:
972         (-[WebView _needsKeyboardEventHandlingQuirks]):
973         (-[WebView _preferencesChangedNotification:]):
974
975 2007-12-12  Brady Eidson  <beidson@apple.com>
976
977         Reviewed by Sam Weinig
978
979         Fix for <rdar://problem/4886844> and lay groundwork for <rdar://problem/4516170> (Back/Forward Cache on Windows)
980
981         * WebCoreSupport/WebCachedPagePlatformData.h: Added.
982         (WebCachedPagePlatformData::WebCachedPagePlatformData): Constructor takes a WebDocumentView for later restoration
983         (WebCachedPagePlatformData::clear):
984         (WebCachedPagePlatformData::webDocumentView):
985
986         * WebCoreSupport/WebFrameLoaderClient.h:
987         * WebCoreSupport/WebFrameLoaderClient.mm:
988         (WebFrameLoaderClient::savePlatformDataToCachedPage):
989         (WebFrameLoaderClient::transitionToCommittedFromCachedPage): Don't set the DocumentLoader to the Frame here, 
990           because that is now done in WebCore.
991         (WebFrameLoaderClient::transitionToCommittedForNewPage):
992
993 2007-12-12  Mark Rowe  <mrowe@apple.com>
994
995         Reviewed by Dave Kilzer.
996
997         Remove abuse of projectDirPath from WebKit.xcodeproj to fix Production builds.
998
999         * Configurations/WebKit.xcconfig:
1000
1001 2007-12-11  Sam Weinig  <sam@webkit.org>
1002
1003         Reviewed by Darin Adler.
1004
1005         Scrub URL out of the tree in preparation for renaming KURL to URL.
1006
1007         * WebCoreSupport/WebFrameLoaderClient.mm:
1008         (WebFrameLoaderClient::actionDictionary):
1009         * WebView/WebDataSource.mm:
1010         (-[WebDataSource _URL]):
1011         * WebView/WebView.mm:
1012         (-[WebView _dispatchDidReceiveIconFromWebFrame:]):
1013
1014 2007-12-11  Darin Adler  <darin@apple.com>
1015
1016         Reviewed by Geoff.
1017
1018         - change more editing commands to use WebCore::Editor
1019         - change to use the new WebCore::Editor::command() function
1020
1021         * WebView/WebHTMLView.mm: Changed alignCenter, alignJustified, alignLeft,
1022         alignRight, cut, copy, deleteToMark, indent, insertNewlineIgnoringFieldEditor,
1023         insertTabIgnoringFieldEditor, outdent, selectAll, selectToMark, setMark,
1024         subscript, superscript, swapWithMark, underline, unscript, yank, and yankAndSelect
1025         to use the "forward to WebCore" macro instead of having hand-written implementations.
1026         (kit): Added function to change a TriState to an AppKit-style tri-state value.
1027         (-[WebHTMLView coreCommandBySelector:]): Added. No longer converts case of the
1028         first character or copies the selector name, since the Editor commands are not case
1029         sensitive any more. Returns a command object.
1030         (-[WebHTMLView coreCommandByName:]): Added.
1031         (-[WebHTMLView executeCoreCommandBySelector:]): Renamed from callWebCoreCommand:,
1032         and changed to use the new coreCommandBySelector: method.
1033         (-[WebHTMLView executeCoreCommandByName:]): Added.
1034         (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]): Changed all the
1035         methods that call through to WebCore to also use the state() and isEnabled()
1036         functions on the commands for the menu item state and user interface item enabling.
1037         (-[WebHTMLView _handleStyleKeyEquivalent:]): Use ToggleBold and ToggleItalic by
1038         name rather than having local methods for them; no need for methods with a single
1039         call site.
1040         (-[WebHTMLView insertParagraphSeparator:]): Use executeCoreCommandByName: rather
1041         than the deprecated execCommand().
1042         (-[WebHTMLView doCommandBySelector:]): Changed to use command().execute() rather
1043         than the deprecated execCommand().
1044         * WebView/WebHTMLViewInternal.h: Removed some unneeded method declarations.
1045
1046 2007-12-07  Alexey Proskuryakov  <ap@webkit.org>
1047
1048         Reviewed by Darin.
1049
1050         <rdar://problem/5535636>
1051         Have to press 4 times instead of 2 times to get the expected result of ^^ with german keyboard.
1052
1053         http://bugs.webkit.org/show_bug.cgi?id=13916
1054         JavaScript detects Tab as a character input on a textfield validation
1055
1056         * WebCoreSupport/WebEditorClient.h:
1057         Renamed handleKeypress() to handleKeyboardEvent(), as it gets both keydowns and keypresses.
1058         Renamed handleInputMethodKeypress() to handleInputMethodKeydown().
1059         * WebCoreSupport/WebEditorClient.mm:
1060         (WebEditorClient::handleKeyboardEvent): This change makes sense only remotely, but it helped
1061         to get tests working. I guess Mac keyboard event handling needs further refactoring.
1062
1063         * WebView/WebHTMLView.mm:
1064         (selectorToCommandName): Convert AppKit editing selector name to Editor command name - extracted
1065         from callWebCoreCommand:.
1066         (_interceptEditingKeyEvent:shouldSaveCommand:): Insert text from keypress.
1067
1068         * WebView/WebPDFView.mm:
1069         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
1070         Convert incoming platform KeyDown into RawKeyDown, as this is what the view is interested in.
1071
1072 2007-12-10  Brady Eidson  <beidson@apple.com>
1073
1074         Reviewed by John Sullivan
1075
1076         Fix for <rdar://problem/5640080> - Database UI delegate calls need to specify WebFrame
1077
1078         This is because a common UI case is to want to know the originating URL of a Database
1079
1080         * WebCoreSupport/WebChromeClient.mm:
1081         (WebChromeClient::requestQuotaIncreaseForNewDatabase):
1082         (WebChromeClient::requestQuotaIncreaseForDatabaseOperation):
1083
1084         * WebView/WebUIDelegatePrivate.h:
1085
1086         * WebView/WebView.mm:
1087         (CallDelegateReturningUnsignedLongLong):
1088         (CallUIDelegateReturningUnsignedLongLong):
1089         * WebView/WebViewInternal.h:
1090
1091 2007-12-10  Timothy Hatcher  <timothy@apple.com>
1092
1093         Reviewed by Mark Rowe.
1094
1095         <rdar://problem/5639463> Bundle versions on Tiger should be 4523.x not 523.x
1096
1097         * Configurations/Version.xcconfig: Some Tiger versions of Xcode don't set MAC_OS_X_VERSION_MAJOR,
1098           so assume Tiger and use a 4 for the SYSTEM_VERSION_PREFIX.
1099
1100 2007-12-10  Kevin Decker  <kdecker@apple.com>
1101
1102         Reviewed by Darin.
1103
1104         Fixed: <rdar://problem/4290098> Right-mouse click on element doesn't call onmousedown handler
1105         
1106         * WebView/WebHTMLView.mm:
1107         (-[WebHTMLView menuForEvent:]): Match behavior of other browsers by sending an onmousedown event for right clicks.
1108
1109 2007-12-08  Oliver Hunt  <oliver@apple.com>
1110
1111         Reviewed by Sam W.
1112
1113         Split the ENABLE_SVG_EXPERIMENTAL_FEATURES flag into separate flags.
1114         
1115         Fixes <rdar://problem/5620249> Must disable SVG animation
1116         <rdar://problem/5612772> Disable SVG filters on Mac to match Windows behavior
1117         
1118         Minor updates to the feature flags used.
1119
1120         * Configurations/WebKit.xcconfig:
1121         * DOM/WebDOMOperations.mm:
1122
1123 2007-12-07  Darin Adler  <darin@apple.com>
1124
1125         Reviewed by Kevin Decker and Tim Hatcher.
1126
1127         - speculative fix for <rdar://problem/5400159> CrashTracer: [USER] 726 crashes
1128           in Safari at com.apple.WebKit: -[WebHTMLView(WebPrivate) _updateMouseoverWithFakeEvent] + 389
1129
1130         * WebView/WebHTMLView.mm:
1131         (-[WebHTMLView _frameOrBoundsChanged]): Only schedule the mouseover timer if we are in a window
1132         and not closed. That's because viewDidMoveToWindow and close are the entry points for cancelling.
1133         (-[WebHTMLView close]): Add code to cancel both timers. Needed for the case where the entire
1134         window goes away, and the view is never removed from the window.
1135         (-[WebHTMLView viewDidMoveToWindow]): Don't do work if the view is closed.
1136
1137 2007-12-07  Darin Adler  <darin@apple.com>
1138
1139         Reviewed by Mitz.
1140
1141         - http://bugs.webkit.org/show_bug.cgi?id=15981
1142           speed up visited-link code a bit
1143
1144         * History/WebHistory.mm: Removed unused Latin-1 code path.
1145         (-[_WebCoreHistoryProvider containsURL:length:]): Updated for method name change.
1146
1147 2007-12-07  Geoffrey Garen  <ggaren@apple.com>
1148
1149         Reviewed by Sam Weinig.
1150         
1151         Added a forwarding header, since we now #include nodes.h through some
1152         JavaScriptCore headers.
1153
1154         * ForwardingHeaders/wtf/ListRefPtr.h: Added.
1155
1156 2007-12-06  Brady Eidson  <beidson@apple.com>
1157
1158         Reviewed by Oliver's rubber stamp
1159
1160         Let's go ahead and call the correct UI Delegate method, shall we?
1161
1162         * WebCoreSupport/WebChromeClient.mm:
1163         (WebChromeClient::requestQuotaIncreaseForDatabaseOperation): Call the correct UI delegate
1164
1165 2007-12-06  Adam Roben  <aroben@apple.com>
1166
1167         Remove some assertions we know can fire and replace them with a FIXME
1168
1169         Reviewed by Anders.
1170
1171         * WebCoreSupport/WebFrameLoaderClient.mm:
1172
1173 2007-12-06  Timothy Hatcher  <timothy@apple.com>
1174
1175         Change the ASSERT added for the previous fix. The ASSERT was firing for 10.5.0.
1176         Only assert if the major version is zero, since zero is handled in the other cases.
1177
1178         * WebView/WebView.mm:
1179         (callGestalt): Remove the ASSERT.
1180         (createMacOSXVersionString): ASSERT that major is not zero.
1181
1182 2007-12-06  Darin Adler  <darin@apple.com>
1183
1184         Reviewed by Tim Hatcher.
1185
1186         - fix <rdar://problem/5513394> No way to detect Tiger vs Leopard from Safari's user agent string
1187
1188         * WebView/WebView.mm:
1189         (callGestalt): Added.
1190         (createMacOSXVersionString): Added.
1191         (-[WebView _userAgentWithApplicationName:andWebKitVersion:]): Added Mac OS X version string,
1192         right after the string "Mac OS X", but with underscores instead of dots to avoid the dreaded
1193         "4." problem (old libraries that think a "4." anywhere in the user agent means Netscape 4).
1194         (-[WebView _userAgentForURL:]): Fixed incorrect bug numbers.
1195
1196 2007-12-04  Geoffrey Garen  <ggaren@apple.com>
1197
1198         Reviewed by Darin Adler.
1199
1200         Third step in refactoring JSGlobalObject: Moved data members and data
1201         member access from Interpreter to JSGlobalObject.
1202         
1203         * WebView/WebFrame.mm:
1204         (-[WebFrame _attachScriptDebugger]):
1205
1206 2007-12-04  Kevin McCullough  <kmccullough@apple.com>
1207
1208         Reviewed by Darin.
1209
1210         - <rdar://5621435>
1211         - Security Fix. Instead of having it off by default, WebKit now must
1212         explicitly turn off local-resource restriction when needed for backwards
1213         coimpatibility reasons.
1214
1215         * WebView/WebView.mm:
1216         (-[WebView _commonInitializationWithFrameName:groupName:]):
1217
1218 2007-12-05  Brady Eidson  <beidson@apple.com>
1219
1220         Reviewed by Kevin Deckers rubberstamp
1221
1222         Disclose and export the Databases Directory defaults key
1223
1224         * Storage/WebDatabaseManager.mm:
1225         * Storage/WebDatabaseManagerPrivate.h:
1226         * WebKit.exp:
1227
1228 2007-12-04  Kevin Decker  <kdecker@apple.com>
1229
1230         Reviewed by Anders.
1231
1232         <rdar://problem/5629125> PluginInfoStore needs the ability to return the name of a plug-in for a given MIME type
1233
1234         * WebCoreSupport/WebViewFactory.mm:
1235         (-[WebViewFactory pluginNameForMIMEType:]): Added.
1236
1237 2007-12-04  Brady Eidson  <beidson@apple.com>
1238
1239         Reviewed by Mark Rowe
1240
1241         Tweaked the way we typedef and cast these objc_msgSend calls
1242
1243         * WebView/WebView.mm:
1244         (CallDelegateReturningUnsignedLongLong):
1245
1246 2007-12-04  John Sullivan  <sullivan@apple.com>
1247
1248         Reviewed by Brady Eidson (with help from Mark Rowe)
1249         
1250         Fixed return values for unsigned-long-long delegate methods
1251
1252         * WebView/WebView.mm:
1253         (CallDelegateReturningUnsignedLongLong):
1254         redid the change that Brady did at home over the weekend but forgot to check in
1255
1256 2007-11-27  Adam Roben  <aroben@apple.com>
1257
1258         Remove -[WebFrameBridge setNeedsReapplyStyles]
1259
1260         This functionality is now WebCore's responsibility.
1261
1262         Reviewed by Hyatt.
1263
1264         * WebCoreSupport/WebFrameBridge.mm:
1265         * WebKit.order:
1266
1267 2007-12-04  John Sullivan  <sullivan@apple.com>
1268
1269         Reviewed by Darin
1270         
1271         Added deleteOrigin: SPI, which isn't fully implemented
1272
1273         * Storage/WebDatabaseManagerPrivate.h:
1274         * Storage/WebDatabaseManager.mm:
1275         (-[WebDatabaseManager deleteOrigin:]):
1276         just calls deleteDatabasesWithOrigin: for now, but needs to delete origin itself too
1277
1278 2007-12-04  Timothy Hatcher  <timothy@apple.com>
1279
1280         Reviewed by Mark Rowe.
1281
1282         Remove a check for early versions of Leopard CFNetwork now that
1283         Leopard has shipped.
1284
1285         * Misc/WebKitVersionChecks.h: Remove WEBKIT_FIRST_CFNETWORK_VERSION_WITH_LARGE_DISK_CACHE_FIX.
1286         * WebView/WebView.mm:
1287         (+[WebView _setCacheModel:]): Remove the early Leopard CFNetwork check.
1288
1289 2007-12-04  Kevin Decker  <kdecker@apple.com>
1290
1291         Reviewed by Darin.
1292
1293         Revised fix for: <rdar://problem/5586978> REGRESSION (Safari 2-3): WebKit sometimes doesn't invoke Flash's NPP_SetWindow function and causes a hang
1294
1295         This fix is exactly the same as chageset 28359 with the exception of an added early return in
1296         updateAndSetWindow to cover the additional case of when a plug-in isn't drawable.
1297         
1298         The CG-based Flash player would sometimes hang because (for CoreGraphics-based plug-ins) our code would
1299         only call into the NPP_SetWindow() function when we tell the plug-in to draw. This created havoc with 
1300         Flash because Flash expects the browser to call NPP_SetWindow() and provide a valid graphics context 
1301         regardless of whether or not it actually needs to draw. 
1302         
1303         * Plugins/WebBaseNetscapePluginView.mm:
1304         (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]): Removed an incorrect comment and toned
1305         down an ASSERT that was too strict. 
1306         (-[WebBaseNetscapePluginView updateAndSetWindow]): Removed an early return for CoreGraphics-based plug-ins
1307         which would sometimes altogether prevent updating the PortState and calling into a plug-ins NPP_SetWindow()
1308         function. Also tweaked a comment and added an early return if the plug-in can't draw.
1309
1310 2007-12-04  Darin Adler  <darin@apple.com>
1311
1312         Reviewed by Kevin Decker.
1313
1314         * WebCoreSupport/WebFrameLoaderClient.h: Removed obsolete privateBrowsingEnabled.
1315         * WebCoreSupport/WebFrameLoaderClient.mm: Ditto.
1316         * WebKit.order: Ditto.
1317
1318 2007-12-03  Dan Bernstein  <mitz@apple.com>
1319
1320         Reviewed by Dave Hyatt.
1321
1322         - fix <rdar://problem/5346452> Resize event doesn't fire on body element inside a frame
1323
1324         * WebView/WebHTMLView.mm:
1325         (-[WebHTMLView layoutToMinimumPageWidth:maximumPageWidth:adjustingViewSize:]): Removed the code
1326         that checked if the view had resized and sent the resize event, since
1327         FrameView sends resize events now.
1328         * WebView/WebHTMLViewInternal.h:
1329
1330 2007-12-03  Timothy Hatcher  <timothy@apple.com>
1331
1332         Reviewed by Darin.
1333
1334         Change WebViewGetResourceLoadDelegateImplementations and WebViewGetFrameLoadDelegateImplementations
1335         to return a pointer to the implementation struct instead of a copy of the struct. This changes
1336         all of the callers to dereference the pointer to access the struct fields.
1337
1338         * Plugins/WebNullPluginView.mm:
1339         (-[WebNullPluginView reportFailure]):
1340         * WebCoreSupport/WebFrameBridge.mm:
1341         * WebCoreSupport/WebFrameLoaderClient.mm:
1342         (WebFrameLoaderClient::dispatchDidLoadResourceFromMemoryCache):
1343         (WebFrameLoaderClient::assignIdentifierToInitialRequest):
1344         (WebFrameLoaderClient::dispatchWillSendRequest):
1345         (WebFrameLoaderClient::dispatchDidReceiveAuthenticationChallenge):
1346         (WebFrameLoaderClient::dispatchDidCancelAuthenticationChallenge):
1347         (WebFrameLoaderClient::dispatchDidReceiveResponse):
1348         (WebFrameLoaderClient::willCacheResponse):
1349         (WebFrameLoaderClient::dispatchDidReceiveContentLength):
1350         (WebFrameLoaderClient::dispatchDidFinishLoading):
1351         (WebFrameLoaderClient::dispatchDidFailLoading):
1352         (WebFrameLoaderClient::dispatchDidHandleOnloadEvents):
1353         (WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad):
1354         (WebFrameLoaderClient::dispatchDidCancelClientRedirect):
1355         (WebFrameLoaderClient::dispatchWillPerformClientRedirect):
1356         (WebFrameLoaderClient::dispatchDidChangeLocationWithinPage):
1357         (WebFrameLoaderClient::dispatchWillClose):
1358         (WebFrameLoaderClient::dispatchDidStartProvisionalLoad):
1359         (WebFrameLoaderClient::dispatchDidReceiveTitle):
1360         (WebFrameLoaderClient::dispatchDidCommitLoad):
1361         (WebFrameLoaderClient::dispatchDidFailProvisionalLoad):
1362         (WebFrameLoaderClient::dispatchDidFailLoad):
1363         (WebFrameLoaderClient::dispatchDidFinishDocumentLoad):
1364         (WebFrameLoaderClient::dispatchDidFinishLoad):
1365         (WebFrameLoaderClient::dispatchDidFirstLayout):
1366         * WebView/WebView.mm:
1367         (WebViewGetResourceLoadDelegateImplementations):
1368         (WebViewGetFrameLoadDelegateImplementations):
1369         (-[WebView _dispatchDidReceiveIconFromWebFrame:]):
1370         * WebView/WebViewInternal.h:
1371
1372 2007-12-03  Timothy Hatcher  <timothy@apple.com>
1373
1374         Reviewed by Brady Eidson.
1375
1376         <rdar://problem/5539913> 188 crashes in WebViewGetFrameLoadDelegateImplementations
1377         <rdar://problem/5586095> CrashTracer: [USER] 5000+ crashes in Safari and Dashboard in dispatchDidFailLoading
1378         <rdar://problem/5607081> CrashTracer: [USER] 2150 crashes in Safari at com.apple.WebKit:
1379         WebViewGetResourceLoadDelegateImplementations + 28
1380
1381         * WebView/WebView.mm:
1382         (-[WebView _cacheResourceLoadDelegateImplementations]): If the delegate is nil, bzero the
1383         implementation cache. This just prevents us from calling getMethod() multiple times just to zero.
1384         (-[WebView _cacheFrameLoadDelegateImplementations]): Ditto.
1385         (WebViewGetResourceLoadDelegateImplementations): Return a zeroed implementations struct
1386         if the WebView is nil. This fixes the crashes.
1387         (WebViewGetFrameLoadDelegateImplementations): Ditto.
1388
1389 2007-12-02  Geoffrey Garen  <ggaren@apple.com>
1390
1391         Reviewed by Eric Seidel.
1392
1393         Updated to match the JavaScriptCore change to move virtual methods from
1394         Interpreter to JSGlobalObject.
1395
1396         * WebView/WebFrame.mm:
1397         (-[WebFrame globalContext]): Use the toRef function instead of manually
1398         casting.
1399
1400 2007-12-01  Brady Eidson  <beidson@apple.com>
1401
1402         Reviewed by Tim
1403
1404         Added a default database quota of 5mb to the default WebPreferences
1405
1406         * WebView/WebPreferences.m:
1407         (+[WebPreferences initialize]):
1408
1409 2007-11-30  John Sullivan  <sullivan@apple.com>
1410
1411         Reviewed by Geoff Garen
1412         
1413         Added another symbol for WebDatabaseManager clients
1414
1415         * WebKit.exp:
1416         added .objc_class_name_WebSecurityOrigin
1417
1418 2007-11-30  Brady Eidson  <beidson@apple.com>
1419
1420         Reviewed by Geoff
1421
1422         Add isEqual operator to WebSecurityOrigin
1423
1424         * Storage/WebSecurityOrigin.mm:
1425         (-[WebSecurityOrigin isEqual:]):
1426
1427 2007-11-30  John Sullivan  <sullivan@apple.com>
1428
1429         Reviewed by Darin
1430         
1431         Tweaks to newly-declared NSString * constants to make them usable from clients
1432
1433         * Storage/WebDatabaseManagerPrivate.h:
1434         * Storage/WebDatabaseManager.mm:
1435         removed "const" from new NSNotification names and userInfo keys; these generate compiler warnings when used
1436         
1437         * WebKit.exp:
1438         export new NSNotification names and userInfo keys so clients can use them
1439
1440 2007-11-29  Anders Carlsson  <andersca@apple.com>
1441
1442         Reviewed by John.
1443
1444         Rename WebKitShrinksStandaloneImagesToFitKey to WebKitShrinksStandaloneImagesToFit.
1445         
1446         This is safe to do because the preference is off by default and Safari 3, which is the only client that turns it on,
1447         is using the setter and not messing around with NSUserDefaults.
1448         
1449         * WebView/WebPreferenceKeysPrivate.h:
1450         * WebView/WebPreferences.m:
1451         (+[WebPreferences initialize]):
1452         (-[WebPreferences shrinksStandaloneImagesToFit]):
1453         (-[WebPreferences setShrinksStandaloneImagesToFit:]):
1454
1455 2007-11-29  Brady Eidson  <beidson@apple.com>
1456
1457         Reviewed by Anders
1458
1459         Support for <rdar://problem/5556381> and <rdar://problem/5556379>
1460
1461         Hook up UI Delegate calls for the database engine feature and other small tweaks
1462
1463         * Storage/WebDatabaseManager.mm:
1464         (-[WebDatabaseManager detailsForDatabase:withOrigin:]): Renamed databaseName parameter to databaseIdentifier for clarity
1465         (-[WebDatabaseManager deleteDatabase:withOrigin:]): Renamed databaseName parameter to databaseIdentifier for clarity
1466         * Storage/WebDatabaseManagerPrivate.h:
1467
1468         * Storage/WebDatabaseTrackerClient.h:
1469         * Storage/WebDatabaseTrackerClient.mm:
1470         (WebDatabaseTrackerClient::dispatchDidModifyDatabase): Renamed databaseName parameter to databaseIdentifier for clarity
1471
1472         * WebCoreSupport/WebChromeClient.h:
1473         * WebCoreSupport/WebChromeClient.mm:
1474         (WebChromeClient::requestQuotaIncreaseForNewDatabase): Call through to the UI Delegate
1475         (WebChromeClient::requestQuotaIncreaseForDatabaseOperation): Ditto
1476
1477         * WebView/WebUIDelegatePrivate.h: Added the two UI Delegate methods
1478
1479         * WebView/WebView.mm:
1480         (CallDelegateReturningUnsignedLongLong):
1481         (CallUIDelegateReturningUnsignedLongLong):
1482         * WebView/WebViewInternal.h:
1483
1484 2007-11-28  Kevin McCullough  <kmccullough@apple.com>
1485
1486         Reviewed by Sam.
1487
1488         - Added recursive runloop guards.
1489
1490         * DefaultDelegates/WebScriptDebugServer.m:
1491         (-[WebScriptDebugServer suspendProcessIfPaused]):
1492
1493 2007-11-29  Mark Rowe  <mrowe@apple.com>
1494
1495         Reviewed by Oliver Hunt.
1496
1497         Fix an assertion failure seen on the layout tests, and when closing the window after
1498         visiting <http://www.coudal.com/losalamos/>.
1499
1500         * Plugins/WebBaseNetscapePluginStream.mm:
1501         (-[WebBaseNetscapePluginStream _destroyStream]): Unlink the file and close the file
1502         descriptor even when the stream is being destroyed without the load completing. This
1503         avoids leaking the path and file descriptor, and leaving the temporary file on disk.
1504
1505 2007-11-28  Adele Peterson  <adele@apple.com>
1506
1507         Reviewed by Darin.
1508
1509         Fix for <rdar://problem/5524216> CrashTracer: [USER] 496 crashes in Safari at com.apple.WebCore: WebCore::Frame::eventHandler const + 6
1510
1511         The CrashTracer shows a variety of crashes in different methods (including keyDown and keyUp). This change adds nil checks for the frame in 
1512         WebHTMLView to prevent future problems in other methods as well.
1513
1514         * WebView/WebHTMLView.mm:
1515         (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]):
1516         (-[WebHTMLView keyDown:]):
1517         (-[WebHTMLView keyUp:]):
1518         (-[WebHTMLView flagsChanged:]):
1519         (-[WebHTMLView _selectionStartFontAttributesAsRTF]):
1520         (-[WebHTMLView _changeCSSColorUsingSelector:inRange:]):
1521         (-[WebHTMLView checkSpelling:]):
1522         (-[WebHTMLView showGuessPanel:]):
1523         (-[WebHTMLView indent:]):
1524         (-[WebHTMLView outdent:]):
1525         (-[WebHTMLView paste:]):
1526         (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
1527         (-[WebHTMLView insertText:]):
1528         (-[WebHTMLView selectionTextRects]):
1529
1530 2007-11-28  Dan Bernstein  <mitz@apple.com>
1531
1532         Reviewed by Maciej Stachowiak.
1533
1534         - fix <rdar://problem/5596160> fast/events/objc-event-api.html fails when run alone (or first)
1535
1536         * WebView/WebHTMLView.mm:
1537         (-[WebHTMLView setDataSource:]): This method calls addMouseMovedObserver
1538         because addMouseMovedObserver returns early if the dataSource
1539         is not nil. But if the dataSource is already set (which happens when
1540         a WebHTMLView is being reused) then addMouseMovedObserver must not
1541         be called again.
1542
1543 2007-11-27  Anders Carlsson  <andersca@apple.com>
1544
1545         Reviewed by Brady.
1546
1547         * Storage/WebDatabaseManager.mm:
1548         * Storage/WebDatabaseManagerPrivate.h:
1549         * Storage/WebDatabaseTrackerClient.mm:
1550         (WebDatabaseTrackerClient::dispatchDidModifyOrigin):
1551         (WebDatabaseTrackerClient::dispatchDidModifyDatabase):
1552         * Storage/WebSecurityOrigin.mm:
1553         (-[WebSecurityOrigin _initWithWebCoreSecurityOriginData:]):
1554         * Storage/WebSecurityOriginInternal.h:
1555
1556 2007-11-27  Kevin Decker  <kdecker@apple.com>
1557
1558         Reviewed by Darin, landed by Anders.
1559
1560         Fixed: <rdar://problem/4610818> CrashTracer: 1533 crashes in Safari at com.macromedia.Flash Player.plugin: native_ShockwaveFlash_TCallLabel + 271131
1561
1562         The problem was that some Leopard users were still inadvertently using the old Flash 8 plug-in, even though Leopard
1563         shipped with Flash 9. To avoid loading an older version of a plug-in when a newer version is installed, the plug-in
1564         database will compare bundle versions and always load the latest version.
1565
1566         * Plugins/WebBasePluginPackage.h:
1567         * Plugins/WebBasePluginPackage.m:
1568         (-[WebBasePluginPackage versionNumber]): New method. CFBundleGetVersionNumber doesn't work with all possible versioning schemes,
1569         but we think for now it's good enough for us.
1570         * Plugins/WebPluginDatabase.m:
1571         (considerCandidate): Added a C utility function which compares the current plug-in against a candidate plug-in's version number.
1572         If both plug-ins have the same bundle ID and the candiate is newer, the current plug-in becomes the candidate.
1573         (-[WebPluginDatabase pluginForKey:withEnumeratorSelector:]): Calls the new considerCandidate() function.
1574
1575 2007-11-26  Timothy Hatcher  <timothy@apple.com>
1576
1577         Reviewed by Dave Hyatt.
1578
1579         <rdar://problem/5569233> Add the ability to disable author and user CSS styles
1580
1581         * WebView/WebPreferenceKeysPrivate.h: Define WebKitRespectStandardStyleKeyEquivalentsPreferenceKey.
1582         * WebView/WebPreferences.m:
1583         (+[WebPreferences initialize]): Default WebKitRespectStandardStyleKeyEquivalentsPreferenceKey to YES.
1584         (-[WebPreferences authorAndUserStylesEnabled]): Return the setting's BOOL value.
1585         (-[WebPreferences setAuthorAndUserStylesEnabled:]): Set the setting's BOOL value.
1586         * WebView/WebPreferencesPrivate.h: Add authorAndUserStylesEnabled and setAuthorAndUserStylesEnabled:.
1587         * WebView/WebView.mm:
1588         (-[WebView _preferencesChangedNotification:]): Update WebCore::Settings::authorAndUserStylesEnabled.
1589
1590 2007-11-26  Brady Eidson  <beidson@apple.com>
1591
1592         Reviewed by Mark Rowe
1593
1594         Provide API for setting the default storage quota per database origin
1595
1596         * Misc/WebNSDictionaryExtras.h:
1597         * Misc/WebNSDictionaryExtras.m:
1598         (-[NSMutableDictionary _webkit_setUnsignedLongLong:forKey:]): Helper for UINT64 preferences
1599
1600         * WebView/WebPreferenceKeysPrivate.h:
1601         * WebView/WebPreferences.m:
1602         (-[WebPreferences _unsignedLongLongValueForKey:]): Helper for UINT64 prefs
1603         (-[WebPreferences _setUnsignedLongLongValue:forKey:]): Ditto
1604         (-[WebPreferences defaultDatabaseQuota]):
1605         (-[WebPreferences setDefaultDatabaseQuota:]):
1606         * WebView/WebPreferencesPrivate.h:
1607
1608         * WebView/WebView.mm:
1609         (-[WebView _preferencesChangedNotification:]): Set the WebCore Settings version of the default storage pref
1610
1611 2007-11-26  Darin Adler  <darin@apple.com>
1612
1613         Reviewed by Adele.
1614
1615         - some middle-mouse-button-related fixes
1616
1617         These don't affect Safari since it maps the middle mouse button to the command key,
1618         but that might not always be the case for future versions.
1619
1620         * WebView/WebHTMLView.mm:
1621         (-[WebHTMLView otherMouseDown:]): Pass through middle mouse down events to WebCore.
1622         (-[WebHTMLView otherMouseDragged:]): Ditto, for drag events.
1623         (-[WebHTMLView otherMouseUp:]): Ditto, for up events.
1624
1625         * WebView/WebPolicyDelegate.h: Fixed inaccurate documentation of WebActionButtonKey.
1626
1627 2007-11-26  Anders Carlsson  <andersca@apple.com>
1628
1629         Reviewed by Brady.
1630
1631         Get rid of the WebSecurityOriginPrivate object and store 
1632         the WebCore::SecurityOriginData pointer in the _private field of
1633         the WebSecurityOrigin object instead.
1634         
1635         * Storage/WebDatabaseManager.mm:
1636         (-[WebDatabaseManager databasesWithOrigin:]):
1637         (-[WebDatabaseManager detailsForDatabase:withOrigin:]):
1638         (-[WebDatabaseManager deleteDatabasesWithOrigin:]):
1639         (-[WebDatabaseManager deleteDatabase:withOrigin:]):
1640         * Storage/WebSecurityOrigin.mm:
1641         (-[WebSecurityOrigin initWithProtocol:domain:port:]):
1642         (-[WebSecurityOrigin protocol]):
1643         (-[WebSecurityOrigin domain]):
1644         (-[WebSecurityOrigin port]):
1645         (-[WebSecurityOrigin usage]):
1646         (-[WebSecurityOrigin quota]):
1647         (-[WebSecurityOrigin setQuota:]):
1648         (-[WebSecurityOrigin dealloc]):
1649         (-[WebSecurityOrigin finalize]):
1650         (-[WebSecurityOrigin _initWithWebCoreSecurityOriginData:]):
1651         (-[WebSecurityOrigin _core]):
1652         * Storage/WebSecurityOriginInternal.h:
1653
1654 2007-11-26  Timothy Hatcher  <timothy@apple.com>
1655
1656         Reviewed by Adam Roben.
1657
1658         Bug 16137: Web Inspector window on Leopard should have a unified toolbar and window title
1659         http://bugs.webkit.org/show_bug.cgi?id=16137
1660
1661         Create the Web Inspector window with the textured style. Set the content border
1662         thickness for the top of the window or the height of the toolbar. Also make the
1663         window's bottom corners square, since a normal textured window normally has
1664         rounded bottom corners.
1665
1666         * WebCoreSupport/WebInspectorClient.mm:
1667         (-[WebInspectorWindowController window]):
1668
1669 2007-11-24  Mark Rowe  <mrowe@apple.com>
1670
1671         Tiger build fix.
1672
1673         * Plugins/WebBaseNetscapePluginStream.mm:
1674         (CarbonPathFromPOSIXPath): Use WebCFAutorelease as this also works on Tiger.
1675
1676 2007-11-24  Mark Rowe  <mrowe@apple.com>
1677
1678         Reviewed by Tim Hatcher.
1679
1680         Fix <rdar://problem/5432686> 333MB RPRVT seems to leak @ www.43folders.com (1hr plug-in stream).
1681         http://bugs.webkit.org/show_bug.cgi?id=13705
1682
1683         Have NP_ASFILE and NP_ASFILEONLY streams write the data to disk as they receive it rather than
1684         dumping the data to disk in a single go when the stream has completed loading.  On a test case
1685         involving a 150MB Flash movie being streamed from a local web server this reduces memory consumption
1686         on page load from around 400MB to 22MB.
1687
1688         The only plugin I have found that uses NP_ASFILE or NP_ASFILEONLY on the Mac is our NetscapeMoviePlugin
1689         example code so the NP_ASFILE portion of this change has not had any testing with a real-world plugin.
1690
1691         * Plugins/WebBaseNetscapePluginStream.h:
1692         * Plugins/WebBaseNetscapePluginStream.mm:
1693         (-[WebBaseNetscapePluginStream initWithRequestURL:plugin:notifyData:sendNotification:]):
1694         (-[WebBaseNetscapePluginStream dealloc]):
1695         (-[WebBaseNetscapePluginStream finalize]):
1696         (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:headers:]):
1697         (-[WebBaseNetscapePluginStream _destroyStream]): Update to work with paths as NSStrings.
1698         (-[WebBaseNetscapePluginStream _deliverDataToFile:]): Open the file if it is not already open, and write any data
1699         to disk.
1700         (-[WebBaseNetscapePluginStream finishedLoading]): If the stream is NP_ASFILE or NP_ASFILEONLY we need to ensure
1701         that the file exists before _destroyStream passes it to the plugin.  Simulating the arrival of an empty data block
1702         ensure that the file will be created if it has not already.
1703         (-[WebBaseNetscapePluginStream receivedData:]):
1704         (CarbonPathFromPOSIXPath):
1705         * Plugins/WebBaseNetscapePluginView.mm:
1706         (-[WebBaseNetscapePluginView pluginViewFinishedLoading:]): Data is dealt with incrementally so there's no need to pass
1707         it to finishedLoading.
1708         (-[WebBaseNetscapePluginView evaluateJavaScriptPluginRequest:]): Ditto.
1709
1710 2007-11-23  Oliver Hunt  <oliver@apple.com>
1711
1712         Reviewed by Mark Rowe.
1713         
1714         Fixed <rdar://problem/3759190> allow input methods the option of processing mouse events themselves
1715
1716         * WebView/WebHTMLView.mm:
1717         (-[WebHTMLView mouseDown:]):
1718
1719 2007-11-22  Dan Bernstein  <mitz@apple.com>
1720
1721         Reviewed by Antti Koivisto.
1722
1723         - http://bugs.webkit.org/show_bug.cgi?id=15811
1724           WebKit plug-ins can re-enter WebKit under attach()
1725           <rdar://problem/5577978>
1726
1727         * Plugins/WebNullPluginView.mm:
1728         (-[WebNullPluginView viewDidMoveToWindow]): Removed workaround for the
1729         above bug that added as part of fixing
1730         <http://bugs.webkit.org/show_bug.cgi?id=15804>.
1731
1732 2007-11-21  Mark Rowe  <mrowe@apple.com>
1733
1734         Reviewed by Eric.
1735
1736         Fix WebKit to build without warnings under GCC 4.2.
1737
1738         * Configurations/Base.xcconfig:
1739
1740 2007-11-21  Mark Rowe  <mrowe@apple.com>
1741
1742         Reviewed by Tim Hatcher.
1743
1744         Changes due to <rdar://problem/5602936> Need to resolve new GCC 4.2 warnings
1745
1746         Update format strings to use format specifiers that match the argument types.
1747
1748         * Misc/WebGraphicsExtras.c:
1749         (WebConvertBGRAToARGB):
1750
1751 2007-11-19  Brady Eidson <beidson@apple.com>
1752
1753         Reviewed by Maciej
1754
1755         Finished hooking up the WebKit API for database management.
1756         Most of the API is actually implemented in WebCore and some of those methods might
1757         only be stubs for now.
1758
1759         * Storage/WebDatabaseManager.mm:
1760         (-[WebDatabaseManager origins]): Call through to the WebCore tracker and construct an API result
1761         (-[WebDatabaseManager databasesWithOrigin:]): Ditto
1762         (-[WebDatabaseManager detailsForDatabase:withOrigin:]): Ditto
1763
1764         * Storage/WebSecurityOrigin.mm:
1765         (-[WebSecurityOrigin usage]): Call through to WebCore
1766         (-[WebSecurityOrigin quota]): Ditto
1767         (-[WebSecurityOrigin setQuota:]): Ditto
1768         (-[WebSecurityOrigin _core]): Get WebCore version of this object
1769         * Storage/WebSecurityOriginInternal.h:
1770
1771 2007-11-17  Timothy Hatcher  <timothy@apple.com>
1772
1773         Reviewed by Mark Rowe.
1774
1775         Bug 13470: i18n: The Web Inspector is not localizable
1776         http://bugs.webkit.org/show_bug.cgi?id=13470
1777
1778         Implement the localizedStringsURL() client method to return the
1779         localized URL of InspectorLocalizedStrings.js in WebCore.
1780
1781         * WebCoreSupport/WebInspectorClient.h: Added localizedStringsURL.
1782         * WebCoreSupport/WebInspectorClient.mm:
1783         (WebInspectorClient::localizedStringsURL): Added.
1784         (WebInspectorClient::updateWindowTitle): Localized the window title.
1785         (-[WebInspectorWindowController init]): Remove a FIXME that dosen't make sense anymore.
1786         (-[WebInspectorWindowController initWithInspectedWebView:]): Code style cleanup.
1787
1788 2007-11-17  Alexey Proskuryakov  <ap@webkit.org>
1789
1790         Reviewed by Darin.
1791
1792         http://bugs.webkit.org/show_bug.cgi?id=15969
1793         Eliminate Editor::deleteRange()
1794
1795         * WebView/WebHTMLView.mm:
1796         (+[WebHTMLView initialize]):
1797         (-[WebHTMLView yank:]):
1798         (-[WebHTMLView yankAndSelect:]):
1799         (-[WebHTMLView setMark:]):
1800         (-[WebHTMLView deleteToMark:]):
1801         (-[WebHTMLView selectToMark:]):
1802         (-[WebHTMLView swapWithMark:]):
1803         Pushed all kill ring methods to WebCore. They were guilty of using Editor::deleteRange()!
1804
1805 2007-11-16  Mark Rowe  <mrowe@apple.com>
1806
1807         Reviewed by Tim Hatcher.
1808
1809         Build WebCore as a sub-framework of WebKit in all configurations.
1810
1811         * Configurations/WebKit.xcconfig:
1812
1813 2007-11-16  John Sullivan  <sullivan@apple.com>
1814
1815         Reviewed by Brady
1816
1817         * WebKit.exp:
1818         Exported some new database-related symbols
1819
1820 2007-11-16  Brady Eidson  <beidson@apple.com>
1821
1822         Reviewed by John
1823
1824         Database management API tweaks
1825
1826         Fleshed out "WebSecurityOrigin" to be the API object representing an origin.  This relieves some
1827         burden off WebDatabaseManager and allows usage/quota operations on the SecurityOrigin object itself
1828
1829         Also added a new subdirectory for Storage related API - Why are we afraid to add new directories to
1830         the WebKit tree?
1831
1832         * Misc/WebSecurityOrigin.mm: Removed.
1833         * Misc/WebSecurityOriginInternal.h: Removed.
1834         * Misc/WebSecurityOriginPrivate.h: Removed.
1835
1836         * Storage/WebDatabaseManager.mm: Work in terms of WebSecurityOrigin
1837         * Storage/WebDatabaseManagerPrivate.h:
1838
1839         * Storage/WebSecurityOrigin.mm: Added.
1840         (-[WebSecurityOriginPrivate initWithProtocol:domain:port:]):
1841         (-[WebSecurityOriginPrivate initWithWebCoreSecurityOrigin:]):
1842         (-[WebSecurityOriginPrivate finalize]):
1843         (-[WebSecurityOriginPrivate dealloc]):
1844         (-[WebSecurityOrigin initWithProtocol:domain:]):
1845         (-[WebSecurityOrigin initWithProtocol:domain:port:]):
1846         (-[WebSecurityOrigin protocol]):
1847         (-[WebSecurityOrigin domain]):
1848         (-[WebSecurityOrigin port]):
1849         (-[WebSecurityOrigin usage]): 
1850         (-[WebSecurityOrigin quota]):
1851         (-[WebSecurityOrigin setQuota:]): Clients will set quotas on the WebSecurityOrigin object itself
1852         (-[WebSecurityOrigin dealloc]):
1853         (-[WebSecurityOrigin _initWithWebCoreSecurityOriginData:]):
1854         * Storage/WebSecurityOriginInternal.h: Added.
1855         * Storage/WebSecurityOriginPrivate.h: Added.
1856
1857 2007-11-15  Brady Eidson  <beidson@apple.com>
1858
1859         Reviewed by John
1860
1861         Stubbing out everything required for a WebKit API for databases
1862
1863         These interfaces seem to provide everything we need for UI and management at the browser level
1864
1865         * Misc/WebDatabaseManager.h: Removed.
1866         * Misc/WebDatabaseManager.mm: Removed.
1867         * Misc/WebDatabaseManagerPrivate.h: Removed.
1868
1869         * Misc/WebSecurityOrigin.mm: Added. Object that acts as a container for the "SecurityOrigin tuple"
1870           (protocol, domain, and port)
1871         (-[WebSecurityOriginPrivate initWithProtocol:domain:port:]):
1872         (-[WebSecurityOriginPrivate dealloc]):
1873         (-[WebSecurityOrigin initWithProtocol:domain:]):
1874         (-[WebSecurityOrigin initWithProtocol:domain:port:]):
1875         (-[WebSecurityOrigin protocol]):
1876         (-[WebSecurityOrigin domain]):
1877         (-[WebSecurityOrigin port]):
1878         (-[WebSecurityOrigin dealloc]):
1879         (-[WebSecurityOrigin _initWithWebCoreSecurityOriginData:WebCore::]):
1880         * Misc/WebSecurityOriginInternal.h: Added.
1881         * Misc/WebSecurityOriginPrivate.h: Added.
1882
1883         * Storage/WebDatabaseManager.mm: Added.
1884         (+[WebDatabaseManager sharedWebDatabaseManager]):
1885         (-[WebDatabaseManager origins]):  Get a list of all origins currently tracked
1886         (-[WebDatabaseManager detailsForOrigin:]): Get the current usage and current quota for the given origin
1887         (-[WebDatabaseManager databasesWithOrigin:]): Get all databases for a certain origin
1888         (-[WebDatabaseManager detailsForDatabase:withOrigin:]): Get all details about a specific database
1889         (-[WebDatabaseManager setQuota:forOrigin:]): Change origin-wide quota
1890         (-[WebDatabaseManager deleteAllDatabases]):
1891         (-[WebDatabaseManager deleteAllDatabasesWithOrigin:]):
1892         (-[WebDatabaseManager deleteDatabase:withOrigin:]):
1893         * Storage/WebDatabaseManagerPrivate.h: Added.
1894         * Storage/WebDatabaseManagerInternal.h: Added.
1895         (WebKitInitializeDatabasesIfNecessary): One-time initialization of database-related things
1896
1897         * Storage/WebDatabaseTrackerClient.h: Added. Stubbed out client for notifications
1898         * Storage/WebDatabaseTrackerClient.mm: Added.
1899         (WebDatabaseTrackerClient::sharedWebDatabaseTrackerClient):
1900         (WebDatabaseTrackerClient::WebDatabaseTrackerClient):
1901         (WebDatabaseTrackerClient::~WebDatabaseTrackerClient):
1902         (WebDatabaseTrackerClient::dispatchDidModifyOrigin):
1903         (WebDatabaseTrackerClient::dispatchDidModifyDatabase):
1904
1905         * WebView/WebView.mm:
1906         (-[WebView _commonInitializationWithFrameName:groupName:]): Do one-time initialization of
1907           Database-related things here
1908
1909 2007-11-13  Geoffrey Garen  <ggaren@apple.com>
1910
1911         Reviewed by Anders Carlsson.
1912         
1913         Renamed Shared to RefCounted.
1914
1915         * ForwardingHeaders/wtf/RefCounted.h: Copied from WebKit/mac/ForwardingHeaders/wtf/Shared.h.
1916         * ForwardingHeaders/wtf/Shared.h: Removed.
1917         * WebCoreSupport/WebContextMenuClient.h:
1918
1919 2007-11-13  Geoffrey Garen  <ggaren@apple.com>
1920
1921         Reviewed by Sam Weinig.
1922
1923         Moved Shared.h into wtf so it could be used in more places.
1924
1925         * ChangeLog:
1926         * WebCoreSupport/WebContextMenuClient.h:
1927
1928 2007-11-13  John Sullivan  <sullivan@apple.com>
1929
1930         Reviewed by Darin.
1931
1932         removed recently-added PreferredType concept; we found a better way to do what
1933         ths was accomplishing
1934
1935         * WebCoreSupport/WebChromeClient.mm:
1936         (WebChromeClient::createWindow):
1937         removed use of PreferredType
1938
1939 2007-11-13  John Sullivan  <sullivan@apple.com>
1940
1941         Reviewed by Dan Bernstein.
1942         
1943         - fixed <rdar://problem/5567954> REGRESSION (Safari 2-3): Autofill no longer automatically fills in 
1944         form fields other than the one you're typing into
1945
1946         * WebCoreSupport/WebEditorClient.mm:
1947         (selectorForKeyEvent):
1948         correct the key identifier strings for Tab and Esc; these were updated in WebCore as part of r21445
1949         but didn't get updated here.
1950
1951 2007-11-12  Josh Aas  <joshmoz@gmail.com>
1952
1953         Reviewed by Darin.
1954
1955         - http://bugs.webkit.org/show_bug.cgi?id=15946
1956           add NPPValue NPPVpluginDrawingModel (Mozilla bug 403418 compat)
1957
1958         * Plugins/WebBaseNetscapePluginView.mm:
1959         (-[WebBaseNetscapePluginView setVariable:value:]):
1960
1961 2007-11-12  Alexey Proskuryakov  <ap@webkit.org>
1962
1963         Reviewed by Darin.
1964
1965         http://bugs.webkit.org/show_bug.cgi?id=15954
1966         Move DOM Selection operations out of SelectionController
1967
1968         * WebView/WebHTMLView.mm:
1969         (-[WebHTMLView _expandSelectionToGranularity:]):
1970         (-[WebHTMLView selectToMark:]):
1971         (-[WebHTMLView swapWithMark:]):
1972         * WebView/WebView.mm:
1973         (-[WebView setSelectedDOMRange:affinity:]):
1974         Adapted for SelectionController::setSelectedRange() now returning a bool.
1975
1976 2007-11-12  Oliver Hunt  <oliver@apple.com>
1977
1978         Reviewed by Darin and Geoff.
1979
1980         <rdar://problem/5522011> The content of the password field of 
1981         Safari is displayed by reconversion.
1982
1983         Some input methods (notably Kotoeri) can incorrectly provide 
1984         access to the raw text of a password field.  To work around 
1985         this we forcefully override the inputContext whenever a password
1986         field is active.
1987
1988         * WebView/WebHTMLView.mm:
1989         (-[WebHTMLView inputContext]):
1990
1991 2007-11-12  John Sullivan  <sullivan@apple.com>
1992
1993         Reviewed by Tim Hatcher
1994         
1995         - speculative fix for <rdar://problem/5509989> CrashTracer: [USER] 1 crash in Safari at com.apple.WebKit: 
1996         -[WebPDFView(FileInternal) _updatePreferencesSoon] + 56
1997         
1998         The crash is probably due to messaging a dealloc'ed dataSource ivar. The dataSource ivar isn't retained
1999         by this class, but should be. (It is retained by WebHTMLView, e.g.).
2000
2001         * WebView/WebPDFView.mm:
2002         (-[WebPDFView dealloc]):
2003         release dataSource ivar
2004         (-[WebPDFView setDataSource:]):
2005         retain dataSource ivar
2006
2007 2007-11-09  Tristan O'Tierney  <tristan@apple.com>
2008
2009         Reviewed by Timothy Hatcher.
2010         
2011         This patch is for the WebKit side of <rdar://problem/5591115>.
2012         We need a way to tell context menu navigations, such as "Open in New Window"
2013         to override any sort of browser preference for tab based navigation.
2014
2015         * WebCoreSupport/WebChromeClient.mm:
2016         (WebChromeClient::createWindow):
2017         Pass up the new preferredType parameter as a string.
2018         
2019 2007-11-09  Timothy Hatcher  <timothy@apple.com>
2020
2021         Reviewed by John.
2022
2023         <rdar://problem/5103720> REGRESSION: [WebView stringByEvaluatingJavaScriptFromString:] fails if "return" is used
2024
2025         Extend the linked on or after check to every application when a script passed to
2026         stringByEvaluatingJavaScriptFromString: has a return statement. Before the check
2027         was limited to VitalSource Bookshelf, but other developers are running into this.
2028
2029         * Misc/WebKitVersionChecks.h: Add the WEBKIT_FIRST_VERSION_WITHOUT_JAVASCRIPT_RETURN_QUIRK define.
2030         * WebView/WebDocumentLoaderMac.mm:
2031         (needsDataLoadWorkaround): Use WEBKIT_FIRST_VERSION_WITHOUT_ADOBE_INSTALLER_QUIRK sicne the
2032           WebKitLinkedOnOrAfter check here was about the Adobe installer, not VitalSource.
2033         * WebView/WebView.mm:
2034         (-[WebView stringByEvaluatingJavaScriptFromString:]): Remove the bundle ID check and use
2035           WEBKIT_FIRST_VERSION_WITHOUT_JAVASCRIPT_RETURN_QUIRK for the WebKitLinkedOnOrAfter call.
2036
2037 2007-11-08  Kevin McCullough  <kmccullough@apple.com>
2038
2039         Build Fix.
2040
2041         * WebCoreSupport/WebFrameLoaderClient.h:
2042         * WebCoreSupport/WebFrameLoaderClient.mm:
2043         (WebFrameLoaderClient::windowObjectCleared):
2044
2045 2007-11-07  Darin Adler  <darin@apple.com>
2046
2047         Reviewed by Steve.
2048
2049         - removed some unused WebCore bridge methods
2050
2051         * WebCoreSupport/WebFrameBridge.mm: Removed issueTransposeCommand and overrideMediaType.
2052
2053         * WebCoreSupport/WebFrameLoaderClient.mm:
2054         (WebFrameLoaderClient::overrideMediaType): Changed to call WebView directly instead of
2055         using the bridge object.
2056
2057 2007-11-06  Mark Rowe  <mrowe@apple.com>
2058
2059         Rubber-stamped by Dave Kilzer.
2060
2061         Move Mac files from WebKit into WebKit/mac.
2062
2063         * Carbon: Copied from WebKit/Carbon.
2064         * ChangeLog: Copied from WebKit/ChangeLog.
2065         * ChangeLog-2002-12-03: Copied from WebKit/ChangeLog-2002-12-03.
2066         * ChangeLog-2006-02-09: Copied from WebKit/ChangeLog-2006-02-09.
2067         * ChangeLog-2007-10-14: Copied from WebKit/ChangeLog-2007-10-14.
2068         * Configurations: Copied from WebKit/Configurations.
2069         * DOM: Copied from WebKit/DOM.
2070         * DefaultDelegates: Copied from WebKit/DefaultDelegates.
2071         * ForwardingHeaders: Copied from WebKit/ForwardingHeaders.
2072         * History: Copied from WebKit/History.
2073         * Info.plist: Copied from WebKit/Info.plist.
2074         * MigrateHeaders.make: Copied from WebKit/MigrateHeaders.make.
2075         * Misc: Copied from WebKit/Misc.
2076         * Panels: Copied from WebKit/Panels.
2077         * Plugins: Copied from WebKit/Plugins.
2078         * PublicHeaderChangesFromTiger.txt: Copied from WebKit/PublicHeaderChangesFromTiger.txt.
2079         * Resources: Copied from WebKit/Resources.
2080         * WebCoreSupport: Copied from WebKit/WebCoreSupport.
2081         * WebInspector: Copied from WebKit/WebInspector.
2082         * WebKit.exp: Copied from WebKit/WebKit.exp.
2083         * WebKit.order: Copied from WebKit/WebKit.order.
2084         * WebKitPrefix.h: Copied from WebKit/WebKitPrefix.h.
2085         * WebView: Copied from WebKit/WebView.
2086         * icu: Copied from WebKit/icu.
2087
2088 2007-11-06  Alexey Proskuryakov  <ap@webkit.org>
2089
2090         Reviewed by Darin.
2091
2092         http://bugs.webkit.org/show_bug.cgi?id=15847
2093         Some editing cleanup
2094
2095         No change in functionality.
2096
2097         * WebView/WebHTMLView.mm:
2098         (-[WebHTMLView deleteToEndOfLine:]):
2099         (-[WebHTMLView deleteToEndOfParagraph:]):
2100         WebCore had a duplicate of the same logic already. We are passing a boundary value to
2101         a function that expects granularity, this may need to be straightened out in the future.
2102
2103 2007-11-05  John Sullivan  <sullivan@apple.com>
2104
2105         * WebView/WebView.mm:
2106         (-[WebView _searchWithSpotlightFromMenu:]):
2107
2108         Teeny style tweak to test svn access on other machine
2109
2110 2007-11-05  John Sullivan  <sullivan@apple.com>
2111
2112         * WebView/WebView.mm:
2113         (-[WebView computedStyleForElement:pseudoElement:]):
2114         
2115         Teeny style tweak to test svn access
2116
2117 2007-11-02  Tristan O'Tierney  <tristan@apple.com>
2118
2119         Reviewed by Darin Adler.
2120
2121         * DefaultDelegates/WebDefaultUIDelegate.m:
2122         (-[WebDefaultUIDelegate webView:createWebViewWithRequest:windowFeatures:]):
2123         Forward the UI delegate to call webView:createWebViewWithRequest: if
2124         this method doesn't exist.
2125         
2126         * WebCoreSupport/WebFrameLoaderClient.mm:
2127         (WebFrameLoaderClient::dispatchCreatePage):
2128         * Plugins/WebBaseNetscapePluginView.mm:
2129         (-[WebBaseNetscapePluginView loadPluginRequest:]):
2130         * WebView/WebView.mm:
2131         (-[WebView _openNewWindowWithRequest:]):
2132         Revised to use new webView:createWebViewWithRequest:windowFeatures: callback.
2133         
2134         * WebCoreSupport/WebChromeClient.h:
2135         * WebCoreSupport/WebChromeClient.mm:
2136         (WebChromeClient::createWindow):
2137         Added a new createWindow that accepts 3 parameters, so we can pass up windowFeatures to the chrome.
2138         Removed createModalDialog to use new createWindow function.
2139         
2140         * WebView/WebUIDelegatePrivate.h:
2141         Added new webView:createWebViewWithRequest:windowFeatures: method.
2142
2143 2007-11-05  Geoffrey Garen  <ggaren@apple.com>
2144
2145         Reviewed by Darin Adler.
2146         
2147         http://bugs.webkit.org/show_bug.cgi?id=15835
2148
2149         Small adaptations to new KJS::List class.
2150
2151         * ForwardingHeaders/kjs/value.h: Added.
2152
2153 2007-11-03  David D. Kilzer  <ddkilzer@webkit.org>
2154
2155         Sort files(...); sections of Xcode project files.
2156
2157         Rubber-stamped by Darin.
2158
2159         * WebKit.xcodeproj/project.pbxproj:
2160
2161 2007-11-02  Antti Koivisto  <antti@apple.com>
2162
2163         Reviewed by Darin.
2164         
2165         Add method to enable video composition.
2166
2167         * WebCoreSupport/WebSystemInterface.m:
2168         (InitWebCoreSystemInterface):
2169
2170 2007-11-02  Darin Adler  <darin@apple.com>
2171
2172         Reviewed by Mitz.
2173
2174         - fix problem I ran into while doing some testing on Mac for
2175           <rdar://problem/5530185> WebKit does not show <object>
2176           fallback content when both URL and MIME type is omitted
2177
2178         I don't know how to reproduce this failure in DumpRenderTree, so there is no
2179         regression test.
2180
2181         * Plugins/WebNullPluginView.h: Removed some unneeded declarations, including
2182         the didSendError local variable. Instead we just set the error to nil once
2183         we've sent it.
2184         * Plugins/WebNullPluginView.mm:
2185         (-[WebNullPluginView initWithFrame:error:DOMElement:]): Refactored so that
2186         the null plug-in image code is separate from the rest of the function and
2187         so that the whole thing is not inside an if statement. Also don't hold a
2188         reference to the DOM element if there is no error to report.
2189         (-[WebNullPluginView reportFailure]): Added. Does the actual delegate
2190         callback. Happens back at the top level of the run loop so it doesn't
2191         fire deep inside layout. Also wrote this so that it is guaranteed not to
2192         reenter and so that it can handle the case where the delegate destroys
2193         the world (including this object). NOTE: This is not a real, general
2194         solution to the problem of plug-ins that do work inside layout. We will need
2195         a more general fix that works for other plug-ins, and we'll track that with
2196         a separate bug report.
2197         (-[WebNullPluginView viewDidMoveToWindow]): Removed most of the code;
2198         changed so it just does a performSelector:afterDelay:0.
2199
2200 2007-11-02  Mark Rowe  <mrowe@apple.com>
2201
2202         Reviewed by Darin Adler.
2203
2204         Fix http://bugs.webkit.org/show_bug.cgi?id=15780
2205         Bug 15780: WebFrameLoaderClient: WebActionElementKey wrong if view is scrolled
2206
2207         * WebCoreSupport/WebFrameLoaderClient.mm:
2208         (WebFrameLoaderClient::actionDictionary): Retrieve the mouse event coordinates
2209         in the page coordinate system rather than the client area coordinate system.
2210
2211 2007-11-01  Dan Bernstein  <mitz@apple.com>
2212
2213         Reviewed by Oliver Hunt.
2214
2215         - fix an assertion failure when Command-Tabbing out of Safari
2216
2217         * WebView/WebHTMLView.mm:
2218         (-[WebHTMLView flagsChanged:]): Avoid passing key code 0 down to
2219         WebCore.
2220
2221 2007-11-01  Justin Garcia  <justin.garcia@apple.com>
2222
2223         Reviewed by Oliver Hunt.
2224         
2225         <rdar://problem/5195056> Huge plain text pastes are slow, time spent in ApplyStyleCommand::doApply
2226         
2227         No need to match style when pasting plain text, since the fragment we build for plain text
2228         won't have any style information on it.
2229
2230         * WebView/WebHTMLView.mm:
2231         (-[WebHTMLView _documentFragmentFromPasteboard:inContext:allowPlainText:]): There's no
2232         longer a need to know whether this function chosePlaintext.
2233         (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]):
2234         (-[WebHTMLView _documentFragmentFromPasteboard:]):
2235
2236 2007-10-31  Timothy Hatcher  <timothy@apple.com>
2237
2238         Reviewed by John Sullivan.
2239
2240         Move the developer extras preference to WebPreferences.
2241
2242         * WebView/WebPreferenceKeysPrivate.h: Add WebKitDeveloperExtrasEnabledPreferenceKey
2243         * WebView/WebPreferences.m:
2244         (+[WebPreferences initialize]): Initialize WebKitDeveloperExtrasEnabledPreferenceKey to NO.
2245         (-[WebPreferences developerExtrasEnabled]): Check DisableWebKitDeveloperExtras, WebKitDeveloperExtras
2246           and IncludeDebugMenu in addition to WebKitDeveloperExtrasEnabledPreferenceKey.
2247         (-[WebPreferences setDeveloperExtrasEnabled:]): Set WebKitDeveloperExtrasEnabledPreferenceKey.
2248         * WebView/WebPreferencesPrivate.h: Add developerExtrasEnabled and setDeveloperExtrasEnabled:.
2249         * WebView/WebView.mm:
2250         (+[WebView _developerExtrasEnabled]): Removed.
2251         (-[WebView _preferencesChangedNotification:]): Check the WebPreferences object for developerExtrasEnabled.
2252         * WebView/WebViewPrivate.h: Removed _developerExtrasEnabled.
2253
2254 2007-10-30  David D. Kilzer  <ddkilzer@webkit.org>
2255
2256         Generated files missing from WebCore's Xcode project file
2257         <http://bugs.webkit.org/show_bug.cgi?id=15406>
2258
2259         Reviewed by Darin.
2260
2261         Added the following private header files to MigrateHeaders.make:
2262
2263         - DOMCSSStyleSheetPrivate.h
2264         - DOMEventPrivate.h
2265         - DOMHTMLCollectionPrivate.h
2266         - DOMHTMLEmbedElementPrivate.h
2267         - DOMHTMLIFrameElementPrivate.h
2268         - DOMHTMLObjectElementPrivate.h
2269         - DOMHTMLSelectElementPrivate.h
2270
2271         * MigrateHeaders.make:
2272
2273 2007-10-29  Antti Koivisto  <antti@apple.com>
2274
2275         Reviewed by Maciej.
2276         
2277         Some SPIs for media support.
2278
2279         * WebCoreSupport/WebSystemInterface.m:
2280         (InitWebCoreSystemInterface):
2281
2282 2007-10-29  Timothy Hatcher  <timothy@apple.com>
2283
2284         Reviewed by John Sullivan.
2285
2286         Various semi-related changes:
2287         - A WebView can now be asked for it's WebInspector. There is one
2288           WebInspector per WebView. 
2289         - Refactor the WebInspector class and move obsolete methods to
2290           a special category.
2291         - Add new WebInspector methods to show, hide and show the
2292           console/timeline panels.
2293         - Add an isDisabled method to WebCache.
2294         - Allow WebLocalizableStrings.h to be used in C files.
2295
2296         * Misc/WebCache.h: Add isDisabled.
2297         * Misc/WebCache.mm:
2298         (+[WebCache isDisabled]): New method.
2299
2300         * Misc/WebLocalizableStrings.h: Changes to allow use in plain C files.
2301
2302         * WebCoreSupport/WebInspectorClient.mm:
2303         (-[WebInspectorWindowController showWindow:]): Call super if already visible
2304           so the window will be ordered front.
2305         (-[WebInspectorWindowController showWebInspector:]): Method used by menu items,
2306           so they are enabled and work when the Inspector window is key.
2307         (-[WebInspectorWindowController showErrorConsole:]): Ditto.
2308         (-[WebInspectorWindowController showNetworkTimeline:]): Ditto.
2309
2310         * WebInspector/WebInspector.h: Add and remove methods.
2311         * WebInspector/WebInspector.mm:
2312         (-[WebInspector webViewClosed]): Called when the WebView is closed/dealloced.
2313           Clears the _webView pointer.
2314         (-[WebInspector show:]): Calls thru to the Page's InspectorController.
2315         (-[WebInspector showConsole:]): Ditto.
2316         (-[WebInspector showTimeline:]): Ditto.
2317         (-[WebInspector close:]): Ditto.
2318         (-[WebInspector attach:]): Ditto.
2319         (-[WebInspector detach:]): Ditto.
2320         (+[WebInspector sharedWebInspector]): Moved to the obsolete category.
2321         (+[WebInspector webInspector]): Ditto.
2322         (-[WebInspector setWebFrame:]): Ditto.
2323         (-[WebInspector window]): Ditto.
2324         (-[WebInspector showWindow:]): Ditto.
2325
2326         * WebView/WebView.mm:
2327         (-[WebViewPrivate dealloc]): Release the WebInspector.
2328         (-[WebView _close]): Call webViewClosed on the WebInspector.
2329         (-[WebView inspector]): Create a WebInspector if needed and return it.
2330         * WebView/WebViewPrivate.h: Add the inspector method.
2331
2332 2007-10-30  Adele Peterson  <adele@apple.com>
2333
2334         Reviewed by Darin.
2335
2336         WebKit part of fix for http://bugs.webkit.org/show_bug.cgi?id=10577
2337         <rdar://problem/5103625> REGRESSION: Caps lock icon should show in password fields
2338
2339         * WebView/WebHTMLView.mm:
2340         (-[WebHTMLView flagsChanged:]): Call capsLockStateMayHaveChanged so WebCore knows it may have to update a password field.
2341         (+[WebHTMLView _postFlagsChangedEvent:]): Added a comment with a Radar number for why this isn't just in flagsChanged.
2342         (-[WebHTMLView scrollWheel:]): Instead of calling the next responder explicitly, we can just call super, which will take care of this.
2343
2344 2007-10-27  Mark Ambachtsheer  <mark.a@apple.com>
2345
2346         Reviewed by Darin.
2347
2348         Fix for bug 15710, When QD plugins draw to an offscreen bitmap and the plugin is not at 
2349         (0, 0) the clipping rectangle is not correct.
2350         Added the origin to the window clip rectangle coordinates to account for plugins that
2351         don't originate at (0,0); affects code for offscreen GWorlds only.
2352
2353         * Plugins/WebBaseNetscapePluginView.mm:
2354         (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
2355
2356 2007-10-26  Adele Peterson  <adele@apple.com>
2357
2358         Reviewed by Oliver.
2359
2360         Adding WebKitSystemInterface support for the caps lock indicator
2361
2362         * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface):
2363
2364 2007-10-25  David Hyatt  <hyatt@apple.com>
2365
2366         Fix for bug 15672, backgrounds don't tile properly inside transforms.  This patch fixes tiling
2367         of backgrounds inside CSS transforms and also of HTML content with background images inside SVG
2368         transforms.
2369
2370         Reviewed by aroben and mmitz
2371
2372         * WebCoreSupport/WebSystemInterface.m:
2373         (InitWebCoreSystemInterface):
2374         * WebKit.xcodeproj/project.pbxproj:
2375
2376 2007-10-25  John Sullivan  <sullivan@apple.com>
2377
2378         Reviewed by Tim Hatcher
2379         
2380         Removed the support for toggling whether WebKit uses the 10.5 PDFKit improvements. Now it
2381         always does, when available.
2382
2383         * WebView/WebPreferencesPrivate.h:
2384         removed _usePDFPreviewView and _setUsePDFPreviewView:. Note that these were guarded with
2385         a comment that says that they can be removed when no longer needed. That time is now.
2386
2387         * WebView/WebPreferences.m:
2388         (+[WebPreferences initialize]):
2389         removed WebKitUsePDFPreviewViewPreferenceKey
2390         (-[WebPreferences _usePDFPreviewView]):
2391         removed
2392         (-[WebPreferences _setUsePDFPreviewView:]):
2393         removed
2394
2395         * WebView/WebPDFView.mm:
2396         (-[WebPDFView initWithFrame:]):
2397         don't check _usePDFPreviewView
2398         
2399         * WebView/WebPreferenceKeysPrivate.h:
2400         removed WebKitUsePDFPreviewViewPreferenceKey
2401         
2402 2007-10-24  Timothy Hatcher  <timothy@apple.com>
2403
2404         Reviewed by Mark Rowe.
2405
2406         <rdar://problem/5069711> OpenSource version of libWebKitSystemInterface.a is Tiger only, causes issues if used on Leopard
2407
2408         Use the WebKitSystemInterface that matches the system version.
2409
2410         * Configurations/DebugRelease.xcconfig:
2411         * WebKit.xcodeproj/project.pbxproj:
2412
2413 2007-10-24  Brady Eidson  <beidson@apple.com>
2414
2415         Reviewed by Anders
2416
2417         <rdar://problem/5554130> DatabaseTracker.o has a global initializer
2418
2419         * Misc/WebDatabaseManager.mm:
2420         (WebKitSetWebDatabasesPathIfNecessary): Call the member function instead of a static one
2421
2422 2007-10-23  Mark Rowe  <mrowe@apple.com>
2423
2424         Build fix for Eric's build fix in r26916.
2425
2426         * MigrateHeaders.make:
2427
2428 2007-10-22  Eric Seidel  <eric@webkit.org>
2429
2430         Reviewed by Maciej.
2431
2432         * MigrateHeaders.make: copy over font-face related DOM headers
2433
2434 2007-10-22  Andrew Wellington  <proton@wiretapped.net>
2435
2436         Reviewed by Mark Rowe.
2437         
2438         Fix for local database support after r26879
2439         Ensure that ENABLE_DATABASE and ENABLE_ICONDATABASE are correctly set
2440
2441         * Configurations/WebKit.xcconfig:
2442
2443 2007-10-19  Brady Eidson <beidson@apple.com>
2444
2445         Reviewed by Tim Hatcher
2446
2447         Added support for Chrome prompts required by the Storage API
2448         Added support API for future managing of databases from the WebKit client
2449         Added preference and initialization for the databases path
2450
2451         * Misc/WebDatabaseManager.h: Added.  WebDatabaseManager is how a WebKit application can list and
2452           remove the current available databases
2453         * Misc/WebDatabaseManager.mm: Added.
2454         (+[WebDatabaseManager origins]):
2455         (+[WebDatabaseManager databasesWithOrigin:]):
2456         (+[WebDatabaseManager deleteAllDatabases]):
2457         (+[WebDatabaseManager deleteAllDatabasesWithOrigin:]):
2458         (+[WebDatabaseManager deleteDatabaseWithOrigin:named:]):
2459         (WebKitSetWebDatabasesPathIfNecessary): Setup the database path
2460         * Misc/WebDatabaseManagerPrivate.h: Added.
2461
2462         * WebCoreSupport/WebChromeClient.h: Support for calling the delegate to run the prompt for 
2463           an origin exceeding its size limit
2464         * WebCoreSupport/WebChromeClient.mm:
2465         (WebChromeClient::runDatabaseSizeLimitPrompt):
2466         * WebKit.xcodeproj/project.pbxproj:
2467         * WebView/WebUIDelegate.h:
2468
2469         * WebView/WebView.mm:
2470         (-[WebView _commonInitializationWithFrameName:groupName:]): Setup the database path
2471         * WebView/WebViewInternal.h:
2472
2473 2007-10-19  John Sullivan  <sullivan@apple.com>
2474
2475         Reviewed by Tim Hatcher
2476         
2477         - fixed <rdar://problem/5540325> REGRESSION (2.0.4-3): History menu looks odd after clearing history
2478
2479         * History/WebHistory.mm:
2480         (-[WebHistoryPrivate removeAllItems]):
2481         This was fallout from r25275. We need to clear the orderedLastVisitedDays cache here, in addition
2482         to the other places where it's cleared.
2483
2484 2007-10-18  Dan Bernstein  <mitz@apple.com>
2485
2486         Tiger build fix.
2487
2488         * WebView/WebDataSource.mm:
2489         (-[WebDataSource _MIMETypeOfResponse:]):
2490
2491 2007-10-18  Dan Bernstein  <mitz@apple.com>
2492
2493         Reviewed by Adam Roben.
2494
2495         - fix <rdar://problem/5313523>
2496         REGRESSION(Leopard): http/tests/incremental/slow-utf8-text.pl fails on Leopard
2497
2498         * WebCoreSupport/WebFrameLoaderClient.mm:
2499         (WebFrameLoaderClient::makeDocumentView): Changed to use _responseMIMEType.
2500         * WebView/WebDataSource.mm:
2501         (-[WebDataSource _MIMETypeOfResponse:]): Added. Works around
2502         <rdar://problem/5321972> by testing for the case of an NSHTTPURLResponse
2503         with a MIMEType of application/octet-stream and a Content-Type header
2504         starting with text/plain and returning text/plain as the MIME type in
2505         that case.
2506         (-[WebDataSource _responseMIMEType]): Added. Used to get the correct
2507         response MIME type.
2508         (-[WebDataSource _isDocumentHTML]): Changed to use _responseMIMEType.
2509         (-[WebDataSource _makeRepresentation]): Ditto.
2510         (-[WebDataSource mainResource]): Ditto.
2511         (-[WebDataSource subresources]): Changed to use _MIMETypeOfResponse and
2512         pass the MIME type explicitly.
2513         (-[WebDataSource subresourceForURL:]): Ditto.
2514         * WebView/WebDataSourcePrivate.h:
2515         * WebView/WebFrameView.mm:
2516         (-[WebFrameView _makeDocumentViewForDataSource:]): Changed to use
2517         _responseMIMEType.
2518         * WebView/WebResource.mm:
2519         (-[WebResource _initWithData:URL:response:MIMEType:]): Changed this
2520         method to take a MIME type instead of extracting it from the response,
2521         so that WebDataSource could pass the correct MIME type.
2522         * WebView/WebResourcePrivate.h:
2523
2524 2007-10-17  Darin Adler  <darin@apple.com>
2525
2526         Reviewed by Mark Rowe.
2527
2528         - fix <rdar://problem/5183775> Uninitialized memory in -[WebDynamicScrollBarsView updateScrollers]
2529
2530         * WebView/WebDynamicScrollBarsView.m: (-[WebDynamicScrollBarsView updateScrollers]):
2531         Change code path so it doesn't dispatch a method that returns an NSSize passing a nil object.
2532         It's safe to do that for functions that return integers or pointers, but not structures.
2533
2534 2007-10-16  David Kilzer  <ddkilzer@apple.com>
2535
2536         Reviewed by Timothy.
2537
2538         <rdar://problem/5544354> Wrong delegate method called in
2539         WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad()
2540
2541         * WebCoreSupport/WebFrameLoaderClient.mm:
2542         (WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad): Fixed selector name.
2543
2544 2007-10-16  Darin Adler  <darin@apple.com>
2545
2546         Reviewed by Adele.
2547
2548         - moved transpose command implementation into WebCore
2549
2550         * WebView/WebHTMLView.mm: Removed transpose: and replaced it with standard WebCore forwarding.
2551
2552 2007-10-16  Darin Adler  <darin@apple.com>
2553
2554         Reviewed by Maciej and Geoff (and looked over by Eric).
2555
2556         - http://bugs.webkit.org/show_bug.cgi?id=15519
2557           eliminate use of <ctype.h> for processing ASCII
2558
2559         * ForwardingHeaders/wtf/ASCIICType.h: Added.
2560         * ForwardingHeaders/wtf/DisallowCType.h: Added.
2561
2562         * WebKitPrefix.h: Include DisallowCType.h.
2563
2564         * Misc/WebNSURLExtras.mm: (-[NSURL _web_URLWithLowercasedScheme]): Use toASCIILower.
2565         * WebView/WebHTMLView.mm:
2566         (-[WebHTMLView callWebCoreCommand:]): Use toASCIIUpper.
2567         (-[WebTextCompleteController filterKeyDown:]): Add a list of specific character codes,
2568         instead of using ispunct.
2569
2570 2007-10-16  John Sullivan  <sullivan@apple.com>
2571
2572         Reviewed by Adam Roben
2573         
2574         Cleaned up localizable strings
2575
2576         * English.lproj/Localizable.strings:
2577         updated
2578         * StringsNotToBeLocalized.txt:
2579         updated
2580         * WebKit.xcodeproj/project.pbxproj:
2581         StringsNotToBeLocalized.txt recently moved but project file wasn't updated to match; now it is
2582
2583 2007-10-15  Kevin Decker  <kdecker@apple.com>
2584
2585         Reviewed by Darin Adler.
2586         
2587         Fixed: <rdar://problem/5520541> REGRESSION: Broken image when forwarding certain email on Tiger
2588         
2589         * WebCoreSupport/WebFrameBridge.mm: The problem was that we were loading Mail's WebKit plug-in
2590         too soon, which borked some necessary housekeeping on behalf of Mail. The fix is to add a quirk
2591         that treats Tiger Mail's WebKit plug-in like a Netscape plug-in, thus ensuring the plug-in will
2592         load during first layout and not attach time. For this plug-in, loading at first layout is 
2593         expected and is consistent with Safari 2 behavior.
2594
2595 2007-10-15  John Sullivan  <sullivan@apple.com>
2596
2597         Reviewed by Geoff Garen
2598         
2599         Replaced NS_DURING/NS_HANDLER with @try/@catch throughout WebKit
2600
2601         I made the following changes:
2602         - replaced NS_DURING with @try, and added opening brace if there wasn't one
2603         - replaced NS_HANDLER with @catch (NSException *localException), and added braces if there weren't any
2604         - removed NS_ENDHANDLER, and added a closing brace if there wasn't one
2605         - in a couple of places, fixed indentation therein
2606
2607         * Misc/WebIconDatabase.mm:
2608         (objectFromPathForKey):
2609         * WebView/WebHTMLView.mm:
2610         (-[WebHTMLView drawSingleRect:]):
2611         (-[WebHTMLView beginDocument]):
2612         (-[WebHTMLView deleteToMark:]):
2613         * WebView/WebView.mm:
2614         (-[WebView initWithCoder:]):
2615
2616 == Rolled over to ChangeLog-2007-10-14 ==