1 2005-06-05 Maciej Stachowiak <mjs@apple.com>
5 - remove security code and use the stuff from WebKitSystemInterface instead
7 * WebCoreSupport.subproj/WebKeyGenerator.m:
8 (-[WebKeyGenerator signedPublicKeyAndChallengeStringWithStrengthIndex:challenge:pageURL:]):
9 (-[WebKeyGenerator addCertificatesToKeychainFromData:]):
10 * WebCoreSupport.subproj/WebNewKeyGeneration.c: Removed.
11 * WebCoreSupport.subproj/WebNewKeyGeneration.h: Removed.
12 * WebKit.pbproj/project.pbxproj:
14 2005-06-05 Darin Adler <darin@apple.com>
16 - added appropriate license headers to most files and updated copyright to reflect publication dates
19 * <lots of files>: Added license header.
21 * WebKit.pbproj/project.pbxproj: Removed references to NP_objc.h.
23 * API-Issues.rtf: Removed.
24 * Misc.subproj/WebException.h: Removed.
25 * Misc.subproj/WebException.m: Removed.
26 * Plugins.subproj/NP_objc.h: Removed.
28 2005-06-05 Maciej Stachowiak <mjs@apple.com>
32 - link against libWebKitSystemInterface and use the first function in it.
34 * Misc.subproj/WebNSUserDefaultsExtras.m:
35 (-[NSString _webkit_HTTPStyleLanguageCode]): use WKCopyCFLocalizationPreferredName
36 * Plugins.subproj/WebBasePluginPackage.m:
37 (+[WebBasePluginPackage preferredLocalizationName]): ditto
38 * WebKit.pbproj/project.pbxproj: link in libWebKitSystemInterface.a and find headers.
40 2005-06-04 Darin Adler <darin@apple.com>
44 - did some work to move SPI use from WebCore here (to be moved from here into WebKitSystemInterface)
45 - fixed so we can compile ICU includes without Apple Internal headers installed
47 * WebCoreSupport.subproj/WebViewFactory.m:
48 (-[WebViewFactory objectIsTextMarker:]): Added.
49 (-[WebViewFactory objectIsTextMarkerRange:]): Added.
50 (-[WebViewFactory textMarkerWithBytes:length:]): Added.
51 (-[WebViewFactory getBytes:fromTextMarker:length:]): Added.
52 (-[WebViewFactory textMarkerRangeWithStart:end:]): Added.
53 (-[WebViewFactory startOfTextMarkerRange:]): Added.
54 (-[WebViewFactory endOfTextMarkerRange:]): Added.
55 (-[WebViewFactory accessibilityHandleFocusChanged]): Added.
56 (-[WebViewFactory AXUIElementForElement:]): Added.
57 (-[WebViewFactory unregisterUniqueIdForUIElement:]): Added.
59 * WebKit.pbproj/project.pbxproj: Added icu to the header search files.
60 Removed bogus DSTROOT thing from the framework paths (I meant to remove that a while back).
63 * icu/unicode/parseerr.h: Added.
64 * icu/unicode/platform.h: Added.
65 * icu/unicode/uchar.h: Added.
66 * icu/unicode/uconfig.h: Added.
67 * icu/unicode/uidna.h: Added.
68 * icu/unicode/uiter.h: Added.
69 * icu/unicode/umachine.h: Added.
70 * icu/unicode/unorm.h: Added.
71 * icu/unicode/urename.h: Added.
72 * icu/unicode/uscript.h: Added.
73 * icu/unicode/utf.h: Added.
74 * icu/unicode/utf16.h: Added.
75 * icu/unicode/utf8.h: Added.
76 * icu/unicode/utf_old.h: Added.
77 * icu/unicode/utypes.h: Added.
78 * icu/unicode/uversion.h: Added.
80 2005-06-04 Maciej Stachowiak <mjs@apple.com>
84 - replace more use of CGCompositeOperation that I missed.
86 * WebCoreSupport.subproj/WebImageData.m:
87 (-[WebImageData _checkSolidColor:]):
88 (-[WebImageData _fillSolidColorInRect:compositeOperation:context:]):
89 (-[WebImageData tileInRect:fromPoint:context:]):
90 (-[WebImageData _PDFDrawFromRect:toRect:operation:alpha:flipped:context:]):
91 * WebCoreSupport.subproj/WebImageRenderer.m:
92 (-[WebInternalImage _PDFDrawFromRect:toRect:operation:alpha:flipped:]):
94 2005-06-03 Maciej Stachowiak <mjs@apple.com>
98 - replace use of CGCompositeOperation SPI with NSCompositingOperation API
100 * WebCoreSupport.subproj/WebImageData.h:
101 * WebCoreSupport.subproj/WebImageData.m:
102 (-[WebImageData _fillSolidColorInRect:compositeOperation:context:]):
103 (-[WebImageData _PDFDrawFromRect:toRect:operation:alpha:flipped:context:]):
104 * WebCoreSupport.subproj/WebImageRenderer.m:
105 (-[WebImageRenderer drawImageInRect:fromRect:]):
106 (-[WebImageRenderer drawImageInRect:fromRect:compositeOperator:context:]):
107 * WebCoreSupport.subproj/WebImageRendererFactory.m:
108 (-[WebImageRendererFactory CGCompositeOperationInContext:]):
109 (-[WebImageRendererFactory setCGCompositeOperation:inContext:]):
110 (-[WebImageRendererFactory setCGCompositeOperationFromString:inContext:]):
112 2005-06-02 Maciej Stachowiak <mjs@apple.com>
116 - removed dependencies on NSError SPI
118 * Misc.subproj/WebKitErrors.m:
119 (-[NSError _webkit_initWithDomain:code:URL:]):
120 (+[NSError _webkit_errorWithDomain:code:URL:]):
121 (+[NSError _webKitErrorWithDomain:code:URL:]):
122 (+[NSError _webKitErrorWithCode:failingURL:]):
123 (+[NSError _webkit_addErrorsWithCodesAndDescriptions:inDomain:]):
125 * Plugins.subproj/WebNetscapePluginRepresentation.m:
126 * Plugins.subproj/WebNetscapePluginStream.m:
127 * WebCoreSupport.subproj/WebSubresourceClient.m:
128 * WebView.subproj/WebBaseResourceHandleDelegate.m:
129 * WebView.subproj/WebDefaultResourceLoadDelegate.m:
130 * WebView.subproj/WebMainResourceClient.m:
131 (-[WebMainResourceClient didFailWithError:]):
133 2005-06-02 Maciej Stachowiak <mjs@apple.com>
137 - remove use of _cfBundle SPI
139 * Plugins.subproj/WebBasePluginPackage.h:
140 * Plugins.subproj/WebBasePluginPackage.m:
141 (-[WebBasePluginPackage initWithPath:]):
142 (-[WebBasePluginPackage load]):
143 (-[WebBasePluginPackage dealloc]):
144 * Plugins.subproj/WebNetscapePluginPackage.m:
145 (-[WebNetscapePluginPackage openResourceFile]):
146 (-[WebNetscapePluginPackage closeResourceFile:]):
147 (-[WebNetscapePluginPackage initWithPath:]):
148 (-[WebNetscapePluginPackage unloadWithoutShutdown]):
149 (-[WebNetscapePluginPackage load]):
150 * Plugins.subproj/WebPluginPackage.m:
151 (-[WebPluginPackage initWithPath:]):
153 2005-06-02 Maciej Stachowiak <mjs@apple.com>
157 - remove use of NSURLRequest and NSUserDefaults SPI
159 * History.subproj/WebHistoryItem.m:
160 (-[WebHistoryItem _setFormInfoFromRequest:]):
161 * Misc.subproj/WebNSURLRequestExtras.h: Added.
162 * Misc.subproj/WebNSURLRequestExtras.m: Added.
163 (-[NSURLRequest _web_HTTPReferrer]):
164 (-[NSURLRequest _web_HTTPContentType]):
165 (-[NSMutableURLRequest _web_setHTTPContentType:]):
166 (-[NSMutableURLRequest _web_setHTTPReferrer:]):
167 (-[NSMutableURLRequest _web_setHTTPUserAgent:]):
168 * Misc.subproj/WebNSUserDefaultsExtras.h: Added.
169 * Misc.subproj/WebNSUserDefaultsExtras.m: Added.
170 (-[NSString _webkit_HTTPStyleLanguageCode]):
172 (+[NSUserDefaults _ensureAndLockPreferredLanguageLock]):
173 (+[NSUserDefaults _webkit_defaultsDidChange]):
174 (addDefaultsChangeObserver):
175 (+[NSUserDefaults _webkit_addDefaultsChangeObserver]):
176 (+[NSUserDefaults _webkit_preferredLanguageCode]):
177 * Plugins.subproj/WebBaseNetscapePluginView.m:
178 (-[WebBaseNetscapePluginView requestWithURLCString:]):
179 * Plugins.subproj/WebNetscapePluginEmbeddedView.m:
180 (-[WebNetscapePluginEmbeddedView didStart]):
181 * Plugins.subproj/WebNetscapePluginStream.m:
182 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
183 * WebCoreSupport.subproj/WebBridge.m:
184 (-[WebBridge createWindowWithURL:frameName:]):
185 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
186 (-[WebBridge incomingReferrer]):
187 (-[WebBridge createModalDialogWithURL:]):
188 * WebCoreSupport.subproj/WebSubresourceClient.m:
189 (+[WebSubresourceClient startLoadingResource:withRequest:customHeaders:referrer:forDataSource:]):
190 * WebCoreSupport.subproj/WebViewFactory.m:
191 (-[WebViewFactory defaultLanguageCode]):
192 * WebKit.pbproj/project.pbxproj:
193 * WebView.subproj/WebBaseResourceHandleDelegate.m:
194 (-[WebBaseResourceHandleDelegate willSendRequest:redirectResponse:]):
195 * WebView.subproj/WebDefaultContextMenuDelegate.m:
196 (-[WebDefaultUIDelegate openNewWindowWithURL:element:]):
197 * WebView.subproj/WebFrame.m:
198 (-[WebFrame _loadItem:withLoadType:]):
199 (-[WebFrame _addExtraFieldsToRequest:alwaysFromRequest:]):
200 (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
201 (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
202 * WebView.subproj/WebMainResourceClient.m:
203 * WebView.subproj/WebView.m:
204 (-[WebView _cachedResponseForURL:]):
205 (-[WebView userAgentForURL:]):
207 2005-06-02 Maciej Stachowiak <mjs@apple.com>
211 - move private gunk from header to implementation file.
213 * WebCoreSupport.subproj/WebNewKeyGeneration.c:
214 * WebCoreSupport.subproj/WebNewKeyGeneration.h:
216 2005-06-02 Maciej Stachowiak <mjs@apple.com>
220 - remove dependency on NSFileManager and NSCalendarDate private extras from WebFou
222 * History.subproj/WebHistory.m:
223 (-[WebHistoryPrivate findIndex:forDay:]):
224 (-[WebHistoryPrivate arrayRepresentation]):
225 (-[WebHistoryPrivate _loadHistoryGuts:URL:error:]):
226 * Misc.subproj/WebFileDatabase.m:
227 (-[WebFileDatabase _truncateToSizeLimit:]):
228 (-[WebFileDatabase removeAllObjects]):
229 (-[WebFileDatabase performSetObject:forKey:]):
230 (-[WebFileDatabase performRemoveObjectForKey:]):
231 (-[WebFileDatabase open]):
232 * Misc.subproj/WebKitNSStringExtras.m:
233 (-[NSString _webkit_fixedCarbonPOSIXPath]):
234 * Misc.subproj/WebNSCalendarDateExtras.h: Added.
235 * Misc.subproj/WebNSCalendarDateExtras.m: Added.
236 (-[NSCalendarDate _webkit_compareDay:]):
237 * Misc.subproj/WebNSDataExtras.h:
238 * Misc.subproj/WebNSDictionaryExtras.h:
239 * Misc.subproj/WebNSFileManagerExtras.h: Added.
240 * Misc.subproj/WebNSFileManagerExtras.m: Added.
241 (-[NSFileManager _webkit_fileExistsAtPath:isDirectory:traverseLink:]):
242 (-[NSFileManager _webkit_createIntermediateDirectoriesForPath:attributes:]):
243 (-[NSFileManager _webkit_createDirectoryAtPathWithIntermediateDirectories:attributes:]):
244 (-[NSFileManager _webkit_createFileAtPathWithIntermediateDirectories:contents:attributes:directoryAttributes:]):
245 (-[NSFileManager _webkit_removeFileOnlyAtPath:]):
246 (-[NSFileManager _webkit_backgroundRemoveFileAtPath:]):
247 (-[NSFileManager _webkit_backgroundRemoveLeftoverFiles:]):
248 (-[NSFileManager _webkit_carbonPathForPath:]):
249 (-[NSFileManager _webkit_startupVolumeName]):
250 (-[NSFileManager _webkit_pathWithUniqueFilenameForPath:]):
251 * Plugins.subproj/WebBaseNetscapePluginStream.m:
252 * WebKit.pbproj/project.pbxproj:
253 * WebView.subproj/WebHTMLView.m:
254 (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]):
255 * WebView.subproj/WebImageView.m:
256 (-[WebImageView namesOfPromisedFilesDroppedAtDestination:]):
258 2005-06-02 Maciej Stachowiak <mjs@apple.com>
262 - remove dependencies on NSDictionary and NSURL extras
264 * History.subproj/WebHistoryItem.m:
265 (-[WebHistoryItem initFromDictionaryRepresentation:]):
266 * Misc.subproj/WebKitNSStringExtras.h:
267 * Misc.subproj/WebKitNSStringExtras.m:
268 (-[NSString _webkit_hasCaseInsensitiveSuffix:]):
269 (-[NSString _webkit_hasCaseInsensitiveSubstring:]):
270 (-[NSString _webkit_filenameByFixingIllegalCharacters]):
271 * Misc.subproj/WebNSDictionaryExtras.h: Added.
272 * Misc.subproj/WebNSDictionaryExtras.m: Added.
273 (-[NSDictionary _webkit_numberForKey:]):
274 (-[NSDictionary _webkit_intForKey:]):
275 (-[NSDictionary _webkit_stringForKey:]):
276 (-[NSDictionary _webkit_objectForMIMEType:]):
277 (-[NSMutableDictionary _webkit_setObject:forUncopiedKey:]):
278 (-[NSMutableDictionary _webkit_setInt:forKey:]):
279 (-[NSMutableDictionary _webkit_setBool:forKey:]):
280 * Misc.subproj/WebNSPasteboardExtras.m:
281 * Misc.subproj/WebNSURLExtras.h:
282 * Misc.subproj/WebNSURLExtras.m:
283 (-[NSURL _webkit_URLByRemovingFragment]):
284 (-[NSURL _webkit_scriptIfJavaScriptURL]):
285 (-[NSURL _webkit_isFileURL]):
286 (-[NSURL _web_hostString]):
287 (-[NSURL _webkit_suggestedFilenameWithMIMEType:]):
288 * Misc.subproj/WebNSViewExtras.m:
289 * Panels.subproj/WebPanelAuthenticationHandler.m:
290 * Plugins.subproj/WebBaseNetscapePluginStream.m:
291 * Plugins.subproj/WebBaseNetscapePluginView.m:
292 (-[WebBaseNetscapePluginView evaluateJavaScriptPluginRequest:]):
293 (-[WebBaseNetscapePluginView loadPluginRequest:]):
294 (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]):
295 * Plugins.subproj/WebPluginController.m:
296 (-[WebPluginController webPlugInContainerLoadRequest:inFrame:]):
297 * WebCoreSupport.subproj/WebBridge.m:
298 * WebKit.pbproj/project.pbxproj:
299 * WebView.subproj/WebDataSource.m:
300 * WebView.subproj/WebFrame.m:
301 * WebView.subproj/WebFrameView.m:
302 * WebView.subproj/WebHTMLView.m:
303 * WebView.subproj/WebPreferences.m:
304 (-[WebPreferences _setIntegerValue:forKey:]):
305 (-[WebPreferences _setBoolValue:forKey:]):
306 * WebView.subproj/WebResource.m:
307 (-[WebResource _initWithPropertyList:]):
308 (-[WebResource _fileWrapperRepresentation]):
309 * WebView.subproj/WebView.m:
311 2005-06-02 Maciej Stachowiak <mjs@apple.com>
315 - remove dependencies on NSString and NSData extras from Foundation
317 * Misc.subproj/WebKitNSStringExtras.h:
318 * Misc.subproj/WebKitNSStringExtras.m:
319 (-[NSString _webkit_isCaseInsensitiveEqualToString:]):
320 (-[NSString _webkit_hasCaseInsensitivePrefix:]):
321 (-[NSString _webkit_stringByTrimmingWhitespace]):
322 (-[NSString _webkit_stringByCollapsingNonPrintingCharacters]):
323 (-[NSString _webkit_fixedCarbonPOSIXPath]):
324 * Misc.subproj/WebNSDataExtras.h:
325 * Misc.subproj/WebNSDataExtras.m:
326 (-[NSString _web_capitalizeRFC822HeaderFieldName]):
327 (-[NSData _web_isCaseInsensitiveEqualToCString:]):
329 (-[NSData _web_parseRFC822HeaderFields]):
330 (-[NSData _webkit_guessedMIMETypeForXML]):
331 (-[NSData _webkit_guessedMIMEType]):
332 * Misc.subproj/WebNSPasteboardExtras.m:
333 (-[NSPasteboard _web_bestURL]):
334 * Misc.subproj/WebNSURLExtras.h:
335 * Misc.subproj/WebNSURLExtras.m:
336 (applyHostNameFunctionToURLString):
337 (+[NSURL _web_URLWithUserTypedString:relativeToURL:]):
338 (+[NSURL _web_URLWithDataAsString:relativeToURL:]):
339 (-[NSURL _webkit_shouldLoadAsEmptyDocument]):
340 (-[NSString _webkit_isJavaScriptURL]):
341 (-[NSString _webkit_isFileURL]):
342 (-[NSString _webkit_isFTPDirectoryURL]):
343 (-[NSString _web_encodeHostName]):
344 (-[NSString _webkit_rangeOfURLScheme]):
345 (-[NSString _webkit_looksLikeAbsoluteURL]):
346 (-[NSString _webkit_URLFragment]):
347 * Misc.subproj/WebNSViewExtras.m:
348 * Plugins.subproj/WebBaseNetscapePluginView.m:
349 (-[WebBaseNetscapePluginView _postURL:target:len:buf:file:notifyData:sendNotification:allowHeaders:]):
350 * Plugins.subproj/WebPluginDatabase.m:
351 * WebCoreSupport.subproj/WebBridge.m:
352 (-[WebBridge setTitle:]):
353 * WebView.subproj/WebDataSource.m:
354 (-[WebDataSource _setTitle:]):
355 * WebView.subproj/WebFrame.m:
356 (-[WebFrame _loadItem:withLoadType:]):
357 * WebView.subproj/WebPreferences.m:
358 (-[WebPreferences userStyleSheetLocation]):
359 * WebView.subproj/WebView.m:
360 (+[WebView _MIMETypeForFile:]):
362 2005-06-02 Maciej Stachowiak <mjs@apple.com>
366 - first stage of cleaning up SPI usage in WebKit
368 * Carbon.subproj/CarbonUtils.m:
369 * DOM.subproj/WebDOMOperations.m:
370 (-[DOMHTMLLinkElement _subresourceURLs]):
371 (-[DOMHTMLParamElement _subresourceURLs]):
372 * History.subproj/WebHistoryItem.m:
373 (-[WebHistoryItem _setFormInfoFromRequest:]):
374 * Misc.subproj/WebDatabase.m:
375 (-[WebDatabase setObject:forKey:]):
376 (-[WebDatabase removeObjectForKey:]):
377 (-[WebDatabase removeAllObjects]):
378 (-[WebDatabase objectForKey:]):
379 (-[WebDatabase open]):
380 (-[WebDatabase close]):
381 (-[WebDatabase sync]):
382 (-[WebDatabase count]):
383 (-[WebDatabase setSizeLimit:]):
384 * Misc.subproj/WebIconDatabase.m:
385 (-[WebIconDatabase iconForURL:withSize:cache:]):
386 (-[WebIconDatabase _iconForFileURL:withSize:]):
387 * Misc.subproj/WebKitNSStringExtras.h:
388 * Misc.subproj/WebKitNSStringExtras.m:
389 (+[NSString _web_encodingForResource:]):
390 (-[NSString _webkit_isCaseInsensitiveEqualToString:]):
391 * Misc.subproj/WebNSEventExtras.h:
392 * Misc.subproj/WebNSEventExtras.m:
393 (-[NSEvent _web_isTabKeyEvent]):
394 * Misc.subproj/WebNSURLExtras.h:
395 * Misc.subproj/WebNSURLExtras.m:
396 (-[NSURL _webkit_isFileURL]):
397 (-[NSString _webkit_isJavaScriptURL]):
398 (-[NSString _webkit_isFileURL]):
399 * Panels.subproj/WebPanelAuthenticationHandler.m:
400 (-[NSMutableDictionary _webkit_setObject:forUncopiedKey:]):
401 (-[WebPanelAuthenticationHandler enqueueChallenge:forWindow:]):
402 (-[WebPanelAuthenticationHandler startAuthentication:window:]):
403 * Plugins.subproj/WebBaseNetscapePluginView.m:
404 * Plugins.subproj/WebBasePluginPackage.m:
405 (-[WebBasePluginPackage isQuickTimePlugIn]):
406 (-[WebBasePluginPackage isJavaPlugIn]):
407 * Plugins.subproj/WebPluginPackage.m:
408 (-[WebPluginPackage initWithPath:]):
409 * WebCoreSupport.subproj/WebBridge.m:
410 (-[WebBridge canTargetLoadInFrame:]):
411 (-[WebBridge valueForKey:keys:values:]):
412 * WebCoreSupport.subproj/WebGlyphBuffer.m:
413 * WebCoreSupport.subproj/WebImageDecodeItem.h:
414 * WebCoreSupport.subproj/WebImageDecodeItem.m:
415 * WebCoreSupport.subproj/WebImageDecoder.h:
416 * WebCoreSupport.subproj/WebImageDecoder.m:
417 * WebCoreSupport.subproj/WebTextRenderer.h:
419 * WebView.subproj/WebBaseResourceHandleDelegate.m:
420 (-[WebBaseResourceHandleDelegate _canUseResourceForRequest:]):
421 * WebView.subproj/WebDataProtocol.m:
422 (+[WebDataProtocol _webIsDataProtocolURL:]):
423 * WebView.subproj/WebFrame.m:
424 (-[WebFrame _shouldAllowAccessFrom:]):
425 (-[WebFrame reload]):
426 * WebView.subproj/WebHTMLRepresentation.m:
427 (-[WebHTMLRepresentation _isDisplayingWebArchive]):
428 * WebView.subproj/WebMainResourceClient.m:
429 (-[WebMainResourceClient continueAfterContentPolicy:response:]):
430 (-[WebMainResourceClient didReceiveResponse:]):
431 * WebView.subproj/WebPDFView.m:
432 * WebView.subproj/WebView.m:
433 (+[WebView _MIMETypeForFile:]):
435 2005-06-01 Darin Adler <darin@apple.com>
437 Reviewed by John Sullivan.
439 - WebKit part of fix for <rdar://problem/3166090> add IE JavaScript extension window.showModalDialog
441 * WebCoreSupport.subproj/WebBridge.m:
442 (-[WebBridge createModalDialogWithURL:]): Added. Calls the UI delegate, falling back to the generic
443 "create WebView" method.
444 (-[WebBridge canRunModal]): Added. Checks the UI delegate to see if it implements runModal.
445 (-[WebBridge canRunModalNow]): Added. Checks the "inConnectionCallback" field so we can prevent
446 deadlock since we can't do any I/O while inside a connection callback until this aspect of NSURLConnection
448 (-[WebBridge runModal]): Added. Sets "defersCallbacks" on all other web views in the group, then
449 calls runModal on the UI delegate.
451 * WebView.subproj/WebBaseResourceHandleDelegate.h: Added inConnectionCallback class method.
452 * WebView.subproj/WebBaseResourceHandleDelegate.m:
453 (-[WebBaseResourceHandleDelegate connection:willSendRequest:redirectResponse:]): Bump count and then
454 decrement count so we can tell if we are in a callback.
455 (-[WebBaseResourceHandleDelegate connection:didReceiveAuthenticationChallenge:]): Ditto.
456 (-[WebBaseResourceHandleDelegate connection:didCancelAuthenticationChallenge:]): Ditto.
457 (-[WebBaseResourceHandleDelegate connection:didReceiveResponse:]): Ditto.
458 (-[WebBaseResourceHandleDelegate connection:didReceiveData:lengthReceived:]): Ditto.
459 (-[WebBaseResourceHandleDelegate connection:willStopBufferingData:]): Ditto.
460 (-[WebBaseResourceHandleDelegate connectionDidFinishLoading:]): Ditto.
461 (-[WebBaseResourceHandleDelegate connection:didFailWithError:]): Ditto.
462 (-[WebBaseResourceHandleDelegate connection:willCacheResponse:]): Ditto.
463 (+[WebBaseResourceHandleDelegate inConnectionCallback]): Added. Return YES if count is not 0.
465 * WebView.subproj/WebMainResourceClient.m:
466 (-[WebMainResourceClient receivedError:]): Changed to use the method without the connection: parameter
467 in the base class, since we no longer are overriding the connection: version.
468 (-[WebMainResourceClient willSendRequest:redirectResponse:]): Change to override the version without
469 the connection prefix/parameter; now only the base class overrides the actual connection delegate methods.
470 (-[WebMainResourceClient continueAfterContentPolicy:response:]): Ditto.
471 (-[WebMainResourceClient didReceiveResponse:]): Ditto.
472 (-[WebMainResourceClient didReceiveData:lengthReceived:]): Ditto.
473 (-[WebMainResourceClient didFinishLoading]): Ditto.
474 (-[WebMainResourceClient didFailWithError:]): Ditto.
475 (-[WebMainResourceClient loadWithRequestNow:]): Call the method without the connection parameter.
477 * WebView.subproj/WebUIDelegatePrivate.h: Added new SPI here that WebBrowser implements.
479 2005-05-26 Darin Adler <darin@apple.com>
483 - fix build failure from when I removed WebCoreUnicode
485 * WebCoreSupport.subproj/WebTextRenderer.m: Removed import of WebUnicode.h that I missed.
486 (-[WebTextRenderer _convertUnicodeCharacters:length:toGlyphs:]): Switch from our own macros
487 to the ICU macros for surrogate pairs.
488 (widthForNextCharacter): Ditto.
490 2005-05-26 David Harrison <harrison@apple.com>
492 <rdar://problem/4120518> Mail: control-T in an empty message crashes mail
494 * WebCoreSupport.subproj/WebBridge.m:
495 (-[WebBridge issueTransposeCommand]):
496 New, to support transpose in JS.
498 2005-05-26 Darin Adler <darin@apple.com>
500 Reviewed by Richard and Dave Harrison.
502 - eliminate WebCoreUnicode and use ICU directly instead
504 * Misc.subproj/WebKitNSStringExtras.m: (canUseFastRenderer): Use u_charDirection directly.
505 * WebCoreSupport.subproj/WebTextRenderer.m: Removed import of <WebCore/WebCoreUnicode.h>.
506 * WebView.subproj/WebHTMLView.m: (+[WebHTMLView initialize]): Removed call to WebKitInitializeUnicode.
508 * Misc.subproj/WebUnicode.h: Removed.
509 * Misc.subproj/WebUnicode.m: Removed.
510 * Misc.subproj/WebUnicodeTables.m: Removed.
512 * WebKit.pbproj/project.pbxproj: Removed files.
514 2005-05-24 Richard Williamson <rjw@apple.com>
516 Fixed <rdar://problem/4097289> -[WebView elementAtPoint:] failing when WebView is nested and offset
518 Code to determine the correct frame under the window point was
519 converting the point incorrectly.
523 * WebView.subproj/WebView.m:
524 (-[WebView _frameViewAtWindowPoint:]):
526 2005-05-23 John Sullivan <sullivan@apple.com>
530 - WebKit part of <rdar://problem/4125783> WebKit needs a way to control whether textareas are resizable
532 * WebView.subproj/WebPreferencesPrivate.h:
533 added private-for-now getter and setter for new preference
534 * WebView.subproj/WebPreferenceKeysPrivate.h:
535 added private preference key controlling whether textareas are resizable
536 * WebView.subproj/WebPreferences.m:
537 (+[WebPreferences initialize]):
538 initial value of new preference is NO, so other clients' behavior doesn't change
539 (-[WebPreferences textAreasAreResizable]):
541 (-[WebPreferences setTextAreasAreResizable:]):
544 * WebView.subproj/WebView.m:
545 (-[WebView _updateWebCoreSettingsFromPreferences:]):
546 update this new setting in WebCore
548 * English.lproj/StringsNotToBeLocalized.txt:
549 updated for these changes
551 2005-05-23 Chris Blumenberg <cblu@apple.com>
553 Changed type for identifier parameter in WebResourceLoadDelegate-related calls to id from NSString.
557 * WebCoreSupport.subproj/WebBridge.m:
558 (-[WebBridge objectLoadedFromCacheWithURL:response:data:]):
559 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
560 * WebView.subproj/WebFrame.m:
561 (-[WebFrame _opened]):
562 (-[WebFrame _requestFromDelegateForRequest:identifier:error:]):
563 (-[WebFrame _sendRemainingDelegateMessagesWithIdentifier:response:length:error:]):
564 (-[WebFrame _saveResourceAndSendRemainingDelegateMessagesWithRequest:identifier:response:data:error:]):
565 * WebView.subproj/WebFrameInternal.h:
567 2005-05-20 Chris Blumenberg <cblu@apple.com>
569 Fixed: <rdar://problem/4098786> sync. XMLHttpRequest works w/o AllowNetworkAccess key because load delegate is not consulted
571 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.
573 Reviewed by sullivan.
575 * WebCoreSupport.subproj/WebBridge.m:
576 (-[WebBridge objectLoadedFromCacheWithURL:response:data:]): call [WebFrame _requestFromDelegateForRequest:identifier:error:] then
577 [WebFrame _saveResourceAndSendRemainingDelegateMessagesWithRequest:identifier:response:data:error:] so synthetic resource load delegate
578 methods are called and the data is saved as a WebResource for resources in the WebCore cache.
580 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]): call [WebFrame _requestFromDelegateForRequest:identifier:error:],
581 respect its result, do the load and then call [WebFrame _saveResourceAndSendRemainingDelegateMessagesWithRequest:identifier:response:data:error:]
582 for synchronous loads
584 * WebView.subproj/WebFrame.m:
585 (-[WebFrame _opened]): call [WebFrame _requestFromDelegateForRequest:identifier:error:] then
586 [WebFrame _sendRemainingDelegateMessagesWithIdentifier:response:length:error:] so synthetic resource load delegate methods are called
587 for subresrources in the page cache
589 (-[WebFrame _requestFromDelegateForRequest:identifier:error:]): new, was part of the removed _sendResourceLoadDelegateMessagesForURL:::
590 This method calls identifierForInitialRequest and willSendRequest.
592 (-[WebFrame _sendRemainingDelegateMessagesWithIdentifier:response:length:error:]): new, was part of the removed _sendResourceLoadDelegateMessagesForURL:::
593 This method calls the remaining resource load delegate messages.
595 (-[WebFrame _saveResourceAndSendRemainingDelegateMessagesWithRequest:identifier:response:data:error:]): new, saves the resource and calls
596 [WebFrame _sendRemainingDelegateMessagesWithIdentifier:response:length:error:]
598 * WebView.subproj/WebFrameInternal.h:
600 2005-05-17 Chris Blumenberg <cblu@apple.com>
602 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
606 * WebCoreSupport.subproj/WebBridge.m:
607 (-[WebBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]): pass the passed referrer to canLoadURL::: not [self referrer]
608 (-[WebBridge postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]): ditto
609 * WebView.subproj/WebTextView.m:
610 (-[WebTextView clickedOnLink:atIndex:]): call the loadURL bridge method so that security checks are made, command/option clicks work, policy delegate is consulted etc.
612 2005-05-17 Chris Blumenberg <cblu@apple.com>
614 Fixed: <rdar://problem/4120255> web archives on remote servers can be viewed directly (with major security issues); should download instead
618 * WebView.subproj/WebBaseResourceHandleDelegate.h:
619 * WebView.subproj/WebMainResourceClient.m:
620 (-[WebMainResourceClient continueAfterContentPolicy:response:]): if the WebKit client has chosen to "use" a remote web archive, stop the load with an error
622 2005-05-16 Darin Adler <darin@apple.com>
624 - attempt to get things building under "Saffron" development tools
626 * WebKit.pbproj/project.pbxproj: Use BUILT_PRODUCTS_DIR instead of SYMROOT.
628 2005-05-13 John Sullivan <sullivan@apple.com>
632 - fixed <rdar://problem/4093306> Safari crashes if Esc key is held down during series
633 of authentication sheets
635 * Panels.subproj/WebAuthenticationPanel.m:
636 (-[WebAuthenticationPanel cancel:]):
637 retain and autorelease self. This is a workaround for an AppKit key-handling issue, which I wrote up as:
638 <rdar://problem/4118422> Key-down events can be sent to a closed window if a key is kept pressed down
640 2005-05-12 John Sullivan <sullivan@apple.com>
644 - rolled in changes from experimental-ui-branch to support resizable textareas
645 and find-as-you-type and confirming unsubmitted form changes. The files/functions
646 modified are listed just below. After that are the ChangeLog comments from the branch.
648 * WebCoreSupport.subproj/WebBridge.m:
649 (-[WebBridge textDidChange:]):
650 * WebView.subproj/WebFormDelegate.h:
651 * WebView.subproj/WebFormDelegate.m:
652 (-[WebFormDelegate textDidChange:inFrame:]):
653 * WebView.subproj/WebHTMLView.m:
654 (-[WebHTMLView maintainsInactiveSelection]):
655 (-[WebHTMLView searchFor:direction:caseSensitive:wrap:]):
656 (-[WebHTMLView _searchFor:direction:caseSensitive:wrap:findInSelection:]):
657 * WebView.subproj/WebView.m:
658 (-[WebView _searchFor:direction:caseSensitive:wrap:findInSelection:]):
659 (-[WebView searchFor:direction:caseSensitive:wrap:]):
660 (-[WebView makeTextStandardSize:]):
661 (-[WebView maintainsInactiveSelection]):
662 * WebView.subproj/WebViewPrivate.h:
664 2005-04-18 John Sullivan <sullivan@apple.com>
666 WebKit support for notifying a form delegate when a
667 textarea's contents have changed (as opposed to a
668 textfield, which was already handled).
672 * WebView.subproj/WebFormDelegate.h:
673 * WebView.subproj/WebFormDelegate.m:
674 (-[WebFormDelegate textDidChange:inFrame:]):
675 new form delegate method
677 * WebCoreSupport.subproj/WebBridge.m:
678 (-[WebBridge textDidChange:]):
679 new method, calls through to form delegate
681 2005-04-11 John Sullivan <sullivan@apple.com>
683 Fixed inability to wrap around in Find in Page
685 * WebView.subproj/WebView.m:
686 (-[WebView _searchFor:direction:caseSensitive:wrap:findInSelection:]):
687 changed wrapFlag from NO to YES on two lines (copy/paste error)
689 2005-04-07 John Sullivan <sullivan@apple.com>
691 WebKit support for find-as-you-type. Needed an additional parameter on
692 a method from WebDocumentSearching protocol. Since that's a public protocol,
693 I couldn't just add the parameter. For now I hacked it with an undeclared
694 internal method that's discovered via respondsToSelector. Probably the right
695 long-term approach is to deprecate the WebDocumentSearching protocol and introduce
696 a replacement that has a more flexible set of parameters for possible future
699 Reviewed by Dave Hyatt.
701 * WebView.subproj/WebHTMLView.m:
702 (-[WebHTMLView searchFor:direction:caseSensitive:wrap:]):
703 now calls new one-more-parameter version passing NO for new parameter to match old behavior
704 (-[WebHTMLView _searchFor:direction:caseSensitive:wrap:findInSelection:]):
705 new method, adds findInSelection parameter and passes it through to bridge
707 * WebView.subproj/WebView.m:
708 (-[WebView searchFor:direction:caseSensitive:wrap:]):
709 now calls new one-more-parameter version passing NO for new parameter to match old behavior
710 (-[WebView _searchFor:direction:caseSensitive:wrap:findInSelection:]):
711 new method, adds findInSelection parameter and passes it through
713 2005-04-07 John Sullivan <sullivan@apple.com>
715 WebKit support to allow clients to control whether the selection is still
716 drawn when the first responder is elsewhere. Formerly this was hardwired
717 to be true only when -[WebView isEditable] was true.
721 * WebView.subproj/WebHTMLView.m:
722 (-[WebHTMLView maintainsInactiveSelection]):
723 check [WebView maintainsInactiveSelection] rather than just [WebView isEditable]
725 * WebView.subproj/WebViewPrivate.h:
726 * WebView.subproj/WebView.m:
727 (-[WebView maintainsInactiveSelection]):
728 new method for clients to override, returns -[self isEditable]
731 2005-05-10 John Sullivan <sullivan@apple.com>
735 - WebKit support for <rdar://problem/3795701> Menu item/keyboard shortcut to
736 restore text zoom to normal
738 * WebView.subproj/WebView.m:
739 (-[WebView validateUserInterfaceItem:]):
740 validate makeTextStandardSize by calling canMakeTextStandardSize
741 (-[WebView canMakeTextStandardSize]):
742 new method, returns YES unless text size multiplier is currently 1
743 (-[WebView makeTextStandardSize:]):
744 new method, sets text size multiplier to 1
746 * WebView.subproj/WebViewPrivate.h:
747 add makeTextStandardSize: and canMakeTextStandardSize to pending public category
749 2005-05-10 John Sullivan <sullivan@apple.com>
753 - fixed <rdar://problem/4067981> Mail places RTF flavor before RTFD flavor when dragging
754 mixed image/text content.
756 * WebView.subproj/WebHTMLView.m:
757 (+[WebHTMLView _selectionPasteboardTypes]):
758 put RTFD type before RTF type in array of types to declare
760 2005-05-09 Chris Blumenberg <cblu@apple.com>
762 Turned assertion into error message to prevent crash when encountering this bug:
763 <rdar://problem/4067625> connection:willCacheResponse: is called inside of [NSURLConnection initWithRequest:delegate:]
765 * WebView.subproj/WebBaseResourceHandleDelegate.h:
766 * WebView.subproj/WebBaseResourceHandleDelegate.m:
767 (-[WebBaseResourceHandleDelegate loadWithRequest:]): set flag to track when we're initializing the connection
768 (-[WebBaseResourceHandleDelegate connection:willCacheResponse:]): log error
770 2005-05-09 Darin Adler <darin@apple.com>
772 * Makefile.am: Don't set up PBXIntermediatesDirectory explicitly;
773 Not needed to make builds work, spews undesirable error messages too.
775 2005-05-06 Darin Adler <darin@apple.com>
779 - make building multiple trees with make work better
781 * Makefile.am: Set up Xcode build directory before invoking xcodebuild.
783 2005-05-04 Darin Adler <darin@apple.com>
785 Reviewed by Dave Hyatt.
789 * WebKit.pbproj/project.pbxproj: Set deployment target to 10.3 in the build styles.
790 When built without a build style (by Apple B&I) we want to get the target from the
791 environment. But when built with a build style (by Safari engineers and others), we want
792 to use 10.3. Because our deployment target was not set, we ran into this bug:
794 <rdar://problem/4108717> CTFontGetGlyphWithName doesn't work with some strings
796 * Makefile.am: Took out extra parameters that make command-line building different from
797 Xcode building. Now that this is fixed, you should not get a full rebuild if you switch
798 from command line to Xcode or back.
800 2005-05-04 Chris Blumenberg <cblu@apple.com>
803 <rdar://problem/4078417> REGRESSION (125-412): MLB gameday page doesn't update (Flash)
804 <rdar://problem/4072280> XMLHttpRequest calls onReadyStateChange callback with bogus status value
808 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.
810 * WebCoreSupport.subproj/WebBridge.m:
811 (-[WebBridge objectLoadedFromCacheWithURL:response:data:]): call new [WebResource _initWithData:URL:response:]
812 * WebView.subproj/WebBaseResourceHandleDelegate.m:
813 (-[WebBaseResourceHandleDelegate _canUseResourceWithResponse:]): new, checks response cache directives
814 (-[WebBaseResourceHandleDelegate loadWithRequest:]): call _canUseResourceWithResponse:
815 (-[WebBaseResourceHandleDelegate saveResource]): call new [WebResource _initWithData:URL:response:]
816 * WebView.subproj/WebResource.m:
817 (-[WebResourcePrivate dealloc]):
818 (-[WebResource initWithData:URL:MIMEType:textEncodingName:frameName:]): call renamed _initWithData:URL:MIMEType:textEncodingName:frameName:response:copyData:
819 (-[WebResource initWithCoder:]): decode the NSURLReponse
820 (-[WebResource encodeWithCoder:]): encode the NSURLReponse
821 (-[WebResource _initWithData:URL:MIMEType:textEncodingName:frameName:response:copyData:]): take the NSURLReponse
822 (-[WebResource _initWithData:URL:response:]): new
823 (-[WebResource _initWithPropertyList:]): decode the NSURLReponse
824 (-[WebResource _propertyListRepresentation]): encode the NSURLReponse
825 (-[WebResource _response]): return ivar if we have one
826 * WebView.subproj/WebResourcePrivate.h:
828 2005-05-03 David Hyatt <hyatt@apple.com>
830 Fix object element support so that fallback content works. With this change Safari passes the Acid2 test.
834 * WebCoreSupport.subproj/WebBridge.m:
835 (-[WebBridge determineObjectFromMIMEType:URL:]):
836 * WebView.subproj/WebDataSource.m:
837 (-[WebDataSource _receivedMainResourceError:complete:]):
838 * WebView.subproj/WebMainResourceClient.m:
839 (-[WebMainResourceClient continueAfterContentPolicy:response:]):
841 2005-05-03 Darin Adler <darin@apple.com>
843 * WebView.subproj/WebUIDelegate.h: Fixed incorrect comment.
846 2005-05-01 Darin Adler <darin@apple.com>
848 - move to Xcode native targets and stop checking in generated files
850 * WebKit.pbproj/project.pbxproj: Updated to use native targets and generate all the generated
851 files, so we don't have to check them in any more.
852 * Info.plist: Added. Native targets use a separate file for this.
854 * Plugins.subproj/npapi.m: Fixed import statement to get npapi.h from <WebKit/> rather than current directory.
856 * Makefile.am: Removed timestamp cleaning rules since we don't use it any more.
858 * .cvsignore: Removed various timestamp files.
860 * DOM.subproj/DOM-compat.h: Removed.
861 * DOM.subproj/DOM.h: Removed.
862 * DOM.subproj/DOMCSS.h: Removed.
863 * DOM.subproj/DOMCore.h: Removed.
864 * DOM.subproj/DOMEvents.h: Removed.
865 * DOM.subproj/DOMExtensions.h: Removed.
866 * DOM.subproj/DOMHTML.h: Removed.
867 * DOM.subproj/DOMPrivate.h: Removed.
868 * DOM.subproj/DOMRange.h: Removed.
869 * DOM.subproj/DOMStylesheets.h: Removed.
870 * DOM.subproj/DOMTraversal.h: Removed.
871 * DOM.subproj/DOMViews.h: Removed.
872 * Plugins.subproj/WebScriptObject.h: Removed.
873 * Plugins.subproj/npapi.h: Removed.
874 * Plugins.subproj/npruntime.h: Removed.
875 * copy-webcore-files-to-webkit: Removed.
876 * embed-frameworks.sh: Removed.
877 * force-clean-timestamp: Removed.
879 2005-04-28 Darin Adler <darin@apple.com>
883 - fixed problems preventing us from compiling with gcc 4.0
885 * WebKit.pbproj/project.pbxproj: Removed -fobjc-exceptions because I can't figure out an easy
886 way to pass it only when compiling Objective-C/C++. Removed -Wmissing-prototypes from
887 WARNING_CPLUSPLUSFLAGS since it's now a C-only warning.
889 * History.subproj/WebHistoryItem.m: (-[WebHistoryItem pageCache]): Changed return type
890 to match the declaration.
891 * WebCoreSupport.subproj/WebBridge.m: (-[WebBridge _retrieveKeyboardUIModeFromPreferences:]):
892 Fixed a BOOL that should have been a Boolean.
893 * WebCoreSupport.subproj/WebTextRenderer.m: Removed redundant copy of ROUND_TO_INT, also in
895 (-[WebTextRenderer _computeWidthForSpace]): Had to add cast because of difference in type of
896 ROUND_TO_INT vs. CEIL_TO_INT.
897 (pathFromFont): Added a cast to convert UInt8 * to char *.
898 * WebView.subproj/WebFrameView.m:
899 (-[WebFrameView _setDocumentView:]): Fixed parameter type to match the declaration.
900 (-[WebFrameView documentView]): Fixed return type to match the declaration.
901 * WebView.subproj/WebHTMLView.m:
902 (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
903 Initialized a variable to quiet an incorrect gcc 4.0 uninitialized variable warning.
904 (-[WebHTMLView deleteToMark:]): Switched from @try style to NS_DURING style of exception handler
905 because we can't pass -fobjc-exceptions just to Objective-C at the moment (see above).
906 (-[WebHTMLView selectToMark:]): Ditto.
907 (-[WebHTMLView swapWithMark:]): Ditto.
909 2005-04-27 John Sullivan <sullivan@apple.com>
911 Reviewed by Dave Harrison.
913 - fixed <rdar://problem/3547489> pop-up window blocking preference and
914 menu item can easily get out of sync.
916 * WebView.subproj/WebPreferences.m:
917 (-[WebPreferences _setStringValue:forKey:]):
918 save local value before setting value in NSUserDefaults, so clients reacting to NSUserDefaults
919 change notification but calling back on WebPreferences API will see the updated value.
920 (-[WebPreferences _setIntegerValue:forKey:]):
922 (-[WebPreferences _setBoolValue:forKey:]):
925 2005-04-26 Richard Williamson <rjw@apple.com>
927 Fixed <rdar://problem/4098713> Scripting API is incompatible with Mozilla
931 * Plugins.subproj/npfunctions.h:
932 * Plugins.subproj/npruntime.h:
934 2005-04-26 Darin Adler <darin@apple.com>
938 - fixed <rdar://problem/3655817> please add support for mouse wheel events and the onmousewheel handler
940 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView scrollWheel:]): Call sendScrollWheelEvent: method
941 instead of the old scrollOverflowWithScrollWheelEvent: (just a name change).
943 2005-04-18 Darin Adler <darin@apple.com>
947 - fixed <rdar://problem/4092614> REGRESSION (Tiger): progressively loaded background images "scroll around" instead of just appearing
949 * WebCoreSupport.subproj/WebImageData.m:
950 (-[WebImageData _imageSourceOptions]): Moved a global inside this function, since it's only used here.
951 (-[WebImageData _cacheImages:allImages:]): Fixed a sizeof that was getting the size of the wrong thing.
952 (-[WebImageData _isSizeAvailable]): Used calloc in a more consistent way.
953 (drawPattern): Removed an unneeded cast.
954 (-[WebImageData tileInRect:fromPoint:context:]): Here's the actual bug fix. Don't use the image size
955 when deciding whether the image needs to be tiled as a pattern nor when creating the pattern: in both
956 cases, use the tile size. The old way was wrong, and the new way works perfectly. Also removed uneeded
957 error message when the image is not yet loaded enough to create a CGImageRef for it -- it's fine to
958 draw nothing in that case.
960 2005-04-14 John Sullivan <sullivan@apple.com>
964 * WebView.subproj/WebBaseResourceHandleDelegate.m:
965 (-[WebBaseResourceHandleDelegate connection:willCacheResponse:]):
966 Beefed up assertion that's been bugging me and Chris to include
967 the two troublemaking values.
969 2005-04-05 David Hyatt <hyatt@apple.com>
971 Fix for 4077106, wheel scroll amount smaller in Tiger. All along wheeling should have been 4x the default
972 line height of 10 (just as arrow keys did). Scroll arrows should have done this too for scroll views (they did
973 already for overflow sections). This patch puts the override into the scrollview itself, and removes the
974 multipliers in the private frame methods.
978 * WebView.subproj/WebFrameView.m:
979 (-[WebFrameView _verticalKeyboardScrollDistance]):
980 (-[WebFrameView initWithFrame:]):
981 (-[WebFrameView _horizontalKeyboardScrollDistance]):
985 2005-03-31 Chris Blumenberg <cblu@apple.com>
987 Fixed: <rdar://problem/4070729> REGRESSION (125-311, Panther-only?): Safari crashes while reloading "My eBay" page
991 * WebView.subproj/WebBaseResourceHandleDelegate.m:
992 (-[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
998 2005-03-23 Richard Williamson <rjw@apple.com>
1000 Use Patti Yeh's hack to determine the appropriate rectangle
1001 to place the "associated word" window.
1002 If there is no marked text firstRectForCharacterRange: will
1003 use the selected range to determine the returned rectangle,
1004 ignoring the input range. This is the fix from
1005 4029491 that I previously backed out.
1009 * WebView.subproj/WebHTMLView.m:
1010 (-[WebHTMLView firstRectForCharacterRange:]):
1012 2005-03-23 Richard Williamson <rjw@apple.com>
1014 Fixed <rdar://problem/4062490> REGRESSION (WebKit-408): no subresources reported in Activity window after going back at hrweb.apple.com
1016 Stop collecting subresource responses after the document
1017 had loaded, not after it has been opened.
1021 * WebView.subproj/WebFrame.m:
1022 (-[WebFrame _setState:]):
1023 (-[WebFrame _opened]):
1025 2005-03-21 Maciej Stachowiak <mjs@apple.com>
1029 <rdar://problem/4051145> The QuickTime Cocoa plug-in needs an SPI that it can call to check for URL policy
1031 * Plugins.subproj/WebPluginContainerCheck.h: Added.
1032 * Plugins.subproj/WebPluginContainerCheck.m: Added this new helper class to encapsulate
1033 an async plugin navigation check.
1034 (+[WebPluginContainerCheck checkWithRequest:target:resultObject:selector:controller:]): Convenience allocator that gives autoreleased value.
1035 (-[WebPluginContainerCheck initWithRequest:target:resultObject:selector:controller:]): Initializer.
1036 (-[WebPluginContainerCheck finalize]): Just assert that we're done, it would
1037 be bad to deallocate this object while request is still outstanding.
1038 (-[WebPluginContainerCheck dealloc]): Ditto.
1039 (-[WebPluginContainerCheck _continueWithPolicy:]): Method to continue after async
1041 (-[WebPluginContainerCheck _isDisallowedFileLoad]): Do "file: URL from remote content"
1043 (-[WebPluginContainerCheck _actionInformationWithURL:]): Helper to make action
1045 (-[WebPluginContainerCheck _askPolicyDelegate]): Call policy delegate to let
1046 the app decide if this load is allowed.
1047 (-[WebPluginContainerCheck start]): Start the check.
1048 (-[WebPluginContainerCheck cancel]): Cancel a check in progress.
1049 * Plugins.subproj/WebPluginController.h:
1050 * Plugins.subproj/WebPluginController.m:
1051 (-[WebPluginController initWithDocumentView:]): Initialize new _checksInProgress field.
1052 (-[WebPluginController _webPluginContainerCancelCheckIfAllowedToLoadRequest:]): Implement
1053 this new SPI method.
1054 (-[WebPluginController _cancelOutstandingChecks]): New helper to make sure to cancel
1055 all outstanding requests when destroying all plugins.
1056 (-[WebPluginController destroyAllPlugins]): Call above helper.
1057 (-[WebPluginController _webPluginContainerCheckIfAllowedToLoadRequest:inFrame:resultObject:selector:]): Implement this new plug-in SPI method.
1058 (-[WebPluginController bridge]): New helper method.
1059 (-[WebPluginController webView]): New helper method.
1060 * WebView.subproj/WebPolicyDelegatePrivate.h: Add new navigation
1061 type WebNavigationTypePlugInRequest.
1062 * WebKit.pbproj/project.pbxproj: Add new files.
1063 * WebView.subproj/WebDefaultPolicyDelegate.m:
1064 (-[WebDefaultPolicyDelegate webView:decidePolicyForNavigationAction:request:frame:decisionListener:]): Don't open externally on a plug-in request.
1066 2005-03-23 Richard Williamson <rjw@apple.com>
1068 Fixed <rdar://problem/4053515> REGRESSION (Mail): Kotoeri input method reconversion does not work in WebViews
1070 We now use actual document NSRanges to represent both marked text
1071 ranges and selection ranges.
1073 Reviewed by Ken Kocienda.
1075 * WebView.subproj/WebHTMLView.m:
1076 (-[WebHTMLView validAttributesForMarkedText]):
1077 (-[WebHTMLView firstRectForCharacterRange:]):
1078 (-[WebHTMLView selectedRange]):
1079 (-[WebHTMLView markedRange]):
1080 (-[WebHTMLView _selectMarkedText]):
1081 (-[WebHTMLView setMarkedText:selectedRange:]):
1085 2005-03-22 Darin Adler <darin@apple.com>
1087 * English.lproj/StringsNotToBeLocalized.txt: Updated for recent changes.
1091 2005-03-20 Maciej Stachowiak <mjs@apple.com>
1095 <rdar://problem/4060020> Add stub version of security SPI for QuickTime plug-in so QuickTime team has something to compile and link against
1097 * Plugins.subproj/WebPluginContainerPrivate.h: Added.
1098 * Plugins.subproj/WebPluginController.m:
1099 (-[WebPluginController _webPluginContainerCheckIfAllowedToLoadRequest:inFrame:resultObject:selector:]):
1100 (-[WebPluginController _webPluginContainerCancelCheckIfAllowedToLoadRequest:]):
1101 * WebKit.pbproj/project.pbxproj:
1103 2005-03-19 David Harrison <harrison@apple.com>
1107 <rdar://problem/4059479> Misspelling underline does underline the whole word, could go farther to the right
1109 * WebCoreSupport.subproj/WebTextRenderer.m:
1110 (-[WebTextRenderer misspellingLinePatternGapWidth]):
1111 (-[WebTextRenderer drawLineForMisspelling:withWidth:]):
1112 Consider that the last pixel in the underline dot pattern is transparent.
1114 2005-03-19 Darin Adler <darin@apple.com>
1116 Reviewed by Maciej (a while back).
1118 - fixed <rdar://problem/4059323> local-file security check is allowing plug-in streams, but must not
1120 * Plugins.subproj/WebNetscapePluginStream.m:
1121 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
1122 Roll out change I made on 3-13. That change is needed for subresource, but not for plug-in streams.
1123 For plug-in streams it's too risky, and leaves a serious security hole open.
1125 2005-03-19 Darin Adler <darin@apple.com>
1127 Reviewed by Ken and John.
1129 - fixed <rdar://problem/4059123> REGRESSION (402-403): deleteWordForward: and deleteWordBackward: start deleting single characters after the first delete
1131 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]):
1132 Fixed backwards logic in here and added missing check. Set action to one of the two typing actions only
1133 if isTypingAction is YES.
1135 2005-03-19 David Harrison <harrison@apple.com>
1137 Reviewed by me (written by Patti Yeh).
1139 <rdar://problem/4029491> <TCIM> CangJie: the candidate window appears at the top left hand corner during typing in Mail and iChat
1141 * WebView.subproj/WebHTMLView.m:
1142 (-[WebHTMLView firstRectForCharacterRange:]):
1143 Use selected range if there is no marked range.
1147 2005-03-18 David Harrison <harrison@apple.com>
1151 <rdar://problem/3584942> AX: Safari Accessibility parent-child mismatch
1153 * WebView.subproj/WebFrameView.m:
1154 (-[WebFrameView webCoreBridge]):
1155 New to conform to WebCoreBridgeHolder protocol.
1157 2005-03-18 Richard Williamson <rjw@apple.com>
1159 Fixed <rdar://problem/4057004> Data from XMLHTTPRequest is never dealloced
1161 WebDataSource keeps an array of all the NSURLResponses associated
1162 with the load for a page. This is used to playback delegate messages
1163 when loading from the page cache. However, after the document
1164 has completed it's initial load, we continue to keep track of responses.
1165 So, this has the consequence of keeping all the responses for a page
1166 around for the life of the page. NSURLResponses are now very
1167 heavy. They indirectly reference the resource data (via the
1168 download assessment dictionary). This fix will keep
1169 references to responses around for those resources loaded during initial
1170 page load, but not after that point.
1174 * WebView.subproj/WebDataSource.m:
1175 (-[WebDataSource _addResponse:]):
1176 (-[WebDataSource _stopRecordingResponses]):
1177 * WebView.subproj/WebDataSourcePrivate.h:
1178 * WebView.subproj/WebFrame.m:
1179 (-[WebFrame _opened]):
1181 2005-03-18 Ken Kocienda <kocienda@apple.com>
1187 <rdar://problem/4053729> Copy/paste of page with frames into Blot or Mail does nothing and loses insertion point
1189 * WebView.subproj/WebHTMLView.m:
1190 (-[WebHTMLView _selectedArchive]): Wrap frameset documents in an iframe, so they can be pasted into
1191 existing documents which will have a body or frameset of their own.
1195 2005-03-17 Richard Williamson <rjw@apple.com>
1197 Fixed <rdar://problem/4055562> REGRESSION (Tiger): Safari doesn't draw progressively-loaded JPEGs (www.theregister.co.uk, www.titantalk.com)
1199 Anothe side effect of lazy loading of image meta data. We now
1200 don't cache image size until size meta data is actually available.
1204 * WebCoreSupport.subproj/WebImageData.m:
1205 (-[WebImageData size]):
1207 2005-03-16 David Harrison <harrison@apple.com>
1211 <rdar://problem/4048506> Deleting from beginning of editable div deletes other document elements
1213 Also changed WebCore.
1215 * WebView.subproj/WebHTMLView.m:
1216 (-[WebHTMLView _shouldDeleteRange:]):
1217 Added call to new bridge method canDeleteRange.
1219 2005-03-16 Ken Kocienda <kocienda@apple.com>
1225 <rdar://problem/4042935> undo doesn't work properly during inline input
1227 * WebView.subproj/WebHTMLView.m:
1228 (-[WebHTMLView setMarkedText:selectedRange:]): Call new -[WebCoreBridge replaceMarkedTextWithText:] instead of
1229 -[WebCoreBridge replaceSelectionWithText:selectReplacement:smartReplace:]. The former call was just added in
1230 order to provide a better mapping of international text input onto the typing command/undo design.
1232 2005-03-15 Richard Williamson <rjw@apple.com>
1234 Fixed <rdar://problem/4040321> Exception: Someone's trying to encode a WebDataRequestParameters instance
1236 If client mutates request use new Foundation SPI to address remove applewebdata properties from request.
1238 Reviewed by Ken Kocienda.
1240 * WebView.subproj/WebBaseResourceHandleDelegate.m:
1241 (-[WebBaseResourceHandleDelegate willSendRequest:redirectResponse:]):
1242 * WebView.subproj/WebDataProtocol.h:
1243 * WebView.subproj/WebDataProtocol.m:
1244 (+[NSURLRequest _webDataRequestPropertyKey]):
1246 2005-03-15 Ken Kocienda <kocienda@apple.com>
1252 <rdar://problem/4052642> Each delete keystroke is in its own undo group; not included in undo group with other typing
1254 Calling -[WebCore setSelectedDOMRange:range affinity:] had the result of "closing" any active set of typing
1255 keystrokes grouped together in a single undo operation. My change on 27 Jan to route delete keystrokes
1256 through _deleteRange:killRing:... made this feature regress. Previous to that change, the backwards delete
1257 key went through separate code that is no longer in the tree that did not set the selection in the way
1260 The solution is to add an extra argument to the set-selection call. The WebCoreBridge now offers this method:
1261 -[WebCore setSelectedDOMRange:range affinity:closeTyping:]. Now, callers must indicate whether setting the
1262 selection will act to close typing or not. The code changes below all add this new argument with the
1263 appropriate value for closeTyping.
1265 * WebView.subproj/WebHTMLView.m:
1266 (-[WebHTMLView _deleteRange:killRing:prepend:smartDeleteOK:deletionAction:]): Passes NO for closeTyping when
1267 deletionAction is deleteKeyAction or forwardDeleteKeyAction; YES when deleteSelectionAction.
1268 (-[WebHTMLView _expandSelectionToGranularity:]): Passes YES for closeTyping.
1269 (-[WebHTMLView selectToMark:]): Passes YES for closeTyping.
1270 (-[WebHTMLView swapWithMark:]): Passes YES for closeTyping.
1271 (-[WebHTMLView transpose:]): Passes YES for closeTyping.
1272 (-[WebHTMLView _selectMarkedText]): Passes NO for closeTyping.
1273 (-[WebHTMLView _selectRangeInMarkedText:]): Passes NO for closeTyping.
1274 * WebView.subproj/WebView.m:
1275 (-[WebView setSelectedDOMRange:affinity:]): Passes YES for closeTyping.
1277 2005-03-14 Richard Williamson <rjw@apple.com>
1279 Fix <rdar://problem/4051389> 8A413: gifs animating too fast
1283 Match Mozilla's policy for minimum frame duration, which is somewhat odd:
1285 <= 0.01 sec use .1 sec, otherwise use specified duration.
1287 * WebCoreSupport.subproj/WebImageData.m:
1288 (-[WebImageData _frameDurationAt:]):
1290 2005-03-14 Darin Adler <darin@apple.com>
1292 Reviewed by Harrison.
1294 - fixed <rdar://problem/4049776> Seed: Mail: Disable spellcheck leaves red artifacts
1296 * WebView.subproj/WebFrameInternal.h: Added _unmarkAllMisspellings.
1297 * WebView.subproj/WebFrame.m: (-[WebFrame _unmarkAllMisspellings]): Added.
1298 Calls unmarkAllMisspellings on the bridge and self and all subframes.
1300 * WebView.subproj/WebView.m: (-[WebView setContinuousSpellCheckingEnabled:]):
1301 Call _unmarkAllMisspellings on the main frame when turning continuous spell checking off.
1303 2005-03-14 Richard Williamson <rjw@apple.com>
1305 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
1307 The Acrobat application triggers loads of new documents in it's policy delegate. This
1308 ultimately causes the WebHTMLView to be released before their event handlers have
1309 returned. To bullet proof against this case we retain/release self before passing
1310 the event on for further handling.
1314 * WebView.subproj/WebHTMLView.m:
1315 (-[WebHTMLView _updateMouseoverWithEvent:]):
1316 (-[WebHTMLView scrollWheel:]):
1317 (-[WebHTMLView mouseDown:]):
1318 (-[WebHTMLView mouseDragged:]):
1319 (-[WebHTMLView mouseUp:]):
1320 (-[WebHTMLView keyDown:]):
1321 (-[WebHTMLView keyUp:]):
1322 (-[WebHTMLView performKeyEquivalent:]):
1324 2005-03-14 Vicki Murley <vicki@apple.com>
1326 - roll out the fix for 4040321, since it is still pending CCC review.
1328 2005-03-10 Richard Williamson <rjw@apple.com>
1330 Fixed <rdar://problem/4040321> Exception: Someone's trying to encode a WebDataRequestParameters instance
1334 If a delegate returns a mutated applewebdata: request in it's willSendRequest:
1335 method, we don't load using the WebDataRequest. Instead we do a normal load.
1336 Unfortunately, if the request they return is mutated *copy* of the applewebdata:
1337 request it will hold the applewebdata: special properties. These properties
1338 will be encoded into the cache. They should not be. So, to fix, we sanitize the
1339 request, by removing the special properties from the request.
1341 Note that we had to dig into the private guts of NSURLRequest because there is
1342 no public mechanism to remove properties from a request, see 4046775.
1344 * WebView.subproj/WebBaseResourceHandleDelegate.m:
1345 (-[WebBaseResourceHandleDelegate willSendRequest:redirectResponse:]):
1346 * WebView.subproj/WebDataProtocol.h:
1347 * WebView.subproj/WebDataProtocol.m:
1348 (-[NSURLRequest _webDataRequestExternalRequest]):
1349 (-[NSURLRequest _webDataRequestSanitize]):
1353 2005-03-13 Darin Adler <darin@apple.com>
1355 Reviewed by Ken and Maciej.
1357 - fixed <rdar://problem/4049040> REGRESSION (403-405): security check prevents user stylesheet from loading (Dictionary.app doesn't work at all!)
1359 * Plugins.subproj/WebNetscapePluginStream.m: (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
1360 Allow plug-in subresource streams to load with any URL, ignoring the "canLoadURL" method's restriction (only
1361 file URLs can load other file URLs), which now applies only to main resources, like web pages in frames or
1362 object tags and plug-in main resources.
1364 * WebCoreSupport.subproj/WebBridge.m:
1365 (-[WebBridge startLoadingResource:withURL:customHeaders:]): Allow subresources to load with any URL, as above.
1366 This allows things like images, stylesheets, and JavaScript to be loaded without the "canLoadURL" method's
1368 (-[WebBridge startLoadingResource:withURL:customHeaders:postData:]): Ditto.
1369 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]): Ditto.
1371 2005-03-10 Richard Williamson <rjw@apple.com>
1373 Fixed <rdar://problem/4040321> Exception: Someone's trying to encode a WebDataRequestParameters instance
1377 If a delegate returns a mutated applewebdata: request in it's willSendRequest:
1378 method, we don't load using the WebDataRequest. Instead we do a normal load.
1379 Unfortunately, if the request they return is mutated *copy* of the applewebdata:
1380 request it will hold the applewebdata: special properties. These properties
1381 will be encoded into the cache. They should not be. So, to fix, we sanitize the
1382 request, by removing the special properties from the request.
1384 Note that we had to dig into the private guts of NSURLRequest because there is
1385 no public mechanism to remove properties from a request, see 4046775.
1387 * WebView.subproj/WebBaseResourceHandleDelegate.m:
1388 (-[WebBaseResourceHandleDelegate willSendRequest:redirectResponse:]):
1389 * WebView.subproj/WebDataProtocol.h:
1390 * WebView.subproj/WebDataProtocol.m:
1391 (-[NSURLRequest _webDataRequestExternalRequest]):
1392 (-[NSURLRequest _webDataRequestSanitize]):
1396 2005-03-10 Maciej Stachowiak <mjs@apple.com>
1400 <rdar://problem/4046510> REGRESSION (TOT): All Flash and Shockwave plugin-based web content missing
1402 * Plugins.subproj/WebNetscapePluginStream.m:
1403 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
1405 2005-03-10 John Sullivan <sullivan@apple.com>
1409 - fixed <rdar://problem/4045843> Going back/forward to error page
1410 hits assertion in -[WebDataSource(WebPrivate) _setData:]
1412 * WebView.subproj/WebDataSource.m:
1413 (-[WebDataSource _setData:]):
1414 Removed bogus assertion
1416 2005-03-09 Deborah Goldsmith <goldsmit@apple.com>
1420 - fixed <rdar://problem/3997044> default encoding for non-Latin incorrect
1422 * WebKit/WebView.subproj/WebPreferences.m: (+[WebPreferences _systemCFStringEncoding]):
1423 Call __CFStringGetUserDefaultEncoding to get region, and TECGetWebTextEncodings to get
1424 the first encoding to determine the default encoding.
1426 2005-03-09 Darin Adler <darin@apple.com>
1428 Reviewed by Richard.
1430 - fixed <rdar://problem/4034175> REGRESSION (Mail): Can't use any font with style Light/Condensed/Semibold/Extrabold, etc
1432 * WebView.subproj/WebHTMLView.m:
1433 (-[WebHTMLView _styleFromFontAttributes:]): Use a constant instead of hard-coded weight for clarity.
1434 (-[WebHTMLView _originalFontA]): Ditto.
1435 (-[WebHTMLView _originalFontB]): Ditto.
1436 (-[WebHTMLView _addToStyle:fontA:fontB:]): Add code to detect the case where the family name is not good enough
1437 to specify the font precisely. In that case, use the Postscript font name instead. Also change variable names
1438 so it's easier to understand the method.
1440 2005-03-06 Maciej Stachowiak <mjs@apple.com>
1444 <rdar://problem/4005575> Arbitrary file disclosure vulnerability due to ability to load local html from remote content
1446 * Plugins.subproj/WebBaseNetscapePluginView.m:
1447 (-[WebBaseNetscapePluginView requestWithURLCString:]):
1448 * Plugins.subproj/WebNetscapePluginEmbeddedView.m:
1449 (-[WebNetscapePluginEmbeddedView didStart]):
1450 * Plugins.subproj/WebNetscapePluginStream.m:
1451 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
1452 * WebCoreSupport.subproj/WebBridge.m:
1453 (-[WebBridge createWindowWithURL:frameName:]):
1454 (-[WebBridge startLoadingResource:withURL:customHeaders:]):
1455 (-[WebBridge startLoadingResource:withURL:customHeaders:postData:]):
1456 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
1457 (-[WebBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]):
1458 (-[WebBridge postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
1459 (-[WebBridge createChildFrameNamed:withURL:referrer:renderPart:allowsScrolling:marginWidth:marginHeight:]):
1460 (-[WebBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:]):
1461 * WebView.subproj/WebFrame.m:
1462 (-[WebFrame _loadURL:referrer:intoChild:]):
1463 * WebView.subproj/WebFramePrivate.h:
1465 2005-03-09 Richard Williamson <rjw@apple.com>
1467 Fixed <rdar://problem/4032938> Safari: text layout for MS P Gothic font is corrupted
1469 The AppKit and ATS reports that MS P Gothic is fixed pitch. It is
1470 not! This is another case of "fixed pitch" being wrong. I've
1471 coalesced all the special cases into our isFontFixedPitch:, and
1472 used a dictionary to improve speed. No performance regression.
1476 * WebCoreSupport.subproj/WebTextRenderer.m:
1477 (-[WebTextRenderer _computeWidthForSpace]):
1478 * WebCoreSupport.subproj/WebTextRendererFactory.m:
1479 (-[WebTextRendererFactory clearCaches]):
1480 (-[WebTextRendererFactory isFontFixedPitch:]):
1482 2005-03-09 Darin Adler <darin@apple.com>
1486 <rdar://problem/4040388> REGRESSION (172-173): nonrepro crash in -[NSString(WebNSURLExtras) _web_isUserVisibleURL]
1488 * Misc.subproj/WebNSURLExtras.m:
1489 (-[NSString _web_isUserVisibleURL]): Fixed some pointer expressions that didn't include the index in the expression.
1490 (readIDNScriptWhiteListFile): Removed NSLog statements in here since we decided they aren't useful and they will
1491 write some messages on Tiger.
1493 2005-03-09 Darin Adler <darin@apple.com>
1495 * DOM.subproj/DOMPrivate.h: Checked in file copied from WebCore.
1497 2005-03-08 Richard Williamson <rjw@apple.com>
1499 Fixed <rdar://problem/4036949> many JPEG images fail to incremental-load due to change in ImageIO JPEG header parsing (to be fixed in WebKit)
1500 Fixed <rdar://problem/4042570> Need to check image properties for presence of width/height properties
1502 ImageIO-55 changed how image properties are created. They
1503 are now created incrementally. So we need "re-get" the image
1504 properties if the properties we care about (width/height) aren't
1505 in the property dictionary.
1509 * WebCoreSupport.subproj/WebImageData.h:
1510 * WebCoreSupport.subproj/WebImageData.m:
1511 (-[WebImageData init]):
1512 (-[WebImageData fileProperties]):
1513 (-[WebImageData propertiesAtIndex:]):
1514 (-[WebImageData _isSizeAvailable]):
1515 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
1516 (-[WebImageData size]):
1518 2005-03-08 John Sullivan <sullivan@apple.com>
1520 A couple of tweaks to the previous patch, from Darin's review.
1522 * Misc.subproj/WebNSPasteboardExtras.m:
1523 (_writableTypesForImageWithoutArchive):
1524 remove unnecessary _web prefix
1525 (_writableTypesForImageWithArchive):
1527 (+[NSPasteboard _web_writableTypesForImageIncludingArchive:]):
1528 use mutableCopy rather than initWithArray:, and adjust for name changes
1530 2005-03-08 John Sullivan <sullivan@apple.com>
1534 - fixed <rdar://problem/4031826> REGRESSION (Mail): standalone images from
1535 Safari can't be pasted into Mail (WebKit part of fix)
1537 We were always declaring webarchive-related pasteboard types, even in the standalone
1538 image cases where we had no webarchive. Unfortunately, the WebView pasteboard-related
1539 API doesn't prevent this kind of thing from happening, because the code that
1540 declares the types isn't guaranteed to be anywhere near the code that writes
1541 the pasteboard data.
1543 After this fix, I discovered that pasting standalone images into Mail still doesn't
1544 work right, but the remaining issues seem to be entirely in Mail. I wrote up 4041671
1547 * Misc.subproj/WebNSPasteboardExtras.h:
1548 (+[NSPasteboard _web_writableTypesForImageIncludingArchive:]):
1549 Added boolean parameter; clients must specify whether or not there's an
1550 archive involved, because the array of types is different if there is.
1552 * Misc.subproj/WebNSPasteboardExtras.m:
1553 (_web_writableTypesForImageWithoutArchive):
1554 new static function, constructs (once) and returns the array of types
1555 for images that don't have archives
1556 (_web_writableTypesForImageWithArchive):
1557 new static function, constructs (once) and returns the array of types
1558 for images that do have archives
1559 (+[NSPasteboard _web_writableTypesForImageIncludingArchive:]):
1560 added boolean parameter, now calls one of the two new static functions
1562 (-[NSPasteboard _web_writeImage:URL:title:archive:types:]):
1563 added asserts that we aren't declaring the archive types if we don't have archive data
1565 (-[NSPasteboard _web_declareAndWriteDragImage:URL:title:archive:source:]):
1566 updated to pass parameter to _web_writableTypesForImageIncludingArchive:
1568 * WebView.subproj/WebDefaultContextMenuDelegate.m:
1569 (-[WebDefaultUIDelegate copyImageToClipboard:]):
1570 updated to pass parameter to _web_writableTypesForImageIncludingArchive:
1572 * WebView.subproj/WebImageView.m:
1573 (-[WebImageView copy:]):
1574 updated to pass parameter to _web_writableTypesForImageIncludingArchive:
1576 * WebView.subproj/WebView.m:
1577 (-[WebView pasteboardTypesForElement:]):
1578 updated to pass parameter to _web_writableTypesForImageIncludingArchive:
1580 2005-03-07 Richard Williamson <rjw@apple.com>
1582 More bullet proofing for <rdar://problem/4038304> CrashTracer: ....9 crashes at com.apple.WebKit: -[WebTextRenderer initWithFont:usingPrinterFont:] + 840
1584 Protect against removal of Times and Times New Roman from
1585 system. If these fonts are removed attempt to get system font
1586 instead of FATAL_ALWAYS.
1590 * WebCoreSupport.subproj/WebTextRenderer.m:
1591 (-[WebTextRenderer initWithFont:usingPrinterFont:]):
1595 2005-03-06 Darin Adler <darin@apple.com>
1597 - fixed obvious mistake in IDN script code (luckily it hasn't been in a submission yet!)
1599 * Misc.subproj/WebNSURLExtras.m: (readIDNScriptWhiteListFile): Use "index" to index into the array,
1600 not "script", which is the script number, not the 32-bit-word index.
1602 2005-03-05 Kevin Decker <kdecker@apple.com>
1606 Fixed: <rdar://problem/4038529> Infinite progress bar loading webcams and other sites that use multipart/x-mixed-replace
1608 The previous patch I landed prevented us from loading multipart/x-mixed-replace but did not always update the progress bar accordingly.
1609 This stops websites from having seemingly infinite progress in the browser UI.
1611 * WebCoreSupport.subproj/WebSubresourceClient.m:
1612 (-[WebSubresourceClient didReceiveResponse:]): If this is "multipart/x-mixed-replace", remove the WebBaseResourceHandleDelegate client from
1613 the datasource's subresource array, otherwise -[WebDataSource isLoading] incorrectly returns YES. Also it's possible at this point in
1614 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
1615 in fact we're complete.
1616 * WebView.subproj/WebMainResourceClient.m:
1617 (-[WebMainResourceClient connection:didReceiveResponse:]): ditto
1619 2005-03-05 Richard Williamson <rjw@apple.com>
1621 Fixed panther build problem. Shouldn't include
1622 changes for 3968753 on panther.
1626 * WebView.subproj/WebView.m:
1627 (-[WebView _commonInitializationWithFrameName:groupName:]):
1629 2005-03-05 Darin Adler <darin@apple.com>
1633 - fixed <rdar://problem/4034603> REGRESSION (185-188): RadarWeb can't send enclosures anymore
1635 * WebView.subproj/WebFormDataStream.m:
1636 (closeCurrentStream): Release currentData when closing the stream.
1637 (advanceCurrentStream): Set up and retain currentData when the current stream is reading that data, so the
1638 data won't be released while in use.
1639 (formCreate): Initialize currentData to NULL.
1641 - fixed <rdar://problem/4037562> Tiger8A402: Help Viewer crashed when viewing help for iChat (infinite recursion in WebView)
1643 * WebView.subproj/WebView.m: (-[WebView _responderValidateUserInterfaceItem:]):
1644 Check for the case where we ourselves are the responder. This avoids an infinite loop.
1645 The actual code to perform operations avoids this with a global variable, but this lighter weight
1646 solution is sufficient here because validate operations don't call through to the next responder.
1648 2005-03-04 Richard Williamson <rjw@apple.com>
1650 Fixed <rdar://problem/3968753> REGRESSION: Poor performance with differing multiple animated GIFs (was fast in Panther)
1652 Disable coalesced updates (in CG). This restores the
1655 Reviewed by David Harrison.
1657 * WebView.subproj/WebView.m:
1658 (-[WebView _commonInitializationWithFrameName:groupName:]):
1660 2005-03-04 Adele Amchan <adele@apple.com>
1664 * English.lproj/StringsNotToBeLocalized.txt: added new strings "text/x-vcf" and "text/x-csv" to the list
1666 2005-03-04 Adele Amchan <adele@apple.com>
1670 Fix for <rdar://problem/4032982> Sun iPlanet app: not able to import AddressBook CSV format addresses properly
1671 Fix for <rdar://problem/4032985> Sun iPlanet app: not able to import vCard format addresses properly
1673 * WebView.subproj/WebTextView.m:
1674 (+[WebTextView unsupportedTextMIMETypes]): added "text/x-csv" and "text/x-vcf" to the list of MIME types that our text view doesn't handle
1676 2005-03-04 Darin Adler <darin@apple.com>
1680 - fixed <rdar://problem/4036817> REGRESSION: ctrl-y broken when a line + carriage return cut
1682 * WebView.subproj/WebHTMLView.m:
1683 (-[WebHTMLView _deleteRange:killRing:prepend:smartDeleteOK:deletionAction:]): Merged _handleKillRing behavior
1684 into this function, since there's now a more-complicated way the startNewKillRingSequence boolean needs to
1685 be handled. Set the startNewKillRingSequence boolean after the entire process so changing the selection before
1686 and during the editing dosn't clear it. Also change "isTypingAction" parameter to "deletionAction" so we can
1687 handle forward delete with this method.
1688 (-[WebHTMLView _deleteSelection]): Pass deleteSelectionAction for action rather than NO for isTypingAction,
1689 which is the way to say the same thing using the new parameter.
1690 (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]): Refactor to use the _deleteRange
1691 method above. Also calls _shouldDeleteRange: for the pre-existing selection case; not doing that before was
1693 (-[WebHTMLView deleteToMark:]): Pass deleteSelectionAction for action rather than NO for isTypingAction,
1694 which is the way to say the same thing using the new parameter.
1696 2005-03-04 Darin Adler <darin@apple.com>
1700 - fixed <rdar://problem/4020413> REGRESSION (Mail): can't use fonts with names that start with "#" in Mail (Korean fonts)
1702 * WebView.subproj/WebHTMLView.m:
1703 (-[WebHTMLView _styleFromFontAttributes:]): Quote font name when calling setFontFamily.
1704 (-[WebHTMLView _addToStyle:fontA:fontB:]): Ditto.
1706 2005-03-04 Darin Adler <darin@apple.com>
1710 - fixed <rdar://problem/3965666> IDN spoofing vulnerability caused by Unicode characters that look like ASCII characters
1712 * Misc.subproj/WebNSURLExtras.m:
1713 (readIDNScriptWhiteListFile): Added. Reads file and parses script names.
1714 (readIDNScriptWhiteList): Added. Calls readIDNScriptWhiteList on each of the white list locations in succession.
1715 (allCharactersInIDNScriptWhiteList): Renamed from containsPossibleLatinLookalikes and changed sense.
1716 Now calls readIDNScriptWhiteList first time, and then uses the read-in list to check the scripts.
1717 (-[NSString _web_mapHostNameWithRange:encode:makeString:]): Call allCharactersInIDNScriptWhiteList instead of
1718 containsPossibleLatinLookalikes.
1719 * Resources/IDNScriptWhiteList.txt: Added.
1720 * WebKit.pbproj/project.pbxproj: Added IDNScriptWhiteList.txt file.
1722 * Misc.subproj/WebKitLocalizableStrings.m: Removed. This is simply unused.
1723 * English.lproj/StringsNotToBeLocalized.txt: Updated for recent changes.
1725 2005-03-04 Darin Adler <darin@apple.com>
1729 - fixed <rdar://problem/3937667> REGRESSION (Mail): Zooming a window from titlebar button doesn't paint newly-exposed portions of window
1731 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView _recursiveDisplayAllDirtyWithLockFocus:visRect:]):
1732 Re-set-up the visRect if the bounds changes due to layout.
1736 2005-03-03 Jens Alfke <jens@apple.com>
1740 <rdar://problem/3991818> REGRESSION: Images scale while loading
1741 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.
1743 * WebCoreSupport.subproj/WebImageData.m:
1744 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
1746 2005-03-01 David Hyatt <hyatt@apple.com>
1748 Fix for 3841186, scrollbar shows up disabled when it should not appear at all. Make sure updateScrollers
1749 is never allowed to be re-entrant from any call point by moving the guard inside the function itself.
1751 Reviewed by John Sullivan
1753 * WebView.subproj/WebDynamicScrollBarsView.m:
1754 (-[WebDynamicScrollBarsView updateScrollers]):
1755 (-[WebDynamicScrollBarsView reflectScrolledClipView:]):
1757 2005-03-02 Chris Blumenberg <cblu@apple.com>
1759 Fixed: <rdar://problem/4029010> Expose method to retrieve drag image for WebView's selection
1761 Reviewed by sullivan.
1763 * WebView.subproj/WebHTMLView.m:
1764 (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]): call _selectionDraggingImage
1765 (-[WebHTMLView _selectionDraggingImage]): new SPI for Mail, factored from previous method
1766 (-[WebHTMLView _selectionDraggingRect]): new SPI for Mail
1767 * WebView.subproj/WebHTMLViewPrivate.h:
1769 2005-03-02 John Sullivan <sullivan@apple.com>
1773 - fixed <rdar://problem/4023337> Safari stops loading any page (-[NSCFDictionary setObject:forKey:]:
1774 attempt to insert nil key)
1776 It is very likely that the exception being hit is caused by the same problem as WebFoundation
1777 bug 4018486. This change makes the code robust against this kind of problem regardless.
1779 * WebView.subproj/WebBaseResourceHandleDelegate.m:
1780 (-[WebBaseResourceHandleDelegate saveResource]):
1781 Don't call addSubresource if newly-created resource is nil (but do assert on debug builds).
1782 Also assert that originalURL and MIMEType are not nil.
1784 * WebView.subproj/WebDataSource.m:
1785 (-[WebDataSource addSubresource:]):
1786 Don't add nil subresource to dictionary, but do assert on debug builds.
1790 2005-03-01 John Sullivan <sullivan@apple.com>
1794 - fixed <rdar://problem/3987482> Format>Style>Italic is not enabled when a
1795 compose window is empty (works in Blot)
1797 * WebView.subproj/WebHTMLView.m:
1798 (-[WebHTMLView becomeFirstResponder]):
1799 call _updateFontPanel here so NSFontManager knows the right font for the menu
1800 items and the font panel
1802 2005-03-01 David Harrison <harrison@apple.com>
1806 <rdar://problem/3915560> Mail would like an SPI to enable "smart" text paste/drop
1808 * WebView.subproj/WebHTMLView.m:
1809 (-[WebHTMLView _smartDeleteRangeForProposedRange:]):
1810 (-[WebHTMLView _smartInsertForString:replacingRange:beforeString:afterString:]):
1813 2005-02-28 John Sullivan <sullivan@apple.com>
1817 - WebKit part of fix for <rdar://problem/4023490> REGRESSION (125-185): Tabbing through links
1818 on frameset page gets stuck at end (tivofaq.com)
1820 This tab-to-links stuff has been in shaky condition ever since AppKit futzed with
1821 tabbing behavior in Tiger to add support for including the toolbar in the key loop.
1822 I made some changes months ago to compensate for that, but some cases, such as this
1823 one, still weren't fixed.
1825 * WebCoreSupport.subproj/WebBridge.m:
1826 (-[WebBridge _nextKeyViewOutsideWebFrameViewsWithValidityCheck:]):
1827 new bottleneck method, extracted from nextKeyViewOutsideWebFrameViews; handles
1828 nextKeyView or nextValidKeyView depending on parameter.
1829 (-[WebBridge nextKeyViewOutsideWebFrameViews]):
1830 now calls extracted method
1831 (-[WebBridge nextValidKeyViewOutsideWebFrameViews]):
1832 new method, calls new bottleneck method
1834 * WebView.subproj/WebHTMLView.m:
1835 (-[WebHTMLView nextValidKeyView]):
1836 when we're stuck at the end of a nextKeyView chain inside a nexted frame, use
1837 nextValidKeyViewOutsideWebFrameViews. Make sure we don't end up looking inside
1838 the web frame views while doing this.
1840 2005-02-25 Darin Adler <darin@apple.com>
1844 - fixed <rdar://problem/4025088> window onblur and onfocus don't fire when text field has focus
1846 * WebView.subproj/WebHTMLView.m:
1847 (-[WebHTMLView updateFocusState]): Renamed from updateFocusDisplay. Added call to setWindowHasFocus: method.
1848 (-[WebHTMLView viewDidMoveToWindow]): Call method by new name.
1849 (-[WebHTMLView windowDidBecomeKey:]): Ditto.
1850 (-[WebHTMLView windowDidResignKey:]): Ditto.
1851 (-[WebHTMLView becomeFirstResponder]): Ditto.
1852 (-[WebHTMLView resignFirstResponder]): Ditto.
1856 2005-02-25 Richard Williamson <rjw@apple.com>
1858 Fixed <rdar://problem/4000962> 8A375: Help Viewer displays voiced sound and semi-voiced characters strangely (characters don't seem to be composed)
1860 Added special case for voiced marks.
1864 * WebCoreSupport.subproj/WebTextRenderer.m:
1865 (widthForNextCharacter):
1867 2005-02-25 Darin Adler <darin@apple.com>
1871 - fixed <rdar://problem/4019823> Seed: Control-Y doesn't work
1873 * WebView.subproj/WebHTMLView.m:
1874 (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]): Call _handleKillRing
1875 after setting the selection, since it uses the selection to get the text.
1876 (-[WebHTMLView _insertText:selectInsertedText:]): Check for empty string to avoid an assertion
1877 on the other side of the bridge when you yank the empty string.
1879 2005-02-24 Richard Williamson <rjw@apple.com>
1881 Fixed <rdar://problem/3382926> Bidi neutrals at RTL/LTR boundaries not handled correctly.
1883 If directionality is specified use that as initial directionality,
1884 rather than neutral directionality.
1888 * WebCoreSupport.subproj/WebTextRenderer.m:
1889 (widthForNextCharacter):
1891 2005-02-24 Adele Amchan <adele@apple.com>
1895 Fix for <rdar://problem/4023393> Safari crashed in khtml::RenderObject::repaintAfterLayoutIfNeeded(QRect const&, QRect const&)
1897 We were crashing after hitting PageDown when viewing a pdf because
1898 WebKit was calling over to WebCore to scroll overflow areas.
1899 Since this only needs to be done if we're dealing with a WebHTMLView,
1900 I added a wrapper function to check the documentView before calling
1903 * WebView.subproj/WebFrameView.m:
1904 (-[WebFrameView _scrollOverflowInDirection:granularity:]): added wrapper function that checks if documentView is a WebHTMLView
1905 (-[WebFrameView scrollToBeginningOfDocument:]): uses new wrapper function now
1906 (-[WebFrameView scrollToEndOfDocument:]): uses new wrapper function now
1907 (-[WebFrameView _pageVertically:]): uses new wrapper function now
1908 (-[WebFrameView _pageHorizontally:]): uses new wrapper function now
1909 (-[WebFrameView _scrollLineVertically:]): uses new wrapper function now
1910 (-[WebFrameView _scrollLineHorizontally:]): uses new wrapper function now
1912 2005-02-24 Richard Williamson <rjw@apple.com>
1914 Fixed <rdar://problem/3985889> REGRESSION (125-180): setting <img> src to GIF that already animated does not animate; just shows final frame
1918 * WebCoreSupport.subproj/WebImageData.h:
1919 * WebCoreSupport.subproj/WebImageData.m:
1920 (-[WebImageData resetAnimation]):
1921 * WebCoreSupport.subproj/WebImageRenderer.m:
1922 (-[WebImageRenderer resetAnimation]):
1923 (-[WebInternalImage resetAnimation]):
1924 (-[WebImageRenderer drawImageInRect:fromRect:compositeOperator:context:]):
1926 2005-02-24 Kevin Decker <kdecker@apple.com>
1930 Fixed <rdar://problem/3962401> Don't load multipart/x-mixed-replace content to prevent memory leak
1932 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.
1934 * WebView.subproj/WebMainResourceClient.m:
1935 (-[WebMainResourceClient connection:didReceiveResponse:]): Disabled loading of multipart/x-mixed-replace content until we fully implement server side push.
1936 * WebCoreSupport.subproj/WebSubresourceClient.m:
1937 (-[WebSubresourceClient didReceiveResponse:]): Ditto. Same exact thing for sub resources.
1940 2005-02-23 John Sullivan <sullivan@apple.com>
1944 - fixed <rdar://problem/4021370> REGRESSION (Tiger): WebKit part of fix for
1945 shift-tab on tivofaq doing the wrong thing
1947 * WebView.subproj/WebFrameView.m:
1948 (-[WebFrameView becomeFirstResponder]):
1949 If our previousValidKeyView is nil or self (same as nil modulo AppKit oddness),
1950 look out of the box and get the previousValidKeyView of our webview.
1952 2005-02-23 Darin Adler <darin@apple.com>
1956 - fixed <rdar://problem/4010196> REGRESSION (125-186+): 8-character timestamps in gmail wrap to 2 lines (width:8ex; font-size:80%)
1958 * WebCoreSupport.subproj/WebTextRenderer.m: (-[WebTextRenderer xHeight]): Return the maximum
1959 of the "x" height and width. Comment in the code explains why in more detail.
1961 2005-02-22 Richard Williamson <rjw@apple.com>
1963 Fixed <rdar://problem/3937203> when a div adds a scrollbar (overflow:auto) we do not get regions
1965 Compare regions after automatice scroll regions have been
1970 * WebCoreSupport.subproj/WebBridge.h:
1971 * WebCoreSupport.subproj/WebBridge.m:
1972 (-[WebBridge dealloc]):
1973 (-[WebBridge _compareDashboardRegions:]):
1974 (-[WebBridge dashboardRegionsChanged:]):
1976 2005-02-22 Richard Williamson <rjw@apple.com>
1978 Fixed <rdar://problem/4012463> Dashboard widgets don't work with authenticating proxies
1980 Added new SPI for dashboard that just calls default delegate
1985 * WebView.subproj/WebView.m:
1986 (-[WebView handleAuthenticationForResource:challenge:fromDataSource:]):
1987 * WebView.subproj/WebViewPrivate.h:
1989 2005-02-22 Chris Blumenberg <cblu@apple.com>
1993 * WebCoreSupport.subproj/WebBridge.m:
1994 (-[WebBridge issuePasteAndMatchStyleCommand]): support for new "PasteAndMatchStyle" exec command
1998 2005-02-21 David Harrison <harrison@apple.com>
2002 <rdar://problem/3943090> REGRESSION (Mail): Spelling underline incompletely erased following certain steps
2004 * WebCoreSupport.subproj/WebTextRenderer.m:
2005 (-[WebTextRenderer misspellingLineThickness]):
2006 (-[WebTextRenderer misspellingLinePatternWidth]):
2007 Replaced #defines with these methods, so others can get the same info.
2009 (-[WebTextRenderer drawLineForMisspelling:withWidth:]):
2010 Keep underline within originally specified bounds.
2013 2005-02-21 Darin Adler <darin@apple.com>
2017 - fixed <rdar://problem/4016358> don't ever display IDN URLs with characters from "possible Latin look-alike" scripts
2019 * Misc.subproj/WebNSURLExtras.m:
2020 (containsPossibleLatinLookalikes): Added.
2021 (-[NSString _web_mapHostNameWithRange:encode:makeString:]): Call containsPossibleLatinLookalikes, and if true,
2022 don't decode the host name.
2024 2005-02-19 Kevin Decker <kdecker@apple.com>
2028 Fixed <rdar://problem/4010765> Flash player can be used to arbitrarily open popup windows without user permission
2030 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.
2032 * Plugins.subproj/WebBaseNetscapePluginView.h: Addded currentEventIsUserGesture boolean ivar.
2033 * Plugins.subproj/WebBaseNetscapePluginView.m:
2034 (-[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.
2035 (-[WebBaseNetscapePluginView initWithFrame:]): In our asynchronous load, pass along currentEventIsUserGesture to the PluginRequest.
2036 (-[WebBaseNetscapePluginView evaluateJavaScriptPluginRequest:]): Inform WebCore if this was a user originated gesture when calling executeScript().
2037 (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]):
2038 (-[WebPluginRequest initWithRequest:frameName:notifyData:sendNotification:didStartFromUserGesture:]):
2039 (-[WebPluginRequest isCurrentEventUserGesture]): Added.
2041 2005-02-18 Chris Blumenberg <cblu@apple.com>
2043 Fixed: <rdar://problem/3945271> REGRESSION (Mail): pasted plain text should pick up typing style instead of being unstyled
2045 Reviewed by kocienda.
2047 * WebView.subproj/WebDataSource.m:
2048 (-[WebDataSource _replaceSelectionWithArchive:selectReplacement:]): pass NO for matchStyle to replaceSelection
2049 * WebView.subproj/WebHTMLView.m:
2050 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:chosePlainText:]): return new chosePlainText parameter
2051 (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]): pass chosePlainText for matchStyle to replaceSelection
2052 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): ditto
2054 2005-02-17 Richard Williamson <rjw@apple.com>
2056 Removed code that should not have been checked in from
2059 * WebCoreSupport.subproj/WebTextRendererFactory.m:
2060 (-[WebTextRendererFactory isFontFixedPitch:]):
2062 2005-02-17 Richard Williamson <rjw@apple.com>
2064 Fixed <rdar://problem/3999467> when Osaka-Mono is specified as fixed width font, Osaka used instead
2066 Fixed w/o introducing a performance regression.
2068 Reviewed by Vicki (and earlier by Dave Harrison).
2070 * WebCoreSupport.subproj/WebTextRenderer.m:
2071 (-[WebTextRenderer _computeWidthForSpace]):
2072 (widthForNextCharacter):
2073 * WebCoreSupport.subproj/WebTextRendererFactory.h:
2074 * WebCoreSupport.subproj/WebTextRendererFactory.m:
2075 (-[NSFont _web_isFakeFixedPitch]):
2076 (-[WebTextRendererFactory isFontFixedPitch:]):
2077 (-[WebTextRendererFactory fontWithFamily:traits:size:]):
2079 2005-02-17 Richard Williamson <rjw@apple.com>
2081 Fixed <rdar://problem/3959304> PDF in img tag is not rendered correctly anymore
2083 We were incorrectly adding image position when flipping coordinates.
2085 Reviewed by David Harrison.
2087 * WebCoreSupport.subproj/WebImageData.m:
2088 (-[WebImageData _PDFDrawFromRect:toRect:operation:alpha:flipped:context:]):
2090 2005-02-17 Richard Williamson <rjw@apple.com>
2092 Fixed <rdar://problem/4007262> Seed: Flight tracker scrolling moves to the left
2094 Added SPI for dashboard to disable wheel scrolling of the WebClipView.
2099 * WebView.subproj/WebClipView.m:
2100 (-[WebClipView _focusRingVisibleRect]):
2101 (-[WebClipView scrollWheel:]):
2102 * WebView.subproj/WebView.m:
2103 (-[WebViewPrivate init]):
2104 (-[WebView drawRect:]):
2105 (-[WebView _dashboardBehavior:]):
2106 * WebView.subproj/WebViewInternal.h:
2107 * WebView.subproj/WebViewPrivate.h:
2111 2005-02-17 Vicki Murley <vicki@apple.com>
2113 - roll out this change, since it causes a 1.5% performance regression
2115 2005-02-15 Richard Williamson <rjw@apple.com>
2117 Fixed <rdar://problem/3999467> when Osaka-Mono is specified as fixed width font, Osaka used instead
2119 Lie about Osaka-Mono. Treat it as fixed pitch, even though,
2120 strictly speaking it isn't. (Similar to what we do with
2123 Reviewed by David Harrison.
2125 * WebCoreSupport.subproj/WebTextRenderer.m:
2126 (-[WebTextRenderer _computeWidthForSpace]):
2127 * WebCoreSupport.subproj/WebTextRendererFactory.h:
2128 * WebCoreSupport.subproj/WebTextRendererFactory.m:
2129 (-[NSFont _web_isFakeFixedPitch]):
2130 (-[WebTextRendererFactory isFontFixedPitch:]):
2131 (-[WebTextRendererFactory fontWithFamily:traits:size:]):
2133 2005-02-17 John Sullivan <sullivan@apple.com>
2137 - fixed <rdar://problem/3997185> The Web view on .Mac Prefs caused System Prefs
2138 to lockup (resolved by re-boot only)
2140 * WebCoreSupport.subproj/WebBridge.m:
2141 (-[WebBridge nextKeyViewOutsideWebFrameViews]):
2142 Don't allow recursion here; assert on debug build, return nil on deployment. I
2143 couldn't get my machine into a state to repro this problem (and neither could the
2144 originator), but it's obvious from the stack crawl that this method was recursing
2145 when it shouldn't have.
2147 2005-02-16 John Sullivan <sullivan@apple.com>
2149 Written by Darin, reviewed by me.
2151 - WebKit part of fix for <rdar://problem/4007384>
2152 FILTER: Bookmark of RSS with Japanese search word & multiple RSS pages loses filter
2154 * DOM.subproj/DOMPrivate.h:
2155 updated this file, which is a copy of the WebCore version
2157 2005-02-16 Richard Williamson <rjw@apple.com>
2159 Fixed <rdar://problem/3966973> Tiger 8A357: Binary Compatiblity: frequent Webstractor.app crashes [WebImageData _nextFrame]
2161 Webstractor.app was playing tricks to create thumbnails of
2162 pages. This caused the 'focusView' to be incorrect during
2163 animated GIF frame rendering.
2167 * WebCoreSupport.subproj/WebImageRenderer.m:
2168 (-[WebImageRenderer _startOrContinueAnimationIfNecessary]):
2170 2005-02-16 Vicki Murley <vicki@apple.com>
2172 Reviewed by me, code change by Darin.
2174 - fixed the build on Panther
2176 * WebView.subproj/WebFormDataStream.m: (webSetHTTPBody):
2177 Added a Panther-specific code path that just loads all the data into one big
2178 NSData object. This means that bug 3686434 won't be fixed on SUPanWheat; we'll
2179 still load the file into memory before sending it to the server on Panther.
2181 2005-02-15 Richard Williamson <rjw@apple.com>
2183 Fixed <rdar://problem/3998368> Tiger8A376: WebTextRenderer assertion failure in Safari while browsing news.bbc.co.uk
2185 Removed use of FATAL_ALWAYS from getUncachedWidth(). It's unclear
2186 why we would trigger the FATAL_ALWAYS. In the past we've seen
2187 the message triggered because of corrupt fonts. Anyway, in this
2188 particular case, we will now return 0 for the character width,
2189 rather than exiting.
2191 Reviewed by David Harrison.
2193 * WebCoreSupport.subproj/WebTextRenderer.m:
2196 2005-02-15 Richard Williamson <rjw@apple.com>
2198 Fixed <rdar://problem/3999467> when Osaka-Mono is specified as fixed width font, Osaka used instead
2200 Lie about Osaka-Mono. Treat it as fixed pitch, even though,
2201 strictly speaking it isn't. (Similar to what we do with
2204 Reviewed by David Harrison.
2206 * WebCoreSupport.subproj/WebTextRenderer.m:
2207 (-[WebTextRenderer _computeWidthForSpace]):
2208 * WebCoreSupport.subproj/WebTextRendererFactory.h:
2209 * WebCoreSupport.subproj/WebTextRendererFactory.m:
2210 (-[NSFont _web_isFakeFixedPitch]):
2211 (-[WebTextRendererFactory isFontFixedPitch:]):
2212 (-[WebTextRendererFactory fontWithFamily:traits:size:]):
2214 2005-02-14 Darin Adler <darin@apple.com>
2218 - fixed <rdar://problem/3686434> Safari uses too much RAM on file upload, leading to malloc errors and crashes (HP printers)
2220 * WebView.subproj/WebFormDataStream.h: Added webSetHTTPBody, which creates and connects an appropriate
2221 stream to an NSMutableURLRequest.
2222 * WebView.subproj/WebFormDataStream.m: Added implementation here.
2224 * WebCoreSupport.subproj/WebBridge.m:
2225 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
2227 * WebCoreSupport.subproj/WebSubresourceClient.m:
2228 (+[WebSubresourceClient startLoadingResource:withURL:customHeaders:postData:referrer:forDataSource:]):
2230 * WebView.subproj/WebFrame.m:
2231 (-[WebFrame _loadItem:withLoadType:]): Use webSetHTTPBody.
2232 (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]): Ditto.
2234 * English.lproj/StringsNotToBeLocalized.txt: Updated for this change and other recent changes.
2236 2005-02-11 Richard Williamson <rjw@apple.com>
2238 Fixed <rdar://problem/4002505> 8A378: Endlessly animating gif's on http://www.entropy.ch
2240 If animated images had no loop count property we were incorrectly
2241 looping forver. Note, that in the course of fixing this bug
2242 I found that ImageIO is incorrectly NOT reporting the loop count
2243 for a whole class of animated GIFs.
2245 Reviewed by Ken Kocienda.
2247 * WebCoreSupport.subproj/WebImageData.m:
2248 (-[WebImageData _repetitionCount]):
2252 2005-02-11 Vicki Murley <vicki@apple.com>
2256 - fix deployment build on Panther
2258 * WebView.subproj/WebHTMLView.m:
2259 (-[WebHTMLView changeBaseWritingDirection:]): ifdef out NSWritingDirectionNatural
2260 (-[WebHTMLView toggleBaseWritingDirection:]): fix a spacing issue
2262 2005-02-10 David Harrison <harrison@apple.com>
2264 Reviewed by Richard.
2266 <rdar://problem/3991652> REGRESSION (Mail): Deleting entire line in reply deletes extra blank line and moves insertion point
2268 * WebView.subproj/WebHTMLView.m:
2269 (-[WebHTMLView _deleteRange:killRing:prepend:smartDeleteOK:isTypingAction:]):
2270 (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
2271 (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]):
2272 (-[WebHTMLView selectToMark:]):
2273 (-[WebHTMLView swapWithMark:]):
2274 (-[WebHTMLView transpose:]):
2275 (-[WebHTMLView _selectMarkedText]):
2276 (-[WebHTMLView _selectRangeInMarkedText:]):
2277 Adopt new default affinity of NSSelectionAffinityDownstream as of <rdar://problem/3937447>.
2279 2005-02-10 Darin Adler <darin@apple.com>
2281 Reviewed by Harrison.
2283 - fixed <rdar://problem/4002084> Setting ResourceLoadDelegate to nil can cause a crash
2285 * WebView.subproj/WebView.m: (-[WebView _cacheResourceLoadDelegateImplementations]):
2286 Set booleans to either YES or NO, rather than setting them only in the YES case.
2288 2005-02-10 Darin Adler <darin@apple.com>
2290 Reviewed by Harrison.
2292 - fixed <rdar://problem/3991225> Format->Style->Underline menu item does not get checked when selected text is underlined
2294 * WebView.subproj/WebHTMLView.m:
2295 (-[WebHTMLView validateUserInterfaceItem:]): Added tons of additional cases in here for all the
2296 "action" style methods in this class that don't always want to be valid. For the ones where state
2297 makes sense, added the state-checking code too for the menu item case.
2298 (-[WebHTMLView ignoreSpelling:]): Removed unnecessary "editable text only" check since this command
2299 would work fine on a non-editable selection.
2300 (-[WebHTMLView swapWithMark:]): Ditto.
2301 (-[WebHTMLView changeBaseWritingDirection:]): Added. Like toggle, but based on the sender's tag.
2303 2005-02-08 Darin Adler <darin@apple.com>
2305 "Reviewed" by Richard (he told me the file was obsolete).
2307 - got rid of an obsolete file
2309 * Plugins.subproj/npsap.h: Removed.
2310 * copy-webcore-files-to-webkit: Removed npsap.h.
2312 2005-02-09 Richard Williamson <rjw@apple.com>
2314 Fixed <rdar://problem/4000073> non-screen font error on www.worldofwarcraft.com
2316 Reviewed by John Sullivan.
2318 * WebCoreSupport.subproj/WebTextRenderer.m:
2319 (-[WebTextRenderer _smallCapsFont]):
2323 2005-02-07 Chris Blumenberg <cblu@apple.com>
2325 Fixed: <rdar://problem/3993354> Safari claims to put RTFD on the pasteboard, but doesn't, in some cases
2329 * WebView.subproj/WebHTMLView.m:
2330 (-[WebHTMLView _stripAttachmentCharactersFromAttributedString:]): moved
2331 (-[WebHTMLView _writeSelectionWithPasteboardTypes:toPasteboard:cachedAttributedString:]): take cachedAttributedString parameter in case the attributed string was gotten already
2332 (-[WebHTMLView _writeSelectionToPasteboard:]): omit RTFD from the types list when there are no attachments
2334 2005-02-07 David Harrison <harrison@apple.com>
2338 <rdar://problem/3990693> REGRESSION (8A373): ctrl-k now deletes just one character instead of line
2340 * WebView.subproj/WebHTMLView.m:
2341 (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]):
2342 Set the selection so that deleteKeyPressedWithSmartDelete knows what to delete.
2344 2005-02-06 Darin Adler <darin@apple.com>
2348 - fixed <rdar://problem/3963166> PDFView SPI print method is being deprecated, moving to PDFDocument; please update WebKit
2350 * WebView.subproj/WebPDFView.m: (-[WebPDFView printOperationWithPrintInfo:]): Target the document instead of the view.
2352 * English.lproj/StringsNotToBeLocalized.txt: Updated for recent changes and also moved one translation to be a file-specific
2353 item rather than a file-independent one.
2355 2005-02-05 Chris Blumenberg <cblu@apple.com>
2357 Fixed: <rdar://problem/3991974> REGRESSION: www.jabra.com world location screen does not work
2361 * WebCoreSupport.subproj/WebBridge.m:
2362 (-[WebBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:]): use the baseURL from the bridge rather than from the response
2364 2005-02-04 Chris Blumenberg <cblu@apple.com>
2366 Fixed: <rdar://problem/3802781> rtf->html pasteboard conversion using xhtml
2368 Reviewed by kocienda.
2370 * WebView.subproj/WebHTMLView.m:
2371 (+[WebHTMLView _excludedElementsForAttributedStringConversion]): new
2372 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]): call _excludedElementsForAttributedStringConversion
2374 2005-02-04 Chris Blumenberg <cblu@apple.com>
2376 Fixed: <rdar://problem/3832973> copy text from PowerPoint, paste into Blot (or presumably Mail) and get a single missing image icon
2380 * WebView.subproj/WebHTMLView.m:
2381 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]): prefer RTF and RTFD over images just as NSTextView does
2383 2005-02-03 Chris Blumenberg <cblu@apple.com>
2385 Fixed: <rdar://problem/3555137> REGRESSION (125-173): Flash animation can erase parts of chrome (bookmarks bar & tab bar)
2387 convertRect:toView: returns incorrect results inside of viewWillMoveToWindow: with a nil window. Workaround this by catching this case.
2391 * Plugins.subproj/WebBaseNetscapePluginView.m:
2392 (-[WebBaseNetscapePluginView superviewsHaveSuperviews]): new
2393 (-[WebBaseNetscapePluginView saveAndSetPortStateForUpdate:]): clip out the plug-in view when superviewsHaveSuperviews returns NO
2395 2005-02-03 Chris Blumenberg <cblu@apple.com>
2397 Fixed: <rdar://problem/3893513> Sun iPlanet app: when saving to a file it brings up a window with the thing to be saved instead
2401 * WebView.subproj/WebTextView.m:
2402 (+[WebTextView unsupportedTextMIMETypes]): added "text/ldif" to the list of MIME types that our text view doesn't handle
2406 2005-02-03 Chris Blumenberg <cblu@apple.com>
2408 * English.lproj/StringsNotToBeLocalized.txt: updated
2410 2005-02-03 Chris Blumenberg <cblu@apple.com>
2412 Fixed: <rdar://problem/3989611> Evite style "add vCalendar to calendar" do not work
2416 * WebView.subproj/WebTextView.m:
2417 (+[WebTextView unsupportedTextMIMETypes]): added "text/x-vcalendar" to the list of MIME types our text view doesn't handle
2419 2005-02-03 Vicki Murley <vicki@apple.com>
2423 - fix deployment build breakage on Panther
2425 * WebView.subproj/WebHTMLView.m:
2426 (-[WebHTMLView toggleBaseWritingDirection:]):
2428 2005-02-02 John Sullivan <sullivan@apple.com>
2432 - WebKit part of fix for <rdar://problem/3980651> REGRESSION (125-180): Huge number of pages printed from certain page,
2435 This also fixes the problems with printing from GMail, yay!
2437 * WebView.subproj/WebHTMLView.m:
2438 (-[WebHTMLView _setPrinting:minimumPageWidth:maximumPageWidth:adjustViewSize:]):
2439 Don't adjust margins for header/footer here, because this is called for each subframe.
2440 (-[WebHTMLView knowsPageRange:]):
2441 Do adjust margins for header/footer here (analogous to WebTextView and WebImageView).
2442 Also, round the page height to an integer here (noticed in passing).
2444 2005-02-02 Chris Blumenberg <cblu@apple.com>
2446 Fixed: <rdar://problem/3986546> Cut, delete, and paste menu items are active when a image is opened in window
2450 * WebView.subproj/WebView.m:
2451 (-[WebView _responderValidateUserInterfaceItem:]): new, has the responder validate the item
2452 (-[WebView validateUserInterfaceItem:]): call VALIDATE for each repsonder selector using FOR_EACH_RESPONDER_SELECTOR macro
2453 (-[WebView _performResponderOperation:with:]): call factored out method _responderForResponderOperations
2454 (-[WebView _responderForResponderOperations]): new, code from _performResponderOperation:with:
2456 2005-02-02 Chris Blumenberg <cblu@apple.com>
2458 Fixed: <rdar://problem/3983628> control-click on WebView is not selecting the word under the cursor (Mail, non-editable WebView)
2462 * WebCoreSupport.subproj/WebBridge.m:
2463 (-[WebBridge selectWordBeforeMenuEvent]): new
2464 * WebView.subproj/WebView.m:
2465 (-[WebView _selectWordBeforeMenuEvent]): new SPI
2466 (-[WebView _setSelectWordBeforeMenuEvent:]): new SPI
2467 * WebView.subproj/WebViewInternal.h:
2468 * WebView.subproj/WebViewPrivate.h:
2470 2005-02-02 Chris Blumenberg <cblu@apple.com>
2472 Fixed: <rdar://problem/3986013> Assertion failure going back after page load error (no apparent problem in nondebug build)
2476 * WebView.subproj/WebDataSource.m:
2477 (-[WebDataSource _setPrimaryLoadComplete:]): don't set the data source data when the main client is nil
2479 2005-02-02 Ken Kocienda <kocienda@apple.com>
2485 <rdar://problem/3823109> WebKit should support -toggleBaseWritingDirection: (bidi editing support)
2487 * WebView.subproj/WebHTMLView.m:
2488 (-[WebHTMLView _applyParagraphStyleToSelection:withUndoAction:]): New function that calls through to
2489 new feature that allows callers to force all properties in a style to be applied as block styles.
2490 (-[WebHTMLView _alignSelectionUsingCSSValue:withUndoAction:]): Removed FIXME comment for something that has been fixed.
2491 (-[WebHTMLView toggleBaseWritingDirection:]): Implemented.
2493 2005-02-01 Richard Williamson <rjw@apple.com>
2495 Fixed <rdar://problem/3977727> WebKit should use new SPI to support faster GIF rendering
2497 Note: This REQUIRES build >= 3A362 when building on Tiger.
2501 * WebCoreSupport.subproj/WebImageData.m:
2502 (-[WebImageData _imageSourceOptions]):
2506 2005-02-01 Richard Williamson <rjw@apple.com>
2508 Added new SPI for <rdar://problem/3967063> need spi on WebView to turn of lcd text for Dashboard
2512 * WebCoreSupport.subproj/WebTextRenderer.m:
2514 * WebView.subproj/WebView.m:
2515 (-[WebView drawRect:]):
2516 (-[WebView _dashboardBehavior:]):
2517 (+[WebView _setShouldUseFontSmoothing:]):
2518 (+[WebView _shouldUseFontSmoothing]):
2519 * WebView.subproj/WebViewInternal.h:
2520 * WebView.subproj/WebViewPrivate.h:
2522 2005-01-31 Chris Blumenberg <cblu@apple.com>
2524 Fixed: <rdar://problem/3949806> REGRESSION: Source window fails to refresh correctly on reload
2526 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.
2530 * WebView.subproj/WebDataSource.m:
2531 (-[WebDataSource _setData:]): moved within file
2532 (-[WebDataSource _setPrimaryLoadComplete:]): call _setData: with the data from the main client before letting go of the main client
2533 * WebView.subproj/WebDataSourcePrivate.h:
2534 * WebView.subproj/WebMainResourceClient.m:
2535 (-[WebMainResourceClient releaseResources]): removed call to _setData: since the data source may need the data before releaseResources is called
2537 2005-01-31 Chris Blumenberg <cblu@apple.com>
2539 Fixed: <rdar://problem/3946285> Seed: Safari crashed by selecting all at internet-moebel.com
2543 * WebView.subproj/WebHTMLView.m:
2544 (-[WebHTMLView _hitViewForEvent:]): new, factored hit test hack to this method
2545 (-[WebHTMLView _updateMouseoverWithEvent:): call _hitViewForEvent:
2546 (-[WebHTMLView acceptsFirstMouse:]): call _setMouseDownEvent: and _isSelectionEvent: on the hit HTMLView or else when it's asked to drag it will assert
2547 (-[WebHTMLView shouldDelayWindowOrderingForEvent:]): ditto
2549 2005-01-31 David Harrison <harrison@apple.com>
2553 <rdar://problem/3961239> AX Setting AXFocused on AXScrollArea of AXWebArea will cause keyboard selection change
2555 * WebView.subproj/WebHTMLView.m:
2556 (-[WebHTMLView maintainsInactiveSelection]):
2557 Keep the selection when the new first respomder is our own scrollview, in both editable and non-editaqble content.
2559 2005-01-31 Jens Alfke <jens@apple.com>
2563 - Fixed <rdar://problem/3903199> REGRESSION: Large background patterns slide around while loading
2565 * WebCoreSupport.subproj/WebImageData.m:
2567 (-[WebImageData tileInRect:fromPoint:context:]):
2569 2005-01-30 Darin Adler <darin@apple.com>
2573 - fixed <rdar://problem/3965265> Safari displays HTML as source when default encoding is Hebrew (due to direction overrides added by encoding converter)
2575 * WebView.subproj/WebPreferencesPrivate.h: Added _systemCFStringEncoding, and changed
2576 _setInitialDefaultTextEncodingToSystemEncoding to be a class method.
2577 * WebView.subproj/WebPreferences.m:
2578 (+[WebPreferences _systemCFStringEncoding]): Added. New SPI to be used by Safari. Broken out of
2579 _setInitialDefaultTextEncodingToSystemEncoding, but also added cases for MacArabic and MacHebrew.
2580 (+[WebPreferences _setInitialDefaultTextEncodingToSystemEncoding]): Refactor to use _systemCFStringEncoding.
2582 2005-01-28 Jens Alfke <jens@apple.com>
2584 Reviewed by Richard.
2586 <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)
2588 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.)
2590 * WebCoreSupport.subproj/WebImageData.h:
2591 * WebCoreSupport.subproj/WebImageData.m:
2592 (-[WebImageData _invalidateImages]):
2593 (-[WebImageData _checkSolidColor:]):
2594 (-[WebImageData _cacheImages:allImages:]):
2595 (-[WebImageData _fillSolidColorInRect:compositeOperation:context:]):
2596 (-[WebImageData tileInRect:fromPoint:context:]):
2598 2005-01-28 David Harrison <harrison@apple.com>
2602 <rdar://problem/3584942> AX: Safari Accessibility parent-child mismatch
2604 Use AppKit SPI _accessibilityParentForSubview to return KWQAccObject parent of AppKit AX object.
2606 * WebView.subproj/WebHTMLView.m:
2607 (-[WebHTMLView _accessibilityParentForSubview:]):
2610 2005-01-28 Chris Blumenberg <cblu@apple.com>
2612 WebKit side of: <rdar://problem/3951283> can view pages from the back/forward cache that should be disallowed by Parental Controls
2616 * WebView.subproj/WebDefaultPolicyDelegate.m:
2617 (-[WebDefaultPolicyDelegate webView:shouldGoToHistoryItem:]): new private delegate method
2618 * WebView.subproj/WebFrame.m:
2619 (-[WebFrame _goToItem:withLoadType:]): call new delegate method
2620 * WebView.subproj/WebPolicyDelegatePrivate.h:
2622 2005-01-26 Maciej Stachowiak <mjs@apple.com>
2624 Reviewed by Darin, Hyatt and Ken.
2626 <rdar://problem/3790449> REGRESSION (Mail): underline behavior is flaky because of how CSS handles text-decoration
2628 * WebView.subproj/WebHTMLView.m:
2629 (-[WebHTMLView _styleFromFontAttributes:]): Use new -khtml-text-decorations-in-effect
2631 (-[WebHTMLView _styleForAttributeChange:]): likewise
2632 (-[WebHTMLView underline:]): likewise
2634 2005-01-27 Ken Kocienda <kocienda@apple.com>
2638 * WebView.subproj/WebHTMLView.m:
2639 (-[WebHTMLView _handleKillRing:prepend:]): New helper function. Code factored out from
2640 _deleteRange:killRing:prepend:smartDeleteOK:isTypingAction:.
2641 (-[WebHTMLView _deleteRange:killRing:prepend:smartDeleteOK:isTypingAction:]): No longer takes
2642 unused preflight argument. Now takes new isTypingAction argument. Uses isTypingAction to
2643 determine which flavor of delete command to call.
2644 (-[WebHTMLView _deleteSelection]): No longer passes unused preflight argument. Now passes new isTypingAction argument.
2645 (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]): Rearranged code to call
2646 correct flavor of delete command, based on whether typing should be preserved. Some other cleanups.
2647 (-[WebHTMLView deleteForward:]): Add _isEditable check.
2648 (-[WebHTMLView deleteBackward:]): Now calls _deleteWithDirection instead of having unique behavior different
2649 from forward delete.
2650 (-[WebHTMLView deleteWordForward:]): Add new isTypingAction flag to _deleteWithDirection call.
2651 (-[WebHTMLView deleteWordBackward:]): Ditto.
2652 (-[WebHTMLView deleteToBeginningOfLine:]): Ditto.
2653 (-[WebHTMLView deleteToEndOfLine:]): Ditto.
2654 (-[WebHTMLView deleteToBeginningOfParagraph:]): Ditto.
2655 (-[WebHTMLView deleteToEndOfParagraph:]): Ditto.
2656 (-[WebHTMLView deleteToMark:]): Ditto.
2660 2005-01-27 Chris Blumenberg <cblu@apple.com>
2662 Fixed: <rdar://problem/3973272> REGRESSION: Safari uses QT plugin to display PNG images
2666 * Plugins.subproj/WebBasePluginPackage.m: use renamed QT bundle ID
2668 2005-01-26 Darin Adler <darin@apple.com>
2672 - fixed <rdar://problem/3829517> WebView still draws white when setDrawsBackground set to NO and no content loaded yet
2674 * WebView.subproj/WebFrameView.m: (-[WebFrameView drawRect:]): Check drawsBackground, and don't
2675 draw the white "no document" background if it's NO. This fixes things for frames with no document.
2676 * WebView.subproj/WebImageView.m: (-[WebImageView drawRect:]): Same as above. This fixes things
2677 for frames with just an image.
2678 * WebView.subproj/WebFrame.m: (-[WebFrame _updateDrawsBackground]): Call setDrawsBackground: on the
2679 document view if it implements it. This fixes things for frames with plain text.
2681 2005-01-25 John Sullivan <sullivan@apple.com>
2685 - WebKit part of fix for: <rdar://problem/3970670> Text context menu
2686 in WebKit needs "Look Up in Dictionary" item
2688 * WebView.subproj/WebDefaultContextMenuDelegate.m:
2689 (localizedMenuTitleFromAppKit):
2690 return English string in the case where AppKit bundle is found but doesn't
2691 contain the expected string. This case will be hit by people testing with
2693 (-[WebDefaultUIDelegate menuItemWithTag:]):
2694 create Look Up in Dictionary item
2695 (-[WebDefaultUIDelegate contextMenuItemsForElement:]):
2696 add Look Up in Dictionary item and separator
2697 (-[WebDefaultUIDelegate editingContextMenuItemsForElement:]):
2700 * WebView.subproj/WebHTMLView.m:
2701 (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
2702 new method, handles bringing up the Dictionary window. Includes FIXMEs
2703 for a couple of the known loose ends.
2704 (-[WebHTMLView validateUserInterfaceItem:]):
2705 handle Look Up in Dictionary item like the other new items
2707 * WebView.subproj/WebUIDelegatePrivate.h:
2708 added SPI constant for Look Up in Dictionary menu item
2710 2005-01-24 Maciej Stachowiak <mjs@apple.com>
2712 Fixed Panther build (missing ifdef)
2714 * WebView.subproj/WebDefaultContextMenuDelegate.m:
2716 2005-01-24 John Sullivan <sullivan@apple.com>
2720 - WebKit part of fix for <rdar://problem/3960231> Text context menu in WebKit needs Spotlight and Google items
2722 * WebView.subproj/WebDefaultContextMenuDelegate.m:
2723 (localizedMenuTitleFromAppKit):
2724 new function, gets localized string from AppKit so we can avoid adding localized
2725 strings to WebKit at this late date in Tiger. Returns the non-localized English
2726 string if we can't find the localized string in AppKit.
2727 (-[WebDefaultUIDelegate menuItemWithTag:]):
2728 handle the two new menu items by tag name
2729 (-[WebDefaultUIDelegate contextMenuItemsForElement:]):
2730 add menu items for Search in Google and Search in Spotlight to selected-text menu item
2731 for the noneditable case
2732 (-[WebDefaultUIDelegate editingContextMenuItemsForElement:]):
2733 add menu items for Search in Google and Search in Spotlight to selected-text menu item
2734 for the editable case
2736 * WebView.subproj/WebHTMLView.m:
2737 (-[WebHTMLView _searchWithGoogleFromMenu:]):
2738 implement this menu item action method, using same method name and implementation as NSTextView
2739 (-[WebHTMLView _searchWithSpotlightFromMenu:]):
2740 implement this menu item action method, using same basic implementation as NSTextView
2741 (-[WebHTMLView validateUserInterfaceItem:]):
2742 validate new menu items
2744 * WebView.subproj/WebUIDelegatePrivate.h:
2745 define new tags for new menu items
2747 * English.lproj/StringsNotToBeLocalized.txt:
2748 updated for these changes
2750 2005-01-24 Darin Adler <darin@apple.com>
2752 * WebView.subproj/WebDataSource.m: (+[WebDataSource _repTypesAllowImageTypeOmission:]):
2753 Do the same check as for view types, so the representation types are consistent.
2755 2005-01-24 Darin Adler <darin@apple.com>
2759 - fixed <rdar://problem/3791158> REGRESSION (Mail): copyFont: and pasteFont: copy and paste only the NSFont, not other attributes
2761 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView _styleFromFontAttributes:]): Added the last
2762 few loose ends here: strikethrough and underline.
2764 - fixed <rdar://problem/3967393> add a user default that lets you turn off WebKit PDF support
2766 * WebView.subproj/WebFrameView.m: (+[WebFrameView _viewTypesAllowImageTypeOmission:]):
2767 Leave the PDF-handling classes out of the dictionary if the secret default is set.
2769 * English.lproj/StringsNotToBeLocalized.txt: Updated for recent changes.
2771 2005-01-20 Darin Adler <darin@apple.com>
2773 Reviewed by Kristin Forster.
2775 - fixed <rdar://problem/3964972> update _initWithCGSEvent:eventRef: call in mouse moved workaround (breaks cursors in Carbon WebKit applications)
2777 * Carbon.subproj/HIWebView.m: (MouseMoved): Instead of munging the event record's window number directly
2778 before calling _initWithCGSEvent, on Tiger we call _eventRelativeToWindow on the event after creating it.
2779 Also added a check so that with Macromedia Contribute's workaround in place we don't do anything at all
2780 to the event. Tested with both Contribute and CarbonWeb.
2782 * English.lproj/StringsNotToBeLocalized.txt: Update for recent changes.
2784 2005-01-20 Richard Williamson <rjw@apple.com>
2786 Fixed <rdar://problem/3815672> REGRESSION (Mail): Japanese text cannot be made bold
2788 The AppKit's font substitution API doesn't match font traits!
2789 It only find fonts that contain the appropriate glyphs. This
2790 patch attempts to find the best variation within a family.
2794 * WebCoreSupport.subproj/WebTextRenderer.m:
2795 (-[WebTextRenderer _substituteFontForString:families:]):
2799 2005-01-20 Ken Kocienda <kocienda@apple.com>
2805 <rdar://problem/3786659> REGRESSION (Mail): editable WebViews don't work with "size up" and "size down" NSFontManager changes
2807 * WebView.subproj/WebHTMLView.m:
2808 (-[WebHTMLView _addToStyle:fontA:fontB:]): This is the WebKit side of the fix. Replaced unimplemented code blocks
2809 with FIXME's in them for make bigger and make smaller with real working code.
2811 2005-01-19 David Hyatt <hyatt@apple.com>
2813 Fix for 3513067, spaces being lost when RTL text is rendered. Make sure not to allow hangers or spaces
2818 * WebCoreSupport.subproj/WebTextRenderer.m:
2819 (-[WebTextRenderer _createATSUTextLayoutForRun:style:]):
2821 2005-01-19 Darin Adler <darin@apple.com>
2825 - fixed <rdar://problem/3962559> stopAnimationsInView leaks after cvs-base
2827 * WebCoreSupport.subproj/WebImageData.m: (+[WebImageData stopAnimationsInView:]): add a release
2829 2005-01-19 Chris Blumenberg <cblu@apple.com>
2831 Fixed: <rdar://problem/3961809> plug-in code attempts to load empty URL
2835 * Plugins.subproj/WebNetscapePluginEmbeddedView.m:
2836 (-[WebNetscapePluginEmbeddedView didStart]): don't start load if URL is empty
2838 2005-01-17 Darin Adler <darin@apple.com>
2840 * DOM.subproj/DOMPrivate.h: Check in generated file.
2842 2005-01-17 Darin Adler <darin@apple.com>
2844 Reviewed by John and Richard.
2846 - fixed <rdar://problem/3907453> printing a multi-page PDF document from Safari doesn't produce correct output
2848 * WebView.subproj/WebFrameViewPrivate.h: Added.
2849 * WebView.subproj/WebFrameView.m:
2850 (-[WebFrameView canPrintHeadersAndFooters]): Added. Returnes NO for documents that can't print headers or footers,
2851 and delegates to the document view to answer the question. Defaults to NO, since only a view that actively does
2852 the work is compatible with our header and footer code.
2853 (-[WebFrameView printOperationWithPrintInfo:]): Added. Returns an NSPrintOperation set up for printing. The reason
2854 we return this rather than an NSView is that in the PDFView case, the print info is changed around before creating
2855 the NSPrintOperation, and also the PDFKit SPI works this way.
2857 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView canPrintHeadersAndFooters]): Added. Returns YES.
2858 * WebView.subproj/WebImageView.m: (-[WebImageView canPrintHeadersAndFooters]): Ditto.
2859 * WebView.subproj/WebTextView.m: (-[WebTextView canPrintHeadersAndFooters]): Ditto.
2861 * WebView.subproj/WebPDFView.m:
2862 (-[WebPDFView canPrintHeadersAndFooters]): Added. Returns NO.
2863 (-[WebPDFView printOperationWithPrintInfo:]): Added. Calls getPrintOperationForPrintInfo: autoRotate:YES on the PDFView.
2865 * WebKit.pbproj/project.pbxproj: Added WebFrameViewPrivate.h as a new private header.
2867 2005-01-13 Chris Blumenberg <cblu@apple.com>
2869 Fixed: <rdar://problem/3932107> Safari does not load QT Cocoa plug-in if the WebPluginMIMETypes key is not in the info.plist
2871 Fixing this bug required that we allow WebKit plug-ins (as well as Netscape plug-ins) support BP_CreatePluginMIMETypesPreferences
2872 which allows plug-ins create an auxiliary MIME types file.
2876 * Plugins.subproj/WebBasePluginPackage.h:
2877 * Plugins.subproj/WebBasePluginPackage.m:
2878 (+[WebBasePluginPackage preferredLocalizationName]): moved from WebNetscapePluginPackage
2879 (-[WebBasePluginPackage pListForPath:createFile:]): ditto
2880 (-[WebBasePluginPackage getPluginInfoFromPLists]): ditto
2881 (-[WebBasePluginPackage isLoaded]): return isLoaded ivar
2882 (-[WebBasePluginPackage load]): if loaded, get BP_CreatePluginMIMETypesPreferences symbol
2883 * Plugins.subproj/WebNetscapePluginPackage.h:
2884 * Plugins.subproj/WebNetscapePluginPackage.m:
2885 (-[WebNetscapePluginPackage load]): call super when done so BP_CreatePluginMIMETypesPreferences can be initialized
2886 * Plugins.subproj/WebPluginPackage.m:
2887 (-[WebPluginPackage initWithPath:]): call getPluginInfoFromPLists
2888 (-[WebPluginPackage load]): call super when done so BP_CreatePluginMIMETypesPreferences can be initialized
2890 2005-01-13 Richard Williamson <rjw@apple.com>
2892 Fixed <rdar://problem/3952809> WebJavaPlugIn.h comments need method name corrected (webPlugInCallJava)
2896 * Plugins.subproj/WebJavaPlugIn.h:
2900 2005-01-13 Vicki Murley <vicki@apple.com>
2904 - fix <rdar://problem/3946836> Safari about box lists 2004 instead of 2005
2906 * WebKit.pbproj/project.pbxproj: bump "2004" to "2005"
2908 2005-01-13 Richard Williamson <rjw@apple.com>
2910 Fixed <rdar://problem/3951911> REGRESSION: Animated GIF images with loop counts no longer update
2912 Draw last image after animation loop terminates. (We
2913 were drawing the image at index+1, which doesn't exist!)
2917 * WebCoreSupport.subproj/WebImageData.m:
2918 (-[WebImageData _nextFrame:]):
2920 2005-01-13 Richard Williamson <rjw@apple.com>
2922 Fixed <rdar://problem/3952084> REGRESSION: Links at projectseven.com now draw and update incorrectly during hover
2924 Turn off use of new CGContextStrokeLineSegments API. We should
2925 turn back on when 3952944 is fixed.
2929 * WebCoreSupport.subproj/WebTextRenderer.m:
2930 (-[WebTextRenderer drawLineForCharacters:yOffset:width:color:thickness:]):
2932 2005-01-13 Chris Blumenberg <cblu@apple.com>
2934 Fixed: <rdar://problem/3937663> repro assertion failure and crash dragging image that has PDF source
2938 * Misc.subproj/WebNSViewExtras.m:
2939 (-[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
2940 * WebCoreSupport.subproj/WebImageRendererFactory.m:
2941 (-[WebImageRendererFactory supportedMIMETypes]): removed code that omits PDF and PostScript from the list since this omission is only needed in WebImageView
2942 * WebView.subproj/WebImageView.m:
2943 (+[WebImageView supportedImageMIMETypes]): added code that omits PDF and PostScript since we don't want WebImageView to render these types
2945 2005-01-10 Maciej Stachowiak <mjs@apple.com>
2949 <rdar://problem/3758033> REGRESSION (Mail): Support attributes in marked text (International input)
2951 * WebCoreSupport.subproj/WebTextRenderer.m:
2952 (-[WebTextRenderer drawLineForCharacters:yOffset:width:color:thickness:]): Changed to support
2953 underline thickness. Also added a bit of a hack here to move thickness 2 underlines down by
2954 .5 pixels, since the rendering engine can't give a fractional pixel offset.
2955 * WebView.subproj/WebHTMLView.m:
2956 (-[WebHTMLView validAttributesForMarkedText]): Support underline, underline color and marked
2957 clause attributes. Others that NSText supports are unimplemented for now.
2958 (-[WebHTMLView firstRectForCharacterRange:]): Remove needless logging.
2959 (-[WebHTMLView unmarkText]): Updated for new WebCore SPI.
2960 (-[WebHTMLView _extractAttributes:ranges:fromAttributedString:]): New method to pull the attributes
2961 and ranges out of an attributed string.
2962 (-[WebHTMLView setMarkedText:selectedRange:]): Extract attributes and pass to WebCore.
2963 (-[WebHTMLView insertText:]): Add comment noting that we don't really handle attributed strings
2966 2005-01-12 Darin Adler <darin@apple.com>
2970 - fixed <rdar://problem/3848257> WebView will draw more than AppKit asks it to, so views behind won't redraw enough (transparent WebView)
2972 * WebView.subproj/WebHTMLView.m:
2973 (-[WebHTMLView _propagateDirtyRectsToOpaqueAncestors]): As recommended by Troy Stephens, do the
2974 layouts here in this call, since it's before propagating the dirty rects to our ancestors.
2975 This fixes the bug, but we only do it if the WebView is not opaque, because otherwise we can
2976 optimize by only doing layouts you really need, and doing them later on is safe because we
2977 know we don't need to draw any of the views behind us.
2978 (-[WebHTMLView _layoutIfNeeded]): Added. Factored out from the method below.
2979 (-[WebHTMLView _web_layoutIfNeededRecursive]): Added. Like the other "layout if needed" call,
2981 (-[WebHTMLView _web_layoutIfNeededRecursive:testDirtyRect:]): Factored out the guts into the
2982 _layoutIfNeeded method above. Otherwise unchanged.
2983 (-[NSView _web_layoutIfNeededRecursive]): Added.
2985 * WebView.subproj/WebFrame.m: (-[WebFrame _updateDrawsBackground]): Call setDrawsBackground:NO
2986 on the scroll view when changing the frame to no longer be in "draws background" mode. This
2987 is needed because the frame manages the "draws background" mode of the scroll view. It won't
2988 have any effect if you call setDrawsBackground:NO before starting to use a WebView, but without
2989 it calling setDrawsBackground:NO later won't have an immediate effect (easily visible in Safari).
2990 This was hidden before because the HTML view was filling with transparent color, which blew away
2991 the fill that was done by NSScrollView.
2993 - fixed <rdar://problem/3921129> reproducible crash at www.funnychristmas.com in CFSet manipulation in WebImageData
2995 * WebCoreSupport.subproj/WebImageData.m:
2996 (-[WebImageData _imageSourceOptions]): Changed types so we don't need a cast.
2997 (+[WebImageData stopAnimationsInView:]): Instead of building a set of sets, by putting in the sets with addObject,
2998 build a single set using unionSet, and then iterate the objects instead of having to iterate the sets and then the
2999 objects in each set. The old code ended up sharing the sets with the live code, when the whole idea was to gather
3000 all the renderers because the process of stopping modifies the active sets.
3002 2005-01-12 Richard Williamson <rjw@apple.com>
3004 Fixed <rdar://problem/3926825> Safari ignores GIF loop count
3006 Get loop count from file properties, not image properties.
3008 Reviewed by Ken Kocienda.
3010 * WebCoreSupport.subproj/WebImageData.h:
3011 * WebCoreSupport.subproj/WebImageData.m:
3012 (-[WebImageData _commonTermination]):
3013 (-[WebImageData fileProperties]):
3014 (-[WebImageData _floatProperty:type:at:]):
3015 (-[WebImageData _floatFileProperty:type:]):
3016 (-[WebImageData _repetitionCount]):
3018 2005-01-11 Chris Blumenberg <cblu@apple.com>
3020 Fixed: <rdar://problem/3934749> assertion failure in WebBaseNetscapePluginView loading movie
3024 * Plugins.subproj/WebBaseNetscapePluginView.m:
3025 (-[WebBaseNetscapePluginView start]): call canStart before asserting about the webView
3027 2005-01-11 John Sullivan <sullivan@apple.com>
3031 - fixed <rdar://problem/3446838> REGRESSION (Mail): text decorations don't print
3032 (e.g. <strike>, underline)
3034 * WebCoreSupport.subproj/WebTextRenderer.m:
3035 (-[WebTextRenderer drawLineForCharacters:yOffset:withWidth:withColor:]):
3036 This bottleneck routine for drawing a line was setting the linewidth to 0 when
3037 the graphics context was not drawing to the screen. Thus, no lines. Now links
3038 are underlined when printing from Safari (as well as Mail).
3040 2005-01-11 Richard Williamson <rjw@apple.com>
3042 Fixed 3949145. CG has a much faster API for drawing lines.
3043 Switched over to that new API (CGContextStrokeLineSegments).
3045 Reviewed by John Sullivan.
3047 * WebCoreSupport.subproj/WebTextRenderer.m:
3048 (-[WebTextRenderer drawLineForCharacters:yOffset:withWidth:withColor:]):
3050 2005-01-10 Chris Blumenberg <cblu@apple.com>
3052 Fixed: <rdar://problem/3948862> REGRESSION: missing images when RTFD is pasted into editable WebView
3054 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.
3058 * WebView.subproj/WebHTMLView.m:
3059 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]): don't deal with subresources since that's now done by the following method
3060 (-[WebHTMLView resourceForData:preferredFilename:]): new handler method called by AppKit
3064 2005-01-06 David Harrison <harrison@apple.com>
3066 Reviewed by Dave Hyatt
3068 <rdar://problem/3588548> AX: tabbing does not work correctly with the screen reader and a focused link; need AXFocusedUIElement to work.
3070 * WebView.subproj/WebHTMLView.m:
3071 (-[WebHTMLView accessibilityFocusedUIElement]):
3072 Implement this so that AppKit can use it from NSAccessibilityHandleFocusChanged.
3074 2005-01-05 Chris Blumenberg <cblu@apple.com>
3076 Fixed: <rdar://problem/3936865> REGRESSION: canvas.drawImage no longer scales properly
3080 * WebCoreSupport.subproj/WebImageData.m: use the height of the inRect instead of the fromRect when setting the origin of the context
3082 2005-01-04 Chris Blumenberg <cblu@apple.com>
3084 Fixed: <rdar://problem/3928329> WebKit should pass nil for "language" to checkSpellingOfString:
3086 Reviewed by kocienda.
3088 * WebView.subproj/WebHTMLView.m:
3089 (-[WebHTMLView _isSelectionMisspelled]): pass nil not @"" for language
3091 2004-12-21 Maciej Stachowiak <mjs@apple.com>
3095 <rdar://problem/3888931> frame naming allows malicious site to bring up a window when you click on a link in another
3097 Implement a security check on name frame visbility. This is the
3098 same rule as mozilla. You can only target frames by name if you
3099 are in the same window, have the same domain as the frame or an
3100 ancestor, or if it's a top level window have the same domain as
3103 * WebView.subproj/WebFrame.m:
3104 (-[WebFrame _shouldAllowAccessFrom:]):
3105 (-[WebFrame _descendantFrameNamed:sourceFrame:]):
3106 (-[WebFrame findFrameNamed:]):
3107 * WebView.subproj/WebFramePrivate.h:
3108 * WebView.subproj/WebView.m:
3109 (-[WebView _findFrameInThisWindowNamed:sourceFrame:]):
3110 (-[WebView _findFrameNamed:sourceFrame:]):
3111 * WebView.subproj/WebViewPrivate.h:
3117 2004-12-20 Richard Williamson <rjw@apple.com>
3119 Add call to new API. ImageIO deprecated some older (although
3120 quite new!) API. This caused us to fail to build on 337 or later.
3122 Developers wanting to build on older versions of Tiger must define
3123 USE_DEPRECATED_IMAGESOURCE_API in WebImageData.m.
3127 * WebCoreSupport.subproj/WebImageData.m:
3128 (-[WebImageData propertiesAtIndex:]):
3130 2004-12-20 Richard Williamson <rjw@apple.com>
3132 Don't call Tiger SPI on Panther.
3136 * WebCoreSupport.subproj/WebTextRendererFactory.m:
3137 (+[WebTextRendererFactory createSharedFactory]):
3139 2004-12-20 Richard Williamson <rjw@apple.com>
3141 Fixed <rdar://problem/3884448> WebKit should turn on CG local font cache
3143 Enable mutli-tier font caching. We should see a performance boost with this
3148 * WebCoreSupport.subproj/WebTextRendererFactory.m:
3149 (+[WebTextRendererFactory createSharedFactory]):
3151 2004-12-20 Richard Williamson <rjw@apple.com>
3153 Fix image decoding to separately decode image meta data from actual image bits. I
3154 incorrectly consolidated decode of meta data and image bits resulting in a huge
3155 performance regression.
3157 Double size of WebCore cache on lower end machines. On the PLT run on machines with
3158 256MB of memory, too many images were being evicted, causing a re-decode on the PLT.
3159 Upping the lower limit of the cache size ensure that no images are evicted (this
3160 goes hand-in-hand with the change to the minimum object size from 32K to 40K).
3164 * WebCoreSupport.subproj/WebImageData.h:
3165 * WebCoreSupport.subproj/WebImageData.m:
3166 (+[WebImageData initialize]):
3167 (-[WebImageData _commonTermination]):
3168 (-[WebImageData _invalidateImages]):
3169 (-[WebImageData _invalidateImageProperties]):
3170 (-[WebImageData imageAtIndex:]):
3171 (-[WebImageData propertiesAtIndex:]):
3172 (-[WebImageData _cacheImages:allImages:]):
3173 (-[WebImageData decodeData:isComplete:callback:]):
3174 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
3175 * WebView.subproj/WebPreferences.m:
3176 (+[WebPreferences initialize]):
3178 2004-12-20 Richard Williamson <rjw@apple.com>
3180 Fixed build problem caused by change to ImageIO API.
3184 * WebCoreSupport.subproj/WebImageData.m:
3186 2004-12-19 Darin Adler <darin@apple.com>
3190 - some garbage collection fixes
3192 * Misc.subproj/WebNSObjectExtras.h: (WebCFAutorelease): Replaced the old WebNSRetainCFRelease with this
3193 much-easier-to-understand function cribbed from what David Harrison did in WebCore.
3195 * Misc.subproj/WebKitNSStringExtras.m: (+[NSString _web_encodingForResource:]): Use CFRelease here to
3196 get rid of an unnecessary use of WebNSRetainCFRelease.
3197 * Misc.subproj/WebNSURLExtras.m:
3198 (+[NSURL _web_URLWithData:relativeToURL:]): Use WebCFAutorelease instead of WebNSRetainCFRelease and autorelease.
3199 (-[NSURL _web_URLWithLowercasedScheme]): Ditto.
3200 (-[NSString _web_mapHostNameWithRange:encode:makeString:]): Use WebCFAutorelease here; the old code would not
3201 work correctly under GC.
3202 * Plugins.subproj/WebNetscapePluginPackage.m: (+[WebNetscapePluginPackage preferredLocalizationName]):
3203 Use WebCFAutorelease here; the old code would not work correctly under GC.
3205 2004-12-18 Chris Blumenberg <cblu@apple.com>
3207 Fixed: <rdar://problem/3766915> PDF content needs search to work
3209 Reviewed by kevin, john.
3211 * WebView.subproj/WebPDFView.m:
3212 (-[WebPDFView searchFor:direction:caseSensitive:wrap:]): implemented
3213 (-[WebPDFView takeFindStringFromSelection:]): new
3214 (-[WebPDFView jumpToSelection:]): new
3215 (-[WebPDFView validateUserInterfaceItem:]): new
3217 2004-12-17 Richard Williamson <rjw@apple.com>
3219 Make image decoding as lazy as possible for non threaded case; in some cases
3220 can avoid unnecessary decoding work.
3224 * WebCoreSupport.subproj/WebImageData.h:
3225 * WebCoreSupport.subproj/WebImageData.m:
3226 (-[WebImageData imageAtIndex:]):
3227 (-[WebImageData propertiesAtIndex:]):
3228 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
3230 2004-12-16 John Sullivan <sullivan@apple.com>
3234 One of the assertions from my previous checkin fired, so
3235 I made this code more robust.
3237 * WebCoreSupport.subproj/WebBridge.m:
3238 (-[WebBridge _preferences]):
3239 new helper method, returns global preferences if webView is nil,
3240 otherwise returns webView's preferences
3241 (-[WebBridge getObjectCacheSize]):
3242 use new helper method, remove now-unnecessary assert
3243 (-[WebBridge _retrieveKeyboardUIModeFromPreferences:]):
3246 2004-12-16 John Sullivan <sullivan@apple.com>
3250 - fixed <rdar://problem/3913523> Mail needs SPI for adding tooltips to links
3251 - cleaned up some calls to +[WebPreferences standardPreferences] that should
3252 have been using -[WebView preferences]
3254 This adds a (currently SPI-only) new feature that shows the URL of the link
3255 under the mouse in a toolTip. I tested this in Safari, but we're adding this
3256 feature for Mail, and Safari won't use it (unless of course you know the
3257 magic defaults command)
3259 * Plugins.subproj/WebBaseNetscapePluginView.m:
3260 (-[WebBaseNetscapePluginView start]):
3261 use -[WebView preferences] instead of +[WebPreferences standardPreferences]
3263 * WebCoreSupport.subproj/WebBridge.m:
3264 (-[WebBridge getObjectCacheSize]):
3266 (-[WebBridge _retrieveKeyboardUIModeFromPreferences:]):
3269 * WebView.subproj/WebBaseResourceHandleDelegate.m:
3270 (-[WebBaseResourceHandleDelegate willCacheResponse:]):
3273 * WebView.subproj/WebFrame.m:
3274 (-[WebFrame _transitionToCommitted:]):
3276 (-[WebFrame _loadItem:withLoadType:]):
3279 * WebView.subproj/WebHTMLViewInternal.h:
3280 private struct now keeps ivar for cached value of showsURLsInToolTips
3281 so it doesn't have look it up in preferences a zillion times
3283 * WebView.subproj/WebHTMLView.m:
3284 (-[WebHTMLView _updateMouseoverWithEvent:]):
3285 if private->showsURLsInToolTips is true, set the toolTip from the URL.
3286 Fall back to showing the title attribute in case some element has a title
3287 attribute but no URL.
3288 (-[WebHTMLView _mayStartDragAtEventLocation:]):
3289 use -[WebView preferences] instead of +[WebPreferences standardPreferences]
3290 (-[WebHTMLView _resetCachedWebPreferences:]):
3291 get a fresh value for private->showsURLsInToolTips
3292 (-[WebHTMLView initWithFrame:]):
3293 call _resetCachedWebPreferences the first time, and listen for WebPreferencesChanged notifications
3294 (-[WebHTMLView _handleStyleKeyEquivalent:]):
3295 use -[WebView preferences] instead of +[WebPreferences standardPreferences]
3297 * WebView.subproj/WebPreferenceKeysPrivate.h:
3298 added WebKitShowsURLsInToolTipsPreferenceKey
3300 * WebView.subproj/WebPreferences.m:
3301 (+[WebPreferences initialize]):
3302 initialize WebKitShowsURLsInToolTipsPreferenceKey to 0
3303 (-[WebPreferences showsURLsInToolTips]):
3304 return WebKitShowsURLsInToolTipsPreferenceKey value
3305 (-[WebPreferences setShowsURLsInToolTips:]):
3306 set WebKitShowsURLsInToolTipsPreferenceKey value
3308 * WebView.subproj/WebPreferencesPrivate.h:
3309 add declarations for showsURLsInToolTips and setter
3311 * WebView.subproj/WebTextView.m:
3312 (-[WebTextView _preferences]):
3313 new helper method that gets preferences from webView if there is a webView,
3314 otherwise gets global preferences
3315 (-[WebTextView setFixedWidthFont]):
3316 use new helper method rather than always using global preferences
3317 (-[WebTextView initWithFrame:]):
3318 observe WebPreferencesChangedNotification instead of unnecessarily general
3319 NSUserDefaultsChangedNotification
3321 2004-12-14 John Sullivan <sullivan@apple.com>
3325 - rest of WebKit fix for <rdar://problem/3790011> undoable operations all say "Undo"
3326 in the menu, no specific action names
3328 I only know of one loose end currently, which I wrote up as <rdar://problem/3920971> Edit menu
3329 says "Undo Change Attributes" when it should say "Undo Set Color", from font panel
3331 * WebView.subproj/WebHTMLView.m:
3332 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]):
3333 use WebUndoActionSetColor when dragging color swatch
3334 (-[WebHTMLView _applyStyleToSelection:withUndoAction:]):
3335 new WebUndoAction parameter, passed across bridge
3336 (-[WebHTMLView _toggleBold]):
3337 use WebUndoActionSetFont
3338 (-[WebHTMLView _toggleItalic]):
3339 use WebUndoActionSetFont
3340 (-[WebHTMLView pasteFont:]):
3341 use WebUndoActionPasteFont
3342 (-[WebHTMLView changeFont:]):
3343 use WebUndoActionSetFont
3344 (-[WebHTMLView changeAttributes:]):
3345 use WebUndoActionChangeAttributes
3346 (-[WebHTMLView _undoActionFromColorPanelWithSelector:]):
3347 new method, returns WebUndoActionSetBackgroundColor or WebUndoActionSetColor
3348 (-[WebHTMLView _changeCSSColorUsingSelector:inRange:]):
3349 now calls _undoActionFromColorPanelWithSelector
3350 (-[WebHTMLView changeColor:]):
3351 use WebUndoActionSetColor
3352 (-[WebHTMLView _alignSelectionUsingCSSValue:withUndoAction:]):
3353 new WebUndoAction parameter, passed through
3354 (-[WebHTMLView alignCenter:]):
3355 use WebUndoActionCenter
3356 (-[WebHTMLView alignJustified:]):
3357 use WebUndoActionJustify
3358 (-[WebHTMLView alignLeft:]):
3359 use WebUndoActionAlignLeft
3360 (-[WebHTMLView alignRight:]):
3361 use WebUndoActionAlignRight
3362 (-[WebHTMLView subscript:]):
3363 use WebUndoActionAlignSubscript
3364 (-[WebHTMLView superscript:]):
3365 use WebUndoActionAlignSuperscript
3366 (-[WebHTMLView unscript:]):
3367 use WebUndoActionAlignUnscript
3368 (-[WebHTMLView underline:]):
3369 use WebUndoActionAlignUnderline
3371 * WebView.subproj/WebView.m:
3372 (-[WebView setTypingStyle:]):
3373 pass WebUndoActionUnspecified through as new parameter since we don't have any more specific info
3374 (-[WebView applyStyle:]):
3377 2004-12-14 Richard Williamson <rjw@apple.com>
3379 Helper method to get URL of plugin view.
3383 * Misc.subproj/WebNSViewExtras.m:
3384 (-[NSView _webViewURL]):
3386 2004-12-14 Vicki Murley <vicki@apple.com>
3390 <rdar://problem/3855573> Remove reference to "WebScriptMethods" from WebScriptObject.h comments
3392 * Plugins.subproj/WebPlugin.h: changed instances of "WebScriptMethods" to "WebScripting" in this
3393 file as well, as requested in the bug report
3395 2004-12-13 Maciej Stachowiak <mjs@apple.com>
3399 <rdar://problem/3912488> Mail throws an exception after backspacing "away" inline input
3401 * WebView.subproj/WebHTMLView.m:
3402 (-[WebHTMLView setMarkedText:selectedRange:]): Don't try to set a selection if
3403 we end up with no marked text, since that case fails and is unnecessary.
3405 2004-12-14 John Sullivan <sullivan@apple.com>
3409 - WebKit part of plumbing of fix for <rdar://problem/3790011> undoable operations all say "Undo" in the menu,
3410 no specific action names
3412 * WebCoreSupport.subproj/WebBridge.m:
3413 (-[WebBridge nameForUndoAction:]):
3414 renamed from setUndoActionNamePlaceholder, replaced arbitrary integers with enum values, and
3415 handled new "unspecified" case as a fallback
3417 2004-12-13 Richard Williamson <rjw@apple.com>
3419 Fixed <rdar://problem/3887767> LiveConnect doesn't propagate Java exceptions back to JavaScript (prevents security suite from running)
3423 * Plugins.subproj/WebJavaPlugIn.h:
3425 2004-12-13 John Sullivan <sullivan@apple.com>
3429 - fixed <rdar://problem/3744583> Safari can not quit when a webpage has a login sheet
3430 that can't be cancelled.
3432 The proper fix for this would be to change the class of the NSPanel in the nib file.
3433 But since this would require a localization change, I did a run-time hack instead.
3434 I'll file a bug about fixing this when we're out of localization freeze.
3436 * Panels.subproj/WebAuthenticationPanel.m:
3437 (-[WebAuthenticationPanel replacePanelWithSubclassHack]):
3438 new method, creates a new panel that is identical to the original one except that
3439 it's our subclass, and moves all the subviews of the original panel into the new one.
3440 (-[WebAuthenticationPanel loadNib]):
3441 call replacePanelWithSubclassHack
3442 (-[NonBlockingPanel _blocksActionWhenModal:]):
3443 only method of new NSPanel subclass; overrides this SPI to allow the user to quit
3444 when one of these panels/sheets is on-screen
3446 2004-12-10 Richard Williamson <rjw@apple.com>
3448 Fixed <rdar://problem/3898708> REGRESSION (8A314-8A317): World Clock's short hand not displayed (ImageIO problem with PDF?)
3449 Fixed <rdar://problem/3914012> use CG directly for pdf images not ImageIO
3451 Create a PDF document and draw that instead of using ImageIO to create a rasterized image.
3455 * WebCoreSupport.subproj/WebImageData.h:
3456 * WebCoreSupport.subproj/WebImageData.m:
3457 (-[WebImageData setIsPDF:]):
3458 (-[WebImageData isPDF]):
3459 (-[WebImageData dealloc]):
3460 (-[WebImageData decodeData:isComplete:callback:]):
3461 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
3462 (-[WebImageData size]):
3463 (-[WebImageData animate]):
3464 (-[WebImageData _createPDFWithData:]):
3465 (-[WebImageData _PDFDocumentRef]):
3466 (-[WebImageData _PDFDrawInContext:]):
3467 (-[WebImageData _PDFDrawFromRect:toRect:operation:alpha:flipped:context:]):
3468 * WebCoreSupport.subproj/WebImageRenderer.h:
3469 * WebCoreSupport.subproj/WebImageRenderer.m:
3470 (-[WebImageRenderer size]):
3471 (-[WebImageRenderer incrementalLoadWithBytes:length:complete:callback:]):
3472 (-[WebImageRenderer drawImageInRect:fromRect:compositeOperator:context:]):
3475 2004-12-10 John Sullivan <sullivan@apple.com>
3479 - fixed <rdar://problem/3855127> Error while printing w/o sheet, then window is left in a bad state,
3480 if there's no default printer set
3482 * WebView.subproj/WebHTMLView.m:
3483 (-[WebHTMLView beginDocument]):
3484 Our implementation of knowsPageRange puts the WebHTMLView into a special "printing mode". We must
3485 exit the "printing mode" to return to normal behavior. This is normally done in endDocument.
3486 However, it turns out that if there's an exception in [super beginDocument], then endDocument
3487 will not be called (lame-o AppKit API). So, we handle that case by catching the exception and
3488 exiting the "printing mode" in beginDocument when it occurs.
3490 2004-12-09 Richard Williamson <rjw@apple.com>
3492 Fixed <rdar://problem/3905789> Burn Disc image vibrates rapidly
3494 Restrict our support for animated images to GIF. We used to
3495 use presence of more than one image in a resource to determine
3496 if an image should be animated. This caused us to animate icns!
3497 If we ever support any other animated image formats we'll have
3502 * WebCoreSupport.subproj/WebImageData.h:
3503 * WebCoreSupport.subproj/WebImageData.m:
3504 (-[WebImageData shouldAnimate]):
3505 * WebCoreSupport.subproj/WebImageRenderer.m:
3506 (-[WebImageRenderer _startOrContinueAnimationIfNecessary]):
3508 2004-12-09 Richard Williamson <rjw@apple.com>
3510 Make WebPluginDatabase.h private (Dashboard needs SPI).
3512 * WebKit.pbproj/project.pbxproj:
3516 2004-12-09 Chris Blumenberg <cblu@apple.com>
3518 Workaround for this exception being raised during download:
3519 [WebDownload connection:willStopBufferingData:]: selector not recognized
3523 * Misc.subproj/WebDownload.m:
3524 (-[WebDownload connection:willStopBufferingData:]): implement this method so no exception is raised. It is a bug in Foundation that this method is being called, but it's too late to fix Foundation since it has already been submitted this week. This workaround will prevent any problems from affecting users.
3526 2004-12-08 Richard Williamson <rjw@apple.com>
3528 Fixed <rdar://problem/3911719> REGRESSION: Images no longer scale vertically
3529 Account for scaling correctly when taking into account progressively
3532 Also added implementation of repetition count for animated GIF images.
3533 Also replaced strings with new constants from CFImageProperties.h
3535 Also fixed possible problem with -(NSSize)size implementation,
3536 relevant to Panther only.
3540 * WebCoreSupport.subproj/WebImageData.m:
3541 (-[WebImageData _floatProperty:type:at:]):
3542 (-[WebImageData _frameDurationAt:]):
3543 (-[WebImageData _repetitionCount]):
3544 * WebCoreSupport.subproj/WebImageRenderer.m:
3545 (-[WebImageRenderer size]):
3547 2004-12-08 Chris Blumenberg <cblu@apple.com>
3549 Removed NPN wrappers since these no longer need to be defined to make the QT plug-in work
3550 since 3828925 has been fixed.
3554 * Plugins.subproj/WebNetscapePluginPackage.m:
3555 (-[WebNetscapePluginPackage load]): use under-bar symbols since non-under-bar wrappers have been removed
3556 * Plugins.subproj/npapi.m: removed NPN wrappers
3557 * WebKit.exp: removed symbols
3559 2004-12-08 Ken Kocienda <kocienda@apple.com>
3563 * WebView.subproj/WebHTMLView.m:
3564 (-[WebHTMLView drawRect:]): Work around for this bug:
3565 <rdar://problem/3908282> REGRESSION (Mail): No drag image dragging selected text in Blot and Mail
3566 The reason for the workaround is that this method is called explicitly from the code
3567 to generate a drag image, and at that time, getRectsBeingDrawn:count: will return a zero count.
3568 This code change uses the passed-in rect when the count is zero.
3570 2004-12-07 Administrator <cblu@apple.com>
3572 Support for fix for:
3573 <rdar://problem/3734309> Safari doesn't open folders in title bar menu with non-Roman names using Cmd+click
3577 * Misc.subproj/WebNSURLExtras.h:
3578 * Misc.subproj/WebNSURLExtras.m:
3579 (+[NSURL _web_URLWithUserTypedString:relativeToURL:]): renamed to take relativeToURL parameter
3580 (+[NSURL _web_URLWithUserTypedString:]): call _web_URLWithUserTypedString:relativeToURL: with nil for URL
3582 2004-12-07 Richard Williamson <rjw@apple.com>
3584 Fixed <rdar://problem/3905564> REGRESSION (Tiger); in History menu, pixel size appears but is wrong for standalone images in Safari.
3588 * WebCoreSupport.subproj/WebImageRenderer.m:
3589 (-[WebImageRenderer size]):
3591 2004-12-07 Richard Williamson <rjw@apple.com>
3593 Support threaded image decoding on machines w/ >= 2 CPUs.
3595 Reviewed by Maciej and Chris.
3597 * Misc.subproj/WebKitSystemBits.h:
3598 * Misc.subproj/WebKitSystemBits.m:
3599 (WebSystemMainMemory):
3601 * WebCoreSupport.subproj/WebImageData.h:
3602 * WebCoreSupport.subproj/WebImageData.m:
3603 (+[WebImageData initialize]):
3604 (-[WebImageData init]):
3605 (-[WebImageData _commonTermination]):
3606 (-[WebImageData dealloc]):
3607 (-[WebImageData _invalidateImages]):
3608 (-[WebImageData _imageSourceOptions]):
3609 (-[WebImageData imageAtIndex:]):
3610 (-[WebImageData propertiesAtIndex:]):
3611 (-[WebImageData _createImages]):
3612 (-[WebImageData decodeData:isComplete:callback:]):
3613 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
3615 (-[WebImageData tileInRect:fromPoint:context:]):
3616 (-[WebImageData isNull]):
3617 (-[WebImageData size]):
3618 (-[WebImageData _frameDurationAt:]):
3619 (-[WebImageData _frameDuration]):
3620 (+[WebImageData stopAnimationsInView:]):
3621 (-[WebImageData addAnimatingRenderer:inView:]):
3622 (-[WebImageData removeAnimatingRenderer:]):
3623 * WebCoreSupport.subproj/WebImageDecodeItem.h: Added.
3624 * WebCoreSupport.subproj/WebImageDecodeItem.m: Added.
3625 (+[WebImageDecodeItem decodeItemWithImage:data:isComplete:callback:]):
3626 (-[WebImageDecodeItem initWithImage:data:isComplete:callback:]):
3627 (-[WebImageDecodeItem finalize]):
3628 (-[WebImageDecodeItem dealloc]):
3629 * WebCoreSupport.subproj/WebImageDecoder.h: Added.
3630 * WebCoreSupport.subproj/WebImageDecoder.m: Added.
3631 (decoderNotifications):
3632 (+[WebImageDecoder initialize]):
3633 (+[WebImageDecoder notifyMainThread]):
3634 (+[WebImageDecoder sharedDecoder]):
3635 (+[WebImageDecoder performDecodeWithImage:data:isComplete:callback:]):
3636 (+[WebImageDecoder imageDecodesPending]):
3637 (+[WebImageDecoder decodeComplete:status:]):
3638 (-[WebImageDecoder init]):
3639 (-[WebImageDecoder dealloc]):
3640 (-[WebImageDecoder finalize]):
3641 (-[WebImageDecoder removeItem]):
3642 (-[WebImageDecoder addItem:]):
3643 (-[WebImageDecoder decodeItem:]):
3645 (startDecoderThread):
3646 * WebCoreSupport.subproj/WebImageRenderer.m:
3647 (-[WebImageRenderer initWithData:MIMEType:]):
3648 (-[WebImageRenderer initWithContentsOfFile:]):
3649 (-[WebImageRenderer incrementalLoadWithBytes:length:complete:callback:]):
3650 (-[WebInternalImage incrementalLoadWithBytes:length:complete:callback:]):
3651 * WebKit.pbproj/project.pbxproj:
3652 * WebView.subproj/WebImageRepresentation.m:
3653 (-[WebImageRepresentation receivedData:withDataSource:]):
3654 (-[WebImageRepresentation receivedError:withDataSource:]):
3655 (-[WebImageRepresentation finishedLoadingWithDataSource:]):
3657 2004-12-07 Chris Blumenberg <cblu@apple.com>
3659 Fix for performance regression.
3663 * WebCoreSupport.subproj/WebBridge.m:
3664 (-[WebBridge objectLoadedFromCacheWithURL:response:data:]): construct the WebResource without copying the data
3666 2004-12-07 Chris Blumenberg <cblu@apple.com>
3668 Fixed: <rdar://problem/3909243> REGRESSION: large standalone images stop loading part way through
3672 * WebView.subproj/WebBaseResourceHandleDelegate.h:
3673 * WebView.subproj/WebMainResourceClient.m:
3674 (-[WebMainResourceClient addData:]): call super so it buffers the data
3676 2004-12-06 Richard Williamson <rjw@apple.com>
3678 Use the AppKit's font rendering mode. This fixes 3905347, but we still need to track down
3679 and resolve why metrics have changed for Courier. This may be caused by changes in
3684 * WebCoreSupport.subproj/WebTextRenderer.m:
3685 (_AppkitGetCGRenderingMode):
3689 2004-12-06 Chris Blumenberg <cblu@apple.com>
3691 Forgot to commit copied header.
3693 * DOM.subproj/DOMPrivate.h:
3695 2004-12-06 Chris Blumenberg <cblu@apple.com>
3697 Fixed: <rdar://problem/3907381> NSURLConnection and WebKit buffer 2 copies of incoming data
3701 * WebView.subproj/WebBaseResourceHandleDelegate.h:
3702 * WebView.subproj/WebBaseResourceHandleDelegate.m:
3703 (+[WebBaseResourceHandleDelegate initialize]): cache check to see if Foundation supports access to its buffered data
3704 (-[WebBaseResourceHandleDelegate addData:]): don't buffer data if Foundation is buffering it for us
3705 (-[WebBaseResourceHandleDelegate saveResource]): when creating a WebResource, pass NO for copyData since we know it won't be mutated
3706 (-[WebBaseResourceHandleDelegate resourceData]): return the buffered data from the connection if it supports it
3707 (-[WebBaseResourceHandleDelegate willStopBufferingData:]): make a mutable copy of the data from NSURLConnection so we can continue buffering
3708 (-[WebBaseResourceHandleDelegate willCacheResponse:]): removed optimization that used the cached response data to save the resource since that is obsolete by this change
3709 (-[WebBaseResourceHandleDelegate connection:willStopBufferingData:]): new callback from NSURLConnection, informs us that NSURLConnection has given up buffering
3710 * WebView.subproj/WebDataSource.m:
3711 (-[WebDataSource _receivedData:]): removed buffering code since that's done by NSURLConnection and the main client
3712 (-[WebDataSource _setData:]): removed unnecessary cast since the resourceData ivar is now an NSData instead of NSMutableData
3713 (-[WebDataSource data]): return resourceData ivar, else return the resourceData from the main client
3714 * WebView.subproj/WebDataSourcePrivate.h:
3715 * WebView.subproj/WebMainResourceClient.m:
3716 (-[WebMainResourceClient releaseResources]): store resourceData on the data source so it can continue to have data after the main client has gone away
3717 (-[WebMainResourceClient connection:didReceiveData:lengthReceived:]):don't call [dataSource data] just to get the length of data received since [dataSource data] can now cause data to be copied
3718 (-[WebMainResourceClient connectionDidFinishLoading:]): ditto
3719 * WebView.subproj/WebResource.m:
3720 (-[WebResource initWithData:URL:MIMEType:textEncodingName:frameName:]): call following method with YES for copyData
3721 (-[WebResource _initWithData:URL:MIMEType:textEncodingName:frameName:copyData:]): new initializer, allows caller to choose whether or not the data is copied
3722 * WebView.subproj/WebResourcePrivate.h:
3724 2004-12-06 Richard Williamson <rjw@apple.com>
3726 Fixed <rdar://problem/3903749> REGRESSION (8A321): WebKit gets incorrect glyph metrics due to change in how AppKit uses CGFont
3728 Use CGFontRef direction when both getting font metrics and drawing
3729 glyphs, instead on depending on [NSFont set].
3733 * WebCoreSupport.subproj/WebTextRenderer.m:
3737 2004-12-06 Ken Kocienda <kocienda@apple.com>
3739 Reviewed by Harrison
3743 <rdar://problem/3906930> Hitting return key in editable content inserts br elements instead of blocks
3745 * WebView.subproj/WebHTMLView.m:
3746 (-[WebHTMLView insertNewline:]): One-line change to call insert-block rather than insert-br method
3749 2004-12-04 Darin Adler <darin@apple.com>
3753 - fixed <rdar://problem/3846079> assertion failure in WebHTMLView(WebPrivate) removeTrackingRect at boots.com
3754 - fixed <rdar://problem/3857737> REGRESSION (165-166): clicking in a text field that's scrolled to the right causes it to scroll all the way left
3755 - fixed <rdar://problem/3861952> REGRESSION (165-166): selection is cleared when you start to scroll a frame
3757 * WebView.subproj/WebHTMLViewInternal.h: Added handlingMouseDown flag.
3758 * WebView.subproj/WebHTMLView.m:
3759 (-[WebHTMLView _addTrackingRect:owner:userData:assumeInside:useTrackingNum:]): Allow passing in a
3760 tracking number of 0, which means no existing tracking number.
3761 (-[WebHTMLView _addTrackingRects:owner:userDataList:assumeInsideList:trackingNums:count:]): Ditto.
3762 (-[WebHTMLView removeTrackingRect:]): Allow removing a tracking number of 0, which is a no-op.
3763 (-[WebHTMLView _removeTrackingRects:count:]): Ditto.
3764 (-[WebHTMLView acceptsFirstResponder]): Changed check to use handlingMouseDown flag instead of mouseDownEvent
3765 field since that field is set up too early in the mouse down event handling process.
3766 (-[WebHTMLView mouseDown:]): Added code to set handlingMouseDown flag.
3768 - fixed part of <rdar://problem/3829808> Safari crashes when adding a DOM node that was removed from an XMLHTTP request result
3770 * WebCoreSupport.subproj/WebBridge.m:
3771 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
3772 Changed code around so that it won't try to create a WebResource when the load fails.
3774 - moved next/previous links into private structure with the rest of WebFrame fields
3775 (We have a rule against putting new fields into obejcts that are part of our public API.)
3777 * WebView.subproj/WebFrame.h: Remove _nextSibling and _previousSibling.
3778 * WebView.subproj/WebFramePrivate.h: Added nextSibling and previousSibling fields to private class.
3779 * WebView.subproj/WebFrame.m: Got rid of some tabs in this file.
3780 (-[WebFrame _addChild:]): Changed code to use fields inside _private.
3781 (-[WebFrame _removeChild:]): Ditto.
3782 (-[WebFrame _nextFrameWithWrap:]): Ditto.
3783 (-[WebFrame _previousFrameWithWrap:]): Ditto.
3785 2004-12-04 Chris Blumenberg <cblu@apple.com>
3788 <rdar://problem/3685766> WebDataSource is missing subresources when they use cached WebCore data
3789 <rdar://problem/3722434> REGRESSION?: Assertion failure trying to drag image in iframe (itapema.sc.gov.br)
3790 <rdar://problem/3903173> REGRESSION (172-TOT): assertion failure and crash in slotAllData logging into hotmail account
3791 <rdar://problem/3902749> REGRESSION (Tiger): missing image symbol does not appear
3793 Reviewed by darin, rjw, kocienda.
3795 * WebCoreSupport.subproj/WebBridge.m:
3796 (-[WebBridge objectLoadedFromCacheWithURL:response:data:]):
3797 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
3798 * WebCoreSupport.subproj/WebSubresourceClient.m:
3799 (-[WebSubresourceClient didFinishLoading]):
3800 * WebView.subproj/WebFrame.m:
3801 (-[WebFrame _opened]):
3802 (-[WebFrame _internalLoadDelegate]):
3803 (-[WebFrame _sendResourceLoadDelegateMessagesForURL:response:length:]):
3804 * WebView.subproj/WebFrameInternal.h:
3806 2004-12-04 Darin Adler <darin@apple.com>
3810 - fixed remaining bit of <rdar://problem/3814237> REGRESSION (Mail): Copy/paste style does not set color in Mail compose window
3812 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView _styleFromFontAttributes:]): When translating from
3813 an attribute dictionary to a CSS declaration, treat missing values according to the defaults defined
3814 in <AppKit/NSAttributedString.h>. Before the code was treating them as "no change", which is incorrect.
3816 * English.lproj/StringsNotToBeLocalized.txt: Add a string from the above change.
3820 2004-12-03 Ken Kocienda <kocienda@apple.com>
3824 Roll out some recent changes by Chris that caused a performance regression.
3825 Fix is in hand, but it is a little risky this close to a submission. So,
3826 we have decided to roll back the change with the regression and roll in
3827 the new code after we submit.
3829 * WebCoreSupport.subproj/WebBridge.m:
3830 (-[WebBridge objectLoadedFromCacheWithURL:response:size:]):
3831 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
3832 * WebCoreSupport.subproj/WebSubresourceClient.m:
3833 (-[WebSubresourceClient didFinishLoading]):
3834 * WebView.subproj/WebFrame.m:
3835 (-[WebFrame _opened]):
3836 (-[WebFrame _internalLoadDelegate]):
3837 * WebView.subproj/WebFrameInternal.h:
3839 2004-12-02 Richard Williamson <rjw@apple.com>
3841 Fixed <rdar://problem/3841332> REGRESSION (125.9-167u): repro crash in -[KWQPageState invalidate] involving .Mac images
3843 Ensure that the document is cleared when leaving a non-HTML page. This ensures that
3844 the b/f cache won't incorrectly trash the previous state when restoring.
3848 * WebView.subproj/WebFrame.m:
3849 (-[WebFrame _setState:]):
3851 2004-12-02 Ken Kocienda <kocienda@apple.com>
3855 <rdar://problem/3748323> Problem with -[WebView editableDOMRangeForPoint:] (-isFlipped not taken into account?)
3856 <rdar://problem/3852590> REGRESSION (Mail): Dropped content appears in wrong place if Mail message is scrolled down
3858 When implementing drag and drop, moveDragCaretToPoint: and editableDOMRangeForPoint: are used in
3859 concert to track the mouse and determine a drop location, respectively. However, moveDragCaretToPoint:
3860 did a conversion of the passed-in point to the document view's coordinate space, whereas
3861 editableDOMRangeForPoint: did not. Now it does.
3863 Note that I will need to coordinate with Grant to have him roll out some code in Mail that
3864 attempts to work around this problem (unsuccessfully), and actually manages to block the
3865 real fix (which needs to be in WebKit).
3867 * WebView.subproj/WebView.m:
3868 (-[WebView editableDOMRangeForPoint:]): Convert the passed-in point to the document view's coordinate space.
3870 2004-12-02 Richard Williamson <rjw@apple.com>
3872 Fixed <rdar://problem/3895810> FATAL ERROR: <WebTextRenderer: 0x9328a20> unable to initialize with font "Times-Roman 16.00 pt. S ....
3874 We have a hack to replace Times with Times New Roman if we fail
3875 to setup Times. If we then fail to setup Times New Roman we
3876 don't attempt to further fallback to the system font. Added
3877 that additional fallback.
3881 * WebCoreSupport.subproj/WebTextRenderer.m:
3882 (+[WebTextRenderer webFallbackFontFamily]):
3883 (-[WebTextRenderer initWithFont:usingPrinterFont:]):
3885 2004-12-02 Richard Williamson <rjw@apple.com>
3887 Fixed build problem on Tiger8A821. Private macro and function
3888 we were using have been deprecated,
3892 * WebCoreSupport.subproj/WebTextRenderer.m:
3893 (-[WebTextRenderer initWithFont:usingPrinterFont:]):
3895 2004-12-01 Chris Blumenberg <cblu@apple.com>
3897 Fixed: <rdar://problem/3879870> Flash Player unable to stop data stream from continuing to download by returning -1 from NPP_Write
3898 Also improved and cleaned-up the plug-in stream termination code.
3902 * Plugins.subproj/WebBaseNetscapePluginStream.h:
3903 * Plugins.subproj/WebBaseNetscapePluginStream.m:
3904 (+[WebBaseNetscapePluginStream reasonForError:]): return NPRES_DONE for a nil error
3905 (-[WebBaseNetscapePluginStream _pluginCancelledConnectionError]): new, factored out from other methods
3906 (-[WebBaseNetscapePluginStream errorForReason:]): new
3907 (-[WebBaseNetscapePluginStream dealloc]): release MIME type
3908 (-[WebBaseNetscapePluginStream setMIMEType:]): new
3909 (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:]): call setMIMEType so we can use it in _pluginCancelledConnectionError, call renamed methods
3910 (-[WebBaseNetscapePluginStream _destroyStream]): prepended underscore, replaced some early returns with asserts as the callers are now smarter
3911 (-[WebBaseNetscapePluginStream _destroyStreamWithReason:]): prepended underscore, only call _destroyStream if there is an error or if the load is complete and there is no more data to be streamed
3912 (-[WebBaseNetscapePluginStream cancelLoadWithError:]): new, overridden by subclasses to cancel the actual NSURLConnection
3913 (-[WebBaseNetscapePluginStream destroyStreamWithError:]): new, calls _destroyStreamWithReason
3914 (-[WebBaseNetscapePluginStream finishedLoadingWithData:]): call renamed methods
3915 (-[WebBaseNetscapePluginStream _deliverData]): prepended underscore, call cancelLoadAndDestroyStreamWithError if NPP_Write returns a negative number
3916 * Plugins.subproj/WebBaseNetscapePluginView.m:
3917 (-[WebBaseNetscapePluginView destroyStream:reason:]): call cancelLoadAndDestroyStreamWithError
3918 * Plugins.subproj/WebNetscapePluginRepresentation.m:
3919 (-[WebNetscapePluginRepresentation receivedError:withDataSource:]): call destroyStreamWithError
3920 (-[WebNetscapePluginRepresentation cancelLoadWithError:]): new, override method, tell the data source to stop loading
3921 * Plugins.subproj/WebNetscapePluginStream.m:
3922 (-[WebNetscapePluginStream cancelLoadWithError:]): new, override method, tell the loader to stop
3923 (-[WebNetscapePluginStream stop]): call cancelLoadAndDestroyStreamWithError
3924 (-[WebNetscapePluginConnectionDelegate isDone]): new
3925 (-[WebNetscapePluginConnectionDelegate didReceiveResponse:]): call cancelLoadAndDestroyStreamWithError
3926 (-[WebNetscapePluginConnectionDelegate didFailWithError:]): call destroyStreamWithError
3928 2004-12-01 Kevin Decker <kdecker@apple.com>
3930 Reviewed by Harrison.
3932 Fixed: <rdar://problem/3228878> potential performance problem in finding in large framesets
3934 Got rid of O(N^2) conditions in _nextSibling and _previousSibling of where we were looking up self in the parent array of frames.
3936 * WebView.subproj/WebFrame.h: Added two new pointers, one for the previous kid and one for the next kid
3937 * WebView.subproj/WebFrame.m:
3938 (-[WebFrame _addChild:]): Updates the previous frame and the next frame after this child
3939 (-[WebFrame _removeChild:]): ditto
3940 (-[WebFrame _nextSibling]): just return the pointer now
3941 (-[WebFrame _previousSibling]): ditto
3943 2004-11-30 Chris Blumenberg <cblu@apple.com>
3946 <rdar://problem/3685766> WebDataSource is missing subresources when they use cached WebCore data
3947 <rdar://problem/3722434> REGRESSION?: Assertion failure trying to drag image in iframe (itapema.sc.gov.br)
3951 * WebCoreSupport.subproj/WebBridge.m:
3952 (-[WebBridge objectLoadedFromCacheWithURL:response:data:]): renamed to pass all data for the resource, moved delegate code to new method
3953 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]): call renamed method
3954 * WebCoreSupport.subproj/WebSubresourceClient.m:
3955 (-[WebSubresourceClient didFinishLoading]): call renamed method
3956 * WebView.subproj/WebFrame.m:
3957 (-[WebFrame _opened]): call _sendResourceLoadDelegateMessagesForURL:response:length:, not objectLoadedFromCacheWithURL:response:data:
3958 (-[WebFrame _internalLoadDelegate]):
3959 (-[WebFrame _sendResourceLoadDelegateMessagesForURL:response:length:]): moved from objectLoadedFromCacheWithURL:response:data:
3960 * WebView.subproj/WebFrameInternal.h:
3962 2004-11-29 Darin Adler <darin@apple.com>
3966 - worked around bug in Panther where NSScroller calls _destinationFloatValueForScroller: on superview
3967 without first checking if it's implemented
3969 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView _destinationFloatValueForScroller:]):
3970 Implemented. Calls floatValue on the scroller.
3972 * English.lproj/StringsNotToBeLocalized.txt: Update for recent changes.
3974 2004-11-23 Chris Blumenberg <cblu@apple.com>
3976 Fixed: <rdar://problem/3890944> disable icon database for Dashboard
3980 * Misc.subproj/WebIconDatabase.h:
3981 * Misc.subproj/WebIconDatabase.m:
3982 (-[WebIconDatabase init]): don't create dictionaries if disabled
3983 (-[WebIconDatabase iconForURL:withSize:cache:]): return default icon if disabled
3984 (-[WebIconDatabase iconURLForURL:]): return nil if disabled
3985 (-[WebIconDatabase retainIconForURL:]): return if disabled
3986 (-[WebIconDatabase releaseIconForURL:]): ditto
3987 (-[WebIconDatabase delayDatabaseCleanup]): ditto
3988 (-[WebIconDatabase allowDatabaseCleanup]): ditto
3989 (-[WebIconDatabase _isEnabled]): new
3990 (-[WebIconDatabase _setIcon:forIconURL:]): assert if called when disabled, moved to own category implementation
3991 (-[WebIconDatabase _setHaveNoIconForIconURL:]): ditto
3992 (-[WebIconDatabase _setIconURL:forURL:]): ditto
3993 (-[WebIconDatabase _createFileDatabase]): tweak
3994 (-[WebIconDatabase _applicationWillTerminate:]): moved out of public code
3995 * Misc.subproj/WebIconDatabasePrivate.h:
3996 * Misc.subproj/WebIconLoader.m:
3997 * WebView.subproj/WebDataSource.m:
3998 (-[WebDataSource _updateIconDatabaseWithURL:]): assert if called when icon DB is disabled
3999 (-[WebDataSource _loadIcon]): don't load icon if icon DB is disabled
4001 2004-11-22 David Hyatt <hyatt@apple.com>
4003 Make sure the WebCore cache grows at 512mb and at 1024mb exactly.
4007 * WebCoreSupport.subproj/WebBridge.m:
4008 (-[WebBridge getObjectCacheSize]):
4010 2004-11-22 Richard Williamson <rjw@apple.com>
4012 Fixed <rdar://problem/3891737> WebPreferences do not work if they are set before set on the WebView
4014 John found this problem and suggested the fix.
4016 Reviewed by John Louch.
4018 * WebView.subproj/WebView.m:
4019 (-[WebView setPreferences:]):
4021 2004-11-22 Ken Kocienda <kocienda@apple.com>
4023 Reviewed by Harrison
4025 * WebCoreSupport.subproj/WebBridge.m:
4026 (-[WebBridge canPaste]): Call WebView _canPaste.
4027 * WebView.subproj/WebView.m:
4028 (-[WebView _canPaste]): Try to forward to document view's implementation. Only WebHTMLView
4029 answers right now. Returns NO otherwise.
4030 * WebView.subproj/WebViewInternal.h: Add _canPaste method to WebView.
4032 2004-11-22 Maciej Stachowiak <mjs@apple.com>
4034 Back out the window closing fix, it seems to be causing crashes.
4036 * WebView.subproj/WebFrame.m:
4037 (-[WebFrame _detachFromParent]):
4039 2004-11-20 Maciej Stachowiak <mjs@apple.com>
4043 <rdar://problem/3710101> _web_userVisibleString makes URL autocomplete roughly 2x slower
4045 * Misc.subproj/WebNSURLExtras.h:
4046 * Misc.subproj/WebNSURLExtras.m:
4047 (-[NSString _web_isUserVisibleURL]): New SPI to check if a URL
4048 string is already in user-visible form (i.e. converting it to an
4049 NSURL and then back via _web_userVisibleString would not change
4052 2004-11-19 Maciej Stachowiak <mjs@apple.com>
4056 <rdar://problem/3190977> closing window with many tabs in it can be quite slow
4058 * WebView.subproj/WebFrame.m:
4059 (-[WebFrame _detachFromParent]): autorelease bridge instead of releasing it,
4060 to make window and tab closing more responsive - this way the deallocation happens
4061 after the windoow or tab appears to close.
4065 2004-11-19 Chris Blumenberg <cblu@apple.com>
4067 Fixed: <rdar://problem/3880387> REGRESSION: www.shockplay.com site gives "Unexpected server response"
4071 * Plugins.subproj/WebBaseNetscapePluginView.m:
4072 (-[NSData _web_locationAfterFirstBlankLine]): support both formats ("\r\n\n" and "\r\n\r\n") for separating header data from body data because Shockwave still sends the prior format
4074 2004-11-19 Ken Kocienda <kocienda@apple.com>
4076 Reviewed by Harrison
4080 <rdar://problem/3655241> setTypingStyle: does not set the real typing style, and typingStyle does not return it
4082 * WebCoreSupport.subproj/WebBridge.m:
4083 (-[WebBridge respondToChangedContents]): No longer call through to WebKit to set the typing style. The call
4084 was part of the misguided use of the setTypingStyle: and typingStyle as a cache of what was stored on
4086 (-[WebBridge respondToChangedSelection]): Ditto.
4087 * WebView.subproj/WebView.m:
4088 (-[WebViewPrivate dealloc]): Object no longer has typingStyle ivar.
4089 (-[WebView setTypingStyle:]): Call over the bridge to set typing style.
4090 (-[WebView typingStyle]): Call over the bridge to retrieve typing style.
4091 * WebView.subproj/WebViewInternal.h: Object no longer has typingStyle ivar.
4093 2004-11-18 John Sullivan <sullivan@apple.com>
4097 - fixed <rdar://problem/3886042> should save history file as binary XML so serialization,
4098 parsing, reading and writing is faster
4100 * History.subproj/WebHistory.m:
4101 (-[WebHistoryPrivate _saveHistoryGuts:URL:error:]):
4102 convert dictionary to binary data before saving
4104 2004-11-18 Chris Blumenberg <cblu@apple.com>
4106 * WebView.subproj/WebHTMLRepresentation.m:
4107 (-[WebHTMLRepresentation currentForm]): removed stray ";"
4109 2004-11-18 Chris Blumenberg <cblu@apple.com>
4111 Fixed development build failure.
4113 * Misc.subproj/WebIconDatabase.m:
4114 (+[WebIconDatabase sharedIconDatabase]): call LOG not Log
4116 2004-11-18 Chris Blumenberg <cblu@apple.com>
4118 <rdar://problem/3885708> save memory in icon DB by not using NSSets when holding 1 object
4120 Reviewed by sullivan.
4122 * Misc.subproj/WebIconDatabase.m:
4123 (+[WebIconDatabase sharedIconDatabase]): added timing code
4124 (-[WebIconDatabase _clearDictionaries]): new
4125 (-[WebIconDatabase _loadIconDictionaries]): call _clearDictionaries in 2 places before we bail, use _web_setObjectUsingSetIfNecessary:forKey: when adding site URLs to the iconURLToURLs dictionary
4126 (-[WebIconDatabase _updateFileDatabase]): fixed comment
4127 (-[WebIconDatabase _setIconURL:forURL:]): use _web_setObjectUsingSetIfNecessary:forKey: when adding site URLs to the iconURLToURLs dictionary
4128 (-[WebIconDatabase _releaseIconForIconURLString:]): handle NSString objects retured from iconURLToURLs
4129 (-[NSMutableDictionary _web_setObjectUsingSetIfNecessary:forKey:]): new, puts a set on the dictionary when there are 2 or more object for s key
4131 2004-11-17 Richard Williamson <rjw@apple.com>
4133 Fixed <rdar://problem/3885073> REGRESSION: Tab images at top of news.com.com replicated and squished
4135 Correctly account for scaled image size and clipping.
4139 * WebCoreSupport.subproj/WebImageData.h:
4140 * WebCoreSupport.subproj/WebImageData.m:
4141 * WebCoreSupport.subproj/WebImageRenderer.m:
4142 (-[WebImageRenderer drawImageInRect:fromRect:compositeOperator:context:]):
4144 2004-11-17 Maciej Stachowiak <mjs@apple.com>
4146 Reviewed by Richard.
4148 <rdar://problem/3885076> Don't make IDN calls for all-ascii URLs to save about 3 pages
4151 * Misc.subproj/WebNSURLExtras.m:
4152 (mapHostNames): If encoding and not decoding, then bail early if the URL is all ascii.
4153 (-[NSString _web_mapHostNameWithRange:encode:makeString:]): Remove earlier special-case
4154 check for localhost, no longer needed.
4156 2004-11-17 Richard Williamson <rjw@apple.com>
4158 Fixed <rdar://problem/3863601> Legacy font cache code in [WebTextRendererFactory createSharedFactory] may be unnecesary
4160 and added call to SPI for
4162 <rdar://problem/3884448> WebKit should turn on CG local font cache
4164 currently disabled until a Tiger build shows up with the SPI.
4166 Reviewed by David Harrison.
4168 * WebCoreSupport.subproj/WebTextRendererFactory.m:
4169 (+[WebTextRendererFactory createSharedFactory]):
4171 2004-11-17 Richard Williamson <rjw@apple.com>
4173 Fixed <rdar://problem/3882212> REGRESSION: Images clipped instead of scaled
4174 Fixed <rdar://problem/3884088> Crash terminating image load
4176 Also added code to turn off color correction for images created
4177 via CGImageSources. This code is currently disabled because CG
4178 can't change the color space of images loaded progressively.
4179 Further, according to Dave Hayward, CG will no longer attempt
4180 to color correct images that don't have embedded profiles as of
4185 * WebCoreSupport.subproj/WebImageData.m:
4186 (-[WebImageData _commonTermination]):
4187 (-[WebImageData dealloc]):
4188 (-[WebImageData _invalidateImageProperties]):
4189 (-[WebImageData imageAtIndex:]):
4190 (-[WebImageData incrementalLoadWithBytes:length:complete:]):
4191 (-[WebImageData propertiesAtIndex:]):
4193 2004-11-16 Chris Blumenberg <cblu@apple.com>