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