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