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