1 2005-06-05 Maciej Stachowiak <mjs@apple.com>
5 - link against libWebKitSystemInterface and use the first function in it.
7 * Misc.subproj/WebNSUserDefaultsExtras.m:
8 (-[NSString _webkit_HTTPStyleLanguageCode]): use WKCopyCFLocalizationPreferredName
9 * Plugins.subproj/WebBasePluginPackage.m:
10 (+[WebBasePluginPackage preferredLocalizationName]): ditto
11 * WebKit.pbproj/project.pbxproj: link in libWebKitSystemInterface.a and find headers.
13 2005-06-04 Darin Adler <darin@apple.com>
17 - did some work to move SPI use from WebCore here (to be moved from here into WebKitSystemInterface)
18 - fixed so we can compile ICU includes without Apple Internal headers installed
20 * WebCoreSupport.subproj/WebViewFactory.m:
21 (-[WebViewFactory objectIsTextMarker:]): Added.
22 (-[WebViewFactory objectIsTextMarkerRange:]): Added.
23 (-[WebViewFactory textMarkerWithBytes:length:]): Added.
24 (-[WebViewFactory getBytes:fromTextMarker:length:]): Added.
25 (-[WebViewFactory textMarkerRangeWithStart:end:]): Added.
26 (-[WebViewFactory startOfTextMarkerRange:]): Added.
27 (-[WebViewFactory endOfTextMarkerRange:]): Added.
28 (-[WebViewFactory accessibilityHandleFocusChanged]): Added.
29 (-[WebViewFactory AXUIElementForElement:]): Added.
30 (-[WebViewFactory unregisterUniqueIdForUIElement:]): Added.
32 * WebKit.pbproj/project.pbxproj: Added icu to the header search files.
33 Removed bogus DSTROOT thing from the framework paths (I meant to remove that a while back).
36 * icu/unicode/parseerr.h: Added.
37 * icu/unicode/platform.h: Added.
38 * icu/unicode/uchar.h: Added.
39 * icu/unicode/uconfig.h: Added.
40 * icu/unicode/uidna.h: Added.
41 * icu/unicode/uiter.h: Added.
42 * icu/unicode/umachine.h: Added.
43 * icu/unicode/unorm.h: Added.
44 * icu/unicode/urename.h: Added.
45 * icu/unicode/uscript.h: Added.
46 * icu/unicode/utf.h: Added.
47 * icu/unicode/utf16.h: Added.
48 * icu/unicode/utf8.h: Added.
49 * icu/unicode/utf_old.h: Added.
50 * icu/unicode/utypes.h: Added.
51 * icu/unicode/uversion.h: Added.
53 2005-06-04 Maciej Stachowiak <mjs@apple.com>
57 - replace more use of CGCompositeOperation that I missed.
59 * WebCoreSupport.subproj/WebImageData.m:
60 (-[WebImageData _checkSolidColor:]):
61 (-[WebImageData _fillSolidColorInRect:compositeOperation:context:]):
62 (-[WebImageData tileInRect:fromPoint:context:]):
63 (-[WebImageData _PDFDrawFromRect:toRect:operation:alpha:flipped:context:]):
64 * WebCoreSupport.subproj/WebImageRenderer.m:
65 (-[WebInternalImage _PDFDrawFromRect:toRect:operation:alpha:flipped:]):
67 2005-06-03 Maciej Stachowiak <mjs@apple.com>
71 - replace use of CGCompositeOperation SPI with NSCompositingOperation API
73 * WebCoreSupport.subproj/WebImageData.h:
74 * WebCoreSupport.subproj/WebImageData.m:
75 (-[WebImageData _fillSolidColorInRect:compositeOperation:context:]):
76 (-[WebImageData _PDFDrawFromRect:toRect:operation:alpha:flipped:context:]):
77 * WebCoreSupport.subproj/WebImageRenderer.m:
78 (-[WebImageRenderer drawImageInRect:fromRect:]):
79 (-[WebImageRenderer drawImageInRect:fromRect:compositeOperator:context:]):
80 * WebCoreSupport.subproj/WebImageRendererFactory.m:
81 (-[WebImageRendererFactory CGCompositeOperationInContext:]):
82 (-[WebImageRendererFactory setCGCompositeOperation:inContext:]):
83 (-[WebImageRendererFactory setCGCompositeOperationFromString:inContext:]):
85 2005-06-02 Maciej Stachowiak <mjs@apple.com>
89 - removed dependencies on NSError SPI
91 * Misc.subproj/WebKitErrors.m:
92 (-[NSError _webkit_initWithDomain:code:URL:]):
93 (+[NSError _webkit_errorWithDomain:code:URL:]):
94 (+[NSError _webKitErrorWithDomain:code:URL:]):
95 (+[NSError _webKitErrorWithCode:failingURL:]):
96 (+[NSError _webkit_addErrorsWithCodesAndDescriptions:inDomain:]):
98 * Plugins.subproj/WebNetscapePluginRepresentation.m:
99 * Plugins.subproj/WebNetscapePluginStream.m:
100 * WebCoreSupport.subproj/WebSubresourceClient.m:
101 * WebView.subproj/WebBaseResourceHandleDelegate.m:
102 * WebView.subproj/WebDefaultResourceLoadDelegate.m:
103 * WebView.subproj/WebMainResourceClient.m:
104 (-[WebMainResourceClient didFailWithError:]):
106 2005-06-02 Maciej Stachowiak <mjs@apple.com>
110 - remove use of _cfBundle SPI
112 * Plugins.subproj/WebBasePluginPackage.h:
113 * Plugins.subproj/WebBasePluginPackage.m:
114 (-[WebBasePluginPackage initWithPath:]):
115 (-[WebBasePluginPackage load]):
116 (-[WebBasePluginPackage dealloc]):
117 * Plugins.subproj/WebNetscapePluginPackage.m:
118 (-[WebNetscapePluginPackage openResourceFile]):
119 (-[WebNetscapePluginPackage closeResourceFile:]):
120 (-[WebNetscapePluginPackage initWithPath:]):
121 (-[WebNetscapePluginPackage unloadWithoutShutdown]):
122 (-[WebNetscapePluginPackage load]):
123 * Plugins.subproj/WebPluginPackage.m:
124 (-[WebPluginPackage initWithPath:]):
126 2005-06-02 Maciej Stachowiak <mjs@apple.com>
130 - remove use of NSURLRequest and NSUserDefaults SPI
132 * History.subproj/WebHistoryItem.m:
133 (-[WebHistoryItem _setFormInfoFromRequest:]):
134 * Misc.subproj/WebNSURLRequestExtras.h: Added.
135 * Misc.subproj/WebNSURLRequestExtras.m: Added.
136 (-[NSURLRequest _web_HTTPReferrer]):
137 (-[NSURLRequest _web_HTTPContentType]):
138 (-[NSMutableURLRequest _web_setHTTPContentType:]):
139 (-[NSMutableURLRequest _web_setHTTPReferrer:]):
140 (-[NSMutableURLRequest _web_setHTTPUserAgent:]):
141 * Misc.subproj/WebNSUserDefaultsExtras.h: Added.
142 * Misc.subproj/WebNSUserDefaultsExtras.m: Added.
143 (-[NSString _webkit_HTTPStyleLanguageCode]):
145 (+[NSUserDefaults _ensureAndLockPreferredLanguageLock]):
146 (+[NSUserDefaults _webkit_defaultsDidChange]):
147 (addDefaultsChangeObserver):
148 (+[NSUserDefaults _webkit_addDefaultsChangeObserver]):
149 (+[NSUserDefaults _webkit_preferredLanguageCode]):
150 * Plugins.subproj/WebBaseNetscapePluginView.m:
151 (-[WebBaseNetscapePluginView requestWithURLCString:]):
152 * Plugins.subproj/WebNetscapePluginEmbeddedView.m:
153 (-[WebNetscapePluginEmbeddedView didStart]):
154 * Plugins.subproj/WebNetscapePluginStream.m:
155 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
156 * WebCoreSupport.subproj/WebBridge.m:
157 (-[WebBridge createWindowWithURL:frameName:]):
158 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
159 (-[WebBridge incomingReferrer]):
160 (-[WebBridge createModalDialogWithURL:]):
161 * WebCoreSupport.subproj/WebSubresourceClient.m:
162 (+[WebSubresourceClient startLoadingResource:withRequest:customHeaders:referrer:forDataSource:]):
163 * WebCoreSupport.subproj/WebViewFactory.m:
164 (-[WebViewFactory defaultLanguageCode]):
165 * WebKit.pbproj/project.pbxproj:
166 * WebView.subproj/WebBaseResourceHandleDelegate.m:
167 (-[WebBaseResourceHandleDelegate willSendRequest:redirectResponse:]):
168 * WebView.subproj/WebDefaultContextMenuDelegate.m:
169 (-[WebDefaultUIDelegate openNewWindowWithURL:element:]):
170 * WebView.subproj/WebFrame.m:
171 (-[WebFrame _loadItem:withLoadType:]):
172 (-[WebFrame _addExtraFieldsToRequest:alwaysFromRequest:]):
173 (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
174 (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
175 * WebView.subproj/WebMainResourceClient.m:
176 * WebView.subproj/WebView.m:
177 (-[WebView _cachedResponseForURL:]):
178 (-[WebView userAgentForURL:]):
180 2005-06-02 Maciej Stachowiak <mjs@apple.com>
184 - move private gunk from header to implementation file.
186 * WebCoreSupport.subproj/WebNewKeyGeneration.c:
187 * WebCoreSupport.subproj/WebNewKeyGeneration.h:
189 2005-06-02 Maciej Stachowiak <mjs@apple.com>
193 - remove dependency on NSFileManager and NSCalendarDate private extras from WebFou
195 * History.subproj/WebHistory.m:
196 (-[WebHistoryPrivate findIndex:forDay:]):
197 (-[WebHistoryPrivate arrayRepresentation]):
198 (-[WebHistoryPrivate _loadHistoryGuts:URL:error:]):
199 * Misc.subproj/WebFileDatabase.m:
200 (-[WebFileDatabase _truncateToSizeLimit:]):
201 (-[WebFileDatabase removeAllObjects]):
202 (-[WebFileDatabase performSetObject:forKey:]):
203 (-[WebFileDatabase performRemoveObjectForKey:]):
204 (-[WebFileDatabase open]):
205 * Misc.subproj/WebKitNSStringExtras.m:
206 (-[NSString _webkit_fixedCarbonPOSIXPath]):
207 * Misc.subproj/WebNSCalendarDateExtras.h: Added.
208 * Misc.subproj/WebNSCalendarDateExtras.m: Added.
209 (-[NSCalendarDate _webkit_compareDay:]):
210 * Misc.subproj/WebNSDataExtras.h:
211 * Misc.subproj/WebNSDictionaryExtras.h:
212 * Misc.subproj/WebNSFileManagerExtras.h: Added.
213 * Misc.subproj/WebNSFileManagerExtras.m: Added.
214 (-[NSFileManager _webkit_fileExistsAtPath:isDirectory:traverseLink:]):
215 (-[NSFileManager _webkit_createIntermediateDirectoriesForPath:attributes:]):
216 (-[NSFileManager _webkit_createDirectoryAtPathWithIntermediateDirectories:attributes:]):
217 (-[NSFileManager _webkit_createFileAtPathWithIntermediateDirectories:contents:attributes:directoryAttributes:]):
218 (-[NSFileManager _webkit_removeFileOnlyAtPath:]):
219 (-[NSFileManager _webkit_backgroundRemoveFileAtPath:]):
220 (-[NSFileManager _webkit_backgroundRemoveLeftoverFiles:]):
221 (-[NSFileManager _webkit_carbonPathForPath:]):
222 (-[NSFileManager _webkit_startupVolumeName]):
223 (-[NSFileManager _webkit_pathWithUniqueFilenameForPath:]):
224 * Plugins.subproj/WebBaseNetscapePluginStream.m:
225 * WebKit.pbproj/project.pbxproj:
226 * WebView.subproj/WebHTMLView.m:
227 (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]):
228 * WebView.subproj/WebImageView.m:
229 (-[WebImageView namesOfPromisedFilesDroppedAtDestination:]):
231 2005-06-02 Maciej Stachowiak <mjs@apple.com>
235 - remove dependencies on NSDictionary and NSURL extras
237 * History.subproj/WebHistoryItem.m:
238 (-[WebHistoryItem initFromDictionaryRepresentation:]):
239 * Misc.subproj/WebKitNSStringExtras.h:
240 * Misc.subproj/WebKitNSStringExtras.m:
241 (-[NSString _webkit_hasCaseInsensitiveSuffix:]):
242 (-[NSString _webkit_hasCaseInsensitiveSubstring:]):
243 (-[NSString _webkit_filenameByFixingIllegalCharacters]):
244 * Misc.subproj/WebNSDictionaryExtras.h: Added.
245 * Misc.subproj/WebNSDictionaryExtras.m: Added.
246 (-[NSDictionary _webkit_numberForKey:]):
247 (-[NSDictionary _webkit_intForKey:]):
248 (-[NSDictionary _webkit_stringForKey:]):
249 (-[NSDictionary _webkit_objectForMIMEType:]):
250 (-[NSMutableDictionary _webkit_setObject:forUncopiedKey:]):
251 (-[NSMutableDictionary _webkit_setInt:forKey:]):
252 (-[NSMutableDictionary _webkit_setBool:forKey:]):
253 * Misc.subproj/WebNSPasteboardExtras.m:
254 * Misc.subproj/WebNSURLExtras.h:
255 * Misc.subproj/WebNSURLExtras.m:
256 (-[NSURL _webkit_URLByRemovingFragment]):
257 (-[NSURL _webkit_scriptIfJavaScriptURL]):
258 (-[NSURL _webkit_isFileURL]):
259 (-[NSURL _web_hostString]):
260 (-[NSURL _webkit_suggestedFilenameWithMIMEType:]):
261 * Misc.subproj/WebNSViewExtras.m:
262 * Panels.subproj/WebPanelAuthenticationHandler.m:
263 * Plugins.subproj/WebBaseNetscapePluginStream.m:
264 * Plugins.subproj/WebBaseNetscapePluginView.m:
265 (-[WebBaseNetscapePluginView evaluateJavaScriptPluginRequest:]):
266 (-[WebBaseNetscapePluginView loadPluginRequest:]):
267 (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]):
268 * Plugins.subproj/WebPluginController.m:
269 (-[WebPluginController webPlugInContainerLoadRequest:inFrame:]):
270 * WebCoreSupport.subproj/WebBridge.m:
271 * WebKit.pbproj/project.pbxproj:
272 * WebView.subproj/WebDataSource.m:
273 * WebView.subproj/WebFrame.m:
274 * WebView.subproj/WebFrameView.m:
275 * WebView.subproj/WebHTMLView.m:
276 * WebView.subproj/WebPreferences.m:
277 (-[WebPreferences _setIntegerValue:forKey:]):
278 (-[WebPreferences _setBoolValue:forKey:]):
279 * WebView.subproj/WebResource.m:
280 (-[WebResource _initWithPropertyList:]):
281 (-[WebResource _fileWrapperRepresentation]):
282 * WebView.subproj/WebView.m:
284 2005-06-02 Maciej Stachowiak <mjs@apple.com>
288 - remove dependencies on NSString and NSData extras from Foundation
290 * Misc.subproj/WebKitNSStringExtras.h:
291 * Misc.subproj/WebKitNSStringExtras.m:
292 (-[NSString _webkit_isCaseInsensitiveEqualToString:]):
293 (-[NSString _webkit_hasCaseInsensitivePrefix:]):
294 (-[NSString _webkit_stringByTrimmingWhitespace]):
295 (-[NSString _webkit_stringByCollapsingNonPrintingCharacters]):
296 (-[NSString _webkit_fixedCarbonPOSIXPath]):
297 * Misc.subproj/WebNSDataExtras.h:
298 * Misc.subproj/WebNSDataExtras.m:
299 (-[NSString _web_capitalizeRFC822HeaderFieldName]):
300 (-[NSData _web_isCaseInsensitiveEqualToCString:]):
302 (-[NSData _web_parseRFC822HeaderFields]):
303 (-[NSData _webkit_guessedMIMETypeForXML]):
304 (-[NSData _webkit_guessedMIMEType]):
305 * Misc.subproj/WebNSPasteboardExtras.m:
306 (-[NSPasteboard _web_bestURL]):
307 * Misc.subproj/WebNSURLExtras.h:
308 * Misc.subproj/WebNSURLExtras.m:
309 (applyHostNameFunctionToURLString):
310 (+[NSURL _web_URLWithUserTypedString:relativeToURL:]):
311 (+[NSURL _web_URLWithDataAsString:relativeToURL:]):
312 (-[NSURL _webkit_shouldLoadAsEmptyDocument]):
313 (-[NSString _webkit_isJavaScriptURL]):
314 (-[NSString _webkit_isFileURL]):
315 (-[NSString _webkit_isFTPDirectoryURL]):
316 (-[NSString _web_encodeHostName]):
317 (-[NSString _webkit_rangeOfURLScheme]):
318 (-[NSString _webkit_looksLikeAbsoluteURL]):
319 (-[NSString _webkit_URLFragment]):
320 * Misc.subproj/WebNSViewExtras.m:
321 * Plugins.subproj/WebBaseNetscapePluginView.m:
322 (-[WebBaseNetscapePluginView _postURL:target:len:buf:file:notifyData:sendNotification:allowHeaders:]):
323 * Plugins.subproj/WebPluginDatabase.m:
324 * WebCoreSupport.subproj/WebBridge.m:
325 (-[WebBridge setTitle:]):
326 * WebView.subproj/WebDataSource.m:
327 (-[WebDataSource _setTitle:]):
328 * WebView.subproj/WebFrame.m:
329 (-[WebFrame _loadItem:withLoadType:]):
330 * WebView.subproj/WebPreferences.m:
331 (-[WebPreferences userStyleSheetLocation]):
332 * WebView.subproj/WebView.m:
333 (+[WebView _MIMETypeForFile:]):
335 2005-06-02 Maciej Stachowiak <mjs@apple.com>
339 - first stage of cleaning up SPI usage in WebKit
341 * Carbon.subproj/CarbonUtils.m:
342 * DOM.subproj/WebDOMOperations.m:
343 (-[DOMHTMLLinkElement _subresourceURLs]):
344 (-[DOMHTMLParamElement _subresourceURLs]):
345 * History.subproj/WebHistoryItem.m:
346 (-[WebHistoryItem _setFormInfoFromRequest:]):
347 * Misc.subproj/WebDatabase.m:
348 (-[WebDatabase setObject:forKey:]):
349 (-[WebDatabase removeObjectForKey:]):
350 (-[WebDatabase removeAllObjects]):
351 (-[WebDatabase objectForKey:]):
352 (-[WebDatabase open]):
353 (-[WebDatabase close]):
354 (-[WebDatabase sync]):
355 (-[WebDatabase count]):
356 (-[WebDatabase setSizeLimit:]):
357 * Misc.subproj/WebIconDatabase.m:
358 (-[WebIconDatabase iconForURL:withSize:cache:]):
359 (-[WebIconDatabase _iconForFileURL:withSize:]):
360 * Misc.subproj/WebKitNSStringExtras.h:
361 * Misc.subproj/WebKitNSStringExtras.m:
362 (+[NSString _web_encodingForResource:]):
363 (-[NSString _webkit_isCaseInsensitiveEqualToString:]):
364 * Misc.subproj/WebNSEventExtras.h:
365 * Misc.subproj/WebNSEventExtras.m:
366 (-[NSEvent _web_isTabKeyEvent]):
367 * Misc.subproj/WebNSURLExtras.h:
368 * Misc.subproj/WebNSURLExtras.m:
369 (-[NSURL _webkit_isFileURL]):
370 (-[NSString _webkit_isJavaScriptURL]):
371 (-[NSString _webkit_isFileURL]):
372 * Panels.subproj/WebPanelAuthenticationHandler.m:
373 (-[NSMutableDictionary _webkit_setObject:forUncopiedKey:]):
374 (-[WebPanelAuthenticationHandler enqueueChallenge:forWindow:]):
375 (-[WebPanelAuthenticationHandler startAuthentication:window:]):
376 * Plugins.subproj/WebBaseNetscapePluginView.m:
377 * Plugins.subproj/WebBasePluginPackage.m:
378 (-[WebBasePluginPackage isQuickTimePlugIn]):
379 (-[WebBasePluginPackage isJavaPlugIn]):
380 * Plugins.subproj/WebPluginPackage.m:
381 (-[WebPluginPackage initWithPath:]):
382 * WebCoreSupport.subproj/WebBridge.m:
383 (-[WebBridge canTargetLoadInFrame:]):
384 (-[WebBridge valueForKey:keys:values:]):
385 * WebCoreSupport.subproj/WebGlyphBuffer.m:
386 * WebCoreSupport.subproj/WebImageDecodeItem.h:
387 * WebCoreSupport.subproj/WebImageDecodeItem.m:
388 * WebCoreSupport.subproj/WebImageDecoder.h:
389 * WebCoreSupport.subproj/WebImageDecoder.m:
390 * WebCoreSupport.subproj/WebTextRenderer.h:
392 * WebView.subproj/WebBaseResourceHandleDelegate.m:
393 (-[WebBaseResourceHandleDelegate _canUseResourceForRequest:]):
394 * WebView.subproj/WebDataProtocol.m:
395 (+[WebDataProtocol _webIsDataProtocolURL:]):
396 * WebView.subproj/WebFrame.m:
397 (-[WebFrame _shouldAllowAccessFrom:]):
398 (-[WebFrame reload]):
399 * WebView.subproj/WebHTMLRepresentation.m:
400 (-[WebHTMLRepresentation _isDisplayingWebArchive]):
401 * WebView.subproj/WebMainResourceClient.m:
402 (-[WebMainResourceClient continueAfterContentPolicy:response:]):
403 (-[WebMainResourceClient didReceiveResponse:]):
404 * WebView.subproj/WebPDFView.m:
405 * WebView.subproj/WebView.m:
406 (+[WebView _MIMETypeForFile:]):
408 2005-06-01 Darin Adler <darin@apple.com>
410 Reviewed by John Sullivan.
412 - WebKit part of fix for <rdar://problem/3166090> add IE JavaScript extension window.showModalDialog
414 * WebCoreSupport.subproj/WebBridge.m:
415 (-[WebBridge createModalDialogWithURL:]): Added. Calls the UI delegate, falling back to the generic
416 "create WebView" method.
417 (-[WebBridge canRunModal]): Added. Checks the UI delegate to see if it implements runModal.
418 (-[WebBridge canRunModalNow]): Added. Checks the "inConnectionCallback" field so we can prevent
419 deadlock since we can't do any I/O while inside a connection callback until this aspect of NSURLConnection
421 (-[WebBridge runModal]): Added. Sets "defersCallbacks" on all other web views in the group, then
422 calls runModal on the UI delegate.
424 * WebView.subproj/WebBaseResourceHandleDelegate.h: Added inConnectionCallback class method.
425 * WebView.subproj/WebBaseResourceHandleDelegate.m:
426 (-[WebBaseResourceHandleDelegate connection:willSendRequest:redirectResponse:]): Bump count and then
427 decrement count so we can tell if we are in a callback.
428 (-[WebBaseResourceHandleDelegate connection:didReceiveAuthenticationChallenge:]): Ditto.
429 (-[WebBaseResourceHandleDelegate connection:didCancelAuthenticationChallenge:]): Ditto.
430 (-[WebBaseResourceHandleDelegate connection:didReceiveResponse:]): Ditto.
431 (-[WebBaseResourceHandleDelegate connection:didReceiveData:lengthReceived:]): Ditto.
432 (-[WebBaseResourceHandleDelegate connection:willStopBufferingData:]): Ditto.
433 (-[WebBaseResourceHandleDelegate connectionDidFinishLoading:]): Ditto.
434 (-[WebBaseResourceHandleDelegate connection:didFailWithError:]): Ditto.
435 (-[WebBaseResourceHandleDelegate connection:willCacheResponse:]): Ditto.
436 (+[WebBaseResourceHandleDelegate inConnectionCallback]): Added. Return YES if count is not 0.
438 * WebView.subproj/WebMainResourceClient.m:
439 (-[WebMainResourceClient receivedError:]): Changed to use the method without the connection: parameter
440 in the base class, since we no longer are overriding the connection: version.
441 (-[WebMainResourceClient willSendRequest:redirectResponse:]): Change to override the version without
442 the connection prefix/parameter; now only the base class overrides the actual connection delegate methods.
443 (-[WebMainResourceClient continueAfterContentPolicy:response:]): Ditto.
444 (-[WebMainResourceClient didReceiveResponse:]): Ditto.
445 (-[WebMainResourceClient didReceiveData:lengthReceived:]): Ditto.
446 (-[WebMainResourceClient didFinishLoading]): Ditto.
447 (-[WebMainResourceClient didFailWithError:]): Ditto.
448 (-[WebMainResourceClient loadWithRequestNow:]): Call the method without the connection parameter.
450 * WebView.subproj/WebUIDelegatePrivate.h: Added new SPI here that WebBrowser implements.
452 2005-05-26 Darin Adler <darin@apple.com>
456 - fix build failure from when I removed WebCoreUnicode
458 * WebCoreSupport.subproj/WebTextRenderer.m: Removed import of WebUnicode.h that I missed.
459 (-[WebTextRenderer _convertUnicodeCharacters:length:toGlyphs:]): Switch from our own macros
460 to the ICU macros for surrogate pairs.
461 (widthForNextCharacter): Ditto.
463 2005-05-26 David Harrison <harrison@apple.com>
465 <rdar://problem/4120518> Mail: control-T in an empty message crashes mail
467 * WebCoreSupport.subproj/WebBridge.m:
468 (-[WebBridge issueTransposeCommand]):
469 New, to support transpose in JS.
471 2005-05-26 Darin Adler <darin@apple.com>
473 Reviewed by Richard and Dave Harrison.
475 - eliminate WebCoreUnicode and use ICU directly instead
477 * Misc.subproj/WebKitNSStringExtras.m: (canUseFastRenderer): Use u_charDirection directly.
478 * WebCoreSupport.subproj/WebTextRenderer.m: Removed import of <WebCore/WebCoreUnicode.h>.
479 * WebView.subproj/WebHTMLView.m: (+[WebHTMLView initialize]): Removed call to WebKitInitializeUnicode.
481 * Misc.subproj/WebUnicode.h: Removed.
482 * Misc.subproj/WebUnicode.m: Removed.
483 * Misc.subproj/WebUnicodeTables.m: Removed.
485 * WebKit.pbproj/project.pbxproj: Removed files.
487 2005-05-24 Richard Williamson <rjw@apple.com>
489 Fixed <rdar://problem/4097289> -[WebView elementAtPoint:] failing when WebView is nested and offset
491 Code to determine the correct frame under the window point was
492 converting the point incorrectly.
496 * WebView.subproj/WebView.m:
497 (-[WebView _frameViewAtWindowPoint:]):
499 2005-05-23 John Sullivan <sullivan@apple.com>
503 - WebKit part of <rdar://problem/4125783> WebKit needs a way to control whether textareas are resizable
505 * WebView.subproj/WebPreferencesPrivate.h:
506 added private-for-now getter and setter for new preference
507 * WebView.subproj/WebPreferenceKeysPrivate.h:
508 added private preference key controlling whether textareas are resizable
509 * WebView.subproj/WebPreferences.m:
510 (+[WebPreferences initialize]):
511 initial value of new preference is NO, so other clients' behavior doesn't change
512 (-[WebPreferences textAreasAreResizable]):
514 (-[WebPreferences setTextAreasAreResizable:]):
517 * WebView.subproj/WebView.m:
518 (-[WebView _updateWebCoreSettingsFromPreferences:]):
519 update this new setting in WebCore
521 * English.lproj/StringsNotToBeLocalized.txt:
522 updated for these changes
524 2005-05-23 Chris Blumenberg <cblu@apple.com>
526 Changed type for identifier parameter in WebResourceLoadDelegate-related calls to id from NSString.
530 * WebCoreSupport.subproj/WebBridge.m:
531 (-[WebBridge objectLoadedFromCacheWithURL:response:data:]):
532 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
533 * WebView.subproj/WebFrame.m:
534 (-[WebFrame _opened]):
535 (-[WebFrame _requestFromDelegateForRequest:identifier:error:]):
536 (-[WebFrame _sendRemainingDelegateMessagesWithIdentifier:response:length:error:]):
537 (-[WebFrame _saveResourceAndSendRemainingDelegateMessagesWithRequest:identifier:response:data:error:]):
538 * WebView.subproj/WebFrameInternal.h:
540 2005-05-20 Chris Blumenberg <cblu@apple.com>
542 Fixed: <rdar://problem/4098786> sync. XMLHttpRequest works w/o AllowNetworkAccess key because load delegate is not consulted
544 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.
546 Reviewed by sullivan.
548 * WebCoreSupport.subproj/WebBridge.m:
549 (-[WebBridge objectLoadedFromCacheWithURL:response:data:]): call [WebFrame _requestFromDelegateForRequest:identifier:error:] then
550 [WebFrame _saveResourceAndSendRemainingDelegateMessagesWithRequest:identifier:response:data:error:] so synthetic resource load delegate
551 methods are called and the data is saved as a WebResource for resources in the WebCore cache.
553 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]): call [WebFrame _requestFromDelegateForRequest:identifier:error:],
554 respect its result, do the load and then call [WebFrame _saveResourceAndSendRemainingDelegateMessagesWithRequest:identifier:response:data:error:]
555 for synchronous loads
557 * WebView.subproj/WebFrame.m:
558 (-[WebFrame _opened]): call [WebFrame _requestFromDelegateForRequest:identifier:error:] then
559 [WebFrame _sendRemainingDelegateMessagesWithIdentifier:response:length:error:] so synthetic resource load delegate methods are called
560 for subresrources in the page cache
562 (-[WebFrame _requestFromDelegateForRequest:identifier:error:]): new, was part of the removed _sendResourceLoadDelegateMessagesForURL:::
563 This method calls identifierForInitialRequest and willSendRequest.
565 (-[WebFrame _sendRemainingDelegateMessagesWithIdentifier:response:length:error:]): new, was part of the removed _sendResourceLoadDelegateMessagesForURL:::
566 This method calls the remaining resource load delegate messages.
568 (-[WebFrame _saveResourceAndSendRemainingDelegateMessagesWithRequest:identifier:response:data:error:]): new, saves the resource and calls
569 [WebFrame _sendRemainingDelegateMessagesWithIdentifier:response:length:error:]
571 * WebView.subproj/WebFrameInternal.h:
573 2005-05-17 Chris Blumenberg <cblu@apple.com>
575 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
579 * WebCoreSupport.subproj/WebBridge.m:
580 (-[WebBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]): pass the passed referrer to canLoadURL::: not [self referrer]
581 (-[WebBridge postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]): ditto
582 * WebView.subproj/WebTextView.m:
583 (-[WebTextView clickedOnLink:atIndex:]): call the loadURL bridge method so that security checks are made, command/option clicks work, policy delegate is consulted etc.
585 2005-05-17 Chris Blumenberg <cblu@apple.com>
587 Fixed: <rdar://problem/4120255> web archives on remote servers can be viewed directly (with major security issues); should download instead
591 * WebView.subproj/WebBaseResourceHandleDelegate.h:
592 * WebView.subproj/WebMainResourceClient.m:
593 (-[WebMainResourceClient continueAfterContentPolicy:response:]): if the WebKit client has chosen to "use" a remote web archive, stop the load with an error
595 2005-05-16 Darin Adler <darin@apple.com>
597 - attempt to get things building under "Saffron" development tools
599 * WebKit.pbproj/project.pbxproj: Use BUILT_PRODUCTS_DIR instead of SYMROOT.
601 2005-05-13 John Sullivan <sullivan@apple.com>
605 - fixed <rdar://problem/4093306> Safari crashes if Esc key is held down during series
606 of authentication sheets
608 * Panels.subproj/WebAuthenticationPanel.m:
609 (-[WebAuthenticationPanel cancel:]):
610 retain and autorelease self. This is a workaround for an AppKit key-handling issue, which I wrote up as:
611 <rdar://problem/4118422> Key-down events can be sent to a closed window if a key is kept pressed down
613 2005-05-12 John Sullivan <sullivan@apple.com>
617 - rolled in changes from experimental-ui-branch to support resizable textareas
618 and find-as-you-type and confirming unsubmitted form changes. The files/functions
619 modified are listed just below. After that are the ChangeLog comments from the branch.
621 * WebCoreSupport.subproj/WebBridge.m:
622 (-[WebBridge textDidChange:]):
623 * WebView.subproj/WebFormDelegate.h:
624 * WebView.subproj/WebFormDelegate.m:
625 (-[WebFormDelegate textDidChange:inFrame:]):
626 * WebView.subproj/WebHTMLView.m:
627 (-[WebHTMLView maintainsInactiveSelection]):
628 (-[WebHTMLView searchFor:direction:caseSensitive:wrap:]):
629 (-[WebHTMLView _searchFor:direction:caseSensitive:wrap:findInSelection:]):
630 * WebView.subproj/WebView.m:
631 (-[WebView _searchFor:direction:caseSensitive:wrap:findInSelection:]):
632 (-[WebView searchFor:direction:caseSensitive:wrap:]):
633 (-[WebView makeTextStandardSize:]):
634 (-[WebView maintainsInactiveSelection]):
635 * WebView.subproj/WebViewPrivate.h:
637 2005-04-18 John Sullivan <sullivan@apple.com>
639 WebKit support for notifying a form delegate when a
640 textarea's contents have changed (as opposed to a
641 textfield, which was already handled).
645 * WebView.subproj/WebFormDelegate.h:
646 * WebView.subproj/WebFormDelegate.m:
647 (-[WebFormDelegate textDidChange:inFrame:]):
648 new form delegate method
650 * WebCoreSupport.subproj/WebBridge.m:
651 (-[WebBridge textDidChange:]):
652 new method, calls through to form delegate
654 2005-04-11 John Sullivan <sullivan@apple.com>
656 Fixed inability to wrap around in Find in Page
658 * WebView.subproj/WebView.m:
659 (-[WebView _searchFor:direction:caseSensitive:wrap:findInSelection:]):
660 changed wrapFlag from NO to YES on two lines (copy/paste error)
662 2005-04-07 John Sullivan <sullivan@apple.com>
664 WebKit support for find-as-you-type. Needed an additional parameter on
665 a method from WebDocumentSearching protocol. Since that's a public protocol,
666 I couldn't just add the parameter. For now I hacked it with an undeclared
667 internal method that's discovered via respondsToSelector. Probably the right
668 long-term approach is to deprecate the WebDocumentSearching protocol and introduce
669 a replacement that has a more flexible set of parameters for possible future
672 Reviewed by Dave Hyatt.
674 * WebView.subproj/WebHTMLView.m:
675 (-[WebHTMLView searchFor:direction:caseSensitive:wrap:]):
676 now calls new one-more-parameter version passing NO for new parameter to match old behavior
677 (-[WebHTMLView _searchFor:direction:caseSensitive:wrap:findInSelection:]):
678 new method, adds findInSelection parameter and passes it through to bridge
680 * WebView.subproj/WebView.m:
681 (-[WebView searchFor:direction:caseSensitive:wrap:]):
682 now calls new one-more-parameter version passing NO for new parameter to match old behavior
683 (-[WebView _searchFor:direction:caseSensitive:wrap:findInSelection:]):
684 new method, adds findInSelection parameter and passes it through
686 2005-04-07 John Sullivan <sullivan@apple.com>
688 WebKit support to allow clients to control whether the selection is still
689 drawn when the first responder is elsewhere. Formerly this was hardwired
690 to be true only when -[WebView isEditable] was true.
694 * WebView.subproj/WebHTMLView.m:
695 (-[WebHTMLView maintainsInactiveSelection]):
696 check [WebView maintainsInactiveSelection] rather than just [WebView isEditable]
698 * WebView.subproj/WebViewPrivate.h:
699 * WebView.subproj/WebView.m:
700 (-[WebView maintainsInactiveSelection]):
701 new method for clients to override, returns -[self isEditable]
704 2005-05-10 John Sullivan <sullivan@apple.com>
708 - WebKit support for <rdar://problem/3795701> Menu item/keyboard shortcut to
709 restore text zoom to normal
711 * WebView.subproj/WebView.m:
712 (-[WebView validateUserInterfaceItem:]):
713 validate makeTextStandardSize by calling canMakeTextStandardSize
714 (-[WebView canMakeTextStandardSize]):
715 new method, returns YES unless text size multiplier is currently 1
716 (-[WebView makeTextStandardSize:]):
717 new method, sets text size multiplier to 1
719 * WebView.subproj/WebViewPrivate.h:
720 add makeTextStandardSize: and canMakeTextStandardSize to pending public category
722 2005-05-10 John Sullivan <sullivan@apple.com>
726 - fixed <rdar://problem/4067981> Mail places RTF flavor before RTFD flavor when dragging
727 mixed image/text content.
729 * WebView.subproj/WebHTMLView.m:
730 (+[WebHTMLView _selectionPasteboardTypes]):
731 put RTFD type before RTF type in array of types to declare
733 2005-05-09 Chris Blumenberg <cblu@apple.com>
735 Turned assertion into error message to prevent crash when encountering this bug:
736 <rdar://problem/4067625> connection:willCacheResponse: is called inside of [NSURLConnection initWithRequest:delegate:]
738 * WebView.subproj/WebBaseResourceHandleDelegate.h:
739 * WebView.subproj/WebBaseResourceHandleDelegate.m:
740 (-[WebBaseResourceHandleDelegate loadWithRequest:]): set flag to track when we're initializing the connection
741 (-[WebBaseResourceHandleDelegate connection:willCacheResponse:]): log error
743 2005-05-09 Darin Adler <darin@apple.com>
745 * Makefile.am: Don't set up PBXIntermediatesDirectory explicitly;
746 Not needed to make builds work, spews undesirable error messages too.
748 2005-05-06 Darin Adler <darin@apple.com>
752 - make building multiple trees with make work better
754 * Makefile.am: Set up Xcode build directory before invoking xcodebuild.
756 2005-05-04 Darin Adler <darin@apple.com>
758 Reviewed by Dave Hyatt.
762 * WebKit.pbproj/project.pbxproj: Set deployment target to 10.3 in the build styles.
763 When built without a build style (by Apple B&I) we want to get the target from the
764 environment. But when built with a build style (by Safari engineers and others), we want
765 to use 10.3. Because our deployment target was not set, we ran into this bug:
767 <rdar://problem/4108717> CTFontGetGlyphWithName doesn't work with some strings
769 * Makefile.am: Took out extra parameters that make command-line building different from
770 Xcode building. Now that this is fixed, you should not get a full rebuild if you switch
771 from command line to Xcode or back.
773 2005-05-04 Chris Blumenberg <cblu@apple.com>
776 <rdar://problem/4078417> REGRESSION (125-412): MLB gameday page doesn't update (Flash)
777 <rdar://problem/4072280> XMLHttpRequest calls onReadyStateChange callback with bogus status value
781 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.
783 * WebCoreSupport.subproj/WebBridge.m:
784 (-[WebBridge objectLoadedFromCacheWithURL:response:data:]): call new [WebResource _initWithData:URL:response:]
785 * WebView.subproj/WebBaseResourceHandleDelegate.m:
786 (-[WebBaseResourceHandleDelegate _canUseResourceWithResponse:]): new, checks response cache directives
787 (-[WebBaseResourceHandleDelegate loadWithRequest:]): call _canUseResourceWithResponse:
788 (-[WebBaseResourceHandleDelegate saveResource]): call new [WebResource _initWithData:URL:response:]
789 * WebView.subproj/WebResource.m:
790 (-[WebResourcePrivate dealloc]):
791 (-[WebResource initWithData:URL:MIMEType:textEncodingName:frameName:]): call renamed _initWithData:URL:MIMEType:textEncodingName:frameName:response:copyData:
792 (-[WebResource initWithCoder:]): decode the NSURLReponse
793 (-[WebResource encodeWithCoder:]): encode the NSURLReponse
794 (-[WebResource _initWithData:URL:MIMEType:textEncodingName:frameName:response:copyData:]): take the NSURLReponse
795 (-[WebResource _initWithData:URL:response:]): new
796 (-[WebResource _initWithPropertyList:]): decode the NSURLReponse
797 (-[WebResource _propertyListRepresentation]): encode the NSURLReponse
798 (-[WebResource _response]): return ivar if we have one
799 * WebView.subproj/WebResourcePrivate.h:
801 2005-05-03 David Hyatt <hyatt@apple.com>
803 Fix object element support so that fallback content works. With this change Safari passes the Acid2 test.
807 * WebCoreSupport.subproj/WebBridge.m:
808 (-[WebBridge determineObjectFromMIMEType:URL:]):
809 * WebView.subproj/WebDataSource.m:
810 (-[WebDataSource _receivedMainResourceError:complete:]):
811 * WebView.subproj/WebMainResourceClient.m:
812 (-[WebMainResourceClient continueAfterContentPolicy:response:]):
814 2005-05-03 Darin Adler <darin@apple.com>
816 * WebView.subproj/WebUIDelegate.h: Fixed incorrect comment.
819 2005-05-01 Darin Adler <darin@apple.com>
821 - move to Xcode native targets and stop checking in generated files
823 * WebKit.pbproj/project.pbxproj: Updated to use native targets and generate all the generated
824 files, so we don't have to check them in any more.
825 * Info.plist: Added. Native targets use a separate file for this.
827 * Plugins.subproj/npapi.m: Fixed import statement to get npapi.h from <WebKit/> rather than current directory.
829 * Makefile.am: Removed timestamp cleaning rules since we don't use it any more.
831 * .cvsignore: Removed various timestamp files.
833 * DOM.subproj/DOM-compat.h: Removed.
834 * DOM.subproj/DOM.h: Removed.
835 * DOM.subproj/DOMCSS.h: Removed.
836 * DOM.subproj/DOMCore.h: Removed.
837 * DOM.subproj/DOMEvents.h: Removed.
838 * DOM.subproj/DOMExtensions.h: Removed.
839 * DOM.subproj/DOMHTML.h: Removed.
840 * DOM.subproj/DOMPrivate.h: Removed.
841 * DOM.subproj/DOMRange.h: Removed.
842 * DOM.subproj/DOMStylesheets.h: Removed.
843 * DOM.subproj/DOMTraversal.h: Removed.
844 * DOM.subproj/DOMViews.h: Removed.
845 * Plugins.subproj/WebScriptObject.h: Removed.
846 * Plugins.subproj/npapi.h: Removed.
847 * Plugins.subproj/npruntime.h: Removed.
848 * copy-webcore-files-to-webkit: Removed.
849 * embed-frameworks.sh: Removed.
850 * force-clean-timestamp: Removed.
852 2005-04-28 Darin Adler <darin@apple.com>
856 - fixed problems preventing us from compiling with gcc 4.0
858 * WebKit.pbproj/project.pbxproj: Removed -fobjc-exceptions because I can't figure out an easy
859 way to pass it only when compiling Objective-C/C++. Removed -Wmissing-prototypes from
860 WARNING_CPLUSPLUSFLAGS since it's now a C-only warning.
862 * History.subproj/WebHistoryItem.m: (-[WebHistoryItem pageCache]): Changed return type
863 to match the declaration.
864 * WebCoreSupport.subproj/WebBridge.m: (-[WebBridge _retrieveKeyboardUIModeFromPreferences:]):
865 Fixed a BOOL that should have been a Boolean.
866 * WebCoreSupport.subproj/WebTextRenderer.m: Removed redundant copy of ROUND_TO_INT, also in
868 (-[WebTextRenderer _computeWidthForSpace]): Had to add cast because of difference in type of
869 ROUND_TO_INT vs. CEIL_TO_INT.
870 (pathFromFont): Added a cast to convert UInt8 * to char *.
871 * WebView.subproj/WebFrameView.m:
872 (-[WebFrameView _setDocumentView:]): Fixed parameter type to match the declaration.
873 (-[WebFrameView documentView]): Fixed return type to match the declaration.
874 * WebView.subproj/WebHTMLView.m:
875 (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
876 Initialized a variable to quiet an incorrect gcc 4.0 uninitialized variable warning.
877 (-[WebHTMLView deleteToMark:]): Switched from @try style to NS_DURING style of exception handler
878 because we can't pass -fobjc-exceptions just to Objective-C at the moment (see above).
879 (-[WebHTMLView selectToMark:]): Ditto.
880 (-[WebHTMLView swapWithMark:]): Ditto.
882 2005-04-27 John Sullivan <sullivan@apple.com>
884 Reviewed by Dave Harrison.
886 - fixed <rdar://problem/3547489> pop-up window blocking preference and
887 menu item can easily get out of sync.
889 * WebView.subproj/WebPreferences.m:
890 (-[WebPreferences _setStringValue:forKey:]):
891 save local value before setting value in NSUserDefaults, so clients reacting to NSUserDefaults
892 change notification but calling back on WebPreferences API will see the updated value.
893 (-[WebPreferences _setIntegerValue:forKey:]):
895 (-[WebPreferences _setBoolValue:forKey:]):
898 2005-04-26 Richard Williamson <rjw@apple.com>
900 Fixed <rdar://problem/4098713> Scripting API is incompatible with Mozilla
904 * Plugins.subproj/npfunctions.h:
905 * Plugins.subproj/npruntime.h:
907 2005-04-26 Darin Adler <darin@apple.com>
911 - fixed <rdar://problem/3655817> please add support for mouse wheel events and the onmousewheel handler
913 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView scrollWheel:]): Call sendScrollWheelEvent: method
914 instead of the old scrollOverflowWithScrollWheelEvent: (just a name change).
916 2005-04-18 Darin Adler <darin@apple.com>
920 - fixed <rdar://problem/4092614> REGRESSION (Tiger): progressively loaded background images "scroll around" instead of just appearing
922 * WebCoreSupport.subproj/WebImageData.m:
923 (-[WebImageData _imageSourceOptions]): Moved a global inside this function, since it's only used here.
924 (-[WebImageData _cacheImages:allImages:]): Fixed a sizeof that was getting the size of the wrong thing.
925 (-[WebImageData _isSizeAvailable]): Used calloc in a more consistent way.
926 (drawPattern): Removed an unneeded cast.
927 (-[WebImageData tileInRect:fromPoint:context:]): Here's the actual bug fix. Don't use the image size
928 when deciding whether the image needs to be tiled as a pattern nor when creating the pattern: in both
929 cases, use the tile size. The old way was wrong, and the new way works perfectly. Also removed uneeded
930 error message when the image is not yet loaded enough to create a CGImageRef for it -- it's fine to
931 draw nothing in that case.
933 2005-04-14 John Sullivan <sullivan@apple.com>
937 * WebView.subproj/WebBaseResourceHandleDelegate.m:
938 (-[WebBaseResourceHandleDelegate connection:willCacheResponse:]):
939 Beefed up assertion that's been bugging me and Chris to include
940 the two troublemaking values.
942 2005-04-05 David Hyatt <hyatt@apple.com>
944 Fix for 4077106, wheel scroll amount smaller in Tiger. All along wheeling should have been 4x the default
945 line height of 10 (just as arrow keys did). Scroll arrows should have done this too for scroll views (they did
946 already for overflow sections). This patch puts the override into the scrollview itself, and removes the
947 multipliers in the private frame methods.
951 * WebView.subproj/WebFrameView.m:
952 (-[WebFrameView _verticalKeyboardScrollDistance]):
953 (-[WebFrameView initWithFrame:]):
954 (-[WebFrameView _horizontalKeyboardScrollDistance]):
958 2005-03-31 Chris Blumenberg <cblu@apple.com>
960 Fixed: <rdar://problem/4070729> REGRESSION (125-311, Panther-only?): Safari crashes while reloading "My eBay" page
964 * WebView.subproj/WebBaseResourceHandleDelegate.m:
965 (-[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
971 2005-03-23 Richard Williamson <rjw@apple.com>
973 Use Patti Yeh's hack to determine the appropriate rectangle
974 to place the "associated word" window.
975 If there is no marked text firstRectForCharacterRange: will
976 use the selected range to determine the returned rectangle,
977 ignoring the input range. This is the fix from
978 4029491 that I previously backed out.
982 * WebView.subproj/WebHTMLView.m:
983 (-[WebHTMLView firstRectForCharacterRange:]):
985 2005-03-23 Richard Williamson <rjw@apple.com>
987 Fixed <rdar://problem/4062490> REGRESSION (WebKit-408): no subresources reported in Activity window after going back at hrweb.apple.com
989 Stop collecting subresource responses after the document
990 had loaded, not after it has been opened.
994 * WebView.subproj/WebFrame.m:
995 (-[WebFrame _setState:]):
996 (-[WebFrame _opened]):
998 2005-03-21 Maciej Stachowiak <mjs@apple.com>
1002 <rdar://problem/4051145> The QuickTime Cocoa plug-in needs an SPI that it can call to check for URL policy
1004 * Plugins.subproj/WebPluginContainerCheck.h: Added.
1005 * Plugins.subproj/WebPluginContainerCheck.m: Added this new helper class to encapsulate
1006 an async plugin navigation check.
1007 (+[WebPluginContainerCheck checkWithRequest:target:resultObject:selector:controller:]): Convenience allocator that gives autoreleased value.
1008 (-[WebPluginContainerCheck initWithRequest:target:resultObject:selector:controller:]): Initializer.
1009 (-[WebPluginContainerCheck finalize]): Just assert that we're done, it would
1010 be bad to deallocate this object while request is still outstanding.
1011 (-[WebPluginContainerCheck dealloc]): Ditto.
1012 (-[WebPluginContainerCheck _continueWithPolicy:]): Method to continue after async
1014 (-[WebPluginContainerCheck _isDisallowedFileLoad]): Do "file: URL from remote content"
1016 (-[WebPluginContainerCheck _actionInformationWithURL:]): Helper to make action
1018 (-[WebPluginContainerCheck _askPolicyDelegate]): Call policy delegate to let
1019 the app decide if this load is allowed.
1020 (-[WebPluginContainerCheck start]): Start the check.
1021 (-[WebPluginContainerCheck cancel]): Cancel a check in progress.
1022 * Plugins.subproj/WebPluginController.h:
1023 * Plugins.subproj/WebPluginController.m:
1024 (-[WebPluginController initWithDocumentView:]): Initialize new _checksInProgress field.
1025 (-[WebPluginController _webPluginContainerCancelCheckIfAllowedToLoadRequest:]): Implement
1026 this new SPI method.
1027 (-[WebPluginController _cancelOutstandingChecks]): New helper to make sure to cancel
1028 all outstanding requests when destroying all plugins.
1029 (-[WebPluginController destroyAllPlugins]): Call above helper.
1030 (-[WebPluginController _webPluginContainerCheckIfAllowedToLoadRequest:inFrame:resultObject:selector:]): Implement this new plug-in SPI method.
1031 (-[WebPluginController bridge]): New helper method.
1032 (-[WebPluginController webView]): New helper method.
1033 * WebView.subproj/WebPolicyDelegatePrivate.h: Add new navigation
1034 type WebNavigationTypePlugInRequest.
1035 * WebKit.pbproj/project.pbxproj: Add new files.
1036 * WebView.subproj/WebDefaultPolicyDelegate.m:
1037 (-[WebDefaultPolicyDelegate webView:decidePolicyForNavigationAction:request:frame:decisionListener:]): Don't open externally on a plug-in request.
1039 2005-03-23 Richard Williamson <rjw@apple.com>
1041 Fixed <rdar://problem/4053515> REGRESSION (Mail): Kotoeri input method reconversion does not work in WebViews
1043 We now use actual document NSRanges to represent both marked text
1044 ranges and selection ranges.
1046 Reviewed by Ken Kocienda.
1048 * WebView.subproj/WebHTMLView.m:
1049 (-[WebHTMLView validAttributesForMarkedText]):
1050 (-[WebHTMLView firstRectForCharacterRange:]):
1051 (-[WebHTMLView selectedRange]):
1052 (-[WebHTMLView markedRange]):
1053 (-[WebHTMLView _selectMarkedText]):
1054 (-[WebHTMLView setMarkedText:selectedRange:]):
1058 2005-03-22 Darin Adler <darin@apple.com>
1060 * English.lproj/StringsNotToBeLocalized.txt: Updated for recent changes.
1064 2005-03-20 Maciej Stachowiak <mjs@apple.com>
1068 <rdar://problem/4060020> Add stub version of security SPI for QuickTime plug-in so QuickTime team has something to compile and link against
1070 * Plugins.subproj/WebPluginContainerPrivate.h: Added.
1071 * Plugins.subproj/WebPluginController.m:
1072 (-[WebPluginController _webPluginContainerCheckIfAllowedToLoadRequest:inFrame:resultObject:selector:]):
1073 (-[WebPluginController _webPluginContainerCancelCheckIfAllowedToLoadRequest:]):
1074 * WebKit.pbproj/project.pbxproj:
1076 2005-03-19 David Harrison <harrison@apple.com>
1080 <rdar://problem/4059479> Misspelling underline does underline the whole word, could go farther to the right
1082 * WebCoreSupport.subproj/WebTextRenderer.m:
1083 (-[WebTextRenderer misspellingLinePatternGapWidth]):
1084 (-[WebTextRenderer drawLineForMisspelling:withWidth:]):
1085 Consider that the last pixel in the underline dot pattern is transparent.
1087 2005-03-19 Darin Adler <darin@apple.com>
1089 Reviewed by Maciej (a while back).
1091 - fixed <rdar://problem/4059323> local-file security check is allowing plug-in streams, but must not
1093 * Plugins.subproj/WebNetscapePluginStream.m:
1094 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
1095 Roll out change I made on 3-13. That change is needed for subresource, but not for plug-in streams.
1096 For plug-in streams it's too risky, and leaves a serious security hole open.
1098 2005-03-19 Darin Adler <darin@apple.com>
1100 Reviewed by Ken and John.
1102 - fixed <rdar://problem/4059123> REGRESSION (402-403): deleteWordForward: and deleteWordBackward: start deleting single characters after the first delete
1104 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]):
1105 Fixed backwards logic in here and added missing check. Set action to one of the two typing actions only
1106 if isTypingAction is YES.
1108 2005-03-19 David Harrison <harrison@apple.com>
1110 Reviewed by me (written by Patti Yeh).
1112 <rdar://problem/4029491> <TCIM> CangJie: the candidate window appears at the top left hand corner during typing in Mail and iChat
1114 * WebView.subproj/WebHTMLView.m:
1115 (-[WebHTMLView firstRectForCharacterRange:]):
1116 Use selected range if there is no marked range.
1120 2005-03-18 David Harrison <harrison@apple.com>
1124 <rdar://problem/3584942> AX: Safari Accessibility parent-child mismatch
1126 * WebView.subproj/WebFrameView.m:
1127 (-[WebFrameView webCoreBridge]):
1128 New to conform to WebCoreBridgeHolder protocol.
1130 2005-03-18 Richard Williamson <rjw@apple.com>
1132 Fixed <rdar://problem/4057004> Data from XMLHTTPRequest is never dealloced
1134 WebDataSource keeps an array of all the NSURLResponses associated
1135 with the load for a page. This is used to playback delegate messages
1136 when loading from the page cache. However, after the document
1137 has completed it's initial load, we continue to keep track of responses.
1138 So, this has the consequence of keeping all the responses for a page
1139 around for the life of the page. NSURLResponses are now very
1140 heavy. They indirectly reference the resource data (via the
1141 download assessment dictionary). This fix will keep
1142 references to responses around for those resources loaded during initial
1143 page load, but not after that point.
1147 * WebView.subproj/WebDataSource.m:
1148 (-[WebDataSource _addResponse:]):
1149 (-[WebDataSource _stopRecordingResponses]):
1150 * WebView.subproj/WebDataSourcePrivate.h:
1151 * WebView.subproj/WebFrame.m:
1152 (-[WebFrame _opened]):
1154 2005-03-18 Ken Kocienda <kocienda@apple.com>
1160 <rdar://problem/4053729> Copy/paste of page with frames into Blot or Mail does nothing and loses insertion point
1162 * WebView.subproj/WebHTMLView.m:
1163 (-[WebHTMLView _selectedArchive]): Wrap frameset documents in an iframe, so they can be pasted into
1164 existing documents which will have a body or frameset of their own.
1168 2005-03-17 Richard Williamson <rjw@apple.com>
1170 Fixed <rdar://problem/4055562> REGRESSION (Tiger): Safari doesn't draw progressively-loaded JPEGs (www.theregister.co.uk, www.titantalk.com)
1172 Anothe side effect of lazy loading of image meta data. We now
1173 don't cache image size until size meta data is actually available.
1177 * WebCoreSupport.subproj/WebImageData.m:
1178 (-[WebImageData size]):
1180 2005-03-16 David Harrison <harrison@apple.com>
1184 <rdar://problem/4048506> Deleting from beginning of editable div deletes other document elements
1186 Also changed WebCore.
1188 * WebView.subproj/WebHTMLView.m:
1189 (-[WebHTMLView _shouldDeleteRange:]):
1190 Added call to new bridge method canDeleteRange.
1192 2005-03-16 Ken Kocienda <kocienda@apple.com>
1198 <rdar://problem/4042935> undo doesn't work properly during inline input
1200 * WebView.subproj/WebHTMLView.m:
1201 (-[WebHTMLView setMarkedText:selectedRange:]): Call new -[WebCoreBridge replaceMarkedTextWithText:] instead of
1202 -[WebCoreBridge replaceSelectionWithText:selectReplacement:smartReplace:]. The former call was just added in
1203 order to provide a better mapping of international text input onto the typing command/undo design.
1205 2005-03-15 Richard Williamson <rjw@apple.com>
1207 Fixed <rdar://problem/4040321> Exception: Someone's trying to encode a WebDataRequestParameters instance
1209 If client mutates request use new Foundation SPI to address remove applewebdata properties from request.
1211 Reviewed by Ken Kocienda.
1213 * WebView.subproj/WebBaseResourceHandleDelegate.m:
1214 (-[WebBaseResourceHandleDelegate willSendRequest:redirectResponse:]):
1215 * WebView.subproj/WebDataProtocol.h:
1216 * WebView.subproj/WebDataProtocol.m:
1217 (+[NSURLRequest _webDataRequestPropertyKey]):
1219 2005-03-15 Ken Kocienda <kocienda@apple.com>
1225 <rdar://problem/4052642> Each delete keystroke is in its own undo group; not included in undo group with other typing
1227 Calling -[WebCore setSelectedDOMRange:range affinity:] had the result of "closing" any active set of typing
1228 keystrokes grouped together in a single undo operation. My change on 27 Jan to route delete keystrokes
1229 through _deleteRange:killRing:... made this feature regress. Previous to that change, the backwards delete
1230 key went through separate code that is no longer in the tree that did not set the selection in the way
1233 The solution is to add an extra argument to the set-selection call. The WebCoreBridge now offers this method:
1234 -[WebCore setSelectedDOMRange:range affinity:closeTyping:]. Now, callers must indicate whether setting the
1235 selection will act to close typing or not. The code changes below all add this new argument with the
1236 appropriate value for closeTyping.
1238 * WebView.subproj/WebHTMLView.m:
1239 (-[WebHTMLView _deleteRange:killRing:prepend:smartDeleteOK:deletionAction:]): Passes NO for closeTyping when
1240 deletionAction is deleteKeyAction or forwardDeleteKeyAction; YES when deleteSelectionAction.
1241 (-[WebHTMLView _expandSelectionToGranularity:]): Passes YES for closeTyping.
1242 (-[WebHTMLView selectToMark:]): Passes YES for closeTyping.
1243 (-[WebHTMLView swapWithMark:]): Passes YES for closeTyping.
1244 (-[WebHTMLView transpose:]): Passes YES for closeTyping.
1245 (-[WebHTMLView _selectMarkedText]): Passes NO for closeTyping.
1246 (-[WebHTMLView _selectRangeInMarkedText:]): Passes NO for closeTyping.
1247 * WebView.subproj/WebView.m:
1248 (-[WebView setSelectedDOMRange:affinity:]): Passes YES for closeTyping.
1250 2005-03-14 Richard Williamson <rjw@apple.com>
1252 Fix <rdar://problem/4051389> 8A413: gifs animating too fast
1256 Match Mozilla's policy for minimum frame duration, which is somewhat odd:
1258 <= 0.01 sec use .1 sec, otherwise use specified duration.
1260 * WebCoreSupport.subproj/WebImageData.m:
1261 (-[WebImageData _frameDurationAt:]):
1263 2005-03-14 Darin Adler <darin@apple.com>
1265 Reviewed by Harrison.
1267 - fixed <rdar://problem/4049776> Seed: Mail: Disable spellcheck leaves red artifacts
1269 * WebView.subproj/WebFrameInternal.h: Added _unmarkAllMisspellings.
1270 * WebView.subproj/WebFrame.m: (-[WebFrame _unmarkAllMisspellings]): Added.
1271 Calls unmarkAllMisspellings on the bridge and self and all subframes.
1273 * WebView.subproj/WebView.m: (-[WebView setContinuousSpellCheckingEnabled:]):
1274 Call _unmarkAllMisspellings on the main frame when turning continuous spell checking off.
1276 2005-03-14 Richard Williamson <rjw@apple.com>
1278 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
1280 The Acrobat application triggers loads of new documents in it's policy delegate. This
1281 ultimately causes the WebHTMLView to be released before their event handlers have
1282 returned. To bullet proof against this case we retain/release self before passing
1283 the event on for further handling.
1287 * WebView.subproj/WebHTMLView.m:
1288 (-[WebHTMLView _updateMouseoverWithEvent:]):
1289 (-[WebHTMLView scrollWheel:]):
1290 (-[WebHTMLView mouseDown:]):
1291 (-[WebHTMLView mouseDragged:]):
1292 (-[WebHTMLView mouseUp:]):
1293 (-[WebHTMLView keyDown:]):
1294 (-[WebHTMLView keyUp:]):
1295 (-[WebHTMLView performKeyEquivalent:]):
1297 2005-03-14 Vicki Murley <vicki@apple.com>
1299 - roll out the fix for 4040321, since it is still pending CCC review.
1301 2005-03-10 Richard Williamson <rjw@apple.com>
1303 Fixed <rdar://problem/4040321> Exception: Someone's trying to encode a WebDataRequestParameters instance
1307 If a delegate returns a mutated applewebdata: request in it's willSendRequest:
1308 method, we don't load using the WebDataRequest. Instead we do a normal load.
1309 Unfortunately, if the request they return is mutated *copy* of the applewebdata:
1310 request it will hold the applewebdata: special properties. These properties
1311 will be encoded into the cache. They should not be. So, to fix, we sanitize the
1312 request, by removing the special properties from the request.
1314 Note that we had to dig into the private guts of NSURLRequest because there is
1315 no public mechanism to remove properties from a request, see 4046775.
1317 * WebView.subproj/WebBaseResourceHandleDelegate.m:
1318 (-[WebBaseResourceHandleDelegate willSendRequest:redirectResponse:]):
1319 * WebView.subproj/WebDataProtocol.h:
1320 * WebView.subproj/WebDataProtocol.m:
1321 (-[NSURLRequest _webDataRequestExternalRequest]):
1322 (-[NSURLRequest _webDataRequestSanitize]):
1326 2005-03-13 Darin Adler <darin@apple.com>
1328 Reviewed by Ken and Maciej.
1330 - fixed <rdar://problem/4049040> REGRESSION (403-405): security check prevents user stylesheet from loading (Dictionary.app doesn't work at all!)
1332 * Plugins.subproj/WebNetscapePluginStream.m: (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
1333 Allow plug-in subresource streams to load with any URL, ignoring the "canLoadURL" method's restriction (only
1334 file URLs can load other file URLs), which now applies only to main resources, like web pages in frames or
1335 object tags and plug-in main resources.
1337 * WebCoreSupport.subproj/WebBridge.m:
1338 (-[WebBridge startLoadingResource:withURL:customHeaders:]): Allow subresources to load with any URL, as above.
1339 This allows things like images, stylesheets, and JavaScript to be loaded without the "canLoadURL" method's
1341 (-[WebBridge startLoadingResource:withURL:customHeaders:postData:]): Ditto.
1342 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]): Ditto.
1344 2005-03-10 Richard Williamson <rjw@apple.com>
1346 Fixed <rdar://problem/4040321> Exception: Someone's trying to encode a WebDataRequestParameters instance
1350 If a delegate returns a mutated applewebdata: request in it's willSendRequest:
1351 method, we don't load using the WebDataRequest. Instead we do a normal load.
1352 Unfortunately, if the request they return is mutated *copy* of the applewebdata:
1353 request it will hold the applewebdata: special properties. These properties
1354 will be encoded into the cache. They should not be. So, to fix, we sanitize the
1355 request, by removing the special properties from the request.
1357 Note that we had to dig into the private guts of NSURLRequest because there is
1358 no public mechanism to remove properties from a request, see 4046775.
1360 * WebView.subproj/WebBaseResourceHandleDelegate.m:
1361 (-[WebBaseResourceHandleDelegate willSendRequest:redirectResponse:]):
1362 * WebView.subproj/WebDataProtocol.h:
1363 * WebView.subproj/WebDataProtocol.m:
1364 (-[NSURLRequest _webDataRequestExternalRequest]):
1365 (-[NSURLRequest _webDataRequestSanitize]):
1369 2005-03-10 Maciej Stachowiak <mjs@apple.com>
1373 <rdar://problem/4046510> REGRESSION (TOT): All Flash and Shockwave plugin-based web content missing
1375 * Plugins.subproj/WebNetscapePluginStream.m:
1376 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
1378 2005-03-10 John Sullivan <sullivan@apple.com>
1382 - fixed <rdar://problem/4045843> Going back/forward to error page
1383 hits assertion in -[WebDataSource(WebPrivate) _setData:]
1385 * WebView.subproj/WebDataSource.m:
1386 (-[WebDataSource _setData:]):
1387 Removed bogus assertion
1389 2005-03-09 Deborah Goldsmith <goldsmit@apple.com>
1393 - fixed <rdar://problem/3997044> default encoding for non-Latin incorrect
1395 * WebKit/WebView.subproj/WebPreferences.m: (+[WebPreferences _systemCFStringEncoding]):
1396 Call __CFStringGetUserDefaultEncoding to get region, and TECGetWebTextEncodings to get
1397 the first encoding to determine the default encoding.
1399 2005-03-09 Darin Adler <darin@apple.com>
1401 Reviewed by Richard.
1403 - fixed <rdar://problem/4034175> REGRESSION (Mail): Can't use any font with style Light/Condensed/Semibold/Extrabold, etc
1405 * WebView.subproj/WebHTMLView.m:
1406 (-[WebHTMLView _styleFromFontAttributes:]): Use a constant instead of hard-coded weight for clarity.
1407 (-[WebHTMLView _originalFontA]): Ditto.
1408 (-[WebHTMLView _originalFontB]): Ditto.
1409 (-[WebHTMLView _addToStyle:fontA:fontB:]): Add code to detect the case where the family name is not good enough
1410 to specify the font precisely. In that case, use the Postscript font name instead. Also change variable names
1411 so it's easier to understand the method.
1413 2005-03-06 Maciej Stachowiak <mjs@apple.com>
1417 <rdar://problem/4005575> Arbitrary file disclosure vulnerability due to ability to load local html from remote content
1419 * Plugins.subproj/WebBaseNetscapePluginView.m:
1420 (-[WebBaseNetscapePluginView requestWithURLCString:]):
1421 * Plugins.subproj/WebNetscapePluginEmbeddedView.m:
1422 (-[WebNetscapePluginEmbeddedView didStart]):
1423 * Plugins.subproj/WebNetscapePluginStream.m:
1424 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
1425 * WebCoreSupport.subproj/WebBridge.m:
1426 (-[WebBridge createWindowWithURL:frameName:]):
1427 (-[WebBridge startLoadingResource:withURL:customHeaders:]):
1428 (-[WebBridge startLoadingResource:withURL:customHeaders:postData:]):
1429 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
1430 (-[WebBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]):
1431 (-[WebBridge postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
1432 (-[WebBridge createChildFrameNamed:withURL:referrer:renderPart:allowsScrolling:marginWidth:marginHeight:]):
1433 (-[WebBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:]):
1434 * WebView.subproj/WebFrame.m:
1435 (-[WebFrame _loadURL:referrer:intoChild:]):
1436 * WebView.subproj/WebFramePrivate.h:
1438 2005-03-09 Richard Williamson <rjw@apple.com>
1440 Fixed <rdar://problem/4032938> Safari: text layout for MS P Gothic font is corrupted
1442 The AppKit and ATS reports that MS P Gothic is fixed pitch. It is
1443 not! This is another case of "fixed pitch" being wrong. I've
1444 coalesced all the special cases into our isFontFixedPitch:, and
1445 used a dictionary to improve speed. No performance regression.
1449 * WebCoreSupport.subproj/WebTextRenderer.m:
1450 (-[WebTextRenderer _computeWidthForSpace]):
1451 * WebCoreSupport.subproj/WebTextRendererFactory.m:
1452 (-[WebTextRendererFactory clearCaches]):
1453 (-[WebTextRendererFactory isFontFixedPitch:]):
1455 2005-03-09 Darin Adler <darin@apple.com>
1459 <rdar://problem/4040388> REGRESSION (172-173): nonrepro crash in -[NSString(WebNSURLExtras) _web_isUserVisibleURL]
1461 * Misc.subproj/WebNSURLExtras.m:
1462 (-[NSString _web_isUserVisibleURL]): Fixed some pointer expressions that didn't include the index in the expression.
1463 (readIDNScriptWhiteListFile): Removed NSLog statements in here since we decided they aren't useful and they will
1464 write some messages on Tiger.
1466 2005-03-09 Darin Adler <darin@apple.com>
1468 * DOM.subproj/DOMPrivate.h: Checked in file copied from WebCore.
1470 2005-03-08 Richard Williamson <rjw@apple.com>
1472 Fixed <rdar://problem/4036949> many JPEG images fail to incremental-load due to change in ImageIO JPEG header parsing (to be fixed in WebKit)
1473 Fixed <rdar://problem/4042570> Need to check image properties for presence of width/height properties
1475 ImageIO-55 changed how image properties are created. They
1476 are now created incrementally. So we need "re-get" the image
1477 properties if the properties we care about (width/height) aren't
1478 in the property dictionary.
1482 * WebCoreSupport.subproj/WebImageData.h:
1483 * WebCoreSupport.subproj/WebImageData.m:
1484 (-[WebImageData init]):
1485 (-[WebImageData fileProperties]):
1486 (-[WebImageData propertiesAtIndex:]):
1487 (-[WebImageData _isSizeAvailable]):
1488 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
1489 (-[WebImageData size]):
1491 2005-03-08 John Sullivan <sullivan@apple.com>
1493 A couple of tweaks to the previous patch, from Darin's review.
1495 * Misc.subproj/WebNSPasteboardExtras.m:
1496 (_writableTypesForImageWithoutArchive):
1497 remove unnecessary _web prefix
1498 (_writableTypesForImageWithArchive):
1500 (+[NSPasteboard _web_writableTypesForImageIncludingArchive:]):
1501 use mutableCopy rather than initWithArray:, and adjust for name changes
1503 2005-03-08 John Sullivan <sullivan@apple.com>
1507 - fixed <rdar://problem/4031826> REGRESSION (Mail): standalone images from
1508 Safari can't be pasted into Mail (WebKit part of fix)
1510 We were always declaring webarchive-related pasteboard types, even in the standalone
1511 image cases where we had no webarchive. Unfortunately, the WebView pasteboard-related
1512 API doesn't prevent this kind of thing from happening, because the code that
1513 declares the types isn't guaranteed to be anywhere near the code that writes
1514 the pasteboard data.
1516 After this fix, I discovered that pasting standalone images into Mail still doesn't
1517 work right, but the remaining issues seem to be entirely in Mail. I wrote up 4041671
1520 * Misc.subproj/WebNSPasteboardExtras.h:
1521 (+[NSPasteboard _web_writableTypesForImageIncludingArchive:]):
1522 Added boolean parameter; clients must specify whether or not there's an
1523 archive involved, because the array of types is different if there is.
1525 * Misc.subproj/WebNSPasteboardExtras.m:
1526 (_web_writableTypesForImageWithoutArchive):
1527 new static function, constructs (once) and returns the array of types
1528 for images that don't have archives
1529 (_web_writableTypesForImageWithArchive):
1530 new static function, constructs (once) and returns the array of types
1531 for images that do have archives
1532 (+[NSPasteboard _web_writableTypesForImageIncludingArchive:]):
1533 added boolean parameter, now calls one of the two new static functions
1535 (-[NSPasteboard _web_writeImage:URL:title:archive:types:]):
1536 added asserts that we aren't declaring the archive types if we don't have archive data
1538 (-[NSPasteboard _web_declareAndWriteDragImage:URL:title:archive:source:]):
1539 updated to pass parameter to _web_writableTypesForImageIncludingArchive:
1541 * WebView.subproj/WebDefaultContextMenuDelegate.m:
1542 (-[WebDefaultUIDelegate copyImageToClipboard:]):
1543 updated to pass parameter to _web_writableTypesForImageIncludingArchive:
1545 * WebView.subproj/WebImageView.m:
1546 (-[WebImageView copy:]):
1547 updated to pass parameter to _web_writableTypesForImageIncludingArchive:
1549 * WebView.subproj/WebView.m:
1550 (-[WebView pasteboardTypesForElement:]):
1551 updated to pass parameter to _web_writableTypesForImageIncludingArchive:
1553 2005-03-07 Richard Williamson <rjw@apple.com>
1555 More bullet proofing for <rdar://problem/4038304> CrashTracer: ....9 crashes at com.apple.WebKit: -[WebTextRenderer initWithFont:usingPrinterFont:] + 840
1557 Protect against removal of Times and Times New Roman from
1558 system. If these fonts are removed attempt to get system font
1559 instead of FATAL_ALWAYS.
1563 * WebCoreSupport.subproj/WebTextRenderer.m:
1564 (-[WebTextRenderer initWithFont:usingPrinterFont:]):
1568 2005-03-06 Darin Adler <darin@apple.com>
1570 - fixed obvious mistake in IDN script code (luckily it hasn't been in a submission yet!)
1572 * Misc.subproj/WebNSURLExtras.m: (readIDNScriptWhiteListFile): Use "index" to index into the array,
1573 not "script", which is the script number, not the 32-bit-word index.
1575 2005-03-05 Kevin Decker <kdecker@apple.com>
1579 Fixed: <rdar://problem/4038529> Infinite progress bar loading webcams and other sites that use multipart/x-mixed-replace
1581 The previous patch I landed prevented us from loading multipart/x-mixed-replace but did not always update the progress bar accordingly.
1582 This stops websites from having seemingly infinite progress in the browser UI.
1584 * WebCoreSupport.subproj/WebSubresourceClient.m:
1585 (-[WebSubresourceClient didReceiveResponse:]): If this is "multipart/x-mixed-replace", remove the WebBaseResourceHandleDelegate client from
1586 the datasource's subresource array, otherwise -[WebDataSource isLoading] incorrectly returns YES. Also it's possible at this point in
1587 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
1588 in fact we're complete.
1589 * WebView.subproj/WebMainResourceClient.m:
1590 (-[WebMainResourceClient connection:didReceiveResponse:]): ditto
1592 2005-03-05 Richard Williamson <rjw@apple.com>
1594 Fixed panther build problem. Shouldn't include
1595 changes for 3968753 on panther.
1599 * WebView.subproj/WebView.m:
1600 (-[WebView _commonInitializationWithFrameName:groupName:]):
1602 2005-03-05 Darin Adler <darin@apple.com>
1606 - fixed <rdar://problem/4034603> REGRESSION (185-188): RadarWeb can't send enclosures anymore
1608 * WebView.subproj/WebFormDataStream.m:
1609 (closeCurrentStream): Release currentData when closing the stream.
1610 (advanceCurrentStream): Set up and retain currentData when the current stream is reading that data, so the
1611 data won't be released while in use.
1612 (formCreate): Initialize currentData to NULL.
1614 - fixed <rdar://problem/4037562> Tiger8A402: Help Viewer crashed when viewing help for iChat (infinite recursion in WebView)
1616 * WebView.subproj/WebView.m: (-[WebView _responderValidateUserInterfaceItem:]):
1617 Check for the case where we ourselves are the responder. This avoids an infinite loop.
1618 The actual code to perform operations avoids this with a global variable, but this lighter weight
1619 solution is sufficient here because validate operations don't call through to the next responder.
1621 2005-03-04 Richard Williamson <rjw@apple.com>
1623 Fixed <rdar://problem/3968753> REGRESSION: Poor performance with differing multiple animated GIFs (was fast in Panther)
1625 Disable coalesced updates (in CG). This restores the
1628 Reviewed by David Harrison.
1630 * WebView.subproj/WebView.m:
1631 (-[WebView _commonInitializationWithFrameName:groupName:]):
1633 2005-03-04 Adele Amchan <adele@apple.com>
1637 * English.lproj/StringsNotToBeLocalized.txt: added new strings "text/x-vcf" and "text/x-csv" to the list
1639 2005-03-04 Adele Amchan <adele@apple.com>
1643 Fix for <rdar://problem/4032982> Sun iPlanet app: not able to import AddressBook CSV format addresses properly
1644 Fix for <rdar://problem/4032985> Sun iPlanet app: not able to import vCard format addresses properly
1646 * WebView.subproj/WebTextView.m:
1647 (+[WebTextView unsupportedTextMIMETypes]): added "text/x-csv" and "text/x-vcf" to the list of MIME types that our text view doesn't handle
1649 2005-03-04 Darin Adler <darin@apple.com>
1653 - fixed <rdar://problem/4036817> REGRESSION: ctrl-y broken when a line + carriage return cut
1655 * WebView.subproj/WebHTMLView.m:
1656 (-[WebHTMLView _deleteRange:killRing:prepend:smartDeleteOK:deletionAction:]): Merged _handleKillRing behavior
1657 into this function, since there's now a more-complicated way the startNewKillRingSequence boolean needs to
1658 be handled. Set the startNewKillRingSequence boolean after the entire process so changing the selection before
1659 and during the editing dosn't clear it. Also change "isTypingAction" parameter to "deletionAction" so we can
1660 handle forward delete with this method.
1661 (-[WebHTMLView _deleteSelection]): Pass deleteSelectionAction for action rather than NO for isTypingAction,
1662 which is the way to say the same thing using the new parameter.
1663 (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]): Refactor to use the _deleteRange
1664 method above. Also calls _shouldDeleteRange: for the pre-existing selection case; not doing that before was
1666 (-[WebHTMLView deleteToMark:]): Pass deleteSelectionAction for action rather than NO for isTypingAction,
1667 which is the way to say the same thing using the new parameter.
1669 2005-03-04 Darin Adler <darin@apple.com>
1673 - fixed <rdar://problem/4020413> REGRESSION (Mail): can't use fonts with names that start with "#" in Mail (Korean fonts)
1675 * WebView.subproj/WebHTMLView.m:
1676 (-[WebHTMLView _styleFromFontAttributes:]): Quote font name when calling setFontFamily.
1677 (-[WebHTMLView _addToStyle:fontA:fontB:]): Ditto.
1679 2005-03-04 Darin Adler <darin@apple.com>
1683 - fixed <rdar://problem/3965666> IDN spoofing vulnerability caused by Unicode characters that look like ASCII characters
1685 * Misc.subproj/WebNSURLExtras.m:
1686 (readIDNScriptWhiteListFile): Added. Reads file and parses script names.
1687 (readIDNScriptWhiteList): Added. Calls readIDNScriptWhiteList on each of the white list locations in succession.
1688 (allCharactersInIDNScriptWhiteList): Renamed from containsPossibleLatinLookalikes and changed sense.
1689 Now calls readIDNScriptWhiteList first time, and then uses the read-in list to check the scripts.
1690 (-[NSString _web_mapHostNameWithRange:encode:makeString:]): Call allCharactersInIDNScriptWhiteList instead of
1691 containsPossibleLatinLookalikes.
1692 * Resources/IDNScriptWhiteList.txt: Added.
1693 * WebKit.pbproj/project.pbxproj: Added IDNScriptWhiteList.txt file.
1695 * Misc.subproj/WebKitLocalizableStrings.m: Removed. This is simply unused.
1696 * English.lproj/StringsNotToBeLocalized.txt: Updated for recent changes.
1698 2005-03-04 Darin Adler <darin@apple.com>
1702 - fixed <rdar://problem/3937667> REGRESSION (Mail): Zooming a window from titlebar button doesn't paint newly-exposed portions of window
1704 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView _recursiveDisplayAllDirtyWithLockFocus:visRect:]):
1705 Re-set-up the visRect if the bounds changes due to layout.
1709 2005-03-03 Jens Alfke <jens@apple.com>
1713 <rdar://problem/3991818> REGRESSION: Images scale while loading
1714 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.
1716 * WebCoreSupport.subproj/WebImageData.m:
1717 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
1719 2005-03-01 David Hyatt <hyatt@apple.com>
1721 Fix for 3841186, scrollbar shows up disabled when it should not appear at all. Make sure updateScrollers
1722 is never allowed to be re-entrant from any call point by moving the guard inside the function itself.
1724 Reviewed by John Sullivan
1726 * WebView.subproj/WebDynamicScrollBarsView.m:
1727 (-[WebDynamicScrollBarsView updateScrollers]):
1728 (-[WebDynamicScrollBarsView reflectScrolledClipView:]):
1730 2005-03-02 Chris Blumenberg <cblu@apple.com>
1732 Fixed: <rdar://problem/4029010> Expose method to retrieve drag image for WebView's selection
1734 Reviewed by sullivan.
1736 * WebView.subproj/WebHTMLView.m:
1737 (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]): call _selectionDraggingImage
1738 (-[WebHTMLView _selectionDraggingImage]): new SPI for Mail, factored from previous method
1739 (-[WebHTMLView _selectionDraggingRect]): new SPI for Mail
1740 * WebView.subproj/WebHTMLViewPrivate.h:
1742 2005-03-02 John Sullivan <sullivan@apple.com>
1746 - fixed <rdar://problem/4023337> Safari stops loading any page (-[NSCFDictionary setObject:forKey:]:
1747 attempt to insert nil key)
1749 It is very likely that the exception being hit is caused by the same problem as WebFoundation
1750 bug 4018486. This change makes the code robust against this kind of problem regardless.
1752 * WebView.subproj/WebBaseResourceHandleDelegate.m:
1753 (-[WebBaseResourceHandleDelegate saveResource]):
1754 Don't call addSubresource if newly-created resource is nil (but do assert on debug builds).
1755 Also assert that originalURL and MIMEType are not nil.
1757 * WebView.subproj/WebDataSource.m:
1758 (-[WebDataSource addSubresource:]):
1759 Don't add nil subresource to dictionary, but do assert on debug builds.
1763 2005-03-01 John Sullivan <sullivan@apple.com>
1767 - fixed <rdar://problem/3987482> Format>Style>Italic is not enabled when a
1768 compose window is empty (works in Blot)
1770 * WebView.subproj/WebHTMLView.m:
1771 (-[WebHTMLView becomeFirstResponder]):
1772 call _updateFontPanel here so NSFontManager knows the right font for the menu
1773 items and the font panel
1775 2005-03-01 David Harrison <harrison@apple.com>
1779 <rdar://problem/3915560> Mail would like an SPI to enable "smart" text paste/drop
1781 * WebView.subproj/WebHTMLView.m:
1782 (-[WebHTMLView _smartDeleteRangeForProposedRange:]):
1783 (-[WebHTMLView _smartInsertForString:replacingRange:beforeString:afterString:]):
1786 2005-02-28 John Sullivan <sullivan@apple.com>
1790 - WebKit part of fix for <rdar://problem/4023490> REGRESSION (125-185): Tabbing through links
1791 on frameset page gets stuck at end (tivofaq.com)
1793 This tab-to-links stuff has been in shaky condition ever since AppKit futzed with
1794 tabbing behavior in Tiger to add support for including the toolbar in the key loop.
1795 I made some changes months ago to compensate for that, but some cases, such as this
1796 one, still weren't fixed.
1798 * WebCoreSupport.subproj/WebBridge.m:
1799 (-[WebBridge _nextKeyViewOutsideWebFrameViewsWithValidityCheck:]):
1800 new bottleneck method, extracted from nextKeyViewOutsideWebFrameViews; handles
1801 nextKeyView or nextValidKeyView depending on parameter.
1802 (-[WebBridge nextKeyViewOutsideWebFrameViews]):
1803 now calls extracted method
1804 (-[WebBridge nextValidKeyViewOutsideWebFrameViews]):
1805 new method, calls new bottleneck method
1807 * WebView.subproj/WebHTMLView.m:
1808 (-[WebHTMLView nextValidKeyView]):
1809 when we're stuck at the end of a nextKeyView chain inside a nexted frame, use
1810 nextValidKeyViewOutsideWebFrameViews. Make sure we don't end up looking inside
1811 the web frame views while doing this.
1813 2005-02-25 Darin Adler <darin@apple.com>
1817 - fixed <rdar://problem/4025088> window onblur and onfocus don't fire when text field has focus
1819 * WebView.subproj/WebHTMLView.m:
1820 (-[WebHTMLView updateFocusState]): Renamed from updateFocusDisplay. Added call to setWindowHasFocus: method.
1821 (-[WebHTMLView viewDidMoveToWindow]): Call method by new name.
1822 (-[WebHTMLView windowDidBecomeKey:]): Ditto.
1823 (-[WebHTMLView windowDidResignKey:]): Ditto.
1824 (-[WebHTMLView becomeFirstResponder]): Ditto.
1825 (-[WebHTMLView resignFirstResponder]): Ditto.
1829 2005-02-25 Richard Williamson <rjw@apple.com>
1831 Fixed <rdar://problem/4000962> 8A375: Help Viewer displays voiced sound and semi-voiced characters strangely (characters don't seem to be composed)
1833 Added special case for voiced marks.
1837 * WebCoreSupport.subproj/WebTextRenderer.m:
1838 (widthForNextCharacter):
1840 2005-02-25 Darin Adler <darin@apple.com>
1844 - fixed <rdar://problem/4019823> Seed: Control-Y doesn't work
1846 * WebView.subproj/WebHTMLView.m:
1847 (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]): Call _handleKillRing
1848 after setting the selection, since it uses the selection to get the text.
1849 (-[WebHTMLView _insertText:selectInsertedText:]): Check for empty string to avoid an assertion
1850 on the other side of the bridge when you yank the empty string.
1852 2005-02-24 Richard Williamson <rjw@apple.com>
1854 Fixed <rdar://problem/3382926> Bidi neutrals at RTL/LTR boundaries not handled correctly.
1856 If directionality is specified use that as initial directionality,
1857 rather than neutral directionality.
1861 * WebCoreSupport.subproj/WebTextRenderer.m:
1862 (widthForNextCharacter):
1864 2005-02-24 Adele Amchan <adele@apple.com>
1868 Fix for <rdar://problem/4023393> Safari crashed in khtml::RenderObject::repaintAfterLayoutIfNeeded(QRect const&, QRect const&)
1870 We were crashing after hitting PageDown when viewing a pdf because
1871 WebKit was calling over to WebCore to scroll overflow areas.
1872 Since this only needs to be done if we're dealing with a WebHTMLView,
1873 I added a wrapper function to check the documentView before calling
1876 * WebView.subproj/WebFrameView.m:
1877 (-[WebFrameView _scrollOverflowInDirection:granularity:]): added wrapper function that checks if documentView is a WebHTMLView
1878 (-[WebFrameView scrollToBeginningOfDocument:]): uses new wrapper function now
1879 (-[WebFrameView scrollToEndOfDocument:]): uses new wrapper function now
1880 (-[WebFrameView _pageVertically:]): uses new wrapper function now
1881 (-[WebFrameView _pageHorizontally:]): uses new wrapper function now
1882 (-[WebFrameView _scrollLineVertically:]): uses new wrapper function now
1883 (-[WebFrameView _scrollLineHorizontally:]): uses new wrapper function now
1885 2005-02-24 Richard Williamson <rjw@apple.com>
1887 Fixed <rdar://problem/3985889> REGRESSION (125-180): setting <img> src to GIF that already animated does not animate; just shows final frame
1891 * WebCoreSupport.subproj/WebImageData.h:
1892 * WebCoreSupport.subproj/WebImageData.m:
1893 (-[WebImageData resetAnimation]):
1894 * WebCoreSupport.subproj/WebImageRenderer.m:
1895 (-[WebImageRenderer resetAnimation]):
1896 (-[WebInternalImage resetAnimation]):
1897 (-[WebImageRenderer drawImageInRect:fromRect:compositeOperator:context:]):
1899 2005-02-24 Kevin Decker <kdecker@apple.com>
1903 Fixed <rdar://problem/3962401> Don't load multipart/x-mixed-replace content to prevent memory leak
1905 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.
1907 * WebView.subproj/WebMainResourceClient.m:
1908 (-[WebMainResourceClient connection:didReceiveResponse:]): Disabled loading of multipart/x-mixed-replace content until we fully implement server side push.
1909 * WebCoreSupport.subproj/WebSubresourceClient.m:
1910 (-[WebSubresourceClient didReceiveResponse:]): Ditto. Same exact thing for sub resources.
1913 2005-02-23 John Sullivan <sullivan@apple.com>
1917 - fixed <rdar://problem/4021370> REGRESSION (Tiger): WebKit part of fix for
1918 shift-tab on tivofaq doing the wrong thing
1920 * WebView.subproj/WebFrameView.m:
1921 (-[WebFrameView becomeFirstResponder]):
1922 If our previousValidKeyView is nil or self (same as nil modulo AppKit oddness),
1923 look out of the box and get the previousValidKeyView of our webview.
1925 2005-02-23 Darin Adler <darin@apple.com>
1929 - fixed <rdar://problem/4010196> REGRESSION (125-186+): 8-character timestamps in gmail wrap to 2 lines (width:8ex; font-size:80%)
1931 * WebCoreSupport.subproj/WebTextRenderer.m: (-[WebTextRenderer xHeight]): Return the maximum
1932 of the "x" height and width. Comment in the code explains why in more detail.
1934 2005-02-22 Richard Williamson <rjw@apple.com>
1936 Fixed <rdar://problem/3937203> when a div adds a scrollbar (overflow:auto) we do not get regions
1938 Compare regions after automatice scroll regions have been
1943 * WebCoreSupport.subproj/WebBridge.h:
1944 * WebCoreSupport.subproj/WebBridge.m:
1945 (-[WebBridge dealloc]):
1946 (-[WebBridge _compareDashboardRegions:]):
1947 (-[WebBridge dashboardRegionsChanged:]):
1949 2005-02-22 Richard Williamson <rjw@apple.com>
1951 Fixed <rdar://problem/4012463> Dashboard widgets don't work with authenticating proxies
1953 Added new SPI for dashboard that just calls default delegate
1958 * WebView.subproj/WebView.m:
1959 (-[WebView handleAuthenticationForResource:challenge:fromDataSource:]):
1960 * WebView.subproj/WebViewPrivate.h:
1962 2005-02-22 Chris Blumenberg <cblu@apple.com>
1966 * WebCoreSupport.subproj/WebBridge.m:
1967 (-[WebBridge issuePasteAndMatchStyleCommand]): support for new "PasteAndMatchStyle" exec command
1971 2005-02-21 David Harrison <harrison@apple.com>
1975 <rdar://problem/3943090> REGRESSION (Mail): Spelling underline incompletely erased following certain steps
1977 * WebCoreSupport.subproj/WebTextRenderer.m:
1978 (-[WebTextRenderer misspellingLineThickness]):
1979 (-[WebTextRenderer misspellingLinePatternWidth]):
1980 Replaced #defines with these methods, so others can get the same info.
1982 (-[WebTextRenderer drawLineForMisspelling:withWidth:]):
1983 Keep underline within originally specified bounds.
1986 2005-02-21 Darin Adler <darin@apple.com>
1990 - fixed <rdar://problem/4016358> don't ever display IDN URLs with characters from "possible Latin look-alike" scripts
1992 * Misc.subproj/WebNSURLExtras.m:
1993 (containsPossibleLatinLookalikes): Added.
1994 (-[NSString _web_mapHostNameWithRange:encode:makeString:]): Call containsPossibleLatinLookalikes, and if true,
1995 don't decode the host name.
1997 2005-02-19 Kevin Decker <kdecker@apple.com>
2001 Fixed <rdar://problem/4010765> Flash player can be used to arbitrarily open popup windows without user permission
2003 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.
2005 * Plugins.subproj/WebBaseNetscapePluginView.h: Addded currentEventIsUserGesture boolean ivar.
2006 * Plugins.subproj/WebBaseNetscapePluginView.m:
2007 (-[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.
2008 (-[WebBaseNetscapePluginView initWithFrame:]): In our asynchronous load, pass along currentEventIsUserGesture to the PluginRequest.
2009 (-[WebBaseNetscapePluginView evaluateJavaScriptPluginRequest:]): Inform WebCore if this was a user originated gesture when calling executeScript().
2010 (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]):
2011 (-[WebPluginRequest initWithRequest:frameName:notifyData:sendNotification:didStartFromUserGesture:]):
2012 (-[WebPluginRequest isCurrentEventUserGesture]): Added.
2014 2005-02-18 Chris Blumenberg <cblu@apple.com>
2016 Fixed: <rdar://problem/3945271> REGRESSION (Mail): pasted plain text should pick up typing style instead of being unstyled
2018 Reviewed by kocienda.
2020 * WebView.subproj/WebDataSource.m:
2021 (-[WebDataSource _replaceSelectionWithArchive:selectReplacement:]): pass NO for matchStyle to replaceSelection
2022 * WebView.subproj/WebHTMLView.m:
2023 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:chosePlainText:]): return new chosePlainText parameter
2024 (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]): pass chosePlainText for matchStyle to replaceSelection
2025 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): ditto
2027 2005-02-17 Richard Williamson <rjw@apple.com>
2029 Removed code that should not have been checked in from
2032 * WebCoreSupport.subproj/WebTextRendererFactory.m:
2033 (-[WebTextRendererFactory isFontFixedPitch:]):
2035 2005-02-17 Richard Williamson <rjw@apple.com>
2037 Fixed <rdar://problem/3999467> when Osaka-Mono is specified as fixed width font, Osaka used instead
2039 Fixed w/o introducing a performance regression.
2041 Reviewed by Vicki (and earlier by Dave Harrison).
2043 * WebCoreSupport.subproj/WebTextRenderer.m:
2044 (-[WebTextRenderer _computeWidthForSpace]):
2045 (widthForNextCharacter):
2046 * WebCoreSupport.subproj/WebTextRendererFactory.h:
2047 * WebCoreSupport.subproj/WebTextRendererFactory.m:
2048 (-[NSFont _web_isFakeFixedPitch]):
2049 (-[WebTextRendererFactory isFontFixedPitch:]):
2050 (-[WebTextRendererFactory fontWithFamily:traits:size:]):
2052 2005-02-17 Richard Williamson <rjw@apple.com>
2054 Fixed <rdar://problem/3959304> PDF in img tag is not rendered correctly anymore
2056 We were incorrectly adding image position when flipping coordinates.
2058 Reviewed by David Harrison.
2060 * WebCoreSupport.subproj/WebImageData.m:
2061 (-[WebImageData _PDFDrawFromRect:toRect:operation:alpha:flipped:context:]):
2063 2005-02-17 Richard Williamson <rjw@apple.com>
2065 Fixed <rdar://problem/4007262> Seed: Flight tracker scrolling moves to the left
2067 Added SPI for dashboard to disable wheel scrolling of the WebClipView.
2072 * WebView.subproj/WebClipView.m:
2073 (-[WebClipView _focusRingVisibleRect]):
2074 (-[WebClipView scrollWheel:]):
2075 * WebView.subproj/WebView.m:
2076 (-[WebViewPrivate init]):
2077 (-[WebView drawRect:]):
2078 (-[WebView _dashboardBehavior:]):
2079 * WebView.subproj/WebViewInternal.h:
2080 * WebView.subproj/WebViewPrivate.h:
2084 2005-02-17 Vicki Murley <vicki@apple.com>
2086 - roll out this change, since it causes a 1.5% performance regression
2088 2005-02-15 Richard Williamson <rjw@apple.com>
2090 Fixed <rdar://problem/3999467> when Osaka-Mono is specified as fixed width font, Osaka used instead
2092 Lie about Osaka-Mono. Treat it as fixed pitch, even though,
2093 strictly speaking it isn't. (Similar to what we do with
2096 Reviewed by David Harrison.
2098 * WebCoreSupport.subproj/WebTextRenderer.m:
2099 (-[WebTextRenderer _computeWidthForSpace]):
2100 * WebCoreSupport.subproj/WebTextRendererFactory.h:
2101 * WebCoreSupport.subproj/WebTextRendererFactory.m:
2102 (-[NSFont _web_isFakeFixedPitch]):
2103 (-[WebTextRendererFactory isFontFixedPitch:]):
2104 (-[WebTextRendererFactory fontWithFamily:traits:size:]):
2106 2005-02-17 John Sullivan <sullivan@apple.com>
2110 - fixed <rdar://problem/3997185> The Web view on .Mac Prefs caused System Prefs
2111 to lockup (resolved by re-boot only)
2113 * WebCoreSupport.subproj/WebBridge.m:
2114 (-[WebBridge nextKeyViewOutsideWebFrameViews]):
2115 Don't allow recursion here; assert on debug build, return nil on deployment. I
2116 couldn't get my machine into a state to repro this problem (and neither could the
2117 originator), but it's obvious from the stack crawl that this method was recursing
2118 when it shouldn't have.
2120 2005-02-16 John Sullivan <sullivan@apple.com>
2122 Written by Darin, reviewed by me.
2124 - WebKit part of fix for <rdar://problem/4007384>
2125 FILTER: Bookmark of RSS with Japanese search word & multiple RSS pages loses filter
2127 * DOM.subproj/DOMPrivate.h:
2128 updated this file, which is a copy of the WebCore version
2130 2005-02-16 Richard Williamson <rjw@apple.com>
2132 Fixed <rdar://problem/3966973> Tiger 8A357: Binary Compatiblity: frequent Webstractor.app crashes [WebImageData _nextFrame]
2134 Webstractor.app was playing tricks to create thumbnails of
2135 pages. This caused the 'focusView' to be incorrect during
2136 animated GIF frame rendering.
2140 * WebCoreSupport.subproj/WebImageRenderer.m:
2141 (-[WebImageRenderer _startOrContinueAnimationIfNecessary]):
2143 2005-02-16 Vicki Murley <vicki@apple.com>
2145 Reviewed by me, code change by Darin.
2147 - fixed the build on Panther
2149 * WebView.subproj/WebFormDataStream.m: (webSetHTTPBody):
2150 Added a Panther-specific code path that just loads all the data into one big
2151 NSData object. This means that bug 3686434 won't be fixed on SUPanWheat; we'll
2152 still load the file into memory before sending it to the server on Panther.
2154 2005-02-15 Richard Williamson <rjw@apple.com>
2156 Fixed <rdar://problem/3998368> Tiger8A376: WebTextRenderer assertion failure in Safari while browsing news.bbc.co.uk
2158 Removed use of FATAL_ALWAYS from getUncachedWidth(). It's unclear
2159 why we would trigger the FATAL_ALWAYS. In the past we've seen
2160 the message triggered because of corrupt fonts. Anyway, in this
2161 particular case, we will now return 0 for the character width,
2162 rather than exiting.
2164 Reviewed by David Harrison.
2166 * WebCoreSupport.subproj/WebTextRenderer.m:
2169 2005-02-15 Richard Williamson <rjw@apple.com>
2171 Fixed <rdar://problem/3999467> when Osaka-Mono is specified as fixed width font, Osaka used instead
2173 Lie about Osaka-Mono. Treat it as fixed pitch, even though,
2174 strictly speaking it isn't. (Similar to what we do with
2177 Reviewed by David Harrison.
2179 * WebCoreSupport.subproj/WebTextRenderer.m:
2180 (-[WebTextRenderer _computeWidthForSpace]):
2181 * WebCoreSupport.subproj/WebTextRendererFactory.h:
2182 * WebCoreSupport.subproj/WebTextRendererFactory.m:
2183 (-[NSFont _web_isFakeFixedPitch]):
2184 (-[WebTextRendererFactory isFontFixedPitch:]):
2185 (-[WebTextRendererFactory fontWithFamily:traits:size:]):
2187 2005-02-14 Darin Adler <darin@apple.com>
2191 - fixed <rdar://problem/3686434> Safari uses too much RAM on file upload, leading to malloc errors and crashes (HP printers)
2193 * WebView.subproj/WebFormDataStream.h: Added webSetHTTPBody, which creates and connects an appropriate
2194 stream to an NSMutableURLRequest.
2195 * WebView.subproj/WebFormDataStream.m: Added implementation here.
2197 * WebCoreSupport.subproj/WebBridge.m:
2198 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
2200 * WebCoreSupport.subproj/WebSubresourceClient.m:
2201 (+[WebSubresourceClient startLoadingResource:withURL:customHeaders:postData:referrer:forDataSource:]):
2203 * WebView.subproj/WebFrame.m:
2204 (-[WebFrame _loadItem:withLoadType:]): Use webSetHTTPBody.
2205 (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]): Ditto.
2207 * English.lproj/StringsNotToBeLocalized.txt: Updated for this change and other recent changes.
2209 2005-02-11 Richard Williamson <rjw@apple.com>
2211 Fixed <rdar://problem/4002505> 8A378: Endlessly animating gif's on http://www.entropy.ch
2213 If animated images had no loop count property we were incorrectly
2214 looping forver. Note, that in the course of fixing this bug
2215 I found that ImageIO is incorrectly NOT reporting the loop count
2216 for a whole class of animated GIFs.
2218 Reviewed by Ken Kocienda.
2220 * WebCoreSupport.subproj/WebImageData.m:
2221 (-[WebImageData _repetitionCount]):
2225 2005-02-11 Vicki Murley <vicki@apple.com>
2229 - fix deployment build on Panther
2231 * WebView.subproj/WebHTMLView.m:
2232 (-[WebHTMLView changeBaseWritingDirection:]): ifdef out NSWritingDirectionNatural
2233 (-[WebHTMLView toggleBaseWritingDirection:]): fix a spacing issue
2235 2005-02-10 David Harrison <harrison@apple.com>
2237 Reviewed by Richard.
2239 <rdar://problem/3991652> REGRESSION (Mail): Deleting entire line in reply deletes extra blank line and moves insertion point
2241 * WebView.subproj/WebHTMLView.m:
2242 (-[WebHTMLView _deleteRange:killRing:prepend:smartDeleteOK:isTypingAction:]):
2243 (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
2244 (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]):
2245 (-[WebHTMLView selectToMark:]):
2246 (-[WebHTMLView swapWithMark:]):
2247 (-[WebHTMLView transpose:]):
2248 (-[WebHTMLView _selectMarkedText]):
2249 (-[WebHTMLView _selectRangeInMarkedText:]):
2250 Adopt new default affinity of NSSelectionAffinityDownstream as of <rdar://problem/3937447>.
2252 2005-02-10 Darin Adler <darin@apple.com>
2254 Reviewed by Harrison.
2256 - fixed <rdar://problem/4002084> Setting ResourceLoadDelegate to nil can cause a crash
2258 * WebView.subproj/WebView.m: (-[WebView _cacheResourceLoadDelegateImplementations]):
2259 Set booleans to either YES or NO, rather than setting them only in the YES case.
2261 2005-02-10 Darin Adler <darin@apple.com>
2263 Reviewed by Harrison.
2265 - fixed <rdar://problem/3991225> Format->Style->Underline menu item does not get checked when selected text is underlined
2267 * WebView.subproj/WebHTMLView.m:
2268 (-[WebHTMLView validateUserInterfaceItem:]): Added tons of additional cases in here for all the
2269 "action" style methods in this class that don't always want to be valid. For the ones where state
2270 makes sense, added the state-checking code too for the menu item case.
2271 (-[WebHTMLView ignoreSpelling:]): Removed unnecessary "editable text only" check since this command
2272 would work fine on a non-editable selection.
2273 (-[WebHTMLView swapWithMark:]): Ditto.
2274 (-[WebHTMLView changeBaseWritingDirection:]): Added. Like toggle, but based on the sender's tag.
2276 2005-02-08 Darin Adler <darin@apple.com>
2278 "Reviewed" by Richard (he told me the file was obsolete).
2280 - got rid of an obsolete file
2282 * Plugins.subproj/npsap.h: Removed.
2283 * copy-webcore-files-to-webkit: Removed npsap.h.
2285 2005-02-09 Richard Williamson <rjw@apple.com>
2287 Fixed <rdar://problem/4000073> non-screen font error on www.worldofwarcraft.com
2289 Reviewed by John Sullivan.
2291 * WebCoreSupport.subproj/WebTextRenderer.m:
2292 (-[WebTextRenderer _smallCapsFont]):
2296 2005-02-07 Chris Blumenberg <cblu@apple.com>
2298 Fixed: <rdar://problem/3993354> Safari claims to put RTFD on the pasteboard, but doesn't, in some cases
2302 * WebView.subproj/WebHTMLView.m:
2303 (-[WebHTMLView _stripAttachmentCharactersFromAttributedString:]): moved
2304 (-[WebHTMLView _writeSelectionWithPasteboardTypes:toPasteboard:cachedAttributedString:]): take cachedAttributedString parameter in case the attributed string was gotten already
2305 (-[WebHTMLView _writeSelectionToPasteboard:]): omit RTFD from the types list when there are no attachments
2307 2005-02-07 David Harrison <harrison@apple.com>
2311 <rdar://problem/3990693> REGRESSION (8A373): ctrl-k now deletes just one character instead of line
2313 * WebView.subproj/WebHTMLView.m:
2314 (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]):
2315 Set the selection so that deleteKeyPressedWithSmartDelete knows what to delete.
2317 2005-02-06 Darin Adler <darin@apple.com>
2321 - fixed <rdar://problem/3963166> PDFView SPI print method is being deprecated, moving to PDFDocument; please update WebKit
2323 * WebView.subproj/WebPDFView.m: (-[WebPDFView printOperationWithPrintInfo:]): Target the document instead of the view.
2325 * English.lproj/StringsNotToBeLocalized.txt: Updated for recent changes and also moved one translation to be a file-specific
2326 item rather than a file-independent one.
2328 2005-02-05 Chris Blumenberg <cblu@apple.com>
2330 Fixed: <rdar://problem/3991974> REGRESSION: www.jabra.com world location screen does not work
2334 * WebCoreSupport.subproj/WebBridge.m:
2335 (-[WebBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:]): use the baseURL from the bridge rather than from the response
2337 2005-02-04 Chris Blumenberg <cblu@apple.com>
2339 Fixed: <rdar://problem/3802781> rtf->html pasteboard conversion using xhtml
2341 Reviewed by kocienda.
2343 * WebView.subproj/WebHTMLView.m:
2344 (+[WebHTMLView _excludedElementsForAttributedStringConversion]): new
2345 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]): call _excludedElementsForAttributedStringConversion
2347 2005-02-04 Chris Blumenberg <cblu@apple.com>
2349 Fixed: <rdar://problem/3832973> copy text from PowerPoint, paste into Blot (or presumably Mail) and get a single missing image icon
2353 * WebView.subproj/WebHTMLView.m:
2354 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]): prefer RTF and RTFD over images just as NSTextView does
2356 2005-02-03 Chris Blumenberg <cblu@apple.com>
2358 Fixed: <rdar://problem/3555137> REGRESSION (125-173): Flash animation can erase parts of chrome (bookmarks bar & tab bar)
2360 convertRect:toView: returns incorrect results inside of viewWillMoveToWindow: with a nil window. Workaround this by catching this case.
2364 * Plugins.subproj/WebBaseNetscapePluginView.m:
2365 (-[WebBaseNetscapePluginView superviewsHaveSuperviews]): new
2366 (-[WebBaseNetscapePluginView saveAndSetPortStateForUpdate:]): clip out the plug-in view when superviewsHaveSuperviews returns NO
2368 2005-02-03 Chris Blumenberg <cblu@apple.com>
2370 Fixed: <rdar://problem/3893513> Sun iPlanet app: when saving to a file it brings up a window with the thing to be saved instead
2374 * WebView.subproj/WebTextView.m:
2375 (+[WebTextView unsupportedTextMIMETypes]): added "text/ldif" to the list of MIME types that our text view doesn't handle
2379 2005-02-03 Chris Blumenberg <cblu@apple.com>
2381 * English.lproj/StringsNotToBeLocalized.txt: updated
2383 2005-02-03 Chris Blumenberg <cblu@apple.com>
2385 Fixed: <rdar://problem/3989611> Evite style "add vCalendar to calendar" do not work
2389 * WebView.subproj/WebTextView.m:
2390 (+[WebTextView unsupportedTextMIMETypes]): added "text/x-vcalendar" to the list of MIME types our text view doesn't handle
2392 2005-02-03 Vicki Murley <vicki@apple.com>
2396 - fix deployment build breakage on Panther
2398 * WebView.subproj/WebHTMLView.m:
2399 (-[WebHTMLView toggleBaseWritingDirection:]):
2401 2005-02-02 John Sullivan <sullivan@apple.com>
2405 - WebKit part of fix for <rdar://problem/3980651> REGRESSION (125-180): Huge number of pages printed from certain page,
2408 This also fixes the problems with printing from GMail, yay!
2410 * WebView.subproj/WebHTMLView.m:
2411 (-[WebHTMLView _setPrinting:minimumPageWidth:maximumPageWidth:adjustViewSize:]):
2412 Don't adjust margins for header/footer here, because this is called for each subframe.
2413 (-[WebHTMLView knowsPageRange:]):
2414 Do adjust margins for header/footer here (analogous to WebTextView and WebImageView).
2415 Also, round the page height to an integer here (noticed in passing).
2417 2005-02-02 Chris Blumenberg <cblu@apple.com>
2419 Fixed: <rdar://problem/3986546> Cut, delete, and paste menu items are active when a image is opened in window
2423 * WebView.subproj/WebView.m:
2424 (-[WebView _responderValidateUserInterfaceItem:]): new, has the responder validate the item
2425 (-[WebView validateUserInterfaceItem:]): call VALIDATE for each repsonder selector using FOR_EACH_RESPONDER_SELECTOR macro
2426 (-[WebView _performResponderOperation:with:]): call factored out method _responderForResponderOperations
2427 (-[WebView _responderForResponderOperations]): new, code from _performResponderOperation:with:
2429 2005-02-02 Chris Blumenberg <cblu@apple.com>
2431 Fixed: <rdar://problem/3983628> control-click on WebView is not selecting the word under the cursor (Mail, non-editable WebView)
2435 * WebCoreSupport.subproj/WebBridge.m:
2436 (-[WebBridge selectWordBeforeMenuEvent]): new
2437 * WebView.subproj/WebView.m:
2438 (-[WebView _selectWordBeforeMenuEvent]): new SPI
2439 (-[WebView _setSelectWordBeforeMenuEvent:]): new SPI
2440 * WebView.subproj/WebViewInternal.h:
2441 * WebView.subproj/WebViewPrivate.h:
2443 2005-02-02 Chris Blumenberg <cblu@apple.com>
2445 Fixed: <rdar://problem/3986013> Assertion failure going back after page load error (no apparent problem in nondebug build)
2449 * WebView.subproj/WebDataSource.m:
2450 (-[WebDataSource _setPrimaryLoadComplete:]): don't set the data source data when the main client is nil
2452 2005-02-02 Ken Kocienda <kocienda@apple.com>
2458 <rdar://problem/3823109> WebKit should support -toggleBaseWritingDirection: (bidi editing support)
2460 * WebView.subproj/WebHTMLView.m:
2461 (-[WebHTMLView _applyParagraphStyleToSelection:withUndoAction:]): New function that calls through to
2462 new feature that allows callers to force all properties in a style to be applied as block styles.
2463 (-[WebHTMLView _alignSelectionUsingCSSValue:withUndoAction:]): Removed FIXME comment for something that has been fixed.
2464 (-[WebHTMLView toggleBaseWritingDirection:]): Implemented.
2466 2005-02-01 Richard Williamson <rjw@apple.com>
2468 Fixed <rdar://problem/3977727> WebKit should use new SPI to support faster GIF rendering
2470 Note: This REQUIRES build >= 3A362 when building on Tiger.
2474 * WebCoreSupport.subproj/WebImageData.m:
2475 (-[WebImageData _imageSourceOptions]):
2479 2005-02-01 Richard Williamson <rjw@apple.com>
2481 Added new SPI for <rdar://problem/3967063> need spi on WebView to turn of lcd text for Dashboard
2485 * WebCoreSupport.subproj/WebTextRenderer.m:
2487 * WebView.subproj/WebView.m:
2488 (-[WebView drawRect:]):
2489 (-[WebView _dashboardBehavior:]):
2490 (+[WebView _setShouldUseFontSmoothing:]):
2491 (+[WebView _shouldUseFontSmoothing]):
2492 * WebView.subproj/WebViewInternal.h:
2493 * WebView.subproj/WebViewPrivate.h:
2495 2005-01-31 Chris Blumenberg <cblu@apple.com>
2497 Fixed: <rdar://problem/3949806> REGRESSION: Source window fails to refresh correctly on reload
2499 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.
2503 * WebView.subproj/WebDataSource.m:
2504 (-[WebDataSource _setData:]): moved within file
2505 (-[WebDataSource _setPrimaryLoadComplete:]): call _setData: with the data from the main client before letting go of the main client
2506 * WebView.subproj/WebDataSourcePrivate.h:
2507 * WebView.subproj/WebMainResourceClient.m:
2508 (-[WebMainResourceClient releaseResources]): removed call to _setData: since the data source may need the data before releaseResources is called
2510 2005-01-31 Chris Blumenberg <cblu@apple.com>
2512 Fixed: <rdar://problem/3946285> Seed: Safari crashed by selecting all at internet-moebel.com
2516 * WebView.subproj/WebHTMLView.m:
2517 (-[WebHTMLView _hitViewForEvent:]): new, factored hit test hack to this method
2518 (-[WebHTMLView _updateMouseoverWithEvent:): call _hitViewForEvent:
2519 (-[WebHTMLView acceptsFirstMouse:]): call _setMouseDownEvent: and _isSelectionEvent: on the hit HTMLView or else when it's asked to drag it will assert
2520 (-[WebHTMLView shouldDelayWindowOrderingForEvent:]): ditto
2522 2005-01-31 David Harrison <harrison@apple.com>
2526 <rdar://problem/3961239> AX Setting AXFocused on AXScrollArea of AXWebArea will cause keyboard selection change
2528 * WebView.subproj/WebHTMLView.m:
2529 (-[WebHTMLView maintainsInactiveSelection]):
2530 Keep the selection when the new first respomder is our own scrollview, in both editable and non-editaqble content.
2532 2005-01-31 Jens Alfke <jens@apple.com>
2536 - Fixed <rdar://problem/3903199> REGRESSION: Large background patterns slide around while loading
2538 * WebCoreSupport.subproj/WebImageData.m:
2540 (-[WebImageData tileInRect:fromPoint:context:]):
2542 2005-01-30 Darin Adler <darin@apple.com>
2546 - fixed <rdar://problem/3965265> Safari displays HTML as source when default encoding is Hebrew (due to direction overrides added by encoding converter)
2548 * WebView.subproj/WebPreferencesPrivate.h: Added _systemCFStringEncoding, and changed
2549 _setInitialDefaultTextEncodingToSystemEncoding to be a class method.
2550 * WebView.subproj/WebPreferences.m:
2551 (+[WebPreferences _systemCFStringEncoding]): Added. New SPI to be used by Safari. Broken out of
2552 _setInitialDefaultTextEncodingToSystemEncoding, but also added cases for MacArabic and MacHebrew.
2553 (+[WebPreferences _setInitialDefaultTextEncodingToSystemEncoding]): Refactor to use _systemCFStringEncoding.
2555 2005-01-28 Jens Alfke <jens@apple.com>
2557 Reviewed by Richard.
2559 <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)
2561 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.)
2563 * WebCoreSupport.subproj/WebImageData.h:
2564 * WebCoreSupport.subproj/WebImageData.m:
2565 (-[WebImageData _invalidateImages]):
2566 (-[WebImageData _checkSolidColor:]):
2567 (-[WebImageData _cacheImages:allImages:]):
2568 (-[WebImageData _fillSolidColorInRect:compositeOperation:context:]):
2569 (-[WebImageData tileInRect:fromPoint:context:]):
2571 2005-01-28 David Harrison <harrison@apple.com>
2575 <rdar://problem/3584942> AX: Safari Accessibility parent-child mismatch
2577 Use AppKit SPI _accessibilityParentForSubview to return KWQAccObject parent of AppKit AX object.
2579 * WebView.subproj/WebHTMLView.m:
2580 (-[WebHTMLView _accessibilityParentForSubview:]):
2583 2005-01-28 Chris Blumenberg <cblu@apple.com>
2585 WebKit side of: <rdar://problem/3951283> can view pages from the back/forward cache that should be disallowed by Parental Controls
2589 * WebView.subproj/WebDefaultPolicyDelegate.m:
2590 (-[WebDefaultPolicyDelegate webView:shouldGoToHistoryItem:]): new private delegate method
2591 * WebView.subproj/WebFrame.m:
2592 (-[WebFrame _goToItem:withLoadType:]): call new delegate method
2593 * WebView.subproj/WebPolicyDelegatePrivate.h:
2595 2005-01-26 Maciej Stachowiak <mjs@apple.com>
2597 Reviewed by Darin, Hyatt and Ken.
2599 <rdar://problem/3790449> REGRESSION (Mail): underline behavior is flaky because of how CSS handles text-decoration
2601 * WebView.subproj/WebHTMLView.m:
2602 (-[WebHTMLView _styleFromFontAttributes:]): Use new -khtml-text-decorations-in-effect
2604 (-[WebHTMLView _styleForAttributeChange:]): likewise
2605 (-[WebHTMLView underline:]): likewise
2607 2005-01-27 Ken Kocienda <kocienda@apple.com>
2611 * WebView.subproj/WebHTMLView.m:
2612 (-[WebHTMLView _handleKillRing:prepend:]): New helper function. Code factored out from
2613 _deleteRange:killRing:prepend:smartDeleteOK:isTypingAction:.
2614 (-[WebHTMLView _deleteRange:killRing:prepend:smartDeleteOK:isTypingAction:]): No longer takes
2615 unused preflight argument. Now takes new isTypingAction argument. Uses isTypingAction to
2616 determine which flavor of delete command to call.
2617 (-[WebHTMLView _deleteSelection]): No longer passes unused preflight argument. Now passes new isTypingAction argument.
2618 (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]): Rearranged code to call
2619 correct flavor of delete command, based on whether typing should be preserved. Some other cleanups.
2620 (-[WebHTMLView deleteForward:]): Add _isEditable check.
2621 (-[WebHTMLView deleteBackward:]): Now calls _deleteWithDirection instead of having unique behavior different
2622 from forward delete.
2623 (-[WebHTMLView deleteWordForward:]): Add new isTypingAction flag to _deleteWithDirection call.
2624 (-[WebHTMLView deleteWordBackward:]): Ditto.
2625 (-[WebHTMLView deleteToBeginningOfLine:]): Ditto.
2626 (-[WebHTMLView deleteToEndOfLine:]): Ditto.
2627 (-[WebHTMLView deleteToBeginningOfParagraph:]): Ditto.
2628 (-[WebHTMLView deleteToEndOfParagraph:]): Ditto.
2629 (-[WebHTMLView deleteToMark:]): Ditto.
2633 2005-01-27 Chris Blumenberg <cblu@apple.com>
2635 Fixed: <rdar://problem/3973272> REGRESSION: Safari uses QT plugin to display PNG images
2639 * Plugins.subproj/WebBasePluginPackage.m: use renamed QT bundle ID
2641 2005-01-26 Darin Adler <darin@apple.com>
2645 - fixed <rdar://problem/3829517> WebView still draws white when setDrawsBackground set to NO and no content loaded yet
2647 * WebView.subproj/WebFrameView.m: (-[WebFrameView drawRect:]): Check drawsBackground, and don't
2648 draw the white "no document" background if it's NO. This fixes things for frames with no document.
2649 * WebView.subproj/WebImageView.m: (-[WebImageView drawRect:]): Same as above. This fixes things
2650 for frames with just an image.
2651 * WebView.subproj/WebFrame.m: (-[WebFrame _updateDrawsBackground]): Call setDrawsBackground: on the
2652 document view if it implements it. This fixes things for frames with plain text.
2654 2005-01-25 John Sullivan <sullivan@apple.com>
2658 - WebKit part of fix for: <rdar://problem/3970670> Text context menu
2659 in WebKit needs "Look Up in Dictionary" item
2661 * WebView.subproj/WebDefaultContextMenuDelegate.m:
2662 (localizedMenuTitleFromAppKit):
2663 return English string in the case where AppKit bundle is found but doesn't
2664 contain the expected string. This case will be hit by people testing with
2666 (-[WebDefaultUIDelegate menuItemWithTag:]):
2667 create Look Up in Dictionary item
2668 (-[WebDefaultUIDelegate contextMenuItemsForElement:]):
2669 add Look Up in Dictionary item and separator
2670 (-[WebDefaultUIDelegate editingContextMenuItemsForElement:]):
2673 * WebView.subproj/WebHTMLView.m:
2674 (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
2675 new method, handles bringing up the Dictionary window. Includes FIXMEs
2676 for a couple of the known loose ends.
2677 (-[WebHTMLView validateUserInterfaceItem:]):
2678 handle Look Up in Dictionary item like the other new items
2680 * WebView.subproj/WebUIDelegatePrivate.h:
2681 added SPI constant for Look Up in Dictionary menu item
2683 2005-01-24 Maciej Stachowiak <mjs@apple.com>
2685 Fixed Panther build (missing ifdef)
2687 * WebView.subproj/WebDefaultContextMenuDelegate.m:
2689 2005-01-24 John Sullivan <sullivan@apple.com>
2693 - WebKit part of fix for <rdar://problem/3960231> Text context menu in WebKit needs Spotlight and Google items
2695 * WebView.subproj/WebDefaultContextMenuDelegate.m:
2696 (localizedMenuTitleFromAppKit):
2697 new function, gets localized string from AppKit so we can avoid adding localized
2698 strings to WebKit at this late date in Tiger. Returns the non-localized English
2699 string if we can't find the localized string in AppKit.
2700 (-[WebDefaultUIDelegate menuItemWithTag:]):
2701 handle the two new menu items by tag name
2702 (-[WebDefaultUIDelegate contextMenuItemsForElement:]):
2703 add menu items for Search in Google and Search in Spotlight to selected-text menu item
2704 for the noneditable case
2705 (-[WebDefaultUIDelegate editingContextMenuItemsForElement:]):
2706 add menu items for Search in Google and Search in Spotlight to selected-text menu item
2707 for the editable case
2709 * WebView.subproj/WebHTMLView.m:
2710 (-[WebHTMLView _searchWithGoogleFromMenu:]):
2711 implement this menu item action method, using same method name and implementation as NSTextView
2712 (-[WebHTMLView _searchWithSpotlightFromMenu:]):
2713 implement this menu item action method, using same basic implementation as NSTextView
2714 (-[WebHTMLView validateUserInterfaceItem:]):
2715 validate new menu items
2717 * WebView.subproj/WebUIDelegatePrivate.h:
2718 define new tags for new menu items
2720 * English.lproj/StringsNotToBeLocalized.txt:
2721 updated for these changes
2723 2005-01-24 Darin Adler <darin@apple.com>
2725 * WebView.subproj/WebDataSource.m: (+[WebDataSource _repTypesAllowImageTypeOmission:]):
2726 Do the same check as for view types, so the representation types are consistent.
2728 2005-01-24 Darin Adler <darin@apple.com>
2732 - fixed <rdar://problem/3791158> REGRESSION (Mail): copyFont: and pasteFont: copy and paste only the NSFont, not other attributes
2734 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView _styleFromFontAttributes:]): Added the last
2735 few loose ends here: strikethrough and underline.
2737 - fixed <rdar://problem/3967393> add a user default that lets you turn off WebKit PDF support
2739 * WebView.subproj/WebFrameView.m: (+[WebFrameView _viewTypesAllowImageTypeOmission:]):
2740 Leave the PDF-handling classes out of the dictionary if the secret default is set.
2742 * English.lproj/StringsNotToBeLocalized.txt: Updated for recent changes.
2744 2005-01-20 Darin Adler <darin@apple.com>
2746 Reviewed by Kristin Forster.
2748 - fixed <rdar://problem/3964972> update _initWithCGSEvent:eventRef: call in mouse moved workaround (breaks cursors in Carbon WebKit applications)
2750 * Carbon.subproj/HIWebView.m: (MouseMoved): Instead of munging the event record's window number directly
2751 before calling _initWithCGSEvent, on Tiger we call _eventRelativeToWindow on the event after creating it.
2752 Also added a check so that with Macromedia Contribute's workaround in place we don't do anything at all
2753 to the event. Tested with both Contribute and CarbonWeb.
2755 * English.lproj/StringsNotToBeLocalized.txt: Update for recent changes.
2757 2005-01-20 Richard Williamson <rjw@apple.com>
2759 Fixed <rdar://problem/3815672> REGRESSION (Mail): Japanese text cannot be made bold
2761 The AppKit's font substitution API doesn't match font traits!
2762 It only find fonts that contain the appropriate glyphs. This
2763 patch attempts to find the best variation within a family.
2767 * WebCoreSupport.subproj/WebTextRenderer.m:
2768 (-[WebTextRenderer _substituteFontForString:families:]):
2772 2005-01-20 Ken Kocienda <kocienda@apple.com>
2778 <rdar://problem/3786659> REGRESSION (Mail): editable WebViews don't work with "size up" and "size down" NSFontManager changes
2780 * WebView.subproj/WebHTMLView.m:
2781 (-[WebHTMLView _addToStyle:fontA:fontB:]): This is the WebKit side of the fix. Replaced unimplemented code blocks
2782 with FIXME's in them for make bigger and make smaller with real working code.
2784 2005-01-19 David Hyatt <hyatt@apple.com>
2786 Fix for 3513067, spaces being lost when RTL text is rendered. Make sure not to allow hangers or spaces
2791 * WebCoreSupport.subproj/WebTextRenderer.m:
2792 (-[WebTextRenderer _createATSUTextLayoutForRun:style:]):
2794 2005-01-19 Darin Adler <darin@apple.com>
2798 - fixed <rdar://problem/3962559> stopAnimationsInView leaks after cvs-base
2800 * WebCoreSupport.subproj/WebImageData.m: (+[WebImageData stopAnimationsInView:]): add a release
2802 2005-01-19 Chris Blumenberg <cblu@apple.com>
2804 Fixed: <rdar://problem/3961809> plug-in code attempts to load empty URL
2808 * Plugins.subproj/WebNetscapePluginEmbeddedView.m:
2809 (-[WebNetscapePluginEmbeddedView didStart]): don't start load if URL is empty
2811 2005-01-17 Darin Adler <darin@apple.com>
2813 * DOM.subproj/DOMPrivate.h: Check in generated file.
2815 2005-01-17 Darin Adler <darin@apple.com>
2817 Reviewed by John and Richard.
2819 - fixed <rdar://problem/3907453> printing a multi-page PDF document from Safari doesn't produce correct output
2821 * WebView.subproj/WebFrameViewPrivate.h: Added.
2822 * WebView.subproj/WebFrameView.m:
2823 (-[WebFrameView canPrintHeadersAndFooters]): Added. Returnes NO for documents that can't print headers or footers,
2824 and delegates to the document view to answer the question. Defaults to NO, since only a view that actively does
2825 the work is compatible with our header and footer code.
2826 (-[WebFrameView printOperationWithPrintInfo:]): Added. Returns an NSPrintOperation set up for printing. The reason
2827 we return this rather than an NSView is that in the PDFView case, the print info is changed around before creating
2828 the NSPrintOperation, and also the PDFKit SPI works this way.
2830 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView canPrintHeadersAndFooters]): Added. Returns YES.
2831 * WebView.subproj/WebImageView.m: (-[WebImageView canPrintHeadersAndFooters]): Ditto.
2832 * WebView.subproj/WebTextView.m: (-[WebTextView canPrintHeadersAndFooters]): Ditto.
2834 * WebView.subproj/WebPDFView.m:
2835 (-[WebPDFView canPrintHeadersAndFooters]): Added. Returns NO.
2836 (-[WebPDFView printOperationWithPrintInfo:]): Added. Calls getPrintOperationForPrintInfo: autoRotate:YES on the PDFView.
2838 * WebKit.pbproj/project.pbxproj: Added WebFrameViewPrivate.h as a new private header.
2840 2005-01-13 Chris Blumenberg <cblu@apple.com>
2842 Fixed: <rdar://problem/3932107> Safari does not load QT Cocoa plug-in if the WebPluginMIMETypes key is not in the info.plist
2844 Fixing this bug required that we allow WebKit plug-ins (as well as Netscape plug-ins) support BP_CreatePluginMIMETypesPreferences
2845 which allows plug-ins create an auxiliary MIME types file.
2849 * Plugins.subproj/WebBasePluginPackage.h:
2850 * Plugins.subproj/WebBasePluginPackage.m:
2851 (+[WebBasePluginPackage preferredLocalizationName]): moved from WebNetscapePluginPackage
2852 (-[WebBasePluginPackage pListForPath:createFile:]): ditto
2853 (-[WebBasePluginPackage getPluginInfoFromPLists]): ditto
2854 (-[WebBasePluginPackage isLoaded]): return isLoaded ivar
2855 (-[WebBasePluginPackage load]): if loaded, get BP_CreatePluginMIMETypesPreferences symbol
2856 * Plugins.subproj/WebNetscapePluginPackage.h:
2857 * Plugins.subproj/WebNetscapePluginPackage.m:
2858 (-[WebNetscapePluginPackage load]): call super when done so BP_CreatePluginMIMETypesPreferences can be initialized
2859 * Plugins.subproj/WebPluginPackage.m:
2860 (-[WebPluginPackage initWithPath:]): call getPluginInfoFromPLists
2861 (-[WebPluginPackage load]): call super when done so BP_CreatePluginMIMETypesPreferences can be initialized
2863 2005-01-13 Richard Williamson <rjw@apple.com>
2865 Fixed <rdar://problem/3952809> WebJavaPlugIn.h comments need method name corrected (webPlugInCallJava)
2869 * Plugins.subproj/WebJavaPlugIn.h:
2873 2005-01-13 Vicki Murley <vicki@apple.com>
2877 - fix <rdar://problem/3946836> Safari about box lists 2004 instead of 2005
2879 * WebKit.pbproj/project.pbxproj: bump "2004" to "2005"
2881 2005-01-13 Richard Williamson <rjw@apple.com>
2883 Fixed <rdar://problem/3951911> REGRESSION: Animated GIF images with loop counts no longer update
2885 Draw last image after animation loop terminates. (We
2886 were drawing the image at index+1, which doesn't exist!)
2890 * WebCoreSupport.subproj/WebImageData.m:
2891 (-[WebImageData _nextFrame:]):
2893 2005-01-13 Richard Williamson <rjw@apple.com>
2895 Fixed <rdar://problem/3952084> REGRESSION: Links at projectseven.com now draw and update incorrectly during hover
2897 Turn off use of new CGContextStrokeLineSegments API. We should
2898 turn back on when 3952944 is fixed.
2902 * WebCoreSupport.subproj/WebTextRenderer.m:
2903 (-[WebTextRenderer drawLineForCharacters:yOffset:width:color:thickness:]):
2905 2005-01-13 Chris Blumenberg <cblu@apple.com>
2907 Fixed: <rdar://problem/3937663> repro assertion failure and crash dragging image that has PDF source
2911 * Misc.subproj/WebNSViewExtras.m:
2912 (-[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
2913 * WebCoreSupport.subproj/WebImageRendererFactory.m:
2914 (-[WebImageRendererFactory supportedMIMETypes]): removed code that omits PDF and PostScript from the list since this omission is only needed in WebImageView
2915 * WebView.subproj/WebImageView.m:
2916 (+[WebImageView supportedImageMIMETypes]): added code that omits PDF and PostScript since we don't want WebImageView to render these types
2918 2005-01-10 Maciej Stachowiak <mjs@apple.com>
2922 <rdar://problem/3758033> REGRESSION (Mail): Support attributes in marked text (International input)
2924 * WebCoreSupport.subproj/WebTextRenderer.m:
2925 (-[WebTextRenderer drawLineForCharacters:yOffset:width:color:thickness:]): Changed to support
2926 underline thickness. Also added a bit of a hack here to move thickness 2 underlines down by
2927 .5 pixels, since the rendering engine can't give a fractional pixel offset.
2928 * WebView.subproj/WebHTMLView.m:
2929 (-[WebHTMLView validAttributesForMarkedText]): Support underline, underline color and marked
2930 clause attributes. Others that NSText supports are unimplemented for now.
2931 (-[WebHTMLView firstRectForCharacterRange:]): Remove needless logging.
2932 (-[WebHTMLView unmarkText]): Updated for new WebCore SPI.
2933 (-[WebHTMLView _extractAttributes:ranges:fromAttributedString:]): New method to pull the attributes
2934 and ranges out of an attributed string.
2935 (-[WebHTMLView setMarkedText:selectedRange:]): Extract attributes and pass to WebCore.
2936 (-[WebHTMLView insertText:]): Add comment noting that we don't really handle attributed strings
2939 2005-01-12 Darin Adler <darin@apple.com>
2943 - fixed <rdar://problem/3848257> WebView will draw more than AppKit asks it to, so views behind won't redraw enough (transparent WebView)
2945 * WebView.subproj/WebHTMLView.m:
2946 (-[WebHTMLView _propagateDirtyRectsToOpaqueAncestors]): As recommended by Troy Stephens, do the
2947 layouts here in this call, since it's before propagating the dirty rects to our ancestors.
2948 This fixes the bug, but we only do it if the WebView is not opaque, because otherwise we can
2949 optimize by only doing layouts you really need, and doing them later on is safe because we
2950 know we don't need to draw any of the views behind us.
2951 (-[WebHTMLView _layoutIfNeeded]): Added. Factored out from the method below.
2952 (-[WebHTMLView _web_layoutIfNeededRecursive]): Added. Like the other "layout if needed" call,
2954 (-[WebHTMLView _web_layoutIfNeededRecursive:testDirtyRect:]): Factored out the guts into the
2955 _layoutIfNeeded method above. Otherwise unchanged.
2956 (-[NSView _web_layoutIfNeededRecursive]): Added.
2958 * WebView.subproj/WebFrame.m: (-[WebFrame _updateDrawsBackground]): Call setDrawsBackground:NO
2959 on the scroll view when changing the frame to no longer be in "draws background" mode. This
2960 is needed because the frame manages the "draws background" mode of the scroll view. It won't
2961 have any effect if you call setDrawsBackground:NO before starting to use a WebView, but without
2962 it calling setDrawsBackground:NO later won't have an immediate effect (easily visible in Safari).
2963 This was hidden before because the HTML view was filling with transparent color, which blew away
2964 the fill that was done by NSScrollView.
2966 - fixed <rdar://problem/3921129> reproducible crash at www.funnychristmas.com in CFSet manipulation in WebImageData
2968 * WebCoreSupport.subproj/WebImageData.m:
2969 (-[WebImageData _imageSourceOptions]): Changed types so we don't need a cast.
2970 (+[WebImageData stopAnimationsInView:]): Instead of building a set of sets, by putting in the sets with addObject,
2971 build a single set using unionSet, and then iterate the objects instead of having to iterate the sets and then the
2972 objects in each set. The old code ended up sharing the sets with the live code, when the whole idea was to gather
2973 all the renderers because the process of stopping modifies the active sets.
2975 2005-01-12 Richard Williamson <rjw@apple.com>
2977 Fixed <rdar://problem/3926825> Safari ignores GIF loop count
2979 Get loop count from file properties, not image properties.
2981 Reviewed by Ken Kocienda.
2983 * WebCoreSupport.subproj/WebImageData.h:
2984 * WebCoreSupport.subproj/WebImageData.m:
2985 (-[WebImageData _commonTermination]):
2986 (-[WebImageData fileProperties]):
2987 (-[WebImageData _floatProperty:type:at:]):
2988 (-[WebImageData _floatFileProperty:type:]):
2989 (-[WebImageData _repetitionCount]):
2991 2005-01-11 Chris Blumenberg <cblu@apple.com>
2993 Fixed: <rdar://problem/3934749> assertion failure in WebBaseNetscapePluginView loading movie
2997 * Plugins.subproj/WebBaseNetscapePluginView.m:
2998 (-[WebBaseNetscapePluginView start]): call canStart before asserting about the webView
3000 2005-01-11 John Sullivan <sullivan@apple.com>
3004 - fixed <rdar://problem/3446838> REGRESSION (Mail): text decorations don't print
3005 (e.g. <strike>, underline)
3007 * WebCoreSupport.subproj/WebTextRenderer.m:
3008 (-[WebTextRenderer drawLineForCharacters:yOffset:withWidth:withColor:]):
3009 This bottleneck routine for drawing a line was setting the linewidth to 0 when
3010 the graphics context was not drawing to the screen. Thus, no lines. Now links
3011 are underlined when printing from Safari (as well as Mail).
3013 2005-01-11 Richard Williamson <rjw@apple.com>
3015 Fixed 3949145. CG has a much faster API for drawing lines.
3016 Switched over to that new API (CGContextStrokeLineSegments).
3018 Reviewed by John Sullivan.
3020 * WebCoreSupport.subproj/WebTextRenderer.m:
3021 (-[WebTextRenderer drawLineForCharacters:yOffset:withWidth:withColor:]):
3023 2005-01-10 Chris Blumenberg <cblu@apple.com>
3025 Fixed: <rdar://problem/3948862> REGRESSION: missing images when RTFD is pasted into editable WebView
3027 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.
3031 * WebView.subproj/WebHTMLView.m:
3032 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]): don't deal with subresources since that's now done by the following method
3033 (-[WebHTMLView resourceForData:preferredFilename:]): new handler method called by AppKit
3037 2005-01-06 David Harrison <harrison@apple.com>
3039 Reviewed by Dave Hyatt
3041 <rdar://problem/3588548> AX: tabbing does not work correctly with the screen reader and a focused link; need AXFocusedUIElement to work.
3043 * WebView.subproj/WebHTMLView.m:
3044 (-[WebHTMLView accessibilityFocusedUIElement]):
3045 Implement this so that AppKit can use it from NSAccessibilityHandleFocusChanged.
3047 2005-01-05 Chris Blumenberg <cblu@apple.com>
3049 Fixed: <rdar://problem/3936865> REGRESSION: canvas.drawImage no longer scales properly
3053 * WebCoreSupport.subproj/WebImageData.m: use the height of the inRect instead of the fromRect when setting the origin of the context
3055 2005-01-04 Chris Blumenberg <cblu@apple.com>
3057 Fixed: <rdar://problem/3928329> WebKit should pass nil for "language" to checkSpellingOfString:
3059 Reviewed by kocienda.
3061 * WebView.subproj/WebHTMLView.m:
3062 (-[WebHTMLView _isSelectionMisspelled]): pass nil not @"" for language
3064 2004-12-21 Maciej Stachowiak <mjs@apple.com>
3068 <rdar://problem/3888931> frame naming allows malicious site to bring up a window when you click on a link in another
3070 Implement a security check on name frame visbility. This is the
3071 same rule as mozilla. You can only target frames by name if you
3072 are in the same window, have the same domain as the frame or an
3073 ancestor, or if it's a top level window have the same domain as
3076 * WebView.subproj/WebFrame.m:
3077 (-[WebFrame _shouldAllowAccessFrom:]):
3078 (-[WebFrame _descendantFrameNamed:sourceFrame:]):
3079 (-[WebFrame findFrameNamed:]):
3080 * WebView.subproj/WebFramePrivate.h:
3081 * WebView.subproj/WebView.m:
3082 (-[WebView _findFrameInThisWindowNamed:sourceFrame:]):
3083 (-[WebView _findFrameNamed:sourceFrame:]):
3084 * WebView.subproj/WebViewPrivate.h:
3090 2004-12-20 Richard Williamson <rjw@apple.com>
3092 Add call to new API. ImageIO deprecated some older (although
3093 quite new!) API. This caused us to fail to build on 337 or later.
3095 Developers wanting to build on older versions of Tiger must define
3096 USE_DEPRECATED_IMAGESOURCE_API in WebImageData.m.
3100 * WebCoreSupport.subproj/WebImageData.m:
3101 (-[WebImageData propertiesAtIndex:]):
3103 2004-12-20 Richard Williamson <rjw@apple.com>
3105 Don't call Tiger SPI on Panther.
3109 * WebCoreSupport.subproj/WebTextRendererFactory.m:
3110 (+[WebTextRendererFactory createSharedFactory]):
3112 2004-12-20 Richard Williamson <rjw@apple.com>
3114 Fixed <rdar://problem/3884448> WebKit should turn on CG local font cache
3116 Enable mutli-tier font caching. We should see a performance boost with this
3121 * WebCoreSupport.subproj/WebTextRendererFactory.m:
3122 (+[WebTextRendererFactory createSharedFactory]):
3124 2004-12-20 Richard Williamson <rjw@apple.com>
3126 Fix image decoding to separately decode image meta data from actual image bits. I
3127 incorrectly consolidated decode of meta data and image bits resulting in a huge
3128 performance regression.
3130 Double size of WebCore cache on lower end machines. On the PLT run on machines with
3131 256MB of memory, too many images were being evicted, causing a re-decode on the PLT.
3132 Upping the lower limit of the cache size ensure that no images are evicted (this
3133 goes hand-in-hand with the change to the minimum object size from 32K to 40K).
3137 * WebCoreSupport.subproj/WebImageData.h:
3138 * WebCoreSupport.subproj/WebImageData.m:
3139 (+[WebImageData initialize]):
3140 (-[WebImageData _commonTermination]):
3141 (-[WebImageData _invalidateImages]):
3142 (-[WebImageData _invalidateImageProperties]):
3143 (-[WebImageData imageAtIndex:]):
3144 (-[WebImageData propertiesAtIndex:]):
3145 (-[WebImageData _cacheImages:allImages:]):
3146 (-[WebImageData decodeData:isComplete:callback:]):
3147 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
3148 * WebView.subproj/WebPreferences.m:
3149 (+[WebPreferences initialize]):
3151 2004-12-20 Richard Williamson <rjw@apple.com>
3153 Fixed build problem caused by change to ImageIO API.
3157 * WebCoreSupport.subproj/WebImageData.m:
3159 2004-12-19 Darin Adler <darin@apple.com>
3163 - some garbage collection fixes
3165 * Misc.subproj/WebNSObjectExtras.h: (WebCFAutorelease): Replaced the old WebNSRetainCFRelease with this
3166 much-easier-to-understand function cribbed from what David Harrison did in WebCore.
3168 * Misc.subproj/WebKitNSStringExtras.m: (+[NSString _web_encodingForResource:]): Use CFRelease here to
3169 get rid of an unnecessary use of WebNSRetainCFRelease.
3170 * Misc.subproj/WebNSURLExtras.m:
3171 (+[NSURL _web_URLWithData:relativeToURL:]): Use WebCFAutorelease instead of WebNSRetainCFRelease and autorelease.
3172 (-[NSURL _web_URLWithLowercasedScheme]): Ditto.
3173 (-[NSString _web_mapHostNameWithRange:encode:makeString:]): Use WebCFAutorelease here; the old code would not
3174 work correctly under GC.
3175 * Plugins.subproj/WebNetscapePluginPackage.m: (+[WebNetscapePluginPackage preferredLocalizationName]):
3176 Use WebCFAutorelease here; the old code would not work correctly under GC.
3178 2004-12-18 Chris Blumenberg <cblu@apple.com>
3180 Fixed: <rdar://problem/3766915> PDF content needs search to work
3182 Reviewed by kevin, john.
3184 * WebView.subproj/WebPDFView.m:
3185 (-[WebPDFView searchFor:direction:caseSensitive:wrap:]): implemented
3186 (-[WebPDFView takeFindStringFromSelection:]): new
3187 (-[WebPDFView jumpToSelection:]): new
3188 (-[WebPDFView validateUserInterfaceItem:]): new
3190 2004-12-17 Richard Williamson <rjw@apple.com>
3192 Make image decoding as lazy as possible for non threaded case; in some cases
3193 can avoid unnecessary decoding work.
3197 * WebCoreSupport.subproj/WebImageData.h:
3198 * WebCoreSupport.subproj/WebImageData.m:
3199 (-[WebImageData imageAtIndex:]):
3200 (-[WebImageData propertiesAtIndex:]):
3201 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
3203 2004-12-16 John Sullivan <sullivan@apple.com>
3207 One of the assertions from my previous checkin fired, so
3208 I made this code more robust.
3210 * WebCoreSupport.subproj/WebBridge.m:
3211 (-[WebBridge _preferences]):
3212 new helper method, returns global preferences if webView is nil,
3213 otherwise returns webView's preferences
3214 (-[WebBridge getObjectCacheSize]):
3215 use new helper method, remove now-unnecessary assert
3216 (-[WebBridge _retrieveKeyboardUIModeFromPreferences:]):
3219 2004-12-16 John Sullivan <sullivan@apple.com>
3223 - fixed <rdar://problem/3913523> Mail needs SPI for adding tooltips to links
3224 - cleaned up some calls to +[WebPreferences standardPreferences] that should
3225 have been using -[WebView preferences]
3227 This adds a (currently SPI-only) new feature that shows the URL of the link
3228 under the mouse in a toolTip. I tested this in Safari, but we're adding this
3229 feature for Mail, and Safari won't use it (unless of course you know the
3230 magic defaults command)
3232 * Plugins.subproj/WebBaseNetscapePluginView.m:
3233 (-[WebBaseNetscapePluginView start]):
3234 use -[WebView preferences] instead of +[WebPreferences standardPreferences]
3236 * WebCoreSupport.subproj/WebBridge.m:
3237 (-[WebBridge getObjectCacheSize]):
3239 (-[WebBridge _retrieveKeyboardUIModeFromPreferences:]):
3242 * WebView.subproj/WebBaseResourceHandleDelegate.m:
3243 (-[WebBaseResourceHandleDelegate willCacheResponse:]):
3246 * WebView.subproj/WebFrame.m:
3247 (-[WebFrame _transitionToCommitted:]):
3249 (-[WebFrame _loadItem:withLoadType:]):
3252 * WebView.subproj/WebHTMLViewInternal.h:
3253 private struct now keeps ivar for cached value of showsURLsInToolTips
3254 so it doesn't have look it up in preferences a zillion times
3256 * WebView.subproj/WebHTMLView.m:
3257 (-[WebHTMLView _updateMouseoverWithEvent:]):
3258 if private->showsURLsInToolTips is true, set the toolTip from the URL.
3259 Fall back to showing the title attribute in case some element has a title
3260 attribute but no URL.
3261 (-[WebHTMLView _mayStartDragAtEventLocation:]):
3262 use -[WebView preferences] instead of +[WebPreferences standardPreferences]
3263 (-[WebHTMLView _resetCachedWebPreferences:]):
3264 get a fresh value for private->showsURLsInToolTips
3265 (-[WebHTMLView initWithFrame:]):
3266 call _resetCachedWebPreferences the first time, and listen for WebPreferencesChanged notifications
3267 (-[WebHTMLView _handleStyleKeyEquivalent:]):
3268 use -[WebView preferences] instead of +[WebPreferences standardPreferences]
3270 * WebView.subproj/WebPreferenceKeysPrivate.h:
3271 added WebKitShowsURLsInToolTipsPreferenceKey
3273 * WebView.subproj/WebPreferences.m:
3274 (+[WebPreferences initialize]):
3275 initialize WebKitShowsURLsInToolTipsPreferenceKey to 0
3276 (-[WebPreferences showsURLsInToolTips]):
3277 return WebKitShowsURLsInToolTipsPreferenceKey value
3278 (-[WebPreferences setShowsURLsInToolTips:]):
3279 set WebKitShowsURLsInToolTipsPreferenceKey value
3281 * WebView.subproj/WebPreferencesPrivate.h:
3282 add declarations for showsURLsInToolTips and setter
3284 * WebView.subproj/WebTextView.m:
3285 (-[WebTextView _preferences]):
3286 new helper method that gets preferences from webView if there is a webView,
3287 otherwise gets global preferences
3288 (-[WebTextView setFixedWidthFont]):
3289 use new helper method rather than always using global preferences
3290 (-[WebTextView initWithFrame:]):
3291 observe WebPreferencesChangedNotification instead of unnecessarily general
3292 NSUserDefaultsChangedNotification
3294 2004-12-14 John Sullivan <sullivan@apple.com>
3298 - rest of WebKit fix for <rdar://problem/3790011> undoable operations all say "Undo"
3299 in the menu, no specific action names
3301 I only know of one loose end currently, which I wrote up as <rdar://problem/3920971> Edit menu
3302 says "Undo Change Attributes" when it should say "Undo Set Color", from font panel
3304 * WebView.subproj/WebHTMLView.m:
3305 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]):
3306 use WebUndoActionSetColor when dragging color swatch
3307 (-[WebHTMLView _applyStyleToSelection:withUndoAction:]):
3308 new WebUndoAction parameter, passed across bridge
3309 (-[WebHTMLView _toggleBold]):
3310 use WebUndoActionSetFont
3311 (-[WebHTMLView _toggleItalic]):
3312 use WebUndoActionSetFont
3313 (-[WebHTMLView pasteFont:]):
3314 use WebUndoActionPasteFont
3315 (-[WebHTMLView changeFont:]):
3316 use WebUndoActionSetFont
3317 (-[WebHTMLView changeAttributes:]):
3318 use WebUndoActionChangeAttributes
3319 (-[WebHTMLView _undoActionFromColorPanelWithSelector:]):
3320 new method, returns WebUndoActionSetBackgroundColor or WebUndoActionSetColor
3321 (-[WebHTMLView _changeCSSColorUsingSelector:inRange:]):
3322 now calls _undoActionFromColorPanelWithSelector
3323 (-[WebHTMLView changeColor:]):
3324 use WebUndoActionSetColor
3325 (-[WebHTMLView _alignSelectionUsingCSSValue:withUndoAction:]):
3326 new WebUndoAction parameter, passed through
3327 (-[WebHTMLView alignCenter:]):
3328 use WebUndoActionCenter
3329 (-[WebHTMLView alignJustified:]):
3330 use WebUndoActionJustify
3331 (-[WebHTMLView alignLeft:]):
3332 use WebUndoActionAlignLeft
3333 (-[WebHTMLView alignRight:]):
3334 use WebUndoActionAlignRight
3335 (-[WebHTMLView subscript:]):
3336 use WebUndoActionAlignSubscript
3337 (-[WebHTMLView superscript:]):
3338 use WebUndoActionAlignSuperscript
3339 (-[WebHTMLView unscript:]):
3340 use WebUndoActionAlignUnscript
3341 (-[WebHTMLView underline:]):
3342 use WebUndoActionAlignUnderline
3344 * WebView.subproj/WebView.m:
3345 (-[WebView setTypingStyle:]):
3346 pass WebUndoActionUnspecified through as new parameter since we don't have any more specific info
3347 (-[WebView applyStyle:]):
3350 2004-12-14 Richard Williamson <rjw@apple.com>
3352 Helper method to get URL of plugin view.
3356 * Misc.subproj/WebNSViewExtras.m:
3357 (-[NSView _webViewURL]):
3359 2004-12-14 Vicki Murley <vicki@apple.com>
3363 <rdar://problem/3855573> Remove reference to "WebScriptMethods" from WebScriptObject.h comments
3365 * Plugins.subproj/WebPlugin.h: changed instances of "WebScriptMethods" to "WebScripting" in this
3366 file as well, as requested in the bug report
3368 2004-12-13 Maciej Stachowiak <mjs@apple.com>
3372 <rdar://problem/3912488> Mail throws an exception after backspacing "away" inline input
3374 * WebView.subproj/WebHTMLView.m:
3375 (-[WebHTMLView setMarkedText:selectedRange:]): Don't try to set a selection if
3376 we end up with no marked text, since that case fails and is unnecessary.
3378 2004-12-14 John Sullivan <sullivan@apple.com>
3382 - WebKit part of plumbing of fix for <rdar://problem/3790011> undoable operations all say "Undo" in the menu,
3383 no specific action names
3385 * WebCoreSupport.subproj/WebBridge.m:
3386 (-[WebBridge nameForUndoAction:]):
3387 renamed from setUndoActionNamePlaceholder, replaced arbitrary integers with enum values, and
3388 handled new "unspecified" case as a fallback
3390 2004-12-13 Richard Williamson <rjw@apple.com>
3392 Fixed <rdar://problem/3887767> LiveConnect doesn't propagate Java exceptions back to JavaScript (prevents security suite from running)
3396 * Plugins.subproj/WebJavaPlugIn.h:
3398 2004-12-13 John Sullivan <sullivan@apple.com>
3402 - fixed <rdar://problem/3744583> Safari can not quit when a webpage has a login sheet
3403 that can't be cancelled.
3405 The proper fix for this would be to change the class of the NSPanel in the nib file.
3406 But since this would require a localization change, I did a run-time hack instead.
3407 I'll file a bug about fixing this when we're out of localization freeze.
3409 * Panels.subproj/WebAuthenticationPanel.m:
3410 (-[WebAuthenticationPanel replacePanelWithSubclassHack]):
3411 new method, creates a new panel that is identical to the original one except that
3412 it's our subclass, and moves all the subviews of the original panel into the new one.
3413 (-[WebAuthenticationPanel loadNib]):
3414 call replacePanelWithSubclassHack
3415 (-[NonBlockingPanel _blocksActionWhenModal:]):
3416 only method of new NSPanel subclass; overrides this SPI to allow the user to quit
3417 when one of these panels/sheets is on-screen
3419 2004-12-10 Richard Williamson <rjw@apple.com>
3421 Fixed <rdar://problem/3898708> REGRESSION (8A314-8A317): World Clock's short hand not displayed (ImageIO problem with PDF?)
3422 Fixed <rdar://problem/3914012> use CG directly for pdf images not ImageIO
3424 Create a PDF document and draw that instead of using ImageIO to create a rasterized image.
3428 * WebCoreSupport.subproj/WebImageData.h:
3429 * WebCoreSupport.subproj/WebImageData.m:
3430 (-[WebImageData setIsPDF:]):
3431 (-[WebImageData isPDF]):
3432 (-[WebImageData dealloc]):
3433 (-[WebImageData decodeData:isComplete:callback:]):
3434 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
3435 (-[WebImageData size]):
3436 (-[WebImageData animate]):
3437 (-[WebImageData _createPDFWithData:]):
3438 (-[WebImageData _PDFDocumentRef]):
3439 (-[WebImageData _PDFDrawInContext:]):
3440 (-[WebImageData _PDFDrawFromRect:toRect:operation:alpha:flipped:context:]):
3441 * WebCoreSupport.subproj/WebImageRenderer.h:
3442 * WebCoreSupport.subproj/WebImageRenderer.m:
3443 (-[WebImageRenderer size]):
3444 (-[WebImageRenderer incrementalLoadWithBytes:length:complete:callback:]):
3445 (-[WebImageRenderer drawImageInRect:fromRect:compositeOperator:context:]):
3448 2004-12-10 John Sullivan <sullivan@apple.com>
3452 - fixed <rdar://problem/3855127> Error while printing w/o sheet, then window is left in a bad state,
3453 if there's no default printer set
3455 * WebView.subproj/WebHTMLView.m:
3456 (-[WebHTMLView beginDocument]):
3457 Our implementation of knowsPageRange puts the WebHTMLView into a special "printing mode". We must
3458 exit the "printing mode" to return to normal behavior. This is normally done in endDocument.
3459 However, it turns out that if there's an exception in [super beginDocument], then endDocument
3460 will not be called (lame-o AppKit API). So, we handle that case by catching the exception and
3461 exiting the "printing mode" in beginDocument when it occurs.
3463 2004-12-09 Richard Williamson <rjw@apple.com>
3465 Fixed <rdar://problem/3905789> Burn Disc image vibrates rapidly
3467 Restrict our support for animated images to GIF. We used to
3468 use presence of more than one image in a resource to determine
3469 if an image should be animated. This caused us to animate icns!
3470 If we ever support any other animated image formats we'll have
3475 * WebCoreSupport.subproj/WebImageData.h:
3476 * WebCoreSupport.subproj/WebImageData.m:
3477 (-[WebImageData shouldAnimate]):
3478 * WebCoreSupport.subproj/WebImageRenderer.m:
3479 (-[WebImageRenderer _startOrContinueAnimationIfNecessary]):
3481 2004-12-09 Richard Williamson <rjw@apple.com>
3483 Make WebPluginDatabase.h private (Dashboard needs SPI).
3485 * WebKit.pbproj/project.pbxproj:
3489 2004-12-09 Chris Blumenberg <cblu@apple.com>
3491 Workaround for this exception being raised during download:
3492 [WebDownload connection:willStopBufferingData:]: selector not recognized