1 2005-06-06 Maciej Stachowiak <mjs@apple.com>
3 - more SPI removal, for font cache and CFStream
5 * WebCoreSupport.subproj/WebTextRendererFactory.m:
6 (getLCDScaleParameters):
7 (+[WebTextRendererFactory createSharedFactory]):
8 * WebView.subproj/WebFormDataStream.m:
13 2005-06-06 Maciej Stachowiak <mjs@apple.com>
15 - remove use of AX SPI
17 * WebCoreSupport.subproj/WebViewFactory.m:
18 (-[WebViewFactory objectIsTextMarker:]):
19 (-[WebViewFactory objectIsTextMarkerRange:]):
20 (-[WebViewFactory textMarkerWithBytes:length:]):
21 (-[WebViewFactory getBytes:fromTextMarker:length:]):
22 (-[WebViewFactory textMarkerRangeWithStart:end:]):
23 (-[WebViewFactory startOfTextMarkerRange:]):
24 (-[WebViewFactory endOfTextMarkerRange:]):
25 (-[WebViewFactory accessibilityHandleFocusChanged]):
26 (-[WebViewFactory AXUIElementForElement:]):
27 (-[WebViewFactory unregisterUniqueIdForUIElement:]):
29 2005-06-06 Maciej Stachowiak <mjs@apple.com>
33 * Carbon.subproj/CarbonUtils.m:
36 * WebView.subproj/WebHTMLView.m:
37 (+[WebHTMLView _postFlagsChangedEvent:]):
38 (-[WebHTMLView _autoscroll]):
39 (-[WebHTMLView addMouseMovedObserver]):
40 (-[WebHTMLView removeMouseMovedObserver]):
41 (-[WebHTMLView layoutToMinimumPageWidth:maximumPageWidth:adjustingViewSize:]):
42 (-[WebHTMLView _interceptEditingKeyEvent:]):
44 2005-06-06 Maciej Stachowiak <mjs@apple.com>
46 - more SPI use removal
48 * Misc.subproj/WebDownload.h:
49 * Misc.subproj/WebNSURLExtras.m:
50 (-[NSURL _webkit_canonicalize]):
51 * WebView.subproj/WebMainResourceClient.h:
52 * WebView.subproj/WebMainResourceClient.m:
53 (-[WebMainResourceClient initWithDataSource:]):
54 * WebView.subproj/WebView.m:
55 (-[WebView _commonInitializationWithFrameName:groupName:]):
57 2005-06-06 Maciej Stachowiak <mjs@apple.com>
59 - remove unneeded header include
61 * WebCoreSupport.subproj/WebImageRenderer.m:
63 2005-06-06 Maciej Stachowiak <mjs@apple.com>
65 - removed even more SPI use
67 * Misc.subproj/WebDownload.m:
68 * WebCoreSupport.subproj/WebImageData.m:
69 (-[WebImageData _imageSourceOptions]):
70 * WebCoreSupport.subproj/WebImageRenderer.m:
71 (WebCGColorSpaceCreateRGB):
72 (WebCGColorSpaceCreateGray):
73 * WebView.subproj/WebBaseResourceHandleDelegate.m:
74 (-[WebBaseResourceHandleDelegate loadWithRequest:]):
75 (-[WebBaseResourceHandleDelegate setDefersCallbacks:]):
76 * WebView.subproj/WebMainResourceClient.m:
77 (-[WebMainResourceClient didReceiveResponse:]):
78 (-[WebMainResourceClient didReceiveData:lengthReceived:]):
79 (-[WebMainResourceClient didFinishLoading]):
80 (-[WebMainResourceClient didFailWithError:]):
82 2005-06-05 Darin Adler <darin@apple.com>
86 - fixed hang we were seeing in Safari and layout tests
88 * Misc.subproj/WebNSUserDefaultsExtras.m:
89 (+[NSUserDefaults _webkit_ensureAndLockPreferredLanguageLock]): Change name to avoid conflict with Foundation
90 function. This was causing the hang.
91 (+[NSUserDefaults _webkit_defaultsDidChange]): Update caller.
92 (+[NSUserDefaults _webkit_preferredLanguageCode]): Ditto.
94 * WebCoreSupport.subproj/WebGraphicsBridge.m: Remove some unneeded includes.
96 2005-06-05 Darin Adler <darin@apple.com>
100 - fixed crash in Acid2 layout test
102 * Plugins.subproj/WebBasePluginPackage.m: (-[WebBasePluginPackage dealloc]): Added nil check for CFBundleRef.
104 2005-06-05 Darin Adler <darin@apple.com>
108 - remove more SPI usage
110 * Carbon.subproj/CarbonWindowAdapter.m: Remove a bunch of stuff.
111 (+[CarbonWindowAdapter frameViewClassForStyleMask:]):
112 (-[CarbonWindowAdapter initWithCarbonWindowRef:takingOwnership:disableOrdering:carbon:]):
113 (-[CarbonWindowAdapter reconcileToCarbonWindowBounds]):
114 (-[CarbonWindowAdapter _oldPlaceWindow:]):
115 (-[CarbonWindowAdapter _termWindowIfOwner]):
116 (-[CarbonWindowAdapter _windowMovedToRect:]):
117 (-[CarbonWindowAdapter makeKeyWindow]):
119 2005-06-05 Maciej Stachowiak <mjs@apple.com>
121 - remove another forgotten include
123 * Plugins.subproj/WebPluginDatabase.m:
125 2005-06-05 Maciej Stachowiak <mjs@apple.com>
127 - remove include that I forgot in last checkin
129 * Misc.subproj/WebNSPasteboardExtras.m:
131 2005-06-05 Maciej Stachowiak <mjs@apple.com>
135 - remove more SPI usage
136 - fix <rdar://problem/3446192> CoreTranslation SPI is going away
138 * History.subproj/WebHistoryItem.m:
139 (+[WebHistoryItem _releasePageCache:]):
140 * Misc.subproj/WebNSPasteboardExtras.m:
141 (+[NSPasteboard initialize]):
142 * WebCoreSupport.subproj/WebTextRenderer.h:
143 * WebCoreSupport.subproj/WebTextRenderer.m:
144 (-[WebTextRenderer _setupFont]):
145 * WebView.subproj/WebPreferences.m:
146 (+[WebPreferences _systemCFStringEncoding]):
148 2005-06-05 Maciej Stachowiak <mjs@apple.com>
152 - use WebKitSystemInterface wrappers for NSURLFileTypeMappings and NSURLResponse SPI
154 * Misc.subproj/WebNSPasteboardExtras.m:
155 (-[NSPasteboard _web_declareAndWriteDragImage:URL:title:archive:source:]):
156 * Misc.subproj/WebNSURLExtras.m:
157 (-[NSURL _webkit_suggestedFilenameWithMIMEType:]):
158 * Misc.subproj/WebNSViewExtras.m:
159 (-[NSView _web_dragImage:rect:event:pasteboard:source:offset:]):
160 * Plugins.subproj/WebBaseNetscapePluginStream.m:
161 (-[WebBaseNetscapePluginStream startStreamWithResponse:]):
162 * Plugins.subproj/WebNetscapePluginStream.m:
163 (-[WebNetscapePluginConnectionDelegate didReceiveResponse:]):
164 * Plugins.subproj/WebPluginDatabase.m:
165 (-[WebPluginDatabase pluginForExtension:]):
166 * WebCoreSupport.subproj/WebBridge.m:
167 (-[WebBridge expiresTimeForResponse:]):
168 (-[WebBridge determineObjectFromMIMEType:URL:]):
169 (-[WebBridge MIMETypeForPath:]):
170 * WebCoreSupport.subproj/WebImageRendererFactory.m:
171 (-[WebImageRendererFactory supportedMIMETypes]):
172 * WebView.subproj/WebBaseResourceHandleDelegate.m:
173 (-[WebBaseResourceHandleDelegate _canUseResourceWithResponse:]):
174 * WebView.subproj/WebDataSource.m:
175 (-[WebDataSource _commitIfReady:]):
176 * WebView.subproj/WebHTMLView.m:
177 (-[WebHTMLView _imageExistsAtPaths:]):
178 (-[WebHTMLView _documentFragmentWithPaths:]):
179 (-[WebHTMLView resourceForData:preferredFilename:]):
180 * WebView.subproj/WebMainResourceClient.m:
181 * WebView.subproj/WebView.m:
182 (+[WebView _supportedFileExtensions]):
183 (+[WebView suggestedFileExtensionForMIMEType:]):
184 (+[WebView _MIMETypeForFile:]):
186 2005-06-05 Darin Adler <darin@apple.com>
190 - fixed build that I broke with the license change (some includes of WebException were still around)
192 * WebKit.pbproj/project.pbxproj: Removed references to WebException.h/m.
193 * WebView.subproj/WebDataSource.m: Removed include of WebException.h.
194 * WebView.subproj/WebHTMLView.m: Ditto.
195 * WebView.subproj/WebView.m: Ditto.
197 - fixed build under gcc 4.0 (some code moved here from Foundation had warnings)
199 * Misc.subproj/WebNSDataExtras.m:
200 (-[NSString _web_capitalizeRFC822HeaderFieldName]): Use char instead of UInt8.
201 (-[NSData _webkit_guessedMIMEType]): Use char instead of UInt8, and take out now-
204 2005-06-05 Maciej Stachowiak <mjs@apple.com>
208 - remove security code and use the stuff from WebKitSystemInterface instead
210 * WebCoreSupport.subproj/WebKeyGenerator.m:
211 (-[WebKeyGenerator signedPublicKeyAndChallengeStringWithStrengthIndex:challenge:pageURL:]):
212 (-[WebKeyGenerator addCertificatesToKeychainFromData:]):
213 * WebCoreSupport.subproj/WebNewKeyGeneration.c: Removed.
214 * WebCoreSupport.subproj/WebNewKeyGeneration.h: Removed.
215 * WebKit.pbproj/project.pbxproj:
217 2005-06-05 Darin Adler <darin@apple.com>
219 - added appropriate license headers to most files and updated copyright to reflect publication dates
222 * <lots of files>: Added license header.
224 * WebKit.pbproj/project.pbxproj: Removed references to NP_objc.h.
226 * API-Issues.rtf: Removed.
227 * Misc.subproj/WebException.h: Removed.
228 * Misc.subproj/WebException.m: Removed.
229 * Plugins.subproj/NP_objc.h: Removed.
231 2005-06-05 Maciej Stachowiak <mjs@apple.com>
235 - link against libWebKitSystemInterface and use the first function in it.
237 * Misc.subproj/WebNSUserDefaultsExtras.m:
238 (-[NSString _webkit_HTTPStyleLanguageCode]): use WKCopyCFLocalizationPreferredName
239 * Plugins.subproj/WebBasePluginPackage.m:
240 (+[WebBasePluginPackage preferredLocalizationName]): ditto
241 * WebKit.pbproj/project.pbxproj: link in libWebKitSystemInterface.a and find headers.
243 2005-06-04 Darin Adler <darin@apple.com>
247 - did some work to move SPI use from WebCore here (to be moved from here into WebKitSystemInterface)
248 - fixed so we can compile ICU includes without Apple Internal headers installed
250 * WebCoreSupport.subproj/WebViewFactory.m:
251 (-[WebViewFactory objectIsTextMarker:]): Added.
252 (-[WebViewFactory objectIsTextMarkerRange:]): Added.
253 (-[WebViewFactory textMarkerWithBytes:length:]): Added.
254 (-[WebViewFactory getBytes:fromTextMarker:length:]): Added.
255 (-[WebViewFactory textMarkerRangeWithStart:end:]): Added.
256 (-[WebViewFactory startOfTextMarkerRange:]): Added.
257 (-[WebViewFactory endOfTextMarkerRange:]): Added.
258 (-[WebViewFactory accessibilityHandleFocusChanged]): Added.
259 (-[WebViewFactory AXUIElementForElement:]): Added.
260 (-[WebViewFactory unregisterUniqueIdForUIElement:]): Added.
262 * WebKit.pbproj/project.pbxproj: Added icu to the header search files.
263 Removed bogus DSTROOT thing from the framework paths (I meant to remove that a while back).
266 * icu/unicode/parseerr.h: Added.
267 * icu/unicode/platform.h: Added.
268 * icu/unicode/uchar.h: Added.
269 * icu/unicode/uconfig.h: Added.
270 * icu/unicode/uidna.h: Added.
271 * icu/unicode/uiter.h: Added.
272 * icu/unicode/umachine.h: Added.
273 * icu/unicode/unorm.h: Added.
274 * icu/unicode/urename.h: Added.
275 * icu/unicode/uscript.h: Added.
276 * icu/unicode/utf.h: Added.
277 * icu/unicode/utf16.h: Added.
278 * icu/unicode/utf8.h: Added.
279 * icu/unicode/utf_old.h: Added.
280 * icu/unicode/utypes.h: Added.
281 * icu/unicode/uversion.h: Added.
283 2005-06-04 Maciej Stachowiak <mjs@apple.com>
287 - replace more use of CGCompositeOperation that I missed.
289 * WebCoreSupport.subproj/WebImageData.m:
290 (-[WebImageData _checkSolidColor:]):
291 (-[WebImageData _fillSolidColorInRect:compositeOperation:context:]):
292 (-[WebImageData tileInRect:fromPoint:context:]):
293 (-[WebImageData _PDFDrawFromRect:toRect:operation:alpha:flipped:context:]):
294 * WebCoreSupport.subproj/WebImageRenderer.m:
295 (-[WebInternalImage _PDFDrawFromRect:toRect:operation:alpha:flipped:]):
297 2005-06-03 Maciej Stachowiak <mjs@apple.com>
301 - replace use of CGCompositeOperation SPI with NSCompositingOperation API
303 * WebCoreSupport.subproj/WebImageData.h:
304 * WebCoreSupport.subproj/WebImageData.m:
305 (-[WebImageData _fillSolidColorInRect:compositeOperation:context:]):
306 (-[WebImageData _PDFDrawFromRect:toRect:operation:alpha:flipped:context:]):
307 * WebCoreSupport.subproj/WebImageRenderer.m:
308 (-[WebImageRenderer drawImageInRect:fromRect:]):
309 (-[WebImageRenderer drawImageInRect:fromRect:compositeOperator:context:]):
310 * WebCoreSupport.subproj/WebImageRendererFactory.m:
311 (-[WebImageRendererFactory CGCompositeOperationInContext:]):
312 (-[WebImageRendererFactory setCGCompositeOperation:inContext:]):
313 (-[WebImageRendererFactory setCGCompositeOperationFromString:inContext:]):
315 2005-06-02 Maciej Stachowiak <mjs@apple.com>
319 - removed dependencies on NSError SPI
321 * Misc.subproj/WebKitErrors.m:
322 (-[NSError _webkit_initWithDomain:code:URL:]):
323 (+[NSError _webkit_errorWithDomain:code:URL:]):
324 (+[NSError _webKitErrorWithDomain:code:URL:]):
325 (+[NSError _webKitErrorWithCode:failingURL:]):
326 (+[NSError _webkit_addErrorsWithCodesAndDescriptions:inDomain:]):
328 * Plugins.subproj/WebNetscapePluginRepresentation.m:
329 * Plugins.subproj/WebNetscapePluginStream.m:
330 * WebCoreSupport.subproj/WebSubresourceClient.m:
331 * WebView.subproj/WebBaseResourceHandleDelegate.m:
332 * WebView.subproj/WebDefaultResourceLoadDelegate.m:
333 * WebView.subproj/WebMainResourceClient.m:
334 (-[WebMainResourceClient didFailWithError:]):
336 2005-06-02 Maciej Stachowiak <mjs@apple.com>
340 - remove use of _cfBundle SPI
342 * Plugins.subproj/WebBasePluginPackage.h:
343 * Plugins.subproj/WebBasePluginPackage.m:
344 (-[WebBasePluginPackage initWithPath:]):
345 (-[WebBasePluginPackage load]):
346 (-[WebBasePluginPackage dealloc]):
347 * Plugins.subproj/WebNetscapePluginPackage.m:
348 (-[WebNetscapePluginPackage openResourceFile]):
349 (-[WebNetscapePluginPackage closeResourceFile:]):
350 (-[WebNetscapePluginPackage initWithPath:]):
351 (-[WebNetscapePluginPackage unloadWithoutShutdown]):
352 (-[WebNetscapePluginPackage load]):
353 * Plugins.subproj/WebPluginPackage.m:
354 (-[WebPluginPackage initWithPath:]):
356 2005-06-02 Maciej Stachowiak <mjs@apple.com>
360 - remove use of NSURLRequest and NSUserDefaults SPI
362 * History.subproj/WebHistoryItem.m:
363 (-[WebHistoryItem _setFormInfoFromRequest:]):
364 * Misc.subproj/WebNSURLRequestExtras.h: Added.
365 * Misc.subproj/WebNSURLRequestExtras.m: Added.
366 (-[NSURLRequest _web_HTTPReferrer]):
367 (-[NSURLRequest _web_HTTPContentType]):
368 (-[NSMutableURLRequest _web_setHTTPContentType:]):
369 (-[NSMutableURLRequest _web_setHTTPReferrer:]):
370 (-[NSMutableURLRequest _web_setHTTPUserAgent:]):
371 * Misc.subproj/WebNSUserDefaultsExtras.h: Added.
372 * Misc.subproj/WebNSUserDefaultsExtras.m: Added.
373 (-[NSString _webkit_HTTPStyleLanguageCode]):
375 (+[NSUserDefaults _ensureAndLockPreferredLanguageLock]):
376 (+[NSUserDefaults _webkit_defaultsDidChange]):
377 (addDefaultsChangeObserver):
378 (+[NSUserDefaults _webkit_addDefaultsChangeObserver]):
379 (+[NSUserDefaults _webkit_preferredLanguageCode]):
380 * Plugins.subproj/WebBaseNetscapePluginView.m:
381 (-[WebBaseNetscapePluginView requestWithURLCString:]):
382 * Plugins.subproj/WebNetscapePluginEmbeddedView.m:
383 (-[WebNetscapePluginEmbeddedView didStart]):
384 * Plugins.subproj/WebNetscapePluginStream.m:
385 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
386 * WebCoreSupport.subproj/WebBridge.m:
387 (-[WebBridge createWindowWithURL:frameName:]):
388 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
389 (-[WebBridge incomingReferrer]):
390 (-[WebBridge createModalDialogWithURL:]):
391 * WebCoreSupport.subproj/WebSubresourceClient.m:
392 (+[WebSubresourceClient startLoadingResource:withRequest:customHeaders:referrer:forDataSource:]):
393 * WebCoreSupport.subproj/WebViewFactory.m:
394 (-[WebViewFactory defaultLanguageCode]):
395 * WebKit.pbproj/project.pbxproj:
396 * WebView.subproj/WebBaseResourceHandleDelegate.m:
397 (-[WebBaseResourceHandleDelegate willSendRequest:redirectResponse:]):
398 * WebView.subproj/WebDefaultContextMenuDelegate.m:
399 (-[WebDefaultUIDelegate openNewWindowWithURL:element:]):
400 * WebView.subproj/WebFrame.m:
401 (-[WebFrame _loadItem:withLoadType:]):
402 (-[WebFrame _addExtraFieldsToRequest:alwaysFromRequest:]):
403 (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
404 (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
405 * WebView.subproj/WebMainResourceClient.m:
406 * WebView.subproj/WebView.m:
407 (-[WebView _cachedResponseForURL:]):
408 (-[WebView userAgentForURL:]):
410 2005-06-02 Maciej Stachowiak <mjs@apple.com>
414 - move private gunk from header to implementation file.
416 * WebCoreSupport.subproj/WebNewKeyGeneration.c:
417 * WebCoreSupport.subproj/WebNewKeyGeneration.h:
419 2005-06-02 Maciej Stachowiak <mjs@apple.com>
423 - remove dependency on NSFileManager and NSCalendarDate private extras from WebFou
425 * History.subproj/WebHistory.m:
426 (-[WebHistoryPrivate findIndex:forDay:]):
427 (-[WebHistoryPrivate arrayRepresentation]):
428 (-[WebHistoryPrivate _loadHistoryGuts:URL:error:]):
429 * Misc.subproj/WebFileDatabase.m:
430 (-[WebFileDatabase _truncateToSizeLimit:]):
431 (-[WebFileDatabase removeAllObjects]):
432 (-[WebFileDatabase performSetObject:forKey:]):
433 (-[WebFileDatabase performRemoveObjectForKey:]):
434 (-[WebFileDatabase open]):
435 * Misc.subproj/WebKitNSStringExtras.m:
436 (-[NSString _webkit_fixedCarbonPOSIXPath]):
437 * Misc.subproj/WebNSCalendarDateExtras.h: Added.
438 * Misc.subproj/WebNSCalendarDateExtras.m: Added.
439 (-[NSCalendarDate _webkit_compareDay:]):
440 * Misc.subproj/WebNSDataExtras.h:
441 * Misc.subproj/WebNSDictionaryExtras.h:
442 * Misc.subproj/WebNSFileManagerExtras.h: Added.
443 * Misc.subproj/WebNSFileManagerExtras.m: Added.
444 (-[NSFileManager _webkit_fileExistsAtPath:isDirectory:traverseLink:]):
445 (-[NSFileManager _webkit_createIntermediateDirectoriesForPath:attributes:]):
446 (-[NSFileManager _webkit_createDirectoryAtPathWithIntermediateDirectories:attributes:]):
447 (-[NSFileManager _webkit_createFileAtPathWithIntermediateDirectories:contents:attributes:directoryAttributes:]):
448 (-[NSFileManager _webkit_removeFileOnlyAtPath:]):
449 (-[NSFileManager _webkit_backgroundRemoveFileAtPath:]):
450 (-[NSFileManager _webkit_backgroundRemoveLeftoverFiles:]):
451 (-[NSFileManager _webkit_carbonPathForPath:]):
452 (-[NSFileManager _webkit_startupVolumeName]):
453 (-[NSFileManager _webkit_pathWithUniqueFilenameForPath:]):
454 * Plugins.subproj/WebBaseNetscapePluginStream.m:
455 * WebKit.pbproj/project.pbxproj:
456 * WebView.subproj/WebHTMLView.m:
457 (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]):
458 * WebView.subproj/WebImageView.m:
459 (-[WebImageView namesOfPromisedFilesDroppedAtDestination:]):
461 2005-06-02 Maciej Stachowiak <mjs@apple.com>
465 - remove dependencies on NSDictionary and NSURL extras
467 * History.subproj/WebHistoryItem.m:
468 (-[WebHistoryItem initFromDictionaryRepresentation:]):
469 * Misc.subproj/WebKitNSStringExtras.h:
470 * Misc.subproj/WebKitNSStringExtras.m:
471 (-[NSString _webkit_hasCaseInsensitiveSuffix:]):
472 (-[NSString _webkit_hasCaseInsensitiveSubstring:]):
473 (-[NSString _webkit_filenameByFixingIllegalCharacters]):
474 * Misc.subproj/WebNSDictionaryExtras.h: Added.
475 * Misc.subproj/WebNSDictionaryExtras.m: Added.
476 (-[NSDictionary _webkit_numberForKey:]):
477 (-[NSDictionary _webkit_intForKey:]):
478 (-[NSDictionary _webkit_stringForKey:]):
479 (-[NSDictionary _webkit_objectForMIMEType:]):
480 (-[NSMutableDictionary _webkit_setObject:forUncopiedKey:]):
481 (-[NSMutableDictionary _webkit_setInt:forKey:]):
482 (-[NSMutableDictionary _webkit_setBool:forKey:]):
483 * Misc.subproj/WebNSPasteboardExtras.m:
484 * Misc.subproj/WebNSURLExtras.h:
485 * Misc.subproj/WebNSURLExtras.m:
486 (-[NSURL _webkit_URLByRemovingFragment]):
487 (-[NSURL _webkit_scriptIfJavaScriptURL]):
488 (-[NSURL _webkit_isFileURL]):
489 (-[NSURL _web_hostString]):
490 (-[NSURL _webkit_suggestedFilenameWithMIMEType:]):
491 * Misc.subproj/WebNSViewExtras.m:
492 * Panels.subproj/WebPanelAuthenticationHandler.m:
493 * Plugins.subproj/WebBaseNetscapePluginStream.m:
494 * Plugins.subproj/WebBaseNetscapePluginView.m:
495 (-[WebBaseNetscapePluginView evaluateJavaScriptPluginRequest:]):
496 (-[WebBaseNetscapePluginView loadPluginRequest:]):
497 (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]):
498 * Plugins.subproj/WebPluginController.m:
499 (-[WebPluginController webPlugInContainerLoadRequest:inFrame:]):
500 * WebCoreSupport.subproj/WebBridge.m:
501 * WebKit.pbproj/project.pbxproj:
502 * WebView.subproj/WebDataSource.m:
503 * WebView.subproj/WebFrame.m:
504 * WebView.subproj/WebFrameView.m:
505 * WebView.subproj/WebHTMLView.m:
506 * WebView.subproj/WebPreferences.m:
507 (-[WebPreferences _setIntegerValue:forKey:]):
508 (-[WebPreferences _setBoolValue:forKey:]):
509 * WebView.subproj/WebResource.m:
510 (-[WebResource _initWithPropertyList:]):
511 (-[WebResource _fileWrapperRepresentation]):
512 * WebView.subproj/WebView.m:
514 2005-06-02 Maciej Stachowiak <mjs@apple.com>
518 - remove dependencies on NSString and NSData extras from Foundation
520 * Misc.subproj/WebKitNSStringExtras.h:
521 * Misc.subproj/WebKitNSStringExtras.m:
522 (-[NSString _webkit_isCaseInsensitiveEqualToString:]):
523 (-[NSString _webkit_hasCaseInsensitivePrefix:]):
524 (-[NSString _webkit_stringByTrimmingWhitespace]):
525 (-[NSString _webkit_stringByCollapsingNonPrintingCharacters]):
526 (-[NSString _webkit_fixedCarbonPOSIXPath]):
527 * Misc.subproj/WebNSDataExtras.h:
528 * Misc.subproj/WebNSDataExtras.m:
529 (-[NSString _web_capitalizeRFC822HeaderFieldName]):
530 (-[NSData _web_isCaseInsensitiveEqualToCString:]):
532 (-[NSData _web_parseRFC822HeaderFields]):
533 (-[NSData _webkit_guessedMIMETypeForXML]):
534 (-[NSData _webkit_guessedMIMEType]):
535 * Misc.subproj/WebNSPasteboardExtras.m:
536 (-[NSPasteboard _web_bestURL]):
537 * Misc.subproj/WebNSURLExtras.h:
538 * Misc.subproj/WebNSURLExtras.m:
539 (applyHostNameFunctionToURLString):
540 (+[NSURL _web_URLWithUserTypedString:relativeToURL:]):
541 (+[NSURL _web_URLWithDataAsString:relativeToURL:]):
542 (-[NSURL _webkit_shouldLoadAsEmptyDocument]):
543 (-[NSString _webkit_isJavaScriptURL]):
544 (-[NSString _webkit_isFileURL]):
545 (-[NSString _webkit_isFTPDirectoryURL]):
546 (-[NSString _web_encodeHostName]):
547 (-[NSString _webkit_rangeOfURLScheme]):
548 (-[NSString _webkit_looksLikeAbsoluteURL]):
549 (-[NSString _webkit_URLFragment]):
550 * Misc.subproj/WebNSViewExtras.m:
551 * Plugins.subproj/WebBaseNetscapePluginView.m:
552 (-[WebBaseNetscapePluginView _postURL:target:len:buf:file:notifyData:sendNotification:allowHeaders:]):
553 * Plugins.subproj/WebPluginDatabase.m:
554 * WebCoreSupport.subproj/WebBridge.m:
555 (-[WebBridge setTitle:]):
556 * WebView.subproj/WebDataSource.m:
557 (-[WebDataSource _setTitle:]):
558 * WebView.subproj/WebFrame.m:
559 (-[WebFrame _loadItem:withLoadType:]):
560 * WebView.subproj/WebPreferences.m:
561 (-[WebPreferences userStyleSheetLocation]):
562 * WebView.subproj/WebView.m:
563 (+[WebView _MIMETypeForFile:]):
565 2005-06-02 Maciej Stachowiak <mjs@apple.com>
569 - first stage of cleaning up SPI usage in WebKit
571 * Carbon.subproj/CarbonUtils.m:
572 * DOM.subproj/WebDOMOperations.m:
573 (-[DOMHTMLLinkElement _subresourceURLs]):
574 (-[DOMHTMLParamElement _subresourceURLs]):
575 * History.subproj/WebHistoryItem.m:
576 (-[WebHistoryItem _setFormInfoFromRequest:]):
577 * Misc.subproj/WebDatabase.m:
578 (-[WebDatabase setObject:forKey:]):
579 (-[WebDatabase removeObjectForKey:]):
580 (-[WebDatabase removeAllObjects]):
581 (-[WebDatabase objectForKey:]):
582 (-[WebDatabase open]):
583 (-[WebDatabase close]):
584 (-[WebDatabase sync]):
585 (-[WebDatabase count]):
586 (-[WebDatabase setSizeLimit:]):
587 * Misc.subproj/WebIconDatabase.m:
588 (-[WebIconDatabase iconForURL:withSize:cache:]):
589 (-[WebIconDatabase _iconForFileURL:withSize:]):
590 * Misc.subproj/WebKitNSStringExtras.h:
591 * Misc.subproj/WebKitNSStringExtras.m:
592 (+[NSString _web_encodingForResource:]):
593 (-[NSString _webkit_isCaseInsensitiveEqualToString:]):
594 * Misc.subproj/WebNSEventExtras.h:
595 * Misc.subproj/WebNSEventExtras.m:
596 (-[NSEvent _web_isTabKeyEvent]):
597 * Misc.subproj/WebNSURLExtras.h:
598 * Misc.subproj/WebNSURLExtras.m:
599 (-[NSURL _webkit_isFileURL]):
600 (-[NSString _webkit_isJavaScriptURL]):
601 (-[NSString _webkit_isFileURL]):
602 * Panels.subproj/WebPanelAuthenticationHandler.m:
603 (-[NSMutableDictionary _webkit_setObject:forUncopiedKey:]):
604 (-[WebPanelAuthenticationHandler enqueueChallenge:forWindow:]):
605 (-[WebPanelAuthenticationHandler startAuthentication:window:]):
606 * Plugins.subproj/WebBaseNetscapePluginView.m:
607 * Plugins.subproj/WebBasePluginPackage.m:
608 (-[WebBasePluginPackage isQuickTimePlugIn]):
609 (-[WebBasePluginPackage isJavaPlugIn]):
610 * Plugins.subproj/WebPluginPackage.m:
611 (-[WebPluginPackage initWithPath:]):
612 * WebCoreSupport.subproj/WebBridge.m:
613 (-[WebBridge canTargetLoadInFrame:]):
614 (-[WebBridge valueForKey:keys:values:]):
615 * WebCoreSupport.subproj/WebGlyphBuffer.m:
616 * WebCoreSupport.subproj/WebImageDecodeItem.h:
617 * WebCoreSupport.subproj/WebImageDecodeItem.m:
618 * WebCoreSupport.subproj/WebImageDecoder.h:
619 * WebCoreSupport.subproj/WebImageDecoder.m:
620 * WebCoreSupport.subproj/WebTextRenderer.h:
622 * WebView.subproj/WebBaseResourceHandleDelegate.m:
623 (-[WebBaseResourceHandleDelegate _canUseResourceForRequest:]):
624 * WebView.subproj/WebDataProtocol.m:
625 (+[WebDataProtocol _webIsDataProtocolURL:]):
626 * WebView.subproj/WebFrame.m:
627 (-[WebFrame _shouldAllowAccessFrom:]):
628 (-[WebFrame reload]):
629 * WebView.subproj/WebHTMLRepresentation.m:
630 (-[WebHTMLRepresentation _isDisplayingWebArchive]):
631 * WebView.subproj/WebMainResourceClient.m:
632 (-[WebMainResourceClient continueAfterContentPolicy:response:]):
633 (-[WebMainResourceClient didReceiveResponse:]):
634 * WebView.subproj/WebPDFView.m:
635 * WebView.subproj/WebView.m:
636 (+[WebView _MIMETypeForFile:]):
638 2005-06-01 Darin Adler <darin@apple.com>
640 Reviewed by John Sullivan.
642 - WebKit part of fix for <rdar://problem/3166090> add IE JavaScript extension window.showModalDialog
644 * WebCoreSupport.subproj/WebBridge.m:
645 (-[WebBridge createModalDialogWithURL:]): Added. Calls the UI delegate, falling back to the generic
646 "create WebView" method.
647 (-[WebBridge canRunModal]): Added. Checks the UI delegate to see if it implements runModal.
648 (-[WebBridge canRunModalNow]): Added. Checks the "inConnectionCallback" field so we can prevent
649 deadlock since we can't do any I/O while inside a connection callback until this aspect of NSURLConnection
651 (-[WebBridge runModal]): Added. Sets "defersCallbacks" on all other web views in the group, then
652 calls runModal on the UI delegate.
654 * WebView.subproj/WebBaseResourceHandleDelegate.h: Added inConnectionCallback class method.
655 * WebView.subproj/WebBaseResourceHandleDelegate.m:
656 (-[WebBaseResourceHandleDelegate connection:willSendRequest:redirectResponse:]): Bump count and then
657 decrement count so we can tell if we are in a callback.
658 (-[WebBaseResourceHandleDelegate connection:didReceiveAuthenticationChallenge:]): Ditto.
659 (-[WebBaseResourceHandleDelegate connection:didCancelAuthenticationChallenge:]): Ditto.
660 (-[WebBaseResourceHandleDelegate connection:didReceiveResponse:]): Ditto.
661 (-[WebBaseResourceHandleDelegate connection:didReceiveData:lengthReceived:]): Ditto.
662 (-[WebBaseResourceHandleDelegate connection:willStopBufferingData:]): Ditto.
663 (-[WebBaseResourceHandleDelegate connectionDidFinishLoading:]): Ditto.
664 (-[WebBaseResourceHandleDelegate connection:didFailWithError:]): Ditto.
665 (-[WebBaseResourceHandleDelegate connection:willCacheResponse:]): Ditto.
666 (+[WebBaseResourceHandleDelegate inConnectionCallback]): Added. Return YES if count is not 0.
668 * WebView.subproj/WebMainResourceClient.m:
669 (-[WebMainResourceClient receivedError:]): Changed to use the method without the connection: parameter
670 in the base class, since we no longer are overriding the connection: version.
671 (-[WebMainResourceClient willSendRequest:redirectResponse:]): Change to override the version without
672 the connection prefix/parameter; now only the base class overrides the actual connection delegate methods.
673 (-[WebMainResourceClient continueAfterContentPolicy:response:]): Ditto.
674 (-[WebMainResourceClient didReceiveResponse:]): Ditto.
675 (-[WebMainResourceClient didReceiveData:lengthReceived:]): Ditto.
676 (-[WebMainResourceClient didFinishLoading]): Ditto.
677 (-[WebMainResourceClient didFailWithError:]): Ditto.
678 (-[WebMainResourceClient loadWithRequestNow:]): Call the method without the connection parameter.
680 * WebView.subproj/WebUIDelegatePrivate.h: Added new SPI here that WebBrowser implements.
682 2005-05-26 Darin Adler <darin@apple.com>
686 - fix build failure from when I removed WebCoreUnicode
688 * WebCoreSupport.subproj/WebTextRenderer.m: Removed import of WebUnicode.h that I missed.
689 (-[WebTextRenderer _convertUnicodeCharacters:length:toGlyphs:]): Switch from our own macros
690 to the ICU macros for surrogate pairs.
691 (widthForNextCharacter): Ditto.
693 2005-05-26 David Harrison <harrison@apple.com>
695 <rdar://problem/4120518> Mail: control-T in an empty message crashes mail
697 * WebCoreSupport.subproj/WebBridge.m:
698 (-[WebBridge issueTransposeCommand]):
699 New, to support transpose in JS.
701 2005-05-26 Darin Adler <darin@apple.com>
703 Reviewed by Richard and Dave Harrison.
705 - eliminate WebCoreUnicode and use ICU directly instead
707 * Misc.subproj/WebKitNSStringExtras.m: (canUseFastRenderer): Use u_charDirection directly.
708 * WebCoreSupport.subproj/WebTextRenderer.m: Removed import of <WebCore/WebCoreUnicode.h>.
709 * WebView.subproj/WebHTMLView.m: (+[WebHTMLView initialize]): Removed call to WebKitInitializeUnicode.
711 * Misc.subproj/WebUnicode.h: Removed.
712 * Misc.subproj/WebUnicode.m: Removed.
713 * Misc.subproj/WebUnicodeTables.m: Removed.
715 * WebKit.pbproj/project.pbxproj: Removed files.
717 2005-05-24 Richard Williamson <rjw@apple.com>
719 Fixed <rdar://problem/4097289> -[WebView elementAtPoint:] failing when WebView is nested and offset
721 Code to determine the correct frame under the window point was
722 converting the point incorrectly.
726 * WebView.subproj/WebView.m:
727 (-[WebView _frameViewAtWindowPoint:]):
729 2005-05-23 John Sullivan <sullivan@apple.com>
733 - WebKit part of <rdar://problem/4125783> WebKit needs a way to control whether textareas are resizable
735 * WebView.subproj/WebPreferencesPrivate.h:
736 added private-for-now getter and setter for new preference
737 * WebView.subproj/WebPreferenceKeysPrivate.h:
738 added private preference key controlling whether textareas are resizable
739 * WebView.subproj/WebPreferences.m:
740 (+[WebPreferences initialize]):
741 initial value of new preference is NO, so other clients' behavior doesn't change
742 (-[WebPreferences textAreasAreResizable]):
744 (-[WebPreferences setTextAreasAreResizable:]):
747 * WebView.subproj/WebView.m:
748 (-[WebView _updateWebCoreSettingsFromPreferences:]):
749 update this new setting in WebCore
751 * English.lproj/StringsNotToBeLocalized.txt:
752 updated for these changes
754 2005-05-23 Chris Blumenberg <cblu@apple.com>
756 Changed type for identifier parameter in WebResourceLoadDelegate-related calls to id from NSString.
760 * WebCoreSupport.subproj/WebBridge.m:
761 (-[WebBridge objectLoadedFromCacheWithURL:response:data:]):
762 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
763 * WebView.subproj/WebFrame.m:
764 (-[WebFrame _opened]):
765 (-[WebFrame _requestFromDelegateForRequest:identifier:error:]):
766 (-[WebFrame _sendRemainingDelegateMessagesWithIdentifier:response:length:error:]):
767 (-[WebFrame _saveResourceAndSendRemainingDelegateMessagesWithRequest:identifier:response:data:error:]):
768 * WebView.subproj/WebFrameInternal.h:
770 2005-05-20 Chris Blumenberg <cblu@apple.com>
772 Fixed: <rdar://problem/4098786> sync. XMLHttpRequest works w/o AllowNetworkAccess key because load delegate is not consulted
774 Synchronous loads did not cause the willSendRequest method on the resource load delegate to be called. This is the method that Dashboard uses to enforce AllowNetworkAccess and this must be called to avoid exploits.
776 Reviewed by sullivan.
778 * WebCoreSupport.subproj/WebBridge.m:
779 (-[WebBridge objectLoadedFromCacheWithURL:response:data:]): call [WebFrame _requestFromDelegateForRequest:identifier:error:] then
780 [WebFrame _saveResourceAndSendRemainingDelegateMessagesWithRequest:identifier:response:data:error:] so synthetic resource load delegate
781 methods are called and the data is saved as a WebResource for resources in the WebCore cache.
783 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]): call [WebFrame _requestFromDelegateForRequest:identifier:error:],
784 respect its result, do the load and then call [WebFrame _saveResourceAndSendRemainingDelegateMessagesWithRequest:identifier:response:data:error:]
785 for synchronous loads
787 * WebView.subproj/WebFrame.m:
788 (-[WebFrame _opened]): call [WebFrame _requestFromDelegateForRequest:identifier:error:] then
789 [WebFrame _sendRemainingDelegateMessagesWithIdentifier:response:length:error:] so synthetic resource load delegate methods are called
790 for subresrources in the page cache
792 (-[WebFrame _requestFromDelegateForRequest:identifier:error:]): new, was part of the removed _sendResourceLoadDelegateMessagesForURL:::
793 This method calls identifierForInitialRequest and willSendRequest.
795 (-[WebFrame _sendRemainingDelegateMessagesWithIdentifier:response:length:error:]): new, was part of the removed _sendResourceLoadDelegateMessagesForURL:::
796 This method calls the remaining resource load delegate messages.
798 (-[WebFrame _saveResourceAndSendRemainingDelegateMessagesWithRequest:identifier:response:data:error:]): new, saves the resource and calls
799 [WebFrame _sendRemainingDelegateMessagesWithIdentifier:response:length:error:]
801 * WebView.subproj/WebFrameInternal.h:
803 2005-05-17 Chris Blumenberg <cblu@apple.com>
805 Fixed: <rdar://problem/4119282> clicking a link in an RTF file opens the link with NSWorkspace without the usual security checks or WebView delegate control
809 * WebCoreSupport.subproj/WebBridge.m:
810 (-[WebBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]): pass the passed referrer to canLoadURL::: not [self referrer]
811 (-[WebBridge postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]): ditto
812 * WebView.subproj/WebTextView.m:
813 (-[WebTextView clickedOnLink:atIndex:]): call the loadURL bridge method so that security checks are made, command/option clicks work, policy delegate is consulted etc.
815 2005-05-17 Chris Blumenberg <cblu@apple.com>
817 Fixed: <rdar://problem/4120255> web archives on remote servers can be viewed directly (with major security issues); should download instead
821 * WebView.subproj/WebBaseResourceHandleDelegate.h:
822 * WebView.subproj/WebMainResourceClient.m:
823 (-[WebMainResourceClient continueAfterContentPolicy:response:]): if the WebKit client has chosen to "use" a remote web archive, stop the load with an error
825 2005-05-16 Darin Adler <darin@apple.com>
827 - attempt to get things building under "Saffron" development tools
829 * WebKit.pbproj/project.pbxproj: Use BUILT_PRODUCTS_DIR instead of SYMROOT.
831 2005-05-13 John Sullivan <sullivan@apple.com>
835 - fixed <rdar://problem/4093306> Safari crashes if Esc key is held down during series
836 of authentication sheets
838 * Panels.subproj/WebAuthenticationPanel.m:
839 (-[WebAuthenticationPanel cancel:]):
840 retain and autorelease self. This is a workaround for an AppKit key-handling issue, which I wrote up as:
841 <rdar://problem/4118422> Key-down events can be sent to a closed window if a key is kept pressed down
843 2005-05-12 John Sullivan <sullivan@apple.com>
847 - rolled in changes from experimental-ui-branch to support resizable textareas
848 and find-as-you-type and confirming unsubmitted form changes. The files/functions
849 modified are listed just below. After that are the ChangeLog comments from the branch.
851 * WebCoreSupport.subproj/WebBridge.m:
852 (-[WebBridge textDidChange:]):
853 * WebView.subproj/WebFormDelegate.h:
854 * WebView.subproj/WebFormDelegate.m:
855 (-[WebFormDelegate textDidChange:inFrame:]):
856 * WebView.subproj/WebHTMLView.m:
857 (-[WebHTMLView maintainsInactiveSelection]):
858 (-[WebHTMLView searchFor:direction:caseSensitive:wrap:]):
859 (-[WebHTMLView _searchFor:direction:caseSensitive:wrap:findInSelection:]):
860 * WebView.subproj/WebView.m:
861 (-[WebView _searchFor:direction:caseSensitive:wrap:findInSelection:]):
862 (-[WebView searchFor:direction:caseSensitive:wrap:]):
863 (-[WebView makeTextStandardSize:]):
864 (-[WebView maintainsInactiveSelection]):
865 * WebView.subproj/WebViewPrivate.h:
867 2005-04-18 John Sullivan <sullivan@apple.com>
869 WebKit support for notifying a form delegate when a
870 textarea's contents have changed (as opposed to a
871 textfield, which was already handled).
875 * WebView.subproj/WebFormDelegate.h:
876 * WebView.subproj/WebFormDelegate.m:
877 (-[WebFormDelegate textDidChange:inFrame:]):
878 new form delegate method
880 * WebCoreSupport.subproj/WebBridge.m:
881 (-[WebBridge textDidChange:]):
882 new method, calls through to form delegate
884 2005-04-11 John Sullivan <sullivan@apple.com>
886 Fixed inability to wrap around in Find in Page
888 * WebView.subproj/WebView.m:
889 (-[WebView _searchFor:direction:caseSensitive:wrap:findInSelection:]):
890 changed wrapFlag from NO to YES on two lines (copy/paste error)
892 2005-04-07 John Sullivan <sullivan@apple.com>
894 WebKit support for find-as-you-type. Needed an additional parameter on
895 a method from WebDocumentSearching protocol. Since that's a public protocol,
896 I couldn't just add the parameter. For now I hacked it with an undeclared
897 internal method that's discovered via respondsToSelector. Probably the right
898 long-term approach is to deprecate the WebDocumentSearching protocol and introduce
899 a replacement that has a more flexible set of parameters for possible future
902 Reviewed by Dave Hyatt.
904 * WebView.subproj/WebHTMLView.m:
905 (-[WebHTMLView searchFor:direction:caseSensitive:wrap:]):
906 now calls new one-more-parameter version passing NO for new parameter to match old behavior
907 (-[WebHTMLView _searchFor:direction:caseSensitive:wrap:findInSelection:]):
908 new method, adds findInSelection parameter and passes it through to bridge
910 * WebView.subproj/WebView.m:
911 (-[WebView searchFor:direction:caseSensitive:wrap:]):
912 now calls new one-more-parameter version passing NO for new parameter to match old behavior
913 (-[WebView _searchFor:direction:caseSensitive:wrap:findInSelection:]):
914 new method, adds findInSelection parameter and passes it through
916 2005-04-07 John Sullivan <sullivan@apple.com>
918 WebKit support to allow clients to control whether the selection is still
919 drawn when the first responder is elsewhere. Formerly this was hardwired
920 to be true only when -[WebView isEditable] was true.
924 * WebView.subproj/WebHTMLView.m:
925 (-[WebHTMLView maintainsInactiveSelection]):
926 check [WebView maintainsInactiveSelection] rather than just [WebView isEditable]
928 * WebView.subproj/WebViewPrivate.h:
929 * WebView.subproj/WebView.m:
930 (-[WebView maintainsInactiveSelection]):
931 new method for clients to override, returns -[self isEditable]
934 2005-05-10 John Sullivan <sullivan@apple.com>
938 - WebKit support for <rdar://problem/3795701> Menu item/keyboard shortcut to
939 restore text zoom to normal
941 * WebView.subproj/WebView.m:
942 (-[WebView validateUserInterfaceItem:]):
943 validate makeTextStandardSize by calling canMakeTextStandardSize
944 (-[WebView canMakeTextStandardSize]):
945 new method, returns YES unless text size multiplier is currently 1
946 (-[WebView makeTextStandardSize:]):
947 new method, sets text size multiplier to 1
949 * WebView.subproj/WebViewPrivate.h:
950 add makeTextStandardSize: and canMakeTextStandardSize to pending public category
952 2005-05-10 John Sullivan <sullivan@apple.com>
956 - fixed <rdar://problem/4067981> Mail places RTF flavor before RTFD flavor when dragging
957 mixed image/text content.
959 * WebView.subproj/WebHTMLView.m:
960 (+[WebHTMLView _selectionPasteboardTypes]):
961 put RTFD type before RTF type in array of types to declare
963 2005-05-09 Chris Blumenberg <cblu@apple.com>
965 Turned assertion into error message to prevent crash when encountering this bug:
966 <rdar://problem/4067625> connection:willCacheResponse: is called inside of [NSURLConnection initWithRequest:delegate:]
968 * WebView.subproj/WebBaseResourceHandleDelegate.h:
969 * WebView.subproj/WebBaseResourceHandleDelegate.m:
970 (-[WebBaseResourceHandleDelegate loadWithRequest:]): set flag to track when we're initializing the connection
971 (-[WebBaseResourceHandleDelegate connection:willCacheResponse:]): log error
973 2005-05-09 Darin Adler <darin@apple.com>
975 * Makefile.am: Don't set up PBXIntermediatesDirectory explicitly;
976 Not needed to make builds work, spews undesirable error messages too.
978 2005-05-06 Darin Adler <darin@apple.com>
982 - make building multiple trees with make work better
984 * Makefile.am: Set up Xcode build directory before invoking xcodebuild.
986 2005-05-04 Darin Adler <darin@apple.com>
988 Reviewed by Dave Hyatt.
992 * WebKit.pbproj/project.pbxproj: Set deployment target to 10.3 in the build styles.
993 When built without a build style (by Apple B&I) we want to get the target from the
994 environment. But when built with a build style (by Safari engineers and others), we want
995 to use 10.3. Because our deployment target was not set, we ran into this bug:
997 <rdar://problem/4108717> CTFontGetGlyphWithName doesn't work with some strings
999 * Makefile.am: Took out extra parameters that make command-line building different from
1000 Xcode building. Now that this is fixed, you should not get a full rebuild if you switch
1001 from command line to Xcode or back.
1003 2005-05-04 Chris Blumenberg <cblu@apple.com>
1006 <rdar://problem/4078417> REGRESSION (125-412): MLB gameday page doesn't update (Flash)
1007 <rdar://problem/4072280> XMLHttpRequest calls onReadyStateChange callback with bogus status value
1011 Our WebKit-level caching of subresources "dumbed-down" information held in NSURLResponse. This caused some loads to lack response headers and thus disabling cache directives. Status codes were also not retained and this caused XMLHttpRequest to fail frequently. The fix is to have WebResource retain the NSURLResponse and to use the NSURLResponse when we decide to load from WebResources.
1013 * WebCoreSupport.subproj/WebBridge.m:
1014 (-[WebBridge objectLoadedFromCacheWithURL:response:data:]): call new [WebResource _initWithData:URL:response:]
1015 * WebView.subproj/WebBaseResourceHandleDelegate.m:
1016 (-[WebBaseResourceHandleDelegate _canUseResourceWithResponse:]): new, checks response cache directives
1017 (-[WebBaseResourceHandleDelegate loadWithRequest:]): call _canUseResourceWithResponse:
1018 (-[WebBaseResourceHandleDelegate saveResource]): call new [WebResource _initWithData:URL:response:]
1019 * WebView.subproj/WebResource.m:
1020 (-[WebResourcePrivate dealloc]):
1021 (-[WebResource initWithData:URL:MIMEType:textEncodingName:frameName:]): call renamed _initWithData:URL:MIMEType:textEncodingName:frameName:response:copyData:
1022 (-[WebResource initWithCoder:]): decode the NSURLReponse
1023 (-[WebResource encodeWithCoder:]): encode the NSURLReponse
1024 (-[WebResource _initWithData:URL:MIMEType:textEncodingName:frameName:response:copyData:]): take the NSURLReponse
1025 (-[WebResource _initWithData:URL:response:]): new
1026 (-[WebResource _initWithPropertyList:]): decode the NSURLReponse
1027 (-[WebResource _propertyListRepresentation]): encode the NSURLReponse
1028 (-[WebResource _response]): return ivar if we have one
1029 * WebView.subproj/WebResourcePrivate.h:
1031 2005-05-03 David Hyatt <hyatt@apple.com>
1033 Fix object element support so that fallback content works. With this change Safari passes the Acid2 test.
1037 * WebCoreSupport.subproj/WebBridge.m:
1038 (-[WebBridge determineObjectFromMIMEType:URL:]):
1039 * WebView.subproj/WebDataSource.m:
1040 (-[WebDataSource _receivedMainResourceError:complete:]):
1041 * WebView.subproj/WebMainResourceClient.m:
1042 (-[WebMainResourceClient continueAfterContentPolicy:response:]):
1044 2005-05-03 Darin Adler <darin@apple.com>
1046 * WebView.subproj/WebUIDelegate.h: Fixed incorrect comment.
1049 2005-05-01 Darin Adler <darin@apple.com>
1051 - move to Xcode native targets and stop checking in generated files
1053 * WebKit.pbproj/project.pbxproj: Updated to use native targets and generate all the generated
1054 files, so we don't have to check them in any more.
1055 * Info.plist: Added. Native targets use a separate file for this.
1057 * Plugins.subproj/npapi.m: Fixed import statement to get npapi.h from <WebKit/> rather than current directory.
1059 * Makefile.am: Removed timestamp cleaning rules since we don't use it any more.
1061 * .cvsignore: Removed various timestamp files.
1063 * DOM.subproj/DOM-compat.h: Removed.
1064 * DOM.subproj/DOM.h: Removed.
1065 * DOM.subproj/DOMCSS.h: Removed.
1066 * DOM.subproj/DOMCore.h: Removed.
1067 * DOM.subproj/DOMEvents.h: Removed.
1068 * DOM.subproj/DOMExtensions.h: Removed.
1069 * DOM.subproj/DOMHTML.h: Removed.
1070 * DOM.subproj/DOMPrivate.h: Removed.
1071 * DOM.subproj/DOMRange.h: Removed.
1072 * DOM.subproj/DOMStylesheets.h: Removed.
1073 * DOM.subproj/DOMTraversal.h: Removed.
1074 * DOM.subproj/DOMViews.h: Removed.
1075 * Plugins.subproj/WebScriptObject.h: Removed.
1076 * Plugins.subproj/npapi.h: Removed.
1077 * Plugins.subproj/npruntime.h: Removed.
1078 * copy-webcore-files-to-webkit: Removed.
1079 * embed-frameworks.sh: Removed.
1080 * force-clean-timestamp: Removed.
1082 2005-04-28 Darin Adler <darin@apple.com>
1086 - fixed problems preventing us from compiling with gcc 4.0
1088 * WebKit.pbproj/project.pbxproj: Removed -fobjc-exceptions because I can't figure out an easy
1089 way to pass it only when compiling Objective-C/C++. Removed -Wmissing-prototypes from
1090 WARNING_CPLUSPLUSFLAGS since it's now a C-only warning.
1092 * History.subproj/WebHistoryItem.m: (-[WebHistoryItem pageCache]): Changed return type
1093 to match the declaration.
1094 * WebCoreSupport.subproj/WebBridge.m: (-[WebBridge _retrieveKeyboardUIModeFromPreferences:]):
1095 Fixed a BOOL that should have been a Boolean.
1096 * WebCoreSupport.subproj/WebTextRenderer.m: Removed redundant copy of ROUND_TO_INT, also in
1098 (-[WebTextRenderer _computeWidthForSpace]): Had to add cast because of difference in type of
1099 ROUND_TO_INT vs. CEIL_TO_INT.
1100 (pathFromFont): Added a cast to convert UInt8 * to char *.
1101 * WebView.subproj/WebFrameView.m:
1102 (-[WebFrameView _setDocumentView:]): Fixed parameter type to match the declaration.
1103 (-[WebFrameView documentView]): Fixed return type to match the declaration.
1104 * WebView.subproj/WebHTMLView.m:
1105 (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
1106 Initialized a variable to quiet an incorrect gcc 4.0 uninitialized variable warning.
1107 (-[WebHTMLView deleteToMark:]): Switched from @try style to NS_DURING style of exception handler
1108 because we can't pass -fobjc-exceptions just to Objective-C at the moment (see above).
1109 (-[WebHTMLView selectToMark:]): Ditto.
1110 (-[WebHTMLView swapWithMark:]): Ditto.
1112 2005-04-27 John Sullivan <sullivan@apple.com>
1114 Reviewed by Dave Harrison.
1116 - fixed <rdar://problem/3547489> pop-up window blocking preference and
1117 menu item can easily get out of sync.
1119 * WebView.subproj/WebPreferences.m:
1120 (-[WebPreferences _setStringValue:forKey:]):
1121 save local value before setting value in NSUserDefaults, so clients reacting to NSUserDefaults
1122 change notification but calling back on WebPreferences API will see the updated value.
1123 (-[WebPreferences _setIntegerValue:forKey:]):
1125 (-[WebPreferences _setBoolValue:forKey:]):
1128 2005-04-26 Richard Williamson <rjw@apple.com>
1130 Fixed <rdar://problem/4098713> Scripting API is incompatible with Mozilla
1134 * Plugins.subproj/npfunctions.h:
1135 * Plugins.subproj/npruntime.h:
1137 2005-04-26 Darin Adler <darin@apple.com>
1141 - fixed <rdar://problem/3655817> please add support for mouse wheel events and the onmousewheel handler
1143 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView scrollWheel:]): Call sendScrollWheelEvent: method
1144 instead of the old scrollOverflowWithScrollWheelEvent: (just a name change).
1146 2005-04-18 Darin Adler <darin@apple.com>
1150 - fixed <rdar://problem/4092614> REGRESSION (Tiger): progressively loaded background images "scroll around" instead of just appearing
1152 * WebCoreSupport.subproj/WebImageData.m:
1153 (-[WebImageData _imageSourceOptions]): Moved a global inside this function, since it's only used here.
1154 (-[WebImageData _cacheImages:allImages:]): Fixed a sizeof that was getting the size of the wrong thing.
1155 (-[WebImageData _isSizeAvailable]): Used calloc in a more consistent way.
1156 (drawPattern): Removed an unneeded cast.
1157 (-[WebImageData tileInRect:fromPoint:context:]): Here's the actual bug fix. Don't use the image size
1158 when deciding whether the image needs to be tiled as a pattern nor when creating the pattern: in both
1159 cases, use the tile size. The old way was wrong, and the new way works perfectly. Also removed uneeded
1160 error message when the image is not yet loaded enough to create a CGImageRef for it -- it's fine to
1161 draw nothing in that case.
1163 2005-04-14 John Sullivan <sullivan@apple.com>
1167 * WebView.subproj/WebBaseResourceHandleDelegate.m:
1168 (-[WebBaseResourceHandleDelegate connection:willCacheResponse:]):
1169 Beefed up assertion that's been bugging me and Chris to include
1170 the two troublemaking values.
1172 2005-04-05 David Hyatt <hyatt@apple.com>
1174 Fix for 4077106, wheel scroll amount smaller in Tiger. All along wheeling should have been 4x the default
1175 line height of 10 (just as arrow keys did). Scroll arrows should have done this too for scroll views (they did
1176 already for overflow sections). This patch puts the override into the scrollview itself, and removes the
1177 multipliers in the private frame methods.
1181 * WebView.subproj/WebFrameView.m:
1182 (-[WebFrameView _verticalKeyboardScrollDistance]):
1183 (-[WebFrameView initWithFrame:]):
1184 (-[WebFrameView _horizontalKeyboardScrollDistance]):
1186 === WebKit-312.1 ===
1188 2005-03-31 Chris Blumenberg <cblu@apple.com>
1190 Fixed: <rdar://problem/4070729> REGRESSION (125-311, Panther-only?): Safari crashes while reloading "My eBay" page
1194 * WebView.subproj/WebBaseResourceHandleDelegate.m:
1195 (-[WebBaseResourceHandleDelegate resourceData]): retain and autorelease resourceData since releaseResources (which releases resourceData) may be called before the caller of this method has an opporuntity to retain the returned data
1201 2005-03-23 Richard Williamson <rjw@apple.com>
1203 Use Patti Yeh's hack to determine the appropriate rectangle
1204 to place the "associated word" window.
1205 If there is no marked text firstRectForCharacterRange: will
1206 use the selected range to determine the returned rectangle,
1207 ignoring the input range. This is the fix from
1208 4029491 that I previously backed out.
1212 * WebView.subproj/WebHTMLView.m:
1213 (-[WebHTMLView firstRectForCharacterRange:]):
1215 2005-03-23 Richard Williamson <rjw@apple.com>
1217 Fixed <rdar://problem/4062490> REGRESSION (WebKit-408): no subresources reported in Activity window after going back at hrweb.apple.com
1219 Stop collecting subresource responses after the document
1220 had loaded, not after it has been opened.
1224 * WebView.subproj/WebFrame.m:
1225 (-[WebFrame _setState:]):
1226 (-[WebFrame _opened]):
1228 2005-03-21 Maciej Stachowiak <mjs@apple.com>
1232 <rdar://problem/4051145> The QuickTime Cocoa plug-in needs an SPI that it can call to check for URL policy
1234 * Plugins.subproj/WebPluginContainerCheck.h: Added.
1235 * Plugins.subproj/WebPluginContainerCheck.m: Added this new helper class to encapsulate
1236 an async plugin navigation check.
1237 (+[WebPluginContainerCheck checkWithRequest:target:resultObject:selector:controller:]): Convenience allocator that gives autoreleased value.
1238 (-[WebPluginContainerCheck initWithRequest:target:resultObject:selector:controller:]): Initializer.
1239 (-[WebPluginContainerCheck finalize]): Just assert that we're done, it would
1240 be bad to deallocate this object while request is still outstanding.
1241 (-[WebPluginContainerCheck dealloc]): Ditto.
1242 (-[WebPluginContainerCheck _continueWithPolicy:]): Method to continue after async
1244 (-[WebPluginContainerCheck _isDisallowedFileLoad]): Do "file: URL from remote content"
1246 (-[WebPluginContainerCheck _actionInformationWithURL:]): Helper to make action
1248 (-[WebPluginContainerCheck _askPolicyDelegate]): Call policy delegate to let
1249 the app decide if this load is allowed.
1250 (-[WebPluginContainerCheck start]): Start the check.
1251 (-[WebPluginContainerCheck cancel]): Cancel a check in progress.
1252 * Plugins.subproj/WebPluginController.h:
1253 * Plugins.subproj/WebPluginController.m:
1254 (-[WebPluginController initWithDocumentView:]): Initialize new _checksInProgress field.
1255 (-[WebPluginController _webPluginContainerCancelCheckIfAllowedToLoadRequest:]): Implement
1256 this new SPI method.
1257 (-[WebPluginController _cancelOutstandingChecks]): New helper to make sure to cancel
1258 all outstanding requests when destroying all plugins.
1259 (-[WebPluginController destroyAllPlugins]): Call above helper.
1260 (-[WebPluginController _webPluginContainerCheckIfAllowedToLoadRequest:inFrame:resultObject:selector:]): Implement this new plug-in SPI method.
1261 (-[WebPluginController bridge]): New helper method.
1262 (-[WebPluginController webView]): New helper method.
1263 * WebView.subproj/WebPolicyDelegatePrivate.h: Add new navigation
1264 type WebNavigationTypePlugInRequest.
1265 * WebKit.pbproj/project.pbxproj: Add new files.
1266 * WebView.subproj/WebDefaultPolicyDelegate.m:
1267 (-[WebDefaultPolicyDelegate webView:decidePolicyForNavigationAction:request:frame:decisionListener:]): Don't open externally on a plug-in request.
1269 2005-03-23 Richard Williamson <rjw@apple.com>
1271 Fixed <rdar://problem/4053515> REGRESSION (Mail): Kotoeri input method reconversion does not work in WebViews
1273 We now use actual document NSRanges to represent both marked text
1274 ranges and selection ranges.
1276 Reviewed by Ken Kocienda.
1278 * WebView.subproj/WebHTMLView.m:
1279 (-[WebHTMLView validAttributesForMarkedText]):
1280 (-[WebHTMLView firstRectForCharacterRange:]):
1281 (-[WebHTMLView selectedRange]):
1282 (-[WebHTMLView markedRange]):
1283 (-[WebHTMLView _selectMarkedText]):
1284 (-[WebHTMLView setMarkedText:selectedRange:]):
1288 2005-03-22 Darin Adler <darin@apple.com>
1290 * English.lproj/StringsNotToBeLocalized.txt: Updated for recent changes.
1294 2005-03-20 Maciej Stachowiak <mjs@apple.com>
1298 <rdar://problem/4060020> Add stub version of security SPI for QuickTime plug-in so QuickTime team has something to compile and link against
1300 * Plugins.subproj/WebPluginContainerPrivate.h: Added.
1301 * Plugins.subproj/WebPluginController.m:
1302 (-[WebPluginController _webPluginContainerCheckIfAllowedToLoadRequest:inFrame:resultObject:selector:]):
1303 (-[WebPluginController _webPluginContainerCancelCheckIfAllowedToLoadRequest:]):
1304 * WebKit.pbproj/project.pbxproj:
1306 2005-03-19 David Harrison <harrison@apple.com>
1310 <rdar://problem/4059479> Misspelling underline does underline the whole word, could go farther to the right
1312 * WebCoreSupport.subproj/WebTextRenderer.m:
1313 (-[WebTextRenderer misspellingLinePatternGapWidth]):
1314 (-[WebTextRenderer drawLineForMisspelling:withWidth:]):
1315 Consider that the last pixel in the underline dot pattern is transparent.
1317 2005-03-19 Darin Adler <darin@apple.com>
1319 Reviewed by Maciej (a while back).
1321 - fixed <rdar://problem/4059323> local-file security check is allowing plug-in streams, but must not
1323 * Plugins.subproj/WebNetscapePluginStream.m:
1324 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
1325 Roll out change I made on 3-13. That change is needed for subresource, but not for plug-in streams.
1326 For plug-in streams it's too risky, and leaves a serious security hole open.
1328 2005-03-19 Darin Adler <darin@apple.com>
1330 Reviewed by Ken and John.
1332 - fixed <rdar://problem/4059123> REGRESSION (402-403): deleteWordForward: and deleteWordBackward: start deleting single characters after the first delete
1334 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]):
1335 Fixed backwards logic in here and added missing check. Set action to one of the two typing actions only
1336 if isTypingAction is YES.
1338 2005-03-19 David Harrison <harrison@apple.com>
1340 Reviewed by me (written by Patti Yeh).
1342 <rdar://problem/4029491> <TCIM> CangJie: the candidate window appears at the top left hand corner during typing in Mail and iChat
1344 * WebView.subproj/WebHTMLView.m:
1345 (-[WebHTMLView firstRectForCharacterRange:]):
1346 Use selected range if there is no marked range.
1350 2005-03-18 David Harrison <harrison@apple.com>
1354 <rdar://problem/3584942> AX: Safari Accessibility parent-child mismatch
1356 * WebView.subproj/WebFrameView.m:
1357 (-[WebFrameView webCoreBridge]):
1358 New to conform to WebCoreBridgeHolder protocol.
1360 2005-03-18 Richard Williamson <rjw@apple.com>
1362 Fixed <rdar://problem/4057004> Data from XMLHTTPRequest is never dealloced
1364 WebDataSource keeps an array of all the NSURLResponses associated
1365 with the load for a page. This is used to playback delegate messages
1366 when loading from the page cache. However, after the document
1367 has completed it's initial load, we continue to keep track of responses.
1368 So, this has the consequence of keeping all the responses for a page
1369 around for the life of the page. NSURLResponses are now very
1370 heavy. They indirectly reference the resource data (via the
1371 download assessment dictionary). This fix will keep
1372 references to responses around for those resources loaded during initial
1373 page load, but not after that point.
1377 * WebView.subproj/WebDataSource.m:
1378 (-[WebDataSource _addResponse:]):
1379 (-[WebDataSource _stopRecordingResponses]):
1380 * WebView.subproj/WebDataSourcePrivate.h:
1381 * WebView.subproj/WebFrame.m:
1382 (-[WebFrame _opened]):
1384 2005-03-18 Ken Kocienda <kocienda@apple.com>
1390 <rdar://problem/4053729> Copy/paste of page with frames into Blot or Mail does nothing and loses insertion point
1392 * WebView.subproj/WebHTMLView.m:
1393 (-[WebHTMLView _selectedArchive]): Wrap frameset documents in an iframe, so they can be pasted into
1394 existing documents which will have a body or frameset of their own.
1398 2005-03-17 Richard Williamson <rjw@apple.com>
1400 Fixed <rdar://problem/4055562> REGRESSION (Tiger): Safari doesn't draw progressively-loaded JPEGs (www.theregister.co.uk, www.titantalk.com)
1402 Anothe side effect of lazy loading of image meta data. We now
1403 don't cache image size until size meta data is actually available.
1407 * WebCoreSupport.subproj/WebImageData.m:
1408 (-[WebImageData size]):
1410 2005-03-16 David Harrison <harrison@apple.com>
1414 <rdar://problem/4048506> Deleting from beginning of editable div deletes other document elements
1416 Also changed WebCore.
1418 * WebView.subproj/WebHTMLView.m:
1419 (-[WebHTMLView _shouldDeleteRange:]):
1420 Added call to new bridge method canDeleteRange.
1422 2005-03-16 Ken Kocienda <kocienda@apple.com>
1428 <rdar://problem/4042935> undo doesn't work properly during inline input
1430 * WebView.subproj/WebHTMLView.m:
1431 (-[WebHTMLView setMarkedText:selectedRange:]): Call new -[WebCoreBridge replaceMarkedTextWithText:] instead of
1432 -[WebCoreBridge replaceSelectionWithText:selectReplacement:smartReplace:]. The former call was just added in
1433 order to provide a better mapping of international text input onto the typing command/undo design.
1435 2005-03-15 Richard Williamson <rjw@apple.com>
1437 Fixed <rdar://problem/4040321> Exception: Someone's trying to encode a WebDataRequestParameters instance
1439 If client mutates request use new Foundation SPI to address remove applewebdata properties from request.
1441 Reviewed by Ken Kocienda.
1443 * WebView.subproj/WebBaseResourceHandleDelegate.m:
1444 (-[WebBaseResourceHandleDelegate willSendRequest:redirectResponse:]):
1445 * WebView.subproj/WebDataProtocol.h:
1446 * WebView.subproj/WebDataProtocol.m:
1447 (+[NSURLRequest _webDataRequestPropertyKey]):
1449 2005-03-15 Ken Kocienda <kocienda@apple.com>
1455 <rdar://problem/4052642> Each delete keystroke is in its own undo group; not included in undo group with other typing
1457 Calling -[WebCore setSelectedDOMRange:range affinity:] had the result of "closing" any active set of typing
1458 keystrokes grouped together in a single undo operation. My change on 27 Jan to route delete keystrokes
1459 through _deleteRange:killRing:... made this feature regress. Previous to that change, the backwards delete
1460 key went through separate code that is no longer in the tree that did not set the selection in the way
1463 The solution is to add an extra argument to the set-selection call. The WebCoreBridge now offers this method:
1464 -[WebCore setSelectedDOMRange:range affinity:closeTyping:]. Now, callers must indicate whether setting the
1465 selection will act to close typing or not. The code changes below all add this new argument with the
1466 appropriate value for closeTyping.
1468 * WebView.subproj/WebHTMLView.m:
1469 (-[WebHTMLView _deleteRange:killRing:prepend:smartDeleteOK:deletionAction:]): Passes NO for closeTyping when
1470 deletionAction is deleteKeyAction or forwardDeleteKeyAction; YES when deleteSelectionAction.
1471 (-[WebHTMLView _expandSelectionToGranularity:]): Passes YES for closeTyping.
1472 (-[WebHTMLView selectToMark:]): Passes YES for closeTyping.
1473 (-[WebHTMLView swapWithMark:]): Passes YES for closeTyping.
1474 (-[WebHTMLView transpose:]): Passes YES for closeTyping.
1475 (-[WebHTMLView _selectMarkedText]): Passes NO for closeTyping.
1476 (-[WebHTMLView _selectRangeInMarkedText:]): Passes NO for closeTyping.
1477 * WebView.subproj/WebView.m:
1478 (-[WebView setSelectedDOMRange:affinity:]): Passes YES for closeTyping.
1480 2005-03-14 Richard Williamson <rjw@apple.com>
1482 Fix <rdar://problem/4051389> 8A413: gifs animating too fast
1486 Match Mozilla's policy for minimum frame duration, which is somewhat odd:
1488 <= 0.01 sec use .1 sec, otherwise use specified duration.
1490 * WebCoreSupport.subproj/WebImageData.m:
1491 (-[WebImageData _frameDurationAt:]):
1493 2005-03-14 Darin Adler <darin@apple.com>
1495 Reviewed by Harrison.
1497 - fixed <rdar://problem/4049776> Seed: Mail: Disable spellcheck leaves red artifacts
1499 * WebView.subproj/WebFrameInternal.h: Added _unmarkAllMisspellings.
1500 * WebView.subproj/WebFrame.m: (-[WebFrame _unmarkAllMisspellings]): Added.
1501 Calls unmarkAllMisspellings on the bridge and self and all subframes.
1503 * WebView.subproj/WebView.m: (-[WebView setContinuousSpellCheckingEnabled:]):
1504 Call _unmarkAllMisspellings on the main frame when turning continuous spell checking off.
1506 2005-03-14 Richard Williamson <rjw@apple.com>
1508 Fixed <rdar://problem/4027928> Tiger_8A394:Acrobat crashes while tried to remove the subscription errors by clicking on "Would you like to remove the subscription" from Tracker details view pane
1510 The Acrobat application triggers loads of new documents in it's policy delegate. This
1511 ultimately causes the WebHTMLView to be released before their event handlers have
1512 returned. To bullet proof against this case we retain/release self before passing
1513 the event on for further handling.
1517 * WebView.subproj/WebHTMLView.m:
1518 (-[WebHTMLView _updateMouseoverWithEvent:]):
1519 (-[WebHTMLView scrollWheel:]):
1520 (-[WebHTMLView mouseDown:]):
1521 (-[WebHTMLView mouseDragged:]):
1522 (-[WebHTMLView mouseUp:]):
1523 (-[WebHTMLView keyDown:]):
1524 (-[WebHTMLView keyUp:]):
1525 (-[WebHTMLView performKeyEquivalent:]):
1527 2005-03-14 Vicki Murley <vicki@apple.com>
1529 - roll out the fix for 4040321, since it is still pending CCC review.
1531 2005-03-10 Richard Williamson <rjw@apple.com>
1533 Fixed <rdar://problem/4040321> Exception: Someone's trying to encode a WebDataRequestParameters instance
1537 If a delegate returns a mutated applewebdata: request in it's willSendRequest:
1538 method, we don't load using the WebDataRequest. Instead we do a normal load.
1539 Unfortunately, if the request they return is mutated *copy* of the applewebdata:
1540 request it will hold the applewebdata: special properties. These properties
1541 will be encoded into the cache. They should not be. So, to fix, we sanitize the
1542 request, by removing the special properties from the request.
1544 Note that we had to dig into the private guts of NSURLRequest because there is
1545 no public mechanism to remove properties from a request, see 4046775.
1547 * WebView.subproj/WebBaseResourceHandleDelegate.m:
1548 (-[WebBaseResourceHandleDelegate willSendRequest:redirectResponse:]):
1549 * WebView.subproj/WebDataProtocol.h:
1550 * WebView.subproj/WebDataProtocol.m:
1551 (-[NSURLRequest _webDataRequestExternalRequest]):
1552 (-[NSURLRequest _webDataRequestSanitize]):
1556 2005-03-13 Darin Adler <darin@apple.com>
1558 Reviewed by Ken and Maciej.
1560 - fixed <rdar://problem/4049040> REGRESSION (403-405): security check prevents user stylesheet from loading (Dictionary.app doesn't work at all!)
1562 * Plugins.subproj/WebNetscapePluginStream.m: (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
1563 Allow plug-in subresource streams to load with any URL, ignoring the "canLoadURL" method's restriction (only
1564 file URLs can load other file URLs), which now applies only to main resources, like web pages in frames or
1565 object tags and plug-in main resources.
1567 * WebCoreSupport.subproj/WebBridge.m:
1568 (-[WebBridge startLoadingResource:withURL:customHeaders:]): Allow subresources to load with any URL, as above.
1569 This allows things like images, stylesheets, and JavaScript to be loaded without the "canLoadURL" method's
1571 (-[WebBridge startLoadingResource:withURL:customHeaders:postData:]): Ditto.
1572 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]): Ditto.
1574 2005-03-10 Richard Williamson <rjw@apple.com>
1576 Fixed <rdar://problem/4040321> Exception: Someone's trying to encode a WebDataRequestParameters instance
1580 If a delegate returns a mutated applewebdata: request in it's willSendRequest:
1581 method, we don't load using the WebDataRequest. Instead we do a normal load.
1582 Unfortunately, if the request they return is mutated *copy* of the applewebdata:
1583 request it will hold the applewebdata: special properties. These properties
1584 will be encoded into the cache. They should not be. So, to fix, we sanitize the
1585 request, by removing the special properties from the request.
1587 Note that we had to dig into the private guts of NSURLRequest because there is
1588 no public mechanism to remove properties from a request, see 4046775.
1590 * WebView.subproj/WebBaseResourceHandleDelegate.m:
1591 (-[WebBaseResourceHandleDelegate willSendRequest:redirectResponse:]):
1592 * WebView.subproj/WebDataProtocol.h:
1593 * WebView.subproj/WebDataProtocol.m:
1594 (-[NSURLRequest _webDataRequestExternalRequest]):
1595 (-[NSURLRequest _webDataRequestSanitize]):
1599 2005-03-10 Maciej Stachowiak <mjs@apple.com>
1603 <rdar://problem/4046510> REGRESSION (TOT): All Flash and Shockwave plugin-based web content missing
1605 * Plugins.subproj/WebNetscapePluginStream.m:
1606 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
1608 2005-03-10 John Sullivan <sullivan@apple.com>
1612 - fixed <rdar://problem/4045843> Going back/forward to error page
1613 hits assertion in -[WebDataSource(WebPrivate) _setData:]
1615 * WebView.subproj/WebDataSource.m:
1616 (-[WebDataSource _setData:]):
1617 Removed bogus assertion
1619 2005-03-09 Deborah Goldsmith <goldsmit@apple.com>
1623 - fixed <rdar://problem/3997044> default encoding for non-Latin incorrect
1625 * WebKit/WebView.subproj/WebPreferences.m: (+[WebPreferences _systemCFStringEncoding]):
1626 Call __CFStringGetUserDefaultEncoding to get region, and TECGetWebTextEncodings to get
1627 the first encoding to determine the default encoding.
1629 2005-03-09 Darin Adler <darin@apple.com>
1631 Reviewed by Richard.
1633 - fixed <rdar://problem/4034175> REGRESSION (Mail): Can't use any font with style Light/Condensed/Semibold/Extrabold, etc
1635 * WebView.subproj/WebHTMLView.m:
1636 (-[WebHTMLView _styleFromFontAttributes:]): Use a constant instead of hard-coded weight for clarity.
1637 (-[WebHTMLView _originalFontA]): Ditto.
1638 (-[WebHTMLView _originalFontB]): Ditto.
1639 (-[WebHTMLView _addToStyle:fontA:fontB:]): Add code to detect the case where the family name is not good enough
1640 to specify the font precisely. In that case, use the Postscript font name instead. Also change variable names
1641 so it's easier to understand the method.
1643 2005-03-06 Maciej Stachowiak <mjs@apple.com>
1647 <rdar://problem/4005575> Arbitrary file disclosure vulnerability due to ability to load local html from remote content
1649 * Plugins.subproj/WebBaseNetscapePluginView.m:
1650 (-[WebBaseNetscapePluginView requestWithURLCString:]):
1651 * Plugins.subproj/WebNetscapePluginEmbeddedView.m:
1652 (-[WebNetscapePluginEmbeddedView didStart]):
1653 * Plugins.subproj/WebNetscapePluginStream.m:
1654 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
1655 * WebCoreSupport.subproj/WebBridge.m:
1656 (-[WebBridge createWindowWithURL:frameName:]):
1657 (-[WebBridge startLoadingResource:withURL:customHeaders:]):
1658 (-[WebBridge startLoadingResource:withURL:customHeaders:postData:]):
1659 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
1660 (-[WebBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]):
1661 (-[WebBridge postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
1662 (-[WebBridge createChildFrameNamed:withURL:referrer:renderPart:allowsScrolling:marginWidth:marginHeight:]):
1663 (-[WebBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:]):
1664 * WebView.subproj/WebFrame.m:
1665 (-[WebFrame _loadURL:referrer:intoChild:]):
1666 * WebView.subproj/WebFramePrivate.h:
1668 2005-03-09 Richard Williamson <rjw@apple.com>
1670 Fixed <rdar://problem/4032938> Safari: text layout for MS P Gothic font is corrupted
1672 The AppKit and ATS reports that MS P Gothic is fixed pitch. It is
1673 not! This is another case of "fixed pitch" being wrong. I've
1674 coalesced all the special cases into our isFontFixedPitch:, and
1675 used a dictionary to improve speed. No performance regression.
1679 * WebCoreSupport.subproj/WebTextRenderer.m:
1680 (-[WebTextRenderer _computeWidthForSpace]):
1681 * WebCoreSupport.subproj/WebTextRendererFactory.m:
1682 (-[WebTextRendererFactory clearCaches]):
1683 (-[WebTextRendererFactory isFontFixedPitch:]):
1685 2005-03-09 Darin Adler <darin@apple.com>
1689 <rdar://problem/4040388> REGRESSION (172-173): nonrepro crash in -[NSString(WebNSURLExtras) _web_isUserVisibleURL]
1691 * Misc.subproj/WebNSURLExtras.m:
1692 (-[NSString _web_isUserVisibleURL]): Fixed some pointer expressions that didn't include the index in the expression.
1693 (readIDNScriptWhiteListFile): Removed NSLog statements in here since we decided they aren't useful and they will
1694 write some messages on Tiger.
1696 2005-03-09 Darin Adler <darin@apple.com>
1698 * DOM.subproj/DOMPrivate.h: Checked in file copied from WebCore.
1700 2005-03-08 Richard Williamson <rjw@apple.com>
1702 Fixed <rdar://problem/4036949> many JPEG images fail to incremental-load due to change in ImageIO JPEG header parsing (to be fixed in WebKit)
1703 Fixed <rdar://problem/4042570> Need to check image properties for presence of width/height properties
1705 ImageIO-55 changed how image properties are created. They
1706 are now created incrementally. So we need "re-get" the image
1707 properties if the properties we care about (width/height) aren't
1708 in the property dictionary.
1712 * WebCoreSupport.subproj/WebImageData.h:
1713 * WebCoreSupport.subproj/WebImageData.m:
1714 (-[WebImageData init]):
1715 (-[WebImageData fileProperties]):
1716 (-[WebImageData propertiesAtIndex:]):
1717 (-[WebImageData _isSizeAvailable]):
1718 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
1719 (-[WebImageData size]):
1721 2005-03-08 John Sullivan <sullivan@apple.com>
1723 A couple of tweaks to the previous patch, from Darin's review.
1725 * Misc.subproj/WebNSPasteboardExtras.m:
1726 (_writableTypesForImageWithoutArchive):
1727 remove unnecessary _web prefix
1728 (_writableTypesForImageWithArchive):
1730 (+[NSPasteboard _web_writableTypesForImageIncludingArchive:]):
1731 use mutableCopy rather than initWithArray:, and adjust for name changes
1733 2005-03-08 John Sullivan <sullivan@apple.com>
1737 - fixed <rdar://problem/4031826> REGRESSION (Mail): standalone images from
1738 Safari can't be pasted into Mail (WebKit part of fix)
1740 We were always declaring webarchive-related pasteboard types, even in the standalone
1741 image cases where we had no webarchive. Unfortunately, the WebView pasteboard-related
1742 API doesn't prevent this kind of thing from happening, because the code that
1743 declares the types isn't guaranteed to be anywhere near the code that writes
1744 the pasteboard data.
1746 After this fix, I discovered that pasting standalone images into Mail still doesn't
1747 work right, but the remaining issues seem to be entirely in Mail. I wrote up 4041671
1750 * Misc.subproj/WebNSPasteboardExtras.h:
1751 (+[NSPasteboard _web_writableTypesForImageIncludingArchive:]):
1752 Added boolean parameter; clients must specify whether or not there's an
1753 archive involved, because the array of types is different if there is.
1755 * Misc.subproj/WebNSPasteboardExtras.m:
1756 (_web_writableTypesForImageWithoutArchive):
1757 new static function, constructs (once) and returns the array of types
1758 for images that don't have archives
1759 (_web_writableTypesForImageWithArchive):
1760 new static function, constructs (once) and returns the array of types
1761 for images that do have archives
1762 (+[NSPasteboard _web_writableTypesForImageIncludingArchive:]):
1763 added boolean parameter, now calls one of the two new static functions
1765 (-[NSPasteboard _web_writeImage:URL:title:archive:types:]):
1766 added asserts that we aren't declaring the archive types if we don't have archive data
1768 (-[NSPasteboard _web_declareAndWriteDragImage:URL:title:archive:source:]):
1769 updated to pass parameter to _web_writableTypesForImageIncludingArchive:
1771 * WebView.subproj/WebDefaultContextMenuDelegate.m:
1772 (-[WebDefaultUIDelegate copyImageToClipboard:]):
1773 updated to pass parameter to _web_writableTypesForImageIncludingArchive:
1775 * WebView.subproj/WebImageView.m:
1776 (-[WebImageView copy:]):
1777 updated to pass parameter to _web_writableTypesForImageIncludingArchive:
1779 * WebView.subproj/WebView.m:
1780 (-[WebView pasteboardTypesForElement:]):
1781 updated to pass parameter to _web_writableTypesForImageIncludingArchive:
1783 2005-03-07 Richard Williamson <rjw@apple.com>
1785 More bullet proofing for <rdar://problem/4038304> CrashTracer: ....9 crashes at com.apple.WebKit: -[WebTextRenderer initWithFont:usingPrinterFont:] + 840
1787 Protect against removal of Times and Times New Roman from
1788 system. If these fonts are removed attempt to get system font
1789 instead of FATAL_ALWAYS.
1793 * WebCoreSupport.subproj/WebTextRenderer.m:
1794 (-[WebTextRenderer initWithFont:usingPrinterFont:]):
1798 2005-03-06 Darin Adler <darin@apple.com>
1800 - fixed obvious mistake in IDN script code (luckily it hasn't been in a submission yet!)
1802 * Misc.subproj/WebNSURLExtras.m: (readIDNScriptWhiteListFile): Use "index" to index into the array,
1803 not "script", which is the script number, not the 32-bit-word index.
1805 2005-03-05 Kevin Decker <kdecker@apple.com>
1809 Fixed: <rdar://problem/4038529> Infinite progress bar loading webcams and other sites that use multipart/x-mixed-replace
1811 The previous patch I landed prevented us from loading multipart/x-mixed-replace but did not always update the progress bar accordingly.
1812 This stops websites from having seemingly infinite progress in the browser UI.
1814 * WebCoreSupport.subproj/WebSubresourceClient.m:
1815 (-[WebSubresourceClient didReceiveResponse:]): If this is "multipart/x-mixed-replace", remove the WebBaseResourceHandleDelegate client from
1816 the datasource's subresource array, otherwise -[WebDataSource isLoading] incorrectly returns YES. Also it's possible at this point in
1817 time we're done loading now (loaded everything else except for the multipart/x-mixed-replace content) so go ahead and check to see if
1818 in fact we're complete.
1819 * WebView.subproj/WebMainResourceClient.m:
1820 (-[WebMainResourceClient connection:didReceiveResponse:]): ditto
1822 2005-03-05 Richard Williamson <rjw@apple.com>
1824 Fixed panther build problem. Shouldn't include
1825 changes for 3968753 on panther.
1829 * WebView.subproj/WebView.m:
1830 (-[WebView _commonInitializationWithFrameName:groupName:]):
1832 2005-03-05 Darin Adler <darin@apple.com>
1836 - fixed <rdar://problem/4034603> REGRESSION (185-188): RadarWeb can't send enclosures anymore
1838 * WebView.subproj/WebFormDataStream.m:
1839 (closeCurrentStream): Release currentData when closing the stream.
1840 (advanceCurrentStream): Set up and retain currentData when the current stream is reading that data, so the
1841 data won't be released while in use.
1842 (formCreate): Initialize currentData to NULL.
1844 - fixed <rdar://problem/4037562> Tiger8A402: Help Viewer crashed when viewing help for iChat (infinite recursion in WebView)
1846 * WebView.subproj/WebView.m: (-[WebView _responderValidateUserInterfaceItem:]):
1847 Check for the case where we ourselves are the responder. This avoids an infinite loop.
1848 The actual code to perform operations avoids this with a global variable, but this lighter weight
1849 solution is sufficient here because validate operations don't call through to the next responder.
1851 2005-03-04 Richard Williamson <rjw@apple.com>
1853 Fixed <rdar://problem/3968753> REGRESSION: Poor performance with differing multiple animated GIFs (was fast in Panther)
1855 Disable coalesced updates (in CG). This restores the
1858 Reviewed by David Harrison.
1860 * WebView.subproj/WebView.m:
1861 (-[WebView _commonInitializationWithFrameName:groupName:]):
1863 2005-03-04 Adele Amchan <adele@apple.com>
1867 * English.lproj/StringsNotToBeLocalized.txt: added new strings "text/x-vcf" and "text/x-csv" to the list
1869 2005-03-04 Adele Amchan <adele@apple.com>
1873 Fix for <rdar://problem/4032982> Sun iPlanet app: not able to import AddressBook CSV format addresses properly
1874 Fix for <rdar://problem/4032985> Sun iPlanet app: not able to import vCard format addresses properly
1876 * WebView.subproj/WebTextView.m:
1877 (+[WebTextView unsupportedTextMIMETypes]): added "text/x-csv" and "text/x-vcf" to the list of MIME types that our text view doesn't handle
1879 2005-03-04 Darin Adler <darin@apple.com>
1883 - fixed <rdar://problem/4036817> REGRESSION: ctrl-y broken when a line + carriage return cut
1885 * WebView.subproj/WebHTMLView.m:
1886 (-[WebHTMLView _deleteRange:killRing:prepend:smartDeleteOK:deletionAction:]): Merged _handleKillRing behavior
1887 into this function, since there's now a more-complicated way the startNewKillRingSequence boolean needs to
1888 be handled. Set the startNewKillRingSequence boolean after the entire process so changing the selection before
1889 and during the editing dosn't clear it. Also change "isTypingAction" parameter to "deletionAction" so we can
1890 handle forward delete with this method.
1891 (-[WebHTMLView _deleteSelection]): Pass deleteSelectionAction for action rather than NO for isTypingAction,
1892 which is the way to say the same thing using the new parameter.
1893 (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]): Refactor to use the _deleteRange
1894 method above. Also calls _shouldDeleteRange: for the pre-existing selection case; not doing that before was
1896 (-[WebHTMLView deleteToMark:]): Pass deleteSelectionAction for action rather than NO for isTypingAction,
1897 which is the way to say the same thing using the new parameter.
1899 2005-03-04 Darin Adler <darin@apple.com>
1903 - fixed <rdar://problem/4020413> REGRESSION (Mail): can't use fonts with names that start with "#" in Mail (Korean fonts)
1905 * WebView.subproj/WebHTMLView.m:
1906 (-[WebHTMLView _styleFromFontAttributes:]): Quote font name when calling setFontFamily.
1907 (-[WebHTMLView _addToStyle:fontA:fontB:]): Ditto.
1909 2005-03-04 Darin Adler <darin@apple.com>
1913 - fixed <rdar://problem/3965666> IDN spoofing vulnerability caused by Unicode characters that look like ASCII characters
1915 * Misc.subproj/WebNSURLExtras.m:
1916 (readIDNScriptWhiteListFile): Added. Reads file and parses script names.
1917 (readIDNScriptWhiteList): Added. Calls readIDNScriptWhiteList on each of the white list locations in succession.
1918 (allCharactersInIDNScriptWhiteList): Renamed from containsPossibleLatinLookalikes and changed sense.
1919 Now calls readIDNScriptWhiteList first time, and then uses the read-in list to check the scripts.
1920 (-[NSString _web_mapHostNameWithRange:encode:makeString:]): Call allCharactersInIDNScriptWhiteList instead of
1921 containsPossibleLatinLookalikes.
1922 * Resources/IDNScriptWhiteList.txt: Added.
1923 * WebKit.pbproj/project.pbxproj: Added IDNScriptWhiteList.txt file.
1925 * Misc.subproj/WebKitLocalizableStrings.m: Removed. This is simply unused.
1926 * English.lproj/StringsNotToBeLocalized.txt: Updated for recent changes.
1928 2005-03-04 Darin Adler <darin@apple.com>
1932 - fixed <rdar://problem/3937667> REGRESSION (Mail): Zooming a window from titlebar button doesn't paint newly-exposed portions of window
1934 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView _recursiveDisplayAllDirtyWithLockFocus:visRect:]):
1935 Re-set-up the visRect if the bounds changes due to layout.
1939 2005-03-03 Jens Alfke <jens@apple.com>
1943 <rdar://problem/3991818> REGRESSION: Images scale while loading
1944 The code could crop an image when not all the scanlines were available yet, and it could crop when only a sub-rect of the image was to be drawn; but if it had to do both at once, it got the coordinates wrong. Fixed that.
1946 * WebCoreSupport.subproj/WebImageData.m:
1947 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
1949 2005-03-01 David Hyatt <hyatt@apple.com>
1951 Fix for 3841186, scrollbar shows up disabled when it should not appear at all. Make sure updateScrollers
1952 is never allowed to be re-entrant from any call point by moving the guard inside the function itself.
1954 Reviewed by John Sullivan
1956 * WebView.subproj/WebDynamicScrollBarsView.m:
1957 (-[WebDynamicScrollBarsView updateScrollers]):
1958 (-[WebDynamicScrollBarsView reflectScrolledClipView:]):
1960 2005-03-02 Chris Blumenberg <cblu@apple.com>
1962 Fixed: <rdar://problem/4029010> Expose method to retrieve drag image for WebView's selection
1964 Reviewed by sullivan.
1966 * WebView.subproj/WebHTMLView.m:
1967 (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]): call _selectionDraggingImage
1968 (-[WebHTMLView _selectionDraggingImage]): new SPI for Mail, factored from previous method
1969 (-[WebHTMLView _selectionDraggingRect]): new SPI for Mail
1970 * WebView.subproj/WebHTMLViewPrivate.h:
1972 2005-03-02 John Sullivan <sullivan@apple.com>
1976 - fixed <rdar://problem/4023337> Safari stops loading any page (-[NSCFDictionary setObject:forKey:]:
1977 attempt to insert nil key)
1979 It is very likely that the exception being hit is caused by the same problem as WebFoundation
1980 bug 4018486. This change makes the code robust against this kind of problem regardless.
1982 * WebView.subproj/WebBaseResourceHandleDelegate.m:
1983 (-[WebBaseResourceHandleDelegate saveResource]):
1984 Don't call addSubresource if newly-created resource is nil (but do assert on debug builds).
1985 Also assert that originalURL and MIMEType are not nil.
1987 * WebView.subproj/WebDataSource.m:
1988 (-[WebDataSource addSubresource:]):
1989 Don't add nil subresource to dictionary, but do assert on debug builds.
1993 2005-03-01 John Sullivan <sullivan@apple.com>
1997 - fixed <rdar://problem/3987482> Format>Style>Italic is not enabled when a
1998 compose window is empty (works in Blot)
2000 * WebView.subproj/WebHTMLView.m:
2001 (-[WebHTMLView becomeFirstResponder]):
2002 call _updateFontPanel here so NSFontManager knows the right font for the menu
2003 items and the font panel
2005 2005-03-01 David Harrison <harrison@apple.com>
2009 <rdar://problem/3915560> Mail would like an SPI to enable "smart" text paste/drop
2011 * WebView.subproj/WebHTMLView.m:
2012 (-[WebHTMLView _smartDeleteRangeForProposedRange:]):
2013 (-[WebHTMLView _smartInsertForString:replacingRange:beforeString:afterString:]):
2016 2005-02-28 John Sullivan <sullivan@apple.com>
2020 - WebKit part of fix for <rdar://problem/4023490> REGRESSION (125-185): Tabbing through links
2021 on frameset page gets stuck at end (tivofaq.com)
2023 This tab-to-links stuff has been in shaky condition ever since AppKit futzed with
2024 tabbing behavior in Tiger to add support for including the toolbar in the key loop.
2025 I made some changes months ago to compensate for that, but some cases, such as this
2026 one, still weren't fixed.
2028 * WebCoreSupport.subproj/WebBridge.m:
2029 (-[WebBridge _nextKeyViewOutsideWebFrameViewsWithValidityCheck:]):
2030 new bottleneck method, extracted from nextKeyViewOutsideWebFrameViews; handles
2031 nextKeyView or nextValidKeyView depending on parameter.
2032 (-[WebBridge nextKeyViewOutsideWebFrameViews]):
2033 now calls extracted method
2034 (-[WebBridge nextValidKeyViewOutsideWebFrameViews]):
2035 new method, calls new bottleneck method
2037 * WebView.subproj/WebHTMLView.m:
2038 (-[WebHTMLView nextValidKeyView]):
2039 when we're stuck at the end of a nextKeyView chain inside a nexted frame, use
2040 nextValidKeyViewOutsideWebFrameViews. Make sure we don't end up looking inside
2041 the web frame views while doing this.
2043 2005-02-25 Darin Adler <darin@apple.com>
2047 - fixed <rdar://problem/4025088> window onblur and onfocus don't fire when text field has focus
2049 * WebView.subproj/WebHTMLView.m:
2050 (-[WebHTMLView updateFocusState]): Renamed from updateFocusDisplay. Added call to setWindowHasFocus: method.
2051 (-[WebHTMLView viewDidMoveToWindow]): Call method by new name.
2052 (-[WebHTMLView windowDidBecomeKey:]): Ditto.
2053 (-[WebHTMLView windowDidResignKey:]): Ditto.
2054 (-[WebHTMLView becomeFirstResponder]): Ditto.
2055 (-[WebHTMLView resignFirstResponder]): Ditto.
2059 2005-02-25 Richard Williamson <rjw@apple.com>
2061 Fixed <rdar://problem/4000962> 8A375: Help Viewer displays voiced sound and semi-voiced characters strangely (characters don't seem to be composed)
2063 Added special case for voiced marks.
2067 * WebCoreSupport.subproj/WebTextRenderer.m:
2068 (widthForNextCharacter):
2070 2005-02-25 Darin Adler <darin@apple.com>
2074 - fixed <rdar://problem/4019823> Seed: Control-Y doesn't work
2076 * WebView.subproj/WebHTMLView.m:
2077 (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]): Call _handleKillRing
2078 after setting the selection, since it uses the selection to get the text.
2079 (-[WebHTMLView _insertText:selectInsertedText:]): Check for empty string to avoid an assertion
2080 on the other side of the bridge when you yank the empty string.
2082 2005-02-24 Richard Williamson <rjw@apple.com>
2084 Fixed <rdar://problem/3382926> Bidi neutrals at RTL/LTR boundaries not handled correctly.
2086 If directionality is specified use that as initial directionality,
2087 rather than neutral directionality.
2091 * WebCoreSupport.subproj/WebTextRenderer.m:
2092 (widthForNextCharacter):
2094 2005-02-24 Adele Amchan <adele@apple.com>
2098 Fix for <rdar://problem/4023393> Safari crashed in khtml::RenderObject::repaintAfterLayoutIfNeeded(QRect const&, QRect const&)
2100 We were crashing after hitting PageDown when viewing a pdf because
2101 WebKit was calling over to WebCore to scroll overflow areas.
2102 Since this only needs to be done if we're dealing with a WebHTMLView,
2103 I added a wrapper function to check the documentView before calling
2106 * WebView.subproj/WebFrameView.m:
2107 (-[WebFrameView _scrollOverflowInDirection:granularity:]): added wrapper function that checks if documentView is a WebHTMLView
2108 (-[WebFrameView scrollToBeginningOfDocument:]): uses new wrapper function now
2109 (-[WebFrameView scrollToEndOfDocument:]): uses new wrapper function now
2110 (-[WebFrameView _pageVertically:]): uses new wrapper function now
2111 (-[WebFrameView _pageHorizontally:]): uses new wrapper function now
2112 (-[WebFrameView _scrollLineVertically:]): uses new wrapper function now
2113 (-[WebFrameView _scrollLineHorizontally:]): uses new wrapper function now
2115 2005-02-24 Richard Williamson <rjw@apple.com>
2117 Fixed <rdar://problem/3985889> REGRESSION (125-180): setting <img> src to GIF that already animated does not animate; just shows final frame
2121 * WebCoreSupport.subproj/WebImageData.h:
2122 * WebCoreSupport.subproj/WebImageData.m:
2123 (-[WebImageData resetAnimation]):
2124 * WebCoreSupport.subproj/WebImageRenderer.m:
2125 (-[WebImageRenderer resetAnimation]):
2126 (-[WebInternalImage resetAnimation]):
2127 (-[WebImageRenderer drawImageInRect:fromRect:compositeOperator:context:]):
2129 2005-02-24 Kevin Decker <kdecker@apple.com>
2133 Fixed <rdar://problem/3962401> Don't load multipart/x-mixed-replace content to prevent memory leak
2135 Since we're not going to fix <rdar://problem/3087535> for Tiger, we should not load multipart/x-mixed-replace content. Pages with such content contain what is essentially an infinite load and therefore may leak.
2137 * WebView.subproj/WebMainResourceClient.m:
2138 (-[WebMainResourceClient connection:didReceiveResponse:]): Disabled loading of multipart/x-mixed-replace content until we fully implement server side push.
2139 * WebCoreSupport.subproj/WebSubresourceClient.m:
2140 (-[WebSubresourceClient didReceiveResponse:]): Ditto. Same exact thing for sub resources.
2143 2005-02-23 John Sullivan <sullivan@apple.com>
2147 - fixed <rdar://problem/4021370> REGRESSION (Tiger): WebKit part of fix for
2148 shift-tab on tivofaq doing the wrong thing
2150 * WebView.subproj/WebFrameView.m:
2151 (-[WebFrameView becomeFirstResponder]):
2152 If our previousValidKeyView is nil or self (same as nil modulo AppKit oddness),
2153 look out of the box and get the previousValidKeyView of our webview.
2155 2005-02-23 Darin Adler <darin@apple.com>
2159 - fixed <rdar://problem/4010196> REGRESSION (125-186+): 8-character timestamps in gmail wrap to 2 lines (width:8ex; font-size:80%)
2161 * WebCoreSupport.subproj/WebTextRenderer.m: (-[WebTextRenderer xHeight]): Return the maximum
2162 of the "x" height and width. Comment in the code explains why in more detail.
2164 2005-02-22 Richard Williamson <rjw@apple.com>
2166 Fixed <rdar://problem/3937203> when a div adds a scrollbar (overflow:auto) we do not get regions
2168 Compare regions after automatice scroll regions have been
2173 * WebCoreSupport.subproj/WebBridge.h:
2174 * WebCoreSupport.subproj/WebBridge.m:
2175 (-[WebBridge dealloc]):
2176 (-[WebBridge _compareDashboardRegions:]):
2177 (-[WebBridge dashboardRegionsChanged:]):
2179 2005-02-22 Richard Williamson <rjw@apple.com>
2181 Fixed <rdar://problem/4012463> Dashboard widgets don't work with authenticating proxies
2183 Added new SPI for dashboard that just calls default delegate
2188 * WebView.subproj/WebView.m:
2189 (-[WebView handleAuthenticationForResource:challenge:fromDataSource:]):
2190 * WebView.subproj/WebViewPrivate.h:
2192 2005-02-22 Chris Blumenberg <cblu@apple.com>
2196 * WebCoreSupport.subproj/WebBridge.m:
2197 (-[WebBridge issuePasteAndMatchStyleCommand]): support for new "PasteAndMatchStyle" exec command
2201 2005-02-21 David Harrison <harrison@apple.com>
2205 <rdar://problem/3943090> REGRESSION (Mail): Spelling underline incompletely erased following certain steps
2207 * WebCoreSupport.subproj/WebTextRenderer.m:
2208 (-[WebTextRenderer misspellingLineThickness]):
2209 (-[WebTextRenderer misspellingLinePatternWidth]):
2210 Replaced #defines with these methods, so others can get the same info.
2212 (-[WebTextRenderer drawLineForMisspelling:withWidth:]):
2213 Keep underline within originally specified bounds.
2216 2005-02-21 Darin Adler <darin@apple.com>
2220 - fixed <rdar://problem/4016358> don't ever display IDN URLs with characters from "possible Latin look-alike" scripts
2222 * Misc.subproj/WebNSURLExtras.m:
2223 (containsPossibleLatinLookalikes): Added.
2224 (-[NSString _web_mapHostNameWithRange:encode:makeString:]): Call containsPossibleLatinLookalikes, and if true,
2225 don't decode the host name.
2227 2005-02-19 Kevin Decker <kdecker@apple.com>
2231 Fixed <rdar://problem/4010765> Flash player can be used to arbitrarily open popup windows without user permission
2233 Our window.open() policy is to refuse the <script>window.open(...)</script> case and allow the inline the <a href="javascript:window.open('foo')> case. Clever advertisers at some point realized that by executing their Javascript through the Flash plugin, Safari would always treat their code as the inline case, and thus, they were able to work around our popup blocker.
2235 * Plugins.subproj/WebBaseNetscapePluginView.h: Addded currentEventIsUserGesture boolean ivar.
2236 * Plugins.subproj/WebBaseNetscapePluginView.m:
2237 (-[WebBaseNetscapePluginView sendEvent:]): If at any point the user clicks or presses a key from within a plugin, set the currentEventIsUserGesture flag to true. This is important to differentiate legitimate window.open() calls originating from plugins; we still want to allow those.
2238 (-[WebBaseNetscapePluginView initWithFrame:]): In our asynchronous load, pass along currentEventIsUserGesture to the PluginRequest.
2239 (-[WebBaseNetscapePluginView evaluateJavaScriptPluginRequest:]): Inform WebCore if this was a user originated gesture when calling executeScript().
2240 (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]):
2241 (-[WebPluginRequest initWithRequest:frameName:notifyData:sendNotification:didStartFromUserGesture:]):
2242 (-[WebPluginRequest isCurrentEventUserGesture]): Added.
2244 2005-02-18 Chris Blumenberg <cblu@apple.com>
2246 Fixed: <rdar://problem/3945271> REGRESSION (Mail): pasted plain text should pick up typing style instead of being unstyled
2248 Reviewed by kocienda.
2250 * WebView.subproj/WebDataSource.m:
2251 (-[WebDataSource _replaceSelectionWithArchive:selectReplacement:]): pass NO for matchStyle to replaceSelection
2252 * WebView.subproj/WebHTMLView.m:
2253 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:chosePlainText:]): return new chosePlainText parameter
2254 (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]): pass chosePlainText for matchStyle to replaceSelection
2255 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): ditto
2257 2005-02-17 Richard Williamson <rjw@apple.com>
2259 Removed code that should not have been checked in from
2262 * WebCoreSupport.subproj/WebTextRendererFactory.m:
2263 (-[WebTextRendererFactory isFontFixedPitch:]):
2265 2005-02-17 Richard Williamson <rjw@apple.com>
2267 Fixed <rdar://problem/3999467> when Osaka-Mono is specified as fixed width font, Osaka used instead
2269 Fixed w/o introducing a performance regression.
2271 Reviewed by Vicki (and earlier by Dave Harrison).
2273 * WebCoreSupport.subproj/WebTextRenderer.m:
2274 (-[WebTextRenderer _computeWidthForSpace]):
2275 (widthForNextCharacter):
2276 * WebCoreSupport.subproj/WebTextRendererFactory.h:
2277 * WebCoreSupport.subproj/WebTextRendererFactory.m:
2278 (-[NSFont _web_isFakeFixedPitch]):
2279 (-[WebTextRendererFactory isFontFixedPitch:]):
2280 (-[WebTextRendererFactory fontWithFamily:traits:size:]):
2282 2005-02-17 Richard Williamson <rjw@apple.com>
2284 Fixed <rdar://problem/3959304> PDF in img tag is not rendered correctly anymore
2286 We were incorrectly adding image position when flipping coordinates.
2288 Reviewed by David Harrison.
2290 * WebCoreSupport.subproj/WebImageData.m:
2291 (-[WebImageData _PDFDrawFromRect:toRect:operation:alpha:flipped:context:]):
2293 2005-02-17 Richard Williamson <rjw@apple.com>
2295 Fixed <rdar://problem/4007262> Seed: Flight tracker scrolling moves to the left
2297 Added SPI for dashboard to disable wheel scrolling of the WebClipView.
2302 * WebView.subproj/WebClipView.m:
2303 (-[WebClipView _focusRingVisibleRect]):
2304 (-[WebClipView scrollWheel:]):
2305 * WebView.subproj/WebView.m:
2306 (-[WebViewPrivate init]):
2307 (-[WebView drawRect:]):
2308 (-[WebView _dashboardBehavior:]):
2309 * WebView.subproj/WebViewInternal.h:
2310 * WebView.subproj/WebViewPrivate.h:
2314 2005-02-17 Vicki Murley <vicki@apple.com>
2316 - roll out this change, since it causes a 1.5% performance regression
2318 2005-02-15 Richard Williamson <rjw@apple.com>
2320 Fixed <rdar://problem/3999467> when Osaka-Mono is specified as fixed width font, Osaka used instead
2322 Lie about Osaka-Mono. Treat it as fixed pitch, even though,
2323 strictly speaking it isn't. (Similar to what we do with
2326 Reviewed by David Harrison.
2328 * WebCoreSupport.subproj/WebTextRenderer.m:
2329 (-[WebTextRenderer _computeWidthForSpace]):
2330 * WebCoreSupport.subproj/WebTextRendererFactory.h:
2331 * WebCoreSupport.subproj/WebTextRendererFactory.m:
2332 (-[NSFont _web_isFakeFixedPitch]):
2333 (-[WebTextRendererFactory isFontFixedPitch:]):
2334 (-[WebTextRendererFactory fontWithFamily:traits:size:]):
2336 2005-02-17 John Sullivan <sullivan@apple.com>
2340 - fixed <rdar://problem/3997185> The Web view on .Mac Prefs caused System Prefs
2341 to lockup (resolved by re-boot only)
2343 * WebCoreSupport.subproj/WebBridge.m:
2344 (-[WebBridge nextKeyViewOutsideWebFrameViews]):
2345 Don't allow recursion here; assert on debug build, return nil on deployment. I
2346 couldn't get my machine into a state to repro this problem (and neither could the
2347 originator), but it's obvious from the stack crawl that this method was recursing
2348 when it shouldn't have.
2350 2005-02-16 John Sullivan <sullivan@apple.com>
2352 Written by Darin, reviewed by me.
2354 - WebKit part of fix for <rdar://problem/4007384>
2355 FILTER: Bookmark of RSS with Japanese search word & multiple RSS pages loses filter
2357 * DOM.subproj/DOMPrivate.h:
2358 updated this file, which is a copy of the WebCore version
2360 2005-02-16 Richard Williamson <rjw@apple.com>
2362 Fixed <rdar://problem/3966973> Tiger 8A357: Binary Compatiblity: frequent Webstractor.app crashes [WebImageData _nextFrame]
2364 Webstractor.app was playing tricks to create thumbnails of
2365 pages. This caused the 'focusView' to be incorrect during
2366 animated GIF frame rendering.
2370 * WebCoreSupport.subproj/WebImageRenderer.m:
2371 (-[WebImageRenderer _startOrContinueAnimationIfNecessary]):
2373 2005-02-16 Vicki Murley <vicki@apple.com>
2375 Reviewed by me, code change by Darin.
2377 - fixed the build on Panther
2379 * WebView.subproj/WebFormDataStream.m: (webSetHTTPBody):
2380 Added a Panther-specific code path that just loads all the data into one big
2381 NSData object. This means that bug 3686434 won't be fixed on SUPanWheat; we'll
2382 still load the file into memory before sending it to the server on Panther.
2384 2005-02-15 Richard Williamson <rjw@apple.com>
2386 Fixed <rdar://problem/3998368> Tiger8A376: WebTextRenderer assertion failure in Safari while browsing news.bbc.co.uk
2388 Removed use of FATAL_ALWAYS from getUncachedWidth(). It's unclear
2389 why we would trigger the FATAL_ALWAYS. In the past we've seen
2390 the message triggered because of corrupt fonts. Anyway, in this
2391 particular case, we will now return 0 for the character width,
2392 rather than exiting.
2394 Reviewed by David Harrison.
2396 * WebCoreSupport.subproj/WebTextRenderer.m:
2399 2005-02-15 Richard Williamson <rjw@apple.com>
2401 Fixed <rdar://problem/3999467> when Osaka-Mono is specified as fixed width font, Osaka used instead
2403 Lie about Osaka-Mono. Treat it as fixed pitch, even though,
2404 strictly speaking it isn't. (Similar to what we do with
2407 Reviewed by David Harrison.
2409 * WebCoreSupport.subproj/WebTextRenderer.m:
2410 (-[WebTextRenderer _computeWidthForSpace]):
2411 * WebCoreSupport.subproj/WebTextRendererFactory.h:
2412 * WebCoreSupport.subproj/WebTextRendererFactory.m:
2413 (-[NSFont _web_isFakeFixedPitch]):
2414 (-[WebTextRendererFactory isFontFixedPitch:]):
2415 (-[WebTextRendererFactory fontWithFamily:traits:size:]):
2417 2005-02-14 Darin Adler <darin@apple.com>
2421 - fixed <rdar://problem/3686434> Safari uses too much RAM on file upload, leading to malloc errors and crashes (HP printers)
2423 * WebView.subproj/WebFormDataStream.h: Added webSetHTTPBody, which creates and connects an appropriate
2424 stream to an NSMutableURLRequest.
2425 * WebView.subproj/WebFormDataStream.m: Added implementation here.
2427 * WebCoreSupport.subproj/WebBridge.m:
2428 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
2430 * WebCoreSupport.subproj/WebSubresourceClient.m:
2431 (+[WebSubresourceClient startLoadingResource:withURL:customHeaders:postData:referrer:forDataSource:]):
2433 * WebView.subproj/WebFrame.m:
2434 (-[WebFrame _loadItem:withLoadType:]): Use webSetHTTPBody.
2435 (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]): Ditto.
2437 * English.lproj/StringsNotToBeLocalized.txt: Updated for this change and other recent changes.
2439 2005-02-11 Richard Williamson <rjw@apple.com>
2441 Fixed <rdar://problem/4002505> 8A378: Endlessly animating gif's on http://www.entropy.ch
2443 If animated images had no loop count property we were incorrectly
2444 looping forver. Note, that in the course of fixing this bug
2445 I found that ImageIO is incorrectly NOT reporting the loop count
2446 for a whole class of animated GIFs.
2448 Reviewed by Ken Kocienda.
2450 * WebCoreSupport.subproj/WebImageData.m:
2451 (-[WebImageData _repetitionCount]):
2455 2005-02-11 Vicki Murley <vicki@apple.com>
2459 - fix deployment build on Panther
2461 * WebView.subproj/WebHTMLView.m:
2462 (-[WebHTMLView changeBaseWritingDirection:]): ifdef out NSWritingDirectionNatural
2463 (-[WebHTMLView toggleBaseWritingDirection:]): fix a spacing issue
2465 2005-02-10 David Harrison <harrison@apple.com>
2467 Reviewed by Richard.
2469 <rdar://problem/3991652> REGRESSION (Mail): Deleting entire line in reply deletes extra blank line and moves insertion point
2471 * WebView.subproj/WebHTMLView.m:
2472 (-[WebHTMLView _deleteRange:killRing:prepend:smartDeleteOK:isTypingAction:]):
2473 (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
2474 (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]):
2475 (-[WebHTMLView selectToMark:]):
2476 (-[WebHTMLView swapWithMark:]):
2477 (-[WebHTMLView transpose:]):
2478 (-[WebHTMLView _selectMarkedText]):
2479 (-[WebHTMLView _selectRangeInMarkedText:]):
2480 Adopt new default affinity of NSSelectionAffinityDownstream as of <rdar://problem/3937447>.
2482 2005-02-10 Darin Adler <darin@apple.com>
2484 Reviewed by Harrison.
2486 - fixed <rdar://problem/4002084> Setting ResourceLoadDelegate to nil can cause a crash
2488 * WebView.subproj/WebView.m: (-[WebView _cacheResourceLoadDelegateImplementations]):
2489 Set booleans to either YES or NO, rather than setting them only in the YES case.
2491 2005-02-10 Darin Adler <darin@apple.com>
2493 Reviewed by Harrison.
2495 - fixed <rdar://problem/3991225> Format->Style->Underline menu item does not get checked when selected text is underlined
2497 * WebView.subproj/WebHTMLView.m:
2498 (-[WebHTMLView validateUserInterfaceItem:]): Added tons of additional cases in here for all the
2499 "action" style methods in this class that don't always want to be valid. For the ones where state
2500 makes sense, added the state-checking code too for the menu item case.
2501 (-[WebHTMLView ignoreSpelling:]): Removed unnecessary "editable text only" check since this command
2502 would work fine on a non-editable selection.
2503 (-[WebHTMLView swapWithMark:]): Ditto.
2504 (-[WebHTMLView changeBaseWritingDirection:]): Added. Like toggle, but based on the sender's tag.
2506 2005-02-08 Darin Adler <darin@apple.com>
2508 "Reviewed" by Richard (he told me the file was obsolete).
2510 - got rid of an obsolete file
2512 * Plugins.subproj/npsap.h: Removed.
2513 * copy-webcore-files-to-webkit: Removed npsap.h.
2515 2005-02-09 Richard Williamson <rjw@apple.com>
2517 Fixed <rdar://problem/4000073> non-screen font error on www.worldofwarcraft.com
2519 Reviewed by John Sullivan.
2521 * WebCoreSupport.subproj/WebTextRenderer.m:
2522 (-[WebTextRenderer _smallCapsFont]):
2526 2005-02-07 Chris Blumenberg <cblu@apple.com>
2528 Fixed: <rdar://problem/3993354> Safari claims to put RTFD on the pasteboard, but doesn't, in some cases
2532 * WebView.subproj/WebHTMLView.m:
2533 (-[WebHTMLView _stripAttachmentCharactersFromAttributedString:]): moved
2534 (-[WebHTMLView _writeSelectionWithPasteboardTypes:toPasteboard:cachedAttributedString:]): take cachedAttributedString parameter in case the attributed string was gotten already
2535 (-[WebHTMLView _writeSelectionToPasteboard:]): omit RTFD from the types list when there are no attachments
2537 2005-02-07 David Harrison <harrison@apple.com>
2541 <rdar://problem/3990693> REGRESSION (8A373): ctrl-k now deletes just one character instead of line
2543 * WebView.subproj/WebHTMLView.m:
2544 (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]):
2545 Set the selection so that deleteKeyPressedWithSmartDelete knows what to delete.
2547 2005-02-06 Darin Adler <darin@apple.com>
2551 - fixed <rdar://problem/3963166> PDFView SPI print method is being deprecated, moving to PDFDocument; please update WebKit
2553 * WebView.subproj/WebPDFView.m: (-[WebPDFView printOperationWithPrintInfo:]): Target the document instead of the view.
2555 * English.lproj/StringsNotToBeLocalized.txt: Updated for recent changes and also moved one translation to be a file-specific
2556 item rather than a file-independent one.
2558 2005-02-05 Chris Blumenberg <cblu@apple.com>
2560 Fixed: <rdar://problem/3991974> REGRESSION: www.jabra.com world location screen does not work
2564 * WebCoreSupport.subproj/WebBridge.m:
2565 (-[WebBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:]): use the baseURL from the bridge rather than from the response
2567 2005-02-04 Chris Blumenberg <cblu@apple.com>
2569 Fixed: <rdar://problem/3802781> rtf->html pasteboard conversion using xhtml
2571 Reviewed by kocienda.
2573 * WebView.subproj/WebHTMLView.m:
2574 (+[WebHTMLView _excludedElementsForAttributedStringConversion]): new
2575 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]): call _excludedElementsForAttributedStringConversion
2577 2005-02-04 Chris Blumenberg <cblu@apple.com>
2579 Fixed: <rdar://problem/3832973> copy text from PowerPoint, paste into Blot (or presumably Mail) and get a single missing image icon
2583 * WebView.subproj/WebHTMLView.m:
2584 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]): prefer RTF and RTFD over images just as NSTextView does
2586 2005-02-03 Chris Blumenberg <cblu@apple.com>
2588 Fixed: <rdar://problem/3555137> REGRESSION (125-173): Flash animation can erase parts of chrome (bookmarks bar & tab bar)
2590 convertRect:toView: returns incorrect results inside of viewWillMoveToWindow: with a nil window. Workaround this by catching this case.
2594 * Plugins.subproj/WebBaseNetscapePluginView.m:
2595 (-[WebBaseNetscapePluginView superviewsHaveSuperviews]): new
2596 (-[WebBaseNetscapePluginView saveAndSetPortStateForUpdate:]): clip out the plug-in view when superviewsHaveSuperviews returns NO
2598 2005-02-03 Chris Blumenberg <cblu@apple.com>
2600 Fixed: <rdar://problem/3893513> Sun iPlanet app: when saving to a file it brings up a window with the thing to be saved instead
2604 * WebView.subproj/WebTextView.m:
2605 (+[WebTextView unsupportedTextMIMETypes]): added "text/ldif" to the list of MIME types that our text view doesn't handle
2609 2005-02-03 Chris Blumenberg <cblu@apple.com>
2611 * English.lproj/StringsNotToBeLocalized.txt: updated
2613 2005-02-03 Chris Blumenberg <cblu@apple.com>
2615 Fixed: <rdar://problem/3989611> Evite style "add vCalendar to calendar" do not work
2619 * WebView.subproj/WebTextView.m:
2620 (+[WebTextView unsupportedTextMIMETypes]): added "text/x-vcalendar" to the list of MIME types our text view doesn't handle
2622 2005-02-03 Vicki Murley <vicki@apple.com>
2626 - fix deployment build breakage on Panther
2628 * WebView.subproj/WebHTMLView.m:
2629 (-[WebHTMLView toggleBaseWritingDirection:]):
2631 2005-02-02 John Sullivan <sullivan@apple.com>
2635 - WebKit part of fix for <rdar://problem/3980651> REGRESSION (125-180): Huge number of pages printed from certain page,
2638 This also fixes the problems with printing from GMail, yay!
2640 * WebView.subproj/WebHTMLView.m:
2641 (-[WebHTMLView _setPrinting:minimumPageWidth:maximumPageWidth:adjustViewSize:]):
2642 Don't adjust margins for header/footer here, because this is called for each subframe.
2643 (-[WebHTMLView knowsPageRange:]):
2644 Do adjust margins for header/footer here (analogous to WebTextView and WebImageView).
2645 Also, round the page height to an integer here (noticed in passing).
2647 2005-02-02 Chris Blumenberg <cblu@apple.com>
2649 Fixed: <rdar://problem/3986546> Cut, delete, and paste menu items are active when a image is opened in window
2653 * WebView.subproj/WebView.m:
2654 (-[WebView _responderValidateUserInterfaceItem:]): new, has the responder validate the item
2655 (-[WebView validateUserInterfaceItem:]): call VALIDATE for each repsonder selector using FOR_EACH_RESPONDER_SELECTOR macro
2656 (-[WebView _performResponderOperation:with:]): call factored out method _responderForResponderOperations
2657 (-[WebView _responderForResponderOperations]): new, code from _performResponderOperation:with:
2659 2005-02-02 Chris Blumenberg <cblu@apple.com>
2661 Fixed: <rdar://problem/3983628> control-click on WebView is not selecting the word under the cursor (Mail, non-editable WebView)
2665 * WebCoreSupport.subproj/WebBridge.m:
2666 (-[WebBridge selectWordBeforeMenuEvent]): new
2667 * WebView.subproj/WebView.m:
2668 (-[WebView _selectWordBeforeMenuEvent]): new SPI
2669 (-[WebView _setSelectWordBeforeMenuEvent:]): new SPI
2670 * WebView.subproj/WebViewInternal.h:
2671 * WebView.subproj/WebViewPrivate.h:
2673 2005-02-02 Chris Blumenberg <cblu@apple.com>
2675 Fixed: <rdar://problem/3986013> Assertion failure going back after page load error (no apparent problem in nondebug build)
2679 * WebView.subproj/WebDataSource.m:
2680 (-[WebDataSource _setPrimaryLoadComplete:]): don't set the data source data when the main client is nil
2682 2005-02-02 Ken Kocienda <kocienda@apple.com>
2688 <rdar://problem/3823109> WebKit should support -toggleBaseWritingDirection: (bidi editing support)
2690 * WebView.subproj/WebHTMLView.m:
2691 (-[WebHTMLView _applyParagraphStyleToSelection:withUndoAction:]): New function that calls through to
2692 new feature that allows callers to force all properties in a style to be applied as block styles.
2693 (-[WebHTMLView _alignSelectionUsingCSSValue:withUndoAction:]): Removed FIXME comment for something that has been fixed.
2694 (-[WebHTMLView toggleBaseWritingDirection:]): Implemented.
2696 2005-02-01 Richard Williamson <rjw@apple.com>
2698 Fixed <rdar://problem/3977727> WebKit should use new SPI to support faster GIF rendering
2700 Note: This REQUIRES build >= 3A362 when building on Tiger.
2704 * WebCoreSupport.subproj/WebImageData.m:
2705 (-[WebImageData _imageSourceOptions]):
2709 2005-02-01 Richard Williamson <rjw@apple.com>
2711 Added new SPI for <rdar://problem/3967063> need spi on WebView to turn of lcd text for Dashboard
2715 * WebCoreSupport.subproj/WebTextRenderer.m:
2717 * WebView.subproj/WebView.m:
2718 (-[WebView drawRect:]):
2719 (-[WebView _dashboardBehavior:]):
2720 (+[WebView _setShouldUseFontSmoothing:]):
2721 (+[WebView _shouldUseFontSmoothing]):
2722 * WebView.subproj/WebViewInternal.h:
2723 * WebView.subproj/WebViewPrivate.h:
2725 2005-01-31 Chris Blumenberg <cblu@apple.com>
2727 Fixed: <rdar://problem/3949806> REGRESSION: Source window fails to refresh correctly on reload
2729 The data method was being called on WebDataSource before the data was set. This fix makes WebDataSource set the data before releasing the main client instead of waiting for the main client to set it when it is dealloced.
2733 * WebView.subproj/WebDataSource.m:
2734 (-[WebDataSource _setData:]): moved within file
2735 (-[WebDataSource _setPrimaryLoadComplete:]): call _setData: with the data from the main client before letting go of the main client
2736 * WebView.subproj/WebDataSourcePrivate.h:
2737 * WebView.subproj/WebMainResourceClient.m:
2738 (-[WebMainResourceClient releaseResources]): removed call to _setData: since the data source may need the data before releaseResources is called
2740 2005-01-31 Chris Blumenberg <cblu@apple.com>
2742 Fixed: <rdar://problem/3946285> Seed: Safari crashed by selecting all at internet-moebel.com
2746 * WebView.subproj/WebHTMLView.m:
2747 (-[WebHTMLView _hitViewForEvent:]): new, factored hit test hack to this method
2748 (-[WebHTMLView _updateMouseoverWithEvent:): call _hitViewForEvent:
2749 (-[WebHTMLView acceptsFirstMouse:]): call _setMouseDownEvent: and _isSelectionEvent: on the hit HTMLView or else when it's asked to drag it will assert
2750 (-[WebHTMLView shouldDelayWindowOrderingForEvent:]): ditto
2752 2005-01-31 David Harrison <harrison@apple.com>
2756 <rdar://problem/3961239> AX Setting AXFocused on AXScrollArea of AXWebArea will cause keyboard selection change
2758 * WebView.subproj/WebHTMLView.m:
2759 (-[WebHTMLView maintainsInactiveSelection]):
2760 Keep the selection when the new first respomder is our own scrollview, in both editable and non-editaqble content.
2762 2005-01-31 Jens Alfke <jens@apple.com>
2766 - Fixed <rdar://problem/3903199> REGRESSION: Large background patterns slide around while loading
2768 * WebCoreSupport.subproj/WebImageData.m:
2770 (-[WebImageData tileInRect:fromPoint:context:]):
2772 2005-01-30 Darin Adler <darin@apple.com>
2776 - fixed <rdar://problem/3965265> Safari displays HTML as source when default encoding is Hebrew (due to direction overrides added by encoding converter)
2778 * WebView.subproj/WebPreferencesPrivate.h: Added _systemCFStringEncoding, and changed
2779 _setInitialDefaultTextEncodingToSystemEncoding to be a class method.
2780 * WebView.subproj/WebPreferences.m:
2781 (+[WebPreferences _systemCFStringEncoding]): Added. New SPI to be used by Safari. Broken out of
2782 _setInitialDefaultTextEncodingToSystemEncoding, but also added cases for MacArabic and MacHebrew.
2783 (+[WebPreferences _setInitialDefaultTextEncodingToSystemEncoding]): Refactor to use _systemCFStringEncoding.
2785 2005-01-28 Jens Alfke <jens@apple.com>
2787 Reviewed by Richard.
2789 <rdar://problem/3727680> printing some page with WebKit generates a PDF with a 1x1 image with soft mask (causes Acrobat to hang during print spooling)
2791 Detect 1x1 images, extract and cache color of single pixel, reduce draw and tile operations to a color fill (or to a no-op if the pixel is clear.)
2793 * WebCoreSupport.subproj/WebImageData.h:
2794 * WebCoreSupport.subproj/WebImageData.m:
2795 (-[WebImageData _invalidateImages]):
2796 (-[WebImageData _checkSolidColor:]):
2797 (-[WebImageData _cacheImages:allImages:]):
2798 (-[WebImageData _fillSolidColorInRect:compositeOperation:context:]):
2799 (-[WebImageData tileInRect:fromPoint:context:]):
2801 2005-01-28 David Harrison <harrison@apple.com>
2805 <rdar://problem/3584942> AX: Safari Accessibility parent-child mismatch
2807 Use AppKit SPI _accessibilityParentForSubview to return KWQAccObject parent of AppKit AX object.
2809 * WebView.subproj/WebHTMLView.m:
2810 (-[WebHTMLView _accessibilityParentForSubview:]):
2813 2005-01-28 Chris Blumenberg <cblu@apple.com>
2815 WebKit side of: <rdar://problem/3951283> can view pages from the back/forward cache that should be disallowed by Parental Controls
2819 * WebView.subproj/WebDefaultPolicyDelegate.m:
2820 (-[WebDefaultPolicyDelegate webView:shouldGoToHistoryItem:]): new private delegate method
2821 * WebView.subproj/WebFrame.m:
2822 (-[WebFrame _goToItem:withLoadType:]): call new delegate method
2823 * WebView.subproj/WebPolicyDelegatePrivate.h:
2825 2005-01-26 Maciej Stachowiak <mjs@apple.com>
2827 Reviewed by Darin, Hyatt and Ken.
2829 <rdar://problem/3790449> REGRESSION (Mail): underline behavior is flaky because of how CSS handles text-decoration
2831 * WebView.subproj/WebHTMLView.m:
2832 (-[WebHTMLView _styleFromFontAttributes:]): Use new -khtml-text-decorations-in-effect
2834 (-[WebHTMLView _styleForAttributeChange:]): likewise
2835 (-[WebHTMLView underline:]): likewise
2837 2005-01-27 Ken Kocienda <kocienda@apple.com>
2841 * WebView.subproj/WebHTMLView.m:
2842 (-[WebHTMLView _handleKillRing:prepend:]): New helper function. Code factored out from
2843 _deleteRange:killRing:prepend:smartDeleteOK:isTypingAction:.
2844 (-[WebHTMLView _deleteRange:killRing:prepend:smartDeleteOK:isTypingAction:]): No longer takes
2845 unused preflight argument. Now takes new isTypingAction argument. Uses isTypingAction to
2846 determine which flavor of delete command to call.
2847 (-[WebHTMLView _deleteSelection]): No longer passes unused preflight argument. Now passes new isTypingAction argument.
2848 (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]): Rearranged code to call
2849 correct flavor of delete command, based on whether typing should be preserved. Some other cleanups.
2850 (-[WebHTMLView deleteForward:]): Add _isEditable check.
2851 (-[WebHTMLView deleteBackward:]): Now calls _deleteWithDirection instead of having unique behavior different
2852 from forward delete.
2853 (-[WebHTMLView deleteWordForward:]): Add new isTypingAction flag to _deleteWithDirection call.
2854 (-[WebHTMLView deleteWordBackward:]): Ditto.
2855 (-[WebHTMLView deleteToBeginningOfLine:]): Ditto.
2856 (-[WebHTMLView deleteToEndOfLine:]): Ditto.
2857 (-[WebHTMLView deleteToBeginningOfParagraph:]): Ditto.
2858 (-[WebHTMLView deleteToEndOfParagraph:]): Ditto.
2859 (-[WebHTMLView deleteToMark:]): Ditto.
2863 2005-01-27 Chris Blumenberg <cblu@apple.com>
2865 Fixed: <rdar://problem/3973272> REGRESSION: Safari uses QT plugin to display PNG images
2869 * Plugins.subproj/WebBasePluginPackage.m: use renamed QT bundle ID
2871 2005-01-26 Darin Adler <darin@apple.com>
2875 - fixed <rdar://problem/3829517> WebView still draws white when setDrawsBackground set to NO and no content loaded yet
2877 * WebView.subproj/WebFrameView.m: (-[WebFrameView drawRect:]): Check drawsBackground, and don't
2878 draw the white "no document" background if it's NO. This fixes things for frames with no document.
2879 * WebView.subproj/WebImageView.m: (-[WebImageView drawRect:]): Same as above. This fixes things
2880 for frames with just an image.
2881 * WebView.subproj/WebFrame.m: (-[WebFrame _updateDrawsBackground]): Call setDrawsBackground: on the
2882 document view if it implements it. This fixes things for frames with plain text.
2884 2005-01-25 John Sullivan <sullivan@apple.com>
2888 - WebKit part of fix for: <rdar://problem/3970670> Text context menu
2889 in WebKit needs "Look Up in Dictionary" item
2891 * WebView.subproj/WebDefaultContextMenuDelegate.m:
2892 (localizedMenuTitleFromAppKit):
2893 return English string in the case where AppKit bundle is found but doesn't
2894 contain the expected string. This case will be hit by people testing with
2896 (-[WebDefaultUIDelegate menuItemWithTag:]):
2897 create Look Up in Dictionary item
2898 (-[WebDefaultUIDelegate contextMenuItemsForElement:]):
2899 add Look Up in Dictionary item and separator
2900 (-[WebDefaultUIDelegate editingContextMenuItemsForElement:]):
2903 * WebView.subproj/WebHTMLView.m:
2904 (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
2905 new method, handles bringing up the Dictionary window. Includes FIXMEs
2906 for a couple of the known loose ends.
2907 (-[WebHTMLView validateUserInterfaceItem:]):
2908 handle Look Up in Dictionary item like the other new items
2910 * WebView.subproj/WebUIDelegatePrivate.h:
2911 added SPI constant for Look Up in Dictionary menu item
2913 2005-01-24 Maciej Stachowiak <mjs@apple.com>
2915 Fixed Panther build (missing ifdef)
2917 * WebView.subproj/WebDefaultContextMenuDelegate.m:
2919 2005-01-24 John Sullivan <sullivan@apple.com>
2923 - WebKit part of fix for <rdar://problem/3960231> Text context menu in WebKit needs Spotlight and Google items
2925 * WebView.subproj/WebDefaultContextMenuDelegate.m:
2926 (localizedMenuTitleFromAppKit):
2927 new function, gets localized string from AppKit so we can avoid adding localized
2928 strings to WebKit at this late date in Tiger. Returns the non-localized English
2929 string if we can't find the localized string in AppKit.
2930 (-[WebDefaultUIDelegate menuItemWithTag:]):
2931 handle the two new menu items by tag name
2932 (-[WebDefaultUIDelegate contextMenuItemsForElement:]):
2933 add menu items for Search in Google and Search in Spotlight to selected-text menu item
2934 for the noneditable case
2935 (-[WebDefaultUIDelegate editingContextMenuItemsForElement:]):
2936 add menu items for Search in Google and Search in Spotlight to selected-text menu item
2937 for the editable case
2939 * WebView.subproj/WebHTMLView.m:
2940 (-[WebHTMLView _searchWithGoogleFromMenu:]):
2941 implement this menu item action method, using same method name and implementation as NSTextView
2942 (-[WebHTMLView _searchWithSpotlightFromMenu:]):
2943 implement this menu item action method, using same basic implementation as NSTextView
2944 (-[WebHTMLView validateUserInterfaceItem:]):
2945 validate new menu items
2947 * WebView.subproj/WebUIDelegatePrivate.h:
2948 define new tags for new menu items
2950 * English.lproj/StringsNotToBeLocalized.txt:
2951 updated for these changes
2953 2005-01-24 Darin Adler <darin@apple.com>
2955 * WebView.subproj/WebDataSource.m: (+[WebDataSource _repTypesAllowImageTypeOmission:]):
2956 Do the same check as for view types, so the representation types are consistent.
2958 2005-01-24 Darin Adler <darin@apple.com>
2962 - fixed <rdar://problem/3791158> REGRESSION (Mail): copyFont: and pasteFont: copy and paste only the NSFont, not other attributes
2964 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView _styleFromFontAttributes:]): Added the last
2965 few loose ends here: strikethrough and underline.
2967 - fixed <rdar://problem/3967393> add a user default that lets you turn off WebKit PDF support
2969 * WebView.subproj/WebFrameView.m: (+[WebFrameView _viewTypesAllowImageTypeOmission:]):
2970 Leave the PDF-handling classes out of the dictionary if the secret default is set.
2972 * English.lproj/StringsNotToBeLocalized.txt: Updated for recent changes.
2974 2005-01-20 Darin Adler <darin@apple.com>
2976 Reviewed by Kristin Forster.
2978 - fixed <rdar://problem/3964972> update _initWithCGSEvent:eventRef: call in mouse moved workaround (breaks cursors in Carbon WebKit applications)
2980 * Carbon.subproj/HIWebView.m: (MouseMoved): Instead of munging the event record's window number directly
2981 before calling _initWithCGSEvent, on Tiger we call _eventRelativeToWindow on the event after creating it.
2982 Also added a check so that with Macromedia Contribute's workaround in place we don't do anything at all
2983 to the event. Tested with both Contribute and CarbonWeb.
2985 * English.lproj/StringsNotToBeLocalized.txt: Update for recent changes.
2987 2005-01-20 Richard Williamson <rjw@apple.com>
2989 Fixed <rdar://problem/3815672> REGRESSION (Mail): Japanese text cannot be made bold
2991 The AppKit's font substitution API doesn't match font traits!
2992 It only find fonts that contain the appropriate glyphs. This
2993 patch attempts to find the best variation within a family.
2997 * WebCoreSupport.subproj/WebTextRenderer.m:
2998 (-[WebTextRenderer _substituteFontForString:families:]):
3002 2005-01-20 Ken Kocienda <kocienda@apple.com>
3008 <rdar://problem/3786659> REGRESSION (Mail): editable WebViews don't work with "size up" and "size down" NSFontManager changes
3010 * WebView.subproj/WebHTMLView.m:
3011 (-[WebHTMLView _addToStyle:fontA:fontB:]): This is the WebKit side of the fix. Replaced unimplemented code blocks
3012 with FIXME's in them for make bigger and make smaller with real working code.
3014 2005-01-19 David Hyatt <hyatt@apple.com>
3016 Fix for 3513067, spaces being lost when RTL text is rendered. Make sure not to allow hangers or spaces
3021 * WebCoreSupport.subproj/WebTextRenderer.m:
3022 (-[WebTextRenderer _createATSUTextLayoutForRun:style:]):
3024 2005-01-19 Darin Adler <darin@apple.com>
3028 - fixed <rdar://problem/3962559> stopAnimationsInView leaks after cvs-base
3030 * WebCoreSupport.subproj/WebImageData.m: (+[WebImageData stopAnimationsInView:]): add a release
3032 2005-01-19 Chris Blumenberg <cblu@apple.com>
3034 Fixed: <rdar://problem/3961809> plug-in code attempts to load empty URL
3038 * Plugins.subproj/WebNetscapePluginEmbeddedView.m:
3039 (-[WebNetscapePluginEmbeddedView didStart]): don't start load if URL is empty
3041 2005-01-17 Darin Adler <darin@apple.com>
3043 * DOM.subproj/DOMPrivate.h: Check in generated file.
3045 2005-01-17 Darin Adler <darin@apple.com>
3047 Reviewed by John and Richard.
3049 - fixed <rdar://problem/3907453> printing a multi-page PDF document from Safari doesn't produce correct output
3051 * WebView.subproj/WebFrameViewPrivate.h: Added.
3052 * WebView.subproj/WebFrameView.m:
3053 (-[WebFrameView canPrintHeadersAndFooters]): Added. Returnes NO for documents that can't print headers or footers,
3054 and delegates to the document view to answer the question. Defaults to NO, since only a view that actively does
3055 the work is compatible with our header and footer code.
3056 (-[WebFrameView printOperationWithPrintInfo:]): Added. Returns an NSPrintOperation set up for printing. The reason
3057 we return this rather than an NSView is that in the PDFView case, the print info is changed around before creating
3058 the NSPrintOperation, and also the PDFKit SPI works this way.
3060 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView canPrintHeadersAndFooters]): Added. Returns YES.
3061 * WebView.subproj/WebImageView.m: (-[WebImageView canPrintHeadersAndFooters]): Ditto.
3062 * WebView.subproj/WebTextView.m: (-[WebTextView canPrintHeadersAndFooters]): Ditto.
3064 * WebView.subproj/WebPDFView.m:
3065 (-[WebPDFView canPrintHeadersAndFooters]): Added. Returns NO.
3066 (-[WebPDFView printOperationWithPrintInfo:]): Added. Calls getPrintOperationForPrintInfo: autoRotate:YES on the PDFView.
3068 * WebKit.pbproj/project.pbxproj: Added WebFrameViewPrivate.h as a new private header.
3070 2005-01-13 Chris Blumenberg <cblu@apple.com>
3072 Fixed: <rdar://problem/3932107> Safari does not load QT Cocoa plug-in if the WebPluginMIMETypes key is not in the info.plist
3074 Fixing this bug required that we allow WebKit plug-ins (as well as Netscape plug-ins) support BP_CreatePluginMIMETypesPreferences
3075 which allows plug-ins create an auxiliary MIME types file.
3079 * Plugins.subproj/WebBasePluginPackage.h:
3080 * Plugins.subproj/WebBasePluginPackage.m:
3081 (+[WebBasePluginPackage preferredLocalizationName]): moved from WebNetscapePluginPackage
3082 (-[WebBasePluginPackage pListForPath:createFile:]): ditto
3083 (-[WebBasePluginPackage getPluginInfoFromPLists]): ditto
3084 (-[WebBasePluginPackage isLoaded]): return isLoaded ivar
3085 (-[WebBasePluginPackage load]): if loaded, get BP_CreatePluginMIMETypesPreferences symbol
3086 * Plugins.subproj/WebNetscapePluginPackage.h:
3087 * Plugins.subproj/WebNetscapePluginPackage.m:
3088 (-[WebNetscapePluginPackage load]): call super when done so BP_CreatePluginMIMETypesPreferences can be initialized
3089 * Plugins.subproj/WebPluginPackage.m:
3090 (-[WebPluginPackage initWithPath:]): call getPluginInfoFromPLists
3091 (-[WebPluginPackage load]): call super when done so BP_CreatePluginMIMETypesPreferences can be initialized
3093 2005-01-13 Richard Williamson <rjw@apple.com>
3095 Fixed <rdar://problem/3952809> WebJavaPlugIn.h comments need method name corrected (webPlugInCallJava)
3099 * Plugins.subproj/WebJavaPlugIn.h:
3103 2005-01-13 Vicki Murley <vicki@apple.com>
3107 - fix <rdar://problem/3946836> Safari about box lists 2004 instead of 2005
3109 * WebKit.pbproj/project.pbxproj: bump "2004" to "2005"
3111 2005-01-13 Richard Williamson <rjw@apple.com>
3113 Fixed <rdar://problem/3951911> REGRESSION: Animated GIF images with loop counts no longer update
3115 Draw last image after animation loop terminates. (We
3116 were drawing the image at index+1, which doesn't exist!)
3120 * WebCoreSupport.subproj/WebImageData.m:
3121 (-[WebImageData _nextFrame:]):
3123 2005-01-13 Richard Williamson <rjw@apple.com>
3125 Fixed <rdar://problem/3952084> REGRESSION: Links at projectseven.com now draw and update incorrectly during hover
3127 Turn off use of new CGContextStrokeLineSegments API. We should
3128 turn back on when 3952944 is fixed.
3132 * WebCoreSupport.subproj/WebTextRenderer.m:
3133 (-[WebTextRenderer drawLineForCharacters:yOffset:width:color:thickness:]):
3135 2005-01-13 Chris Blumenberg <cblu@apple.com>
3137 Fixed: <rdar://problem/3937663> repro assertion failure and crash dragging image that has PDF source
3141 * Misc.subproj/WebNSViewExtras.m:
3142 (-[NSView _web_dragImage:rect:event:pasteboard:source:offset:]): if [WebImageRenderer image] returns nil, fallback to code that uses a file icon as the drag image
3143 * WebCoreSupport.subproj/WebImageRendererFactory.m:
3144 (-[WebImageRendererFactory supportedMIMETypes]): removed code that omits PDF and PostScript from the list since this omission is only needed in WebImageView
3145 * WebView.subproj/WebImageView.m:
3146 (+[WebImageView supportedImageMIMETypes]): added code that omits PDF and PostScript since we don't want WebImageView to render these types
3148 2005-01-10 Maciej Stachowiak <mjs@apple.com>
3152 <rdar://problem/3758033> REGRESSION (Mail): Support attributes in marked text (International input)
3154 * WebCoreSupport.subproj/WebTextRenderer.m:
3155 (-[WebTextRenderer drawLineForCharacters:yOffset:width:color:thickness:]): Changed to support
3156 underline thickness. Also added a bit of a hack here to move thickness 2 underlines down by
3157 .5 pixels, since the rendering engine can't give a fractional pixel offset.
3158 * WebView.subproj/WebHTMLView.m:
3159 (-[WebHTMLView validAttributesForMarkedText]): Support underline, underline color and marked
3160 clause attributes. Others that NSText supports are unimplemented for now.
3161 (-[WebHTMLView firstRectForCharacterRange:]): Remove needless logging.
3162 (-[WebHTMLView unmarkText]): Updated for new WebCore SPI.
3163 (-[WebHTMLView _extractAttributes:ranges:fromAttributedString:]): New method to pull the attributes
3164 and ranges out of an attributed string.
3165 (-[WebHTMLView setMarkedText:selectedRange:]): Extract attributes and pass to WebCore.
3166 (-[WebHTMLView insertText:]): Add comment noting that we don't really handle attributed strings
3169 2005-01-12 Darin Adler <darin@apple.com>
3173 - fixed <rdar://problem/3848257> WebView will draw more than AppKit asks it to, so views behind won't redraw enough (transparent WebView)
3175 * WebView.subproj/WebHTMLView.m:
3176 (-[WebHTMLView _propagateDirtyRectsToOpaqueAncestors]): As recommended by Troy Stephens, do the
3177 layouts here in this call, since it's before propagating the dirty rects to our ancestors.
3178 This fixes the bug, but we only do it if the WebView is not opaque, because otherwise we can
3179 optimize by only doing layouts you really need, and doing them later on is safe because we
3180 know we don't need to draw any of the views behind us.
3181 (-[WebHTMLView _layoutIfNeeded]): Added. Factored out from the method below.
3182 (-[WebHTMLView _web_layoutIfNeededRecursive]): Added. Like the other "layout if needed" call,
3184 (-[WebHTMLView _web_layoutIfNeededRecursive:testDirtyRect:]): Factored out the guts into the
3185 _layoutIfNeeded method above. Otherwise unchanged.
3186 (-[NSView _web_layoutIfNeededRecursive]): Added.
3188 * WebView.subproj/WebFrame.m: (-[WebFrame _updateDrawsBackground]): Call setDrawsBackground:NO
3189 on the scroll view when changing the frame to no longer be in "draws background" mode. This
3190 is needed because the frame manages the "draws background" mode of the scroll view. It won't
3191 have any effect if you call setDrawsBackground:NO before starting to use a WebView, but without
3192 it calling setDrawsBackground:NO later won't have an immediate effect (easily visible in Safari).
3193 This was hidden before because the HTML view was filling with transparent color, which blew away
3194 the fill that was done by NSScrollView.
3196 - fixed <rdar://problem/3921129> reproducible crash at www.funnychristmas.com in CFSet manipulation in WebImageData
3198 * WebCoreSupport.subproj/WebImageData.m:
3199 (-[WebImageData _imageSourceOptions]): Changed types so we don't need a cast.
3200 (+[WebImageData stopAnimationsInView:]): Instead of building a set of sets, by putting in the sets with addObject,
3201 build a single set using unionSet, and then iterate the objects instead of having to iterate the sets and then the
3202 objects in each set. The old code ended up sharing the sets with the live code, when the whole idea was to gather
3203 all the renderers because the process of stopping modifies the active sets.
3205 2005-01-12 Richard Williamson <rjw@apple.com>
3207 Fixed <rdar://problem/3926825> Safari ignores GIF loop count
3209 Get loop count from file properties, not image properties.
3211 Reviewed by Ken Kocienda.
3213 * WebCoreSupport.subproj/WebImageData.h:
3214 * WebCoreSupport.subproj/WebImageData.m:
3215 (-[WebImageData _commonTermination]):
3216 (-[WebImageData fileProperties]):
3217 (-[WebImageData _floatProperty:type:at:]):
3218 (-[WebImageData _floatFileProperty:type:]):
3219 (-[WebImageData _repetitionCount]):
3221 2005-01-11 Chris Blumenberg <cblu@apple.com>
3223 Fixed: <rdar://problem/3934749> assertion failure in WebBaseNetscapePluginView loading movie
3227 * Plugins.subproj/WebBaseNetscapePluginView.m:
3228 (-[WebBaseNetscapePluginView start]): call canStart before asserting about the webView
3230 2005-01-11 John Sullivan <sullivan@apple.com>
3234 - fixed <rdar://problem/3446838> REGRESSION (Mail): text decorations don't print
3235 (e.g. <strike>, underline)
3237 * WebCoreSupport.subproj/WebTextRenderer.m:
3238 (-[WebTextRenderer drawLineForCharacters:yOffset:withWidth:withColor:]):
3239 This bottleneck routine for drawing a line was setting the linewidth to 0 when
3240 the graphics context was not drawing to the screen. Thus, no lines. Now links
3241 are underlined when printing from Safari (as well as Mail).
3243 2005-01-11 Richard Williamson <rjw@apple.com>
3245 Fixed 3949145. CG has a much faster API for drawing lines.
3246 Switched over to that new API (CGContextStrokeLineSegments).
3248 Reviewed by John Sullivan.
3250 * WebCoreSupport.subproj/WebTextRenderer.m:
3251 (-[WebTextRenderer drawLineForCharacters:yOffset:withWidth:withColor:]):
3253 2005-01-10 Chris Blumenberg <cblu@apple.com>
3255 Fixed: <rdar://problem/3948862> REGRESSION: missing images when RTFD is pasted into editable WebView
3257 This problem occurred because we were creating image elements before creating corresponding image resources. The fix is to have AppKit call us back to create the resources before it creates the elements.
3261 * WebView.subproj/WebHTMLView.m:
3262 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]): don't deal with subresources since that's now done by the following method
3263 (-[WebHTMLView resourceForData:preferredFilename:]): new handler method called by AppKit
3267 2005-01-06 David Harrison <harrison@apple.com>
3269 Reviewed by Dave Hyatt
3271 <rdar://problem/3588548> AX: tabbing does not work correctly with the screen reader and a focused link; need AXFocusedUIElement to work.
3273 * WebView.subproj/WebHTMLView.m:
3274 (-[WebHTMLView accessibilityFocusedUIElement]):
3275 Implement this so that AppKit can use it from NSAccessibilityHandleFocusChanged.
3277 2005-01-05 Chris Blumenberg <cblu@apple.com>
3279 Fixed: <rdar://problem/3936865> REGRESSION: canvas.drawImage no longer scales properly
3283 * WebCoreSupport.subproj/WebImageData.m: use the height of the inRect instead of the fromRect when setting the origin of the context
3285 2005-01-04 Chris Blumenberg <cblu@apple.com>
3287 Fixed: <rdar://problem/3928329> WebKit should pass nil for "language" to checkSpellingOfString:
3289 Reviewed by kocienda.
3291 * WebView.subproj/WebHTMLView.m:
3292 (-[WebHTMLView _isSelectionMisspelled]): pass nil not @"" for language
3294 2004-12-21 Maciej Stachowiak <mjs@apple.com>
3298 <rdar://problem/3888931> frame naming allows malicious site to bring up a window when you click on a link in another
3300 Implement a security check on name frame visbility. This is the
3301 same rule as mozilla. You can only target frames by name if you
3302 are in the same window, have the same domain as the frame or an
3303 ancestor, or if it's a top level window have the same domain as
3306 * WebView.subproj/WebFrame.m:
3307 (-[WebFrame _shouldAllowAccessFrom:]):
3308 (-[WebFrame _descendantFrameNamed:sourceFrame:]):
3309 (-[WebFrame findFrameNamed:]):
3310 * WebView.subproj/WebFramePrivate.h:
3311 * WebView.subproj/WebView.m:
3312 (-[WebView _findFrameInThisWindowNamed:sourceFrame:]):
3313 (-[WebView _findFrameNamed:sourceFrame:]):
3314 * WebView.subproj/WebViewPrivate.h:
3320 2004-12-20 Richard Williamson <rjw@apple.com>
3322 Add call to new API. ImageIO deprecated some older (although
3323 quite new!) API. This caused us to fail to build on 337 or later.
3325 Developers wanting to build on older versions of Tiger must define
3326 USE_DEPRECATED_IMAGESOURCE_API in WebImageData.m.
3330 * WebCoreSupport.subproj/WebImageData.m:
3331 (-[WebImageData propertiesAtIndex:]):
3333 2004-12-20 Richard Williamson <rjw@apple.com>
3335 Don't call Tiger SPI on Panther.
3339 * WebCoreSupport.subproj/WebTextRendererFactory.m:
3340 (+[WebTextRendererFactory createSharedFactory]):
3342 2004-12-20 Richard Williamson <rjw@apple.com>
3344 Fixed <rdar://problem/3884448> WebKit should turn on CG local font cache
3346 Enable mutli-tier font caching. We should see a performance boost with this
3351 * WebCoreSupport.subproj/WebTextRendererFactory.m:
3352 (+[WebTextRendererFactory createSharedFactory]):
3354 2004-12-20 Richard Williamson <rjw@apple.com>
3356 Fix image decoding to separately decode image meta data from actual image bits. I
3357 incorrectly consolidated decode of meta data and image bits resulting in a huge
3358 performance regression.
3360 Double size of WebCore cache on lower end machines. On the PLT run on machines with
3361 256MB of memory, too many images were being evicted, causing a re-decode on the PLT.
3362 Upping the lower limit of the cache size ensure that no images are evicted (this
3363 goes hand-in-hand with the change to the minimum object size from 32K to 40K).
3367 * WebCoreSupport.subproj/WebImageData.h:
3368 * WebCoreSupport.subproj/WebImageData.m:
3369 (+[WebImageData initialize]):
3370 (-[WebImageData _commonTermination]):
3371 (-[WebImageData _invalidateImages]):
3372 (-[WebImageData _invalidateImageProperties]):
3373 (-[WebImageData imageAtIndex:]):
3374 (-[WebImageData propertiesAtIndex:]):
3375 (-[WebImageData _cacheImages:allImages:]):
3376 (-[WebImageData decodeData:isComplete:callback:]):
3377 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
3378 * WebView.subproj/WebPreferences.m:
3379 (+[WebPreferences initialize]):
3381 2004-12-20 Richard Williamson <rjw@apple.com>
3383 Fixed build problem caused by change to ImageIO API.
3387 * WebCoreSupport.subproj/WebImageData.m:
3389 2004-12-19 Darin Adler <darin@apple.com>
3393 - some garbage collection fixes
3395 * Misc.subproj/WebNSObjectExtras.h: (WebCFAutorelease): Replaced the old WebNSRetainCFRelease with this
3396 much-easier-to-understand function cribbed from what David Harrison did in WebCore.
3398 * Misc.subproj/WebKitNSStringExtras.m: (+[NSString _web_encodingForResource:]): Use CFRelease here to
3399 get rid of an unnecessary use of WebNSRetainCFRelease.
3400 * Misc.subproj/WebNSURLExtras.m:
3401 (+[NSURL _web_URLWithData:relativeToURL:]): Use WebCFAutorelease instead of WebNSRetainCFRelease and autorelease.
3402 (-[NSURL _web_URLWithLowercasedScheme]): Ditto.
3403 (-[NSString _web_mapHostNameWithRange:encode:makeString:]): Use WebCFAutorelease here; the old code would not
3404 work correctly under GC.
3405 * Plugins.subproj/WebNetscapePluginPackage.m: (+[WebNetscapePluginPackage preferredLocalizationName]):
3406 Use WebCFAutorelease here; the old code would not work correctly under GC.
3408 2004-12-18 Chris Blumenberg <cblu@apple.com>
3410 Fixed: <rdar://problem/3766915> PDF content needs search to work
3412 Reviewed by kevin, john.
3414 * WebView.subproj/WebPDFView.m:
3415 (-[WebPDFView searchFor:direction:caseSensitive:wrap:]): implemented
3416 (-[WebPDFView takeFindStringFromSelection:]): new
3417 (-[WebPDFView jumpToSelection:]): new
3418 (-[WebPDFView validateUserInterfaceItem:]): new
3420 2004-12-17 Richard Williamson <rjw@apple.com>
3422 Make image decoding as lazy as possible for non threaded case; in some cases
3423 can avoid unnecessary decoding work.
3427 * WebCoreSupport.subproj/WebImageData.h:
3428 * WebCoreSupport.subproj/WebImageData.m:
3429 (-[WebImageData imageAtIndex:]):
3430 (-[WebImageData propertiesAtIndex:]):
3431 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
3433 2004-12-16 John Sullivan <sullivan@apple.com>
3437 One of the assertions from my previous checkin fired, so
3438 I made this code more robust.
3440 * WebCoreSupport.subproj/WebBridge.m:
3441 (-[WebBridge _preferences]):
3442 new helper method, returns global preferences if webView is nil,
3443 otherwise returns webView's preferences
3444 (-[WebBridge getObjectCacheSize]):
3445 use new helper method, remove now-unnecessary assert
3446 (-[WebBridge _retrieveKeyboardUIModeFromPreferences:]):
3449 2004-12-16 John Sullivan <sullivan@apple.com>
3453 - fixed <rdar://problem/3913523> Mail needs SPI for adding tooltips to links
3454 - cleaned up some calls to +[WebPreferences standardPreferences] that should
3455 have been using -[WebView preferences]
3457 This adds a (currently SPI-only) new feature that shows the URL of the link
3458 under the mouse in a toolTip. I tested this in Safari, but we're adding this
3459 feature for Mail, and Safari won't use it (unless of course you know the
3460 magic defaults command)
3462 * Plugins.subproj/WebBaseNetscapePluginView.m:
3463 (-[WebBaseNetscapePluginView start]):
3464 use -[WebView preferences] instead of +[WebPreferences standardPreferences]
3466 * WebCoreSupport.subproj/WebBridge.m:
3467 (-[WebBridge getObjectCacheSize]):
3469 (-[WebBridge _retrieveKeyboardUIModeFromPreferences:]):
3472 * WebView.subproj/WebBaseResourceHandleDelegate.m:
3473 (-[WebBaseResourceHandleDelegate willCacheResponse:]):
3476 * WebView.subproj/WebFrame.m:
3477 (-[WebFrame _transitionToCommitted:]):
3479 (-[WebFrame _loadItem:withLoadType:]):
3482 * WebView.subproj/WebHTMLViewInternal.h:
3483 private struct now keeps ivar for cached value of showsURLsInToolTips
3484 so it doesn't have look it up in preferences a zillion times
3486 * WebView.subproj/WebHTMLView.m:
3487 (-[WebHTMLView _updateMouseoverWithEvent:]):
3488 if private->showsURLsInToolTips is true, set the toolTip from the URL.
3489 Fall back to showing the title attribute in case some element has a title
3490 attribute but no URL.
3491 (-[WebHTMLView _mayStartDragAtEventLocation:]):
3492 use -[WebView preferences] instead of +[WebPreferences standardPreferences]
3493 (-[WebHTMLView _resetCachedWebPreferences:]):
3494 get a fresh value for private->showsURLsInToolTips
3495 (-[WebHTMLView initWithFrame:]):
3496 call _resetCachedWebPreferences the first time, and listen for WebPreferencesChanged notifications
3497 (-[WebHTMLView _handleStyleKeyEquivalent:]):
3498 use -[WebView preferences] instead of +[WebPreferences standardPreferences]
3500 * WebView.subproj/WebPreferenceKeysPrivate.h:
3501 added WebKitShowsURLsInToolTipsPreferenceKey
3503 * WebView.subproj/WebPreferences.m:
3504 (+[WebPreferences initialize]):
3505 initialize WebKitShowsURLsInToolTipsPreferenceKey to 0