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