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