1 2005-06-05 Darin Adler <darin@apple.com>
5 - fixed build that I broke with the license change (some includes of WebException were still around)
7 * WebKit.pbproj/project.pbxproj: Removed references to WebException.h/m.
8 * WebView.subproj/WebDataSource.m: Removed include of WebException.h.
9 * WebView.subproj/WebHTMLView.m: Ditto.
10 * WebView.subproj/WebView.m: Ditto.
12 - fixed build under gcc 4.0 (some code moved here from Foundation had warnings)
14 * Misc.subproj/WebNSDataExtras.m:
15 (-[NSString _web_capitalizeRFC822HeaderFieldName]): Use char instead of UInt8.
16 (-[NSData _webkit_guessedMIMEType]): Use char instead of UInt8, and take out now-
19 2005-06-05 Maciej Stachowiak <mjs@apple.com>
23 - remove security code and use the stuff from WebKitSystemInterface instead
25 * WebCoreSupport.subproj/WebKeyGenerator.m:
26 (-[WebKeyGenerator signedPublicKeyAndChallengeStringWithStrengthIndex:challenge:pageURL:]):
27 (-[WebKeyGenerator addCertificatesToKeychainFromData:]):
28 * WebCoreSupport.subproj/WebNewKeyGeneration.c: Removed.
29 * WebCoreSupport.subproj/WebNewKeyGeneration.h: Removed.
30 * WebKit.pbproj/project.pbxproj:
32 2005-06-05 Darin Adler <darin@apple.com>
34 - added appropriate license headers to most files and updated copyright to reflect publication dates
37 * <lots of files>: Added license header.
39 * WebKit.pbproj/project.pbxproj: Removed references to NP_objc.h.
41 * API-Issues.rtf: Removed.
42 * Misc.subproj/WebException.h: Removed.
43 * Misc.subproj/WebException.m: Removed.
44 * Plugins.subproj/NP_objc.h: Removed.
46 2005-06-05 Maciej Stachowiak <mjs@apple.com>
50 - link against libWebKitSystemInterface and use the first function in it.
52 * Misc.subproj/WebNSUserDefaultsExtras.m:
53 (-[NSString _webkit_HTTPStyleLanguageCode]): use WKCopyCFLocalizationPreferredName
54 * Plugins.subproj/WebBasePluginPackage.m:
55 (+[WebBasePluginPackage preferredLocalizationName]): ditto
56 * WebKit.pbproj/project.pbxproj: link in libWebKitSystemInterface.a and find headers.
58 2005-06-04 Darin Adler <darin@apple.com>
62 - did some work to move SPI use from WebCore here (to be moved from here into WebKitSystemInterface)
63 - fixed so we can compile ICU includes without Apple Internal headers installed
65 * WebCoreSupport.subproj/WebViewFactory.m:
66 (-[WebViewFactory objectIsTextMarker:]): Added.
67 (-[WebViewFactory objectIsTextMarkerRange:]): Added.
68 (-[WebViewFactory textMarkerWithBytes:length:]): Added.
69 (-[WebViewFactory getBytes:fromTextMarker:length:]): Added.
70 (-[WebViewFactory textMarkerRangeWithStart:end:]): Added.
71 (-[WebViewFactory startOfTextMarkerRange:]): Added.
72 (-[WebViewFactory endOfTextMarkerRange:]): Added.
73 (-[WebViewFactory accessibilityHandleFocusChanged]): Added.
74 (-[WebViewFactory AXUIElementForElement:]): Added.
75 (-[WebViewFactory unregisterUniqueIdForUIElement:]): Added.
77 * WebKit.pbproj/project.pbxproj: Added icu to the header search files.
78 Removed bogus DSTROOT thing from the framework paths (I meant to remove that a while back).
81 * icu/unicode/parseerr.h: Added.
82 * icu/unicode/platform.h: Added.
83 * icu/unicode/uchar.h: Added.
84 * icu/unicode/uconfig.h: Added.
85 * icu/unicode/uidna.h: Added.
86 * icu/unicode/uiter.h: Added.
87 * icu/unicode/umachine.h: Added.
88 * icu/unicode/unorm.h: Added.
89 * icu/unicode/urename.h: Added.
90 * icu/unicode/uscript.h: Added.
91 * icu/unicode/utf.h: Added.
92 * icu/unicode/utf16.h: Added.
93 * icu/unicode/utf8.h: Added.
94 * icu/unicode/utf_old.h: Added.
95 * icu/unicode/utypes.h: Added.
96 * icu/unicode/uversion.h: Added.
98 2005-06-04 Maciej Stachowiak <mjs@apple.com>
102 - replace more use of CGCompositeOperation that I missed.
104 * WebCoreSupport.subproj/WebImageData.m:
105 (-[WebImageData _checkSolidColor:]):
106 (-[WebImageData _fillSolidColorInRect:compositeOperation:context:]):
107 (-[WebImageData tileInRect:fromPoint:context:]):
108 (-[WebImageData _PDFDrawFromRect:toRect:operation:alpha:flipped:context:]):
109 * WebCoreSupport.subproj/WebImageRenderer.m:
110 (-[WebInternalImage _PDFDrawFromRect:toRect:operation:alpha:flipped:]):
112 2005-06-03 Maciej Stachowiak <mjs@apple.com>
116 - replace use of CGCompositeOperation SPI with NSCompositingOperation API
118 * WebCoreSupport.subproj/WebImageData.h:
119 * WebCoreSupport.subproj/WebImageData.m:
120 (-[WebImageData _fillSolidColorInRect:compositeOperation:context:]):
121 (-[WebImageData _PDFDrawFromRect:toRect:operation:alpha:flipped:context:]):
122 * WebCoreSupport.subproj/WebImageRenderer.m:
123 (-[WebImageRenderer drawImageInRect:fromRect:]):
124 (-[WebImageRenderer drawImageInRect:fromRect:compositeOperator:context:]):
125 * WebCoreSupport.subproj/WebImageRendererFactory.m:
126 (-[WebImageRendererFactory CGCompositeOperationInContext:]):
127 (-[WebImageRendererFactory setCGCompositeOperation:inContext:]):
128 (-[WebImageRendererFactory setCGCompositeOperationFromString:inContext:]):
130 2005-06-02 Maciej Stachowiak <mjs@apple.com>
134 - removed dependencies on NSError SPI
136 * Misc.subproj/WebKitErrors.m:
137 (-[NSError _webkit_initWithDomain:code:URL:]):
138 (+[NSError _webkit_errorWithDomain:code:URL:]):
139 (+[NSError _webKitErrorWithDomain:code:URL:]):
140 (+[NSError _webKitErrorWithCode:failingURL:]):
141 (+[NSError _webkit_addErrorsWithCodesAndDescriptions:inDomain:]):
143 * Plugins.subproj/WebNetscapePluginRepresentation.m:
144 * Plugins.subproj/WebNetscapePluginStream.m:
145 * WebCoreSupport.subproj/WebSubresourceClient.m:
146 * WebView.subproj/WebBaseResourceHandleDelegate.m:
147 * WebView.subproj/WebDefaultResourceLoadDelegate.m:
148 * WebView.subproj/WebMainResourceClient.m:
149 (-[WebMainResourceClient didFailWithError:]):
151 2005-06-02 Maciej Stachowiak <mjs@apple.com>
155 - remove use of _cfBundle SPI
157 * Plugins.subproj/WebBasePluginPackage.h:
158 * Plugins.subproj/WebBasePluginPackage.m:
159 (-[WebBasePluginPackage initWithPath:]):
160 (-[WebBasePluginPackage load]):
161 (-[WebBasePluginPackage dealloc]):
162 * Plugins.subproj/WebNetscapePluginPackage.m:
163 (-[WebNetscapePluginPackage openResourceFile]):
164 (-[WebNetscapePluginPackage closeResourceFile:]):
165 (-[WebNetscapePluginPackage initWithPath:]):
166 (-[WebNetscapePluginPackage unloadWithoutShutdown]):
167 (-[WebNetscapePluginPackage load]):
168 * Plugins.subproj/WebPluginPackage.m:
169 (-[WebPluginPackage initWithPath:]):
171 2005-06-02 Maciej Stachowiak <mjs@apple.com>
175 - remove use of NSURLRequest and NSUserDefaults SPI
177 * History.subproj/WebHistoryItem.m:
178 (-[WebHistoryItem _setFormInfoFromRequest:]):
179 * Misc.subproj/WebNSURLRequestExtras.h: Added.
180 * Misc.subproj/WebNSURLRequestExtras.m: Added.
181 (-[NSURLRequest _web_HTTPReferrer]):
182 (-[NSURLRequest _web_HTTPContentType]):
183 (-[NSMutableURLRequest _web_setHTTPContentType:]):
184 (-[NSMutableURLRequest _web_setHTTPReferrer:]):
185 (-[NSMutableURLRequest _web_setHTTPUserAgent:]):
186 * Misc.subproj/WebNSUserDefaultsExtras.h: Added.
187 * Misc.subproj/WebNSUserDefaultsExtras.m: Added.
188 (-[NSString _webkit_HTTPStyleLanguageCode]):
190 (+[NSUserDefaults _ensureAndLockPreferredLanguageLock]):
191 (+[NSUserDefaults _webkit_defaultsDidChange]):
192 (addDefaultsChangeObserver):
193 (+[NSUserDefaults _webkit_addDefaultsChangeObserver]):
194 (+[NSUserDefaults _webkit_preferredLanguageCode]):
195 * Plugins.subproj/WebBaseNetscapePluginView.m:
196 (-[WebBaseNetscapePluginView requestWithURLCString:]):
197 * Plugins.subproj/WebNetscapePluginEmbeddedView.m:
198 (-[WebNetscapePluginEmbeddedView didStart]):
199 * Plugins.subproj/WebNetscapePluginStream.m:
200 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
201 * WebCoreSupport.subproj/WebBridge.m:
202 (-[WebBridge createWindowWithURL:frameName:]):
203 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
204 (-[WebBridge incomingReferrer]):
205 (-[WebBridge createModalDialogWithURL:]):
206 * WebCoreSupport.subproj/WebSubresourceClient.m:
207 (+[WebSubresourceClient startLoadingResource:withRequest:customHeaders:referrer:forDataSource:]):
208 * WebCoreSupport.subproj/WebViewFactory.m:
209 (-[WebViewFactory defaultLanguageCode]):
210 * WebKit.pbproj/project.pbxproj:
211 * WebView.subproj/WebBaseResourceHandleDelegate.m:
212 (-[WebBaseResourceHandleDelegate willSendRequest:redirectResponse:]):
213 * WebView.subproj/WebDefaultContextMenuDelegate.m:
214 (-[WebDefaultUIDelegate openNewWindowWithURL:element:]):
215 * WebView.subproj/WebFrame.m:
216 (-[WebFrame _loadItem:withLoadType:]):
217 (-[WebFrame _addExtraFieldsToRequest:alwaysFromRequest:]):
218 (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
219 (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
220 * WebView.subproj/WebMainResourceClient.m:
221 * WebView.subproj/WebView.m:
222 (-[WebView _cachedResponseForURL:]):
223 (-[WebView userAgentForURL:]):
225 2005-06-02 Maciej Stachowiak <mjs@apple.com>
229 - move private gunk from header to implementation file.
231 * WebCoreSupport.subproj/WebNewKeyGeneration.c:
232 * WebCoreSupport.subproj/WebNewKeyGeneration.h:
234 2005-06-02 Maciej Stachowiak <mjs@apple.com>
238 - remove dependency on NSFileManager and NSCalendarDate private extras from WebFou
240 * History.subproj/WebHistory.m:
241 (-[WebHistoryPrivate findIndex:forDay:]):
242 (-[WebHistoryPrivate arrayRepresentation]):
243 (-[WebHistoryPrivate _loadHistoryGuts:URL:error:]):
244 * Misc.subproj/WebFileDatabase.m:
245 (-[WebFileDatabase _truncateToSizeLimit:]):
246 (-[WebFileDatabase removeAllObjects]):
247 (-[WebFileDatabase performSetObject:forKey:]):
248 (-[WebFileDatabase performRemoveObjectForKey:]):
249 (-[WebFileDatabase open]):
250 * Misc.subproj/WebKitNSStringExtras.m:
251 (-[NSString _webkit_fixedCarbonPOSIXPath]):
252 * Misc.subproj/WebNSCalendarDateExtras.h: Added.
253 * Misc.subproj/WebNSCalendarDateExtras.m: Added.
254 (-[NSCalendarDate _webkit_compareDay:]):
255 * Misc.subproj/WebNSDataExtras.h:
256 * Misc.subproj/WebNSDictionaryExtras.h:
257 * Misc.subproj/WebNSFileManagerExtras.h: Added.
258 * Misc.subproj/WebNSFileManagerExtras.m: Added.
259 (-[NSFileManager _webkit_fileExistsAtPath:isDirectory:traverseLink:]):
260 (-[NSFileManager _webkit_createIntermediateDirectoriesForPath:attributes:]):
261 (-[NSFileManager _webkit_createDirectoryAtPathWithIntermediateDirectories:attributes:]):
262 (-[NSFileManager _webkit_createFileAtPathWithIntermediateDirectories:contents:attributes:directoryAttributes:]):
263 (-[NSFileManager _webkit_removeFileOnlyAtPath:]):
264 (-[NSFileManager _webkit_backgroundRemoveFileAtPath:]):
265 (-[NSFileManager _webkit_backgroundRemoveLeftoverFiles:]):
266 (-[NSFileManager _webkit_carbonPathForPath:]):
267 (-[NSFileManager _webkit_startupVolumeName]):
268 (-[NSFileManager _webkit_pathWithUniqueFilenameForPath:]):
269 * Plugins.subproj/WebBaseNetscapePluginStream.m:
270 * WebKit.pbproj/project.pbxproj:
271 * WebView.subproj/WebHTMLView.m:
272 (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]):
273 * WebView.subproj/WebImageView.m:
274 (-[WebImageView namesOfPromisedFilesDroppedAtDestination:]):
276 2005-06-02 Maciej Stachowiak <mjs@apple.com>
280 - remove dependencies on NSDictionary and NSURL extras
282 * History.subproj/WebHistoryItem.m:
283 (-[WebHistoryItem initFromDictionaryRepresentation:]):
284 * Misc.subproj/WebKitNSStringExtras.h:
285 * Misc.subproj/WebKitNSStringExtras.m:
286 (-[NSString _webkit_hasCaseInsensitiveSuffix:]):
287 (-[NSString _webkit_hasCaseInsensitiveSubstring:]):
288 (-[NSString _webkit_filenameByFixingIllegalCharacters]):
289 * Misc.subproj/WebNSDictionaryExtras.h: Added.
290 * Misc.subproj/WebNSDictionaryExtras.m: Added.
291 (-[NSDictionary _webkit_numberForKey:]):
292 (-[NSDictionary _webkit_intForKey:]):
293 (-[NSDictionary _webkit_stringForKey:]):
294 (-[NSDictionary _webkit_objectForMIMEType:]):
295 (-[NSMutableDictionary _webkit_setObject:forUncopiedKey:]):
296 (-[NSMutableDictionary _webkit_setInt:forKey:]):
297 (-[NSMutableDictionary _webkit_setBool:forKey:]):
298 * Misc.subproj/WebNSPasteboardExtras.m:
299 * Misc.subproj/WebNSURLExtras.h:
300 * Misc.subproj/WebNSURLExtras.m:
301 (-[NSURL _webkit_URLByRemovingFragment]):
302 (-[NSURL _webkit_scriptIfJavaScriptURL]):
303 (-[NSURL _webkit_isFileURL]):
304 (-[NSURL _web_hostString]):
305 (-[NSURL _webkit_suggestedFilenameWithMIMEType:]):
306 * Misc.subproj/WebNSViewExtras.m:
307 * Panels.subproj/WebPanelAuthenticationHandler.m:
308 * Plugins.subproj/WebBaseNetscapePluginStream.m:
309 * Plugins.subproj/WebBaseNetscapePluginView.m:
310 (-[WebBaseNetscapePluginView evaluateJavaScriptPluginRequest:]):
311 (-[WebBaseNetscapePluginView loadPluginRequest:]):
312 (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]):
313 * Plugins.subproj/WebPluginController.m:
314 (-[WebPluginController webPlugInContainerLoadRequest:inFrame:]):
315 * WebCoreSupport.subproj/WebBridge.m:
316 * WebKit.pbproj/project.pbxproj:
317 * WebView.subproj/WebDataSource.m:
318 * WebView.subproj/WebFrame.m:
319 * WebView.subproj/WebFrameView.m:
320 * WebView.subproj/WebHTMLView.m:
321 * WebView.subproj/WebPreferences.m:
322 (-[WebPreferences _setIntegerValue:forKey:]):
323 (-[WebPreferences _setBoolValue:forKey:]):
324 * WebView.subproj/WebResource.m:
325 (-[WebResource _initWithPropertyList:]):
326 (-[WebResource _fileWrapperRepresentation]):
327 * WebView.subproj/WebView.m:
329 2005-06-02 Maciej Stachowiak <mjs@apple.com>
333 - remove dependencies on NSString and NSData extras from Foundation
335 * Misc.subproj/WebKitNSStringExtras.h:
336 * Misc.subproj/WebKitNSStringExtras.m:
337 (-[NSString _webkit_isCaseInsensitiveEqualToString:]):
338 (-[NSString _webkit_hasCaseInsensitivePrefix:]):
339 (-[NSString _webkit_stringByTrimmingWhitespace]):
340 (-[NSString _webkit_stringByCollapsingNonPrintingCharacters]):
341 (-[NSString _webkit_fixedCarbonPOSIXPath]):
342 * Misc.subproj/WebNSDataExtras.h:
343 * Misc.subproj/WebNSDataExtras.m:
344 (-[NSString _web_capitalizeRFC822HeaderFieldName]):
345 (-[NSData _web_isCaseInsensitiveEqualToCString:]):
347 (-[NSData _web_parseRFC822HeaderFields]):
348 (-[NSData _webkit_guessedMIMETypeForXML]):
349 (-[NSData _webkit_guessedMIMEType]):
350 * Misc.subproj/WebNSPasteboardExtras.m:
351 (-[NSPasteboard _web_bestURL]):
352 * Misc.subproj/WebNSURLExtras.h:
353 * Misc.subproj/WebNSURLExtras.m:
354 (applyHostNameFunctionToURLString):
355 (+[NSURL _web_URLWithUserTypedString:relativeToURL:]):
356 (+[NSURL _web_URLWithDataAsString:relativeToURL:]):
357 (-[NSURL _webkit_shouldLoadAsEmptyDocument]):
358 (-[NSString _webkit_isJavaScriptURL]):
359 (-[NSString _webkit_isFileURL]):
360 (-[NSString _webkit_isFTPDirectoryURL]):
361 (-[NSString _web_encodeHostName]):
362 (-[NSString _webkit_rangeOfURLScheme]):
363 (-[NSString _webkit_looksLikeAbsoluteURL]):
364 (-[NSString _webkit_URLFragment]):
365 * Misc.subproj/WebNSViewExtras.m:
366 * Plugins.subproj/WebBaseNetscapePluginView.m:
367 (-[WebBaseNetscapePluginView _postURL:target:len:buf:file:notifyData:sendNotification:allowHeaders:]):
368 * Plugins.subproj/WebPluginDatabase.m:
369 * WebCoreSupport.subproj/WebBridge.m:
370 (-[WebBridge setTitle:]):
371 * WebView.subproj/WebDataSource.m:
372 (-[WebDataSource _setTitle:]):
373 * WebView.subproj/WebFrame.m:
374 (-[WebFrame _loadItem:withLoadType:]):
375 * WebView.subproj/WebPreferences.m:
376 (-[WebPreferences userStyleSheetLocation]):
377 * WebView.subproj/WebView.m:
378 (+[WebView _MIMETypeForFile:]):
380 2005-06-02 Maciej Stachowiak <mjs@apple.com>
384 - first stage of cleaning up SPI usage in WebKit
386 * Carbon.subproj/CarbonUtils.m:
387 * DOM.subproj/WebDOMOperations.m:
388 (-[DOMHTMLLinkElement _subresourceURLs]):
389 (-[DOMHTMLParamElement _subresourceURLs]):
390 * History.subproj/WebHistoryItem.m:
391 (-[WebHistoryItem _setFormInfoFromRequest:]):
392 * Misc.subproj/WebDatabase.m:
393 (-[WebDatabase setObject:forKey:]):
394 (-[WebDatabase removeObjectForKey:]):
395 (-[WebDatabase removeAllObjects]):
396 (-[WebDatabase objectForKey:]):
397 (-[WebDatabase open]):
398 (-[WebDatabase close]):
399 (-[WebDatabase sync]):
400 (-[WebDatabase count]):
401 (-[WebDatabase setSizeLimit:]):
402 * Misc.subproj/WebIconDatabase.m:
403 (-[WebIconDatabase iconForURL:withSize:cache:]):
404 (-[WebIconDatabase _iconForFileURL:withSize:]):
405 * Misc.subproj/WebKitNSStringExtras.h:
406 * Misc.subproj/WebKitNSStringExtras.m:
407 (+[NSString _web_encodingForResource:]):
408 (-[NSString _webkit_isCaseInsensitiveEqualToString:]):
409 * Misc.subproj/WebNSEventExtras.h:
410 * Misc.subproj/WebNSEventExtras.m:
411 (-[NSEvent _web_isTabKeyEvent]):
412 * Misc.subproj/WebNSURLExtras.h:
413 * Misc.subproj/WebNSURLExtras.m:
414 (-[NSURL _webkit_isFileURL]):
415 (-[NSString _webkit_isJavaScriptURL]):
416 (-[NSString _webkit_isFileURL]):
417 * Panels.subproj/WebPanelAuthenticationHandler.m:
418 (-[NSMutableDictionary _webkit_setObject:forUncopiedKey:]):
419 (-[WebPanelAuthenticationHandler enqueueChallenge:forWindow:]):
420 (-[WebPanelAuthenticationHandler startAuthentication:window:]):
421 * Plugins.subproj/WebBaseNetscapePluginView.m:
422 * Plugins.subproj/WebBasePluginPackage.m:
423 (-[WebBasePluginPackage isQuickTimePlugIn]):
424 (-[WebBasePluginPackage isJavaPlugIn]):
425 * Plugins.subproj/WebPluginPackage.m:
426 (-[WebPluginPackage initWithPath:]):
427 * WebCoreSupport.subproj/WebBridge.m:
428 (-[WebBridge canTargetLoadInFrame:]):
429 (-[WebBridge valueForKey:keys:values:]):
430 * WebCoreSupport.subproj/WebGlyphBuffer.m:
431 * WebCoreSupport.subproj/WebImageDecodeItem.h:
432 * WebCoreSupport.subproj/WebImageDecodeItem.m:
433 * WebCoreSupport.subproj/WebImageDecoder.h:
434 * WebCoreSupport.subproj/WebImageDecoder.m:
435 * WebCoreSupport.subproj/WebTextRenderer.h:
437 * WebView.subproj/WebBaseResourceHandleDelegate.m:
438 (-[WebBaseResourceHandleDelegate _canUseResourceForRequest:]):
439 * WebView.subproj/WebDataProtocol.m:
440 (+[WebDataProtocol _webIsDataProtocolURL:]):
441 * WebView.subproj/WebFrame.m:
442 (-[WebFrame _shouldAllowAccessFrom:]):
443 (-[WebFrame reload]):
444 * WebView.subproj/WebHTMLRepresentation.m:
445 (-[WebHTMLRepresentation _isDisplayingWebArchive]):
446 * WebView.subproj/WebMainResourceClient.m:
447 (-[WebMainResourceClient continueAfterContentPolicy:response:]):
448 (-[WebMainResourceClient didReceiveResponse:]):
449 * WebView.subproj/WebPDFView.m:
450 * WebView.subproj/WebView.m:
451 (+[WebView _MIMETypeForFile:]):
453 2005-06-01 Darin Adler <darin@apple.com>
455 Reviewed by John Sullivan.
457 - WebKit part of fix for <rdar://problem/3166090> add IE JavaScript extension window.showModalDialog
459 * WebCoreSupport.subproj/WebBridge.m:
460 (-[WebBridge createModalDialogWithURL:]): Added. Calls the UI delegate, falling back to the generic
461 "create WebView" method.
462 (-[WebBridge canRunModal]): Added. Checks the UI delegate to see if it implements runModal.
463 (-[WebBridge canRunModalNow]): Added. Checks the "inConnectionCallback" field so we can prevent
464 deadlock since we can't do any I/O while inside a connection callback until this aspect of NSURLConnection
466 (-[WebBridge runModal]): Added. Sets "defersCallbacks" on all other web views in the group, then
467 calls runModal on the UI delegate.
469 * WebView.subproj/WebBaseResourceHandleDelegate.h: Added inConnectionCallback class method.
470 * WebView.subproj/WebBaseResourceHandleDelegate.m:
471 (-[WebBaseResourceHandleDelegate connection:willSendRequest:redirectResponse:]): Bump count and then
472 decrement count so we can tell if we are in a callback.
473 (-[WebBaseResourceHandleDelegate connection:didReceiveAuthenticationChallenge:]): Ditto.
474 (-[WebBaseResourceHandleDelegate connection:didCancelAuthenticationChallenge:]): Ditto.
475 (-[WebBaseResourceHandleDelegate connection:didReceiveResponse:]): Ditto.
476 (-[WebBaseResourceHandleDelegate connection:didReceiveData:lengthReceived:]): Ditto.
477 (-[WebBaseResourceHandleDelegate connection:willStopBufferingData:]): Ditto.
478 (-[WebBaseResourceHandleDelegate connectionDidFinishLoading:]): Ditto.
479 (-[WebBaseResourceHandleDelegate connection:didFailWithError:]): Ditto.
480 (-[WebBaseResourceHandleDelegate connection:willCacheResponse:]): Ditto.
481 (+[WebBaseResourceHandleDelegate inConnectionCallback]): Added. Return YES if count is not 0.
483 * WebView.subproj/WebMainResourceClient.m:
484 (-[WebMainResourceClient receivedError:]): Changed to use the method without the connection: parameter
485 in the base class, since we no longer are overriding the connection: version.
486 (-[WebMainResourceClient willSendRequest:redirectResponse:]): Change to override the version without
487 the connection prefix/parameter; now only the base class overrides the actual connection delegate methods.
488 (-[WebMainResourceClient continueAfterContentPolicy:response:]): Ditto.
489 (-[WebMainResourceClient didReceiveResponse:]): Ditto.
490 (-[WebMainResourceClient didReceiveData:lengthReceived:]): Ditto.
491 (-[WebMainResourceClient didFinishLoading]): Ditto.
492 (-[WebMainResourceClient didFailWithError:]): Ditto.
493 (-[WebMainResourceClient loadWithRequestNow:]): Call the method without the connection parameter.
495 * WebView.subproj/WebUIDelegatePrivate.h: Added new SPI here that WebBrowser implements.
497 2005-05-26 Darin Adler <darin@apple.com>
501 - fix build failure from when I removed WebCoreUnicode
503 * WebCoreSupport.subproj/WebTextRenderer.m: Removed import of WebUnicode.h that I missed.
504 (-[WebTextRenderer _convertUnicodeCharacters:length:toGlyphs:]): Switch from our own macros
505 to the ICU macros for surrogate pairs.
506 (widthForNextCharacter): Ditto.
508 2005-05-26 David Harrison <harrison@apple.com>
510 <rdar://problem/4120518> Mail: control-T in an empty message crashes mail
512 * WebCoreSupport.subproj/WebBridge.m:
513 (-[WebBridge issueTransposeCommand]):
514 New, to support transpose in JS.
516 2005-05-26 Darin Adler <darin@apple.com>
518 Reviewed by Richard and Dave Harrison.
520 - eliminate WebCoreUnicode and use ICU directly instead
522 * Misc.subproj/WebKitNSStringExtras.m: (canUseFastRenderer): Use u_charDirection directly.
523 * WebCoreSupport.subproj/WebTextRenderer.m: Removed import of <WebCore/WebCoreUnicode.h>.
524 * WebView.subproj/WebHTMLView.m: (+[WebHTMLView initialize]): Removed call to WebKitInitializeUnicode.
526 * Misc.subproj/WebUnicode.h: Removed.
527 * Misc.subproj/WebUnicode.m: Removed.
528 * Misc.subproj/WebUnicodeTables.m: Removed.
530 * WebKit.pbproj/project.pbxproj: Removed files.
532 2005-05-24 Richard Williamson <rjw@apple.com>
534 Fixed <rdar://problem/4097289> -[WebView elementAtPoint:] failing when WebView is nested and offset
536 Code to determine the correct frame under the window point was
537 converting the point incorrectly.
541 * WebView.subproj/WebView.m:
542 (-[WebView _frameViewAtWindowPoint:]):
544 2005-05-23 John Sullivan <sullivan@apple.com>
548 - WebKit part of <rdar://problem/4125783> WebKit needs a way to control whether textareas are resizable
550 * WebView.subproj/WebPreferencesPrivate.h:
551 added private-for-now getter and setter for new preference
552 * WebView.subproj/WebPreferenceKeysPrivate.h:
553 added private preference key controlling whether textareas are resizable
554 * WebView.subproj/WebPreferences.m:
555 (+[WebPreferences initialize]):
556 initial value of new preference is NO, so other clients' behavior doesn't change
557 (-[WebPreferences textAreasAreResizable]):
559 (-[WebPreferences setTextAreasAreResizable:]):
562 * WebView.subproj/WebView.m:
563 (-[WebView _updateWebCoreSettingsFromPreferences:]):
564 update this new setting in WebCore
566 * English.lproj/StringsNotToBeLocalized.txt:
567 updated for these changes
569 2005-05-23 Chris Blumenberg <cblu@apple.com>
571 Changed type for identifier parameter in WebResourceLoadDelegate-related calls to id from NSString.
575 * WebCoreSupport.subproj/WebBridge.m:
576 (-[WebBridge objectLoadedFromCacheWithURL:response:data:]):
577 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
578 * WebView.subproj/WebFrame.m:
579 (-[WebFrame _opened]):
580 (-[WebFrame _requestFromDelegateForRequest:identifier:error:]):
581 (-[WebFrame _sendRemainingDelegateMessagesWithIdentifier:response:length:error:]):
582 (-[WebFrame _saveResourceAndSendRemainingDelegateMessagesWithRequest:identifier:response:data:error:]):
583 * WebView.subproj/WebFrameInternal.h:
585 2005-05-20 Chris Blumenberg <cblu@apple.com>
587 Fixed: <rdar://problem/4098786> sync. XMLHttpRequest works w/o AllowNetworkAccess key because load delegate is not consulted
589 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.
591 Reviewed by sullivan.
593 * WebCoreSupport.subproj/WebBridge.m:
594 (-[WebBridge objectLoadedFromCacheWithURL:response:data:]): call [WebFrame _requestFromDelegateForRequest:identifier:error:] then
595 [WebFrame _saveResourceAndSendRemainingDelegateMessagesWithRequest:identifier:response:data:error:] so synthetic resource load delegate
596 methods are called and the data is saved as a WebResource for resources in the WebCore cache.
598 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]): call [WebFrame _requestFromDelegateForRequest:identifier:error:],
599 respect its result, do the load and then call [WebFrame _saveResourceAndSendRemainingDelegateMessagesWithRequest:identifier:response:data:error:]
600 for synchronous loads
602 * WebView.subproj/WebFrame.m:
603 (-[WebFrame _opened]): call [WebFrame _requestFromDelegateForRequest:identifier:error:] then
604 [WebFrame _sendRemainingDelegateMessagesWithIdentifier:response:length:error:] so synthetic resource load delegate methods are called
605 for subresrources in the page cache
607 (-[WebFrame _requestFromDelegateForRequest:identifier:error:]): new, was part of the removed _sendResourceLoadDelegateMessagesForURL:::
608 This method calls identifierForInitialRequest and willSendRequest.
610 (-[WebFrame _sendRemainingDelegateMessagesWithIdentifier:response:length:error:]): new, was part of the removed _sendResourceLoadDelegateMessagesForURL:::
611 This method calls the remaining resource load delegate messages.
613 (-[WebFrame _saveResourceAndSendRemainingDelegateMessagesWithRequest:identifier:response:data:error:]): new, saves the resource and calls
614 [WebFrame _sendRemainingDelegateMessagesWithIdentifier:response:length:error:]
616 * WebView.subproj/WebFrameInternal.h:
618 2005-05-17 Chris Blumenberg <cblu@apple.com>
620 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
624 * WebCoreSupport.subproj/WebBridge.m:
625 (-[WebBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]): pass the passed referrer to canLoadURL::: not [self referrer]
626 (-[WebBridge postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]): ditto
627 * WebView.subproj/WebTextView.m:
628 (-[WebTextView clickedOnLink:atIndex:]): call the loadURL bridge method so that security checks are made, command/option clicks work, policy delegate is consulted etc.
630 2005-05-17 Chris Blumenberg <cblu@apple.com>
632 Fixed: <rdar://problem/4120255> web archives on remote servers can be viewed directly (with major security issues); should download instead
636 * WebView.subproj/WebBaseResourceHandleDelegate.h:
637 * WebView.subproj/WebMainResourceClient.m:
638 (-[WebMainResourceClient continueAfterContentPolicy:response:]): if the WebKit client has chosen to "use" a remote web archive, stop the load with an error
640 2005-05-16 Darin Adler <darin@apple.com>
642 - attempt to get things building under "Saffron" development tools
644 * WebKit.pbproj/project.pbxproj: Use BUILT_PRODUCTS_DIR instead of SYMROOT.
646 2005-05-13 John Sullivan <sullivan@apple.com>
650 - fixed <rdar://problem/4093306> Safari crashes if Esc key is held down during series
651 of authentication sheets
653 * Panels.subproj/WebAuthenticationPanel.m:
654 (-[WebAuthenticationPanel cancel:]):
655 retain and autorelease self. This is a workaround for an AppKit key-handling issue, which I wrote up as:
656 <rdar://problem/4118422> Key-down events can be sent to a closed window if a key is kept pressed down
658 2005-05-12 John Sullivan <sullivan@apple.com>
662 - rolled in changes from experimental-ui-branch to support resizable textareas
663 and find-as-you-type and confirming unsubmitted form changes. The files/functions
664 modified are listed just below. After that are the ChangeLog comments from the branch.
666 * WebCoreSupport.subproj/WebBridge.m:
667 (-[WebBridge textDidChange:]):
668 * WebView.subproj/WebFormDelegate.h:
669 * WebView.subproj/WebFormDelegate.m:
670 (-[WebFormDelegate textDidChange:inFrame:]):
671 * WebView.subproj/WebHTMLView.m:
672 (-[WebHTMLView maintainsInactiveSelection]):
673 (-[WebHTMLView searchFor:direction:caseSensitive:wrap:]):
674 (-[WebHTMLView _searchFor:direction:caseSensitive:wrap:findInSelection:]):
675 * WebView.subproj/WebView.m:
676 (-[WebView _searchFor:direction:caseSensitive:wrap:findInSelection:]):
677 (-[WebView searchFor:direction:caseSensitive:wrap:]):
678 (-[WebView makeTextStandardSize:]):
679 (-[WebView maintainsInactiveSelection]):
680 * WebView.subproj/WebViewPrivate.h:
682 2005-04-18 John Sullivan <sullivan@apple.com>
684 WebKit support for notifying a form delegate when a
685 textarea's contents have changed (as opposed to a
686 textfield, which was already handled).
690 * WebView.subproj/WebFormDelegate.h:
691 * WebView.subproj/WebFormDelegate.m:
692 (-[WebFormDelegate textDidChange:inFrame:]):
693 new form delegate method
695 * WebCoreSupport.subproj/WebBridge.m:
696 (-[WebBridge textDidChange:]):
697 new method, calls through to form delegate
699 2005-04-11 John Sullivan <sullivan@apple.com>
701 Fixed inability to wrap around in Find in Page
703 * WebView.subproj/WebView.m:
704 (-[WebView _searchFor:direction:caseSensitive:wrap:findInSelection:]):
705 changed wrapFlag from NO to YES on two lines (copy/paste error)
707 2005-04-07 John Sullivan <sullivan@apple.com>
709 WebKit support for find-as-you-type. Needed an additional parameter on
710 a method from WebDocumentSearching protocol. Since that's a public protocol,
711 I couldn't just add the parameter. For now I hacked it with an undeclared
712 internal method that's discovered via respondsToSelector. Probably the right
713 long-term approach is to deprecate the WebDocumentSearching protocol and introduce
714 a replacement that has a more flexible set of parameters for possible future
717 Reviewed by Dave Hyatt.
719 * WebView.subproj/WebHTMLView.m:
720 (-[WebHTMLView searchFor:direction:caseSensitive:wrap:]):
721 now calls new one-more-parameter version passing NO for new parameter to match old behavior
722 (-[WebHTMLView _searchFor:direction:caseSensitive:wrap:findInSelection:]):
723 new method, adds findInSelection parameter and passes it through to bridge
725 * WebView.subproj/WebView.m:
726 (-[WebView searchFor:direction:caseSensitive:wrap:]):
727 now calls new one-more-parameter version passing NO for new parameter to match old behavior
728 (-[WebView _searchFor:direction:caseSensitive:wrap:findInSelection:]):
729 new method, adds findInSelection parameter and passes it through
731 2005-04-07 John Sullivan <sullivan@apple.com>
733 WebKit support to allow clients to control whether the selection is still
734 drawn when the first responder is elsewhere. Formerly this was hardwired
735 to be true only when -[WebView isEditable] was true.
739 * WebView.subproj/WebHTMLView.m:
740 (-[WebHTMLView maintainsInactiveSelection]):
741 check [WebView maintainsInactiveSelection] rather than just [WebView isEditable]
743 * WebView.subproj/WebViewPrivate.h:
744 * WebView.subproj/WebView.m:
745 (-[WebView maintainsInactiveSelection]):
746 new method for clients to override, returns -[self isEditable]
749 2005-05-10 John Sullivan <sullivan@apple.com>
753 - WebKit support for <rdar://problem/3795701> Menu item/keyboard shortcut to
754 restore text zoom to normal
756 * WebView.subproj/WebView.m:
757 (-[WebView validateUserInterfaceItem:]):
758 validate makeTextStandardSize by calling canMakeTextStandardSize
759 (-[WebView canMakeTextStandardSize]):
760 new method, returns YES unless text size multiplier is currently 1
761 (-[WebView makeTextStandardSize:]):
762 new method, sets text size multiplier to 1
764 * WebView.subproj/WebViewPrivate.h:
765 add makeTextStandardSize: and canMakeTextStandardSize to pending public category
767 2005-05-10 John Sullivan <sullivan@apple.com>
771 - fixed <rdar://problem/4067981> Mail places RTF flavor before RTFD flavor when dragging
772 mixed image/text content.
774 * WebView.subproj/WebHTMLView.m:
775 (+[WebHTMLView _selectionPasteboardTypes]):
776 put RTFD type before RTF type in array of types to declare
778 2005-05-09 Chris Blumenberg <cblu@apple.com>
780 Turned assertion into error message to prevent crash when encountering this bug:
781 <rdar://problem/4067625> connection:willCacheResponse: is called inside of [NSURLConnection initWithRequest:delegate:]
783 * WebView.subproj/WebBaseResourceHandleDelegate.h:
784 * WebView.subproj/WebBaseResourceHandleDelegate.m:
785 (-[WebBaseResourceHandleDelegate loadWithRequest:]): set flag to track when we're initializing the connection
786 (-[WebBaseResourceHandleDelegate connection:willCacheResponse:]): log error
788 2005-05-09 Darin Adler <darin@apple.com>
790 * Makefile.am: Don't set up PBXIntermediatesDirectory explicitly;
791 Not needed to make builds work, spews undesirable error messages too.
793 2005-05-06 Darin Adler <darin@apple.com>
797 - make building multiple trees with make work better
799 * Makefile.am: Set up Xcode build directory before invoking xcodebuild.
801 2005-05-04 Darin Adler <darin@apple.com>
803 Reviewed by Dave Hyatt.
807 * WebKit.pbproj/project.pbxproj: Set deployment target to 10.3 in the build styles.
808 When built without a build style (by Apple B&I) we want to get the target from the
809 environment. But when built with a build style (by Safari engineers and others), we want
810 to use 10.3. Because our deployment target was not set, we ran into this bug:
812 <rdar://problem/4108717> CTFontGetGlyphWithName doesn't work with some strings
814 * Makefile.am: Took out extra parameters that make command-line building different from
815 Xcode building. Now that this is fixed, you should not get a full rebuild if you switch
816 from command line to Xcode or back.
818 2005-05-04 Chris Blumenberg <cblu@apple.com>
821 <rdar://problem/4078417> REGRESSION (125-412): MLB gameday page doesn't update (Flash)
822 <rdar://problem/4072280> XMLHttpRequest calls onReadyStateChange callback with bogus status value
826 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.
828 * WebCoreSupport.subproj/WebBridge.m:
829 (-[WebBridge objectLoadedFromCacheWithURL:response:data:]): call new [WebResource _initWithData:URL:response:]
830 * WebView.subproj/WebBaseResourceHandleDelegate.m:
831 (-[WebBaseResourceHandleDelegate _canUseResourceWithResponse:]): new, checks response cache directives
832 (-[WebBaseResourceHandleDelegate loadWithRequest:]): call _canUseResourceWithResponse:
833 (-[WebBaseResourceHandleDelegate saveResource]): call new [WebResource _initWithData:URL:response:]
834 * WebView.subproj/WebResource.m:
835 (-[WebResourcePrivate dealloc]):
836 (-[WebResource initWithData:URL:MIMEType:textEncodingName:frameName:]): call renamed _initWithData:URL:MIMEType:textEncodingName:frameName:response:copyData:
837 (-[WebResource initWithCoder:]): decode the NSURLReponse
838 (-[WebResource encodeWithCoder:]): encode the NSURLReponse
839 (-[WebResource _initWithData:URL:MIMEType:textEncodingName:frameName:response:copyData:]): take the NSURLReponse
840 (-[WebResource _initWithData:URL:response:]): new
841 (-[WebResource _initWithPropertyList:]): decode the NSURLReponse
842 (-[WebResource _propertyListRepresentation]): encode the NSURLReponse
843 (-[WebResource _response]): return ivar if we have one
844 * WebView.subproj/WebResourcePrivate.h:
846 2005-05-03 David Hyatt <hyatt@apple.com>
848 Fix object element support so that fallback content works. With this change Safari passes the Acid2 test.
852 * WebCoreSupport.subproj/WebBridge.m:
853 (-[WebBridge determineObjectFromMIMEType:URL:]):
854 * WebView.subproj/WebDataSource.m:
855 (-[WebDataSource _receivedMainResourceError:complete:]):
856 * WebView.subproj/WebMainResourceClient.m:
857 (-[WebMainResourceClient continueAfterContentPolicy:response:]):
859 2005-05-03 Darin Adler <darin@apple.com>
861 * WebView.subproj/WebUIDelegate.h: Fixed incorrect comment.
864 2005-05-01 Darin Adler <darin@apple.com>
866 - move to Xcode native targets and stop checking in generated files
868 * WebKit.pbproj/project.pbxproj: Updated to use native targets and generate all the generated
869 files, so we don't have to check them in any more.
870 * Info.plist: Added. Native targets use a separate file for this.
872 * Plugins.subproj/npapi.m: Fixed import statement to get npapi.h from <WebKit/> rather than current directory.
874 * Makefile.am: Removed timestamp cleaning rules since we don't use it any more.
876 * .cvsignore: Removed various timestamp files.
878 * DOM.subproj/DOM-compat.h: Removed.
879 * DOM.subproj/DOM.h: Removed.
880 * DOM.subproj/DOMCSS.h: Removed.
881 * DOM.subproj/DOMCore.h: Removed.
882 * DOM.subproj/DOMEvents.h: Removed.
883 * DOM.subproj/DOMExtensions.h: Removed.
884 * DOM.subproj/DOMHTML.h: Removed.
885 * DOM.subproj/DOMPrivate.h: Removed.
886 * DOM.subproj/DOMRange.h: Removed.
887 * DOM.subproj/DOMStylesheets.h: Removed.
888 * DOM.subproj/DOMTraversal.h: Removed.
889 * DOM.subproj/DOMViews.h: Removed.
890 * Plugins.subproj/WebScriptObject.h: Removed.
891 * Plugins.subproj/npapi.h: Removed.
892 * Plugins.subproj/npruntime.h: Removed.
893 * copy-webcore-files-to-webkit: Removed.
894 * embed-frameworks.sh: Removed.
895 * force-clean-timestamp: Removed.
897 2005-04-28 Darin Adler <darin@apple.com>
901 - fixed problems preventing us from compiling with gcc 4.0
903 * WebKit.pbproj/project.pbxproj: Removed -fobjc-exceptions because I can't figure out an easy
904 way to pass it only when compiling Objective-C/C++. Removed -Wmissing-prototypes from
905 WARNING_CPLUSPLUSFLAGS since it's now a C-only warning.
907 * History.subproj/WebHistoryItem.m: (-[WebHistoryItem pageCache]): Changed return type
908 to match the declaration.
909 * WebCoreSupport.subproj/WebBridge.m: (-[WebBridge _retrieveKeyboardUIModeFromPreferences:]):
910 Fixed a BOOL that should have been a Boolean.
911 * WebCoreSupport.subproj/WebTextRenderer.m: Removed redundant copy of ROUND_TO_INT, also in
913 (-[WebTextRenderer _computeWidthForSpace]): Had to add cast because of difference in type of
914 ROUND_TO_INT vs. CEIL_TO_INT.
915 (pathFromFont): Added a cast to convert UInt8 * to char *.
916 * WebView.subproj/WebFrameView.m:
917 (-[WebFrameView _setDocumentView:]): Fixed parameter type to match the declaration.
918 (-[WebFrameView documentView]): Fixed return type to match the declaration.
919 * WebView.subproj/WebHTMLView.m:
920 (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
921 Initialized a variable to quiet an incorrect gcc 4.0 uninitialized variable warning.
922 (-[WebHTMLView deleteToMark:]): Switched from @try style to NS_DURING style of exception handler
923 because we can't pass -fobjc-exceptions just to Objective-C at the moment (see above).
924 (-[WebHTMLView selectToMark:]): Ditto.
925 (-[WebHTMLView swapWithMark:]): Ditto.
927 2005-04-27 John Sullivan <sullivan@apple.com>
929 Reviewed by Dave Harrison.
931 - fixed <rdar://problem/3547489> pop-up window blocking preference and
932 menu item can easily get out of sync.
934 * WebView.subproj/WebPreferences.m:
935 (-[WebPreferences _setStringValue:forKey:]):
936 save local value before setting value in NSUserDefaults, so clients reacting to NSUserDefaults
937 change notification but calling back on WebPreferences API will see the updated value.
938 (-[WebPreferences _setIntegerValue:forKey:]):
940 (-[WebPreferences _setBoolValue:forKey:]):
943 2005-04-26 Richard Williamson <rjw@apple.com>
945 Fixed <rdar://problem/4098713> Scripting API is incompatible with Mozilla
949 * Plugins.subproj/npfunctions.h:
950 * Plugins.subproj/npruntime.h:
952 2005-04-26 Darin Adler <darin@apple.com>
956 - fixed <rdar://problem/3655817> please add support for mouse wheel events and the onmousewheel handler
958 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView scrollWheel:]): Call sendScrollWheelEvent: method
959 instead of the old scrollOverflowWithScrollWheelEvent: (just a name change).
961 2005-04-18 Darin Adler <darin@apple.com>
965 - fixed <rdar://problem/4092614> REGRESSION (Tiger): progressively loaded background images "scroll around" instead of just appearing
967 * WebCoreSupport.subproj/WebImageData.m:
968 (-[WebImageData _imageSourceOptions]): Moved a global inside this function, since it's only used here.
969 (-[WebImageData _cacheImages:allImages:]): Fixed a sizeof that was getting the size of the wrong thing.
970 (-[WebImageData _isSizeAvailable]): Used calloc in a more consistent way.
971 (drawPattern): Removed an unneeded cast.
972 (-[WebImageData tileInRect:fromPoint:context:]): Here's the actual bug fix. Don't use the image size
973 when deciding whether the image needs to be tiled as a pattern nor when creating the pattern: in both
974 cases, use the tile size. The old way was wrong, and the new way works perfectly. Also removed uneeded
975 error message when the image is not yet loaded enough to create a CGImageRef for it -- it's fine to
976 draw nothing in that case.
978 2005-04-14 John Sullivan <sullivan@apple.com>
982 * WebView.subproj/WebBaseResourceHandleDelegate.m:
983 (-[WebBaseResourceHandleDelegate connection:willCacheResponse:]):
984 Beefed up assertion that's been bugging me and Chris to include
985 the two troublemaking values.
987 2005-04-05 David Hyatt <hyatt@apple.com>
989 Fix for 4077106, wheel scroll amount smaller in Tiger. All along wheeling should have been 4x the default
990 line height of 10 (just as arrow keys did). Scroll arrows should have done this too for scroll views (they did
991 already for overflow sections). This patch puts the override into the scrollview itself, and removes the
992 multipliers in the private frame methods.
996 * WebView.subproj/WebFrameView.m:
997 (-[WebFrameView _verticalKeyboardScrollDistance]):
998 (-[WebFrameView initWithFrame:]):
999 (-[WebFrameView _horizontalKeyboardScrollDistance]):
1001 === WebKit-312.1 ===
1003 2005-03-31 Chris Blumenberg <cblu@apple.com>
1005 Fixed: <rdar://problem/4070729> REGRESSION (125-311, Panther-only?): Safari crashes while reloading "My eBay" page
1009 * WebView.subproj/WebBaseResourceHandleDelegate.m:
1010 (-[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
1016 2005-03-23 Richard Williamson <rjw@apple.com>
1018 Use Patti Yeh's hack to determine the appropriate rectangle
1019 to place the "associated word" window.
1020 If there is no marked text firstRectForCharacterRange: will
1021 use the selected range to determine the returned rectangle,
1022 ignoring the input range. This is the fix from
1023 4029491 that I previously backed out.
1027 * WebView.subproj/WebHTMLView.m:
1028 (-[WebHTMLView firstRectForCharacterRange:]):
1030 2005-03-23 Richard Williamson <rjw@apple.com>
1032 Fixed <rdar://problem/4062490> REGRESSION (WebKit-408): no subresources reported in Activity window after going back at hrweb.apple.com
1034 Stop collecting subresource responses after the document
1035 had loaded, not after it has been opened.
1039 * WebView.subproj/WebFrame.m:
1040 (-[WebFrame _setState:]):
1041 (-[WebFrame _opened]):
1043 2005-03-21 Maciej Stachowiak <mjs@apple.com>
1047 <rdar://problem/4051145> The QuickTime Cocoa plug-in needs an SPI that it can call to check for URL policy
1049 * Plugins.subproj/WebPluginContainerCheck.h: Added.
1050 * Plugins.subproj/WebPluginContainerCheck.m: Added this new helper class to encapsulate
1051 an async plugin navigation check.
1052 (+[WebPluginContainerCheck checkWithRequest:target:resultObject:selector:controller:]): Convenience allocator that gives autoreleased value.
1053 (-[WebPluginContainerCheck initWithRequest:target:resultObject:selector:controller:]): Initializer.
1054 (-[WebPluginContainerCheck finalize]): Just assert that we're done, it would
1055 be bad to deallocate this object while request is still outstanding.
1056 (-[WebPluginContainerCheck dealloc]): Ditto.
1057 (-[WebPluginContainerCheck _continueWithPolicy:]): Method to continue after async
1059 (-[WebPluginContainerCheck _isDisallowedFileLoad]): Do "file: URL from remote content"
1061 (-[WebPluginContainerCheck _actionInformationWithURL:]): Helper to make action
1063 (-[WebPluginContainerCheck _askPolicyDelegate]): Call policy delegate to let
1064 the app decide if this load is allowed.
1065 (-[WebPluginContainerCheck start]): Start the check.
1066 (-[WebPluginContainerCheck cancel]): Cancel a check in progress.
1067 * Plugins.subproj/WebPluginController.h:
1068 * Plugins.subproj/WebPluginController.m:
1069 (-[WebPluginController initWithDocumentView:]): Initialize new _checksInProgress field.
1070 (-[WebPluginController _webPluginContainerCancelCheckIfAllowedToLoadRequest:]): Implement
1071 this new SPI method.
1072 (-[WebPluginController _cancelOutstandingChecks]): New helper to make sure to cancel
1073 all outstanding requests when destroying all plugins.
1074 (-[WebPluginController destroyAllPlugins]): Call above helper.
1075 (-[WebPluginController _webPluginContainerCheckIfAllowedToLoadRequest:inFrame:resultObject:selector:]): Implement this new plug-in SPI method.
1076 (-[WebPluginController bridge]): New helper method.
1077 (-[WebPluginController webView]): New helper method.
1078 * WebView.subproj/WebPolicyDelegatePrivate.h: Add new navigation
1079 type WebNavigationTypePlugInRequest.
1080 * WebKit.pbproj/project.pbxproj: Add new files.
1081 * WebView.subproj/WebDefaultPolicyDelegate.m:
1082 (-[WebDefaultPolicyDelegate webView:decidePolicyForNavigationAction:request:frame:decisionListener:]): Don't open externally on a plug-in request.
1084 2005-03-23 Richard Williamson <rjw@apple.com>
1086 Fixed <rdar://problem/4053515> REGRESSION (Mail): Kotoeri input method reconversion does not work in WebViews
1088 We now use actual document NSRanges to represent both marked text
1089 ranges and selection ranges.
1091 Reviewed by Ken Kocienda.
1093 * WebView.subproj/WebHTMLView.m:
1094 (-[WebHTMLView validAttributesForMarkedText]):
1095 (-[WebHTMLView firstRectForCharacterRange:]):
1096 (-[WebHTMLView selectedRange]):
1097 (-[WebHTMLView markedRange]):
1098 (-[WebHTMLView _selectMarkedText]):
1099 (-[WebHTMLView setMarkedText:selectedRange:]):
1103 2005-03-22 Darin Adler <darin@apple.com>
1105 * English.lproj/StringsNotToBeLocalized.txt: Updated for recent changes.
1109 2005-03-20 Maciej Stachowiak <mjs@apple.com>
1113 <rdar://problem/4060020> Add stub version of security SPI for QuickTime plug-in so QuickTime team has something to compile and link against
1115 * Plugins.subproj/WebPluginContainerPrivate.h: Added.
1116 * Plugins.subproj/WebPluginController.m:
1117 (-[WebPluginController _webPluginContainerCheckIfAllowedToLoadRequest:inFrame:resultObject:selector:]):
1118 (-[WebPluginController _webPluginContainerCancelCheckIfAllowedToLoadRequest:]):
1119 * WebKit.pbproj/project.pbxproj:
1121 2005-03-19 David Harrison <harrison@apple.com>
1125 <rdar://problem/4059479> Misspelling underline does underline the whole word, could go farther to the right
1127 * WebCoreSupport.subproj/WebTextRenderer.m:
1128 (-[WebTextRenderer misspellingLinePatternGapWidth]):
1129 (-[WebTextRenderer drawLineForMisspelling:withWidth:]):
1130 Consider that the last pixel in the underline dot pattern is transparent.
1132 2005-03-19 Darin Adler <darin@apple.com>
1134 Reviewed by Maciej (a while back).
1136 - fixed <rdar://problem/4059323> local-file security check is allowing plug-in streams, but must not
1138 * Plugins.subproj/WebNetscapePluginStream.m:
1139 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
1140 Roll out change I made on 3-13. That change is needed for subresource, but not for plug-in streams.
1141 For plug-in streams it's too risky, and leaves a serious security hole open.
1143 2005-03-19 Darin Adler <darin@apple.com>
1145 Reviewed by Ken and John.
1147 - fixed <rdar://problem/4059123> REGRESSION (402-403): deleteWordForward: and deleteWordBackward: start deleting single characters after the first delete
1149 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]):
1150 Fixed backwards logic in here and added missing check. Set action to one of the two typing actions only
1151 if isTypingAction is YES.
1153 2005-03-19 David Harrison <harrison@apple.com>
1155 Reviewed by me (written by Patti Yeh).
1157 <rdar://problem/4029491> <TCIM> CangJie: the candidate window appears at the top left hand corner during typing in Mail and iChat
1159 * WebView.subproj/WebHTMLView.m:
1160 (-[WebHTMLView firstRectForCharacterRange:]):
1161 Use selected range if there is no marked range.
1165 2005-03-18 David Harrison <harrison@apple.com>
1169 <rdar://problem/3584942> AX: Safari Accessibility parent-child mismatch
1171 * WebView.subproj/WebFrameView.m:
1172 (-[WebFrameView webCoreBridge]):
1173 New to conform to WebCoreBridgeHolder protocol.
1175 2005-03-18 Richard Williamson <rjw@apple.com>
1177 Fixed <rdar://problem/4057004> Data from XMLHTTPRequest is never dealloced
1179 WebDataSource keeps an array of all the NSURLResponses associated
1180 with the load for a page. This is used to playback delegate messages
1181 when loading from the page cache. However, after the document
1182 has completed it's initial load, we continue to keep track of responses.
1183 So, this has the consequence of keeping all the responses for a page
1184 around for the life of the page. NSURLResponses are now very
1185 heavy. They indirectly reference the resource data (via the
1186 download assessment dictionary). This fix will keep
1187 references to responses around for those resources loaded during initial
1188 page load, but not after that point.
1192 * WebView.subproj/WebDataSource.m:
1193 (-[WebDataSource _addResponse:]):
1194 (-[WebDataSource _stopRecordingResponses]):
1195 * WebView.subproj/WebDataSourcePrivate.h:
1196 * WebView.subproj/WebFrame.m:
1197 (-[WebFrame _opened]):
1199 2005-03-18 Ken Kocienda <kocienda@apple.com>
1205 <rdar://problem/4053729> Copy/paste of page with frames into Blot or Mail does nothing and loses insertion point
1207 * WebView.subproj/WebHTMLView.m:
1208 (-[WebHTMLView _selectedArchive]): Wrap frameset documents in an iframe, so they can be pasted into
1209 existing documents which will have a body or frameset of their own.
1213 2005-03-17 Richard Williamson <rjw@apple.com>
1215 Fixed <rdar://problem/4055562> REGRESSION (Tiger): Safari doesn't draw progressively-loaded JPEGs (www.theregister.co.uk, www.titantalk.com)
1217 Anothe side effect of lazy loading of image meta data. We now
1218 don't cache image size until size meta data is actually available.
1222 * WebCoreSupport.subproj/WebImageData.m:
1223 (-[WebImageData size]):
1225 2005-03-16 David Harrison <harrison@apple.com>
1229 <rdar://problem/4048506> Deleting from beginning of editable div deletes other document elements
1231 Also changed WebCore.
1233 * WebView.subproj/WebHTMLView.m:
1234 (-[WebHTMLView _shouldDeleteRange:]):
1235 Added call to new bridge method canDeleteRange.
1237 2005-03-16 Ken Kocienda <kocienda@apple.com>
1243 <rdar://problem/4042935> undo doesn't work properly during inline input
1245 * WebView.subproj/WebHTMLView.m:
1246 (-[WebHTMLView setMarkedText:selectedRange:]): Call new -[WebCoreBridge replaceMarkedTextWithText:] instead of
1247 -[WebCoreBridge replaceSelectionWithText:selectReplacement:smartReplace:]. The former call was just added in
1248 order to provide a better mapping of international text input onto the typing command/undo design.
1250 2005-03-15 Richard Williamson <rjw@apple.com>
1252 Fixed <rdar://problem/4040321> Exception: Someone's trying to encode a WebDataRequestParameters instance
1254 If client mutates request use new Foundation SPI to address remove applewebdata properties from request.
1256 Reviewed by Ken Kocienda.
1258 * WebView.subproj/WebBaseResourceHandleDelegate.m:
1259 (-[WebBaseResourceHandleDelegate willSendRequest:redirectResponse:]):
1260 * WebView.subproj/WebDataProtocol.h:
1261 * WebView.subproj/WebDataProtocol.m:
1262 (+[NSURLRequest _webDataRequestPropertyKey]):
1264 2005-03-15 Ken Kocienda <kocienda@apple.com>
1270 <rdar://problem/4052642> Each delete keystroke is in its own undo group; not included in undo group with other typing
1272 Calling -[WebCore setSelectedDOMRange:range affinity:] had the result of "closing" any active set of typing
1273 keystrokes grouped together in a single undo operation. My change on 27 Jan to route delete keystrokes
1274 through _deleteRange:killRing:... made this feature regress. Previous to that change, the backwards delete
1275 key went through separate code that is no longer in the tree that did not set the selection in the way
1278 The solution is to add an extra argument to the set-selection call. The WebCoreBridge now offers this method:
1279 -[WebCore setSelectedDOMRange:range affinity:closeTyping:]. Now, callers must indicate whether setting the
1280 selection will act to close typing or not. The code changes below all add this new argument with the
1281 appropriate value for closeTyping.
1283 * WebView.subproj/WebHTMLView.m:
1284 (-[WebHTMLView _deleteRange:killRing:prepend:smartDeleteOK:deletionAction:]): Passes NO for closeTyping when
1285 deletionAction is deleteKeyAction or forwardDeleteKeyAction; YES when deleteSelectionAction.
1286 (-[WebHTMLView _expandSelectionToGranularity:]): Passes YES for closeTyping.
1287 (-[WebHTMLView selectToMark:]): Passes YES for closeTyping.
1288 (-[WebHTMLView swapWithMark:]): Passes YES for closeTyping.
1289 (-[WebHTMLView transpose:]): Passes YES for closeTyping.
1290 (-[WebHTMLView _selectMarkedText]): Passes NO for closeTyping.
1291 (-[WebHTMLView _selectRangeInMarkedText:]): Passes NO for closeTyping.
1292 * WebView.subproj/WebView.m:
1293 (-[WebView setSelectedDOMRange:affinity:]): Passes YES for closeTyping.
1295 2005-03-14 Richard Williamson <rjw@apple.com>
1297 Fix <rdar://problem/4051389> 8A413: gifs animating too fast
1301 Match Mozilla's policy for minimum frame duration, which is somewhat odd:
1303 <= 0.01 sec use .1 sec, otherwise use specified duration.
1305 * WebCoreSupport.subproj/WebImageData.m:
1306 (-[WebImageData _frameDurationAt:]):
1308 2005-03-14 Darin Adler <darin@apple.com>
1310 Reviewed by Harrison.
1312 - fixed <rdar://problem/4049776> Seed: Mail: Disable spellcheck leaves red artifacts
1314 * WebView.subproj/WebFrameInternal.h: Added _unmarkAllMisspellings.
1315 * WebView.subproj/WebFrame.m: (-[WebFrame _unmarkAllMisspellings]): Added.
1316 Calls unmarkAllMisspellings on the bridge and self and all subframes.
1318 * WebView.subproj/WebView.m: (-[WebView setContinuousSpellCheckingEnabled:]):
1319 Call _unmarkAllMisspellings on the main frame when turning continuous spell checking off.
1321 2005-03-14 Richard Williamson <rjw@apple.com>
1323 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
1325 The Acrobat application triggers loads of new documents in it's policy delegate. This
1326 ultimately causes the WebHTMLView to be released before their event handlers have
1327 returned. To bullet proof against this case we retain/release self before passing
1328 the event on for further handling.
1332 * WebView.subproj/WebHTMLView.m:
1333 (-[WebHTMLView _updateMouseoverWithEvent:]):
1334 (-[WebHTMLView scrollWheel:]):
1335 (-[WebHTMLView mouseDown:]):
1336 (-[WebHTMLView mouseDragged:]):
1337 (-[WebHTMLView mouseUp:]):
1338 (-[WebHTMLView keyDown:]):
1339 (-[WebHTMLView keyUp:]):
1340 (-[WebHTMLView performKeyEquivalent:]):
1342 2005-03-14 Vicki Murley <vicki@apple.com>
1344 - roll out the fix for 4040321, since it is still pending CCC review.
1346 2005-03-10 Richard Williamson <rjw@apple.com>
1348 Fixed <rdar://problem/4040321> Exception: Someone's trying to encode a WebDataRequestParameters instance
1352 If a delegate returns a mutated applewebdata: request in it's willSendRequest:
1353 method, we don't load using the WebDataRequest. Instead we do a normal load.
1354 Unfortunately, if the request they return is mutated *copy* of the applewebdata:
1355 request it will hold the applewebdata: special properties. These properties
1356 will be encoded into the cache. They should not be. So, to fix, we sanitize the
1357 request, by removing the special properties from the request.
1359 Note that we had to dig into the private guts of NSURLRequest because there is
1360 no public mechanism to remove properties from a request, see 4046775.
1362 * WebView.subproj/WebBaseResourceHandleDelegate.m:
1363 (-[WebBaseResourceHandleDelegate willSendRequest:redirectResponse:]):
1364 * WebView.subproj/WebDataProtocol.h:
1365 * WebView.subproj/WebDataProtocol.m:
1366 (-[NSURLRequest _webDataRequestExternalRequest]):
1367 (-[NSURLRequest _webDataRequestSanitize]):
1371 2005-03-13 Darin Adler <darin@apple.com>
1373 Reviewed by Ken and Maciej.
1375 - fixed <rdar://problem/4049040> REGRESSION (403-405): security check prevents user stylesheet from loading (Dictionary.app doesn't work at all!)
1377 * Plugins.subproj/WebNetscapePluginStream.m: (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
1378 Allow plug-in subresource streams to load with any URL, ignoring the "canLoadURL" method's restriction (only
1379 file URLs can load other file URLs), which now applies only to main resources, like web pages in frames or
1380 object tags and plug-in main resources.
1382 * WebCoreSupport.subproj/WebBridge.m:
1383 (-[WebBridge startLoadingResource:withURL:customHeaders:]): Allow subresources to load with any URL, as above.
1384 This allows things like images, stylesheets, and JavaScript to be loaded without the "canLoadURL" method's
1386 (-[WebBridge startLoadingResource:withURL:customHeaders:postData:]): Ditto.
1387 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]): Ditto.
1389 2005-03-10 Richard Williamson <rjw@apple.com>
1391 Fixed <rdar://problem/4040321> Exception: Someone's trying to encode a WebDataRequestParameters instance
1395 If a delegate returns a mutated applewebdata: request in it's willSendRequest:
1396 method, we don't load using the WebDataRequest. Instead we do a normal load.
1397 Unfortunately, if the request they return is mutated *copy* of the applewebdata:
1398 request it will hold the applewebdata: special properties. These properties
1399 will be encoded into the cache. They should not be. So, to fix, we sanitize the
1400 request, by removing the special properties from the request.
1402 Note that we had to dig into the private guts of NSURLRequest because there is
1403 no public mechanism to remove properties from a request, see 4046775.
1405 * WebView.subproj/WebBaseResourceHandleDelegate.m:
1406 (-[WebBaseResourceHandleDelegate willSendRequest:redirectResponse:]):
1407 * WebView.subproj/WebDataProtocol.h:
1408 * WebView.subproj/WebDataProtocol.m:
1409 (-[NSURLRequest _webDataRequestExternalRequest]):
1410 (-[NSURLRequest _webDataRequestSanitize]):
1414 2005-03-10 Maciej Stachowiak <mjs@apple.com>
1418 <rdar://problem/4046510> REGRESSION (TOT): All Flash and Shockwave plugin-based web content missing
1420 * Plugins.subproj/WebNetscapePluginStream.m:
1421 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
1423 2005-03-10 John Sullivan <sullivan@apple.com>
1427 - fixed <rdar://problem/4045843> Going back/forward to error page
1428 hits assertion in -[WebDataSource(WebPrivate) _setData:]
1430 * WebView.subproj/WebDataSource.m:
1431 (-[WebDataSource _setData:]):
1432 Removed bogus assertion
1434 2005-03-09 Deborah Goldsmith <goldsmit@apple.com>
1438 - fixed <rdar://problem/3997044> default encoding for non-Latin incorrect
1440 * WebKit/WebView.subproj/WebPreferences.m: (+[WebPreferences _systemCFStringEncoding]):
1441 Call __CFStringGetUserDefaultEncoding to get region, and TECGetWebTextEncodings to get
1442 the first encoding to determine the default encoding.
1444 2005-03-09 Darin Adler <darin@apple.com>
1446 Reviewed by Richard.
1448 - fixed <rdar://problem/4034175> REGRESSION (Mail): Can't use any font with style Light/Condensed/Semibold/Extrabold, etc
1450 * WebView.subproj/WebHTMLView.m:
1451 (-[WebHTMLView _styleFromFontAttributes:]): Use a constant instead of hard-coded weight for clarity.
1452 (-[WebHTMLView _originalFontA]): Ditto.
1453 (-[WebHTMLView _originalFontB]): Ditto.
1454 (-[WebHTMLView _addToStyle:fontA:fontB:]): Add code to detect the case where the family name is not good enough
1455 to specify the font precisely. In that case, use the Postscript font name instead. Also change variable names
1456 so it's easier to understand the method.
1458 2005-03-06 Maciej Stachowiak <mjs@apple.com>
1462 <rdar://problem/4005575> Arbitrary file disclosure vulnerability due to ability to load local html from remote content
1464 * Plugins.subproj/WebBaseNetscapePluginView.m:
1465 (-[WebBaseNetscapePluginView requestWithURLCString:]):
1466 * Plugins.subproj/WebNetscapePluginEmbeddedView.m:
1467 (-[WebNetscapePluginEmbeddedView didStart]):
1468 * Plugins.subproj/WebNetscapePluginStream.m:
1469 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
1470 * WebCoreSupport.subproj/WebBridge.m:
1471 (-[WebBridge createWindowWithURL:frameName:]):
1472 (-[WebBridge startLoadingResource:withURL:customHeaders:]):
1473 (-[WebBridge startLoadingResource:withURL:customHeaders:postData:]):
1474 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
1475 (-[WebBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]):
1476 (-[WebBridge postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
1477 (-[WebBridge createChildFrameNamed:withURL:referrer:renderPart:allowsScrolling:marginWidth:marginHeight:]):
1478 (-[WebBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:]):
1479 * WebView.subproj/WebFrame.m:
1480 (-[WebFrame _loadURL:referrer:intoChild:]):
1481 * WebView.subproj/WebFramePrivate.h:
1483 2005-03-09 Richard Williamson <rjw@apple.com>
1485 Fixed <rdar://problem/4032938> Safari: text layout for MS P Gothic font is corrupted
1487 The AppKit and ATS reports that MS P Gothic is fixed pitch. It is
1488 not! This is another case of "fixed pitch" being wrong. I've
1489 coalesced all the special cases into our isFontFixedPitch:, and
1490 used a dictionary to improve speed. No performance regression.
1494 * WebCoreSupport.subproj/WebTextRenderer.m:
1495 (-[WebTextRenderer _computeWidthForSpace]):
1496 * WebCoreSupport.subproj/WebTextRendererFactory.m:
1497 (-[WebTextRendererFactory clearCaches]):
1498 (-[WebTextRendererFactory isFontFixedPitch:]):
1500 2005-03-09 Darin Adler <darin@apple.com>
1504 <rdar://problem/4040388> REGRESSION (172-173): nonrepro crash in -[NSString(WebNSURLExtras) _web_isUserVisibleURL]
1506 * Misc.subproj/WebNSURLExtras.m:
1507 (-[NSString _web_isUserVisibleURL]): Fixed some pointer expressions that didn't include the index in the expression.
1508 (readIDNScriptWhiteListFile): Removed NSLog statements in here since we decided they aren't useful and they will
1509 write some messages on Tiger.
1511 2005-03-09 Darin Adler <darin@apple.com>
1513 * DOM.subproj/DOMPrivate.h: Checked in file copied from WebCore.
1515 2005-03-08 Richard Williamson <rjw@apple.com>
1517 Fixed <rdar://problem/4036949> many JPEG images fail to incremental-load due to change in ImageIO JPEG header parsing (to be fixed in WebKit)
1518 Fixed <rdar://problem/4042570> Need to check image properties for presence of width/height properties
1520 ImageIO-55 changed how image properties are created. They
1521 are now created incrementally. So we need "re-get" the image
1522 properties if the properties we care about (width/height) aren't
1523 in the property dictionary.
1527 * WebCoreSupport.subproj/WebImageData.h:
1528 * WebCoreSupport.subproj/WebImageData.m:
1529 (-[WebImageData init]):
1530 (-[WebImageData fileProperties]):
1531 (-[WebImageData propertiesAtIndex:]):
1532 (-[WebImageData _isSizeAvailable]):
1533 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
1534 (-[WebImageData size]):
1536 2005-03-08 John Sullivan <sullivan@apple.com>
1538 A couple of tweaks to the previous patch, from Darin's review.
1540 * Misc.subproj/WebNSPasteboardExtras.m:
1541 (_writableTypesForImageWithoutArchive):
1542 remove unnecessary _web prefix
1543 (_writableTypesForImageWithArchive):
1545 (+[NSPasteboard _web_writableTypesForImageIncludingArchive:]):
1546 use mutableCopy rather than initWithArray:, and adjust for name changes
1548 2005-03-08 John Sullivan <sullivan@apple.com>
1552 - fixed <rdar://problem/4031826> REGRESSION (Mail): standalone images from
1553 Safari can't be pasted into Mail (WebKit part of fix)
1555 We were always declaring webarchive-related pasteboard types, even in the standalone
1556 image cases where we had no webarchive. Unfortunately, the WebView pasteboard-related
1557 API doesn't prevent this kind of thing from happening, because the code that
1558 declares the types isn't guaranteed to be anywhere near the code that writes
1559 the pasteboard data.
1561 After this fix, I discovered that pasting standalone images into Mail still doesn't
1562 work right, but the remaining issues seem to be entirely in Mail. I wrote up 4041671
1565 * Misc.subproj/WebNSPasteboardExtras.h:
1566 (+[NSPasteboard _web_writableTypesForImageIncludingArchive:]):
1567 Added boolean parameter; clients must specify whether or not there's an
1568 archive involved, because the array of types is different if there is.
1570 * Misc.subproj/WebNSPasteboardExtras.m:
1571 (_web_writableTypesForImageWithoutArchive):
1572 new static function, constructs (once) and returns the array of types
1573 for images that don't have archives
1574 (_web_writableTypesForImageWithArchive):
1575 new static function, constructs (once) and returns the array of types
1576 for images that do have archives
1577 (+[NSPasteboard _web_writableTypesForImageIncludingArchive:]):
1578 added boolean parameter, now calls one of the two new static functions
1580 (-[NSPasteboard _web_writeImage:URL:title:archive:types:]):
1581 added asserts that we aren't declaring the archive types if we don't have archive data
1583 (-[NSPasteboard _web_declareAndWriteDragImage:URL:title:archive:source:]):
1584 updated to pass parameter to _web_writableTypesForImageIncludingArchive:
1586 * WebView.subproj/WebDefaultContextMenuDelegate.m:
1587 (-[WebDefaultUIDelegate copyImageToClipboard:]):
1588 updated to pass parameter to _web_writableTypesForImageIncludingArchive:
1590 * WebView.subproj/WebImageView.m:
1591 (-[WebImageView copy:]):
1592 updated to pass parameter to _web_writableTypesForImageIncludingArchive:
1594 * WebView.subproj/WebView.m:
1595 (-[WebView pasteboardTypesForElement:]):
1596 updated to pass parameter to _web_writableTypesForImageIncludingArchive:
1598 2005-03-07 Richard Williamson <rjw@apple.com>
1600 More bullet proofing for <rdar://problem/4038304> CrashTracer: ....9 crashes at com.apple.WebKit: -[WebTextRenderer initWithFont:usingPrinterFont:] + 840
1602 Protect against removal of Times and Times New Roman from
1603 system. If these fonts are removed attempt to get system font
1604 instead of FATAL_ALWAYS.
1608 * WebCoreSupport.subproj/WebTextRenderer.m:
1609 (-[WebTextRenderer initWithFont:usingPrinterFont:]):
1613 2005-03-06 Darin Adler <darin@apple.com>
1615 - fixed obvious mistake in IDN script code (luckily it hasn't been in a submission yet!)
1617 * Misc.subproj/WebNSURLExtras.m: (readIDNScriptWhiteListFile): Use "index" to index into the array,
1618 not "script", which is the script number, not the 32-bit-word index.
1620 2005-03-05 Kevin Decker <kdecker@apple.com>
1624 Fixed: <rdar://problem/4038529> Infinite progress bar loading webcams and other sites that use multipart/x-mixed-replace
1626 The previous patch I landed prevented us from loading multipart/x-mixed-replace but did not always update the progress bar accordingly.
1627 This stops websites from having seemingly infinite progress in the browser UI.
1629 * WebCoreSupport.subproj/WebSubresourceClient.m:
1630 (-[WebSubresourceClient didReceiveResponse:]): If this is "multipart/x-mixed-replace", remove the WebBaseResourceHandleDelegate client from
1631 the datasource's subresource array, otherwise -[WebDataSource isLoading] incorrectly returns YES. Also it's possible at this point in
1632 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
1633 in fact we're complete.
1634 * WebView.subproj/WebMainResourceClient.m:
1635 (-[WebMainResourceClient connection:didReceiveResponse:]): ditto
1637 2005-03-05 Richard Williamson <rjw@apple.com>
1639 Fixed panther build problem. Shouldn't include
1640 changes for 3968753 on panther.
1644 * WebView.subproj/WebView.m:
1645 (-[WebView _commonInitializationWithFrameName:groupName:]):
1647 2005-03-05 Darin Adler <darin@apple.com>
1651 - fixed <rdar://problem/4034603> REGRESSION (185-188): RadarWeb can't send enclosures anymore
1653 * WebView.subproj/WebFormDataStream.m:
1654 (closeCurrentStream): Release currentData when closing the stream.
1655 (advanceCurrentStream): Set up and retain currentData when the current stream is reading that data, so the
1656 data won't be released while in use.
1657 (formCreate): Initialize currentData to NULL.
1659 - fixed <rdar://problem/4037562> Tiger8A402: Help Viewer crashed when viewing help for iChat (infinite recursion in WebView)
1661 * WebView.subproj/WebView.m: (-[WebView _responderValidateUserInterfaceItem:]):
1662 Check for the case where we ourselves are the responder. This avoids an infinite loop.
1663 The actual code to perform operations avoids this with a global variable, but this lighter weight
1664 solution is sufficient here because validate operations don't call through to the next responder.
1666 2005-03-04 Richard Williamson <rjw@apple.com>
1668 Fixed <rdar://problem/3968753> REGRESSION: Poor performance with differing multiple animated GIFs (was fast in Panther)
1670 Disable coalesced updates (in CG). This restores the
1673 Reviewed by David Harrison.
1675 * WebView.subproj/WebView.m:
1676 (-[WebView _commonInitializationWithFrameName:groupName:]):
1678 2005-03-04 Adele Amchan <adele@apple.com>
1682 * English.lproj/StringsNotToBeLocalized.txt: added new strings "text/x-vcf" and "text/x-csv" to the list
1684 2005-03-04 Adele Amchan <adele@apple.com>
1688 Fix for <rdar://problem/4032982> Sun iPlanet app: not able to import AddressBook CSV format addresses properly
1689 Fix for <rdar://problem/4032985> Sun iPlanet app: not able to import vCard format addresses properly
1691 * WebView.subproj/WebTextView.m:
1692 (+[WebTextView unsupportedTextMIMETypes]): added "text/x-csv" and "text/x-vcf" to the list of MIME types that our text view doesn't handle
1694 2005-03-04 Darin Adler <darin@apple.com>
1698 - fixed <rdar://problem/4036817> REGRESSION: ctrl-y broken when a line + carriage return cut
1700 * WebView.subproj/WebHTMLView.m:
1701 (-[WebHTMLView _deleteRange:killRing:prepend:smartDeleteOK:deletionAction:]): Merged _handleKillRing behavior
1702 into this function, since there's now a more-complicated way the startNewKillRingSequence boolean needs to
1703 be handled. Set the startNewKillRingSequence boolean after the entire process so changing the selection before
1704 and during the editing dosn't clear it. Also change "isTypingAction" parameter to "deletionAction" so we can
1705 handle forward delete with this method.
1706 (-[WebHTMLView _deleteSelection]): Pass deleteSelectionAction for action rather than NO for isTypingAction,
1707 which is the way to say the same thing using the new parameter.
1708 (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]): Refactor to use the _deleteRange
1709 method above. Also calls _shouldDeleteRange: for the pre-existing selection case; not doing that before was
1711 (-[WebHTMLView deleteToMark:]): Pass deleteSelectionAction for action rather than NO for isTypingAction,
1712 which is the way to say the same thing using the new parameter.
1714 2005-03-04 Darin Adler <darin@apple.com>
1718 - fixed <rdar://problem/4020413> REGRESSION (Mail): can't use fonts with names that start with "#" in Mail (Korean fonts)
1720 * WebView.subproj/WebHTMLView.m:
1721 (-[WebHTMLView _styleFromFontAttributes:]): Quote font name when calling setFontFamily.
1722 (-[WebHTMLView _addToStyle:fontA:fontB:]): Ditto.
1724 2005-03-04 Darin Adler <darin@apple.com>
1728 - fixed <rdar://problem/3965666> IDN spoofing vulnerability caused by Unicode characters that look like ASCII characters
1730 * Misc.subproj/WebNSURLExtras.m:
1731 (readIDNScriptWhiteListFile): Added. Reads file and parses script names.
1732 (readIDNScriptWhiteList): Added. Calls readIDNScriptWhiteList on each of the white list locations in succession.
1733 (allCharactersInIDNScriptWhiteList): Renamed from containsPossibleLatinLookalikes and changed sense.
1734 Now calls readIDNScriptWhiteList first time, and then uses the read-in list to check the scripts.
1735 (-[NSString _web_mapHostNameWithRange:encode:makeString:]): Call allCharactersInIDNScriptWhiteList instead of
1736 containsPossibleLatinLookalikes.
1737 * Resources/IDNScriptWhiteList.txt: Added.
1738 * WebKit.pbproj/project.pbxproj: Added IDNScriptWhiteList.txt file.
1740 * Misc.subproj/WebKitLocalizableStrings.m: Removed. This is simply unused.
1741 * English.lproj/StringsNotToBeLocalized.txt: Updated for recent changes.
1743 2005-03-04 Darin Adler <darin@apple.com>
1747 - fixed <rdar://problem/3937667> REGRESSION (Mail): Zooming a window from titlebar button doesn't paint newly-exposed portions of window
1749 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView _recursiveDisplayAllDirtyWithLockFocus:visRect:]):
1750 Re-set-up the visRect if the bounds changes due to layout.
1754 2005-03-03 Jens Alfke <jens@apple.com>
1758 <rdar://problem/3991818> REGRESSION: Images scale while loading
1759 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.
1761 * WebCoreSupport.subproj/WebImageData.m:
1762 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
1764 2005-03-01 David Hyatt <hyatt@apple.com>
1766 Fix for 3841186, scrollbar shows up disabled when it should not appear at all. Make sure updateScrollers
1767 is never allowed to be re-entrant from any call point by moving the guard inside the function itself.
1769 Reviewed by John Sullivan
1771 * WebView.subproj/WebDynamicScrollBarsView.m:
1772 (-[WebDynamicScrollBarsView updateScrollers]):
1773 (-[WebDynamicScrollBarsView reflectScrolledClipView:]):
1775 2005-03-02 Chris Blumenberg <cblu@apple.com>
1777 Fixed: <rdar://problem/4029010> Expose method to retrieve drag image for WebView's selection
1779 Reviewed by sullivan.
1781 * WebView.subproj/WebHTMLView.m:
1782 (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]): call _selectionDraggingImage
1783 (-[WebHTMLView _selectionDraggingImage]): new SPI for Mail, factored from previous method
1784 (-[WebHTMLView _selectionDraggingRect]): new SPI for Mail
1785 * WebView.subproj/WebHTMLViewPrivate.h:
1787 2005-03-02 John Sullivan <sullivan@apple.com>
1791 - fixed <rdar://problem/4023337> Safari stops loading any page (-[NSCFDictionary setObject:forKey:]:
1792 attempt to insert nil key)
1794 It is very likely that the exception being hit is caused by the same problem as WebFoundation
1795 bug 4018486. This change makes the code robust against this kind of problem regardless.
1797 * WebView.subproj/WebBaseResourceHandleDelegate.m:
1798 (-[WebBaseResourceHandleDelegate saveResource]):
1799 Don't call addSubresource if newly-created resource is nil (but do assert on debug builds).
1800 Also assert that originalURL and MIMEType are not nil.
1802 * WebView.subproj/WebDataSource.m:
1803 (-[WebDataSource addSubresource:]):
1804 Don't add nil subresource to dictionary, but do assert on debug builds.
1808 2005-03-01 John Sullivan <sullivan@apple.com>
1812 - fixed <rdar://problem/3987482> Format>Style>Italic is not enabled when a
1813 compose window is empty (works in Blot)
1815 * WebView.subproj/WebHTMLView.m:
1816 (-[WebHTMLView becomeFirstResponder]):
1817 call _updateFontPanel here so NSFontManager knows the right font for the menu
1818 items and the font panel
1820 2005-03-01 David Harrison <harrison@apple.com>
1824 <rdar://problem/3915560> Mail would like an SPI to enable "smart" text paste/drop
1826 * WebView.subproj/WebHTMLView.m:
1827 (-[WebHTMLView _smartDeleteRangeForProposedRange:]):
1828 (-[WebHTMLView _smartInsertForString:replacingRange:beforeString:afterString:]):
1831 2005-02-28 John Sullivan <sullivan@apple.com>
1835 - WebKit part of fix for <rdar://problem/4023490> REGRESSION (125-185): Tabbing through links
1836 on frameset page gets stuck at end (tivofaq.com)
1838 This tab-to-links stuff has been in shaky condition ever since AppKit futzed with
1839 tabbing behavior in Tiger to add support for including the toolbar in the key loop.
1840 I made some changes months ago to compensate for that, but some cases, such as this
1841 one, still weren't fixed.
1843 * WebCoreSupport.subproj/WebBridge.m:
1844 (-[WebBridge _nextKeyViewOutsideWebFrameViewsWithValidityCheck:]):
1845 new bottleneck method, extracted from nextKeyViewOutsideWebFrameViews; handles
1846 nextKeyView or nextValidKeyView depending on parameter.
1847 (-[WebBridge nextKeyViewOutsideWebFrameViews]):
1848 now calls extracted method
1849 (-[WebBridge nextValidKeyViewOutsideWebFrameViews]):
1850 new method, calls new bottleneck method
1852 * WebView.subproj/WebHTMLView.m:
1853 (-[WebHTMLView nextValidKeyView]):
1854 when we're stuck at the end of a nextKeyView chain inside a nexted frame, use
1855 nextValidKeyViewOutsideWebFrameViews. Make sure we don't end up looking inside
1856 the web frame views while doing this.
1858 2005-02-25 Darin Adler <darin@apple.com>
1862 - fixed <rdar://problem/4025088> window onblur and onfocus don't fire when text field has focus
1864 * WebView.subproj/WebHTMLView.m:
1865 (-[WebHTMLView updateFocusState]): Renamed from updateFocusDisplay. Added call to setWindowHasFocus: method.
1866 (-[WebHTMLView viewDidMoveToWindow]): Call method by new name.
1867 (-[WebHTMLView windowDidBecomeKey:]): Ditto.
1868 (-[WebHTMLView windowDidResignKey:]): Ditto.
1869 (-[WebHTMLView becomeFirstResponder]): Ditto.
1870 (-[WebHTMLView resignFirstResponder]): Ditto.
1874 2005-02-25 Richard Williamson <rjw@apple.com>
1876 Fixed <rdar://problem/4000962> 8A375: Help Viewer displays voiced sound and semi-voiced characters strangely (characters don't seem to be composed)
1878 Added special case for voiced marks.
1882 * WebCoreSupport.subproj/WebTextRenderer.m:
1883 (widthForNextCharacter):
1885 2005-02-25 Darin Adler <darin@apple.com>
1889 - fixed <rdar://problem/4019823> Seed: Control-Y doesn't work
1891 * WebView.subproj/WebHTMLView.m:
1892 (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]): Call _handleKillRing
1893 after setting the selection, since it uses the selection to get the text.
1894 (-[WebHTMLView _insertText:selectInsertedText:]): Check for empty string to avoid an assertion
1895 on the other side of the bridge when you yank the empty string.
1897 2005-02-24 Richard Williamson <rjw@apple.com>
1899 Fixed <rdar://problem/3382926> Bidi neutrals at RTL/LTR boundaries not handled correctly.
1901 If directionality is specified use that as initial directionality,
1902 rather than neutral directionality.
1906 * WebCoreSupport.subproj/WebTextRenderer.m:
1907 (widthForNextCharacter):
1909 2005-02-24 Adele Amchan <adele@apple.com>
1913 Fix for <rdar://problem/4023393> Safari crashed in khtml::RenderObject::repaintAfterLayoutIfNeeded(QRect const&, QRect const&)
1915 We were crashing after hitting PageDown when viewing a pdf because
1916 WebKit was calling over to WebCore to scroll overflow areas.
1917 Since this only needs to be done if we're dealing with a WebHTMLView,
1918 I added a wrapper function to check the documentView before calling
1921 * WebView.subproj/WebFrameView.m:
1922 (-[WebFrameView _scrollOverflowInDirection:granularity:]): added wrapper function that checks if documentView is a WebHTMLView
1923 (-[WebFrameView scrollToBeginningOfDocument:]): uses new wrapper function now
1924 (-[WebFrameView scrollToEndOfDocument:]): uses new wrapper function now
1925 (-[WebFrameView _pageVertically:]): uses new wrapper function now
1926 (-[WebFrameView _pageHorizontally:]): uses new wrapper function now
1927 (-[WebFrameView _scrollLineVertically:]): uses new wrapper function now
1928 (-[WebFrameView _scrollLineHorizontally:]): uses new wrapper function now
1930 2005-02-24 Richard Williamson <rjw@apple.com>
1932 Fixed <rdar://problem/3985889> REGRESSION (125-180): setting <img> src to GIF that already animated does not animate; just shows final frame
1936 * WebCoreSupport.subproj/WebImageData.h:
1937 * WebCoreSupport.subproj/WebImageData.m:
1938 (-[WebImageData resetAnimation]):
1939 * WebCoreSupport.subproj/WebImageRenderer.m:
1940 (-[WebImageRenderer resetAnimation]):
1941 (-[WebInternalImage resetAnimation]):
1942 (-[WebImageRenderer drawImageInRect:fromRect:compositeOperator:context:]):
1944 2005-02-24 Kevin Decker <kdecker@apple.com>
1948 Fixed <rdar://problem/3962401> Don't load multipart/x-mixed-replace content to prevent memory leak
1950 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.
1952 * WebView.subproj/WebMainResourceClient.m:
1953 (-[WebMainResourceClient connection:didReceiveResponse:]): Disabled loading of multipart/x-mixed-replace content until we fully implement server side push.
1954 * WebCoreSupport.subproj/WebSubresourceClient.m:
1955 (-[WebSubresourceClient didReceiveResponse:]): Ditto. Same exact thing for sub resources.
1958 2005-02-23 John Sullivan <sullivan@apple.com>
1962 - fixed <rdar://problem/4021370> REGRESSION (Tiger): WebKit part of fix for
1963 shift-tab on tivofaq doing the wrong thing
1965 * WebView.subproj/WebFrameView.m:
1966 (-[WebFrameView becomeFirstResponder]):
1967 If our previousValidKeyView is nil or self (same as nil modulo AppKit oddness),
1968 look out of the box and get the previousValidKeyView of our webview.
1970 2005-02-23 Darin Adler <darin@apple.com>
1974 - fixed <rdar://problem/4010196> REGRESSION (125-186+): 8-character timestamps in gmail wrap to 2 lines (width:8ex; font-size:80%)
1976 * WebCoreSupport.subproj/WebTextRenderer.m: (-[WebTextRenderer xHeight]): Return the maximum
1977 of the "x" height and width. Comment in the code explains why in more detail.
1979 2005-02-22 Richard Williamson <rjw@apple.com>
1981 Fixed <rdar://problem/3937203> when a div adds a scrollbar (overflow:auto) we do not get regions
1983 Compare regions after automatice scroll regions have been
1988 * WebCoreSupport.subproj/WebBridge.h:
1989 * WebCoreSupport.subproj/WebBridge.m:
1990 (-[WebBridge dealloc]):
1991 (-[WebBridge _compareDashboardRegions:]):
1992 (-[WebBridge dashboardRegionsChanged:]):
1994 2005-02-22 Richard Williamson <rjw@apple.com>
1996 Fixed <rdar://problem/4012463> Dashboard widgets don't work with authenticating proxies
1998 Added new SPI for dashboard that just calls default delegate
2003 * WebView.subproj/WebView.m:
2004 (-[WebView handleAuthenticationForResource:challenge:fromDataSource:]):
2005 * WebView.subproj/WebViewPrivate.h:
2007 2005-02-22 Chris Blumenberg <cblu@apple.com>
2011 * WebCoreSupport.subproj/WebBridge.m:
2012 (-[WebBridge issuePasteAndMatchStyleCommand]): support for new "PasteAndMatchStyle" exec command
2016 2005-02-21 David Harrison <harrison@apple.com>
2020 <rdar://problem/3943090> REGRESSION (Mail): Spelling underline incompletely erased following certain steps
2022 * WebCoreSupport.subproj/WebTextRenderer.m:
2023 (-[WebTextRenderer misspellingLineThickness]):
2024 (-[WebTextRenderer misspellingLinePatternWidth]):
2025 Replaced #defines with these methods, so others can get the same info.
2027 (-[WebTextRenderer drawLineForMisspelling:withWidth:]):
2028 Keep underline within originally specified bounds.
2031 2005-02-21 Darin Adler <darin@apple.com>
2035 - fixed <rdar://problem/4016358> don't ever display IDN URLs with characters from "possible Latin look-alike" scripts
2037 * Misc.subproj/WebNSURLExtras.m:
2038 (containsPossibleLatinLookalikes): Added.
2039 (-[NSString _web_mapHostNameWithRange:encode:makeString:]): Call containsPossibleLatinLookalikes, and if true,
2040 don't decode the host name.
2042 2005-02-19 Kevin Decker <kdecker@apple.com>
2046 Fixed <rdar://problem/4010765> Flash player can be used to arbitrarily open popup windows without user permission
2048 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.
2050 * Plugins.subproj/WebBaseNetscapePluginView.h: Addded currentEventIsUserGesture boolean ivar.
2051 * Plugins.subproj/WebBaseNetscapePluginView.m:
2052 (-[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.
2053 (-[WebBaseNetscapePluginView initWithFrame:]): In our asynchronous load, pass along currentEventIsUserGesture to the PluginRequest.
2054 (-[WebBaseNetscapePluginView evaluateJavaScriptPluginRequest:]): Inform WebCore if this was a user originated gesture when calling executeScript().
2055 (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]):
2056 (-[WebPluginRequest initWithRequest:frameName:notifyData:sendNotification:didStartFromUserGesture:]):
2057 (-[WebPluginRequest isCurrentEventUserGesture]): Added.
2059 2005-02-18 Chris Blumenberg <cblu@apple.com>
2061 Fixed: <rdar://problem/3945271> REGRESSION (Mail): pasted plain text should pick up typing style instead of being unstyled
2063 Reviewed by kocienda.
2065 * WebView.subproj/WebDataSource.m:
2066 (-[WebDataSource _replaceSelectionWithArchive:selectReplacement:]): pass NO for matchStyle to replaceSelection
2067 * WebView.subproj/WebHTMLView.m:
2068 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:chosePlainText:]): return new chosePlainText parameter
2069 (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]): pass chosePlainText for matchStyle to replaceSelection
2070 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): ditto
2072 2005-02-17 Richard Williamson <rjw@apple.com>
2074 Removed code that should not have been checked in from
2077 * WebCoreSupport.subproj/WebTextRendererFactory.m:
2078 (-[WebTextRendererFactory isFontFixedPitch:]):
2080 2005-02-17 Richard Williamson <rjw@apple.com>
2082 Fixed <rdar://problem/3999467> when Osaka-Mono is specified as fixed width font, Osaka used instead
2084 Fixed w/o introducing a performance regression.
2086 Reviewed by Vicki (and earlier by Dave Harrison).
2088 * WebCoreSupport.subproj/WebTextRenderer.m:
2089 (-[WebTextRenderer _computeWidthForSpace]):
2090 (widthForNextCharacter):
2091 * WebCoreSupport.subproj/WebTextRendererFactory.h:
2092 * WebCoreSupport.subproj/WebTextRendererFactory.m:
2093 (-[NSFont _web_isFakeFixedPitch]):
2094 (-[WebTextRendererFactory isFontFixedPitch:]):
2095 (-[WebTextRendererFactory fontWithFamily:traits:size:]):
2097 2005-02-17 Richard Williamson <rjw@apple.com>
2099 Fixed <rdar://problem/3959304> PDF in img tag is not rendered correctly anymore
2101 We were incorrectly adding image position when flipping coordinates.
2103 Reviewed by David Harrison.
2105 * WebCoreSupport.subproj/WebImageData.m:
2106 (-[WebImageData _PDFDrawFromRect:toRect:operation:alpha:flipped:context:]):
2108 2005-02-17 Richard Williamson <rjw@apple.com>
2110 Fixed <rdar://problem/4007262> Seed: Flight tracker scrolling moves to the left
2112 Added SPI for dashboard to disable wheel scrolling of the WebClipView.
2117 * WebView.subproj/WebClipView.m:
2118 (-[WebClipView _focusRingVisibleRect]):
2119 (-[WebClipView scrollWheel:]):
2120 * WebView.subproj/WebView.m:
2121 (-[WebViewPrivate init]):
2122 (-[WebView drawRect:]):
2123 (-[WebView _dashboardBehavior:]):
2124 * WebView.subproj/WebViewInternal.h:
2125 * WebView.subproj/WebViewPrivate.h:
2129 2005-02-17 Vicki Murley <vicki@apple.com>
2131 - roll out this change, since it causes a 1.5% performance regression
2133 2005-02-15 Richard Williamson <rjw@apple.com>
2135 Fixed <rdar://problem/3999467> when Osaka-Mono is specified as fixed width font, Osaka used instead
2137 Lie about Osaka-Mono. Treat it as fixed pitch, even though,
2138 strictly speaking it isn't. (Similar to what we do with
2141 Reviewed by David Harrison.
2143 * WebCoreSupport.subproj/WebTextRenderer.m:
2144 (-[WebTextRenderer _computeWidthForSpace]):
2145 * WebCoreSupport.subproj/WebTextRendererFactory.h:
2146 * WebCoreSupport.subproj/WebTextRendererFactory.m:
2147 (-[NSFont _web_isFakeFixedPitch]):
2148 (-[WebTextRendererFactory isFontFixedPitch:]):
2149 (-[WebTextRendererFactory fontWithFamily:traits:size:]):
2151 2005-02-17 John Sullivan <sullivan@apple.com>
2155 - fixed <rdar://problem/3997185> The Web view on .Mac Prefs caused System Prefs
2156 to lockup (resolved by re-boot only)
2158 * WebCoreSupport.subproj/WebBridge.m:
2159 (-[WebBridge nextKeyViewOutsideWebFrameViews]):
2160 Don't allow recursion here; assert on debug build, return nil on deployment. I
2161 couldn't get my machine into a state to repro this problem (and neither could the
2162 originator), but it's obvious from the stack crawl that this method was recursing
2163 when it shouldn't have.
2165 2005-02-16 John Sullivan <sullivan@apple.com>
2167 Written by Darin, reviewed by me.
2169 - WebKit part of fix for <rdar://problem/4007384>
2170 FILTER: Bookmark of RSS with Japanese search word & multiple RSS pages loses filter
2172 * DOM.subproj/DOMPrivate.h:
2173 updated this file, which is a copy of the WebCore version
2175 2005-02-16 Richard Williamson <rjw@apple.com>
2177 Fixed <rdar://problem/3966973> Tiger 8A357: Binary Compatiblity: frequent Webstractor.app crashes [WebImageData _nextFrame]
2179 Webstractor.app was playing tricks to create thumbnails of
2180 pages. This caused the 'focusView' to be incorrect during
2181 animated GIF frame rendering.
2185 * WebCoreSupport.subproj/WebImageRenderer.m:
2186 (-[WebImageRenderer _startOrContinueAnimationIfNecessary]):
2188 2005-02-16 Vicki Murley <vicki@apple.com>
2190 Reviewed by me, code change by Darin.
2192 - fixed the build on Panther
2194 * WebView.subproj/WebFormDataStream.m: (webSetHTTPBody):
2195 Added a Panther-specific code path that just loads all the data into one big
2196 NSData object. This means that bug 3686434 won't be fixed on SUPanWheat; we'll
2197 still load the file into memory before sending it to the server on Panther.
2199 2005-02-15 Richard Williamson <rjw@apple.com>
2201 Fixed <rdar://problem/3998368> Tiger8A376: WebTextRenderer assertion failure in Safari while browsing news.bbc.co.uk
2203 Removed use of FATAL_ALWAYS from getUncachedWidth(). It's unclear
2204 why we would trigger the FATAL_ALWAYS. In the past we've seen
2205 the message triggered because of corrupt fonts. Anyway, in this
2206 particular case, we will now return 0 for the character width,
2207 rather than exiting.
2209 Reviewed by David Harrison.
2211 * WebCoreSupport.subproj/WebTextRenderer.m:
2214 2005-02-15 Richard Williamson <rjw@apple.com>
2216 Fixed <rdar://problem/3999467> when Osaka-Mono is specified as fixed width font, Osaka used instead
2218 Lie about Osaka-Mono. Treat it as fixed pitch, even though,
2219 strictly speaking it isn't. (Similar to what we do with
2222 Reviewed by David Harrison.
2224 * WebCoreSupport.subproj/WebTextRenderer.m:
2225 (-[WebTextRenderer _computeWidthForSpace]):
2226 * WebCoreSupport.subproj/WebTextRendererFactory.h:
2227 * WebCoreSupport.subproj/WebTextRendererFactory.m:
2228 (-[NSFont _web_isFakeFixedPitch]):
2229 (-[WebTextRendererFactory isFontFixedPitch:]):
2230 (-[WebTextRendererFactory fontWithFamily:traits:size:]):
2232 2005-02-14 Darin Adler <darin@apple.com>
2236 - fixed <rdar://problem/3686434> Safari uses too much RAM on file upload, leading to malloc errors and crashes (HP printers)
2238 * WebView.subproj/WebFormDataStream.h: Added webSetHTTPBody, which creates and connects an appropriate
2239 stream to an NSMutableURLRequest.
2240 * WebView.subproj/WebFormDataStream.m: Added implementation here.
2242 * WebCoreSupport.subproj/WebBridge.m:
2243 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
2245 * WebCoreSupport.subproj/WebSubresourceClient.m:
2246 (+[WebSubresourceClient startLoadingResource:withURL:customHeaders:postData:referrer:forDataSource:]):
2248 * WebView.subproj/WebFrame.m:
2249 (-[WebFrame _loadItem:withLoadType:]): Use webSetHTTPBody.
2250 (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]): Ditto.
2252 * English.lproj/StringsNotToBeLocalized.txt: Updated for this change and other recent changes.
2254 2005-02-11 Richard Williamson <rjw@apple.com>
2256 Fixed <rdar://problem/4002505> 8A378: Endlessly animating gif's on http://www.entropy.ch
2258 If animated images had no loop count property we were incorrectly
2259 looping forver. Note, that in the course of fixing this bug
2260 I found that ImageIO is incorrectly NOT reporting the loop count
2261 for a whole class of animated GIFs.
2263 Reviewed by Ken Kocienda.
2265 * WebCoreSupport.subproj/WebImageData.m:
2266 (-[WebImageData _repetitionCount]):
2270 2005-02-11 Vicki Murley <vicki@apple.com>
2274 - fix deployment build on Panther
2276 * WebView.subproj/WebHTMLView.m:
2277 (-[WebHTMLView changeBaseWritingDirection:]): ifdef out NSWritingDirectionNatural
2278 (-[WebHTMLView toggleBaseWritingDirection:]): fix a spacing issue
2280 2005-02-10 David Harrison <harrison@apple.com>
2282 Reviewed by Richard.
2284 <rdar://problem/3991652> REGRESSION (Mail): Deleting entire line in reply deletes extra blank line and moves insertion point
2286 * WebView.subproj/WebHTMLView.m:
2287 (-[WebHTMLView _deleteRange:killRing:prepend:smartDeleteOK:isTypingAction:]):
2288 (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
2289 (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]):
2290 (-[WebHTMLView selectToMark:]):
2291 (-[WebHTMLView swapWithMark:]):
2292 (-[WebHTMLView transpose:]):
2293 (-[WebHTMLView _selectMarkedText]):
2294 (-[WebHTMLView _selectRangeInMarkedText:]):
2295 Adopt new default affinity of NSSelectionAffinityDownstream as of <rdar://problem/3937447>.
2297 2005-02-10 Darin Adler <darin@apple.com>
2299 Reviewed by Harrison.
2301 - fixed <rdar://problem/4002084> Setting ResourceLoadDelegate to nil can cause a crash
2303 * WebView.subproj/WebView.m: (-[WebView _cacheResourceLoadDelegateImplementations]):
2304 Set booleans to either YES or NO, rather than setting them only in the YES case.
2306 2005-02-10 Darin Adler <darin@apple.com>
2308 Reviewed by Harrison.
2310 - fixed <rdar://problem/3991225> Format->Style->Underline menu item does not get checked when selected text is underlined
2312 * WebView.subproj/WebHTMLView.m:
2313 (-[WebHTMLView validateUserInterfaceItem:]): Added tons of additional cases in here for all the
2314 "action" style methods in this class that don't always want to be valid. For the ones where state
2315 makes sense, added the state-checking code too for the menu item case.
2316 (-[WebHTMLView ignoreSpelling:]): Removed unnecessary "editable text only" check since this command
2317 would work fine on a non-editable selection.
2318 (-[WebHTMLView swapWithMark:]): Ditto.
2319 (-[WebHTMLView changeBaseWritingDirection:]): Added. Like toggle, but based on the sender's tag.
2321 2005-02-08 Darin Adler <darin@apple.com>
2323 "Reviewed" by Richard (he told me the file was obsolete).
2325 - got rid of an obsolete file
2327 * Plugins.subproj/npsap.h: Removed.
2328 * copy-webcore-files-to-webkit: Removed npsap.h.
2330 2005-02-09 Richard Williamson <rjw@apple.com>
2332 Fixed <rdar://problem/4000073> non-screen font error on www.worldofwarcraft.com
2334 Reviewed by John Sullivan.
2336 * WebCoreSupport.subproj/WebTextRenderer.m:
2337 (-[WebTextRenderer _smallCapsFont]):
2341 2005-02-07 Chris Blumenberg <cblu@apple.com>
2343 Fixed: <rdar://problem/3993354> Safari claims to put RTFD on the pasteboard, but doesn't, in some cases
2347 * WebView.subproj/WebHTMLView.m:
2348 (-[WebHTMLView _stripAttachmentCharactersFromAttributedString:]): moved
2349 (-[WebHTMLView _writeSelectionWithPasteboardTypes:toPasteboard:cachedAttributedString:]): take cachedAttributedString parameter in case the attributed string was gotten already
2350 (-[WebHTMLView _writeSelectionToPasteboard:]): omit RTFD from the types list when there are no attachments
2352 2005-02-07 David Harrison <harrison@apple.com>
2356 <rdar://problem/3990693> REGRESSION (8A373): ctrl-k now deletes just one character instead of line
2358 * WebView.subproj/WebHTMLView.m:
2359 (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]):
2360 Set the selection so that deleteKeyPressedWithSmartDelete knows what to delete.
2362 2005-02-06 Darin Adler <darin@apple.com>
2366 - fixed <rdar://problem/3963166> PDFView SPI print method is being deprecated, moving to PDFDocument; please update WebKit
2368 * WebView.subproj/WebPDFView.m: (-[WebPDFView printOperationWithPrintInfo:]): Target the document instead of the view.
2370 * English.lproj/StringsNotToBeLocalized.txt: Updated for recent changes and also moved one translation to be a file-specific
2371 item rather than a file-independent one.
2373 2005-02-05 Chris Blumenberg <cblu@apple.com>
2375 Fixed: <rdar://problem/3991974> REGRESSION: www.jabra.com world location screen does not work
2379 * WebCoreSupport.subproj/WebBridge.m:
2380 (-[WebBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:]): use the baseURL from the bridge rather than from the response
2382 2005-02-04 Chris Blumenberg <cblu@apple.com>
2384 Fixed: <rdar://problem/3802781> rtf->html pasteboard conversion using xhtml
2386 Reviewed by kocienda.
2388 * WebView.subproj/WebHTMLView.m:
2389 (+[WebHTMLView _excludedElementsForAttributedStringConversion]): new
2390 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]): call _excludedElementsForAttributedStringConversion
2392 2005-02-04 Chris Blumenberg <cblu@apple.com>
2394 Fixed: <rdar://problem/3832973> copy text from PowerPoint, paste into Blot (or presumably Mail) and get a single missing image icon
2398 * WebView.subproj/WebHTMLView.m:
2399 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]): prefer RTF and RTFD over images just as NSTextView does
2401 2005-02-03 Chris Blumenberg <cblu@apple.com>
2403 Fixed: <rdar://problem/3555137> REGRESSION (125-173): Flash animation can erase parts of chrome (bookmarks bar & tab bar)
2405 convertRect:toView: returns incorrect results inside of viewWillMoveToWindow: with a nil window. Workaround this by catching this case.
2409 * Plugins.subproj/WebBaseNetscapePluginView.m:
2410 (-[WebBaseNetscapePluginView superviewsHaveSuperviews]): new
2411 (-[WebBaseNetscapePluginView saveAndSetPortStateForUpdate:]): clip out the plug-in view when superviewsHaveSuperviews returns NO
2413 2005-02-03 Chris Blumenberg <cblu@apple.com>
2415 Fixed: <rdar://problem/3893513> Sun iPlanet app: when saving to a file it brings up a window with the thing to be saved instead
2419 * WebView.subproj/WebTextView.m:
2420 (+[WebTextView unsupportedTextMIMETypes]): added "text/ldif" to the list of MIME types that our text view doesn't handle
2424 2005-02-03 Chris Blumenberg <cblu@apple.com>
2426 * English.lproj/StringsNotToBeLocalized.txt: updated
2428 2005-02-03 Chris Blumenberg <cblu@apple.com>
2430 Fixed: <rdar://problem/3989611> Evite style "add vCalendar to calendar" do not work
2434 * WebView.subproj/WebTextView.m:
2435 (+[WebTextView unsupportedTextMIMETypes]): added "text/x-vcalendar" to the list of MIME types our text view doesn't handle
2437 2005-02-03 Vicki Murley <vicki@apple.com>
2441 - fix deployment build breakage on Panther
2443 * WebView.subproj/WebHTMLView.m:
2444 (-[WebHTMLView toggleBaseWritingDirection:]):
2446 2005-02-02 John Sullivan <sullivan@apple.com>
2450 - WebKit part of fix for <rdar://problem/3980651> REGRESSION (125-180): Huge number of pages printed from certain page,
2453 This also fixes the problems with printing from GMail, yay!
2455 * WebView.subproj/WebHTMLView.m:
2456 (-[WebHTMLView _setPrinting:minimumPageWidth:maximumPageWidth:adjustViewSize:]):
2457 Don't adjust margins for header/footer here, because this is called for each subframe.
2458 (-[WebHTMLView knowsPageRange:]):
2459 Do adjust margins for header/footer here (analogous to WebTextView and WebImageView).
2460 Also, round the page height to an integer here (noticed in passing).
2462 2005-02-02 Chris Blumenberg <cblu@apple.com>
2464 Fixed: <rdar://problem/3986546> Cut, delete, and paste menu items are active when a image is opened in window
2468 * WebView.subproj/WebView.m:
2469 (-[WebView _responderValidateUserInterfaceItem:]): new, has the responder validate the item
2470 (-[WebView validateUserInterfaceItem:]): call VALIDATE for each repsonder selector using FOR_EACH_RESPONDER_SELECTOR macro
2471 (-[WebView _performResponderOperation:with:]): call factored out method _responderForResponderOperations
2472 (-[WebView _responderForResponderOperations]): new, code from _performResponderOperation:with:
2474 2005-02-02 Chris Blumenberg <cblu@apple.com>
2476 Fixed: <rdar://problem/3983628> control-click on WebView is not selecting the word under the cursor (Mail, non-editable WebView)
2480 * WebCoreSupport.subproj/WebBridge.m:
2481 (-[WebBridge selectWordBeforeMenuEvent]): new
2482 * WebView.subproj/WebView.m:
2483 (-[WebView _selectWordBeforeMenuEvent]): new SPI
2484 (-[WebView _setSelectWordBeforeMenuEvent:]): new SPI
2485 * WebView.subproj/WebViewInternal.h:
2486 * WebView.subproj/WebViewPrivate.h:
2488 2005-02-02 Chris Blumenberg <cblu@apple.com>
2490 Fixed: <rdar://problem/3986013> Assertion failure going back after page load error (no apparent problem in nondebug build)
2494 * WebView.subproj/WebDataSource.m:
2495 (-[WebDataSource _setPrimaryLoadComplete:]): don't set the data source data when the main client is nil
2497 2005-02-02 Ken Kocienda <kocienda@apple.com>
2503 <rdar://problem/3823109> WebKit should support -toggleBaseWritingDirection: (bidi editing support)
2505 * WebView.subproj/WebHTMLView.m:
2506 (-[WebHTMLView _applyParagraphStyleToSelection:withUndoAction:]): New function that calls through to
2507 new feature that allows callers to force all properties in a style to be applied as block styles.
2508 (-[WebHTMLView _alignSelectionUsingCSSValue:withUndoAction:]): Removed FIXME comment for something that has been fixed.
2509 (-[WebHTMLView toggleBaseWritingDirection:]): Implemented.
2511 2005-02-01 Richard Williamson <rjw@apple.com>
2513 Fixed <rdar://problem/3977727> WebKit should use new SPI to support faster GIF rendering
2515 Note: This REQUIRES build >= 3A362 when building on Tiger.
2519 * WebCoreSupport.subproj/WebImageData.m:
2520 (-[WebImageData _imageSourceOptions]):
2524 2005-02-01 Richard Williamson <rjw@apple.com>
2526 Added new SPI for <rdar://problem/3967063> need spi on WebView to turn of lcd text for Dashboard
2530 * WebCoreSupport.subproj/WebTextRenderer.m:
2532 * WebView.subproj/WebView.m:
2533 (-[WebView drawRect:]):
2534 (-[WebView _dashboardBehavior:]):
2535 (+[WebView _setShouldUseFontSmoothing:]):
2536 (+[WebView _shouldUseFontSmoothing]):
2537 * WebView.subproj/WebViewInternal.h:
2538 * WebView.subproj/WebViewPrivate.h:
2540 2005-01-31 Chris Blumenberg <cblu@apple.com>
2542 Fixed: <rdar://problem/3949806> REGRESSION: Source window fails to refresh correctly on reload
2544 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.
2548 * WebView.subproj/WebDataSource.m:
2549 (-[WebDataSource _setData:]): moved within file
2550 (-[WebDataSource _setPrimaryLoadComplete:]): call _setData: with the data from the main client before letting go of the main client
2551 * WebView.subproj/WebDataSourcePrivate.h:
2552 * WebView.subproj/WebMainResourceClient.m:
2553 (-[WebMainResourceClient releaseResources]): removed call to _setData: since the data source may need the data before releaseResources is called
2555 2005-01-31 Chris Blumenberg <cblu@apple.com>
2557 Fixed: <rdar://problem/3946285> Seed: Safari crashed by selecting all at internet-moebel.com
2561 * WebView.subproj/WebHTMLView.m:
2562 (-[WebHTMLView _hitViewForEvent:]): new, factored hit test hack to this method
2563 (-[WebHTMLView _updateMouseoverWithEvent:): call _hitViewForEvent:
2564 (-[WebHTMLView acceptsFirstMouse:]): call _setMouseDownEvent: and _isSelectionEvent: on the hit HTMLView or else when it's asked to drag it will assert
2565 (-[WebHTMLView shouldDelayWindowOrderingForEvent:]): ditto
2567 2005-01-31 David Harrison <harrison@apple.com>
2571 <rdar://problem/3961239> AX Setting AXFocused on AXScrollArea of AXWebArea will cause keyboard selection change
2573 * WebView.subproj/WebHTMLView.m:
2574 (-[WebHTMLView maintainsInactiveSelection]):
2575 Keep the selection when the new first respomder is our own scrollview, in both editable and non-editaqble content.
2577 2005-01-31 Jens Alfke <jens@apple.com>
2581 - Fixed <rdar://problem/3903199> REGRESSION: Large background patterns slide around while loading
2583 * WebCoreSupport.subproj/WebImageData.m:
2585 (-[WebImageData tileInRect:fromPoint:context:]):
2587 2005-01-30 Darin Adler <darin@apple.com>
2591 - fixed <rdar://problem/3965265> Safari displays HTML as source when default encoding is Hebrew (due to direction overrides added by encoding converter)
2593 * WebView.subproj/WebPreferencesPrivate.h: Added _systemCFStringEncoding, and changed
2594 _setInitialDefaultTextEncodingToSystemEncoding to be a class method.
2595 * WebView.subproj/WebPreferences.m:
2596 (+[WebPreferences _systemCFStringEncoding]): Added. New SPI to be used by Safari. Broken out of
2597 _setInitialDefaultTextEncodingToSystemEncoding, but also added cases for MacArabic and MacHebrew.
2598 (+[WebPreferences _setInitialDefaultTextEncodingToSystemEncoding]): Refactor to use _systemCFStringEncoding.
2600 2005-01-28 Jens Alfke <jens@apple.com>
2602 Reviewed by Richard.
2604 <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)
2606 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.)
2608 * WebCoreSupport.subproj/WebImageData.h:
2609 * WebCoreSupport.subproj/WebImageData.m:
2610 (-[WebImageData _invalidateImages]):
2611 (-[WebImageData _checkSolidColor:]):
2612 (-[WebImageData _cacheImages:allImages:]):
2613 (-[WebImageData _fillSolidColorInRect:compositeOperation:context:]):
2614 (-[WebImageData tileInRect:fromPoint:context:]):
2616 2005-01-28 David Harrison <harrison@apple.com>
2620 <rdar://problem/3584942> AX: Safari Accessibility parent-child mismatch
2622 Use AppKit SPI _accessibilityParentForSubview to return KWQAccObject parent of AppKit AX object.
2624 * WebView.subproj/WebHTMLView.m:
2625 (-[WebHTMLView _accessibilityParentForSubview:]):
2628 2005-01-28 Chris Blumenberg <cblu@apple.com>
2630 WebKit side of: <rdar://problem/3951283> can view pages from the back/forward cache that should be disallowed by Parental Controls
2634 * WebView.subproj/WebDefaultPolicyDelegate.m:
2635 (-[WebDefaultPolicyDelegate webView:shouldGoToHistoryItem:]): new private delegate method
2636 * WebView.subproj/WebFrame.m:
2637 (-[WebFrame _goToItem:withLoadType:]): call new delegate method
2638 * WebView.subproj/WebPolicyDelegatePrivate.h:
2640 2005-01-26 Maciej Stachowiak <mjs@apple.com>
2642 Reviewed by Darin, Hyatt and Ken.
2644 <rdar://problem/3790449> REGRESSION (Mail): underline behavior is flaky because of how CSS handles text-decoration
2646 * WebView.subproj/WebHTMLView.m:
2647 (-[WebHTMLView _styleFromFontAttributes:]): Use new -khtml-text-decorations-in-effect
2649 (-[WebHTMLView _styleForAttributeChange:]): likewise
2650 (-[WebHTMLView underline:]): likewise
2652 2005-01-27 Ken Kocienda <kocienda@apple.com>
2656 * WebView.subproj/WebHTMLView.m:
2657 (-[WebHTMLView _handleKillRing:prepend:]): New helper function. Code factored out from
2658 _deleteRange:killRing:prepend:smartDeleteOK:isTypingAction:.
2659 (-[WebHTMLView _deleteRange:killRing:prepend:smartDeleteOK:isTypingAction:]): No longer takes
2660 unused preflight argument. Now takes new isTypingAction argument. Uses isTypingAction to
2661 determine which flavor of delete command to call.
2662 (-[WebHTMLView _deleteSelection]): No longer passes unused preflight argument. Now passes new isTypingAction argument.
2663 (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]): Rearranged code to call
2664 correct flavor of delete command, based on whether typing should be preserved. Some other cleanups.
2665 (-[WebHTMLView deleteForward:]): Add _isEditable check.
2666 (-[WebHTMLView deleteBackward:]): Now calls _deleteWithDirection instead of having unique behavior different
2667 from forward delete.
2668 (-[WebHTMLView deleteWordForward:]): Add new isTypingAction flag to _deleteWithDirection call.
2669 (-[WebHTMLView deleteWordBackward:]): Ditto.
2670 (-[WebHTMLView deleteToBeginningOfLine:]): Ditto.
2671 (-[WebHTMLView deleteToEndOfLine:]): Ditto.
2672 (-[WebHTMLView deleteToBeginningOfParagraph:]): Ditto.
2673 (-[WebHTMLView deleteToEndOfParagraph:]): Ditto.
2674 (-[WebHTMLView deleteToMark:]): Ditto.
2678 2005-01-27 Chris Blumenberg <cblu@apple.com>
2680 Fixed: <rdar://problem/3973272> REGRESSION: Safari uses QT plugin to display PNG images
2684 * Plugins.subproj/WebBasePluginPackage.m: use renamed QT bundle ID
2686 2005-01-26 Darin Adler <darin@apple.com>
2690 - fixed <rdar://problem/3829517> WebView still draws white when setDrawsBackground set to NO and no content loaded yet
2692 * WebView.subproj/WebFrameView.m: (-[WebFrameView drawRect:]): Check drawsBackground, and don't
2693 draw the white "no document" background if it's NO. This fixes things for frames with no document.
2694 * WebView.subproj/WebImageView.m: (-[WebImageView drawRect:]): Same as above. This fixes things
2695 for frames with just an image.
2696 * WebView.subproj/WebFrame.m: (-[WebFrame _updateDrawsBackground]): Call setDrawsBackground: on the
2697 document view if it implements it. This fixes things for frames with plain text.
2699 2005-01-25 John Sullivan <sullivan@apple.com>
2703 - WebKit part of fix for: <rdar://problem/3970670> Text context menu
2704 in WebKit needs "Look Up in Dictionary" item
2706 * WebView.subproj/WebDefaultContextMenuDelegate.m:
2707 (localizedMenuTitleFromAppKit):
2708 return English string in the case where AppKit bundle is found but doesn't
2709 contain the expected string. This case will be hit by people testing with
2711 (-[WebDefaultUIDelegate menuItemWithTag:]):
2712 create Look Up in Dictionary item
2713 (-[WebDefaultUIDelegate contextMenuItemsForElement:]):
2714 add Look Up in Dictionary item and separator
2715 (-[WebDefaultUIDelegate editingContextMenuItemsForElement:]):
2718 * WebView.subproj/WebHTMLView.m:
2719 (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
2720 new method, handles bringing up the Dictionary window. Includes FIXMEs
2721 for a couple of the known loose ends.
2722 (-[WebHTMLView validateUserInterfaceItem:]):
2723 handle Look Up in Dictionary item like the other new items
2725 * WebView.subproj/WebUIDelegatePrivate.h:
2726 added SPI constant for Look Up in Dictionary menu item
2728 2005-01-24 Maciej Stachowiak <mjs@apple.com>
2730 Fixed Panther build (missing ifdef)
2732 * WebView.subproj/WebDefaultContextMenuDelegate.m:
2734 2005-01-24 John Sullivan <sullivan@apple.com>
2738 - WebKit part of fix for <rdar://problem/3960231> Text context menu in WebKit needs Spotlight and Google items
2740 * WebView.subproj/WebDefaultContextMenuDelegate.m:
2741 (localizedMenuTitleFromAppKit):
2742 new function, gets localized string from AppKit so we can avoid adding localized
2743 strings to WebKit at this late date in Tiger. Returns the non-localized English
2744 string if we can't find the localized string in AppKit.
2745 (-[WebDefaultUIDelegate menuItemWithTag:]):
2746 handle the two new menu items by tag name
2747 (-[WebDefaultUIDelegate contextMenuItemsForElement:]):
2748 add menu items for Search in Google and Search in Spotlight to selected-text menu item
2749 for the noneditable case
2750 (-[WebDefaultUIDelegate editingContextMenuItemsForElement:]):
2751 add menu items for Search in Google and Search in Spotlight to selected-text menu item
2752 for the editable case
2754 * WebView.subproj/WebHTMLView.m:
2755 (-[WebHTMLView _searchWithGoogleFromMenu:]):
2756 implement this menu item action method, using same method name and implementation as NSTextView
2757 (-[WebHTMLView _searchWithSpotlightFromMenu:]):
2758 implement this menu item action method, using same basic implementation as NSTextView
2759 (-[WebHTMLView validateUserInterfaceItem:]):
2760 validate new menu items
2762 * WebView.subproj/WebUIDelegatePrivate.h:
2763 define new tags for new menu items
2765 * English.lproj/StringsNotToBeLocalized.txt:
2766 updated for these changes
2768 2005-01-24 Darin Adler <darin@apple.com>
2770 * WebView.subproj/WebDataSource.m: (+[WebDataSource _repTypesAllowImageTypeOmission:]):
2771 Do the same check as for view types, so the representation types are consistent.
2773 2005-01-24 Darin Adler <darin@apple.com>
2777 - fixed <rdar://problem/3791158> REGRESSION (Mail): copyFont: and pasteFont: copy and paste only the NSFont, not other attributes
2779 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView _styleFromFontAttributes:]): Added the last
2780 few loose ends here: strikethrough and underline.
2782 - fixed <rdar://problem/3967393> add a user default that lets you turn off WebKit PDF support
2784 * WebView.subproj/WebFrameView.m: (+[WebFrameView _viewTypesAllowImageTypeOmission:]):
2785 Leave the PDF-handling classes out of the dictionary if the secret default is set.
2787 * English.lproj/StringsNotToBeLocalized.txt: Updated for recent changes.
2789 2005-01-20 Darin Adler <darin@apple.com>
2791 Reviewed by Kristin Forster.
2793 - fixed <rdar://problem/3964972> update _initWithCGSEvent:eventRef: call in mouse moved workaround (breaks cursors in Carbon WebKit applications)
2795 * Carbon.subproj/HIWebView.m: (MouseMoved): Instead of munging the event record's window number directly
2796 before calling _initWithCGSEvent, on Tiger we call _eventRelativeToWindow on the event after creating it.
2797 Also added a check so that with Macromedia Contribute's workaround in place we don't do anything at all
2798 to the event. Tested with both Contribute and CarbonWeb.
2800 * English.lproj/StringsNotToBeLocalized.txt: Update for recent changes.
2802 2005-01-20 Richard Williamson <rjw@apple.com>
2804 Fixed <rdar://problem/3815672> REGRESSION (Mail): Japanese text cannot be made bold
2806 The AppKit's font substitution API doesn't match font traits!
2807 It only find fonts that contain the appropriate glyphs. This
2808 patch attempts to find the best variation within a family.
2812 * WebCoreSupport.subproj/WebTextRenderer.m:
2813 (-[WebTextRenderer _substituteFontForString:families:]):
2817 2005-01-20 Ken Kocienda <kocienda@apple.com>
2823 <rdar://problem/3786659> REGRESSION (Mail): editable WebViews don't work with "size up" and "size down" NSFontManager changes
2825 * WebView.subproj/WebHTMLView.m:
2826 (-[WebHTMLView _addToStyle:fontA:fontB:]): This is the WebKit side of the fix. Replaced unimplemented code blocks
2827 with FIXME's in them for make bigger and make smaller with real working code.
2829 2005-01-19 David Hyatt <hyatt@apple.com>
2831 Fix for 3513067, spaces being lost when RTL text is rendered. Make sure not to allow hangers or spaces
2836 * WebCoreSupport.subproj/WebTextRenderer.m:
2837 (-[WebTextRenderer _createATSUTextLayoutForRun:style:]):
2839 2005-01-19 Darin Adler <darin@apple.com>
2843 - fixed <rdar://problem/3962559> stopAnimationsInView leaks after cvs-base
2845 * WebCoreSupport.subproj/WebImageData.m: (+[WebImageData stopAnimationsInView:]): add a release
2847 2005-01-19 Chris Blumenberg <cblu@apple.com>
2849 Fixed: <rdar://problem/3961809> plug-in code attempts to load empty URL
2853 * Plugins.subproj/WebNetscapePluginEmbeddedView.m:
2854 (-[WebNetscapePluginEmbeddedView didStart]): don't start load if URL is empty
2856 2005-01-17 Darin Adler <darin@apple.com>
2858 * DOM.subproj/DOMPrivate.h: Check in generated file.
2860 2005-01-17 Darin Adler <darin@apple.com>
2862 Reviewed by John and Richard.
2864 - fixed <rdar://problem/3907453> printing a multi-page PDF document from Safari doesn't produce correct output
2866 * WebView.subproj/WebFrameViewPrivate.h: Added.
2867 * WebView.subproj/WebFrameView.m:
2868 (-[WebFrameView canPrintHeadersAndFooters]): Added. Returnes NO for documents that can't print headers or footers,
2869 and delegates to the document view to answer the question. Defaults to NO, since only a view that actively does
2870 the work is compatible with our header and footer code.
2871 (-[WebFrameView printOperationWithPrintInfo:]): Added. Returns an NSPrintOperation set up for printing. The reason
2872 we return this rather than an NSView is that in the PDFView case, the print info is changed around before creating
2873 the NSPrintOperation, and also the PDFKit SPI works this way.
2875 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView canPrintHeadersAndFooters]): Added. Returns YES.
2876 * WebView.subproj/WebImageView.m: (-[WebImageView canPrintHeadersAndFooters]): Ditto.
2877 * WebView.subproj/WebTextView.m: (-[WebTextView canPrintHeadersAndFooters]): Ditto.
2879 * WebView.subproj/WebPDFView.m:
2880 (-[WebPDFView canPrintHeadersAndFooters]): Added. Returns NO.
2881 (-[WebPDFView printOperationWithPrintInfo:]): Added. Calls getPrintOperationForPrintInfo: autoRotate:YES on the PDFView.
2883 * WebKit.pbproj/project.pbxproj: Added WebFrameViewPrivate.h as a new private header.
2885 2005-01-13 Chris Blumenberg <cblu@apple.com>
2887 Fixed: <rdar://problem/3932107> Safari does not load QT Cocoa plug-in if the WebPluginMIMETypes key is not in the info.plist
2889 Fixing this bug required that we allow WebKit plug-ins (as well as Netscape plug-ins) support BP_CreatePluginMIMETypesPreferences
2890 which allows plug-ins create an auxiliary MIME types file.
2894 * Plugins.subproj/WebBasePluginPackage.h:
2895 * Plugins.subproj/WebBasePluginPackage.m:
2896 (+[WebBasePluginPackage preferredLocalizationName]): moved from WebNetscapePluginPackage
2897 (-[WebBasePluginPackage pListForPath:createFile:]): ditto
2898 (-[WebBasePluginPackage getPluginInfoFromPLists]): ditto
2899 (-[WebBasePluginPackage isLoaded]): return isLoaded ivar
2900 (-[WebBasePluginPackage load]): if loaded, get BP_CreatePluginMIMETypesPreferences symbol
2901 * Plugins.subproj/WebNetscapePluginPackage.h:
2902 * Plugins.subproj/WebNetscapePluginPackage.m:
2903 (-[WebNetscapePluginPackage load]): call super when done so BP_CreatePluginMIMETypesPreferences can be initialized
2904 * Plugins.subproj/WebPluginPackage.m:
2905 (-[WebPluginPackage initWithPath:]): call getPluginInfoFromPLists
2906 (-[WebPluginPackage load]): call super when done so BP_CreatePluginMIMETypesPreferences can be initialized
2908 2005-01-13 Richard Williamson <rjw@apple.com>
2910 Fixed <rdar://problem/3952809> WebJavaPlugIn.h comments need method name corrected (webPlugInCallJava)
2914 * Plugins.subproj/WebJavaPlugIn.h:
2918 2005-01-13 Vicki Murley <vicki@apple.com>
2922 - fix <rdar://problem/3946836> Safari about box lists 2004 instead of 2005
2924 * WebKit.pbproj/project.pbxproj: bump "2004" to "2005"
2926 2005-01-13 Richard Williamson <rjw@apple.com>
2928 Fixed <rdar://problem/3951911> REGRESSION: Animated GIF images with loop counts no longer update
2930 Draw last image after animation loop terminates. (We
2931 were drawing the image at index+1, which doesn't exist!)
2935 * WebCoreSupport.subproj/WebImageData.m:
2936 (-[WebImageData _nextFrame:]):
2938 2005-01-13 Richard Williamson <rjw@apple.com>
2940 Fixed <rdar://problem/3952084> REGRESSION: Links at projectseven.com now draw and update incorrectly during hover
2942 Turn off use of new CGContextStrokeLineSegments API. We should
2943 turn back on when 3952944 is fixed.
2947 * WebCoreSupport.subproj/WebTextRenderer.m:
2948 (-[WebTextRenderer drawLineForCharacters:yOffset:width:color:thickness:]):
2950 2005-01-13 Chris Blumenberg <cblu@apple.com>
2952 Fixed: <rdar://problem/3937663> repro assertion failure and crash dragging image that has PDF source
2956 * Misc.subproj/WebNSViewExtras.m:
2957 (-[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
2958 * WebCoreSupport.subproj/WebImageRendererFactory.m:
2959 (-[WebImageRendererFactory supportedMIMETypes]): removed code that omits PDF and PostScript from the list since this omission is only needed in WebImageView
2960 * WebView.subproj/WebImageView.m:
2961 (+[WebImageView supportedImageMIMETypes]): added code that omits PDF and PostScript since we don't want WebImageView to render these types
2963 2005-01-10 Maciej Stachowiak <mjs@apple.com>
2967 <rdar://problem/3758033> REGRESSION (Mail): Support attributes in marked text (International input)
2969 * WebCoreSupport.subproj/WebTextRenderer.m:
2970 (-[WebTextRenderer drawLineForCharacters:yOffset:width:color:thickness:]): Changed to support
2971 underline thickness. Also added a bit of a hack here to move thickness 2 underlines down by
2972 .5 pixels, since the rendering engine can't give a fractional pixel offset.
2973 * WebView.subproj/WebHTMLView.m:
2974 (-[WebHTMLView validAttributesForMarkedText]): Support underline, underline color and marked
2975 clause attributes. Others that NSText supports are unimplemented for now.
2976 (-[WebHTMLView firstRectForCharacterRange:]): Remove needless logging.
2977 (-[WebHTMLView unmarkText]): Updated for new WebCore SPI.
2978 (-[WebHTMLView _extractAttributes:ranges:fromAttributedString:]): New method to pull the attributes
2979 and ranges out of an attributed string.
2980 (-[WebHTMLView setMarkedText:selectedRange:]): Extract attributes and pass to WebCore.
2981 (-[WebHTMLView insertText:]): Add comment noting that we don't really handle attributed strings
2984 2005-01-12 Darin Adler <darin@apple.com>
2988 - fixed <rdar://problem/3848257> WebView will draw more than AppKit asks it to, so views behind won't redraw enough (transparent WebView)
2990 * WebView.subproj/WebHTMLView.m:
2991 (-[WebHTMLView _propagateDirtyRectsToOpaqueAncestors]): As recommended by Troy Stephens, do the
2992 layouts here in this call, since it's before propagating the dirty rects to our ancestors.
2993 This fixes the bug, but we only do it if the WebView is not opaque, because otherwise we can
2994 optimize by only doing layouts you really need, and doing them later on is safe because we
2995 know we don't need to draw any of the views behind us.
2996 (-[WebHTMLView _layoutIfNeeded]): Added. Factored out from the method below.
2997 (-[WebHTMLView _web_layoutIfNeededRecursive]): Added. Like the other "layout if needed" call,
2999 (-[WebHTMLView _web_layoutIfNeededRecursive:testDirtyRect:]): Factored out the guts into the
3000 _layoutIfNeeded method above. Otherwise unchanged.
3001 (-[NSView _web_layoutIfNeededRecursive]): Added.
3003 * WebView.subproj/WebFrame.m: (-[WebFrame _updateDrawsBackground]): Call setDrawsBackground:NO
3004 on the scroll view when changing the frame to no longer be in "draws background" mode. This
3005 is needed because the frame manages the "draws background" mode of the scroll view. It won't
3006 have any effect if you call setDrawsBackground:NO before starting to use a WebView, but without
3007 it calling setDrawsBackground:NO later won't have an immediate effect (easily visible in Safari).
3008 This was hidden before because the HTML view was filling with transparent color, which blew away
3009 the fill that was done by NSScrollView.
3011 - fixed <rdar://problem/3921129> reproducible crash at www.funnychristmas.com in CFSet manipulation in WebImageData
3013 * WebCoreSupport.subproj/WebImageData.m:
3014 (-[WebImageData _imageSourceOptions]): Changed types so we don't need a cast.
3015 (+[WebImageData stopAnimationsInView:]): Instead of building a set of sets, by putting in the sets with addObject,
3016 build a single set using unionSet, and then iterate the objects instead of having to iterate the sets and then the
3017 objects in each set. The old code ended up sharing the sets with the live code, when the whole idea was to gather
3018 all the renderers because the process of stopping modifies the active sets.
3020 2005-01-12 Richard Williamson <rjw@apple.com>
3022 Fixed <rdar://problem/3926825> Safari ignores GIF loop count
3024 Get loop count from file properties, not image properties.
3026 Reviewed by Ken Kocienda.
3028 * WebCoreSupport.subproj/WebImageData.h:
3029 * WebCoreSupport.subproj/WebImageData.m:
3030 (-[WebImageData _commonTermination]):
3031 (-[WebImageData fileProperties]):
3032 (-[WebImageData _floatProperty:type:at:]):
3033 (-[WebImageData _floatFileProperty:type:]):
3034 (-[WebImageData _repetitionCount]):
3036 2005-01-11 Chris Blumenberg <cblu@apple.com>
3038 Fixed: <rdar://problem/3934749> assertion failure in WebBaseNetscapePluginView loading movie
3042 * Plugins.subproj/WebBaseNetscapePluginView.m:
3043 (-[WebBaseNetscapePluginView start]): call canStart before asserting about the webView
3045 2005-01-11 John Sullivan <sullivan@apple.com>
3049 - fixed <rdar://problem/3446838> REGRESSION (Mail): text decorations don't print
3050 (e.g. <strike>, underline)
3052 * WebCoreSupport.subproj/WebTextRenderer.m:
3053 (-[WebTextRenderer drawLineForCharacters:yOffset:withWidth:withColor:]):
3054 This bottleneck routine for drawing a line was setting the linewidth to 0 when
3055 the graphics context was not drawing to the screen. Thus, no lines. Now links
3056 are underlined when printing from Safari (as well as Mail).
3058 2005-01-11 Richard Williamson <rjw@apple.com>
3060 Fixed 3949145. CG has a much faster API for drawing lines.
3061 Switched over to that new API (CGContextStrokeLineSegments).
3063 Reviewed by John Sullivan.
3065 * WebCoreSupport.subproj/WebTextRenderer.m:
3066 (-[WebTextRenderer drawLineForCharacters:yOffset:withWidth:withColor:]):
3068 2005-01-10 Chris Blumenberg <cblu@apple.com>
3070 Fixed: <rdar://problem/3948862> REGRESSION: missing images when RTFD is pasted into editable WebView
3072 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.
3076 * WebView.subproj/WebHTMLView.m:
3077 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]): don't deal with subresources since that's now done by the following method
3078 (-[WebHTMLView resourceForData:preferredFilename:]): new handler method called by AppKit
3082 2005-01-06 David Harrison <harrison@apple.com>
3084 Reviewed by Dave Hyatt
3086 <rdar://problem/3588548> AX: tabbing does not work correctly with the screen reader and a focused link; need AXFocusedUIElement to work.
3088 * WebView.subproj/WebHTMLView.m:
3089 (-[WebHTMLView accessibilityFocusedUIElement]):
3090 Implement this so that AppKit can use it from NSAccessibilityHandleFocusChanged.
3092 2005-01-05 Chris Blumenberg <cblu@apple.com>
3094 Fixed: <rdar://problem/3936865> REGRESSION: canvas.drawImage no longer scales properly
3098 * WebCoreSupport.subproj/WebImageData.m: use the height of the inRect instead of the fromRect when setting the origin of the context
3100 2005-01-04 Chris Blumenberg <cblu@apple.com>
3102 Fixed: <rdar://problem/3928329> WebKit should pass nil for "language" to checkSpellingOfString:
3104 Reviewed by kocienda.
3106 * WebView.subproj/WebHTMLView.m:
3107 (-[WebHTMLView _isSelectionMisspelled]): pass nil not @"" for language
3109 2004-12-21 Maciej Stachowiak <mjs@apple.com>
3113 <rdar://problem/3888931> frame naming allows malicious site to bring up a window when you click on a link in another
3115 Implement a security check on name frame visbility. This is the
3116 same rule as mozilla. You can only target frames by name if you
3117 are in the same window, have the same domain as the frame or an
3118 ancestor, or if it's a top level window have the same domain as
3121 * WebView.subproj/WebFrame.m:
3122 (-[WebFrame _shouldAllowAccessFrom:]):
3123 (-[WebFrame _descendantFrameNamed:sourceFrame:]):
3124 (-[WebFrame findFrameNamed:]):
3125 * WebView.subproj/WebFramePrivate.h:
3126 * WebView.subproj/WebView.m:
3127 (-[WebView _findFrameInThisWindowNamed:sourceFrame:]):
3128 (-[WebView _findFrameNamed:sourceFrame:]):
3129 * WebView.subproj/WebViewPrivate.h:
3135 2004-12-20 Richard Williamson <rjw@apple.com>
3137 Add call to new API. ImageIO deprecated some older (although
3138 quite new!) API. This caused us to fail to build on 337 or later.
3140 Developers wanting to build on older versions of Tiger must define
3141 USE_DEPRECATED_IMAGESOURCE_API in WebImageData.m.
3145 * WebCoreSupport.subproj/WebImageData.m:
3146 (-[WebImageData propertiesAtIndex:]):
3148 2004-12-20 Richard Williamson <rjw@apple.com>
3150 Don't call Tiger SPI on Panther.
3154 * WebCoreSupport.subproj/WebTextRendererFactory.m:
3155 (+[WebTextRendererFactory createSharedFactory]):
3157 2004-12-20 Richard Williamson <rjw@apple.com>
3159 Fixed <rdar://problem/3884448> WebKit should turn on CG local font cache
3161 Enable mutli-tier font caching. We should see a performance boost with this
3166 * WebCoreSupport.subproj/WebTextRendererFactory.m:
3167 (+[WebTextRendererFactory createSharedFactory]):
3169 2004-12-20 Richard Williamson <rjw@apple.com>
3171 Fix image decoding to separately decode image meta data from actual image bits. I
3172 incorrectly consolidated decode of meta data and image bits resulting in a huge
3173 performance regression.
3175 Double size of WebCore cache on lower end machines. On the PLT run on machines with
3176 256MB of memory, too many images were being evicted, causing a re-decode on the PLT.
3177 Upping the lower limit of the cache size ensure that no images are evicted (this
3178 goes hand-in-hand with the change to the minimum object size from 32K to 40K).
3182 * WebCoreSupport.subproj/WebImageData.h:
3183 * WebCoreSupport.subproj/WebImageData.m:
3184 (+[WebImageData initialize]):
3185 (-[WebImageData _commonTermination]):
3186 (-[WebImageData _invalidateImages]):
3187 (-[WebImageData _invalidateImageProperties]):
3188 (-[WebImageData imageAtIndex:]):
3189 (-[WebImageData propertiesAtIndex:]):
3190 (-[WebImageData _cacheImages:allImages:]):
3191 (-[WebImageData decodeData:isComplete:callback:]):
3192 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
3193 * WebView.subproj/WebPreferences.m:
3194 (+[WebPreferences initialize]):
3196 2004-12-20 Richard Williamson <rjw@apple.com>
3198 Fixed build problem caused by change to ImageIO API.
3202 * WebCoreSupport.subproj/WebImageData.m:
3204 2004-12-19 Darin Adler <darin@apple.com>
3208 - some garbage collection fixes
3210 * Misc.subproj/WebNSObjectExtras.h: (WebCFAutorelease): Replaced the old WebNSRetainCFRelease with this
3211 much-easier-to-understand function cribbed from what David Harrison did in WebCore.
3213 * Misc.subproj/WebKitNSStringExtras.m: (+[NSString _web_encodingForResource:]): Use CFRelease here to
3214 get rid of an unnecessary use of WebNSRetainCFRelease.
3215 * Misc.subproj/WebNSURLExtras.m:
3216 (+[NSURL _web_URLWithData:relativeToURL:]): Use WebCFAutorelease instead of WebNSRetainCFRelease and autorelease.
3217 (-[NSURL _web_URLWithLowercasedScheme]): Ditto.
3218 (-[NSString _web_mapHostNameWithRange:encode:makeString:]): Use WebCFAutorelease here; the old code would not
3219 work correctly under GC.
3220 * Plugins.subproj/WebNetscapePluginPackage.m: (+[WebNetscapePluginPackage preferredLocalizationName]):
3221 Use WebCFAutorelease here; the old code would not work correctly under GC.
3223 2004-12-18 Chris Blumenberg <cblu@apple.com>
3225 Fixed: <rdar://problem/3766915> PDF content needs search to work
3227 Reviewed by kevin, john.
3229 * WebView.subproj/WebPDFView.m:
3230 (-[WebPDFView searchFor:direction:caseSensitive:wrap:]): implemented
3231 (-[WebPDFView takeFindStringFromSelection:]): new
3232 (-[WebPDFView jumpToSelection:]): new
3233 (-[WebPDFView validateUserInterfaceItem:]): new
3235 2004-12-17 Richard Williamson <rjw@apple.com>
3237 Make image decoding as lazy as possible for non threaded case; in some cases
3238 can avoid unnecessary decoding work.
3242 * WebCoreSupport.subproj/WebImageData.h:
3243 * WebCoreSupport.subproj/WebImageData.m:
3244 (-[WebImageData imageAtIndex:]):
3245 (-[WebImageData propertiesAtIndex:]):
3246 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
3248 2004-12-16 John Sullivan <sullivan@apple.com>
3252 One of the assertions from my previous checkin fired, so
3253 I made this code more robust.
3255 * WebCoreSupport.subproj/WebBridge.m:
3256 (-[WebBridge _preferences]):
3257 new helper method, returns global preferences if webView is nil,
3258 otherwise returns webView's preferences
3259 (-[WebBridge getObjectCacheSize]):
3260 use new helper method, remove now-unnecessary assert
3261 (-[WebBridge _retrieveKeyboardUIModeFromPreferences:]):
3264 2004-12-16 John Sullivan <sullivan@apple.com>
3268 - fixed <rdar://problem/3913523> Mail needs SPI for adding tooltips to links
3269 - cleaned up some calls to +[WebPreferences standardPreferences] that should
3270 have been using -[WebView preferences]
3272 This adds a (currently SPI-only) new feature that shows the URL of the link
3273 under the mouse in a toolTip. I tested this in Safari, but we're adding this
3274 feature for Mail, and Safari won't use it (unless of course you know the
3275 magic defaults command)
3277 * Plugins.subproj/WebBaseNetscapePluginView.m:
3278 (-[WebBaseNetscapePluginView start]):
3279 use -[WebView preferences] instead of +[WebPreferences standardPreferences]
3281 * WebCoreSupport.subproj/WebBridge.m:
3282 (-[WebBridge getObjectCacheSize]):
3284 (-[WebBridge _retrieveKeyboardUIModeFromPreferences:]):
3287 * WebView.subproj/WebBaseResourceHandleDelegate.m:
3288 (-[WebBaseResourceHandleDelegate willCacheResponse:]):
3291 * WebView.subproj/WebFrame.m:
3292 (-[WebFrame _transitionToCommitted:]):
3294 (-[WebFrame _loadItem:withLoadType:]):
3297 * WebView.subproj/WebHTMLViewInternal.h:
3298 private struct now keeps ivar for cached value of showsURLsInToolTips
3299 so it doesn't have look it up in preferences a zillion times
3301 * WebView.subproj/WebHTMLView.m:
3302 (-[WebHTMLView _updateMouseoverWithEvent:]):
3303 if private->showsURLsInToolTips is true, set the toolTip from the URL.
3304 Fall back to showing the title attribute in case some element has a title
3305 attribute but no URL.
3306 (-[WebHTMLView _mayStartDragAtEventLocation:]):
3307 use -[WebView preferences] instead of +[WebPreferences standardPreferences]
3308 (-[WebHTMLView _resetCachedWebPreferences:]):
3309 get a fresh value for private->showsURLsInToolTips
3310 (-[WebHTMLView initWithFrame:]):
3311 call _resetCachedWebPreferences the first time, and listen for WebPreferencesChanged notifications
3312 (-[WebHTMLView _handleStyleKeyEquivalent:]):
3313 use -[WebView preferences] instead of +[WebPreferences standardPreferences]
3315 * WebView.subproj/WebPreferenceKeysPrivate.h:
3316 added WebKitShowsURLsInToolTipsPreferenceKey
3318 * WebView.subproj/WebPreferences.m:
3319 (+[WebPreferences initialize]):
3320 initialize WebKitShowsURLsInToolTipsPreferenceKey to 0
3321 (-[WebPreferences showsURLsInToolTips]):
3322 return WebKitShowsURLsInToolTipsPreferenceKey value
3323 (-[WebPreferences setShowsURLsInToolTips:]):
3324 set WebKitShowsURLsInToolTipsPreferenceKey value
3326 * WebView.subproj/WebPreferencesPrivate.h:
3327 add declarations for showsURLsInToolTips and setter
3329 * WebView.subproj/WebTextView.m:
3330 (-[WebTextView _preferences]):
3331 new helper method that gets preferences from webView if there is a webView,
3332 otherwise gets global preferences
3333 (-[WebTextView setFixedWidthFont]):
3334 use new helper method rather than always using global preferences
3335 (-[WebTextView initWithFrame:]):
3336 observe WebPreferencesChangedNotification instead of unnecessarily general
3337 NSUserDefaultsChangedNotification
3339 2004-12-14 John Sullivan <sullivan@apple.com>
3343 - rest of WebKit fix for <rdar://problem/3790011> undoable operations all say "Undo"
3344 in the menu, no specific action names
3346 I only know of one loose end currently, which I wrote up as <rdar://problem/3920971> Edit menu
3347 says "Undo Change Attributes" when it should say "Undo Set Color", from font panel
3349 * WebView.subproj/WebHTMLView.m:
3350 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]):
3351 use WebUndoActionSetColor when dragging color swatch
3352 (-[WebHTMLView _applyStyleToSelection:withUndoAction:]):
3353 new WebUndoAction parameter, passed across bridge
3354 (-[WebHTMLView _toggleBold]):
3355 use WebUndoActionSetFont
3356 (-[WebHTMLView _toggleItalic]):
3357 use WebUndoActionSetFont
3358 (-[WebHTMLView pasteFont:]):
3359 use WebUndoActionPasteFont
3360 (-[WebHTMLView changeFont:]):
3361 use WebUndoActionSetFont
3362 (-[WebHTMLView changeAttributes:]):
3363 use WebUndoActionChangeAttributes
3364 (-[WebHTMLView _undoActionFromColorPanelWithSelector:]):
3365 new method, returns WebUndoActionSetBackgroundColor or WebUndoActionSetColor
3366 (-[WebHTMLView _changeCSSColorUsingSelector:inRange:]):
3367 now calls _undoActionFromColorPanelWithSelector
3368 (-[WebHTMLView changeColor:]):
3369 use WebUndoActionSetColor
3370 (-[WebHTMLView _alignSelectionUsingCSSValue:withUndoAction:]):
3371 new WebUndoAction parameter, passed through
3372 (-[WebHTMLView alignCenter:]):
3373 use WebUndoActionCenter
3374 (-[WebHTMLView alignJustified:]):
3375 use WebUndoActionJustify
3376 (-[WebHTMLView alignLeft:]):
3377 use WebUndoActionAlignLeft
3378 (-[WebHTMLView alignRight:]):
3379 use WebUndoActionAlignRight
3380 (-[WebHTMLView subscript:]):
3381 use WebUndoActionAlignSubscript
3382 (-[WebHTMLView superscript:]):
3383 use WebUndoActionAlignSuperscript
3384 (-[WebHTMLView unscript:]):
3385 use WebUndoActionAlignUnscript
3386 (-[WebHTMLView underline:]):
3387 use WebUndoActionAlignUnderline
3389 * WebView.subproj/WebView.m:
3390 (-[WebView setTypingStyle:]):
3391 pass WebUndoActionUnspecified through as new parameter since we don't have any more specific info
3392 (-[WebView applyStyle:]):
3395 2004-12-14 Richard Williamson <rjw@apple.com>
3397 Helper method to get URL of plugin view.
3401 * Misc.subproj/WebNSViewExtras.m:
3402 (-[NSView _webViewURL]):
3404 2004-12-14 Vicki Murley <vicki@apple.com>
3408 <rdar://problem/3855573> Remove reference to "WebScriptMethods" from WebScriptObject.h comments
3410 * Plugins.subproj/WebPlugin.h: changed instances of "WebScriptMethods" to "WebScripting" in this
3411 file as well, as requested in the bug report
3413 2004-12-13 Maciej Stachowiak <mjs@apple.com>
3417 <rdar://problem/3912488> Mail throws an exception after backspacing "away" inline input
3419 * WebView.subproj/WebHTMLView.m:
3420 (-[WebHTMLView setMarkedText:selectedRange:]): Don't try to set a selection if
3421 we end up with no marked text, since that case fails and is unnecessary.
3423 2004-12-14 John Sullivan <sullivan@apple.com>
3427 - WebKit part of plumbing of fix for <rdar://problem/3790011> undoable operations all say "Undo" in the menu,
3428 no specific action names
3430 * WebCoreSupport.subproj/WebBridge.m:
3431 (-[WebBridge nameForUndoAction:]):
3432 renamed from setUndoActionNamePlaceholder, replaced arbitrary integers with enum values, and
3433 handled new "unspecified" case as a fallback
3435 2004-12-13 Richard Williamson <rjw@apple.com>
3437 Fixed <rdar://problem/3887767> LiveConnect doesn't propagate Java exceptions back to JavaScript (prevents security suite from running)
3441 * Plugins.subproj/WebJavaPlugIn.h:
3443 2004-12-13 John Sullivan <sullivan@apple.com>
3447 - fixed <rdar://problem/3744583> Safari can not quit when a webpage has a login sheet
3448 that can't be cancelled.
3450 The proper fix for this would be to change the class of the NSPanel in the nib file.
3451 But since this would require a localization change, I did a run-time hack instead.
3452 I'll file a bug about fixing this when we're out of localization freeze.
3454 * Panels.subproj/WebAuthenticationPanel.m:
3455 (-[WebAuthenticationPanel replacePanelWithSubclassHack]):
3456 new method, creates a new panel that is identical to the original one except that
3457 it's our subclass, and moves all the subviews of the original panel into the new one.
3458 (-[WebAuthenticationPanel loadNib]):
3459 call replacePanelWithSubclassHack
3460 (-[NonBlockingPanel _blocksActionWhenModal:]):
3461 only method of new NSPanel subclass; overrides this SPI to allow the user to quit
3462 when one of these panels/sheets is on-screen
3464 2004-12-10 Richard Williamson <rjw@apple.com>
3466 Fixed <rdar://problem/3898708> REGRESSION (8A314-8A317): World Clock's short hand not displayed (ImageIO problem with PDF?)
3467 Fixed <rdar://problem/3914012> use CG directly for pdf images not ImageIO
3469 Create a PDF document and draw that instead of using ImageIO to create a rasterized image.
3473 * WebCoreSupport.subproj/WebImageData.h:
3474 * WebCoreSupport.subproj/WebImageData.m:
3475 (-[WebImageData setIsPDF:]):
3476 (-[WebImageData isPDF]):
3477 (-[WebImageData dealloc]):
3478 (-[WebImageData decodeData:isComplete:callback:]):
3479 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
3480 (-[WebImageData size]):
3481 (-[WebImageData animate]):
3482 (-[WebImageData _createPDFWithData:]):
3483 (-[WebImageData _PDFDocumentRef]):
3484 (-[WebImageData _PDFDrawInContext:]):
3485 (-[WebImageData _PDFDrawFromRect:toRect:operation:alpha:flipped:context:]):
3486 * WebCoreSupport.subproj/WebImageRenderer.h:
3487 * WebCoreSupport.subproj/WebImageRenderer.m:
3488 (-[WebImageRenderer size]):
3489 (-[WebImageRenderer incrementalLoadWithBytes:length:complete:callback:]):
3490 (-[WebImageRenderer drawImageInRect:fromRect:compositeOperator:context:]):
3493 2004-12-10 John Sullivan <sullivan@apple.com>
3497 - fixed <rdar://problem/3855127> Error while printing w/o sheet, then window is left in a bad state,
3498 if there's no default printer set
3500 * WebView.subproj/WebHTMLView.m:
3501 (-[WebHTMLView beginDocument]):
3502 Our implementation of knowsPageRange puts the WebHTMLView into a special "printing mode". We must
3503 exit the "printing mode" to return to normal behavior. This is normally done in endDocument.
3504 However, it turns out that if there's an exception in [super beginDocument], then endDocument
3505 will not be called (lame-o AppKit API). So, we handle that case by catching the exception and
3506 exiting the "printing mode" in beginDocument when it occurs.
3508 2004-12-09 Richard Williamson <rjw@apple.com>
3510 Fixed <rdar://problem/3905789> Burn Disc image vibrates rapidly
3512 Restrict our support for animated images to GIF. We used to
3513 use presence of more than one image in a resource to determine
3514 if an image should be animated. This caused us to animate icns!
3515 If we ever support any other animated image formats we'll have
3520 * WebCoreSupport.subproj/WebImageData.h:
3521 * WebCoreSupport.subproj/WebImageData.m:
3522 (-[WebImageData shouldAnimate]):
3523 * WebCoreSupport.subproj/WebImageRenderer.m:
3524 (-[WebImageRenderer _startOrContinueAnimationIfNecessary]):
3526 2004-12-09 Richard Williamson <rjw@apple.com>
3528 Make WebPluginDatabase.h private (Dashboard needs SPI).
3530 * WebKit.pbproj/project.pbxproj:
3534 2004-12-09 Chris Blumenberg <cblu@apple.com>
3536 Workaround for this exception being raised during download:
3537 [WebDownload connection:willStopBufferingData:]: selector not recognized
3541 * Misc.subproj/WebDownload.m:
3542 (-[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.
3544 2004-12-08 Richard Williamson <rjw@apple.com>
3546 Fixed <rdar://problem/3911719> REGRESSION: Images no longer scale vertically
3547 Account for scaling correctly when taking into account progressively
3550 Also added implementation of repetition count for animated GIF images.
3551 Also replaced strings with new constants from CFImageProperties.h
3553 Also fixed possible problem with -(NSSize)size implementation,
3554 relevant to Panther only.
3558 * WebCoreSupport.subproj/WebImageData.m:
3559 (-[WebImageData _floatProperty:type:at:]):
3560 (-[WebImageData _frameDurationAt:]):
3561 (-[WebImageData _repetitionCount]):
3562 * WebCoreSupport.subproj/WebImageRenderer.m:
3563 (-[WebImageRenderer size]):
3565 2004-12-08 Chris Blumenberg <cblu@apple.com>
3567 Removed NPN wrappers since these no longer need to be defined to make the QT plug-in work
3568 since 3828925 has been fixed.