1 2005-06-03 Maciej Stachowiak <mjs@apple.com>
3 Reviewed by NOBODY (OOPS!).
5 - replace use of CGCompositeOperation SPI with NSCompositingOperation API
7 * WebCoreSupport.subproj/WebImageData.h:
8 * WebCoreSupport.subproj/WebImageData.m:
9 (-[WebImageData _fillSolidColorInRect:compositeOperation:context:]):
10 (-[WebImageData _PDFDrawFromRect:toRect:operation:alpha:flipped:context:]):
11 * WebCoreSupport.subproj/WebImageRenderer.m:
12 (-[WebImageRenderer drawImageInRect:fromRect:]):
13 (-[WebImageRenderer drawImageInRect:fromRect:compositeOperator:context:]):
14 * WebCoreSupport.subproj/WebImageRendererFactory.m:
15 (-[WebImageRendererFactory CGCompositeOperationInContext:]):
16 (-[WebImageRendererFactory setCGCompositeOperation:inContext:]):
17 (-[WebImageRendererFactory setCGCompositeOperationFromString:inContext:]):
19 2005-06-02 Maciej Stachowiak <mjs@apple.com>
23 - removed dependencies on NSError SPI
25 * Misc.subproj/WebKitErrors.m:
26 (-[NSError _webkit_initWithDomain:code:URL:]):
27 (+[NSError _webkit_errorWithDomain:code:URL:]):
28 (+[NSError _webKitErrorWithDomain:code:URL:]):
29 (+[NSError _webKitErrorWithCode:failingURL:]):
30 (+[NSError _webkit_addErrorsWithCodesAndDescriptions:inDomain:]):
32 * Plugins.subproj/WebNetscapePluginRepresentation.m:
33 * Plugins.subproj/WebNetscapePluginStream.m:
34 * WebCoreSupport.subproj/WebSubresourceClient.m:
35 * WebView.subproj/WebBaseResourceHandleDelegate.m:
36 * WebView.subproj/WebDefaultResourceLoadDelegate.m:
37 * WebView.subproj/WebMainResourceClient.m:
38 (-[WebMainResourceClient didFailWithError:]):
40 2005-06-02 Maciej Stachowiak <mjs@apple.com>
44 - remove use of _cfBundle SPI
46 * Plugins.subproj/WebBasePluginPackage.h:
47 * Plugins.subproj/WebBasePluginPackage.m:
48 (-[WebBasePluginPackage initWithPath:]):
49 (-[WebBasePluginPackage load]):
50 (-[WebBasePluginPackage dealloc]):
51 * Plugins.subproj/WebNetscapePluginPackage.m:
52 (-[WebNetscapePluginPackage openResourceFile]):
53 (-[WebNetscapePluginPackage closeResourceFile:]):
54 (-[WebNetscapePluginPackage initWithPath:]):
55 (-[WebNetscapePluginPackage unloadWithoutShutdown]):
56 (-[WebNetscapePluginPackage load]):
57 * Plugins.subproj/WebPluginPackage.m:
58 (-[WebPluginPackage initWithPath:]):
60 2005-06-02 Maciej Stachowiak <mjs@apple.com>
64 - remove use of NSURLRequest and NSUserDefaults SPI
66 * History.subproj/WebHistoryItem.m:
67 (-[WebHistoryItem _setFormInfoFromRequest:]):
68 * Misc.subproj/WebNSURLRequestExtras.h: Added.
69 * Misc.subproj/WebNSURLRequestExtras.m: Added.
70 (-[NSURLRequest _web_HTTPReferrer]):
71 (-[NSURLRequest _web_HTTPContentType]):
72 (-[NSMutableURLRequest _web_setHTTPContentType:]):
73 (-[NSMutableURLRequest _web_setHTTPReferrer:]):
74 (-[NSMutableURLRequest _web_setHTTPUserAgent:]):
75 * Misc.subproj/WebNSUserDefaultsExtras.h: Added.
76 * Misc.subproj/WebNSUserDefaultsExtras.m: Added.
77 (-[NSString _webkit_HTTPStyleLanguageCode]):
79 (+[NSUserDefaults _ensureAndLockPreferredLanguageLock]):
80 (+[NSUserDefaults _webkit_defaultsDidChange]):
81 (addDefaultsChangeObserver):
82 (+[NSUserDefaults _webkit_addDefaultsChangeObserver]):
83 (+[NSUserDefaults _webkit_preferredLanguageCode]):
84 * Plugins.subproj/WebBaseNetscapePluginView.m:
85 (-[WebBaseNetscapePluginView requestWithURLCString:]):
86 * Plugins.subproj/WebNetscapePluginEmbeddedView.m:
87 (-[WebNetscapePluginEmbeddedView didStart]):
88 * Plugins.subproj/WebNetscapePluginStream.m:
89 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
90 * WebCoreSupport.subproj/WebBridge.m:
91 (-[WebBridge createWindowWithURL:frameName:]):
92 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
93 (-[WebBridge incomingReferrer]):
94 (-[WebBridge createModalDialogWithURL:]):
95 * WebCoreSupport.subproj/WebSubresourceClient.m:
96 (+[WebSubresourceClient startLoadingResource:withRequest:customHeaders:referrer:forDataSource:]):
97 * WebCoreSupport.subproj/WebViewFactory.m:
98 (-[WebViewFactory defaultLanguageCode]):
99 * WebKit.pbproj/project.pbxproj:
100 * WebView.subproj/WebBaseResourceHandleDelegate.m:
101 (-[WebBaseResourceHandleDelegate willSendRequest:redirectResponse:]):
102 * WebView.subproj/WebDefaultContextMenuDelegate.m:
103 (-[WebDefaultUIDelegate openNewWindowWithURL:element:]):
104 * WebView.subproj/WebFrame.m:
105 (-[WebFrame _loadItem:withLoadType:]):
106 (-[WebFrame _addExtraFieldsToRequest:alwaysFromRequest:]):
107 (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
108 (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
109 * WebView.subproj/WebMainResourceClient.m:
110 * WebView.subproj/WebView.m:
111 (-[WebView _cachedResponseForURL:]):
112 (-[WebView userAgentForURL:]):
114 2005-06-02 Maciej Stachowiak <mjs@apple.com>
118 - move private gunk from header to implementation file.
120 * WebCoreSupport.subproj/WebNewKeyGeneration.c:
121 * WebCoreSupport.subproj/WebNewKeyGeneration.h:
123 2005-06-02 Maciej Stachowiak <mjs@apple.com>
127 - remove dependency on NSFileManager and NSCalendarDate private extras from WebFou
129 * History.subproj/WebHistory.m:
130 (-[WebHistoryPrivate findIndex:forDay:]):
131 (-[WebHistoryPrivate arrayRepresentation]):
132 (-[WebHistoryPrivate _loadHistoryGuts:URL:error:]):
133 * Misc.subproj/WebFileDatabase.m:
134 (-[WebFileDatabase _truncateToSizeLimit:]):
135 (-[WebFileDatabase removeAllObjects]):
136 (-[WebFileDatabase performSetObject:forKey:]):
137 (-[WebFileDatabase performRemoveObjectForKey:]):
138 (-[WebFileDatabase open]):
139 * Misc.subproj/WebKitNSStringExtras.m:
140 (-[NSString _webkit_fixedCarbonPOSIXPath]):
141 * Misc.subproj/WebNSCalendarDateExtras.h: Added.
142 * Misc.subproj/WebNSCalendarDateExtras.m: Added.
143 (-[NSCalendarDate _webkit_compareDay:]):
144 * Misc.subproj/WebNSDataExtras.h:
145 * Misc.subproj/WebNSDictionaryExtras.h:
146 * Misc.subproj/WebNSFileManagerExtras.h: Added.
147 * Misc.subproj/WebNSFileManagerExtras.m: Added.
148 (-[NSFileManager _webkit_fileExistsAtPath:isDirectory:traverseLink:]):
149 (-[NSFileManager _webkit_createIntermediateDirectoriesForPath:attributes:]):
150 (-[NSFileManager _webkit_createDirectoryAtPathWithIntermediateDirectories:attributes:]):
151 (-[NSFileManager _webkit_createFileAtPathWithIntermediateDirectories:contents:attributes:directoryAttributes:]):
152 (-[NSFileManager _webkit_removeFileOnlyAtPath:]):
153 (-[NSFileManager _webkit_backgroundRemoveFileAtPath:]):
154 (-[NSFileManager _webkit_backgroundRemoveLeftoverFiles:]):
155 (-[NSFileManager _webkit_carbonPathForPath:]):
156 (-[NSFileManager _webkit_startupVolumeName]):
157 (-[NSFileManager _webkit_pathWithUniqueFilenameForPath:]):
158 * Plugins.subproj/WebBaseNetscapePluginStream.m:
159 * WebKit.pbproj/project.pbxproj:
160 * WebView.subproj/WebHTMLView.m:
161 (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]):
162 * WebView.subproj/WebImageView.m:
163 (-[WebImageView namesOfPromisedFilesDroppedAtDestination:]):
165 2005-06-02 Maciej Stachowiak <mjs@apple.com>
169 - remove dependencies on NSDictionary and NSURL extras
171 * History.subproj/WebHistoryItem.m:
172 (-[WebHistoryItem initFromDictionaryRepresentation:]):
173 * Misc.subproj/WebKitNSStringExtras.h:
174 * Misc.subproj/WebKitNSStringExtras.m:
175 (-[NSString _webkit_hasCaseInsensitiveSuffix:]):
176 (-[NSString _webkit_hasCaseInsensitiveSubstring:]):
177 (-[NSString _webkit_filenameByFixingIllegalCharacters]):
178 * Misc.subproj/WebNSDictionaryExtras.h: Added.
179 * Misc.subproj/WebNSDictionaryExtras.m: Added.
180 (-[NSDictionary _webkit_numberForKey:]):
181 (-[NSDictionary _webkit_intForKey:]):
182 (-[NSDictionary _webkit_stringForKey:]):
183 (-[NSDictionary _webkit_objectForMIMEType:]):
184 (-[NSMutableDictionary _webkit_setObject:forUncopiedKey:]):
185 (-[NSMutableDictionary _webkit_setInt:forKey:]):
186 (-[NSMutableDictionary _webkit_setBool:forKey:]):
187 * Misc.subproj/WebNSPasteboardExtras.m:
188 * Misc.subproj/WebNSURLExtras.h:
189 * Misc.subproj/WebNSURLExtras.m:
190 (-[NSURL _webkit_URLByRemovingFragment]):
191 (-[NSURL _webkit_scriptIfJavaScriptURL]):
192 (-[NSURL _webkit_isFileURL]):
193 (-[NSURL _web_hostString]):
194 (-[NSURL _webkit_suggestedFilenameWithMIMEType:]):
195 * Misc.subproj/WebNSViewExtras.m:
196 * Panels.subproj/WebPanelAuthenticationHandler.m:
197 * Plugins.subproj/WebBaseNetscapePluginStream.m:
198 * Plugins.subproj/WebBaseNetscapePluginView.m:
199 (-[WebBaseNetscapePluginView evaluateJavaScriptPluginRequest:]):
200 (-[WebBaseNetscapePluginView loadPluginRequest:]):
201 (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]):
202 * Plugins.subproj/WebPluginController.m:
203 (-[WebPluginController webPlugInContainerLoadRequest:inFrame:]):
204 * WebCoreSupport.subproj/WebBridge.m:
205 * WebKit.pbproj/project.pbxproj:
206 * WebView.subproj/WebDataSource.m:
207 * WebView.subproj/WebFrame.m:
208 * WebView.subproj/WebFrameView.m:
209 * WebView.subproj/WebHTMLView.m:
210 * WebView.subproj/WebPreferences.m:
211 (-[WebPreferences _setIntegerValue:forKey:]):
212 (-[WebPreferences _setBoolValue:forKey:]):
213 * WebView.subproj/WebResource.m:
214 (-[WebResource _initWithPropertyList:]):
215 (-[WebResource _fileWrapperRepresentation]):
216 * WebView.subproj/WebView.m:
218 2005-06-02 Maciej Stachowiak <mjs@apple.com>
222 - remove dependencies on NSString and NSData extras from Foundation
224 * Misc.subproj/WebKitNSStringExtras.h:
225 * Misc.subproj/WebKitNSStringExtras.m:
226 (-[NSString _webkit_isCaseInsensitiveEqualToString:]):
227 (-[NSString _webkit_hasCaseInsensitivePrefix:]):
228 (-[NSString _webkit_stringByTrimmingWhitespace]):
229 (-[NSString _webkit_stringByCollapsingNonPrintingCharacters]):
230 (-[NSString _webkit_fixedCarbonPOSIXPath]):
231 * Misc.subproj/WebNSDataExtras.h:
232 * Misc.subproj/WebNSDataExtras.m:
233 (-[NSString _web_capitalizeRFC822HeaderFieldName]):
234 (-[NSData _web_isCaseInsensitiveEqualToCString:]):
236 (-[NSData _web_parseRFC822HeaderFields]):
237 (-[NSData _webkit_guessedMIMETypeForXML]):
238 (-[NSData _webkit_guessedMIMEType]):
239 * Misc.subproj/WebNSPasteboardExtras.m:
240 (-[NSPasteboard _web_bestURL]):
241 * Misc.subproj/WebNSURLExtras.h:
242 * Misc.subproj/WebNSURLExtras.m:
243 (applyHostNameFunctionToURLString):
244 (+[NSURL _web_URLWithUserTypedString:relativeToURL:]):
245 (+[NSURL _web_URLWithDataAsString:relativeToURL:]):
246 (-[NSURL _webkit_shouldLoadAsEmptyDocument]):
247 (-[NSString _webkit_isJavaScriptURL]):
248 (-[NSString _webkit_isFileURL]):
249 (-[NSString _webkit_isFTPDirectoryURL]):
250 (-[NSString _web_encodeHostName]):
251 (-[NSString _webkit_rangeOfURLScheme]):
252 (-[NSString _webkit_looksLikeAbsoluteURL]):
253 (-[NSString _webkit_URLFragment]):
254 * Misc.subproj/WebNSViewExtras.m:
255 * Plugins.subproj/WebBaseNetscapePluginView.m:
256 (-[WebBaseNetscapePluginView _postURL:target:len:buf:file:notifyData:sendNotification:allowHeaders:]):
257 * Plugins.subproj/WebPluginDatabase.m:
258 * WebCoreSupport.subproj/WebBridge.m:
259 (-[WebBridge setTitle:]):
260 * WebView.subproj/WebDataSource.m:
261 (-[WebDataSource _setTitle:]):
262 * WebView.subproj/WebFrame.m:
263 (-[WebFrame _loadItem:withLoadType:]):
264 * WebView.subproj/WebPreferences.m:
265 (-[WebPreferences userStyleSheetLocation]):
266 * WebView.subproj/WebView.m:
267 (+[WebView _MIMETypeForFile:]):
269 2005-06-02 Maciej Stachowiak <mjs@apple.com>
273 - first stage of cleaning up SPI usage in WebKit
275 * Carbon.subproj/CarbonUtils.m:
276 * DOM.subproj/WebDOMOperations.m:
277 (-[DOMHTMLLinkElement _subresourceURLs]):
278 (-[DOMHTMLParamElement _subresourceURLs]):
279 * History.subproj/WebHistoryItem.m:
280 (-[WebHistoryItem _setFormInfoFromRequest:]):
281 * Misc.subproj/WebDatabase.m:
282 (-[WebDatabase setObject:forKey:]):
283 (-[WebDatabase removeObjectForKey:]):
284 (-[WebDatabase removeAllObjects]):
285 (-[WebDatabase objectForKey:]):
286 (-[WebDatabase open]):
287 (-[WebDatabase close]):
288 (-[WebDatabase sync]):
289 (-[WebDatabase count]):
290 (-[WebDatabase setSizeLimit:]):
291 * Misc.subproj/WebIconDatabase.m:
292 (-[WebIconDatabase iconForURL:withSize:cache:]):
293 (-[WebIconDatabase _iconForFileURL:withSize:]):
294 * Misc.subproj/WebKitNSStringExtras.h:
295 * Misc.subproj/WebKitNSStringExtras.m:
296 (+[NSString _web_encodingForResource:]):
297 (-[NSString _webkit_isCaseInsensitiveEqualToString:]):
298 * Misc.subproj/WebNSEventExtras.h:
299 * Misc.subproj/WebNSEventExtras.m:
300 (-[NSEvent _web_isTabKeyEvent]):
301 * Misc.subproj/WebNSURLExtras.h:
302 * Misc.subproj/WebNSURLExtras.m:
303 (-[NSURL _webkit_isFileURL]):
304 (-[NSString _webkit_isJavaScriptURL]):
305 (-[NSString _webkit_isFileURL]):
306 * Panels.subproj/WebPanelAuthenticationHandler.m:
307 (-[NSMutableDictionary _webkit_setObject:forUncopiedKey:]):
308 (-[WebPanelAuthenticationHandler enqueueChallenge:forWindow:]):
309 (-[WebPanelAuthenticationHandler startAuthentication:window:]):
310 * Plugins.subproj/WebBaseNetscapePluginView.m:
311 * Plugins.subproj/WebBasePluginPackage.m:
312 (-[WebBasePluginPackage isQuickTimePlugIn]):
313 (-[WebBasePluginPackage isJavaPlugIn]):
314 * Plugins.subproj/WebPluginPackage.m:
315 (-[WebPluginPackage initWithPath:]):
316 * WebCoreSupport.subproj/WebBridge.m:
317 (-[WebBridge canTargetLoadInFrame:]):
318 (-[WebBridge valueForKey:keys:values:]):
319 * WebCoreSupport.subproj/WebGlyphBuffer.m:
320 * WebCoreSupport.subproj/WebImageDecodeItem.h:
321 * WebCoreSupport.subproj/WebImageDecodeItem.m:
322 * WebCoreSupport.subproj/WebImageDecoder.h:
323 * WebCoreSupport.subproj/WebImageDecoder.m:
324 * WebCoreSupport.subproj/WebTextRenderer.h:
326 * WebView.subproj/WebBaseResourceHandleDelegate.m:
327 (-[WebBaseResourceHandleDelegate _canUseResourceForRequest:]):
328 * WebView.subproj/WebDataProtocol.m:
329 (+[WebDataProtocol _webIsDataProtocolURL:]):
330 * WebView.subproj/WebFrame.m:
331 (-[WebFrame _shouldAllowAccessFrom:]):
332 (-[WebFrame reload]):
333 * WebView.subproj/WebHTMLRepresentation.m:
334 (-[WebHTMLRepresentation _isDisplayingWebArchive]):
335 * WebView.subproj/WebMainResourceClient.m:
336 (-[WebMainResourceClient continueAfterContentPolicy:response:]):
337 (-[WebMainResourceClient didReceiveResponse:]):
338 * WebView.subproj/WebPDFView.m:
339 * WebView.subproj/WebView.m:
340 (+[WebView _MIMETypeForFile:]):
342 2005-06-01 Darin Adler <darin@apple.com>
344 Reviewed by John Sullivan.
346 - WebKit part of fix for <rdar://problem/3166090> add IE JavaScript extension window.showModalDialog
348 * WebCoreSupport.subproj/WebBridge.m:
349 (-[WebBridge createModalDialogWithURL:]): Added. Calls the UI delegate, falling back to the generic
350 "create WebView" method.
351 (-[WebBridge canRunModal]): Added. Checks the UI delegate to see if it implements runModal.
352 (-[WebBridge canRunModalNow]): Added. Checks the "inConnectionCallback" field so we can prevent
353 deadlock since we can't do any I/O while inside a connection callback until this aspect of NSURLConnection
355 (-[WebBridge runModal]): Added. Sets "defersCallbacks" on all other web views in the group, then
356 calls runModal on the UI delegate.
358 * WebView.subproj/WebBaseResourceHandleDelegate.h: Added inConnectionCallback class method.
359 * WebView.subproj/WebBaseResourceHandleDelegate.m:
360 (-[WebBaseResourceHandleDelegate connection:willSendRequest:redirectResponse:]): Bump count and then
361 decrement count so we can tell if we are in a callback.
362 (-[WebBaseResourceHandleDelegate connection:didReceiveAuthenticationChallenge:]): Ditto.
363 (-[WebBaseResourceHandleDelegate connection:didCancelAuthenticationChallenge:]): Ditto.
364 (-[WebBaseResourceHandleDelegate connection:didReceiveResponse:]): Ditto.
365 (-[WebBaseResourceHandleDelegate connection:didReceiveData:lengthReceived:]): Ditto.
366 (-[WebBaseResourceHandleDelegate connection:willStopBufferingData:]): Ditto.
367 (-[WebBaseResourceHandleDelegate connectionDidFinishLoading:]): Ditto.
368 (-[WebBaseResourceHandleDelegate connection:didFailWithError:]): Ditto.
369 (-[WebBaseResourceHandleDelegate connection:willCacheResponse:]): Ditto.
370 (+[WebBaseResourceHandleDelegate inConnectionCallback]): Added. Return YES if count is not 0.
372 * WebView.subproj/WebMainResourceClient.m:
373 (-[WebMainResourceClient receivedError:]): Changed to use the method without the connection: parameter
374 in the base class, since we no longer are overriding the connection: version.
375 (-[WebMainResourceClient willSendRequest:redirectResponse:]): Change to override the version without
376 the connection prefix/parameter; now only the base class overrides the actual connection delegate methods.
377 (-[WebMainResourceClient continueAfterContentPolicy:response:]): Ditto.
378 (-[WebMainResourceClient didReceiveResponse:]): Ditto.
379 (-[WebMainResourceClient didReceiveData:lengthReceived:]): Ditto.
380 (-[WebMainResourceClient didFinishLoading]): Ditto.
381 (-[WebMainResourceClient didFailWithError:]): Ditto.
382 (-[WebMainResourceClient loadWithRequestNow:]): Call the method without the connection parameter.
384 * WebView.subproj/WebUIDelegatePrivate.h: Added new SPI here that WebBrowser implements.
386 2005-05-26 Darin Adler <darin@apple.com>
390 - fix build failure from when I removed WebCoreUnicode
392 * WebCoreSupport.subproj/WebTextRenderer.m: Removed import of WebUnicode.h that I missed.
393 (-[WebTextRenderer _convertUnicodeCharacters:length:toGlyphs:]): Switch from our own macros
394 to the ICU macros for surrogate pairs.
395 (widthForNextCharacter): Ditto.
397 2005-05-26 David Harrison <harrison@apple.com>
399 <rdar://problem/4120518> Mail: control-T in an empty message crashes mail
401 * WebCoreSupport.subproj/WebBridge.m:
402 (-[WebBridge issueTransposeCommand]):
403 New, to support transpose in JS.
405 2005-05-26 Darin Adler <darin@apple.com>
407 Reviewed by Richard and Dave Harrison.
409 - eliminate WebCoreUnicode and use ICU directly instead
411 * Misc.subproj/WebKitNSStringExtras.m: (canUseFastRenderer): Use u_charDirection directly.
412 * WebCoreSupport.subproj/WebTextRenderer.m: Removed import of <WebCore/WebCoreUnicode.h>.
413 * WebView.subproj/WebHTMLView.m: (+[WebHTMLView initialize]): Removed call to WebKitInitializeUnicode.
415 * Misc.subproj/WebUnicode.h: Removed.
416 * Misc.subproj/WebUnicode.m: Removed.
417 * Misc.subproj/WebUnicodeTables.m: Removed.
419 * WebKit.pbproj/project.pbxproj: Removed files.
421 2005-05-24 Richard Williamson <rjw@apple.com>
423 Fixed <rdar://problem/4097289> -[WebView elementAtPoint:] failing when WebView is nested and offset
425 Code to determine the correct frame under the window point was
426 converting the point incorrectly.
430 * WebView.subproj/WebView.m:
431 (-[WebView _frameViewAtWindowPoint:]):
433 2005-05-23 John Sullivan <sullivan@apple.com>
437 - WebKit part of <rdar://problem/4125783> WebKit needs a way to control whether textareas are resizable
439 * WebView.subproj/WebPreferencesPrivate.h:
440 added private-for-now getter and setter for new preference
441 * WebView.subproj/WebPreferenceKeysPrivate.h:
442 added private preference key controlling whether textareas are resizable
443 * WebView.subproj/WebPreferences.m:
444 (+[WebPreferences initialize]):
445 initial value of new preference is NO, so other clients' behavior doesn't change
446 (-[WebPreferences textAreasAreResizable]):
448 (-[WebPreferences setTextAreasAreResizable:]):
451 * WebView.subproj/WebView.m:
452 (-[WebView _updateWebCoreSettingsFromPreferences:]):
453 update this new setting in WebCore
455 * English.lproj/StringsNotToBeLocalized.txt:
456 updated for these changes
458 2005-05-23 Chris Blumenberg <cblu@apple.com>
460 Changed type for identifier parameter in WebResourceLoadDelegate-related calls to id from NSString.
464 * WebCoreSupport.subproj/WebBridge.m:
465 (-[WebBridge objectLoadedFromCacheWithURL:response:data:]):
466 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
467 * WebView.subproj/WebFrame.m:
468 (-[WebFrame _opened]):
469 (-[WebFrame _requestFromDelegateForRequest:identifier:error:]):
470 (-[WebFrame _sendRemainingDelegateMessagesWithIdentifier:response:length:error:]):
471 (-[WebFrame _saveResourceAndSendRemainingDelegateMessagesWithRequest:identifier:response:data:error:]):
472 * WebView.subproj/WebFrameInternal.h:
474 2005-05-20 Chris Blumenberg <cblu@apple.com>
476 Fixed: <rdar://problem/4098786> sync. XMLHttpRequest works w/o AllowNetworkAccess key because load delegate is not consulted
478 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.
480 Reviewed by sullivan.
482 * WebCoreSupport.subproj/WebBridge.m:
483 (-[WebBridge objectLoadedFromCacheWithURL:response:data:]): call [WebFrame _requestFromDelegateForRequest:identifier:error:] then
484 [WebFrame _saveResourceAndSendRemainingDelegateMessagesWithRequest:identifier:response:data:error:] so synthetic resource load delegate
485 methods are called and the data is saved as a WebResource for resources in the WebCore cache.
487 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]): call [WebFrame _requestFromDelegateForRequest:identifier:error:],
488 respect its result, do the load and then call [WebFrame _saveResourceAndSendRemainingDelegateMessagesWithRequest:identifier:response:data:error:]
489 for synchronous loads
491 * WebView.subproj/WebFrame.m:
492 (-[WebFrame _opened]): call [WebFrame _requestFromDelegateForRequest:identifier:error:] then
493 [WebFrame _sendRemainingDelegateMessagesWithIdentifier:response:length:error:] so synthetic resource load delegate methods are called
494 for subresrources in the page cache
496 (-[WebFrame _requestFromDelegateForRequest:identifier:error:]): new, was part of the removed _sendResourceLoadDelegateMessagesForURL:::
497 This method calls identifierForInitialRequest and willSendRequest.
499 (-[WebFrame _sendRemainingDelegateMessagesWithIdentifier:response:length:error:]): new, was part of the removed _sendResourceLoadDelegateMessagesForURL:::
500 This method calls the remaining resource load delegate messages.
502 (-[WebFrame _saveResourceAndSendRemainingDelegateMessagesWithRequest:identifier:response:data:error:]): new, saves the resource and calls
503 [WebFrame _sendRemainingDelegateMessagesWithIdentifier:response:length:error:]
505 * WebView.subproj/WebFrameInternal.h:
507 2005-05-17 Chris Blumenberg <cblu@apple.com>
509 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
513 * WebCoreSupport.subproj/WebBridge.m:
514 (-[WebBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]): pass the passed referrer to canLoadURL::: not [self referrer]
515 (-[WebBridge postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]): ditto
516 * WebView.subproj/WebTextView.m:
517 (-[WebTextView clickedOnLink:atIndex:]): call the loadURL bridge method so that security checks are made, command/option clicks work, policy delegate is consulted etc.
519 2005-05-17 Chris Blumenberg <cblu@apple.com>
521 Fixed: <rdar://problem/4120255> web archives on remote servers can be viewed directly (with major security issues); should download instead
525 * WebView.subproj/WebBaseResourceHandleDelegate.h:
526 * WebView.subproj/WebMainResourceClient.m:
527 (-[WebMainResourceClient continueAfterContentPolicy:response:]): if the WebKit client has chosen to "use" a remote web archive, stop the load with an error
529 2005-05-16 Darin Adler <darin@apple.com>
531 - attempt to get things building under "Saffron" development tools
533 * WebKit.pbproj/project.pbxproj: Use BUILT_PRODUCTS_DIR instead of SYMROOT.
535 2005-05-13 John Sullivan <sullivan@apple.com>
539 - fixed <rdar://problem/4093306> Safari crashes if Esc key is held down during series
540 of authentication sheets
542 * Panels.subproj/WebAuthenticationPanel.m:
543 (-[WebAuthenticationPanel cancel:]):
544 retain and autorelease self. This is a workaround for an AppKit key-handling issue, which I wrote up as:
545 <rdar://problem/4118422> Key-down events can be sent to a closed window if a key is kept pressed down
547 2005-05-12 John Sullivan <sullivan@apple.com>
551 - rolled in changes from experimental-ui-branch to support resizable textareas
552 and find-as-you-type and confirming unsubmitted form changes. The files/functions
553 modified are listed just below. After that are the ChangeLog comments from the branch.
555 * WebCoreSupport.subproj/WebBridge.m:
556 (-[WebBridge textDidChange:]):
557 * WebView.subproj/WebFormDelegate.h:
558 * WebView.subproj/WebFormDelegate.m:
559 (-[WebFormDelegate textDidChange:inFrame:]):
560 * WebView.subproj/WebHTMLView.m:
561 (-[WebHTMLView maintainsInactiveSelection]):
562 (-[WebHTMLView searchFor:direction:caseSensitive:wrap:]):
563 (-[WebHTMLView _searchFor:direction:caseSensitive:wrap:findInSelection:]):
564 * WebView.subproj/WebView.m:
565 (-[WebView _searchFor:direction:caseSensitive:wrap:findInSelection:]):
566 (-[WebView searchFor:direction:caseSensitive:wrap:]):
567 (-[WebView makeTextStandardSize:]):
568 (-[WebView maintainsInactiveSelection]):
569 * WebView.subproj/WebViewPrivate.h:
571 2005-04-18 John Sullivan <sullivan@apple.com>
573 WebKit support for notifying a form delegate when a
574 textarea's contents have changed (as opposed to a
575 textfield, which was already handled).
579 * WebView.subproj/WebFormDelegate.h:
580 * WebView.subproj/WebFormDelegate.m:
581 (-[WebFormDelegate textDidChange:inFrame:]):
582 new form delegate method
584 * WebCoreSupport.subproj/WebBridge.m:
585 (-[WebBridge textDidChange:]):
586 new method, calls through to form delegate
588 2005-04-11 John Sullivan <sullivan@apple.com>
590 Fixed inability to wrap around in Find in Page
592 * WebView.subproj/WebView.m:
593 (-[WebView _searchFor:direction:caseSensitive:wrap:findInSelection:]):
594 changed wrapFlag from NO to YES on two lines (copy/paste error)
596 2005-04-07 John Sullivan <sullivan@apple.com>
598 WebKit support for find-as-you-type. Needed an additional parameter on
599 a method from WebDocumentSearching protocol. Since that's a public protocol,
600 I couldn't just add the parameter. For now I hacked it with an undeclared
601 internal method that's discovered via respondsToSelector. Probably the right
602 long-term approach is to deprecate the WebDocumentSearching protocol and introduce
603 a replacement that has a more flexible set of parameters for possible future
606 Reviewed by Dave Hyatt.
608 * WebView.subproj/WebHTMLView.m:
609 (-[WebHTMLView searchFor:direction:caseSensitive:wrap:]):
610 now calls new one-more-parameter version passing NO for new parameter to match old behavior
611 (-[WebHTMLView _searchFor:direction:caseSensitive:wrap:findInSelection:]):
612 new method, adds findInSelection parameter and passes it through to bridge
614 * WebView.subproj/WebView.m:
615 (-[WebView searchFor:direction:caseSensitive:wrap:]):
616 now calls new one-more-parameter version passing NO for new parameter to match old behavior
617 (-[WebView _searchFor:direction:caseSensitive:wrap:findInSelection:]):
618 new method, adds findInSelection parameter and passes it through
620 2005-04-07 John Sullivan <sullivan@apple.com>
622 WebKit support to allow clients to control whether the selection is still
623 drawn when the first responder is elsewhere. Formerly this was hardwired
624 to be true only when -[WebView isEditable] was true.
628 * WebView.subproj/WebHTMLView.m:
629 (-[WebHTMLView maintainsInactiveSelection]):
630 check [WebView maintainsInactiveSelection] rather than just [WebView isEditable]
632 * WebView.subproj/WebViewPrivate.h:
633 * WebView.subproj/WebView.m:
634 (-[WebView maintainsInactiveSelection]):
635 new method for clients to override, returns -[self isEditable]
638 2005-05-10 John Sullivan <sullivan@apple.com>
642 - WebKit support for <rdar://problem/3795701> Menu item/keyboard shortcut to
643 restore text zoom to normal
645 * WebView.subproj/WebView.m:
646 (-[WebView validateUserInterfaceItem:]):
647 validate makeTextStandardSize by calling canMakeTextStandardSize
648 (-[WebView canMakeTextStandardSize]):
649 new method, returns YES unless text size multiplier is currently 1
650 (-[WebView makeTextStandardSize:]):
651 new method, sets text size multiplier to 1
653 * WebView.subproj/WebViewPrivate.h:
654 add makeTextStandardSize: and canMakeTextStandardSize to pending public category
656 2005-05-10 John Sullivan <sullivan@apple.com>
660 - fixed <rdar://problem/4067981> Mail places RTF flavor before RTFD flavor when dragging
661 mixed image/text content.
663 * WebView.subproj/WebHTMLView.m:
664 (+[WebHTMLView _selectionPasteboardTypes]):
665 put RTFD type before RTF type in array of types to declare
667 2005-05-09 Chris Blumenberg <cblu@apple.com>
669 Turned assertion into error message to prevent crash when encountering this bug:
670 <rdar://problem/4067625> connection:willCacheResponse: is called inside of [NSURLConnection initWithRequest:delegate:]
672 * WebView.subproj/WebBaseResourceHandleDelegate.h:
673 * WebView.subproj/WebBaseResourceHandleDelegate.m:
674 (-[WebBaseResourceHandleDelegate loadWithRequest:]): set flag to track when we're initializing the connection
675 (-[WebBaseResourceHandleDelegate connection:willCacheResponse:]): log error
677 2005-05-09 Darin Adler <darin@apple.com>
679 * Makefile.am: Don't set up PBXIntermediatesDirectory explicitly;
680 Not needed to make builds work, spews undesirable error messages too.
682 2005-05-06 Darin Adler <darin@apple.com>
686 - make building multiple trees with make work better
688 * Makefile.am: Set up Xcode build directory before invoking xcodebuild.
690 2005-05-04 Darin Adler <darin@apple.com>
692 Reviewed by Dave Hyatt.
696 * WebKit.pbproj/project.pbxproj: Set deployment target to 10.3 in the build styles.
697 When built without a build style (by Apple B&I) we want to get the target from the
698 environment. But when built with a build style (by Safari engineers and others), we want
699 to use 10.3. Because our deployment target was not set, we ran into this bug:
701 <rdar://problem/4108717> CTFontGetGlyphWithName doesn't work with some strings
703 * Makefile.am: Took out extra parameters that make command-line building different from
704 Xcode building. Now that this is fixed, you should not get a full rebuild if you switch
705 from command line to Xcode or back.
707 2005-05-04 Chris Blumenberg <cblu@apple.com>
710 <rdar://problem/4078417> REGRESSION (125-412): MLB gameday page doesn't update (Flash)
711 <rdar://problem/4072280> XMLHttpRequest calls onReadyStateChange callback with bogus status value
715 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.
717 * WebCoreSupport.subproj/WebBridge.m:
718 (-[WebBridge objectLoadedFromCacheWithURL:response:data:]): call new [WebResource _initWithData:URL:response:]
719 * WebView.subproj/WebBaseResourceHandleDelegate.m:
720 (-[WebBaseResourceHandleDelegate _canUseResourceWithResponse:]): new, checks response cache directives
721 (-[WebBaseResourceHandleDelegate loadWithRequest:]): call _canUseResourceWithResponse:
722 (-[WebBaseResourceHandleDelegate saveResource]): call new [WebResource _initWithData:URL:response:]
723 * WebView.subproj/WebResource.m:
724 (-[WebResourcePrivate dealloc]):
725 (-[WebResource initWithData:URL:MIMEType:textEncodingName:frameName:]): call renamed _initWithData:URL:MIMEType:textEncodingName:frameName:response:copyData:
726 (-[WebResource initWithCoder:]): decode the NSURLReponse
727 (-[WebResource encodeWithCoder:]): encode the NSURLReponse
728 (-[WebResource _initWithData:URL:MIMEType:textEncodingName:frameName:response:copyData:]): take the NSURLReponse
729 (-[WebResource _initWithData:URL:response:]): new
730 (-[WebResource _initWithPropertyList:]): decode the NSURLReponse
731 (-[WebResource _propertyListRepresentation]): encode the NSURLReponse
732 (-[WebResource _response]): return ivar if we have one
733 * WebView.subproj/WebResourcePrivate.h:
735 2005-05-03 David Hyatt <hyatt@apple.com>
737 Fix object element support so that fallback content works. With this change Safari passes the Acid2 test.
741 * WebCoreSupport.subproj/WebBridge.m:
742 (-[WebBridge determineObjectFromMIMEType:URL:]):
743 * WebView.subproj/WebDataSource.m:
744 (-[WebDataSource _receivedMainResourceError:complete:]):
745 * WebView.subproj/WebMainResourceClient.m:
746 (-[WebMainResourceClient continueAfterContentPolicy:response:]):
748 2005-05-03 Darin Adler <darin@apple.com>
750 * WebView.subproj/WebUIDelegate.h: Fixed incorrect comment.
753 2005-05-01 Darin Adler <darin@apple.com>
755 - move to Xcode native targets and stop checking in generated files
757 * WebKit.pbproj/project.pbxproj: Updated to use native targets and generate all the generated
758 files, so we don't have to check them in any more.
759 * Info.plist: Added. Native targets use a separate file for this.
761 * Plugins.subproj/npapi.m: Fixed import statement to get npapi.h from <WebKit/> rather than current directory.
763 * Makefile.am: Removed timestamp cleaning rules since we don't use it any more.
765 * .cvsignore: Removed various timestamp files.
767 * DOM.subproj/DOM-compat.h: Removed.
768 * DOM.subproj/DOM.h: Removed.
769 * DOM.subproj/DOMCSS.h: Removed.
770 * DOM.subproj/DOMCore.h: Removed.
771 * DOM.subproj/DOMEvents.h: Removed.
772 * DOM.subproj/DOMExtensions.h: Removed.
773 * DOM.subproj/DOMHTML.h: Removed.
774 * DOM.subproj/DOMPrivate.h: Removed.
775 * DOM.subproj/DOMRange.h: Removed.
776 * DOM.subproj/DOMStylesheets.h: Removed.
777 * DOM.subproj/DOMTraversal.h: Removed.
778 * DOM.subproj/DOMViews.h: Removed.
779 * Plugins.subproj/WebScriptObject.h: Removed.
780 * Plugins.subproj/npapi.h: Removed.
781 * Plugins.subproj/npruntime.h: Removed.
782 * copy-webcore-files-to-webkit: Removed.
783 * embed-frameworks.sh: Removed.
784 * force-clean-timestamp: Removed.
786 2005-04-28 Darin Adler <darin@apple.com>
790 - fixed problems preventing us from compiling with gcc 4.0
792 * WebKit.pbproj/project.pbxproj: Removed -fobjc-exceptions because I can't figure out an easy
793 way to pass it only when compiling Objective-C/C++. Removed -Wmissing-prototypes from
794 WARNING_CPLUSPLUSFLAGS since it's now a C-only warning.
796 * History.subproj/WebHistoryItem.m: (-[WebHistoryItem pageCache]): Changed return type
797 to match the declaration.
798 * WebCoreSupport.subproj/WebBridge.m: (-[WebBridge _retrieveKeyboardUIModeFromPreferences:]):
799 Fixed a BOOL that should have been a Boolean.
800 * WebCoreSupport.subproj/WebTextRenderer.m: Removed redundant copy of ROUND_TO_INT, also in
802 (-[WebTextRenderer _computeWidthForSpace]): Had to add cast because of difference in type of
803 ROUND_TO_INT vs. CEIL_TO_INT.
804 (pathFromFont): Added a cast to convert UInt8 * to char *.
805 * WebView.subproj/WebFrameView.m:
806 (-[WebFrameView _setDocumentView:]): Fixed parameter type to match the declaration.
807 (-[WebFrameView documentView]): Fixed return type to match the declaration.
808 * WebView.subproj/WebHTMLView.m:
809 (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
810 Initialized a variable to quiet an incorrect gcc 4.0 uninitialized variable warning.
811 (-[WebHTMLView deleteToMark:]): Switched from @try style to NS_DURING style of exception handler
812 because we can't pass -fobjc-exceptions just to Objective-C at the moment (see above).
813 (-[WebHTMLView selectToMark:]): Ditto.
814 (-[WebHTMLView swapWithMark:]): Ditto.
816 2005-04-27 John Sullivan <sullivan@apple.com>
818 Reviewed by Dave Harrison.
820 - fixed <rdar://problem/3547489> pop-up window blocking preference and
821 menu item can easily get out of sync.
823 * WebView.subproj/WebPreferences.m:
824 (-[WebPreferences _setStringValue:forKey:]):
825 save local value before setting value in NSUserDefaults, so clients reacting to NSUserDefaults
826 change notification but calling back on WebPreferences API will see the updated value.
827 (-[WebPreferences _setIntegerValue:forKey:]):
829 (-[WebPreferences _setBoolValue:forKey:]):
832 2005-04-26 Richard Williamson <rjw@apple.com>
834 Fixed <rdar://problem/4098713> Scripting API is incompatible with Mozilla
838 * Plugins.subproj/npfunctions.h:
839 * Plugins.subproj/npruntime.h:
841 2005-04-26 Darin Adler <darin@apple.com>
845 - fixed <rdar://problem/3655817> please add support for mouse wheel events and the onmousewheel handler
847 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView scrollWheel:]): Call sendScrollWheelEvent: method
848 instead of the old scrollOverflowWithScrollWheelEvent: (just a name change).
850 2005-04-18 Darin Adler <darin@apple.com>
854 - fixed <rdar://problem/4092614> REGRESSION (Tiger): progressively loaded background images "scroll around" instead of just appearing
856 * WebCoreSupport.subproj/WebImageData.m:
857 (-[WebImageData _imageSourceOptions]): Moved a global inside this function, since it's only used here.
858 (-[WebImageData _cacheImages:allImages:]): Fixed a sizeof that was getting the size of the wrong thing.
859 (-[WebImageData _isSizeAvailable]): Used calloc in a more consistent way.
860 (drawPattern): Removed an unneeded cast.
861 (-[WebImageData tileInRect:fromPoint:context:]): Here's the actual bug fix. Don't use the image size
862 when deciding whether the image needs to be tiled as a pattern nor when creating the pattern: in both
863 cases, use the tile size. The old way was wrong, and the new way works perfectly. Also removed uneeded
864 error message when the image is not yet loaded enough to create a CGImageRef for it -- it's fine to
865 draw nothing in that case.
867 2005-04-14 John Sullivan <sullivan@apple.com>
871 * WebView.subproj/WebBaseResourceHandleDelegate.m:
872 (-[WebBaseResourceHandleDelegate connection:willCacheResponse:]):
873 Beefed up assertion that's been bugging me and Chris to include
874 the two troublemaking values.
876 2005-04-05 David Hyatt <hyatt@apple.com>
878 Fix for 4077106, wheel scroll amount smaller in Tiger. All along wheeling should have been 4x the default
879 line height of 10 (just as arrow keys did). Scroll arrows should have done this too for scroll views (they did
880 already for overflow sections). This patch puts the override into the scrollview itself, and removes the
881 multipliers in the private frame methods.
885 * WebView.subproj/WebFrameView.m:
886 (-[WebFrameView _verticalKeyboardScrollDistance]):
887 (-[WebFrameView initWithFrame:]):
888 (-[WebFrameView _horizontalKeyboardScrollDistance]):
892 2005-03-31 Chris Blumenberg <cblu@apple.com>
894 Fixed: <rdar://problem/4070729> REGRESSION (125-311, Panther-only?): Safari crashes while reloading "My eBay" page
898 * WebView.subproj/WebBaseResourceHandleDelegate.m:
899 (-[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
905 2005-03-23 Richard Williamson <rjw@apple.com>
907 Use Patti Yeh's hack to determine the appropriate rectangle
908 to place the "associated word" window.
909 If there is no marked text firstRectForCharacterRange: will
910 use the selected range to determine the returned rectangle,
911 ignoring the input range. This is the fix from
912 4029491 that I previously backed out.
916 * WebView.subproj/WebHTMLView.m:
917 (-[WebHTMLView firstRectForCharacterRange:]):
919 2005-03-23 Richard Williamson <rjw@apple.com>
921 Fixed <rdar://problem/4062490> REGRESSION (WebKit-408): no subresources reported in Activity window after going back at hrweb.apple.com
923 Stop collecting subresource responses after the document
924 had loaded, not after it has been opened.
928 * WebView.subproj/WebFrame.m:
929 (-[WebFrame _setState:]):
930 (-[WebFrame _opened]):
932 2005-03-21 Maciej Stachowiak <mjs@apple.com>
936 <rdar://problem/4051145> The QuickTime Cocoa plug-in needs an SPI that it can call to check for URL policy
938 * Plugins.subproj/WebPluginContainerCheck.h: Added.
939 * Plugins.subproj/WebPluginContainerCheck.m: Added this new helper class to encapsulate
940 an async plugin navigation check.
941 (+[WebPluginContainerCheck checkWithRequest:target:resultObject:selector:controller:]): Convenience allocator that gives autoreleased value.
942 (-[WebPluginContainerCheck initWithRequest:target:resultObject:selector:controller:]): Initializer.
943 (-[WebPluginContainerCheck finalize]): Just assert that we're done, it would
944 be bad to deallocate this object while request is still outstanding.
945 (-[WebPluginContainerCheck dealloc]): Ditto.
946 (-[WebPluginContainerCheck _continueWithPolicy:]): Method to continue after async
948 (-[WebPluginContainerCheck _isDisallowedFileLoad]): Do "file: URL from remote content"
950 (-[WebPluginContainerCheck _actionInformationWithURL:]): Helper to make action
952 (-[WebPluginContainerCheck _askPolicyDelegate]): Call policy delegate to let
953 the app decide if this load is allowed.
954 (-[WebPluginContainerCheck start]): Start the check.
955 (-[WebPluginContainerCheck cancel]): Cancel a check in progress.
956 * Plugins.subproj/WebPluginController.h:
957 * Plugins.subproj/WebPluginController.m:
958 (-[WebPluginController initWithDocumentView:]): Initialize new _checksInProgress field.
959 (-[WebPluginController _webPluginContainerCancelCheckIfAllowedToLoadRequest:]): Implement
961 (-[WebPluginController _cancelOutstandingChecks]): New helper to make sure to cancel
962 all outstanding requests when destroying all plugins.
963 (-[WebPluginController destroyAllPlugins]): Call above helper.
964 (-[WebPluginController _webPluginContainerCheckIfAllowedToLoadRequest:inFrame:resultObject:selector:]): Implement this new plug-in SPI method.
965 (-[WebPluginController bridge]): New helper method.
966 (-[WebPluginController webView]): New helper method.
967 * WebView.subproj/WebPolicyDelegatePrivate.h: Add new navigation
968 type WebNavigationTypePlugInRequest.
969 * WebKit.pbproj/project.pbxproj: Add new files.
970 * WebView.subproj/WebDefaultPolicyDelegate.m:
971 (-[WebDefaultPolicyDelegate webView:decidePolicyForNavigationAction:request:frame:decisionListener:]): Don't open externally on a plug-in request.
973 2005-03-23 Richard Williamson <rjw@apple.com>
975 Fixed <rdar://problem/4053515> REGRESSION (Mail): Kotoeri input method reconversion does not work in WebViews
977 We now use actual document NSRanges to represent both marked text
978 ranges and selection ranges.
980 Reviewed by Ken Kocienda.
982 * WebView.subproj/WebHTMLView.m:
983 (-[WebHTMLView validAttributesForMarkedText]):
984 (-[WebHTMLView firstRectForCharacterRange:]):
985 (-[WebHTMLView selectedRange]):
986 (-[WebHTMLView markedRange]):
987 (-[WebHTMLView _selectMarkedText]):
988 (-[WebHTMLView setMarkedText:selectedRange:]):
992 2005-03-22 Darin Adler <darin@apple.com>
994 * English.lproj/StringsNotToBeLocalized.txt: Updated for recent changes.
998 2005-03-20 Maciej Stachowiak <mjs@apple.com>
1002 <rdar://problem/4060020> Add stub version of security SPI for QuickTime plug-in so QuickTime team has something to compile and link against
1004 * Plugins.subproj/WebPluginContainerPrivate.h: Added.
1005 * Plugins.subproj/WebPluginController.m:
1006 (-[WebPluginController _webPluginContainerCheckIfAllowedToLoadRequest:inFrame:resultObject:selector:]):
1007 (-[WebPluginController _webPluginContainerCancelCheckIfAllowedToLoadRequest:]):
1008 * WebKit.pbproj/project.pbxproj:
1010 2005-03-19 David Harrison <harrison@apple.com>
1014 <rdar://problem/4059479> Misspelling underline does underline the whole word, could go farther to the right
1016 * WebCoreSupport.subproj/WebTextRenderer.m:
1017 (-[WebTextRenderer misspellingLinePatternGapWidth]):
1018 (-[WebTextRenderer drawLineForMisspelling:withWidth:]):
1019 Consider that the last pixel in the underline dot pattern is transparent.
1021 2005-03-19 Darin Adler <darin@apple.com>
1023 Reviewed by Maciej (a while back).
1025 - fixed <rdar://problem/4059323> local-file security check is allowing plug-in streams, but must not
1027 * Plugins.subproj/WebNetscapePluginStream.m:
1028 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
1029 Roll out change I made on 3-13. That change is needed for subresource, but not for plug-in streams.
1030 For plug-in streams it's too risky, and leaves a serious security hole open.
1032 2005-03-19 Darin Adler <darin@apple.com>
1034 Reviewed by Ken and John.
1036 - fixed <rdar://problem/4059123> REGRESSION (402-403): deleteWordForward: and deleteWordBackward: start deleting single characters after the first delete
1038 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]):
1039 Fixed backwards logic in here and added missing check. Set action to one of the two typing actions only
1040 if isTypingAction is YES.
1042 2005-03-19 David Harrison <harrison@apple.com>
1044 Reviewed by me (written by Patti Yeh).
1046 <rdar://problem/4029491> <TCIM> CangJie: the candidate window appears at the top left hand corner during typing in Mail and iChat
1048 * WebView.subproj/WebHTMLView.m:
1049 (-[WebHTMLView firstRectForCharacterRange:]):
1050 Use selected range if there is no marked range.
1054 2005-03-18 David Harrison <harrison@apple.com>
1058 <rdar://problem/3584942> AX: Safari Accessibility parent-child mismatch
1060 * WebView.subproj/WebFrameView.m:
1061 (-[WebFrameView webCoreBridge]):
1062 New to conform to WebCoreBridgeHolder protocol.
1064 2005-03-18 Richard Williamson <rjw@apple.com>
1066 Fixed <rdar://problem/4057004> Data from XMLHTTPRequest is never dealloced
1068 WebDataSource keeps an array of all the NSURLResponses associated
1069 with the load for a page. This is used to playback delegate messages
1070 when loading from the page cache. However, after the document
1071 has completed it's initial load, we continue to keep track of responses.
1072 So, this has the consequence of keeping all the responses for a page
1073 around for the life of the page. NSURLResponses are now very
1074 heavy. They indirectly reference the resource data (via the
1075 download assessment dictionary). This fix will keep
1076 references to responses around for those resources loaded during initial
1077 page load, but not after that point.
1081 * WebView.subproj/WebDataSource.m:
1082 (-[WebDataSource _addResponse:]):
1083 (-[WebDataSource _stopRecordingResponses]):
1084 * WebView.subproj/WebDataSourcePrivate.h:
1085 * WebView.subproj/WebFrame.m:
1086 (-[WebFrame _opened]):
1088 2005-03-18 Ken Kocienda <kocienda@apple.com>
1094 <rdar://problem/4053729> Copy/paste of page with frames into Blot or Mail does nothing and loses insertion point
1096 * WebView.subproj/WebHTMLView.m:
1097 (-[WebHTMLView _selectedArchive]): Wrap frameset documents in an iframe, so they can be pasted into
1098 existing documents which will have a body or frameset of their own.
1102 2005-03-17 Richard Williamson <rjw@apple.com>
1104 Fixed <rdar://problem/4055562> REGRESSION (Tiger): Safari doesn't draw progressively-loaded JPEGs (www.theregister.co.uk, www.titantalk.com)
1106 Anothe side effect of lazy loading of image meta data. We now
1107 don't cache image size until size meta data is actually available.
1111 * WebCoreSupport.subproj/WebImageData.m:
1112 (-[WebImageData size]):
1114 2005-03-16 David Harrison <harrison@apple.com>
1118 <rdar://problem/4048506> Deleting from beginning of editable div deletes other document elements
1120 Also changed WebCore.
1122 * WebView.subproj/WebHTMLView.m:
1123 (-[WebHTMLView _shouldDeleteRange:]):
1124 Added call to new bridge method canDeleteRange.
1126 2005-03-16 Ken Kocienda <kocienda@apple.com>
1132 <rdar://problem/4042935> undo doesn't work properly during inline input
1134 * WebView.subproj/WebHTMLView.m:
1135 (-[WebHTMLView setMarkedText:selectedRange:]): Call new -[WebCoreBridge replaceMarkedTextWithText:] instead of
1136 -[WebCoreBridge replaceSelectionWithText:selectReplacement:smartReplace:]. The former call was just added in
1137 order to provide a better mapping of international text input onto the typing command/undo design.
1139 2005-03-15 Richard Williamson <rjw@apple.com>
1141 Fixed <rdar://problem/4040321> Exception: Someone's trying to encode a WebDataRequestParameters instance
1143 If client mutates request use new Foundation SPI to address remove applewebdata properties from request.
1145 Reviewed by Ken Kocienda.
1147 * WebView.subproj/WebBaseResourceHandleDelegate.m:
1148 (-[WebBaseResourceHandleDelegate willSendRequest:redirectResponse:]):
1149 * WebView.subproj/WebDataProtocol.h:
1150 * WebView.subproj/WebDataProtocol.m:
1151 (+[NSURLRequest _webDataRequestPropertyKey]):
1153 2005-03-15 Ken Kocienda <kocienda@apple.com>
1159 <rdar://problem/4052642> Each delete keystroke is in its own undo group; not included in undo group with other typing
1161 Calling -[WebCore setSelectedDOMRange:range affinity:] had the result of "closing" any active set of typing
1162 keystrokes grouped together in a single undo operation. My change on 27 Jan to route delete keystrokes
1163 through _deleteRange:killRing:... made this feature regress. Previous to that change, the backwards delete
1164 key went through separate code that is no longer in the tree that did not set the selection in the way
1167 The solution is to add an extra argument to the set-selection call. The WebCoreBridge now offers this method:
1168 -[WebCore setSelectedDOMRange:range affinity:closeTyping:]. Now, callers must indicate whether setting the
1169 selection will act to close typing or not. The code changes below all add this new argument with the
1170 appropriate value for closeTyping.
1172 * WebView.subproj/WebHTMLView.m:
1173 (-[WebHTMLView _deleteRange:killRing:prepend:smartDeleteOK:deletionAction:]): Passes NO for closeTyping when
1174 deletionAction is deleteKeyAction or forwardDeleteKeyAction; YES when deleteSelectionAction.
1175 (-[WebHTMLView _expandSelectionToGranularity:]): Passes YES for closeTyping.
1176 (-[WebHTMLView selectToMark:]): Passes YES for closeTyping.
1177 (-[WebHTMLView swapWithMark:]): Passes YES for closeTyping.
1178 (-[WebHTMLView transpose:]): Passes YES for closeTyping.
1179 (-[WebHTMLView _selectMarkedText]): Passes NO for closeTyping.
1180 (-[WebHTMLView _selectRangeInMarkedText:]): Passes NO for closeTyping.
1181 * WebView.subproj/WebView.m:
1182 (-[WebView setSelectedDOMRange:affinity:]): Passes YES for closeTyping.
1184 2005-03-14 Richard Williamson <rjw@apple.com>
1186 Fix <rdar://problem/4051389> 8A413: gifs animating too fast
1190 Match Mozilla's policy for minimum frame duration, which is somewhat odd:
1192 <= 0.01 sec use .1 sec, otherwise use specified duration.
1194 * WebCoreSupport.subproj/WebImageData.m:
1195 (-[WebImageData _frameDurationAt:]):
1197 2005-03-14 Darin Adler <darin@apple.com>
1199 Reviewed by Harrison.
1201 - fixed <rdar://problem/4049776> Seed: Mail: Disable spellcheck leaves red artifacts
1203 * WebView.subproj/WebFrameInternal.h: Added _unmarkAllMisspellings.
1204 * WebView.subproj/WebFrame.m: (-[WebFrame _unmarkAllMisspellings]): Added.
1205 Calls unmarkAllMisspellings on the bridge and self and all subframes.
1207 * WebView.subproj/WebView.m: (-[WebView setContinuousSpellCheckingEnabled:]):
1208 Call _unmarkAllMisspellings on the main frame when turning continuous spell checking off.
1210 2005-03-14 Richard Williamson <rjw@apple.com>
1212 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
1214 The Acrobat application triggers loads of new documents in it's policy delegate. This
1215 ultimately causes the WebHTMLView to be released before their event handlers have
1216 returned. To bullet proof against this case we retain/release self before passing
1217 the event on for further handling.
1221 * WebView.subproj/WebHTMLView.m:
1222 (-[WebHTMLView _updateMouseoverWithEvent:]):
1223 (-[WebHTMLView scrollWheel:]):
1224 (-[WebHTMLView mouseDown:]):
1225 (-[WebHTMLView mouseDragged:]):
1226 (-[WebHTMLView mouseUp:]):
1227 (-[WebHTMLView keyDown:]):
1228 (-[WebHTMLView keyUp:]):
1229 (-[WebHTMLView performKeyEquivalent:]):
1231 2005-03-14 Vicki Murley <vicki@apple.com>
1233 - roll out the fix for 4040321, since it is still pending CCC review.
1235 2005-03-10 Richard Williamson <rjw@apple.com>
1237 Fixed <rdar://problem/4040321> Exception: Someone's trying to encode a WebDataRequestParameters instance
1241 If a delegate returns a mutated applewebdata: request in it's willSendRequest:
1242 method, we don't load using the WebDataRequest. Instead we do a normal load.
1243 Unfortunately, if the request they return is mutated *copy* of the applewebdata:
1244 request it will hold the applewebdata: special properties. These properties
1245 will be encoded into the cache. They should not be. So, to fix, we sanitize the
1246 request, by removing the special properties from the request.
1248 Note that we had to dig into the private guts of NSURLRequest because there is
1249 no public mechanism to remove properties from a request, see 4046775.
1251 * WebView.subproj/WebBaseResourceHandleDelegate.m:
1252 (-[WebBaseResourceHandleDelegate willSendRequest:redirectResponse:]):
1253 * WebView.subproj/WebDataProtocol.h:
1254 * WebView.subproj/WebDataProtocol.m:
1255 (-[NSURLRequest _webDataRequestExternalRequest]):
1256 (-[NSURLRequest _webDataRequestSanitize]):
1260 2005-03-13 Darin Adler <darin@apple.com>
1262 Reviewed by Ken and Maciej.
1264 - fixed <rdar://problem/4049040> REGRESSION (403-405): security check prevents user stylesheet from loading (Dictionary.app doesn't work at all!)
1266 * Plugins.subproj/WebNetscapePluginStream.m: (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
1267 Allow plug-in subresource streams to load with any URL, ignoring the "canLoadURL" method's restriction (only
1268 file URLs can load other file URLs), which now applies only to main resources, like web pages in frames or
1269 object tags and plug-in main resources.
1271 * WebCoreSupport.subproj/WebBridge.m:
1272 (-[WebBridge startLoadingResource:withURL:customHeaders:]): Allow subresources to load with any URL, as above.
1273 This allows things like images, stylesheets, and JavaScript to be loaded without the "canLoadURL" method's
1275 (-[WebBridge startLoadingResource:withURL:customHeaders:postData:]): Ditto.
1276 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]): Ditto.
1278 2005-03-10 Richard Williamson <rjw@apple.com>
1280 Fixed <rdar://problem/4040321> Exception: Someone's trying to encode a WebDataRequestParameters instance
1284 If a delegate returns a mutated applewebdata: request in it's willSendRequest:
1285 method, we don't load using the WebDataRequest. Instead we do a normal load.
1286 Unfortunately, if the request they return is mutated *copy* of the applewebdata:
1287 request it will hold the applewebdata: special properties. These properties
1288 will be encoded into the cache. They should not be. So, to fix, we sanitize the
1289 request, by removing the special properties from the request.
1291 Note that we had to dig into the private guts of NSURLRequest because there is
1292 no public mechanism to remove properties from a request, see 4046775.
1294 * WebView.subproj/WebBaseResourceHandleDelegate.m:
1295 (-[WebBaseResourceHandleDelegate willSendRequest:redirectResponse:]):
1296 * WebView.subproj/WebDataProtocol.h:
1297 * WebView.subproj/WebDataProtocol.m:
1298 (-[NSURLRequest _webDataRequestExternalRequest]):
1299 (-[NSURLRequest _webDataRequestSanitize]):
1303 2005-03-10 Maciej Stachowiak <mjs@apple.com>
1307 <rdar://problem/4046510> REGRESSION (TOT): All Flash and Shockwave plugin-based web content missing
1309 * Plugins.subproj/WebNetscapePluginStream.m:
1310 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
1312 2005-03-10 John Sullivan <sullivan@apple.com>
1316 - fixed <rdar://problem/4045843> Going back/forward to error page
1317 hits assertion in -[WebDataSource(WebPrivate) _setData:]
1319 * WebView.subproj/WebDataSource.m:
1320 (-[WebDataSource _setData:]):
1321 Removed bogus assertion
1323 2005-03-09 Deborah Goldsmith <goldsmit@apple.com>
1327 - fixed <rdar://problem/3997044> default encoding for non-Latin incorrect
1329 * WebKit/WebView.subproj/WebPreferences.m: (+[WebPreferences _systemCFStringEncoding]):
1330 Call __CFStringGetUserDefaultEncoding to get region, and TECGetWebTextEncodings to get
1331 the first encoding to determine the default encoding.
1333 2005-03-09 Darin Adler <darin@apple.com>
1335 Reviewed by Richard.
1337 - fixed <rdar://problem/4034175> REGRESSION (Mail): Can't use any font with style Light/Condensed/Semibold/Extrabold, etc
1339 * WebView.subproj/WebHTMLView.m:
1340 (-[WebHTMLView _styleFromFontAttributes:]): Use a constant instead of hard-coded weight for clarity.
1341 (-[WebHTMLView _originalFontA]): Ditto.
1342 (-[WebHTMLView _originalFontB]): Ditto.
1343 (-[WebHTMLView _addToStyle:fontA:fontB:]): Add code to detect the case where the family name is not good enough
1344 to specify the font precisely. In that case, use the Postscript font name instead. Also change variable names
1345 so it's easier to understand the method.
1347 2005-03-06 Maciej Stachowiak <mjs@apple.com>
1351 <rdar://problem/4005575> Arbitrary file disclosure vulnerability due to ability to load local html from remote content
1353 * Plugins.subproj/WebBaseNetscapePluginView.m:
1354 (-[WebBaseNetscapePluginView requestWithURLCString:]):
1355 * Plugins.subproj/WebNetscapePluginEmbeddedView.m:
1356 (-[WebNetscapePluginEmbeddedView didStart]):
1357 * Plugins.subproj/WebNetscapePluginStream.m:
1358 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
1359 * WebCoreSupport.subproj/WebBridge.m:
1360 (-[WebBridge createWindowWithURL:frameName:]):
1361 (-[WebBridge startLoadingResource:withURL:customHeaders:]):
1362 (-[WebBridge startLoadingResource:withURL:customHeaders:postData:]):
1363 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
1364 (-[WebBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]):
1365 (-[WebBridge postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
1366 (-[WebBridge createChildFrameNamed:withURL:referrer:renderPart:allowsScrolling:marginWidth:marginHeight:]):
1367 (-[WebBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:]):
1368 * WebView.subproj/WebFrame.m:
1369 (-[WebFrame _loadURL:referrer:intoChild:]):
1370 * WebView.subproj/WebFramePrivate.h:
1372 2005-03-09 Richard Williamson <rjw@apple.com>
1374 Fixed <rdar://problem/4032938> Safari: text layout for MS P Gothic font is corrupted
1376 The AppKit and ATS reports that MS P Gothic is fixed pitch. It is
1377 not! This is another case of "fixed pitch" being wrong. I've
1378 coalesced all the special cases into our isFontFixedPitch:, and
1379 used a dictionary to improve speed. No performance regression.
1383 * WebCoreSupport.subproj/WebTextRenderer.m:
1384 (-[WebTextRenderer _computeWidthForSpace]):
1385 * WebCoreSupport.subproj/WebTextRendererFactory.m:
1386 (-[WebTextRendererFactory clearCaches]):
1387 (-[WebTextRendererFactory isFontFixedPitch:]):
1389 2005-03-09 Darin Adler <darin@apple.com>
1393 <rdar://problem/4040388> REGRESSION (172-173): nonrepro crash in -[NSString(WebNSURLExtras) _web_isUserVisibleURL]
1395 * Misc.subproj/WebNSURLExtras.m:
1396 (-[NSString _web_isUserVisibleURL]): Fixed some pointer expressions that didn't include the index in the expression.
1397 (readIDNScriptWhiteListFile): Removed NSLog statements in here since we decided they aren't useful and they will
1398 write some messages on Tiger.
1400 2005-03-09 Darin Adler <darin@apple.com>
1402 * DOM.subproj/DOMPrivate.h: Checked in file copied from WebCore.
1404 2005-03-08 Richard Williamson <rjw@apple.com>
1406 Fixed <rdar://problem/4036949> many JPEG images fail to incremental-load due to change in ImageIO JPEG header parsing (to be fixed in WebKit)
1407 Fixed <rdar://problem/4042570> Need to check image properties for presence of width/height properties
1409 ImageIO-55 changed how image properties are created. They
1410 are now created incrementally. So we need "re-get" the image
1411 properties if the properties we care about (width/height) aren't
1412 in the property dictionary.
1416 * WebCoreSupport.subproj/WebImageData.h:
1417 * WebCoreSupport.subproj/WebImageData.m:
1418 (-[WebImageData init]):
1419 (-[WebImageData fileProperties]):
1420 (-[WebImageData propertiesAtIndex:]):
1421 (-[WebImageData _isSizeAvailable]):
1422 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
1423 (-[WebImageData size]):
1425 2005-03-08 John Sullivan <sullivan@apple.com>
1427 A couple of tweaks to the previous patch, from Darin's review.
1429 * Misc.subproj/WebNSPasteboardExtras.m:
1430 (_writableTypesForImageWithoutArchive):
1431 remove unnecessary _web prefix
1432 (_writableTypesForImageWithArchive):
1434 (+[NSPasteboard _web_writableTypesForImageIncludingArchive:]):
1435 use mutableCopy rather than initWithArray:, and adjust for name changes
1437 2005-03-08 John Sullivan <sullivan@apple.com>
1441 - fixed <rdar://problem/4031826> REGRESSION (Mail): standalone images from
1442 Safari can't be pasted into Mail (WebKit part of fix)
1444 We were always declaring webarchive-related pasteboard types, even in the standalone
1445 image cases where we had no webarchive. Unfortunately, the WebView pasteboard-related
1446 API doesn't prevent this kind of thing from happening, because the code that
1447 declares the types isn't guaranteed to be anywhere near the code that writes
1448 the pasteboard data.
1450 After this fix, I discovered that pasting standalone images into Mail still doesn't
1451 work right, but the remaining issues seem to be entirely in Mail. I wrote up 4041671
1454 * Misc.subproj/WebNSPasteboardExtras.h:
1455 (+[NSPasteboard _web_writableTypesForImageIncludingArchive:]):
1456 Added boolean parameter; clients must specify whether or not there's an
1457 archive involved, because the array of types is different if there is.
1459 * Misc.subproj/WebNSPasteboardExtras.m:
1460 (_web_writableTypesForImageWithoutArchive):
1461 new static function, constructs (once) and returns the array of types
1462 for images that don't have archives
1463 (_web_writableTypesForImageWithArchive):
1464 new static function, constructs (once) and returns the array of types
1465 for images that do have archives
1466 (+[NSPasteboard _web_writableTypesForImageIncludingArchive:]):
1467 added boolean parameter, now calls one of the two new static functions
1469 (-[NSPasteboard _web_writeImage:URL:title:archive:types:]):
1470 added asserts that we aren't declaring the archive types if we don't have archive data
1472 (-[NSPasteboard _web_declareAndWriteDragImage:URL:title:archive:source:]):
1473 updated to pass parameter to _web_writableTypesForImageIncludingArchive:
1475 * WebView.subproj/WebDefaultContextMenuDelegate.m:
1476 (-[WebDefaultUIDelegate copyImageToClipboard:]):
1477 updated to pass parameter to _web_writableTypesForImageIncludingArchive:
1479 * WebView.subproj/WebImageView.m:
1480 (-[WebImageView copy:]):
1481 updated to pass parameter to _web_writableTypesForImageIncludingArchive:
1483 * WebView.subproj/WebView.m:
1484 (-[WebView pasteboardTypesForElement:]):
1485 updated to pass parameter to _web_writableTypesForImageIncludingArchive:
1487 2005-03-07 Richard Williamson <rjw@apple.com>
1489 More bullet proofing for <rdar://problem/4038304> CrashTracer: ....9 crashes at com.apple.WebKit: -[WebTextRenderer initWithFont:usingPrinterFont:] + 840
1491 Protect against removal of Times and Times New Roman from
1492 system. If these fonts are removed attempt to get system font
1493 instead of FATAL_ALWAYS.
1497 * WebCoreSupport.subproj/WebTextRenderer.m:
1498 (-[WebTextRenderer initWithFont:usingPrinterFont:]):
1502 2005-03-06 Darin Adler <darin@apple.com>
1504 - fixed obvious mistake in IDN script code (luckily it hasn't been in a submission yet!)
1506 * Misc.subproj/WebNSURLExtras.m: (readIDNScriptWhiteListFile): Use "index" to index into the array,
1507 not "script", which is the script number, not the 32-bit-word index.
1509 2005-03-05 Kevin Decker <kdecker@apple.com>
1513 Fixed: <rdar://problem/4038529> Infinite progress bar loading webcams and other sites that use multipart/x-mixed-replace
1515 The previous patch I landed prevented us from loading multipart/x-mixed-replace but did not always update the progress bar accordingly.
1516 This stops websites from having seemingly infinite progress in the browser UI.
1518 * WebCoreSupport.subproj/WebSubresourceClient.m:
1519 (-[WebSubresourceClient didReceiveResponse:]): If this is "multipart/x-mixed-replace", remove the WebBaseResourceHandleDelegate client from
1520 the datasource's subresource array, otherwise -[WebDataSource isLoading] incorrectly returns YES. Also it's possible at this point in
1521 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
1522 in fact we're complete.
1523 * WebView.subproj/WebMainResourceClient.m:
1524 (-[WebMainResourceClient connection:didReceiveResponse:]): ditto
1526 2005-03-05 Richard Williamson <rjw@apple.com>
1528 Fixed panther build problem. Shouldn't include
1529 changes for 3968753 on panther.
1533 * WebView.subproj/WebView.m:
1534 (-[WebView _commonInitializationWithFrameName:groupName:]):
1536 2005-03-05 Darin Adler <darin@apple.com>
1540 - fixed <rdar://problem/4034603> REGRESSION (185-188): RadarWeb can't send enclosures anymore
1542 * WebView.subproj/WebFormDataStream.m:
1543 (closeCurrentStream): Release currentData when closing the stream.
1544 (advanceCurrentStream): Set up and retain currentData when the current stream is reading that data, so the
1545 data won't be released while in use.
1546 (formCreate): Initialize currentData to NULL.
1548 - fixed <rdar://problem/4037562> Tiger8A402: Help Viewer crashed when viewing help for iChat (infinite recursion in WebView)
1550 * WebView.subproj/WebView.m: (-[WebView _responderValidateUserInterfaceItem:]):
1551 Check for the case where we ourselves are the responder. This avoids an infinite loop.
1552 The actual code to perform operations avoids this with a global variable, but this lighter weight
1553 solution is sufficient here because validate operations don't call through to the next responder.
1555 2005-03-04 Richard Williamson <rjw@apple.com>
1557 Fixed <rdar://problem/3968753> REGRESSION: Poor performance with differing multiple animated GIFs (was fast in Panther)
1559 Disable coalesced updates (in CG). This restores the
1562 Reviewed by David Harrison.
1564 * WebView.subproj/WebView.m:
1565 (-[WebView _commonInitializationWithFrameName:groupName:]):
1567 2005-03-04 Adele Amchan <adele@apple.com>
1571 * English.lproj/StringsNotToBeLocalized.txt: added new strings "text/x-vcf" and "text/x-csv" to the list
1573 2005-03-04 Adele Amchan <adele@apple.com>
1577 Fix for <rdar://problem/4032982> Sun iPlanet app: not able to import AddressBook CSV format addresses properly
1578 Fix for <rdar://problem/4032985> Sun iPlanet app: not able to import vCard format addresses properly
1580 * WebView.subproj/WebTextView.m:
1581 (+[WebTextView unsupportedTextMIMETypes]): added "text/x-csv" and "text/x-vcf" to the list of MIME types that our text view doesn't handle
1583 2005-03-04 Darin Adler <darin@apple.com>
1587 - fixed <rdar://problem/4036817> REGRESSION: ctrl-y broken when a line + carriage return cut
1589 * WebView.subproj/WebHTMLView.m:
1590 (-[WebHTMLView _deleteRange:killRing:prepend:smartDeleteOK:deletionAction:]): Merged _handleKillRing behavior
1591 into this function, since there's now a more-complicated way the startNewKillRingSequence boolean needs to
1592 be handled. Set the startNewKillRingSequence boolean after the entire process so changing the selection before
1593 and during the editing dosn't clear it. Also change "isTypingAction" parameter to "deletionAction" so we can
1594 handle forward delete with this method.
1595 (-[WebHTMLView _deleteSelection]): Pass deleteSelectionAction for action rather than NO for isTypingAction,
1596 which is the way to say the same thing using the new parameter.
1597 (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]): Refactor to use the _deleteRange
1598 method above. Also calls _shouldDeleteRange: for the pre-existing selection case; not doing that before was
1600 (-[WebHTMLView deleteToMark:]): Pass deleteSelectionAction for action rather than NO for isTypingAction,
1601 which is the way to say the same thing using the new parameter.
1603 2005-03-04 Darin Adler <darin@apple.com>
1607 - fixed <rdar://problem/4020413> REGRESSION (Mail): can't use fonts with names that start with "#" in Mail (Korean fonts)
1609 * WebView.subproj/WebHTMLView.m:
1610 (-[WebHTMLView _styleFromFontAttributes:]): Quote font name when calling setFontFamily.
1611 (-[WebHTMLView _addToStyle:fontA:fontB:]): Ditto.
1613 2005-03-04 Darin Adler <darin@apple.com>
1617 - fixed <rdar://problem/3965666> IDN spoofing vulnerability caused by Unicode characters that look like ASCII characters
1619 * Misc.subproj/WebNSURLExtras.m:
1620 (readIDNScriptWhiteListFile): Added. Reads file and parses script names.
1621 (readIDNScriptWhiteList): Added. Calls readIDNScriptWhiteList on each of the white list locations in succession.
1622 (allCharactersInIDNScriptWhiteList): Renamed from containsPossibleLatinLookalikes and changed sense.
1623 Now calls readIDNScriptWhiteList first time, and then uses the read-in list to check the scripts.
1624 (-[NSString _web_mapHostNameWithRange:encode:makeString:]): Call allCharactersInIDNScriptWhiteList instead of
1625 containsPossibleLatinLookalikes.
1626 * Resources/IDNScriptWhiteList.txt: Added.
1627 * WebKit.pbproj/project.pbxproj: Added IDNScriptWhiteList.txt file.
1629 * Misc.subproj/WebKitLocalizableStrings.m: Removed. This is simply unused.
1630 * English.lproj/StringsNotToBeLocalized.txt: Updated for recent changes.
1632 2005-03-04 Darin Adler <darin@apple.com>
1636 - fixed <rdar://problem/3937667> REGRESSION (Mail): Zooming a window from titlebar button doesn't paint newly-exposed portions of window
1638 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView _recursiveDisplayAllDirtyWithLockFocus:visRect:]):
1639 Re-set-up the visRect if the bounds changes due to layout.
1643 2005-03-03 Jens Alfke <jens@apple.com>
1647 <rdar://problem/3991818> REGRESSION: Images scale while loading
1648 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.
1650 * WebCoreSupport.subproj/WebImageData.m:
1651 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
1653 2005-03-01 David Hyatt <hyatt@apple.com>
1655 Fix for 3841186, scrollbar shows up disabled when it should not appear at all. Make sure updateScrollers
1656 is never allowed to be re-entrant from any call point by moving the guard inside the function itself.
1658 Reviewed by John Sullivan
1660 * WebView.subproj/WebDynamicScrollBarsView.m:
1661 (-[WebDynamicScrollBarsView updateScrollers]):
1662 (-[WebDynamicScrollBarsView reflectScrolledClipView:]):
1664 2005-03-02 Chris Blumenberg <cblu@apple.com>
1666 Fixed: <rdar://problem/4029010> Expose method to retrieve drag image for WebView's selection
1668 Reviewed by sullivan.
1670 * WebView.subproj/WebHTMLView.m:
1671 (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]): call _selectionDraggingImage
1672 (-[WebHTMLView _selectionDraggingImage]): new SPI for Mail, factored from previous method
1673 (-[WebHTMLView _selectionDraggingRect]): new SPI for Mail
1674 * WebView.subproj/WebHTMLViewPrivate.h:
1676 2005-03-02 John Sullivan <sullivan@apple.com>
1680 - fixed <rdar://problem/4023337> Safari stops loading any page (-[NSCFDictionary setObject:forKey:]:
1681 attempt to insert nil key)
1683 It is very likely that the exception being hit is caused by the same problem as WebFoundation
1684 bug 4018486. This change makes the code robust against this kind of problem regardless.
1686 * WebView.subproj/WebBaseResourceHandleDelegate.m:
1687 (-[WebBaseResourceHandleDelegate saveResource]):
1688 Don't call addSubresource if newly-created resource is nil (but do assert on debug builds).
1689 Also assert that originalURL and MIMEType are not nil.
1691 * WebView.subproj/WebDataSource.m:
1692 (-[WebDataSource addSubresource:]):
1693 Don't add nil subresource to dictionary, but do assert on debug builds.
1697 2005-03-01 John Sullivan <sullivan@apple.com>
1701 - fixed <rdar://problem/3987482> Format>Style>Italic is not enabled when a
1702 compose window is empty (works in Blot)
1704 * WebView.subproj/WebHTMLView.m:
1705 (-[WebHTMLView becomeFirstResponder]):
1706 call _updateFontPanel here so NSFontManager knows the right font for the menu
1707 items and the font panel
1709 2005-03-01 David Harrison <harrison@apple.com>
1713 <rdar://problem/3915560> Mail would like an SPI to enable "smart" text paste/drop
1715 * WebView.subproj/WebHTMLView.m:
1716 (-[WebHTMLView _smartDeleteRangeForProposedRange:]):
1717 (-[WebHTMLView _smartInsertForString:replacingRange:beforeString:afterString:]):
1720 2005-02-28 John Sullivan <sullivan@apple.com>
1724 - WebKit part of fix for <rdar://problem/4023490> REGRESSION (125-185): Tabbing through links
1725 on frameset page gets stuck at end (tivofaq.com)
1727 This tab-to-links stuff has been in shaky condition ever since AppKit futzed with
1728 tabbing behavior in Tiger to add support for including the toolbar in the key loop.
1729 I made some changes months ago to compensate for that, but some cases, such as this
1730 one, still weren't fixed.
1732 * WebCoreSupport.subproj/WebBridge.m:
1733 (-[WebBridge _nextKeyViewOutsideWebFrameViewsWithValidityCheck:]):
1734 new bottleneck method, extracted from nextKeyViewOutsideWebFrameViews; handles
1735 nextKeyView or nextValidKeyView depending on parameter.
1736 (-[WebBridge nextKeyViewOutsideWebFrameViews]):
1737 now calls extracted method
1738 (-[WebBridge nextValidKeyViewOutsideWebFrameViews]):
1739 new method, calls new bottleneck method
1741 * WebView.subproj/WebHTMLView.m:
1742 (-[WebHTMLView nextValidKeyView]):
1743 when we're stuck at the end of a nextKeyView chain inside a nexted frame, use
1744 nextValidKeyViewOutsideWebFrameViews. Make sure we don't end up looking inside
1745 the web frame views while doing this.
1747 2005-02-25 Darin Adler <darin@apple.com>
1751 - fixed <rdar://problem/4025088> window onblur and onfocus don't fire when text field has focus
1753 * WebView.subproj/WebHTMLView.m:
1754 (-[WebHTMLView updateFocusState]): Renamed from updateFocusDisplay. Added call to setWindowHasFocus: method.
1755 (-[WebHTMLView viewDidMoveToWindow]): Call method by new name.
1756 (-[WebHTMLView windowDidBecomeKey:]): Ditto.
1757 (-[WebHTMLView windowDidResignKey:]): Ditto.
1758 (-[WebHTMLView becomeFirstResponder]): Ditto.
1759 (-[WebHTMLView resignFirstResponder]): Ditto.
1763 2005-02-25 Richard Williamson <rjw@apple.com>
1765 Fixed <rdar://problem/4000962> 8A375: Help Viewer displays voiced sound and semi-voiced characters strangely (characters don't seem to be composed)
1767 Added special case for voiced marks.
1771 * WebCoreSupport.subproj/WebTextRenderer.m:
1772 (widthForNextCharacter):
1774 2005-02-25 Darin Adler <darin@apple.com>
1778 - fixed <rdar://problem/4019823> Seed: Control-Y doesn't work
1780 * WebView.subproj/WebHTMLView.m:
1781 (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]): Call _handleKillRing
1782 after setting the selection, since it uses the selection to get the text.
1783 (-[WebHTMLView _insertText:selectInsertedText:]): Check for empty string to avoid an assertion
1784 on the other side of the bridge when you yank the empty string.
1786 2005-02-24 Richard Williamson <rjw@apple.com>
1788 Fixed <rdar://problem/3382926> Bidi neutrals at RTL/LTR boundaries not handled correctly.
1790 If directionality is specified use that as initial directionality,
1791 rather than neutral directionality.
1795 * WebCoreSupport.subproj/WebTextRenderer.m:
1796 (widthForNextCharacter):
1798 2005-02-24 Adele Amchan <adele@apple.com>
1802 Fix for <rdar://problem/4023393> Safari crashed in khtml::RenderObject::repaintAfterLayoutIfNeeded(QRect const&, QRect const&)
1804 We were crashing after hitting PageDown when viewing a pdf because
1805 WebKit was calling over to WebCore to scroll overflow areas.
1806 Since this only needs to be done if we're dealing with a WebHTMLView,
1807 I added a wrapper function to check the documentView before calling
1810 * WebView.subproj/WebFrameView.m:
1811 (-[WebFrameView _scrollOverflowInDirection:granularity:]): added wrapper function that checks if documentView is a WebHTMLView
1812 (-[WebFrameView scrollToBeginningOfDocument:]): uses new wrapper function now
1813 (-[WebFrameView scrollToEndOfDocument:]): uses new wrapper function now
1814 (-[WebFrameView _pageVertically:]): uses new wrapper function now
1815 (-[WebFrameView _pageHorizontally:]): uses new wrapper function now
1816 (-[WebFrameView _scrollLineVertically:]): uses new wrapper function now
1817 (-[WebFrameView _scrollLineHorizontally:]): uses new wrapper function now
1819 2005-02-24 Richard Williamson <rjw@apple.com>
1821 Fixed <rdar://problem/3985889> REGRESSION (125-180): setting <img> src to GIF that already animated does not animate; just shows final frame
1825 * WebCoreSupport.subproj/WebImageData.h:
1826 * WebCoreSupport.subproj/WebImageData.m:
1827 (-[WebImageData resetAnimation]):
1828 * WebCoreSupport.subproj/WebImageRenderer.m:
1829 (-[WebImageRenderer resetAnimation]):
1830 (-[WebInternalImage resetAnimation]):
1831 (-[WebImageRenderer drawImageInRect:fromRect:compositeOperator:context:]):
1833 2005-02-24 Kevin Decker <kdecker@apple.com>
1837 Fixed <rdar://problem/3962401> Don't load multipart/x-mixed-replace content to prevent memory leak
1839 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.
1841 * WebView.subproj/WebMainResourceClient.m:
1842 (-[WebMainResourceClient connection:didReceiveResponse:]): Disabled loading of multipart/x-mixed-replace content until we fully implement server side push.
1843 * WebCoreSupport.subproj/WebSubresourceClient.m:
1844 (-[WebSubresourceClient didReceiveResponse:]): Ditto. Same exact thing for sub resources.
1847 2005-02-23 John Sullivan <sullivan@apple.com>
1851 - fixed <rdar://problem/4021370> REGRESSION (Tiger): WebKit part of fix for
1852 shift-tab on tivofaq doing the wrong thing
1854 * WebView.subproj/WebFrameView.m:
1855 (-[WebFrameView becomeFirstResponder]):
1856 If our previousValidKeyView is nil or self (same as nil modulo AppKit oddness),
1857 look out of the box and get the previousValidKeyView of our webview.
1859 2005-02-23 Darin Adler <darin@apple.com>
1863 - fixed <rdar://problem/4010196> REGRESSION (125-186+): 8-character timestamps in gmail wrap to 2 lines (width:8ex; font-size:80%)
1865 * WebCoreSupport.subproj/WebTextRenderer.m: (-[WebTextRenderer xHeight]): Return the maximum
1866 of the "x" height and width. Comment in the code explains why in more detail.
1868 2005-02-22 Richard Williamson <rjw@apple.com>
1870 Fixed <rdar://problem/3937203> when a div adds a scrollbar (overflow:auto) we do not get regions
1872 Compare regions after automatice scroll regions have been
1877 * WebCoreSupport.subproj/WebBridge.h:
1878 * WebCoreSupport.subproj/WebBridge.m:
1879 (-[WebBridge dealloc]):
1880 (-[WebBridge _compareDashboardRegions:]):
1881 (-[WebBridge dashboardRegionsChanged:]):
1883 2005-02-22 Richard Williamson <rjw@apple.com>
1885 Fixed <rdar://problem/4012463> Dashboard widgets don't work with authenticating proxies
1887 Added new SPI for dashboard that just calls default delegate
1892 * WebView.subproj/WebView.m:
1893 (-[WebView handleAuthenticationForResource:challenge:fromDataSource:]):
1894 * WebView.subproj/WebViewPrivate.h:
1896 2005-02-22 Chris Blumenberg <cblu@apple.com>
1900 * WebCoreSupport.subproj/WebBridge.m:
1901 (-[WebBridge issuePasteAndMatchStyleCommand]): support for new "PasteAndMatchStyle" exec command
1905 2005-02-21 David Harrison <harrison@apple.com>
1909 <rdar://problem/3943090> REGRESSION (Mail): Spelling underline incompletely erased following certain steps
1911 * WebCoreSupport.subproj/WebTextRenderer.m:
1912 (-[WebTextRenderer misspellingLineThickness]):
1913 (-[WebTextRenderer misspellingLinePatternWidth]):
1914 Replaced #defines with these methods, so others can get the same info.
1916 (-[WebTextRenderer drawLineForMisspelling:withWidth:]):
1917 Keep underline within originally specified bounds.
1920 2005-02-21 Darin Adler <darin@apple.com>
1924 - fixed <rdar://problem/4016358> don't ever display IDN URLs with characters from "possible Latin look-alike" scripts
1926 * Misc.subproj/WebNSURLExtras.m:
1927 (containsPossibleLatinLookalikes): Added.
1928 (-[NSString _web_mapHostNameWithRange:encode:makeString:]): Call containsPossibleLatinLookalikes, and if true,
1929 don't decode the host name.
1931 2005-02-19 Kevin Decker <kdecker@apple.com>
1935 Fixed <rdar://problem/4010765> Flash player can be used to arbitrarily open popup windows without user permission
1937 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.
1939 * Plugins.subproj/WebBaseNetscapePluginView.h: Addded currentEventIsUserGesture boolean ivar.
1940 * Plugins.subproj/WebBaseNetscapePluginView.m:
1941 (-[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.
1942 (-[WebBaseNetscapePluginView initWithFrame:]): In our asynchronous load, pass along currentEventIsUserGesture to the PluginRequest.
1943 (-[WebBaseNetscapePluginView evaluateJavaScriptPluginRequest:]): Inform WebCore if this was a user originated gesture when calling executeScript().
1944 (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]):
1945 (-[WebPluginRequest initWithRequest:frameName:notifyData:sendNotification:didStartFromUserGesture:]):
1946 (-[WebPluginRequest isCurrentEventUserGesture]): Added.
1948 2005-02-18 Chris Blumenberg <cblu@apple.com>
1950 Fixed: <rdar://problem/3945271> REGRESSION (Mail): pasted plain text should pick up typing style instead of being unstyled
1952 Reviewed by kocienda.
1954 * WebView.subproj/WebDataSource.m:
1955 (-[WebDataSource _replaceSelectionWithArchive:selectReplacement:]): pass NO for matchStyle to replaceSelection
1956 * WebView.subproj/WebHTMLView.m:
1957 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:chosePlainText:]): return new chosePlainText parameter
1958 (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]): pass chosePlainText for matchStyle to replaceSelection
1959 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): ditto
1961 2005-02-17 Richard Williamson <rjw@apple.com>
1963 Removed code that should not have been checked in from
1966 * WebCoreSupport.subproj/WebTextRendererFactory.m:
1967 (-[WebTextRendererFactory isFontFixedPitch:]):
1969 2005-02-17 Richard Williamson <rjw@apple.com>
1971 Fixed <rdar://problem/3999467> when Osaka-Mono is specified as fixed width font, Osaka used instead
1973 Fixed w/o introducing a performance regression.
1975 Reviewed by Vicki (and earlier by Dave Harrison).
1977 * WebCoreSupport.subproj/WebTextRenderer.m:
1978 (-[WebTextRenderer _computeWidthForSpace]):
1979 (widthForNextCharacter):
1980 * WebCoreSupport.subproj/WebTextRendererFactory.h:
1981 * WebCoreSupport.subproj/WebTextRendererFactory.m:
1982 (-[NSFont _web_isFakeFixedPitch]):
1983 (-[WebTextRendererFactory isFontFixedPitch:]):
1984 (-[WebTextRendererFactory fontWithFamily:traits:size:]):
1986 2005-02-17 Richard Williamson <rjw@apple.com>
1988 Fixed <rdar://problem/3959304> PDF in img tag is not rendered correctly anymore
1990 We were incorrectly adding image position when flipping coordinates.
1992 Reviewed by David Harrison.
1994 * WebCoreSupport.subproj/WebImageData.m:
1995 (-[WebImageData _PDFDrawFromRect:toRect:operation:alpha:flipped:context:]):
1997 2005-02-17 Richard Williamson <rjw@apple.com>
1999 Fixed <rdar://problem/4007262> Seed: Flight tracker scrolling moves to the left
2001 Added SPI for dashboard to disable wheel scrolling of the WebClipView.
2006 * WebView.subproj/WebClipView.m:
2007 (-[WebClipView _focusRingVisibleRect]):
2008 (-[WebClipView scrollWheel:]):
2009 * WebView.subproj/WebView.m:
2010 (-[WebViewPrivate init]):
2011 (-[WebView drawRect:]):
2012 (-[WebView _dashboardBehavior:]):
2013 * WebView.subproj/WebViewInternal.h:
2014 * WebView.subproj/WebViewPrivate.h:
2018 2005-02-17 Vicki Murley <vicki@apple.com>
2020 - roll out this change, since it causes a 1.5% performance regression
2022 2005-02-15 Richard Williamson <rjw@apple.com>
2024 Fixed <rdar://problem/3999467> when Osaka-Mono is specified as fixed width font, Osaka used instead
2026 Lie about Osaka-Mono. Treat it as fixed pitch, even though,
2027 strictly speaking it isn't. (Similar to what we do with
2030 Reviewed by David Harrison.
2032 * WebCoreSupport.subproj/WebTextRenderer.m:
2033 (-[WebTextRenderer _computeWidthForSpace]):
2034 * WebCoreSupport.subproj/WebTextRendererFactory.h:
2035 * WebCoreSupport.subproj/WebTextRendererFactory.m:
2036 (-[NSFont _web_isFakeFixedPitch]):
2037 (-[WebTextRendererFactory isFontFixedPitch:]):
2038 (-[WebTextRendererFactory fontWithFamily:traits:size:]):
2040 2005-02-17 John Sullivan <sullivan@apple.com>
2044 - fixed <rdar://problem/3997185> The Web view on .Mac Prefs caused System Prefs
2045 to lockup (resolved by re-boot only)
2047 * WebCoreSupport.subproj/WebBridge.m:
2048 (-[WebBridge nextKeyViewOutsideWebFrameViews]):
2049 Don't allow recursion here; assert on debug build, return nil on deployment. I
2050 couldn't get my machine into a state to repro this problem (and neither could the
2051 originator), but it's obvious from the stack crawl that this method was recursing
2052 when it shouldn't have.
2054 2005-02-16 John Sullivan <sullivan@apple.com>
2056 Written by Darin, reviewed by me.
2058 - WebKit part of fix for <rdar://problem/4007384>
2059 FILTER: Bookmark of RSS with Japanese search word & multiple RSS pages loses filter
2061 * DOM.subproj/DOMPrivate.h:
2062 updated this file, which is a copy of the WebCore version
2064 2005-02-16 Richard Williamson <rjw@apple.com>
2066 Fixed <rdar://problem/3966973> Tiger 8A357: Binary Compatiblity: frequent Webstractor.app crashes [WebImageData _nextFrame]
2068 Webstractor.app was playing tricks to create thumbnails of
2069 pages. This caused the 'focusView' to be incorrect during
2070 animated GIF frame rendering.
2074 * WebCoreSupport.subproj/WebImageRenderer.m:
2075 (-[WebImageRenderer _startOrContinueAnimationIfNecessary]):
2077 2005-02-16 Vicki Murley <vicki@apple.com>
2079 Reviewed by me, code change by Darin.
2081 - fixed the build on Panther
2083 * WebView.subproj/WebFormDataStream.m: (webSetHTTPBody):
2084 Added a Panther-specific code path that just loads all the data into one big
2085 NSData object. This means that bug 3686434 won't be fixed on SUPanWheat; we'll
2086 still load the file into memory before sending it to the server on Panther.
2088 2005-02-15 Richard Williamson <rjw@apple.com>
2090 Fixed <rdar://problem/3998368> Tiger8A376: WebTextRenderer assertion failure in Safari while browsing news.bbc.co.uk
2092 Removed use of FATAL_ALWAYS from getUncachedWidth(). It's unclear
2093 why we would trigger the FATAL_ALWAYS. In the past we've seen
2094 the message triggered because of corrupt fonts. Anyway, in this
2095 particular case, we will now return 0 for the character width,
2096 rather than exiting.
2098 Reviewed by David Harrison.
2100 * WebCoreSupport.subproj/WebTextRenderer.m:
2103 2005-02-15 Richard Williamson <rjw@apple.com>
2105 Fixed <rdar://problem/3999467> when Osaka-Mono is specified as fixed width font, Osaka used instead
2107 Lie about Osaka-Mono. Treat it as fixed pitch, even though,
2108 strictly speaking it isn't. (Similar to what we do with
2111 Reviewed by David Harrison.
2113 * WebCoreSupport.subproj/WebTextRenderer.m:
2114 (-[WebTextRenderer _computeWidthForSpace]):
2115 * WebCoreSupport.subproj/WebTextRendererFactory.h:
2116 * WebCoreSupport.subproj/WebTextRendererFactory.m:
2117 (-[NSFont _web_isFakeFixedPitch]):
2118 (-[WebTextRendererFactory isFontFixedPitch:]):
2119 (-[WebTextRendererFactory fontWithFamily:traits:size:]):
2121 2005-02-14 Darin Adler <darin@apple.com>
2125 - fixed <rdar://problem/3686434> Safari uses too much RAM on file upload, leading to malloc errors and crashes (HP printers)
2127 * WebView.subproj/WebFormDataStream.h: Added webSetHTTPBody, which creates and connects an appropriate
2128 stream to an NSMutableURLRequest.
2129 * WebView.subproj/WebFormDataStream.m: Added implementation here.
2131 * WebCoreSupport.subproj/WebBridge.m:
2132 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
2134 * WebCoreSupport.subproj/WebSubresourceClient.m:
2135 (+[WebSubresourceClient startLoadingResource:withURL:customHeaders:postData:referrer:forDataSource:]):
2137 * WebView.subproj/WebFrame.m:
2138 (-[WebFrame _loadItem:withLoadType:]): Use webSetHTTPBody.
2139 (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]): Ditto.
2141 * English.lproj/StringsNotToBeLocalized.txt: Updated for this change and other recent changes.
2143 2005-02-11 Richard Williamson <rjw@apple.com>
2145 Fixed <rdar://problem/4002505> 8A378: Endlessly animating gif's on http://www.entropy.ch
2147 If animated images had no loop count property we were incorrectly
2148 looping forver. Note, that in the course of fixing this bug
2149 I found that ImageIO is incorrectly NOT reporting the loop count
2150 for a whole class of animated GIFs.
2152 Reviewed by Ken Kocienda.
2154 * WebCoreSupport.subproj/WebImageData.m:
2155 (-[WebImageData _repetitionCount]):
2159 2005-02-11 Vicki Murley <vicki@apple.com>
2163 - fix deployment build on Panther
2165 * WebView.subproj/WebHTMLView.m:
2166 (-[WebHTMLView changeBaseWritingDirection:]): ifdef out NSWritingDirectionNatural
2167 (-[WebHTMLView toggleBaseWritingDirection:]): fix a spacing issue
2169 2005-02-10 David Harrison <harrison@apple.com>
2171 Reviewed by Richard.
2173 <rdar://problem/3991652> REGRESSION (Mail): Deleting entire line in reply deletes extra blank line and moves insertion point
2175 * WebView.subproj/WebHTMLView.m:
2176 (-[WebHTMLView _deleteRange:killRing:prepend:smartDeleteOK:isTypingAction:]):
2177 (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
2178 (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]):
2179 (-[WebHTMLView selectToMark:]):
2180 (-[WebHTMLView swapWithMark:]):
2181 (-[WebHTMLView transpose:]):
2182 (-[WebHTMLView _selectMarkedText]):
2183 (-[WebHTMLView _selectRangeInMarkedText:]):
2184 Adopt new default affinity of NSSelectionAffinityDownstream as of <rdar://problem/3937447>.
2186 2005-02-10 Darin Adler <darin@apple.com>
2188 Reviewed by Harrison.
2190 - fixed <rdar://problem/4002084> Setting ResourceLoadDelegate to nil can cause a crash
2192 * WebView.subproj/WebView.m: (-[WebView _cacheResourceLoadDelegateImplementations]):
2193 Set booleans to either YES or NO, rather than setting them only in the YES case.
2195 2005-02-10 Darin Adler <darin@apple.com>
2197 Reviewed by Harrison.
2199 - fixed <rdar://problem/3991225> Format->Style->Underline menu item does not get checked when selected text is underlined
2201 * WebView.subproj/WebHTMLView.m:
2202 (-[WebHTMLView validateUserInterfaceItem:]): Added tons of additional cases in here for all the
2203 "action" style methods in this class that don't always want to be valid. For the ones where state
2204 makes sense, added the state-checking code too for the menu item case.
2205 (-[WebHTMLView ignoreSpelling:]): Removed unnecessary "editable text only" check since this command
2206 would work fine on a non-editable selection.
2207 (-[WebHTMLView swapWithMark:]): Ditto.
2208 (-[WebHTMLView changeBaseWritingDirection:]): Added. Like toggle, but based on the sender's tag.
2210 2005-02-08 Darin Adler <darin@apple.com>
2212 "Reviewed" by Richard (he told me the file was obsolete).
2214 - got rid of an obsolete file
2216 * Plugins.subproj/npsap.h: Removed.
2217 * copy-webcore-files-to-webkit: Removed npsap.h.
2219 2005-02-09 Richard Williamson <rjw@apple.com>
2221 Fixed <rdar://problem/4000073> non-screen font error on www.worldofwarcraft.com
2223 Reviewed by John Sullivan.
2225 * WebCoreSupport.subproj/WebTextRenderer.m:
2226 (-[WebTextRenderer _smallCapsFont]):
2230 2005-02-07 Chris Blumenberg <cblu@apple.com>
2232 Fixed: <rdar://problem/3993354> Safari claims to put RTFD on the pasteboard, but doesn't, in some cases
2236 * WebView.subproj/WebHTMLView.m:
2237 (-[WebHTMLView _stripAttachmentCharactersFromAttributedString:]): moved
2238 (-[WebHTMLView _writeSelectionWithPasteboardTypes:toPasteboard:cachedAttributedString:]): take cachedAttributedString parameter in case the attributed string was gotten already
2239 (-[WebHTMLView _writeSelectionToPasteboard:]): omit RTFD from the types list when there are no attachments
2241 2005-02-07 David Harrison <harrison@apple.com>
2245 <rdar://problem/3990693> REGRESSION (8A373): ctrl-k now deletes just one character instead of line
2247 * WebView.subproj/WebHTMLView.m:
2248 (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]):
2249 Set the selection so that deleteKeyPressedWithSmartDelete knows what to delete.
2251 2005-02-06 Darin Adler <darin@apple.com>
2255 - fixed <rdar://problem/3963166> PDFView SPI print method is being deprecated, moving to PDFDocument; please update WebKit
2257 * WebView.subproj/WebPDFView.m: (-[WebPDFView printOperationWithPrintInfo:]): Target the document instead of the view.
2259 * English.lproj/StringsNotToBeLocalized.txt: Updated for recent changes and also moved one translation to be a file-specific
2260 item rather than a file-independent one.
2262 2005-02-05 Chris Blumenberg <cblu@apple.com>
2264 Fixed: <rdar://problem/3991974> REGRESSION: www.jabra.com world location screen does not work
2268 * WebCoreSupport.subproj/WebBridge.m:
2269 (-[WebBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:]): use the baseURL from the bridge rather than from the response
2271 2005-02-04 Chris Blumenberg <cblu@apple.com>
2273 Fixed: <rdar://problem/3802781> rtf->html pasteboard conversion using xhtml
2275 Reviewed by kocienda.
2277 * WebView.subproj/WebHTMLView.m:
2278 (+[WebHTMLView _excludedElementsForAttributedStringConversion]): new
2279 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]): call _excludedElementsForAttributedStringConversion
2281 2005-02-04 Chris Blumenberg <cblu@apple.com>
2283 Fixed: <rdar://problem/3832973> copy text from PowerPoint, paste into Blot (or presumably Mail) and get a single missing image icon
2287 * WebView.subproj/WebHTMLView.m:
2288 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]): prefer RTF and RTFD over images just as NSTextView does
2290 2005-02-03 Chris Blumenberg <cblu@apple.com>
2292 Fixed: <rdar://problem/3555137> REGRESSION (125-173): Flash animation can erase parts of chrome (bookmarks bar & tab bar)
2294 convertRect:toView: returns incorrect results inside of viewWillMoveToWindow: with a nil window. Workaround this by catching this case.
2298 * Plugins.subproj/WebBaseNetscapePluginView.m:
2299 (-[WebBaseNetscapePluginView superviewsHaveSuperviews]): new
2300 (-[WebBaseNetscapePluginView saveAndSetPortStateForUpdate:]): clip out the plug-in view when superviewsHaveSuperviews returns NO
2302 2005-02-03 Chris Blumenberg <cblu@apple.com>
2304 Fixed: <rdar://problem/3893513> Sun iPlanet app: when saving to a file it brings up a window with the thing to be saved instead
2308 * WebView.subproj/WebTextView.m:
2309 (+[WebTextView unsupportedTextMIMETypes]): added "text/ldif" to the list of MIME types that our text view doesn't handle
2313 2005-02-03 Chris Blumenberg <cblu@apple.com>
2315 * English.lproj/StringsNotToBeLocalized.txt: updated
2317 2005-02-03 Chris Blumenberg <cblu@apple.com>
2319 Fixed: <rdar://problem/3989611> Evite style "add vCalendar to calendar" do not work
2323 * WebView.subproj/WebTextView.m:
2324 (+[WebTextView unsupportedTextMIMETypes]): added "text/x-vcalendar" to the list of MIME types our text view doesn't handle
2326 2005-02-03 Vicki Murley <vicki@apple.com>
2330 - fix deployment build breakage on Panther
2332 * WebView.subproj/WebHTMLView.m:
2333 (-[WebHTMLView toggleBaseWritingDirection:]):
2335 2005-02-02 John Sullivan <sullivan@apple.com>
2339 - WebKit part of fix for <rdar://problem/3980651> REGRESSION (125-180): Huge number of pages printed from certain page,
2342 This also fixes the problems with printing from GMail, yay!
2344 * WebView.subproj/WebHTMLView.m:
2345 (-[WebHTMLView _setPrinting:minimumPageWidth:maximumPageWidth:adjustViewSize:]):
2346 Don't adjust margins for header/footer here, because this is called for each subframe.
2347 (-[WebHTMLView knowsPageRange:]):
2348 Do adjust margins for header/footer here (analogous to WebTextView and WebImageView).
2349 Also, round the page height to an integer here (noticed in passing).
2351 2005-02-02 Chris Blumenberg <cblu@apple.com>
2353 Fixed: <rdar://problem/3986546> Cut, delete, and paste menu items are active when a image is opened in window
2357 * WebView.subproj/WebView.m:
2358 (-[WebView _responderValidateUserInterfaceItem:]): new, has the responder validate the item
2359 (-[WebView validateUserInterfaceItem:]): call VALIDATE for each repsonder selector using FOR_EACH_RESPONDER_SELECTOR macro
2360 (-[WebView _performResponderOperation:with:]): call factored out method _responderForResponderOperations
2361 (-[WebView _responderForResponderOperations]): new, code from _performResponderOperation:with:
2363 2005-02-02 Chris Blumenberg <cblu@apple.com>
2365 Fixed: <rdar://problem/3983628> control-click on WebView is not selecting the word under the cursor (Mail, non-editable WebView)
2369 * WebCoreSupport.subproj/WebBridge.m:
2370 (-[WebBridge selectWordBeforeMenuEvent]): new
2371 * WebView.subproj/WebView.m:
2372 (-[WebView _selectWordBeforeMenuEvent]): new SPI
2373 (-[WebView _setSelectWordBeforeMenuEvent:]): new SPI
2374 * WebView.subproj/WebViewInternal.h:
2375 * WebView.subproj/WebViewPrivate.h:
2377 2005-02-02 Chris Blumenberg <cblu@apple.com>
2379 Fixed: <rdar://problem/3986013> Assertion failure going back after page load error (no apparent problem in nondebug build)
2383 * WebView.subproj/WebDataSource.m:
2384 (-[WebDataSource _setPrimaryLoadComplete:]): don't set the data source data when the main client is nil
2386 2005-02-02 Ken Kocienda <kocienda@apple.com>
2392 <rdar://problem/3823109> WebKit should support -toggleBaseWritingDirection: (bidi editing support)
2394 * WebView.subproj/WebHTMLView.m:
2395 (-[WebHTMLView _applyParagraphStyleToSelection:withUndoAction:]): New function that calls through to
2396 new feature that allows callers to force all properties in a style to be applied as block styles.
2397 (-[WebHTMLView _alignSelectionUsingCSSValue:withUndoAction:]): Removed FIXME comment for something that has been fixed.
2398 (-[WebHTMLView toggleBaseWritingDirection:]): Implemented.
2400 2005-02-01 Richard Williamson <rjw@apple.com>
2402 Fixed <rdar://problem/3977727> WebKit should use new SPI to support faster GIF rendering
2404 Note: This REQUIRES build >= 3A362 when building on Tiger.
2408 * WebCoreSupport.subproj/WebImageData.m:
2409 (-[WebImageData _imageSourceOptions]):
2413 2005-02-01 Richard Williamson <rjw@apple.com>
2415 Added new SPI for <rdar://problem/3967063> need spi on WebView to turn of lcd text for Dashboard
2419 * WebCoreSupport.subproj/WebTextRenderer.m:
2421 * WebView.subproj/WebView.m:
2422 (-[WebView drawRect:]):
2423 (-[WebView _dashboardBehavior:]):
2424 (+[WebView _setShouldUseFontSmoothing:]):
2425 (+[WebView _shouldUseFontSmoothing]):
2426 * WebView.subproj/WebViewInternal.h:
2427 * WebView.subproj/WebViewPrivate.h:
2429 2005-01-31 Chris Blumenberg <cblu@apple.com>
2431 Fixed: <rdar://problem/3949806> REGRESSION: Source window fails to refresh correctly on reload
2433 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.
2437 * WebView.subproj/WebDataSource.m:
2438 (-[WebDataSource _setData:]): moved within file
2439 (-[WebDataSource _setPrimaryLoadComplete:]): call _setData: with the data from the main client before letting go of the main client
2440 * WebView.subproj/WebDataSourcePrivate.h:
2441 * WebView.subproj/WebMainResourceClient.m:
2442 (-[WebMainResourceClient releaseResources]): removed call to _setData: since the data source may need the data before releaseResources is called
2444 2005-01-31 Chris Blumenberg <cblu@apple.com>
2446 Fixed: <rdar://problem/3946285> Seed: Safari crashed by selecting all at internet-moebel.com
2450 * WebView.subproj/WebHTMLView.m:
2451 (-[WebHTMLView _hitViewForEvent:]): new, factored hit test hack to this method
2452 (-[WebHTMLView _updateMouseoverWithEvent:): call _hitViewForEvent:
2453 (-[WebHTMLView acceptsFirstMouse:]): call _setMouseDownEvent: and _isSelectionEvent: on the hit HTMLView or else when it's asked to drag it will assert
2454 (-[WebHTMLView shouldDelayWindowOrderingForEvent:]): ditto
2456 2005-01-31 David Harrison <harrison@apple.com>
2460 <rdar://problem/3961239> AX Setting AXFocused on AXScrollArea of AXWebArea will cause keyboard selection change
2462 * WebView.subproj/WebHTMLView.m:
2463 (-[WebHTMLView maintainsInactiveSelection]):
2464 Keep the selection when the new first respomder is our own scrollview, in both editable and non-editaqble content.
2466 2005-01-31 Jens Alfke <jens@apple.com>
2470 - Fixed <rdar://problem/3903199> REGRESSION: Large background patterns slide around while loading
2472 * WebCoreSupport.subproj/WebImageData.m:
2474 (-[WebImageData tileInRect:fromPoint:context:]):
2476 2005-01-30 Darin Adler <darin@apple.com>
2480 - fixed <rdar://problem/3965265> Safari displays HTML as source when default encoding is Hebrew (due to direction overrides added by encoding converter)
2482 * WebView.subproj/WebPreferencesPrivate.h: Added _systemCFStringEncoding, and changed
2483 _setInitialDefaultTextEncodingToSystemEncoding to be a class method.
2484 * WebView.subproj/WebPreferences.m:
2485 (+[WebPreferences _systemCFStringEncoding]): Added. New SPI to be used by Safari. Broken out of
2486 _setInitialDefaultTextEncodingToSystemEncoding, but also added cases for MacArabic and MacHebrew.
2487 (+[WebPreferences _setInitialDefaultTextEncodingToSystemEncoding]): Refactor to use _systemCFStringEncoding.
2489 2005-01-28 Jens Alfke <jens@apple.com>
2491 Reviewed by Richard.
2493 <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)
2495 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.)
2497 * WebCoreSupport.subproj/WebImageData.h:
2498 * WebCoreSupport.subproj/WebImageData.m:
2499 (-[WebImageData _invalidateImages]):
2500 (-[WebImageData _checkSolidColor:]):
2501 (-[WebImageData _cacheImages:allImages:]):
2502 (-[WebImageData _fillSolidColorInRect:compositeOperation:context:]):
2503 (-[WebImageData tileInRect:fromPoint:context:]):
2505 2005-01-28 David Harrison <harrison@apple.com>
2509 <rdar://problem/3584942> AX: Safari Accessibility parent-child mismatch
2511 Use AppKit SPI _accessibilityParentForSubview to return KWQAccObject parent of AppKit AX object.
2513 * WebView.subproj/WebHTMLView.m:
2514 (-[WebHTMLView _accessibilityParentForSubview:]):
2517 2005-01-28 Chris Blumenberg <cblu@apple.com>
2519 WebKit side of: <rdar://problem/3951283> can view pages from the back/forward cache that should be disallowed by Parental Controls
2523 * WebView.subproj/WebDefaultPolicyDelegate.m:
2524 (-[WebDefaultPolicyDelegate webView:shouldGoToHistoryItem:]): new private delegate method
2525 * WebView.subproj/WebFrame.m:
2526 (-[WebFrame _goToItem:withLoadType:]): call new delegate method
2527 * WebView.subproj/WebPolicyDelegatePrivate.h:
2529 2005-01-26 Maciej Stachowiak <mjs@apple.com>
2531 Reviewed by Darin, Hyatt and Ken.
2533 <rdar://problem/3790449> REGRESSION (Mail): underline behavior is flaky because of how CSS handles text-decoration
2535 * WebView.subproj/WebHTMLView.m:
2536 (-[WebHTMLView _styleFromFontAttributes:]): Use new -khtml-text-decorations-in-effect
2538 (-[WebHTMLView _styleForAttributeChange:]): likewise
2539 (-[WebHTMLView underline:]): likewise
2541 2005-01-27 Ken Kocienda <kocienda@apple.com>
2545 * WebView.subproj/WebHTMLView.m:
2546 (-[WebHTMLView _handleKillRing:prepend:]): New helper function. Code factored out from
2547 _deleteRange:killRing:prepend:smartDeleteOK:isTypingAction:.
2548 (-[WebHTMLView _deleteRange:killRing:prepend:smartDeleteOK:isTypingAction:]): No longer takes
2549 unused preflight argument. Now takes new isTypingAction argument. Uses isTypingAction to
2550 determine which flavor of delete command to call.
2551 (-[WebHTMLView _deleteSelection]): No longer passes unused preflight argument. Now passes new isTypingAction argument.
2552 (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]): Rearranged code to call
2553 correct flavor of delete command, based on whether typing should be preserved. Some other cleanups.
2554 (-[WebHTMLView deleteForward:]): Add _isEditable check.
2555 (-[WebHTMLView deleteBackward:]): Now calls _deleteWithDirection instead of having unique behavior different
2556 from forward delete.
2557 (-[WebHTMLView deleteWordForward:]): Add new isTypingAction flag to _deleteWithDirection call.
2558 (-[WebHTMLView deleteWordBackward:]): Ditto.
2559 (-[WebHTMLView deleteToBeginningOfLine:]): Ditto.
2560 (-[WebHTMLView deleteToEndOfLine:]): Ditto.
2561 (-[WebHTMLView deleteToBeginningOfParagraph:]): Ditto.
2562 (-[WebHTMLView deleteToEndOfParagraph:]): Ditto.
2563 (-[WebHTMLView deleteToMark:]): Ditto.
2567 2005-01-27 Chris Blumenberg <cblu@apple.com>
2569 Fixed: <rdar://problem/3973272> REGRESSION: Safari uses QT plugin to display PNG images
2573 * Plugins.subproj/WebBasePluginPackage.m: use renamed QT bundle ID
2575 2005-01-26 Darin Adler <darin@apple.com>
2579 - fixed <rdar://problem/3829517> WebView still draws white when setDrawsBackground set to NO and no content loaded yet
2581 * WebView.subproj/WebFrameView.m: (-[WebFrameView drawRect:]): Check drawsBackground, and don't
2582 draw the white "no document" background if it's NO. This fixes things for frames with no document.
2583 * WebView.subproj/WebImageView.m: (-[WebImageView drawRect:]): Same as above. This fixes things
2584 for frames with just an image.
2585 * WebView.subproj/WebFrame.m: (-[WebFrame _updateDrawsBackground]): Call setDrawsBackground: on the
2586 document view if it implements it. This fixes things for frames with plain text.
2588 2005-01-25 John Sullivan <sullivan@apple.com>
2592 - WebKit part of fix for: <rdar://problem/3970670> Text context menu
2593 in WebKit needs "Look Up in Dictionary" item
2595 * WebView.subproj/WebDefaultContextMenuDelegate.m:
2596 (localizedMenuTitleFromAppKit):
2597 return English string in the case where AppKit bundle is found but doesn't
2598 contain the expected string. This case will be hit by people testing with
2600 (-[WebDefaultUIDelegate menuItemWithTag:]):
2601 create Look Up in Dictionary item
2602 (-[WebDefaultUIDelegate contextMenuItemsForElement:]):
2603 add Look Up in Dictionary item and separator
2604 (-[WebDefaultUIDelegate editingContextMenuItemsForElement:]):
2607 * WebView.subproj/WebHTMLView.m:
2608 (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
2609 new method, handles bringing up the Dictionary window. Includes FIXMEs
2610 for a couple of the known loose ends.
2611 (-[WebHTMLView validateUserInterfaceItem:]):
2612 handle Look Up in Dictionary item like the other new items
2614 * WebView.subproj/WebUIDelegatePrivate.h:
2615 added SPI constant for Look Up in Dictionary menu item
2617 2005-01-24 Maciej Stachowiak <mjs@apple.com>
2619 Fixed Panther build (missing ifdef)
2621 * WebView.subproj/WebDefaultContextMenuDelegate.m:
2623 2005-01-24 John Sullivan <sullivan@apple.com>
2627 - WebKit part of fix for <rdar://problem/3960231> Text context menu in WebKit needs Spotlight and Google items
2629 * WebView.subproj/WebDefaultContextMenuDelegate.m:
2630 (localizedMenuTitleFromAppKit):
2631 new function, gets localized string from AppKit so we can avoid adding localized
2632 strings to WebKit at this late date in Tiger. Returns the non-localized English
2633 string if we can't find the localized string in AppKit.
2634 (-[WebDefaultUIDelegate menuItemWithTag:]):
2635 handle the two new menu items by tag name
2636 (-[WebDefaultUIDelegate contextMenuItemsForElement:]):
2637 add menu items for Search in Google and Search in Spotlight to selected-text menu item
2638 for the noneditable case
2639 (-[WebDefaultUIDelegate editingContextMenuItemsForElement:]):
2640 add menu items for Search in Google and Search in Spotlight to selected-text menu item
2641 for the editable case
2643 * WebView.subproj/WebHTMLView.m:
2644 (-[WebHTMLView _searchWithGoogleFromMenu:]):
2645 implement this menu item action method, using same method name and implementation as NSTextView
2646 (-[WebHTMLView _searchWithSpotlightFromMenu:]):
2647 implement this menu item action method, using same basic implementation as NSTextView
2648 (-[WebHTMLView validateUserInterfaceItem:]):
2649 validate new menu items
2651 * WebView.subproj/WebUIDelegatePrivate.h:
2652 define new tags for new menu items
2654 * English.lproj/StringsNotToBeLocalized.txt:
2655 updated for these changes
2657 2005-01-24 Darin Adler <darin@apple.com>
2659 * WebView.subproj/WebDataSource.m: (+[WebDataSource _repTypesAllowImageTypeOmission:]):
2660 Do the same check as for view types, so the representation types are consistent.
2662 2005-01-24 Darin Adler <darin@apple.com>
2666 - fixed <rdar://problem/3791158> REGRESSION (Mail): copyFont: and pasteFont: copy and paste only the NSFont, not other attributes
2668 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView _styleFromFontAttributes:]): Added the last
2669 few loose ends here: strikethrough and underline.
2671 - fixed <rdar://problem/3967393> add a user default that lets you turn off WebKit PDF support
2673 * WebView.subproj/WebFrameView.m: (+[WebFrameView _viewTypesAllowImageTypeOmission:]):
2674 Leave the PDF-handling classes out of the dictionary if the secret default is set.
2676 * English.lproj/StringsNotToBeLocalized.txt: Updated for recent changes.
2678 2005-01-20 Darin Adler <darin@apple.com>
2680 Reviewed by Kristin Forster.
2682 - fixed <rdar://problem/3964972> update _initWithCGSEvent:eventRef: call in mouse moved workaround (breaks cursors in Carbon WebKit applications)
2684 * Carbon.subproj/HIWebView.m: (MouseMoved): Instead of munging the event record's window number directly
2685 before calling _initWithCGSEvent, on Tiger we call _eventRelativeToWindow on the event after creating it.
2686 Also added a check so that with Macromedia Contribute's workaround in place we don't do anything at all
2687 to the event. Tested with both Contribute and CarbonWeb.
2689 * English.lproj/StringsNotToBeLocalized.txt: Update for recent changes.
2691 2005-01-20 Richard Williamson <rjw@apple.com>
2693 Fixed <rdar://problem/3815672> REGRESSION (Mail): Japanese text cannot be made bold
2695 The AppKit's font substitution API doesn't match font traits!
2696 It only find fonts that contain the appropriate glyphs. This
2697 patch attempts to find the best variation within a family.
2701 * WebCoreSupport.subproj/WebTextRenderer.m:
2702 (-[WebTextRenderer _substituteFontForString:families:]):
2706 2005-01-20 Ken Kocienda <kocienda@apple.com>
2712 <rdar://problem/3786659> REGRESSION (Mail): editable WebViews don't work with "size up" and "size down" NSFontManager changes
2714 * WebView.subproj/WebHTMLView.m:
2715 (-[WebHTMLView _addToStyle:fontA:fontB:]): This is the WebKit side of the fix. Replaced unimplemented code blocks
2716 with FIXME's in them for make bigger and make smaller with real working code.
2718 2005-01-19 David Hyatt <hyatt@apple.com>
2720 Fix for 3513067, spaces being lost when RTL text is rendered. Make sure not to allow hangers or spaces
2725 * WebCoreSupport.subproj/WebTextRenderer.m:
2726 (-[WebTextRenderer _createATSUTextLayoutForRun:style:]):
2728 2005-01-19 Darin Adler <darin@apple.com>
2732 - fixed <rdar://problem/3962559> stopAnimationsInView leaks after cvs-base
2734 * WebCoreSupport.subproj/WebImageData.m: (+[WebImageData stopAnimationsInView:]): add a release
2736 2005-01-19 Chris Blumenberg <cblu@apple.com>
2738 Fixed: <rdar://problem/3961809> plug-in code attempts to load empty URL
2742 * Plugins.subproj/WebNetscapePluginEmbeddedView.m:
2743 (-[WebNetscapePluginEmbeddedView didStart]): don't start load if URL is empty
2745 2005-01-17 Darin Adler <darin@apple.com>
2747 * DOM.subproj/DOMPrivate.h: Check in generated file.
2749 2005-01-17 Darin Adler <darin@apple.com>
2751 Reviewed by John and Richard.
2753 - fixed <rdar://problem/3907453> printing a multi-page PDF document from Safari doesn't produce correct output
2755 * WebView.subproj/WebFrameViewPrivate.h: Added.
2756 * WebView.subproj/WebFrameView.m:
2757 (-[WebFrameView canPrintHeadersAndFooters]): Added. Returnes NO for documents that can't print headers or footers,
2758 and delegates to the document view to answer the question. Defaults to NO, since only a view that actively does
2759 the work is compatible with our header and footer code.
2760 (-[WebFrameView printOperationWithPrintInfo:]): Added. Returns an NSPrintOperation set up for printing. The reason
2761 we return this rather than an NSView is that in the PDFView case, the print info is changed around before creating
2762 the NSPrintOperation, and also the PDFKit SPI works this way.
2764 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView canPrintHeadersAndFooters]): Added. Returns YES.
2765 * WebView.subproj/WebImageView.m: (-[WebImageView canPrintHeadersAndFooters]): Ditto.
2766 * WebView.subproj/WebTextView.m: (-[WebTextView canPrintHeadersAndFooters]): Ditto.
2768 * WebView.subproj/WebPDFView.m:
2769 (-[WebPDFView canPrintHeadersAndFooters]): Added. Returns NO.
2770 (-[WebPDFView printOperationWithPrintInfo:]): Added. Calls getPrintOperationForPrintInfo: autoRotate:YES on the PDFView.
2772 * WebKit.pbproj/project.pbxproj: Added WebFrameViewPrivate.h as a new private header.
2774 2005-01-13 Chris Blumenberg <cblu@apple.com>
2776 Fixed: <rdar://problem/3932107> Safari does not load QT Cocoa plug-in if the WebPluginMIMETypes key is not in the info.plist
2778 Fixing this bug required that we allow WebKit plug-ins (as well as Netscape plug-ins) support BP_CreatePluginMIMETypesPreferences
2779 which allows plug-ins create an auxiliary MIME types file.
2783 * Plugins.subproj/WebBasePluginPackage.h:
2784 * Plugins.subproj/WebBasePluginPackage.m:
2785 (+[WebBasePluginPackage preferredLocalizationName]): moved from WebNetscapePluginPackage
2786 (-[WebBasePluginPackage pListForPath:createFile:]): ditto
2787 (-[WebBasePluginPackage getPluginInfoFromPLists]): ditto
2788 (-[WebBasePluginPackage isLoaded]): return isLoaded ivar
2789 (-[WebBasePluginPackage load]): if loaded, get BP_CreatePluginMIMETypesPreferences symbol
2790 * Plugins.subproj/WebNetscapePluginPackage.h:
2791 * Plugins.subproj/WebNetscapePluginPackage.m:
2792 (-[WebNetscapePluginPackage load]): call super when done so BP_CreatePluginMIMETypesPreferences can be initialized
2793 * Plugins.subproj/WebPluginPackage.m:
2794 (-[WebPluginPackage initWithPath:]): call getPluginInfoFromPLists
2795 (-[WebPluginPackage load]): call super when done so BP_CreatePluginMIMETypesPreferences can be initialized
2797 2005-01-13 Richard Williamson <rjw@apple.com>
2799 Fixed <rdar://problem/3952809> WebJavaPlugIn.h comments need method name corrected (webPlugInCallJava)
2803 * Plugins.subproj/WebJavaPlugIn.h:
2807 2005-01-13 Vicki Murley <vicki@apple.com>
2811 - fix <rdar://problem/3946836> Safari about box lists 2004 instead of 2005
2813 * WebKit.pbproj/project.pbxproj: bump "2004" to "2005"
2815 2005-01-13 Richard Williamson <rjw@apple.com>
2817 Fixed <rdar://problem/3951911> REGRESSION: Animated GIF images with loop counts no longer update
2819 Draw last image after animation loop terminates. (We
2820 were drawing the image at index+1, which doesn't exist!)
2824 * WebCoreSupport.subproj/WebImageData.m:
2825 (-[WebImageData _nextFrame:]):
2827 2005-01-13 Richard Williamson <rjw@apple.com>
2829 Fixed <rdar://problem/3952084> REGRESSION: Links at projectseven.com now draw and update incorrectly during hover
2831 Turn off use of new CGContextStrokeLineSegments API. We should
2832 turn back on when 3952944 is fixed.
2836 * WebCoreSupport.subproj/WebTextRenderer.m:
2837 (-[WebTextRenderer drawLineForCharacters:yOffset:width:color:thickness:]):
2839 2005-01-13 Chris Blumenberg <cblu@apple.com>
2841 Fixed: <rdar://problem/3937663> repro assertion failure and crash dragging image that has PDF source
2845 * Misc.subproj/WebNSViewExtras.m:
2846 (-[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
2847 * WebCoreSupport.subproj/WebImageRendererFactory.m:
2848 (-[WebImageRendererFactory supportedMIMETypes]): removed code that omits PDF and PostScript from the list since this omission is only needed in WebImageView
2849 * WebView.subproj/WebImageView.m:
2850 (+[WebImageView supportedImageMIMETypes]): added code that omits PDF and PostScript since we don't want WebImageView to render these types
2852 2005-01-10 Maciej Stachowiak <mjs@apple.com>
2856 <rdar://problem/3758033> REGRESSION (Mail): Support attributes in marked text (International input)
2858 * WebCoreSupport.subproj/WebTextRenderer.m:
2859 (-[WebTextRenderer drawLineForCharacters:yOffset:width:color:thickness:]): Changed to support
2860 underline thickness. Also added a bit of a hack here to move thickness 2 underlines down by
2861 .5 pixels, since the rendering engine can't give a fractional pixel offset.
2862 * WebView.subproj/WebHTMLView.m:
2863 (-[WebHTMLView validAttributesForMarkedText]): Support underline, underline color and marked
2864 clause attributes. Others that NSText supports are unimplemented for now.
2865 (-[WebHTMLView firstRectForCharacterRange:]): Remove needless logging.
2866 (-[WebHTMLView unmarkText]): Updated for new WebCore SPI.
2867 (-[WebHTMLView _extractAttributes:ranges:fromAttributedString:]): New method to pull the attributes
2868 and ranges out of an attributed string.
2869 (-[WebHTMLView setMarkedText:selectedRange:]): Extract attributes and pass to WebCore.
2870 (-[WebHTMLView insertText:]): Add comment noting that we don't really handle attributed strings
2873 2005-01-12 Darin Adler <darin@apple.com>
2877 - fixed <rdar://problem/3848257> WebView will draw more than AppKit asks it to, so views behind won't redraw enough (transparent WebView)
2879 * WebView.subproj/WebHTMLView.m:
2880 (-[WebHTMLView _propagateDirtyRectsToOpaqueAncestors]): As recommended by Troy Stephens, do the
2881 layouts here in this call, since it's before propagating the dirty rects to our ancestors.
2882 This fixes the bug, but we only do it if the WebView is not opaque, because otherwise we can
2883 optimize by only doing layouts you really need, and doing them later on is safe because we
2884 know we don't need to draw any of the views behind us.
2885 (-[WebHTMLView _layoutIfNeeded]): Added. Factored out from the method below.
2886 (-[WebHTMLView _web_layoutIfNeededRecursive]): Added. Like the other "layout if needed" call,
2888 (-[WebHTMLView _web_layoutIfNeededRecursive:testDirtyRect:]): Factored out the guts into the
2889 _layoutIfNeeded method above. Otherwise unchanged.
2890 (-[NSView _web_layoutIfNeededRecursive]): Added.
2892 * WebView.subproj/WebFrame.m: (-[WebFrame _updateDrawsBackground]): Call setDrawsBackground:NO
2893 on the scroll view when changing the frame to no longer be in "draws background" mode. This
2894 is needed because the frame manages the "draws background" mode of the scroll view. It won't
2895 have any effect if you call setDrawsBackground:NO before starting to use a WebView, but without
2896 it calling setDrawsBackground:NO later won't have an immediate effect (easily visible in Safari).
2897 This was hidden before because the HTML view was filling with transparent color, which blew away
2898 the fill that was done by NSScrollView.
2900 - fixed <rdar://problem/3921129> reproducible crash at www.funnychristmas.com in CFSet manipulation in WebImageData
2902 * WebCoreSupport.subproj/WebImageData.m:
2903 (-[WebImageData _imageSourceOptions]): Changed types so we don't need a cast.
2904 (+[WebImageData stopAnimationsInView:]): Instead of building a set of sets, by putting in the sets with addObject,
2905 build a single set using unionSet, and then iterate the objects instead of having to iterate the sets and then the
2906 objects in each set. The old code ended up sharing the sets with the live code, when the whole idea was to gather
2907 all the renderers because the process of stopping modifies the active sets.
2909 2005-01-12 Richard Williamson <rjw@apple.com>
2911 Fixed <rdar://problem/3926825> Safari ignores GIF loop count
2913 Get loop count from file properties, not image properties.
2915 Reviewed by Ken Kocienda.
2917 * WebCoreSupport.subproj/WebImageData.h:
2918 * WebCoreSupport.subproj/WebImageData.m:
2919 (-[WebImageData _commonTermination]):
2920 (-[WebImageData fileProperties]):
2921 (-[WebImageData _floatProperty:type:at:]):
2922 (-[WebImageData _floatFileProperty:type:]):
2923 (-[WebImageData _repetitionCount]):
2925 2005-01-11 Chris Blumenberg <cblu@apple.com>
2927 Fixed: <rdar://problem/3934749> assertion failure in WebBaseNetscapePluginView loading movie
2931 * Plugins.subproj/WebBaseNetscapePluginView.m:
2932 (-[WebBaseNetscapePluginView start]): call canStart before asserting about the webView
2934 2005-01-11 John Sullivan <sullivan@apple.com>
2938 - fixed <rdar://problem/3446838> REGRESSION (Mail): text decorations don't print
2939 (e.g. <strike>, underline)
2941 * WebCoreSupport.subproj/WebTextRenderer.m:
2942 (-[WebTextRenderer drawLineForCharacters:yOffset:withWidth:withColor:]):
2943 This bottleneck routine for drawing a line was setting the linewidth to 0 when
2944 the graphics context was not drawing to the screen. Thus, no lines. Now links
2945 are underlined when printing from Safari (as well as Mail).
2947 2005-01-11 Richard Williamson <rjw@apple.com>
2949 Fixed 3949145. CG has a much faster API for drawing lines.
2950 Switched over to that new API (CGContextStrokeLineSegments).
2952 Reviewed by John Sullivan.
2954 * WebCoreSupport.subproj/WebTextRenderer.m:
2955 (-[WebTextRenderer drawLineForCharacters:yOffset:withWidth:withColor:]):
2957 2005-01-10 Chris Blumenberg <cblu@apple.com>
2959 Fixed: <rdar://problem/3948862> REGRESSION: missing images when RTFD is pasted into editable WebView
2961 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.
2965 * WebView.subproj/WebHTMLView.m:
2966 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]): don't deal with subresources since that's now done by the following method
2967 (-[WebHTMLView resourceForData:preferredFilename:]): new handler method called by AppKit
2971 2005-01-06 David Harrison <harrison@apple.com>
2973 Reviewed by Dave Hyatt
2975 <rdar://problem/3588548> AX: tabbing does not work correctly with the screen reader and a focused link; need AXFocusedUIElement to work.
2977 * WebView.subproj/WebHTMLView.m:
2978 (-[WebHTMLView accessibilityFocusedUIElement]):
2979 Implement this so that AppKit can use it from NSAccessibilityHandleFocusChanged.
2981 2005-01-05 Chris Blumenberg <cblu@apple.com>
2983 Fixed: <rdar://problem/3936865> REGRESSION: canvas.drawImage no longer scales properly
2987 * WebCoreSupport.subproj/WebImageData.m: use the height of the inRect instead of the fromRect when setting the origin of the context
2989 2005-01-04 Chris Blumenberg <cblu@apple.com>
2991 Fixed: <rdar://problem/3928329> WebKit should pass nil for "language" to checkSpellingOfString:
2993 Reviewed by kocienda.
2995 * WebView.subproj/WebHTMLView.m:
2996 (-[WebHTMLView _isSelectionMisspelled]): pass nil not @"" for language
2998 2004-12-21 Maciej Stachowiak <mjs@apple.com>
3002 <rdar://problem/3888931> frame naming allows malicious site to bring up a window when you click on a link in another
3004 Implement a security check on name frame visbility. This is the
3005 same rule as mozilla. You can only target frames by name if you
3006 are in the same window, have the same domain as the frame or an
3007 ancestor, or if it's a top level window have the same domain as
3010 * WebView.subproj/WebFrame.m:
3011 (-[WebFrame _shouldAllowAccessFrom:]):
3012 (-[WebFrame _descendantFrameNamed:sourceFrame:]):
3013 (-[WebFrame findFrameNamed:]):
3014 * WebView.subproj/WebFramePrivate.h:
3015 * WebView.subproj/WebView.m:
3016 (-[WebView _findFrameInThisWindowNamed:sourceFrame:]):
3017 (-[WebView _findFrameNamed:sourceFrame:]):
3018 * WebView.subproj/WebViewPrivate.h:
3024 2004-12-20 Richard Williamson <rjw@apple.com>
3026 Add call to new API. ImageIO deprecated some older (although
3027 quite new!) API. This caused us to fail to build on 337 or later.
3029 Developers wanting to build on older versions of Tiger must define
3030 USE_DEPRECATED_IMAGESOURCE_API in WebImageData.m.
3034 * WebCoreSupport.subproj/WebImageData.m:
3035 (-[WebImageData propertiesAtIndex:]):
3037 2004-12-20 Richard Williamson <rjw@apple.com>
3039 Don't call Tiger SPI on Panther.
3043 * WebCoreSupport.subproj/WebTextRendererFactory.m:
3044 (+[WebTextRendererFactory createSharedFactory]):
3046 2004-12-20 Richard Williamson <rjw@apple.com>
3048 Fixed <rdar://problem/3884448> WebKit should turn on CG local font cache
3050 Enable mutli-tier font caching. We should see a performance boost with this
3055 * WebCoreSupport.subproj/WebTextRendererFactory.m:
3056 (+[WebTextRendererFactory createSharedFactory]):
3058 2004-12-20 Richard Williamson <rjw@apple.com>
3060 Fix image decoding to separately decode image meta data from actual image bits. I
3061 incorrectly consolidated decode of meta data and image bits resulting in a huge
3062 performance regression.
3064 Double size of WebCore cache on lower end machines. On the PLT run on machines with
3065 256MB of memory, too many images were being evicted, causing a re-decode on the PLT.
3066 Upping the lower limit of the cache size ensure that no images are evicted (this
3067 goes hand-in-hand with the change to the minimum object size from 32K to 40K).
3071 * WebCoreSupport.subproj/WebImageData.h:
3072 * WebCoreSupport.subproj/WebImageData.m:
3073 (+[WebImageData initialize]):
3074 (-[WebImageData _commonTermination]):
3075 (-[WebImageData _invalidateImages]):
3076 (-[WebImageData _invalidateImageProperties]):
3077 (-[WebImageData imageAtIndex:]):
3078 (-[WebImageData propertiesAtIndex:]):
3079 (-[WebImageData _cacheImages:allImages:]):
3080 (-[WebImageData decodeData:isComplete:callback:]):
3081 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
3082 * WebView.subproj/WebPreferences.m:
3083 (+[WebPreferences initialize]):
3085 2004-12-20 Richard Williamson <rjw@apple.com>
3087 Fixed build problem caused by change to ImageIO API.
3091 * WebCoreSupport.subproj/WebImageData.m:
3093 2004-12-19 Darin Adler <darin@apple.com>
3097 - some garbage collection fixes
3099 * Misc.subproj/WebNSObjectExtras.h: (WebCFAutorelease): Replaced the old WebNSRetainCFRelease with this
3100 much-easier-to-understand function cribbed from what David Harrison did in WebCore.
3102 * Misc.subproj/WebKitNSStringExtras.m: (+[NSString _web_encodingForResource:]): Use CFRelease here to
3103 get rid of an unnecessary use of WebNSRetainCFRelease.
3104 * Misc.subproj/WebNSURLExtras.m:
3105 (+[NSURL _web_URLWithData:relativeToURL:]): Use WebCFAutorelease instead of WebNSRetainCFRelease and autorelease.
3106 (-[NSURL _web_URLWithLowercasedScheme]): Ditto.
3107 (-[NSString _web_mapHostNameWithRange:encode:makeString:]): Use WebCFAutorelease here; the old code would not
3108 work correctly under GC.
3109 * Plugins.subproj/WebNetscapePluginPackage.m: (+[WebNetscapePluginPackage preferredLocalizationName]):
3110 Use WebCFAutorelease here; the old code would not work correctly under GC.
3112 2004-12-18 Chris Blumenberg <cblu@apple.com>
3114 Fixed: <rdar://problem/3766915> PDF content needs search to work
3116 Reviewed by kevin, john.
3118 * WebView.subproj/WebPDFView.m:
3119 (-[WebPDFView searchFor:direction:caseSensitive:wrap:]): implemented
3120 (-[WebPDFView takeFindStringFromSelection:]): new
3121 (-[WebPDFView jumpToSelection:]): new
3122 (-[WebPDFView validateUserInterfaceItem:]): new
3124 2004-12-17 Richard Williamson <rjw@apple.com>
3126 Make image decoding as lazy as possible for non threaded case; in some cases
3127 can avoid unnecessary decoding work.
3131 * WebCoreSupport.subproj/WebImageData.h:
3132 * WebCoreSupport.subproj/WebImageData.m:
3133 (-[WebImageData imageAtIndex:]):
3134 (-[WebImageData propertiesAtIndex:]):
3135 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
3137 2004-12-16 John Sullivan <sullivan@apple.com>
3141 One of the assertions from my previous checkin fired, so
3142 I made this code more robust.
3144 * WebCoreSupport.subproj/WebBridge.m:
3145 (-[WebBridge _preferences]):
3146 new helper method, returns global preferences if webView is nil,
3147 otherwise returns webView's preferences
3148 (-[WebBridge getObjectCacheSize]):
3149 use new helper method, remove now-unnecessary assert
3150 (-[WebBridge _retrieveKeyboardUIModeFromPreferences:]):
3153 2004-12-16 John Sullivan <sullivan@apple.com>
3157 - fixed <rdar://problem/3913523> Mail needs SPI for adding tooltips to links
3158 - cleaned up some calls to +[WebPreferences standardPreferences] that should
3159 have been using -[WebView preferences]
3161 This adds a (currently SPI-only) new feature that shows the URL of the link
3162 under the mouse in a toolTip. I tested this in Safari, but we're adding this
3163 feature for Mail, and Safari won't use it (unless of course you know the
3164 magic defaults command)
3166 * Plugins.subproj/WebBaseNetscapePluginView.m:
3167 (-[WebBaseNetscapePluginView start]):
3168 use -[WebView preferences] instead of +[WebPreferences standardPreferences]
3170 * WebCoreSupport.subproj/WebBridge.m:
3171 (-[WebBridge getObjectCacheSize]):
3173 (-[WebBridge _retrieveKeyboardUIModeFromPreferences:]):
3176 * WebView.subproj/WebBaseResourceHandleDelegate.m:
3177 (-[WebBaseResourceHandleDelegate willCacheResponse:]):
3180 * WebView.subproj/WebFrame.m:
3181 (-[WebFrame _transitionToCommitted:]):
3183 (-[WebFrame _loadItem:withLoadType:]):
3186 * WebView.subproj/WebHTMLViewInternal.h:
3187 private struct now keeps ivar for cached value of showsURLsInToolTips
3188 so it doesn't have look it up in preferences a zillion times
3190 * WebView.subproj/WebHTMLView.m:
3191 (-[WebHTMLView _updateMouseoverWithEvent:]):
3192 if private->showsURLsInToolTips is true, set the toolTip from the URL.
3193 Fall back to showing the title attribute in case some element has a title
3194 attribute but no URL.
3195 (-[WebHTMLView _mayStartDragAtEventLocation:]):
3196 use -[WebView preferences] instead of +[WebPreferences standardPreferences]
3197 (-[WebHTMLView _resetCachedWebPreferences:]):
3198 get a fresh value for private->showsURLsInToolTips
3199 (-[WebHTMLView initWithFrame:]):
3200 call _resetCachedWebPreferences the first time, and listen for WebPreferencesChanged notifications
3201 (-[WebHTMLView _handleStyleKeyEquivalent:]):
3202 use -[WebView preferences] instead of +[WebPreferences standardPreferences]
3204 * WebView.subproj/WebPreferenceKeysPrivate.h:
3205 added WebKitShowsURLsInToolTipsPreferenceKey
3207 * WebView.subproj/WebPreferences.m:
3208 (+[WebPreferences initialize]):
3209 initialize WebKitShowsURLsInToolTipsPreferenceKey to 0
3210 (-[WebPreferences showsURLsInToolTips]):
3211 return WebKitShowsURLsInToolTipsPreferenceKey value
3212 (-[WebPreferences setShowsURLsInToolTips:]):
3213 set WebKitShowsURLsInToolTipsPreferenceKey value
3215 * WebView.subproj/WebPreferencesPrivate.h:
3216 add declarations for showsURLsInToolTips and setter
3218 * WebView.subproj/WebTextView.m:
3219 (-[WebTextView _preferences]):
3220 new helper method that gets preferences from webView if there is a webView,
3221 otherwise gets global preferences
3222 (-[WebTextView setFixedWidthFont]):
3223 use new helper method rather than always using global preferences
3224 (-[WebTextView initWithFrame:]):
3225 observe WebPreferencesChangedNotification instead of unnecessarily general
3226 NSUserDefaultsChangedNotification
3228 2004-12-14 John Sullivan <sullivan@apple.com>
3232 - rest of WebKit fix for <rdar://problem/3790011> undoable operations all say "Undo"
3233 in the menu, no specific action names
3235 I only know of one loose end currently, which I wrote up as <rdar://problem/3920971> Edit menu
3236 says "Undo Change Attributes" when it should say "Undo Set Color", from font panel
3238 * WebView.subproj/WebHTMLView.m:
3239 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]):
3240 use WebUndoActionSetColor when dragging color swatch
3241 (-[WebHTMLView _applyStyleToSelection:withUndoAction:]):
3242 new WebUndoAction parameter, passed across bridge
3243 (-[WebHTMLView _toggleBold]):
3244 use WebUndoActionSetFont
3245 (-[WebHTMLView _toggleItalic]):
3246 use WebUndoActionSetFont
3247 (-[WebHTMLView pasteFont:]):
3248 use WebUndoActionPasteFont
3249 (-[WebHTMLView changeFont:]):
3250 use WebUndoActionSetFont
3251 (-[WebHTMLView changeAttributes:]):
3252 use WebUndoActionChangeAttributes
3253 (-[WebHTMLView _undoActionFromColorPanelWithSelector:]):
3254 new method, returns WebUndoActionSetBackgroundColor or WebUndoActionSetColor
3255 (-[WebHTMLView _changeCSSColorUsingSelector:inRange:]):
3256 now calls _undoActionFromColorPanelWithSelector
3257 (-[WebHTMLView changeColor:]):
3258 use WebUndoActionSetColor
3259 (-[WebHTMLView _alignSelectionUsingCSSValue:withUndoAction:]):
3260 new WebUndoAction parameter, passed through
3261 (-[WebHTMLView alignCenter:]):
3262 use WebUndoActionCenter
3263 (-[WebHTMLView alignJustified:]):
3264 use WebUndoActionJustify
3265 (-[WebHTMLView alignLeft:]):
3266 use WebUndoActionAlignLeft
3267 (-[WebHTMLView alignRight:]):
3268 use WebUndoActionAlignRight
3269 (-[WebHTMLView subscript:]):
3270 use WebUndoActionAlignSubscript
3271 (-[WebHTMLView superscript:]):
3272 use WebUndoActionAlignSuperscript
3273 (-[WebHTMLView unscript:]):
3274 use WebUndoActionAlignUnscript
3275 (-[WebHTMLView underline:]):
3276 use WebUndoActionAlignUnderline
3278 * WebView.subproj/WebView.m:
3279 (-[WebView setTypingStyle:]):
3280 pass WebUndoActionUnspecified through as new parameter since we don't have any more specific info
3281 (-[WebView applyStyle:]):
3284 2004-12-14 Richard Williamson <rjw@apple.com>
3286 Helper method to get URL of plugin view.
3290 * Misc.subproj/WebNSViewExtras.m:
3291 (-[NSView _webViewURL]):
3293 2004-12-14 Vicki Murley <vicki@apple.com>
3297 <rdar://problem/3855573> Remove reference to "WebScriptMethods" from WebScriptObject.h comments
3299 * Plugins.subproj/WebPlugin.h: changed instances of "WebScriptMethods" to "WebScripting" in this
3300 file as well, as requested in the bug report
3302 2004-12-13 Maciej Stachowiak <mjs@apple.com>
3306 <rdar://problem/3912488> Mail throws an exception after backspacing "away" inline input
3308 * WebView.subproj/WebHTMLView.m:
3309 (-[WebHTMLView setMarkedText:selectedRange:]): Don't try to set a selection if
3310 we end up with no marked text, since that case fails and is unnecessary.
3312 2004-12-14 John Sullivan <sullivan@apple.com>
3316 - WebKit part of plumbing of fix for <rdar://problem/3790011> undoable operations all say "Undo" in the menu,
3317 no specific action names
3319 * WebCoreSupport.subproj/WebBridge.m:
3320 (-[WebBridge nameForUndoAction:]):
3321 renamed from setUndoActionNamePlaceholder, replaced arbitrary integers with enum values, and
3322 handled new "unspecified" case as a fallback
3324 2004-12-13 Richard Williamson <rjw@apple.com>
3326 Fixed <rdar://problem/3887767> LiveConnect doesn't propagate Java exceptions back to JavaScript (prevents security suite from running)
3330 * Plugins.subproj/WebJavaPlugIn.h:
3332 2004-12-13 John Sullivan <sullivan@apple.com>
3336 - fixed <rdar://problem/3744583> Safari can not quit when a webpage has a login sheet
3337 that can't be cancelled.
3339 The proper fix for this would be to change the class of the NSPanel in the nib file.
3340 But since this would require a localization change, I did a run-time hack instead.
3341 I'll file a bug about fixing this when we're out of localization freeze.
3343 * Panels.subproj/WebAuthenticationPanel.m:
3344 (-[WebAuthenticationPanel replacePanelWithSubclassHack]):
3345 new method, creates a new panel that is identical to the original one except that
3346 it's our subclass, and moves all the subviews of the original panel into the new one.
3347 (-[WebAuthenticationPanel loadNib]):
3348 call replacePanelWithSubclassHack
3349 (-[NonBlockingPanel _blocksActionWhenModal:]):
3350 only method of new NSPanel subclass; overrides this SPI to allow the user to quit
3351 when one of these panels/sheets is on-screen
3353 2004-12-10 Richard Williamson <rjw@apple.com>
3355 Fixed <rdar://problem/3898708> REGRESSION (8A314-8A317): World Clock's short hand not displayed (ImageIO problem with PDF?)
3356 Fixed <rdar://problem/3914012> use CG directly for pdf images not ImageIO
3358 Create a PDF document and draw that instead of using ImageIO to create a rasterized image.
3362 * WebCoreSupport.subproj/WebImageData.h:
3363 * WebCoreSupport.subproj/WebImageData.m:
3364 (-[WebImageData setIsPDF:]):
3365 (-[WebImageData isPDF]):
3366 (-[WebImageData dealloc]):
3367 (-[WebImageData decodeData:isComplete:callback:]):
3368 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
3369 (-[WebImageData size]):
3370 (-[WebImageData animate]):
3371 (-[WebImageData _createPDFWithData:]):
3372 (-[WebImageData _PDFDocumentRef]):
3373 (-[WebImageData _PDFDrawInContext:]):
3374 (-[WebImageData _PDFDrawFromRect:toRect:operation:alpha:flipped:context:]):
3375 * WebCoreSupport.subproj/WebImageRenderer.h:
3376 * WebCoreSupport.subproj/WebImageRenderer.m:
3377 (-[WebImageRenderer size]):
3378 (-[WebImageRenderer incrementalLoadWithBytes:length:complete:callback:]):
3379 (-[WebImageRenderer drawImageInRect:fromRect:compositeOperator:context:]):
3382 2004-12-10 John Sullivan <sullivan@apple.com>
3386 - fixed <rdar://problem/3855127> Error while printing w/o sheet, then window is left in a bad state,
3387 if there's no default printer set
3389 * WebView.subproj/WebHTMLView.m:
3390 (-[WebHTMLView beginDocument]):
3391 Our implementation of knowsPageRange puts the WebHTMLView into a special "printing mode". We must
3392 exit the "printing mode" to return to normal behavior. This is normally done in endDocument.
3393 However, it turns out that if there's an exception in [super beginDocument], then endDocument
3394 will not be called (lame-o AppKit API). So, we handle that case by catching the exception and
3395 exiting the "printing mode" in beginDocument when it occurs.
3397 2004-12-09 Richard Williamson <rjw@apple.com>
3399 Fixed <rdar://problem/3905789> Burn Disc image vibrates rapidly
3401 Restrict our support for animated images to GIF. We used to
3402 use presence of more than one image in a resource to determine
3403 if an image should be animated. This caused us to animate icns!
3404 If we ever support any other animated image formats we'll have
3409 * WebCoreSupport.subproj/WebImageData.h:
3410 * WebCoreSupport.subproj/WebImageData.m:
3411 (-[WebImageData shouldAnimate]):
3412 * WebCoreSupport.subproj/WebImageRenderer.m:
3413 (-[WebImageRenderer _startOrContinueAnimationIfNecessary]):
3415 2004-12-09 Richard Williamson <rjw@apple.com>
3417 Make WebPluginDatabase.h private (Dashboard needs SPI).
3419 * WebKit.pbproj/project.pbxproj:
3423 2004-12-09 Chris Blumenberg <cblu@apple.com>
3425 Workaround for this exception being raised during download:
3426 [WebDownload connection:willStopBufferingData:]: selector not recognized
3430 * Misc.subproj/WebDownload.m:
3431 (-[WebDownload connection:willStopBufferingData:]): implement this method so no exception is raised. It is a bug in Foundation that this method is being called, but it's too late to fix Foundation since it has already been submitted this week. This workaround will prevent any problems from affecting users.
3433 2004-12-08 Richard Williamson <rjw@apple.com>
3435 Fixed <rdar://problem/3911719> REGRESSION: Images no longer scale vertically
3436 Account for scaling correctly when taking into account progressively
3439 Also added implementation of repetition count for animated GIF images.
3440 Also replaced strings with new constants from CFImageProperties.h
3442 Also fixed possible problem with -(NSSize)size implementation,
3443 relevant to Panther only.
3447 * WebCoreSupport.subproj/WebImageData.m:
3448 (-[WebImageData _floatProperty:type:at:]):
3449 (-[WebImageData _frameDurationAt:]):
3450 (-[WebImageData _repetitionCount]):
3451 * WebCoreSupport.subproj/WebImageRenderer.m:
3452 (-[WebImageRenderer size]):
3454 2004-12-08 Chris Blumenberg <cblu@apple.com>
3456 Removed NPN wrappers since these no longer need to be defined to make the QT plug-in work
3457 since 3828925 has been fixed.
3461 * Plugins.subproj/WebNetscapePluginPackage.m:
3462 (-[WebNetscapePluginPackage load]): use under-bar symbols since non-under-bar wrappers have been removed
3463 * Plugins.subproj/npapi.m: removed NPN wrappers
3464 * WebKit.exp: removed symbols
3466 2004-12-08 Ken Kocienda <kocienda@apple.com>
3470 * WebView.subproj/WebHTMLView.m:
3471 (-[WebHTMLView drawRect:]): Work around for this bug:
3472 <rdar://problem/3908282> REGRESSION (Mail): No drag image dragging selected text in Blot and Mail
3473 The reason for the workaround is that this method is called explicitly from the code
3474 to generate a drag image, and at that time, getRectsBeingDrawn:count: will return a zero count.
3475 This code change uses the passed-in rect when the count is zero.
3477 2004-12-07 Administrator <cblu@apple.com>
3479 Support for fix for:
3480 <rdar://problem/3734309> Safari doesn't open folders in title bar menu with non-Roman names using Cmd+click
3484 * Misc.subproj/WebNSURLExtras.h:
3485 * Misc.subproj/WebNSURLExtras.m:
3486 (+[NSURL _web_URLWithUserTypedString:relativeToURL:]): renamed to take relativeToURL parameter
3487 (+[NSURL _web_URLWithUserTypedString:]): call _web_URLWithUserTypedString:relativeToURL: with nil for URL
3489 2004-12-07 Richard Williamson <rjw@apple.com>
3491 Fixed <rdar://problem/3905564> REGRESSION (Tiger); in History menu, pixel size appears but is wrong for standalone images in Safari.