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