1 2005-06-02 Maciej Stachowiak <mjs@apple.com>
5 - remove use of _cfBundle SPI
7 * Plugins.subproj/WebBasePluginPackage.h:
8 * Plugins.subproj/WebBasePluginPackage.m:
9 (-[WebBasePluginPackage initWithPath:]):
10 (-[WebBasePluginPackage load]):
11 (-[WebBasePluginPackage dealloc]):
12 * Plugins.subproj/WebNetscapePluginPackage.m:
13 (-[WebNetscapePluginPackage openResourceFile]):
14 (-[WebNetscapePluginPackage closeResourceFile:]):
15 (-[WebNetscapePluginPackage initWithPath:]):
16 (-[WebNetscapePluginPackage unloadWithoutShutdown]):
17 (-[WebNetscapePluginPackage load]):
18 * Plugins.subproj/WebPluginPackage.m:
19 (-[WebPluginPackage initWithPath:]):
21 2005-06-02 Maciej Stachowiak <mjs@apple.com>
25 - remove use of NSURLRequest and NSUserDefaults SPI
27 * History.subproj/WebHistoryItem.m:
28 (-[WebHistoryItem _setFormInfoFromRequest:]):
29 * Misc.subproj/WebNSURLRequestExtras.h: Added.
30 * Misc.subproj/WebNSURLRequestExtras.m: Added.
31 (-[NSURLRequest _web_HTTPReferrer]):
32 (-[NSURLRequest _web_HTTPContentType]):
33 (-[NSMutableURLRequest _web_setHTTPContentType:]):
34 (-[NSMutableURLRequest _web_setHTTPReferrer:]):
35 (-[NSMutableURLRequest _web_setHTTPUserAgent:]):
36 * Misc.subproj/WebNSUserDefaultsExtras.h: Added.
37 * Misc.subproj/WebNSUserDefaultsExtras.m: Added.
38 (-[NSString _webkit_HTTPStyleLanguageCode]):
40 (+[NSUserDefaults _ensureAndLockPreferredLanguageLock]):
41 (+[NSUserDefaults _webkit_defaultsDidChange]):
42 (addDefaultsChangeObserver):
43 (+[NSUserDefaults _webkit_addDefaultsChangeObserver]):
44 (+[NSUserDefaults _webkit_preferredLanguageCode]):
45 * Plugins.subproj/WebBaseNetscapePluginView.m:
46 (-[WebBaseNetscapePluginView requestWithURLCString:]):
47 * Plugins.subproj/WebNetscapePluginEmbeddedView.m:
48 (-[WebNetscapePluginEmbeddedView didStart]):
49 * Plugins.subproj/WebNetscapePluginStream.m:
50 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
51 * WebCoreSupport.subproj/WebBridge.m:
52 (-[WebBridge createWindowWithURL:frameName:]):
53 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
54 (-[WebBridge incomingReferrer]):
55 (-[WebBridge createModalDialogWithURL:]):
56 * WebCoreSupport.subproj/WebSubresourceClient.m:
57 (+[WebSubresourceClient startLoadingResource:withRequest:customHeaders:referrer:forDataSource:]):
58 * WebCoreSupport.subproj/WebViewFactory.m:
59 (-[WebViewFactory defaultLanguageCode]):
60 * WebKit.pbproj/project.pbxproj:
61 * WebView.subproj/WebBaseResourceHandleDelegate.m:
62 (-[WebBaseResourceHandleDelegate willSendRequest:redirectResponse:]):
63 * WebView.subproj/WebDefaultContextMenuDelegate.m:
64 (-[WebDefaultUIDelegate openNewWindowWithURL:element:]):
65 * WebView.subproj/WebFrame.m:
66 (-[WebFrame _loadItem:withLoadType:]):
67 (-[WebFrame _addExtraFieldsToRequest:alwaysFromRequest:]):
68 (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
69 (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
70 * WebView.subproj/WebMainResourceClient.m:
71 * WebView.subproj/WebView.m:
72 (-[WebView _cachedResponseForURL:]):
73 (-[WebView userAgentForURL:]):
75 2005-06-02 Maciej Stachowiak <mjs@apple.com>
79 - move private gunk from header to implementation file.
81 * WebCoreSupport.subproj/WebNewKeyGeneration.c:
82 * WebCoreSupport.subproj/WebNewKeyGeneration.h:
84 2005-06-02 Maciej Stachowiak <mjs@apple.com>
88 - remove dependency on NSFileManager and NSCalendarDate private extras from WebFou
90 * History.subproj/WebHistory.m:
91 (-[WebHistoryPrivate findIndex:forDay:]):
92 (-[WebHistoryPrivate arrayRepresentation]):
93 (-[WebHistoryPrivate _loadHistoryGuts:URL:error:]):
94 * Misc.subproj/WebFileDatabase.m:
95 (-[WebFileDatabase _truncateToSizeLimit:]):
96 (-[WebFileDatabase removeAllObjects]):
97 (-[WebFileDatabase performSetObject:forKey:]):
98 (-[WebFileDatabase performRemoveObjectForKey:]):
99 (-[WebFileDatabase open]):
100 * Misc.subproj/WebKitNSStringExtras.m:
101 (-[NSString _webkit_fixedCarbonPOSIXPath]):
102 * Misc.subproj/WebNSCalendarDateExtras.h: Added.
103 * Misc.subproj/WebNSCalendarDateExtras.m: Added.
104 (-[NSCalendarDate _webkit_compareDay:]):
105 * Misc.subproj/WebNSDataExtras.h:
106 * Misc.subproj/WebNSDictionaryExtras.h:
107 * Misc.subproj/WebNSFileManagerExtras.h: Added.
108 * Misc.subproj/WebNSFileManagerExtras.m: Added.
109 (-[NSFileManager _webkit_fileExistsAtPath:isDirectory:traverseLink:]):
110 (-[NSFileManager _webkit_createIntermediateDirectoriesForPath:attributes:]):
111 (-[NSFileManager _webkit_createDirectoryAtPathWithIntermediateDirectories:attributes:]):
112 (-[NSFileManager _webkit_createFileAtPathWithIntermediateDirectories:contents:attributes:directoryAttributes:]):
113 (-[NSFileManager _webkit_removeFileOnlyAtPath:]):
114 (-[NSFileManager _webkit_backgroundRemoveFileAtPath:]):
115 (-[NSFileManager _webkit_backgroundRemoveLeftoverFiles:]):
116 (-[NSFileManager _webkit_carbonPathForPath:]):
117 (-[NSFileManager _webkit_startupVolumeName]):
118 (-[NSFileManager _webkit_pathWithUniqueFilenameForPath:]):
119 * Plugins.subproj/WebBaseNetscapePluginStream.m:
120 * WebKit.pbproj/project.pbxproj:
121 * WebView.subproj/WebHTMLView.m:
122 (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]):
123 * WebView.subproj/WebImageView.m:
124 (-[WebImageView namesOfPromisedFilesDroppedAtDestination:]):
126 2005-06-02 Maciej Stachowiak <mjs@apple.com>
130 - remove dependencies on NSDictionary and NSURL extras
132 * History.subproj/WebHistoryItem.m:
133 (-[WebHistoryItem initFromDictionaryRepresentation:]):
134 * Misc.subproj/WebKitNSStringExtras.h:
135 * Misc.subproj/WebKitNSStringExtras.m:
136 (-[NSString _webkit_hasCaseInsensitiveSuffix:]):
137 (-[NSString _webkit_hasCaseInsensitiveSubstring:]):
138 (-[NSString _webkit_filenameByFixingIllegalCharacters]):
139 * Misc.subproj/WebNSDictionaryExtras.h: Added.
140 * Misc.subproj/WebNSDictionaryExtras.m: Added.
141 (-[NSDictionary _webkit_numberForKey:]):
142 (-[NSDictionary _webkit_intForKey:]):
143 (-[NSDictionary _webkit_stringForKey:]):
144 (-[NSDictionary _webkit_objectForMIMEType:]):
145 (-[NSMutableDictionary _webkit_setObject:forUncopiedKey:]):
146 (-[NSMutableDictionary _webkit_setInt:forKey:]):
147 (-[NSMutableDictionary _webkit_setBool:forKey:]):
148 * Misc.subproj/WebNSPasteboardExtras.m:
149 * Misc.subproj/WebNSURLExtras.h:
150 * Misc.subproj/WebNSURLExtras.m:
151 (-[NSURL _webkit_URLByRemovingFragment]):
152 (-[NSURL _webkit_scriptIfJavaScriptURL]):
153 (-[NSURL _webkit_isFileURL]):
154 (-[NSURL _web_hostString]):
155 (-[NSURL _webkit_suggestedFilenameWithMIMEType:]):
156 * Misc.subproj/WebNSViewExtras.m:
157 * Panels.subproj/WebPanelAuthenticationHandler.m:
158 * Plugins.subproj/WebBaseNetscapePluginStream.m:
159 * Plugins.subproj/WebBaseNetscapePluginView.m:
160 (-[WebBaseNetscapePluginView evaluateJavaScriptPluginRequest:]):
161 (-[WebBaseNetscapePluginView loadPluginRequest:]):
162 (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]):
163 * Plugins.subproj/WebPluginController.m:
164 (-[WebPluginController webPlugInContainerLoadRequest:inFrame:]):
165 * WebCoreSupport.subproj/WebBridge.m:
166 * WebKit.pbproj/project.pbxproj:
167 * WebView.subproj/WebDataSource.m:
168 * WebView.subproj/WebFrame.m:
169 * WebView.subproj/WebFrameView.m:
170 * WebView.subproj/WebHTMLView.m:
171 * WebView.subproj/WebPreferences.m:
172 (-[WebPreferences _setIntegerValue:forKey:]):
173 (-[WebPreferences _setBoolValue:forKey:]):
174 * WebView.subproj/WebResource.m:
175 (-[WebResource _initWithPropertyList:]):
176 (-[WebResource _fileWrapperRepresentation]):
177 * WebView.subproj/WebView.m:
179 2005-06-02 Maciej Stachowiak <mjs@apple.com>
183 - remove dependencies on NSString and NSData extras from Foundation
185 * Misc.subproj/WebKitNSStringExtras.h:
186 * Misc.subproj/WebKitNSStringExtras.m:
187 (-[NSString _webkit_isCaseInsensitiveEqualToString:]):
188 (-[NSString _webkit_hasCaseInsensitivePrefix:]):
189 (-[NSString _webkit_stringByTrimmingWhitespace]):
190 (-[NSString _webkit_stringByCollapsingNonPrintingCharacters]):
191 (-[NSString _webkit_fixedCarbonPOSIXPath]):
192 * Misc.subproj/WebNSDataExtras.h:
193 * Misc.subproj/WebNSDataExtras.m:
194 (-[NSString _web_capitalizeRFC822HeaderFieldName]):
195 (-[NSData _web_isCaseInsensitiveEqualToCString:]):
197 (-[NSData _web_parseRFC822HeaderFields]):
198 (-[NSData _webkit_guessedMIMETypeForXML]):
199 (-[NSData _webkit_guessedMIMEType]):
200 * Misc.subproj/WebNSPasteboardExtras.m:
201 (-[NSPasteboard _web_bestURL]):
202 * Misc.subproj/WebNSURLExtras.h:
203 * Misc.subproj/WebNSURLExtras.m:
204 (applyHostNameFunctionToURLString):
205 (+[NSURL _web_URLWithUserTypedString:relativeToURL:]):
206 (+[NSURL _web_URLWithDataAsString:relativeToURL:]):
207 (-[NSURL _webkit_shouldLoadAsEmptyDocument]):
208 (-[NSString _webkit_isJavaScriptURL]):
209 (-[NSString _webkit_isFileURL]):
210 (-[NSString _webkit_isFTPDirectoryURL]):
211 (-[NSString _web_encodeHostName]):
212 (-[NSString _webkit_rangeOfURLScheme]):
213 (-[NSString _webkit_looksLikeAbsoluteURL]):
214 (-[NSString _webkit_URLFragment]):
215 * Misc.subproj/WebNSViewExtras.m:
216 * Plugins.subproj/WebBaseNetscapePluginView.m:
217 (-[WebBaseNetscapePluginView _postURL:target:len:buf:file:notifyData:sendNotification:allowHeaders:]):
218 * Plugins.subproj/WebPluginDatabase.m:
219 * WebCoreSupport.subproj/WebBridge.m:
220 (-[WebBridge setTitle:]):
221 * WebView.subproj/WebDataSource.m:
222 (-[WebDataSource _setTitle:]):
223 * WebView.subproj/WebFrame.m:
224 (-[WebFrame _loadItem:withLoadType:]):
225 * WebView.subproj/WebPreferences.m:
226 (-[WebPreferences userStyleSheetLocation]):
227 * WebView.subproj/WebView.m:
228 (+[WebView _MIMETypeForFile:]):
230 2005-06-02 Maciej Stachowiak <mjs@apple.com>
234 - first stage of cleaning up SPI usage in WebKit
236 * Carbon.subproj/CarbonUtils.m:
237 * DOM.subproj/WebDOMOperations.m:
238 (-[DOMHTMLLinkElement _subresourceURLs]):
239 (-[DOMHTMLParamElement _subresourceURLs]):
240 * History.subproj/WebHistoryItem.m:
241 (-[WebHistoryItem _setFormInfoFromRequest:]):
242 * Misc.subproj/WebDatabase.m:
243 (-[WebDatabase setObject:forKey:]):
244 (-[WebDatabase removeObjectForKey:]):
245 (-[WebDatabase removeAllObjects]):
246 (-[WebDatabase objectForKey:]):
247 (-[WebDatabase open]):
248 (-[WebDatabase close]):
249 (-[WebDatabase sync]):
250 (-[WebDatabase count]):
251 (-[WebDatabase setSizeLimit:]):
252 * Misc.subproj/WebIconDatabase.m:
253 (-[WebIconDatabase iconForURL:withSize:cache:]):
254 (-[WebIconDatabase _iconForFileURL:withSize:]):
255 * Misc.subproj/WebKitNSStringExtras.h:
256 * Misc.subproj/WebKitNSStringExtras.m:
257 (+[NSString _web_encodingForResource:]):
258 (-[NSString _webkit_isCaseInsensitiveEqualToString:]):
259 * Misc.subproj/WebNSEventExtras.h:
260 * Misc.subproj/WebNSEventExtras.m:
261 (-[NSEvent _web_isTabKeyEvent]):
262 * Misc.subproj/WebNSURLExtras.h:
263 * Misc.subproj/WebNSURLExtras.m:
264 (-[NSURL _webkit_isFileURL]):
265 (-[NSString _webkit_isJavaScriptURL]):
266 (-[NSString _webkit_isFileURL]):
267 * Panels.subproj/WebPanelAuthenticationHandler.m:
268 (-[NSMutableDictionary _webkit_setObject:forUncopiedKey:]):
269 (-[WebPanelAuthenticationHandler enqueueChallenge:forWindow:]):
270 (-[WebPanelAuthenticationHandler startAuthentication:window:]):
271 * Plugins.subproj/WebBaseNetscapePluginView.m:
272 * Plugins.subproj/WebBasePluginPackage.m:
273 (-[WebBasePluginPackage isQuickTimePlugIn]):
274 (-[WebBasePluginPackage isJavaPlugIn]):
275 * Plugins.subproj/WebPluginPackage.m:
276 (-[WebPluginPackage initWithPath:]):
277 * WebCoreSupport.subproj/WebBridge.m:
278 (-[WebBridge canTargetLoadInFrame:]):
279 (-[WebBridge valueForKey:keys:values:]):
280 * WebCoreSupport.subproj/WebGlyphBuffer.m:
281 * WebCoreSupport.subproj/WebImageDecodeItem.h:
282 * WebCoreSupport.subproj/WebImageDecodeItem.m:
283 * WebCoreSupport.subproj/WebImageDecoder.h:
284 * WebCoreSupport.subproj/WebImageDecoder.m:
285 * WebCoreSupport.subproj/WebTextRenderer.h:
287 * WebView.subproj/WebBaseResourceHandleDelegate.m:
288 (-[WebBaseResourceHandleDelegate _canUseResourceForRequest:]):
289 * WebView.subproj/WebDataProtocol.m:
290 (+[WebDataProtocol _webIsDataProtocolURL:]):
291 * WebView.subproj/WebFrame.m:
292 (-[WebFrame _shouldAllowAccessFrom:]):
293 (-[WebFrame reload]):
294 * WebView.subproj/WebHTMLRepresentation.m:
295 (-[WebHTMLRepresentation _isDisplayingWebArchive]):
296 * WebView.subproj/WebMainResourceClient.m:
297 (-[WebMainResourceClient continueAfterContentPolicy:response:]):
298 (-[WebMainResourceClient didReceiveResponse:]):
299 * WebView.subproj/WebPDFView.m:
300 * WebView.subproj/WebView.m:
301 (+[WebView _MIMETypeForFile:]):
303 2005-06-01 Darin Adler <darin@apple.com>
305 Reviewed by John Sullivan.
307 - WebKit part of fix for <rdar://problem/3166090> add IE JavaScript extension window.showModalDialog
309 * WebCoreSupport.subproj/WebBridge.m:
310 (-[WebBridge createModalDialogWithURL:]): Added. Calls the UI delegate, falling back to the generic
311 "create WebView" method.
312 (-[WebBridge canRunModal]): Added. Checks the UI delegate to see if it implements runModal.
313 (-[WebBridge canRunModalNow]): Added. Checks the "inConnectionCallback" field so we can prevent
314 deadlock since we can't do any I/O while inside a connection callback until this aspect of NSURLConnection
316 (-[WebBridge runModal]): Added. Sets "defersCallbacks" on all other web views in the group, then
317 calls runModal on the UI delegate.
319 * WebView.subproj/WebBaseResourceHandleDelegate.h: Added inConnectionCallback class method.
320 * WebView.subproj/WebBaseResourceHandleDelegate.m:
321 (-[WebBaseResourceHandleDelegate connection:willSendRequest:redirectResponse:]): Bump count and then
322 decrement count so we can tell if we are in a callback.
323 (-[WebBaseResourceHandleDelegate connection:didReceiveAuthenticationChallenge:]): Ditto.
324 (-[WebBaseResourceHandleDelegate connection:didCancelAuthenticationChallenge:]): Ditto.
325 (-[WebBaseResourceHandleDelegate connection:didReceiveResponse:]): Ditto.
326 (-[WebBaseResourceHandleDelegate connection:didReceiveData:lengthReceived:]): Ditto.
327 (-[WebBaseResourceHandleDelegate connection:willStopBufferingData:]): Ditto.
328 (-[WebBaseResourceHandleDelegate connectionDidFinishLoading:]): Ditto.
329 (-[WebBaseResourceHandleDelegate connection:didFailWithError:]): Ditto.
330 (-[WebBaseResourceHandleDelegate connection:willCacheResponse:]): Ditto.
331 (+[WebBaseResourceHandleDelegate inConnectionCallback]): Added. Return YES if count is not 0.
333 * WebView.subproj/WebMainResourceClient.m:
334 (-[WebMainResourceClient receivedError:]): Changed to use the method without the connection: parameter
335 in the base class, since we no longer are overriding the connection: version.
336 (-[WebMainResourceClient willSendRequest:redirectResponse:]): Change to override the version without
337 the connection prefix/parameter; now only the base class overrides the actual connection delegate methods.
338 (-[WebMainResourceClient continueAfterContentPolicy:response:]): Ditto.
339 (-[WebMainResourceClient didReceiveResponse:]): Ditto.
340 (-[WebMainResourceClient didReceiveData:lengthReceived:]): Ditto.
341 (-[WebMainResourceClient didFinishLoading]): Ditto.
342 (-[WebMainResourceClient didFailWithError:]): Ditto.
343 (-[WebMainResourceClient loadWithRequestNow:]): Call the method without the connection parameter.
345 * WebView.subproj/WebUIDelegatePrivate.h: Added new SPI here that WebBrowser implements.
347 2005-05-26 Darin Adler <darin@apple.com>
351 - fix build failure from when I removed WebCoreUnicode
353 * WebCoreSupport.subproj/WebTextRenderer.m: Removed import of WebUnicode.h that I missed.
354 (-[WebTextRenderer _convertUnicodeCharacters:length:toGlyphs:]): Switch from our own macros
355 to the ICU macros for surrogate pairs.
356 (widthForNextCharacter): Ditto.
358 2005-05-26 David Harrison <harrison@apple.com>
360 <rdar://problem/4120518> Mail: control-T in an empty message crashes mail
362 * WebCoreSupport.subproj/WebBridge.m:
363 (-[WebBridge issueTransposeCommand]):
364 New, to support transpose in JS.
366 2005-05-26 Darin Adler <darin@apple.com>
368 Reviewed by Richard and Dave Harrison.
370 - eliminate WebCoreUnicode and use ICU directly instead
372 * Misc.subproj/WebKitNSStringExtras.m: (canUseFastRenderer): Use u_charDirection directly.
373 * WebCoreSupport.subproj/WebTextRenderer.m: Removed import of <WebCore/WebCoreUnicode.h>.
374 * WebView.subproj/WebHTMLView.m: (+[WebHTMLView initialize]): Removed call to WebKitInitializeUnicode.
376 * Misc.subproj/WebUnicode.h: Removed.
377 * Misc.subproj/WebUnicode.m: Removed.
378 * Misc.subproj/WebUnicodeTables.m: Removed.
380 * WebKit.pbproj/project.pbxproj: Removed files.
382 2005-05-24 Richard Williamson <rjw@apple.com>
384 Fixed <rdar://problem/4097289> -[WebView elementAtPoint:] failing when WebView is nested and offset
386 Code to determine the correct frame under the window point was
387 converting the point incorrectly.
391 * WebView.subproj/WebView.m:
392 (-[WebView _frameViewAtWindowPoint:]):
394 2005-05-23 John Sullivan <sullivan@apple.com>
398 - WebKit part of <rdar://problem/4125783> WebKit needs a way to control whether textareas are resizable
400 * WebView.subproj/WebPreferencesPrivate.h:
401 added private-for-now getter and setter for new preference
402 * WebView.subproj/WebPreferenceKeysPrivate.h:
403 added private preference key controlling whether textareas are resizable
404 * WebView.subproj/WebPreferences.m:
405 (+[WebPreferences initialize]):
406 initial value of new preference is NO, so other clients' behavior doesn't change
407 (-[WebPreferences textAreasAreResizable]):
409 (-[WebPreferences setTextAreasAreResizable:]):
412 * WebView.subproj/WebView.m:
413 (-[WebView _updateWebCoreSettingsFromPreferences:]):
414 update this new setting in WebCore
416 * English.lproj/StringsNotToBeLocalized.txt:
417 updated for these changes
419 2005-05-23 Chris Blumenberg <cblu@apple.com>
421 Changed type for identifier parameter in WebResourceLoadDelegate-related calls to id from NSString.
425 * WebCoreSupport.subproj/WebBridge.m:
426 (-[WebBridge objectLoadedFromCacheWithURL:response:data:]):
427 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
428 * WebView.subproj/WebFrame.m:
429 (-[WebFrame _opened]):
430 (-[WebFrame _requestFromDelegateForRequest:identifier:error:]):
431 (-[WebFrame _sendRemainingDelegateMessagesWithIdentifier:response:length:error:]):
432 (-[WebFrame _saveResourceAndSendRemainingDelegateMessagesWithRequest:identifier:response:data:error:]):
433 * WebView.subproj/WebFrameInternal.h:
435 2005-05-20 Chris Blumenberg <cblu@apple.com>
437 Fixed: <rdar://problem/4098786> sync. XMLHttpRequest works w/o AllowNetworkAccess key because load delegate is not consulted
439 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.
441 Reviewed by sullivan.
443 * WebCoreSupport.subproj/WebBridge.m:
444 (-[WebBridge objectLoadedFromCacheWithURL:response:data:]): call [WebFrame _requestFromDelegateForRequest:identifier:error:] then
445 [WebFrame _saveResourceAndSendRemainingDelegateMessagesWithRequest:identifier:response:data:error:] so synthetic resource load delegate
446 methods are called and the data is saved as a WebResource for resources in the WebCore cache.
448 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]): call [WebFrame _requestFromDelegateForRequest:identifier:error:],
449 respect its result, do the load and then call [WebFrame _saveResourceAndSendRemainingDelegateMessagesWithRequest:identifier:response:data:error:]
450 for synchronous loads
452 * WebView.subproj/WebFrame.m:
453 (-[WebFrame _opened]): call [WebFrame _requestFromDelegateForRequest:identifier:error:] then
454 [WebFrame _sendRemainingDelegateMessagesWithIdentifier:response:length:error:] so synthetic resource load delegate methods are called
455 for subresrources in the page cache
457 (-[WebFrame _requestFromDelegateForRequest:identifier:error:]): new, was part of the removed _sendResourceLoadDelegateMessagesForURL:::
458 This method calls identifierForInitialRequest and willSendRequest.
460 (-[WebFrame _sendRemainingDelegateMessagesWithIdentifier:response:length:error:]): new, was part of the removed _sendResourceLoadDelegateMessagesForURL:::
461 This method calls the remaining resource load delegate messages.
463 (-[WebFrame _saveResourceAndSendRemainingDelegateMessagesWithRequest:identifier:response:data:error:]): new, saves the resource and calls
464 [WebFrame _sendRemainingDelegateMessagesWithIdentifier:response:length:error:]
466 * WebView.subproj/WebFrameInternal.h:
468 2005-05-17 Chris Blumenberg <cblu@apple.com>
470 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
474 * WebCoreSupport.subproj/WebBridge.m:
475 (-[WebBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]): pass the passed referrer to canLoadURL::: not [self referrer]
476 (-[WebBridge postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]): ditto
477 * WebView.subproj/WebTextView.m:
478 (-[WebTextView clickedOnLink:atIndex:]): call the loadURL bridge method so that security checks are made, command/option clicks work, policy delegate is consulted etc.
480 2005-05-17 Chris Blumenberg <cblu@apple.com>
482 Fixed: <rdar://problem/4120255> web archives on remote servers can be viewed directly (with major security issues); should download instead
486 * WebView.subproj/WebBaseResourceHandleDelegate.h:
487 * WebView.subproj/WebMainResourceClient.m:
488 (-[WebMainResourceClient continueAfterContentPolicy:response:]): if the WebKit client has chosen to "use" a remote web archive, stop the load with an error
490 2005-05-16 Darin Adler <darin@apple.com>
492 - attempt to get things building under "Saffron" development tools
494 * WebKit.pbproj/project.pbxproj: Use BUILT_PRODUCTS_DIR instead of SYMROOT.
496 2005-05-13 John Sullivan <sullivan@apple.com>
500 - fixed <rdar://problem/4093306> Safari crashes if Esc key is held down during series
501 of authentication sheets
503 * Panels.subproj/WebAuthenticationPanel.m:
504 (-[WebAuthenticationPanel cancel:]):
505 retain and autorelease self. This is a workaround for an AppKit key-handling issue, which I wrote up as:
506 <rdar://problem/4118422> Key-down events can be sent to a closed window if a key is kept pressed down
508 2005-05-12 John Sullivan <sullivan@apple.com>
512 - rolled in changes from experimental-ui-branch to support resizable textareas
513 and find-as-you-type and confirming unsubmitted form changes. The files/functions
514 modified are listed just below. After that are the ChangeLog comments from the branch.
516 * WebCoreSupport.subproj/WebBridge.m:
517 (-[WebBridge textDidChange:]):
518 * WebView.subproj/WebFormDelegate.h:
519 * WebView.subproj/WebFormDelegate.m:
520 (-[WebFormDelegate textDidChange:inFrame:]):
521 * WebView.subproj/WebHTMLView.m:
522 (-[WebHTMLView maintainsInactiveSelection]):
523 (-[WebHTMLView searchFor:direction:caseSensitive:wrap:]):
524 (-[WebHTMLView _searchFor:direction:caseSensitive:wrap:findInSelection:]):
525 * WebView.subproj/WebView.m:
526 (-[WebView _searchFor:direction:caseSensitive:wrap:findInSelection:]):
527 (-[WebView searchFor:direction:caseSensitive:wrap:]):
528 (-[WebView makeTextStandardSize:]):
529 (-[WebView maintainsInactiveSelection]):
530 * WebView.subproj/WebViewPrivate.h:
532 2005-04-18 John Sullivan <sullivan@apple.com>
534 WebKit support for notifying a form delegate when a
535 textarea's contents have changed (as opposed to a
536 textfield, which was already handled).
540 * WebView.subproj/WebFormDelegate.h:
541 * WebView.subproj/WebFormDelegate.m:
542 (-[WebFormDelegate textDidChange:inFrame:]):
543 new form delegate method
545 * WebCoreSupport.subproj/WebBridge.m:
546 (-[WebBridge textDidChange:]):
547 new method, calls through to form delegate
549 2005-04-11 John Sullivan <sullivan@apple.com>
551 Fixed inability to wrap around in Find in Page
553 * WebView.subproj/WebView.m:
554 (-[WebView _searchFor:direction:caseSensitive:wrap:findInSelection:]):
555 changed wrapFlag from NO to YES on two lines (copy/paste error)
557 2005-04-07 John Sullivan <sullivan@apple.com>
559 WebKit support for find-as-you-type. Needed an additional parameter on
560 a method from WebDocumentSearching protocol. Since that's a public protocol,
561 I couldn't just add the parameter. For now I hacked it with an undeclared
562 internal method that's discovered via respondsToSelector. Probably the right
563 long-term approach is to deprecate the WebDocumentSearching protocol and introduce
564 a replacement that has a more flexible set of parameters for possible future
567 Reviewed by Dave Hyatt.
569 * WebView.subproj/WebHTMLView.m:
570 (-[WebHTMLView searchFor:direction:caseSensitive:wrap:]):
571 now calls new one-more-parameter version passing NO for new parameter to match old behavior
572 (-[WebHTMLView _searchFor:direction:caseSensitive:wrap:findInSelection:]):
573 new method, adds findInSelection parameter and passes it through to bridge
575 * WebView.subproj/WebView.m:
576 (-[WebView searchFor:direction:caseSensitive:wrap:]):
577 now calls new one-more-parameter version passing NO for new parameter to match old behavior
578 (-[WebView _searchFor:direction:caseSensitive:wrap:findInSelection:]):
579 new method, adds findInSelection parameter and passes it through
581 2005-04-07 John Sullivan <sullivan@apple.com>
583 WebKit support to allow clients to control whether the selection is still
584 drawn when the first responder is elsewhere. Formerly this was hardwired
585 to be true only when -[WebView isEditable] was true.
589 * WebView.subproj/WebHTMLView.m:
590 (-[WebHTMLView maintainsInactiveSelection]):
591 check [WebView maintainsInactiveSelection] rather than just [WebView isEditable]
593 * WebView.subproj/WebViewPrivate.h:
594 * WebView.subproj/WebView.m:
595 (-[WebView maintainsInactiveSelection]):
596 new method for clients to override, returns -[self isEditable]
599 2005-05-10 John Sullivan <sullivan@apple.com>
603 - WebKit support for <rdar://problem/3795701> Menu item/keyboard shortcut to
604 restore text zoom to normal
606 * WebView.subproj/WebView.m:
607 (-[WebView validateUserInterfaceItem:]):
608 validate makeTextStandardSize by calling canMakeTextStandardSize
609 (-[WebView canMakeTextStandardSize]):
610 new method, returns YES unless text size multiplier is currently 1
611 (-[WebView makeTextStandardSize:]):
612 new method, sets text size multiplier to 1
614 * WebView.subproj/WebViewPrivate.h:
615 add makeTextStandardSize: and canMakeTextStandardSize to pending public category
617 2005-05-10 John Sullivan <sullivan@apple.com>
621 - fixed <rdar://problem/4067981> Mail places RTF flavor before RTFD flavor when dragging
622 mixed image/text content.
624 * WebView.subproj/WebHTMLView.m:
625 (+[WebHTMLView _selectionPasteboardTypes]):
626 put RTFD type before RTF type in array of types to declare
628 2005-05-09 Chris Blumenberg <cblu@apple.com>
630 Turned assertion into error message to prevent crash when encountering this bug:
631 <rdar://problem/4067625> connection:willCacheResponse: is called inside of [NSURLConnection initWithRequest:delegate:]
633 * WebView.subproj/WebBaseResourceHandleDelegate.h:
634 * WebView.subproj/WebBaseResourceHandleDelegate.m:
635 (-[WebBaseResourceHandleDelegate loadWithRequest:]): set flag to track when we're initializing the connection
636 (-[WebBaseResourceHandleDelegate connection:willCacheResponse:]): log error
638 2005-05-09 Darin Adler <darin@apple.com>
640 * Makefile.am: Don't set up PBXIntermediatesDirectory explicitly;
641 Not needed to make builds work, spews undesirable error messages too.
643 2005-05-06 Darin Adler <darin@apple.com>
647 - make building multiple trees with make work better
649 * Makefile.am: Set up Xcode build directory before invoking xcodebuild.
651 2005-05-04 Darin Adler <darin@apple.com>
653 Reviewed by Dave Hyatt.
657 * WebKit.pbproj/project.pbxproj: Set deployment target to 10.3 in the build styles.
658 When built without a build style (by Apple B&I) we want to get the target from the
659 environment. But when built with a build style (by Safari engineers and others), we want
660 to use 10.3. Because our deployment target was not set, we ran into this bug:
662 <rdar://problem/4108717> CTFontGetGlyphWithName doesn't work with some strings
664 * Makefile.am: Took out extra parameters that make command-line building different from
665 Xcode building. Now that this is fixed, you should not get a full rebuild if you switch
666 from command line to Xcode or back.
668 2005-05-04 Chris Blumenberg <cblu@apple.com>
671 <rdar://problem/4078417> REGRESSION (125-412): MLB gameday page doesn't update (Flash)
672 <rdar://problem/4072280> XMLHttpRequest calls onReadyStateChange callback with bogus status value
676 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.
678 * WebCoreSupport.subproj/WebBridge.m:
679 (-[WebBridge objectLoadedFromCacheWithURL:response:data:]): call new [WebResource _initWithData:URL:response:]
680 * WebView.subproj/WebBaseResourceHandleDelegate.m:
681 (-[WebBaseResourceHandleDelegate _canUseResourceWithResponse:]): new, checks response cache directives
682 (-[WebBaseResourceHandleDelegate loadWithRequest:]): call _canUseResourceWithResponse:
683 (-[WebBaseResourceHandleDelegate saveResource]): call new [WebResource _initWithData:URL:response:]
684 * WebView.subproj/WebResource.m:
685 (-[WebResourcePrivate dealloc]):
686 (-[WebResource initWithData:URL:MIMEType:textEncodingName:frameName:]): call renamed _initWithData:URL:MIMEType:textEncodingName:frameName:response:copyData:
687 (-[WebResource initWithCoder:]): decode the NSURLReponse
688 (-[WebResource encodeWithCoder:]): encode the NSURLReponse
689 (-[WebResource _initWithData:URL:MIMEType:textEncodingName:frameName:response:copyData:]): take the NSURLReponse
690 (-[WebResource _initWithData:URL:response:]): new
691 (-[WebResource _initWithPropertyList:]): decode the NSURLReponse
692 (-[WebResource _propertyListRepresentation]): encode the NSURLReponse
693 (-[WebResource _response]): return ivar if we have one
694 * WebView.subproj/WebResourcePrivate.h:
696 2005-05-03 David Hyatt <hyatt@apple.com>
698 Fix object element support so that fallback content works. With this change Safari passes the Acid2 test.
702 * WebCoreSupport.subproj/WebBridge.m:
703 (-[WebBridge determineObjectFromMIMEType:URL:]):
704 * WebView.subproj/WebDataSource.m:
705 (-[WebDataSource _receivedMainResourceError:complete:]):
706 * WebView.subproj/WebMainResourceClient.m:
707 (-[WebMainResourceClient continueAfterContentPolicy:response:]):
709 2005-05-03 Darin Adler <darin@apple.com>
711 * WebView.subproj/WebUIDelegate.h: Fixed incorrect comment.
714 2005-05-01 Darin Adler <darin@apple.com>
716 - move to Xcode native targets and stop checking in generated files
718 * WebKit.pbproj/project.pbxproj: Updated to use native targets and generate all the generated
719 files, so we don't have to check them in any more.
720 * Info.plist: Added. Native targets use a separate file for this.
722 * Plugins.subproj/npapi.m: Fixed import statement to get npapi.h from <WebKit/> rather than current directory.
724 * Makefile.am: Removed timestamp cleaning rules since we don't use it any more.
726 * .cvsignore: Removed various timestamp files.
728 * DOM.subproj/DOM-compat.h: Removed.
729 * DOM.subproj/DOM.h: Removed.
730 * DOM.subproj/DOMCSS.h: Removed.
731 * DOM.subproj/DOMCore.h: Removed.
732 * DOM.subproj/DOMEvents.h: Removed.
733 * DOM.subproj/DOMExtensions.h: Removed.
734 * DOM.subproj/DOMHTML.h: Removed.
735 * DOM.subproj/DOMPrivate.h: Removed.
736 * DOM.subproj/DOMRange.h: Removed.
737 * DOM.subproj/DOMStylesheets.h: Removed.
738 * DOM.subproj/DOMTraversal.h: Removed.
739 * DOM.subproj/DOMViews.h: Removed.
740 * Plugins.subproj/WebScriptObject.h: Removed.
741 * Plugins.subproj/npapi.h: Removed.
742 * Plugins.subproj/npruntime.h: Removed.
743 * copy-webcore-files-to-webkit: Removed.
744 * embed-frameworks.sh: Removed.
745 * force-clean-timestamp: Removed.
747 2005-04-28 Darin Adler <darin@apple.com>
751 - fixed problems preventing us from compiling with gcc 4.0
753 * WebKit.pbproj/project.pbxproj: Removed -fobjc-exceptions because I can't figure out an easy
754 way to pass it only when compiling Objective-C/C++. Removed -Wmissing-prototypes from
755 WARNING_CPLUSPLUSFLAGS since it's now a C-only warning.
757 * History.subproj/WebHistoryItem.m: (-[WebHistoryItem pageCache]): Changed return type
758 to match the declaration.
759 * WebCoreSupport.subproj/WebBridge.m: (-[WebBridge _retrieveKeyboardUIModeFromPreferences:]):
760 Fixed a BOOL that should have been a Boolean.
761 * WebCoreSupport.subproj/WebTextRenderer.m: Removed redundant copy of ROUND_TO_INT, also in
763 (-[WebTextRenderer _computeWidthForSpace]): Had to add cast because of difference in type of
764 ROUND_TO_INT vs. CEIL_TO_INT.
765 (pathFromFont): Added a cast to convert UInt8 * to char *.
766 * WebView.subproj/WebFrameView.m:
767 (-[WebFrameView _setDocumentView:]): Fixed parameter type to match the declaration.
768 (-[WebFrameView documentView]): Fixed return type to match the declaration.
769 * WebView.subproj/WebHTMLView.m:
770 (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
771 Initialized a variable to quiet an incorrect gcc 4.0 uninitialized variable warning.
772 (-[WebHTMLView deleteToMark:]): Switched from @try style to NS_DURING style of exception handler
773 because we can't pass -fobjc-exceptions just to Objective-C at the moment (see above).
774 (-[WebHTMLView selectToMark:]): Ditto.
775 (-[WebHTMLView swapWithMark:]): Ditto.
777 2005-04-27 John Sullivan <sullivan@apple.com>
779 Reviewed by Dave Harrison.
781 - fixed <rdar://problem/3547489> pop-up window blocking preference and
782 menu item can easily get out of sync.
784 * WebView.subproj/WebPreferences.m:
785 (-[WebPreferences _setStringValue:forKey:]):
786 save local value before setting value in NSUserDefaults, so clients reacting to NSUserDefaults
787 change notification but calling back on WebPreferences API will see the updated value.
788 (-[WebPreferences _setIntegerValue:forKey:]):
790 (-[WebPreferences _setBoolValue:forKey:]):
793 2005-04-26 Richard Williamson <rjw@apple.com>
795 Fixed <rdar://problem/4098713> Scripting API is incompatible with Mozilla
799 * Plugins.subproj/npfunctions.h:
800 * Plugins.subproj/npruntime.h:
802 2005-04-26 Darin Adler <darin@apple.com>
806 - fixed <rdar://problem/3655817> please add support for mouse wheel events and the onmousewheel handler
808 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView scrollWheel:]): Call sendScrollWheelEvent: method
809 instead of the old scrollOverflowWithScrollWheelEvent: (just a name change).
811 2005-04-18 Darin Adler <darin@apple.com>
815 - fixed <rdar://problem/4092614> REGRESSION (Tiger): progressively loaded background images "scroll around" instead of just appearing
817 * WebCoreSupport.subproj/WebImageData.m:
818 (-[WebImageData _imageSourceOptions]): Moved a global inside this function, since it's only used here.
819 (-[WebImageData _cacheImages:allImages:]): Fixed a sizeof that was getting the size of the wrong thing.
820 (-[WebImageData _isSizeAvailable]): Used calloc in a more consistent way.
821 (drawPattern): Removed an unneeded cast.
822 (-[WebImageData tileInRect:fromPoint:context:]): Here's the actual bug fix. Don't use the image size
823 when deciding whether the image needs to be tiled as a pattern nor when creating the pattern: in both
824 cases, use the tile size. The old way was wrong, and the new way works perfectly. Also removed uneeded
825 error message when the image is not yet loaded enough to create a CGImageRef for it -- it's fine to
826 draw nothing in that case.
828 2005-04-14 John Sullivan <sullivan@apple.com>
832 * WebView.subproj/WebBaseResourceHandleDelegate.m:
833 (-[WebBaseResourceHandleDelegate connection:willCacheResponse:]):
834 Beefed up assertion that's been bugging me and Chris to include
835 the two troublemaking values.
837 2005-04-05 David Hyatt <hyatt@apple.com>
839 Fix for 4077106, wheel scroll amount smaller in Tiger. All along wheeling should have been 4x the default
840 line height of 10 (just as arrow keys did). Scroll arrows should have done this too for scroll views (they did
841 already for overflow sections). This patch puts the override into the scrollview itself, and removes the
842 multipliers in the private frame methods.
846 * WebView.subproj/WebFrameView.m:
847 (-[WebFrameView _verticalKeyboardScrollDistance]):
848 (-[WebFrameView initWithFrame:]):
849 (-[WebFrameView _horizontalKeyboardScrollDistance]):
853 2005-03-31 Chris Blumenberg <cblu@apple.com>
855 Fixed: <rdar://problem/4070729> REGRESSION (125-311, Panther-only?): Safari crashes while reloading "My eBay" page
859 * WebView.subproj/WebBaseResourceHandleDelegate.m:
860 (-[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
866 2005-03-23 Richard Williamson <rjw@apple.com>
868 Use Patti Yeh's hack to determine the appropriate rectangle
869 to place the "associated word" window.
870 If there is no marked text firstRectForCharacterRange: will
871 use the selected range to determine the returned rectangle,
872 ignoring the input range. This is the fix from
873 4029491 that I previously backed out.
877 * WebView.subproj/WebHTMLView.m:
878 (-[WebHTMLView firstRectForCharacterRange:]):
880 2005-03-23 Richard Williamson <rjw@apple.com>
882 Fixed <rdar://problem/4062490> REGRESSION (WebKit-408): no subresources reported in Activity window after going back at hrweb.apple.com
884 Stop collecting subresource responses after the document
885 had loaded, not after it has been opened.
889 * WebView.subproj/WebFrame.m:
890 (-[WebFrame _setState:]):
891 (-[WebFrame _opened]):
893 2005-03-21 Maciej Stachowiak <mjs@apple.com>
897 <rdar://problem/4051145> The QuickTime Cocoa plug-in needs an SPI that it can call to check for URL policy
899 * Plugins.subproj/WebPluginContainerCheck.h: Added.
900 * Plugins.subproj/WebPluginContainerCheck.m: Added this new helper class to encapsulate
901 an async plugin navigation check.
902 (+[WebPluginContainerCheck checkWithRequest:target:resultObject:selector:controller:]): Convenience allocator that gives autoreleased value.
903 (-[WebPluginContainerCheck initWithRequest:target:resultObject:selector:controller:]): Initializer.
904 (-[WebPluginContainerCheck finalize]): Just assert that we're done, it would
905 be bad to deallocate this object while request is still outstanding.
906 (-[WebPluginContainerCheck dealloc]): Ditto.
907 (-[WebPluginContainerCheck _continueWithPolicy:]): Method to continue after async
909 (-[WebPluginContainerCheck _isDisallowedFileLoad]): Do "file: URL from remote content"
911 (-[WebPluginContainerCheck _actionInformationWithURL:]): Helper to make action
913 (-[WebPluginContainerCheck _askPolicyDelegate]): Call policy delegate to let
914 the app decide if this load is allowed.
915 (-[WebPluginContainerCheck start]): Start the check.
916 (-[WebPluginContainerCheck cancel]): Cancel a check in progress.
917 * Plugins.subproj/WebPluginController.h:
918 * Plugins.subproj/WebPluginController.m:
919 (-[WebPluginController initWithDocumentView:]): Initialize new _checksInProgress field.
920 (-[WebPluginController _webPluginContainerCancelCheckIfAllowedToLoadRequest:]): Implement
922 (-[WebPluginController _cancelOutstandingChecks]): New helper to make sure to cancel
923 all outstanding requests when destroying all plugins.
924 (-[WebPluginController destroyAllPlugins]): Call above helper.
925 (-[WebPluginController _webPluginContainerCheckIfAllowedToLoadRequest:inFrame:resultObject:selector:]): Implement this new plug-in SPI method.
926 (-[WebPluginController bridge]): New helper method.
927 (-[WebPluginController webView]): New helper method.
928 * WebView.subproj/WebPolicyDelegatePrivate.h: Add new navigation
929 type WebNavigationTypePlugInRequest.
930 * WebKit.pbproj/project.pbxproj: Add new files.
931 * WebView.subproj/WebDefaultPolicyDelegate.m:
932 (-[WebDefaultPolicyDelegate webView:decidePolicyForNavigationAction:request:frame:decisionListener:]): Don't open externally on a plug-in request.
934 2005-03-23 Richard Williamson <rjw@apple.com>
936 Fixed <rdar://problem/4053515> REGRESSION (Mail): Kotoeri input method reconversion does not work in WebViews
938 We now use actual document NSRanges to represent both marked text
939 ranges and selection ranges.
941 Reviewed by Ken Kocienda.
943 * WebView.subproj/WebHTMLView.m:
944 (-[WebHTMLView validAttributesForMarkedText]):
945 (-[WebHTMLView firstRectForCharacterRange:]):
946 (-[WebHTMLView selectedRange]):
947 (-[WebHTMLView markedRange]):
948 (-[WebHTMLView _selectMarkedText]):
949 (-[WebHTMLView setMarkedText:selectedRange:]):
953 2005-03-22 Darin Adler <darin@apple.com>
955 * English.lproj/StringsNotToBeLocalized.txt: Updated for recent changes.
959 2005-03-20 Maciej Stachowiak <mjs@apple.com>
963 <rdar://problem/4060020> Add stub version of security SPI for QuickTime plug-in so QuickTime team has something to compile and link against
965 * Plugins.subproj/WebPluginContainerPrivate.h: Added.
966 * Plugins.subproj/WebPluginController.m:
967 (-[WebPluginController _webPluginContainerCheckIfAllowedToLoadRequest:inFrame:resultObject:selector:]):
968 (-[WebPluginController _webPluginContainerCancelCheckIfAllowedToLoadRequest:]):
969 * WebKit.pbproj/project.pbxproj:
971 2005-03-19 David Harrison <harrison@apple.com>
975 <rdar://problem/4059479> Misspelling underline does underline the whole word, could go farther to the right
977 * WebCoreSupport.subproj/WebTextRenderer.m:
978 (-[WebTextRenderer misspellingLinePatternGapWidth]):
979 (-[WebTextRenderer drawLineForMisspelling:withWidth:]):
980 Consider that the last pixel in the underline dot pattern is transparent.
982 2005-03-19 Darin Adler <darin@apple.com>
984 Reviewed by Maciej (a while back).
986 - fixed <rdar://problem/4059323> local-file security check is allowing plug-in streams, but must not
988 * Plugins.subproj/WebNetscapePluginStream.m:
989 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
990 Roll out change I made on 3-13. That change is needed for subresource, but not for plug-in streams.
991 For plug-in streams it's too risky, and leaves a serious security hole open.
993 2005-03-19 Darin Adler <darin@apple.com>
995 Reviewed by Ken and John.
997 - fixed <rdar://problem/4059123> REGRESSION (402-403): deleteWordForward: and deleteWordBackward: start deleting single characters after the first delete
999 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]):
1000 Fixed backwards logic in here and added missing check. Set action to one of the two typing actions only
1001 if isTypingAction is YES.
1003 2005-03-19 David Harrison <harrison@apple.com>
1005 Reviewed by me (written by Patti Yeh).
1007 <rdar://problem/4029491> <TCIM> CangJie: the candidate window appears at the top left hand corner during typing in Mail and iChat
1009 * WebView.subproj/WebHTMLView.m:
1010 (-[WebHTMLView firstRectForCharacterRange:]):
1011 Use selected range if there is no marked range.
1015 2005-03-18 David Harrison <harrison@apple.com>
1019 <rdar://problem/3584942> AX: Safari Accessibility parent-child mismatch
1021 * WebView.subproj/WebFrameView.m:
1022 (-[WebFrameView webCoreBridge]):
1023 New to conform to WebCoreBridgeHolder protocol.
1025 2005-03-18 Richard Williamson <rjw@apple.com>
1027 Fixed <rdar://problem/4057004> Data from XMLHTTPRequest is never dealloced
1029 WebDataSource keeps an array of all the NSURLResponses associated
1030 with the load for a page. This is used to playback delegate messages
1031 when loading from the page cache. However, after the document
1032 has completed it's initial load, we continue to keep track of responses.
1033 So, this has the consequence of keeping all the responses for a page
1034 around for the life of the page. NSURLResponses are now very
1035 heavy. They indirectly reference the resource data (via the
1036 download assessment dictionary). This fix will keep
1037 references to responses around for those resources loaded during initial
1038 page load, but not after that point.
1042 * WebView.subproj/WebDataSource.m:
1043 (-[WebDataSource _addResponse:]):
1044 (-[WebDataSource _stopRecordingResponses]):
1045 * WebView.subproj/WebDataSourcePrivate.h:
1046 * WebView.subproj/WebFrame.m:
1047 (-[WebFrame _opened]):
1049 2005-03-18 Ken Kocienda <kocienda@apple.com>
1055 <rdar://problem/4053729> Copy/paste of page with frames into Blot or Mail does nothing and loses insertion point
1057 * WebView.subproj/WebHTMLView.m:
1058 (-[WebHTMLView _selectedArchive]): Wrap frameset documents in an iframe, so they can be pasted into
1059 existing documents which will have a body or frameset of their own.
1063 2005-03-17 Richard Williamson <rjw@apple.com>
1065 Fixed <rdar://problem/4055562> REGRESSION (Tiger): Safari doesn't draw progressively-loaded JPEGs (www.theregister.co.uk, www.titantalk.com)
1067 Anothe side effect of lazy loading of image meta data. We now
1068 don't cache image size until size meta data is actually available.
1072 * WebCoreSupport.subproj/WebImageData.m:
1073 (-[WebImageData size]):
1075 2005-03-16 David Harrison <harrison@apple.com>
1079 <rdar://problem/4048506> Deleting from beginning of editable div deletes other document elements
1081 Also changed WebCore.
1083 * WebView.subproj/WebHTMLView.m:
1084 (-[WebHTMLView _shouldDeleteRange:]):
1085 Added call to new bridge method canDeleteRange.
1087 2005-03-16 Ken Kocienda <kocienda@apple.com>
1093 <rdar://problem/4042935> undo doesn't work properly during inline input
1095 * WebView.subproj/WebHTMLView.m:
1096 (-[WebHTMLView setMarkedText:selectedRange:]): Call new -[WebCoreBridge replaceMarkedTextWithText:] instead of
1097 -[WebCoreBridge replaceSelectionWithText:selectReplacement:smartReplace:]. The former call was just added in
1098 order to provide a better mapping of international text input onto the typing command/undo design.
1100 2005-03-15 Richard Williamson <rjw@apple.com>
1102 Fixed <rdar://problem/4040321> Exception: Someone's trying to encode a WebDataRequestParameters instance
1104 If client mutates request use new Foundation SPI to address remove applewebdata properties from request.
1106 Reviewed by Ken Kocienda.
1108 * WebView.subproj/WebBaseResourceHandleDelegate.m:
1109 (-[WebBaseResourceHandleDelegate willSendRequest:redirectResponse:]):
1110 * WebView.subproj/WebDataProtocol.h:
1111 * WebView.subproj/WebDataProtocol.m:
1112 (+[NSURLRequest _webDataRequestPropertyKey]):
1114 2005-03-15 Ken Kocienda <kocienda@apple.com>
1120 <rdar://problem/4052642> Each delete keystroke is in its own undo group; not included in undo group with other typing
1122 Calling -[WebCore setSelectedDOMRange:range affinity:] had the result of "closing" any active set of typing
1123 keystrokes grouped together in a single undo operation. My change on 27 Jan to route delete keystrokes
1124 through _deleteRange:killRing:... made this feature regress. Previous to that change, the backwards delete
1125 key went through separate code that is no longer in the tree that did not set the selection in the way
1128 The solution is to add an extra argument to the set-selection call. The WebCoreBridge now offers this method:
1129 -[WebCore setSelectedDOMRange:range affinity:closeTyping:]. Now, callers must indicate whether setting the
1130 selection will act to close typing or not. The code changes below all add this new argument with the
1131 appropriate value for closeTyping.
1133 * WebView.subproj/WebHTMLView.m:
1134 (-[WebHTMLView _deleteRange:killRing:prepend:smartDeleteOK:deletionAction:]): Passes NO for closeTyping when
1135 deletionAction is deleteKeyAction or forwardDeleteKeyAction; YES when deleteSelectionAction.
1136 (-[WebHTMLView _expandSelectionToGranularity:]): Passes YES for closeTyping.
1137 (-[WebHTMLView selectToMark:]): Passes YES for closeTyping.
1138 (-[WebHTMLView swapWithMark:]): Passes YES for closeTyping.
1139 (-[WebHTMLView transpose:]): Passes YES for closeTyping.
1140 (-[WebHTMLView _selectMarkedText]): Passes NO for closeTyping.
1141 (-[WebHTMLView _selectRangeInMarkedText:]): Passes NO for closeTyping.
1142 * WebView.subproj/WebView.m:
1143 (-[WebView setSelectedDOMRange:affinity:]): Passes YES for closeTyping.
1145 2005-03-14 Richard Williamson <rjw@apple.com>
1147 Fix <rdar://problem/4051389> 8A413: gifs animating too fast
1151 Match Mozilla's policy for minimum frame duration, which is somewhat odd:
1153 <= 0.01 sec use .1 sec, otherwise use specified duration.
1155 * WebCoreSupport.subproj/WebImageData.m:
1156 (-[WebImageData _frameDurationAt:]):
1158 2005-03-14 Darin Adler <darin@apple.com>
1160 Reviewed by Harrison.
1162 - fixed <rdar://problem/4049776> Seed: Mail: Disable spellcheck leaves red artifacts
1164 * WebView.subproj/WebFrameInternal.h: Added _unmarkAllMisspellings.
1165 * WebView.subproj/WebFrame.m: (-[WebFrame _unmarkAllMisspellings]): Added.
1166 Calls unmarkAllMisspellings on the bridge and self and all subframes.
1168 * WebView.subproj/WebView.m: (-[WebView setContinuousSpellCheckingEnabled:]):
1169 Call _unmarkAllMisspellings on the main frame when turning continuous spell checking off.
1171 2005-03-14 Richard Williamson <rjw@apple.com>
1173 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
1175 The Acrobat application triggers loads of new documents in it's policy delegate. This
1176 ultimately causes the WebHTMLView to be released before their event handlers have
1177 returned. To bullet proof against this case we retain/release self before passing
1178 the event on for further handling.
1182 * WebView.subproj/WebHTMLView.m:
1183 (-[WebHTMLView _updateMouseoverWithEvent:]):
1184 (-[WebHTMLView scrollWheel:]):
1185 (-[WebHTMLView mouseDown:]):
1186 (-[WebHTMLView mouseDragged:]):
1187 (-[WebHTMLView mouseUp:]):
1188 (-[WebHTMLView keyDown:]):
1189 (-[WebHTMLView keyUp:]):
1190 (-[WebHTMLView performKeyEquivalent:]):
1192 2005-03-14 Vicki Murley <vicki@apple.com>
1194 - roll out the fix for 4040321, since it is still pending CCC review.
1196 2005-03-10 Richard Williamson <rjw@apple.com>
1198 Fixed <rdar://problem/4040321> Exception: Someone's trying to encode a WebDataRequestParameters instance
1202 If a delegate returns a mutated applewebdata: request in it's willSendRequest:
1203 method, we don't load using the WebDataRequest. Instead we do a normal load.
1204 Unfortunately, if the request they return is mutated *copy* of the applewebdata:
1205 request it will hold the applewebdata: special properties. These properties
1206 will be encoded into the cache. They should not be. So, to fix, we sanitize the
1207 request, by removing the special properties from the request.
1209 Note that we had to dig into the private guts of NSURLRequest because there is
1210 no public mechanism to remove properties from a request, see 4046775.
1212 * WebView.subproj/WebBaseResourceHandleDelegate.m:
1213 (-[WebBaseResourceHandleDelegate willSendRequest:redirectResponse:]):
1214 * WebView.subproj/WebDataProtocol.h:
1215 * WebView.subproj/WebDataProtocol.m:
1216 (-[NSURLRequest _webDataRequestExternalRequest]):
1217 (-[NSURLRequest _webDataRequestSanitize]):
1221 2005-03-13 Darin Adler <darin@apple.com>
1223 Reviewed by Ken and Maciej.
1225 - fixed <rdar://problem/4049040> REGRESSION (403-405): security check prevents user stylesheet from loading (Dictionary.app doesn't work at all!)
1227 * Plugins.subproj/WebNetscapePluginStream.m: (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
1228 Allow plug-in subresource streams to load with any URL, ignoring the "canLoadURL" method's restriction (only
1229 file URLs can load other file URLs), which now applies only to main resources, like web pages in frames or
1230 object tags and plug-in main resources.
1232 * WebCoreSupport.subproj/WebBridge.m:
1233 (-[WebBridge startLoadingResource:withURL:customHeaders:]): Allow subresources to load with any URL, as above.
1234 This allows things like images, stylesheets, and JavaScript to be loaded without the "canLoadURL" method's
1236 (-[WebBridge startLoadingResource:withURL:customHeaders:postData:]): Ditto.
1237 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]): Ditto.
1239 2005-03-10 Richard Williamson <rjw@apple.com>
1241 Fixed <rdar://problem/4040321> Exception: Someone's trying to encode a WebDataRequestParameters instance
1245 If a delegate returns a mutated applewebdata: request in it's willSendRequest:
1246 method, we don't load using the WebDataRequest. Instead we do a normal load.
1247 Unfortunately, if the request they return is mutated *copy* of the applewebdata:
1248 request it will hold the applewebdata: special properties. These properties
1249 will be encoded into the cache. They should not be. So, to fix, we sanitize the
1250 request, by removing the special properties from the request.
1252 Note that we had to dig into the private guts of NSURLRequest because there is
1253 no public mechanism to remove properties from a request, see 4046775.
1255 * WebView.subproj/WebBaseResourceHandleDelegate.m:
1256 (-[WebBaseResourceHandleDelegate willSendRequest:redirectResponse:]):
1257 * WebView.subproj/WebDataProtocol.h:
1258 * WebView.subproj/WebDataProtocol.m:
1259 (-[NSURLRequest _webDataRequestExternalRequest]):
1260 (-[NSURLRequest _webDataRequestSanitize]):
1264 2005-03-10 Maciej Stachowiak <mjs@apple.com>
1268 <rdar://problem/4046510> REGRESSION (TOT): All Flash and Shockwave plugin-based web content missing
1270 * Plugins.subproj/WebNetscapePluginStream.m:
1271 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
1273 2005-03-10 John Sullivan <sullivan@apple.com>
1277 - fixed <rdar://problem/4045843> Going back/forward to error page
1278 hits assertion in -[WebDataSource(WebPrivate) _setData:]
1280 * WebView.subproj/WebDataSource.m:
1281 (-[WebDataSource _setData:]):
1282 Removed bogus assertion
1284 2005-03-09 Deborah Goldsmith <goldsmit@apple.com>
1288 - fixed <rdar://problem/3997044> default encoding for non-Latin incorrect
1290 * WebKit/WebView.subproj/WebPreferences.m: (+[WebPreferences _systemCFStringEncoding]):
1291 Call __CFStringGetUserDefaultEncoding to get region, and TECGetWebTextEncodings to get
1292 the first encoding to determine the default encoding.
1294 2005-03-09 Darin Adler <darin@apple.com>
1296 Reviewed by Richard.
1298 - fixed <rdar://problem/4034175> REGRESSION (Mail): Can't use any font with style Light/Condensed/Semibold/Extrabold, etc
1300 * WebView.subproj/WebHTMLView.m:
1301 (-[WebHTMLView _styleFromFontAttributes:]): Use a constant instead of hard-coded weight for clarity.
1302 (-[WebHTMLView _originalFontA]): Ditto.
1303 (-[WebHTMLView _originalFontB]): Ditto.
1304 (-[WebHTMLView _addToStyle:fontA:fontB:]): Add code to detect the case where the family name is not good enough
1305 to specify the font precisely. In that case, use the Postscript font name instead. Also change variable names
1306 so it's easier to understand the method.
1308 2005-03-06 Maciej Stachowiak <mjs@apple.com>
1312 <rdar://problem/4005575> Arbitrary file disclosure vulnerability due to ability to load local html from remote content
1314 * Plugins.subproj/WebBaseNetscapePluginView.m:
1315 (-[WebBaseNetscapePluginView requestWithURLCString:]):
1316 * Plugins.subproj/WebNetscapePluginEmbeddedView.m:
1317 (-[WebNetscapePluginEmbeddedView didStart]):
1318 * Plugins.subproj/WebNetscapePluginStream.m:
1319 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
1320 * WebCoreSupport.subproj/WebBridge.m:
1321 (-[WebBridge createWindowWithURL:frameName:]):
1322 (-[WebBridge startLoadingResource:withURL:customHeaders:]):
1323 (-[WebBridge startLoadingResource:withURL:customHeaders:postData:]):
1324 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
1325 (-[WebBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]):
1326 (-[WebBridge postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
1327 (-[WebBridge createChildFrameNamed:withURL:referrer:renderPart:allowsScrolling:marginWidth:marginHeight:]):
1328 (-[WebBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:]):
1329 * WebView.subproj/WebFrame.m:
1330 (-[WebFrame _loadURL:referrer:intoChild:]):
1331 * WebView.subproj/WebFramePrivate.h:
1333 2005-03-09 Richard Williamson <rjw@apple.com>
1335 Fixed <rdar://problem/4032938> Safari: text layout for MS P Gothic font is corrupted
1337 The AppKit and ATS reports that MS P Gothic is fixed pitch. It is
1338 not! This is another case of "fixed pitch" being wrong. I've
1339 coalesced all the special cases into our isFontFixedPitch:, and
1340 used a dictionary to improve speed. No performance regression.
1344 * WebCoreSupport.subproj/WebTextRenderer.m:
1345 (-[WebTextRenderer _computeWidthForSpace]):
1346 * WebCoreSupport.subproj/WebTextRendererFactory.m:
1347 (-[WebTextRendererFactory clearCaches]):
1348 (-[WebTextRendererFactory isFontFixedPitch:]):
1350 2005-03-09 Darin Adler <darin@apple.com>
1354 <rdar://problem/4040388> REGRESSION (172-173): nonrepro crash in -[NSString(WebNSURLExtras) _web_isUserVisibleURL]
1356 * Misc.subproj/WebNSURLExtras.m:
1357 (-[NSString _web_isUserVisibleURL]): Fixed some pointer expressions that didn't include the index in the expression.
1358 (readIDNScriptWhiteListFile): Removed NSLog statements in here since we decided they aren't useful and they will
1359 write some messages on Tiger.
1361 2005-03-09 Darin Adler <darin@apple.com>
1363 * DOM.subproj/DOMPrivate.h: Checked in file copied from WebCore.
1365 2005-03-08 Richard Williamson <rjw@apple.com>
1367 Fixed <rdar://problem/4036949> many JPEG images fail to incremental-load due to change in ImageIO JPEG header parsing (to be fixed in WebKit)
1368 Fixed <rdar://problem/4042570> Need to check image properties for presence of width/height properties
1370 ImageIO-55 changed how image properties are created. They
1371 are now created incrementally. So we need "re-get" the image
1372 properties if the properties we care about (width/height) aren't
1373 in the property dictionary.
1377 * WebCoreSupport.subproj/WebImageData.h:
1378 * WebCoreSupport.subproj/WebImageData.m:
1379 (-[WebImageData init]):
1380 (-[WebImageData fileProperties]):
1381 (-[WebImageData propertiesAtIndex:]):
1382 (-[WebImageData _isSizeAvailable]):
1383 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
1384 (-[WebImageData size]):
1386 2005-03-08 John Sullivan <sullivan@apple.com>
1388 A couple of tweaks to the previous patch, from Darin's review.
1390 * Misc.subproj/WebNSPasteboardExtras.m:
1391 (_writableTypesForImageWithoutArchive):
1392 remove unnecessary _web prefix
1393 (_writableTypesForImageWithArchive):
1395 (+[NSPasteboard _web_writableTypesForImageIncludingArchive:]):
1396 use mutableCopy rather than initWithArray:, and adjust for name changes
1398 2005-03-08 John Sullivan <sullivan@apple.com>
1402 - fixed <rdar://problem/4031826> REGRESSION (Mail): standalone images from
1403 Safari can't be pasted into Mail (WebKit part of fix)
1405 We were always declaring webarchive-related pasteboard types, even in the standalone
1406 image cases where we had no webarchive. Unfortunately, the WebView pasteboard-related
1407 API doesn't prevent this kind of thing from happening, because the code that
1408 declares the types isn't guaranteed to be anywhere near the code that writes
1409 the pasteboard data.
1411 After this fix, I discovered that pasting standalone images into Mail still doesn't
1412 work right, but the remaining issues seem to be entirely in Mail. I wrote up 4041671
1415 * Misc.subproj/WebNSPasteboardExtras.h:
1416 (+[NSPasteboard _web_writableTypesForImageIncludingArchive:]):
1417 Added boolean parameter; clients must specify whether or not there's an
1418 archive involved, because the array of types is different if there is.
1420 * Misc.subproj/WebNSPasteboardExtras.m:
1421 (_web_writableTypesForImageWithoutArchive):
1422 new static function, constructs (once) and returns the array of types
1423 for images that don't have archives
1424 (_web_writableTypesForImageWithArchive):
1425 new static function, constructs (once) and returns the array of types
1426 for images that do have archives
1427 (+[NSPasteboard _web_writableTypesForImageIncludingArchive:]):
1428 added boolean parameter, now calls one of the two new static functions
1430 (-[NSPasteboard _web_writeImage:URL:title:archive:types:]):
1431 added asserts that we aren't declaring the archive types if we don't have archive data
1433 (-[NSPasteboard _web_declareAndWriteDragImage:URL:title:archive:source:]):
1434 updated to pass parameter to _web_writableTypesForImageIncludingArchive:
1436 * WebView.subproj/WebDefaultContextMenuDelegate.m:
1437 (-[WebDefaultUIDelegate copyImageToClipboard:]):
1438 updated to pass parameter to _web_writableTypesForImageIncludingArchive:
1440 * WebView.subproj/WebImageView.m:
1441 (-[WebImageView copy:]):
1442 updated to pass parameter to _web_writableTypesForImageIncludingArchive:
1444 * WebView.subproj/WebView.m:
1445 (-[WebView pasteboardTypesForElement:]):
1446 updated to pass parameter to _web_writableTypesForImageIncludingArchive:
1448 2005-03-07 Richard Williamson <rjw@apple.com>
1450 More bullet proofing for <rdar://problem/4038304> CrashTracer: ....9 crashes at com.apple.WebKit: -[WebTextRenderer initWithFont:usingPrinterFont:] + 840
1452 Protect against removal of Times and Times New Roman from
1453 system. If these fonts are removed attempt to get system font
1454 instead of FATAL_ALWAYS.
1458 * WebCoreSupport.subproj/WebTextRenderer.m:
1459 (-[WebTextRenderer initWithFont:usingPrinterFont:]):
1463 2005-03-06 Darin Adler <darin@apple.com>
1465 - fixed obvious mistake in IDN script code (luckily it hasn't been in a submission yet!)
1467 * Misc.subproj/WebNSURLExtras.m: (readIDNScriptWhiteListFile): Use "index" to index into the array,
1468 not "script", which is the script number, not the 32-bit-word index.
1470 2005-03-05 Kevin Decker <kdecker@apple.com>
1474 Fixed: <rdar://problem/4038529> Infinite progress bar loading webcams and other sites that use multipart/x-mixed-replace
1476 The previous patch I landed prevented us from loading multipart/x-mixed-replace but did not always update the progress bar accordingly.
1477 This stops websites from having seemingly infinite progress in the browser UI.
1479 * WebCoreSupport.subproj/WebSubresourceClient.m:
1480 (-[WebSubresourceClient didReceiveResponse:]): If this is "multipart/x-mixed-replace", remove the WebBaseResourceHandleDelegate client from
1481 the datasource's subresource array, otherwise -[WebDataSource isLoading] incorrectly returns YES. Also it's possible at this point in
1482 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
1483 in fact we're complete.
1484 * WebView.subproj/WebMainResourceClient.m:
1485 (-[WebMainResourceClient connection:didReceiveResponse:]): ditto
1487 2005-03-05 Richard Williamson <rjw@apple.com>
1489 Fixed panther build problem. Shouldn't include
1490 changes for 3968753 on panther.
1494 * WebView.subproj/WebView.m:
1495 (-[WebView _commonInitializationWithFrameName:groupName:]):
1497 2005-03-05 Darin Adler <darin@apple.com>
1501 - fixed <rdar://problem/4034603> REGRESSION (185-188): RadarWeb can't send enclosures anymore
1503 * WebView.subproj/WebFormDataStream.m:
1504 (closeCurrentStream): Release currentData when closing the stream.
1505 (advanceCurrentStream): Set up and retain currentData when the current stream is reading that data, so the
1506 data won't be released while in use.
1507 (formCreate): Initialize currentData to NULL.
1509 - fixed <rdar://problem/4037562> Tiger8A402: Help Viewer crashed when viewing help for iChat (infinite recursion in WebView)
1511 * WebView.subproj/WebView.m: (-[WebView _responderValidateUserInterfaceItem:]):
1512 Check for the case where we ourselves are the responder. This avoids an infinite loop.
1513 The actual code to perform operations avoids this with a global variable, but this lighter weight
1514 solution is sufficient here because validate operations don't call through to the next responder.
1516 2005-03-04 Richard Williamson <rjw@apple.com>
1518 Fixed <rdar://problem/3968753> REGRESSION: Poor performance with differing multiple animated GIFs (was fast in Panther)
1520 Disable coalesced updates (in CG). This restores the
1523 Reviewed by David Harrison.
1525 * WebView.subproj/WebView.m:
1526 (-[WebView _commonInitializationWithFrameName:groupName:]):
1528 2005-03-04 Adele Amchan <adele@apple.com>
1532 * English.lproj/StringsNotToBeLocalized.txt: added new strings "text/x-vcf" and "text/x-csv" to the list
1534 2005-03-04 Adele Amchan <adele@apple.com>
1538 Fix for <rdar://problem/4032982> Sun iPlanet app: not able to import AddressBook CSV format addresses properly
1539 Fix for <rdar://problem/4032985> Sun iPlanet app: not able to import vCard format addresses properly
1541 * WebView.subproj/WebTextView.m:
1542 (+[WebTextView unsupportedTextMIMETypes]): added "text/x-csv" and "text/x-vcf" to the list of MIME types that our text view doesn't handle
1544 2005-03-04 Darin Adler <darin@apple.com>
1548 - fixed <rdar://problem/4036817> REGRESSION: ctrl-y broken when a line + carriage return cut
1550 * WebView.subproj/WebHTMLView.m:
1551 (-[WebHTMLView _deleteRange:killRing:prepend:smartDeleteOK:deletionAction:]): Merged _handleKillRing behavior
1552 into this function, since there's now a more-complicated way the startNewKillRingSequence boolean needs to
1553 be handled. Set the startNewKillRingSequence boolean after the entire process so changing the selection before
1554 and during the editing dosn't clear it. Also change "isTypingAction" parameter to "deletionAction" so we can
1555 handle forward delete with this method.
1556 (-[WebHTMLView _deleteSelection]): Pass deleteSelectionAction for action rather than NO for isTypingAction,
1557 which is the way to say the same thing using the new parameter.
1558 (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]): Refactor to use the _deleteRange
1559 method above. Also calls _shouldDeleteRange: for the pre-existing selection case; not doing that before was
1561 (-[WebHTMLView deleteToMark:]): Pass deleteSelectionAction for action rather than NO for isTypingAction,
1562 which is the way to say the same thing using the new parameter.
1564 2005-03-04 Darin Adler <darin@apple.com>
1568 - fixed <rdar://problem/4020413> REGRESSION (Mail): can't use fonts with names that start with "#" in Mail (Korean fonts)
1570 * WebView.subproj/WebHTMLView.m:
1571 (-[WebHTMLView _styleFromFontAttributes:]): Quote font name when calling setFontFamily.
1572 (-[WebHTMLView _addToStyle:fontA:fontB:]): Ditto.
1574 2005-03-04 Darin Adler <darin@apple.com>
1578 - fixed <rdar://problem/3965666> IDN spoofing vulnerability caused by Unicode characters that look like ASCII characters
1580 * Misc.subproj/WebNSURLExtras.m:
1581 (readIDNScriptWhiteListFile): Added. Reads file and parses script names.
1582 (readIDNScriptWhiteList): Added. Calls readIDNScriptWhiteList on each of the white list locations in succession.
1583 (allCharactersInIDNScriptWhiteList): Renamed from containsPossibleLatinLookalikes and changed sense.
1584 Now calls readIDNScriptWhiteList first time, and then uses the read-in list to check the scripts.
1585 (-[NSString _web_mapHostNameWithRange:encode:makeString:]): Call allCharactersInIDNScriptWhiteList instead of
1586 containsPossibleLatinLookalikes.
1587 * Resources/IDNScriptWhiteList.txt: Added.
1588 * WebKit.pbproj/project.pbxproj: Added IDNScriptWhiteList.txt file.
1590 * Misc.subproj/WebKitLocalizableStrings.m: Removed. This is simply unused.
1591 * English.lproj/StringsNotToBeLocalized.txt: Updated for recent changes.
1593 2005-03-04 Darin Adler <darin@apple.com>
1597 - fixed <rdar://problem/3937667> REGRESSION (Mail): Zooming a window from titlebar button doesn't paint newly-exposed portions of window
1599 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView _recursiveDisplayAllDirtyWithLockFocus:visRect:]):
1600 Re-set-up the visRect if the bounds changes due to layout.
1604 2005-03-03 Jens Alfke <jens@apple.com>
1608 <rdar://problem/3991818> REGRESSION: Images scale while loading
1609 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.
1611 * WebCoreSupport.subproj/WebImageData.m:
1612 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
1614 2005-03-01 David Hyatt <hyatt@apple.com>
1616 Fix for 3841186, scrollbar shows up disabled when it should not appear at all. Make sure updateScrollers
1617 is never allowed to be re-entrant from any call point by moving the guard inside the function itself.
1619 Reviewed by John Sullivan
1621 * WebView.subproj/WebDynamicScrollBarsView.m:
1622 (-[WebDynamicScrollBarsView updateScrollers]):
1623 (-[WebDynamicScrollBarsView reflectScrolledClipView:]):
1625 2005-03-02 Chris Blumenberg <cblu@apple.com>
1627 Fixed: <rdar://problem/4029010> Expose method to retrieve drag image for WebView's selection
1629 Reviewed by sullivan.
1631 * WebView.subproj/WebHTMLView.m:
1632 (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]): call _selectionDraggingImage
1633 (-[WebHTMLView _selectionDraggingImage]): new SPI for Mail, factored from previous method
1634 (-[WebHTMLView _selectionDraggingRect]): new SPI for Mail
1635 * WebView.subproj/WebHTMLViewPrivate.h:
1637 2005-03-02 John Sullivan <sullivan@apple.com>
1641 - fixed <rdar://problem/4023337> Safari stops loading any page (-[NSCFDictionary setObject:forKey:]:
1642 attempt to insert nil key)
1644 It is very likely that the exception being hit is caused by the same problem as WebFoundation
1645 bug 4018486. This change makes the code robust against this kind of problem regardless.
1647 * WebView.subproj/WebBaseResourceHandleDelegate.m:
1648 (-[WebBaseResourceHandleDelegate saveResource]):
1649 Don't call addSubresource if newly-created resource is nil (but do assert on debug builds).
1650 Also assert that originalURL and MIMEType are not nil.
1652 * WebView.subproj/WebDataSource.m:
1653 (-[WebDataSource addSubresource:]):
1654 Don't add nil subresource to dictionary, but do assert on debug builds.
1658 2005-03-01 John Sullivan <sullivan@apple.com>
1662 - fixed <rdar://problem/3987482> Format>Style>Italic is not enabled when a
1663 compose window is empty (works in Blot)
1665 * WebView.subproj/WebHTMLView.m:
1666 (-[WebHTMLView becomeFirstResponder]):
1667 call _updateFontPanel here so NSFontManager knows the right font for the menu
1668 items and the font panel
1670 2005-03-01 David Harrison <harrison@apple.com>
1674 <rdar://problem/3915560> Mail would like an SPI to enable "smart" text paste/drop
1676 * WebView.subproj/WebHTMLView.m:
1677 (-[WebHTMLView _smartDeleteRangeForProposedRange:]):
1678 (-[WebHTMLView _smartInsertForString:replacingRange:beforeString:afterString:]):
1681 2005-02-28 John Sullivan <sullivan@apple.com>
1685 - WebKit part of fix for <rdar://problem/4023490> REGRESSION (125-185): Tabbing through links
1686 on frameset page gets stuck at end (tivofaq.com)
1688 This tab-to-links stuff has been in shaky condition ever since AppKit futzed with
1689 tabbing behavior in Tiger to add support for including the toolbar in the key loop.
1690 I made some changes months ago to compensate for that, but some cases, such as this
1691 one, still weren't fixed.
1693 * WebCoreSupport.subproj/WebBridge.m:
1694 (-[WebBridge _nextKeyViewOutsideWebFrameViewsWithValidityCheck:]):
1695 new bottleneck method, extracted from nextKeyViewOutsideWebFrameViews; handles
1696 nextKeyView or nextValidKeyView depending on parameter.
1697 (-[WebBridge nextKeyViewOutsideWebFrameViews]):
1698 now calls extracted method
1699 (-[WebBridge nextValidKeyViewOutsideWebFrameViews]):
1700 new method, calls new bottleneck method
1702 * WebView.subproj/WebHTMLView.m:
1703 (-[WebHTMLView nextValidKeyView]):
1704 when we're stuck at the end of a nextKeyView chain inside a nexted frame, use
1705 nextValidKeyViewOutsideWebFrameViews. Make sure we don't end up looking inside
1706 the web frame views while doing this.
1708 2005-02-25 Darin Adler <darin@apple.com>
1712 - fixed <rdar://problem/4025088> window onblur and onfocus don't fire when text field has focus
1714 * WebView.subproj/WebHTMLView.m:
1715 (-[WebHTMLView updateFocusState]): Renamed from updateFocusDisplay. Added call to setWindowHasFocus: method.
1716 (-[WebHTMLView viewDidMoveToWindow]): Call method by new name.
1717 (-[WebHTMLView windowDidBecomeKey:]): Ditto.
1718 (-[WebHTMLView windowDidResignKey:]): Ditto.
1719 (-[WebHTMLView becomeFirstResponder]): Ditto.
1720 (-[WebHTMLView resignFirstResponder]): Ditto.
1724 2005-02-25 Richard Williamson <rjw@apple.com>
1726 Fixed <rdar://problem/4000962> 8A375: Help Viewer displays voiced sound and semi-voiced characters strangely (characters don't seem to be composed)
1728 Added special case for voiced marks.
1732 * WebCoreSupport.subproj/WebTextRenderer.m:
1733 (widthForNextCharacter):
1735 2005-02-25 Darin Adler <darin@apple.com>
1739 - fixed <rdar://problem/4019823> Seed: Control-Y doesn't work
1741 * WebView.subproj/WebHTMLView.m:
1742 (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]): Call _handleKillRing
1743 after setting the selection, since it uses the selection to get the text.
1744 (-[WebHTMLView _insertText:selectInsertedText:]): Check for empty string to avoid an assertion
1745 on the other side of the bridge when you yank the empty string.
1747 2005-02-24 Richard Williamson <rjw@apple.com>
1749 Fixed <rdar://problem/3382926> Bidi neutrals at RTL/LTR boundaries not handled correctly.
1751 If directionality is specified use that as initial directionality,
1752 rather than neutral directionality.
1756 * WebCoreSupport.subproj/WebTextRenderer.m:
1757 (widthForNextCharacter):
1759 2005-02-24 Adele Amchan <adele@apple.com>
1763 Fix for <rdar://problem/4023393> Safari crashed in khtml::RenderObject::repaintAfterLayoutIfNeeded(QRect const&, QRect const&)
1765 We were crashing after hitting PageDown when viewing a pdf because
1766 WebKit was calling over to WebCore to scroll overflow areas.
1767 Since this only needs to be done if we're dealing with a WebHTMLView,
1768 I added a wrapper function to check the documentView before calling
1771 * WebView.subproj/WebFrameView.m:
1772 (-[WebFrameView _scrollOverflowInDirection:granularity:]): added wrapper function that checks if documentView is a WebHTMLView
1773 (-[WebFrameView scrollToBeginningOfDocument:]): uses new wrapper function now
1774 (-[WebFrameView scrollToEndOfDocument:]): uses new wrapper function now
1775 (-[WebFrameView _pageVertically:]): uses new wrapper function now
1776 (-[WebFrameView _pageHorizontally:]): uses new wrapper function now
1777 (-[WebFrameView _scrollLineVertically:]): uses new wrapper function now
1778 (-[WebFrameView _scrollLineHorizontally:]): uses new wrapper function now
1780 2005-02-24 Richard Williamson <rjw@apple.com>
1782 Fixed <rdar://problem/3985889> REGRESSION (125-180): setting <img> src to GIF that already animated does not animate; just shows final frame
1786 * WebCoreSupport.subproj/WebImageData.h:
1787 * WebCoreSupport.subproj/WebImageData.m:
1788 (-[WebImageData resetAnimation]):
1789 * WebCoreSupport.subproj/WebImageRenderer.m:
1790 (-[WebImageRenderer resetAnimation]):
1791 (-[WebInternalImage resetAnimation]):
1792 (-[WebImageRenderer drawImageInRect:fromRect:compositeOperator:context:]):
1794 2005-02-24 Kevin Decker <kdecker@apple.com>
1798 Fixed <rdar://problem/3962401> Don't load multipart/x-mixed-replace content to prevent memory leak
1800 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.
1802 * WebView.subproj/WebMainResourceClient.m:
1803 (-[WebMainResourceClient connection:didReceiveResponse:]): Disabled loading of multipart/x-mixed-replace content until we fully implement server side push.
1804 * WebCoreSupport.subproj/WebSubresourceClient.m:
1805 (-[WebSubresourceClient didReceiveResponse:]): Ditto. Same exact thing for sub resources.
1808 2005-02-23 John Sullivan <sullivan@apple.com>
1812 - fixed <rdar://problem/4021370> REGRESSION (Tiger): WebKit part of fix for
1813 shift-tab on tivofaq doing the wrong thing
1815 * WebView.subproj/WebFrameView.m:
1816 (-[WebFrameView becomeFirstResponder]):
1817 If our previousValidKeyView is nil or self (same as nil modulo AppKit oddness),
1818 look out of the box and get the previousValidKeyView of our webview.
1820 2005-02-23 Darin Adler <darin@apple.com>
1824 - fixed <rdar://problem/4010196> REGRESSION (125-186+): 8-character timestamps in gmail wrap to 2 lines (width:8ex; font-size:80%)
1826 * WebCoreSupport.subproj/WebTextRenderer.m: (-[WebTextRenderer xHeight]): Return the maximum
1827 of the "x" height and width. Comment in the code explains why in more detail.
1829 2005-02-22 Richard Williamson <rjw@apple.com>
1831 Fixed <rdar://problem/3937203> when a div adds a scrollbar (overflow:auto) we do not get regions
1833 Compare regions after automatice scroll regions have been
1838 * WebCoreSupport.subproj/WebBridge.h:
1839 * WebCoreSupport.subproj/WebBridge.m:
1840 (-[WebBridge dealloc]):
1841 (-[WebBridge _compareDashboardRegions:]):
1842 (-[WebBridge dashboardRegionsChanged:]):
1844 2005-02-22 Richard Williamson <rjw@apple.com>
1846 Fixed <rdar://problem/4012463> Dashboard widgets don't work with authenticating proxies
1848 Added new SPI for dashboard that just calls default delegate
1853 * WebView.subproj/WebView.m:
1854 (-[WebView handleAuthenticationForResource:challenge:fromDataSource:]):
1855 * WebView.subproj/WebViewPrivate.h:
1857 2005-02-22 Chris Blumenberg <cblu@apple.com>
1861 * WebCoreSupport.subproj/WebBridge.m:
1862 (-[WebBridge issuePasteAndMatchStyleCommand]): support for new "PasteAndMatchStyle" exec command
1866 2005-02-21 David Harrison <harrison@apple.com>
1870 <rdar://problem/3943090> REGRESSION (Mail): Spelling underline incompletely erased following certain steps
1872 * WebCoreSupport.subproj/WebTextRenderer.m:
1873 (-[WebTextRenderer misspellingLineThickness]):
1874 (-[WebTextRenderer misspellingLinePatternWidth]):
1875 Replaced #defines with these methods, so others can get the same info.
1877 (-[WebTextRenderer drawLineForMisspelling:withWidth:]):
1878 Keep underline within originally specified bounds.
1881 2005-02-21 Darin Adler <darin@apple.com>
1885 - fixed <rdar://problem/4016358> don't ever display IDN URLs with characters from "possible Latin look-alike" scripts
1887 * Misc.subproj/WebNSURLExtras.m:
1888 (containsPossibleLatinLookalikes): Added.
1889 (-[NSString _web_mapHostNameWithRange:encode:makeString:]): Call containsPossibleLatinLookalikes, and if true,
1890 don't decode the host name.
1892 2005-02-19 Kevin Decker <kdecker@apple.com>
1896 Fixed <rdar://problem/4010765> Flash player can be used to arbitrarily open popup windows without user permission
1898 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.
1900 * Plugins.subproj/WebBaseNetscapePluginView.h: Addded currentEventIsUserGesture boolean ivar.
1901 * Plugins.subproj/WebBaseNetscapePluginView.m:
1902 (-[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.
1903 (-[WebBaseNetscapePluginView initWithFrame:]): In our asynchronous load, pass along currentEventIsUserGesture to the PluginRequest.
1904 (-[WebBaseNetscapePluginView evaluateJavaScriptPluginRequest:]): Inform WebCore if this was a user originated gesture when calling executeScript().
1905 (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]):
1906 (-[WebPluginRequest initWithRequest:frameName:notifyData:sendNotification:didStartFromUserGesture:]):
1907 (-[WebPluginRequest isCurrentEventUserGesture]): Added.
1909 2005-02-18 Chris Blumenberg <cblu@apple.com>
1911 Fixed: <rdar://problem/3945271> REGRESSION (Mail): pasted plain text should pick up typing style instead of being unstyled
1913 Reviewed by kocienda.
1915 * WebView.subproj/WebDataSource.m:
1916 (-[WebDataSource _replaceSelectionWithArchive:selectReplacement:]): pass NO for matchStyle to replaceSelection
1917 * WebView.subproj/WebHTMLView.m:
1918 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:chosePlainText:]): return new chosePlainText parameter
1919 (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]): pass chosePlainText for matchStyle to replaceSelection
1920 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): ditto
1922 2005-02-17 Richard Williamson <rjw@apple.com>
1924 Removed code that should not have been checked in from
1927 * WebCoreSupport.subproj/WebTextRendererFactory.m:
1928 (-[WebTextRendererFactory isFontFixedPitch:]):
1930 2005-02-17 Richard Williamson <rjw@apple.com>
1932 Fixed <rdar://problem/3999467> when Osaka-Mono is specified as fixed width font, Osaka used instead
1934 Fixed w/o introducing a performance regression.
1936 Reviewed by Vicki (and earlier by Dave Harrison).
1938 * WebCoreSupport.subproj/WebTextRenderer.m:
1939 (-[WebTextRenderer _computeWidthForSpace]):
1940 (widthForNextCharacter):
1941 * WebCoreSupport.subproj/WebTextRendererFactory.h:
1942 * WebCoreSupport.subproj/WebTextRendererFactory.m:
1943 (-[NSFont _web_isFakeFixedPitch]):
1944 (-[WebTextRendererFactory isFontFixedPitch:]):
1945 (-[WebTextRendererFactory fontWithFamily:traits:size:]):
1947 2005-02-17 Richard Williamson <rjw@apple.com>
1949 Fixed <rdar://problem/3959304> PDF in img tag is not rendered correctly anymore
1951 We were incorrectly adding image position when flipping coordinates.
1953 Reviewed by David Harrison.
1955 * WebCoreSupport.subproj/WebImageData.m:
1956 (-[WebImageData _PDFDrawFromRect:toRect:operation:alpha:flipped:context:]):
1958 2005-02-17 Richard Williamson <rjw@apple.com>
1960 Fixed <rdar://problem/4007262> Seed: Flight tracker scrolling moves to the left
1962 Added SPI for dashboard to disable wheel scrolling of the WebClipView.
1967 * WebView.subproj/WebClipView.m:
1968 (-[WebClipView _focusRingVisibleRect]):
1969 (-[WebClipView scrollWheel:]):
1970 * WebView.subproj/WebView.m:
1971 (-[WebViewPrivate init]):
1972 (-[WebView drawRect:]):
1973 (-[WebView _dashboardBehavior:]):
1974 * WebView.subproj/WebViewInternal.h:
1975 * WebView.subproj/WebViewPrivate.h:
1979 2005-02-17 Vicki Murley <vicki@apple.com>
1981 - roll out this change, since it causes a 1.5% performance regression
1983 2005-02-15 Richard Williamson <rjw@apple.com>
1985 Fixed <rdar://problem/3999467> when Osaka-Mono is specified as fixed width font, Osaka used instead
1987 Lie about Osaka-Mono. Treat it as fixed pitch, even though,
1988 strictly speaking it isn't. (Similar to what we do with
1991 Reviewed by David Harrison.
1993 * WebCoreSupport.subproj/WebTextRenderer.m:
1994 (-[WebTextRenderer _computeWidthForSpace]):
1995 * WebCoreSupport.subproj/WebTextRendererFactory.h:
1996 * WebCoreSupport.subproj/WebTextRendererFactory.m:
1997 (-[NSFont _web_isFakeFixedPitch]):
1998 (-[WebTextRendererFactory isFontFixedPitch:]):
1999 (-[WebTextRendererFactory fontWithFamily:traits:size:]):
2001 2005-02-17 John Sullivan <sullivan@apple.com>
2005 - fixed <rdar://problem/3997185> The Web view on .Mac Prefs caused System Prefs
2006 to lockup (resolved by re-boot only)
2008 * WebCoreSupport.subproj/WebBridge.m:
2009 (-[WebBridge nextKeyViewOutsideWebFrameViews]):
2010 Don't allow recursion here; assert on debug build, return nil on deployment. I
2011 couldn't get my machine into a state to repro this problem (and neither could the
2012 originator), but it's obvious from the stack crawl that this method was recursing
2013 when it shouldn't have.
2015 2005-02-16 John Sullivan <sullivan@apple.com>
2017 Written by Darin, reviewed by me.
2019 - WebKit part of fix for <rdar://problem/4007384>
2020 FILTER: Bookmark of RSS with Japanese search word & multiple RSS pages loses filter
2022 * DOM.subproj/DOMPrivate.h:
2023 updated this file, which is a copy of the WebCore version
2025 2005-02-16 Richard Williamson <rjw@apple.com>
2027 Fixed <rdar://problem/3966973> Tiger 8A357: Binary Compatiblity: frequent Webstractor.app crashes [WebImageData _nextFrame]
2029 Webstractor.app was playing tricks to create thumbnails of
2030 pages. This caused the 'focusView' to be incorrect during
2031 animated GIF frame rendering.
2035 * WebCoreSupport.subproj/WebImageRenderer.m:
2036 (-[WebImageRenderer _startOrContinueAnimationIfNecessary]):
2038 2005-02-16 Vicki Murley <vicki@apple.com>
2040 Reviewed by me, code change by Darin.
2042 - fixed the build on Panther
2044 * WebView.subproj/WebFormDataStream.m: (webSetHTTPBody):
2045 Added a Panther-specific code path that just loads all the data into one big
2046 NSData object. This means that bug 3686434 won't be fixed on SUPanWheat; we'll
2047 still load the file into memory before sending it to the server on Panther.
2049 2005-02-15 Richard Williamson <rjw@apple.com>
2051 Fixed <rdar://problem/3998368> Tiger8A376: WebTextRenderer assertion failure in Safari while browsing news.bbc.co.uk
2053 Removed use of FATAL_ALWAYS from getUncachedWidth(). It's unclear
2054 why we would trigger the FATAL_ALWAYS. In the past we've seen
2055 the message triggered because of corrupt fonts. Anyway, in this
2056 particular case, we will now return 0 for the character width,
2057 rather than exiting.
2059 Reviewed by David Harrison.
2061 * WebCoreSupport.subproj/WebTextRenderer.m:
2064 2005-02-15 Richard Williamson <rjw@apple.com>
2066 Fixed <rdar://problem/3999467> when Osaka-Mono is specified as fixed width font, Osaka used instead
2068 Lie about Osaka-Mono. Treat it as fixed pitch, even though,
2069 strictly speaking it isn't. (Similar to what we do with
2072 Reviewed by David Harrison.
2074 * WebCoreSupport.subproj/WebTextRenderer.m:
2075 (-[WebTextRenderer _computeWidthForSpace]):
2076 * WebCoreSupport.subproj/WebTextRendererFactory.h:
2077 * WebCoreSupport.subproj/WebTextRendererFactory.m:
2078 (-[NSFont _web_isFakeFixedPitch]):
2079 (-[WebTextRendererFactory isFontFixedPitch:]):
2080 (-[WebTextRendererFactory fontWithFamily:traits:size:]):
2082 2005-02-14 Darin Adler <darin@apple.com>
2086 - fixed <rdar://problem/3686434> Safari uses too much RAM on file upload, leading to malloc errors and crashes (HP printers)
2088 * WebView.subproj/WebFormDataStream.h: Added webSetHTTPBody, which creates and connects an appropriate
2089 stream to an NSMutableURLRequest.
2090 * WebView.subproj/WebFormDataStream.m: Added implementation here.
2092 * WebCoreSupport.subproj/WebBridge.m:
2093 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
2095 * WebCoreSupport.subproj/WebSubresourceClient.m:
2096 (+[WebSubresourceClient startLoadingResource:withURL:customHeaders:postData:referrer:forDataSource:]):
2098 * WebView.subproj/WebFrame.m:
2099 (-[WebFrame _loadItem:withLoadType:]): Use webSetHTTPBody.
2100 (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]): Ditto.
2102 * English.lproj/StringsNotToBeLocalized.txt: Updated for this change and other recent changes.
2104 2005-02-11 Richard Williamson <rjw@apple.com>
2106 Fixed <rdar://problem/4002505> 8A378: Endlessly animating gif's on http://www.entropy.ch
2108 If animated images had no loop count property we were incorrectly
2109 looping forver. Note, that in the course of fixing this bug
2110 I found that ImageIO is incorrectly NOT reporting the loop count
2111 for a whole class of animated GIFs.
2113 Reviewed by Ken Kocienda.
2115 * WebCoreSupport.subproj/WebImageData.m:
2116 (-[WebImageData _repetitionCount]):
2120 2005-02-11 Vicki Murley <vicki@apple.com>
2124 - fix deployment build on Panther
2126 * WebView.subproj/WebHTMLView.m:
2127 (-[WebHTMLView changeBaseWritingDirection:]): ifdef out NSWritingDirectionNatural
2128 (-[WebHTMLView toggleBaseWritingDirection:]): fix a spacing issue
2130 2005-02-10 David Harrison <harrison@apple.com>
2132 Reviewed by Richard.
2134 <rdar://problem/3991652> REGRESSION (Mail): Deleting entire line in reply deletes extra blank line and moves insertion point
2136 * WebView.subproj/WebHTMLView.m:
2137 (-[WebHTMLView _deleteRange:killRing:prepend:smartDeleteOK:isTypingAction:]):
2138 (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
2139 (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]):
2140 (-[WebHTMLView selectToMark:]):
2141 (-[WebHTMLView swapWithMark:]):
2142 (-[WebHTMLView transpose:]):
2143 (-[WebHTMLView _selectMarkedText]):
2144 (-[WebHTMLView _selectRangeInMarkedText:]):
2145 Adopt new default affinity of NSSelectionAffinityDownstream as of <rdar://problem/3937447>.
2147 2005-02-10 Darin Adler <darin@apple.com>
2149 Reviewed by Harrison.
2151 - fixed <rdar://problem/4002084> Setting ResourceLoadDelegate to nil can cause a crash
2153 * WebView.subproj/WebView.m: (-[WebView _cacheResourceLoadDelegateImplementations]):
2154 Set booleans to either YES or NO, rather than setting them only in the YES case.
2156 2005-02-10 Darin Adler <darin@apple.com>
2158 Reviewed by Harrison.
2160 - fixed <rdar://problem/3991225> Format->Style->Underline menu item does not get checked when selected text is underlined
2162 * WebView.subproj/WebHTMLView.m:
2163 (-[WebHTMLView validateUserInterfaceItem:]): Added tons of additional cases in here for all the
2164 "action" style methods in this class that don't always want to be valid. For the ones where state
2165 makes sense, added the state-checking code too for the menu item case.
2166 (-[WebHTMLView ignoreSpelling:]): Removed unnecessary "editable text only" check since this command
2167 would work fine on a non-editable selection.
2168 (-[WebHTMLView swapWithMark:]): Ditto.
2169 (-[WebHTMLView changeBaseWritingDirection:]): Added. Like toggle, but based on the sender's tag.
2171 2005-02-08 Darin Adler <darin@apple.com>
2173 "Reviewed" by Richard (he told me the file was obsolete).
2175 - got rid of an obsolete file
2177 * Plugins.subproj/npsap.h: Removed.
2178 * copy-webcore-files-to-webkit: Removed npsap.h.
2180 2005-02-09 Richard Williamson <rjw@apple.com>
2182 Fixed <rdar://problem/4000073> non-screen font error on www.worldofwarcraft.com
2184 Reviewed by John Sullivan.
2186 * WebCoreSupport.subproj/WebTextRenderer.m:
2187 (-[WebTextRenderer _smallCapsFont]):
2191 2005-02-07 Chris Blumenberg <cblu@apple.com>
2193 Fixed: <rdar://problem/3993354> Safari claims to put RTFD on the pasteboard, but doesn't, in some cases
2197 * WebView.subproj/WebHTMLView.m:
2198 (-[WebHTMLView _stripAttachmentCharactersFromAttributedString:]): moved
2199 (-[WebHTMLView _writeSelectionWithPasteboardTypes:toPasteboard:cachedAttributedString:]): take cachedAttributedString parameter in case the attributed string was gotten already
2200 (-[WebHTMLView _writeSelectionToPasteboard:]): omit RTFD from the types list when there are no attachments
2202 2005-02-07 David Harrison <harrison@apple.com>
2206 <rdar://problem/3990693> REGRESSION (8A373): ctrl-k now deletes just one character instead of line
2208 * WebView.subproj/WebHTMLView.m:
2209 (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]):
2210 Set the selection so that deleteKeyPressedWithSmartDelete knows what to delete.
2212 2005-02-06 Darin Adler <darin@apple.com>
2216 - fixed <rdar://problem/3963166> PDFView SPI print method is being deprecated, moving to PDFDocument; please update WebKit
2218 * WebView.subproj/WebPDFView.m: (-[WebPDFView printOperationWithPrintInfo:]): Target the document instead of the view.
2220 * English.lproj/StringsNotToBeLocalized.txt: Updated for recent changes and also moved one translation to be a file-specific
2221 item rather than a file-independent one.
2223 2005-02-05 Chris Blumenberg <cblu@apple.com>
2225 Fixed: <rdar://problem/3991974> REGRESSION: www.jabra.com world location screen does not work
2229 * WebCoreSupport.subproj/WebBridge.m:
2230 (-[WebBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:]): use the baseURL from the bridge rather than from the response
2232 2005-02-04 Chris Blumenberg <cblu@apple.com>
2234 Fixed: <rdar://problem/3802781> rtf->html pasteboard conversion using xhtml
2236 Reviewed by kocienda.
2238 * WebView.subproj/WebHTMLView.m:
2239 (+[WebHTMLView _excludedElementsForAttributedStringConversion]): new
2240 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]): call _excludedElementsForAttributedStringConversion
2242 2005-02-04 Chris Blumenberg <cblu@apple.com>
2244 Fixed: <rdar://problem/3832973> copy text from PowerPoint, paste into Blot (or presumably Mail) and get a single missing image icon
2248 * WebView.subproj/WebHTMLView.m:
2249 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]): prefer RTF and RTFD over images just as NSTextView does
2251 2005-02-03 Chris Blumenberg <cblu@apple.com>
2253 Fixed: <rdar://problem/3555137> REGRESSION (125-173): Flash animation can erase parts of chrome (bookmarks bar & tab bar)
2255 convertRect:toView: returns incorrect results inside of viewWillMoveToWindow: with a nil window. Workaround this by catching this case.
2259 * Plugins.subproj/WebBaseNetscapePluginView.m:
2260 (-[WebBaseNetscapePluginView superviewsHaveSuperviews]): new
2261 (-[WebBaseNetscapePluginView saveAndSetPortStateForUpdate:]): clip out the plug-in view when superviewsHaveSuperviews returns NO
2263 2005-02-03 Chris Blumenberg <cblu@apple.com>
2265 Fixed: <rdar://problem/3893513> Sun iPlanet app: when saving to a file it brings up a window with the thing to be saved instead
2269 * WebView.subproj/WebTextView.m:
2270 (+[WebTextView unsupportedTextMIMETypes]): added "text/ldif" to the list of MIME types that our text view doesn't handle
2274 2005-02-03 Chris Blumenberg <cblu@apple.com>
2276 * English.lproj/StringsNotToBeLocalized.txt: updated
2278 2005-02-03 Chris Blumenberg <cblu@apple.com>
2280 Fixed: <rdar://problem/3989611> Evite style "add vCalendar to calendar" do not work
2284 * WebView.subproj/WebTextView.m:
2285 (+[WebTextView unsupportedTextMIMETypes]): added "text/x-vcalendar" to the list of MIME types our text view doesn't handle
2287 2005-02-03 Vicki Murley <vicki@apple.com>
2291 - fix deployment build breakage on Panther
2293 * WebView.subproj/WebHTMLView.m:
2294 (-[WebHTMLView toggleBaseWritingDirection:]):
2296 2005-02-02 John Sullivan <sullivan@apple.com>
2300 - WebKit part of fix for <rdar://problem/3980651> REGRESSION (125-180): Huge number of pages printed from certain page,
2303 This also fixes the problems with printing from GMail, yay!
2305 * WebView.subproj/WebHTMLView.m:
2306 (-[WebHTMLView _setPrinting:minimumPageWidth:maximumPageWidth:adjustViewSize:]):
2307 Don't adjust margins for header/footer here, because this is called for each subframe.
2308 (-[WebHTMLView knowsPageRange:]):
2309 Do adjust margins for header/footer here (analogous to WebTextView and WebImageView).
2310 Also, round the page height to an integer here (noticed in passing).
2312 2005-02-02 Chris Blumenberg <cblu@apple.com>
2314 Fixed: <rdar://problem/3986546> Cut, delete, and paste menu items are active when a image is opened in window
2318 * WebView.subproj/WebView.m:
2319 (-[WebView _responderValidateUserInterfaceItem:]): new, has the responder validate the item
2320 (-[WebView validateUserInterfaceItem:]): call VALIDATE for each repsonder selector using FOR_EACH_RESPONDER_SELECTOR macro
2321 (-[WebView _performResponderOperation:with:]): call factored out method _responderForResponderOperations
2322 (-[WebView _responderForResponderOperations]): new, code from _performResponderOperation:with:
2324 2005-02-02 Chris Blumenberg <cblu@apple.com>
2326 Fixed: <rdar://problem/3983628> control-click on WebView is not selecting the word under the cursor (Mail, non-editable WebView)
2330 * WebCoreSupport.subproj/WebBridge.m:
2331 (-[WebBridge selectWordBeforeMenuEvent]): new
2332 * WebView.subproj/WebView.m:
2333 (-[WebView _selectWordBeforeMenuEvent]): new SPI
2334 (-[WebView _setSelectWordBeforeMenuEvent:]): new SPI
2335 * WebView.subproj/WebViewInternal.h:
2336 * WebView.subproj/WebViewPrivate.h:
2338 2005-02-02 Chris Blumenberg <cblu@apple.com>
2340 Fixed: <rdar://problem/3986013> Assertion failure going back after page load error (no apparent problem in nondebug build)
2344 * WebView.subproj/WebDataSource.m:
2345 (-[WebDataSource _setPrimaryLoadComplete:]): don't set the data source data when the main client is nil
2347 2005-02-02 Ken Kocienda <kocienda@apple.com>
2353 <rdar://problem/3823109> WebKit should support -toggleBaseWritingDirection: (bidi editing support)
2355 * WebView.subproj/WebHTMLView.m:
2356 (-[WebHTMLView _applyParagraphStyleToSelection:withUndoAction:]): New function that calls through to
2357 new feature that allows callers to force all properties in a style to be applied as block styles.
2358 (-[WebHTMLView _alignSelectionUsingCSSValue:withUndoAction:]): Removed FIXME comment for something that has been fixed.
2359 (-[WebHTMLView toggleBaseWritingDirection:]): Implemented.
2361 2005-02-01 Richard Williamson <rjw@apple.com>
2363 Fixed <rdar://problem/3977727> WebKit should use new SPI to support faster GIF rendering
2365 Note: This REQUIRES build >= 3A362 when building on Tiger.
2369 * WebCoreSupport.subproj/WebImageData.m:
2370 (-[WebImageData _imageSourceOptions]):
2374 2005-02-01 Richard Williamson <rjw@apple.com>
2376 Added new SPI for <rdar://problem/3967063> need spi on WebView to turn of lcd text for Dashboard
2380 * WebCoreSupport.subproj/WebTextRenderer.m:
2382 * WebView.subproj/WebView.m:
2383 (-[WebView drawRect:]):
2384 (-[WebView _dashboardBehavior:]):
2385 (+[WebView _setShouldUseFontSmoothing:]):
2386 (+[WebView _shouldUseFontSmoothing]):
2387 * WebView.subproj/WebViewInternal.h:
2388 * WebView.subproj/WebViewPrivate.h:
2390 2005-01-31 Chris Blumenberg <cblu@apple.com>
2392 Fixed: <rdar://problem/3949806> REGRESSION: Source window fails to refresh correctly on reload
2394 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.
2398 * WebView.subproj/WebDataSource.m:
2399 (-[WebDataSource _setData:]): moved within file
2400 (-[WebDataSource _setPrimaryLoadComplete:]): call _setData: with the data from the main client before letting go of the main client
2401 * WebView.subproj/WebDataSourcePrivate.h:
2402 * WebView.subproj/WebMainResourceClient.m:
2403 (-[WebMainResourceClient releaseResources]): removed call to _setData: since the data source may need the data before releaseResources is called
2405 2005-01-31 Chris Blumenberg <cblu@apple.com>
2407 Fixed: <rdar://problem/3946285> Seed: Safari crashed by selecting all at internet-moebel.com
2411 * WebView.subproj/WebHTMLView.m:
2412 (-[WebHTMLView _hitViewForEvent:]): new, factored hit test hack to this method
2413 (-[WebHTMLView _updateMouseoverWithEvent:): call _hitViewForEvent:
2414 (-[WebHTMLView acceptsFirstMouse:]): call _setMouseDownEvent: and _isSelectionEvent: on the hit HTMLView or else when it's asked to drag it will assert
2415 (-[WebHTMLView shouldDelayWindowOrderingForEvent:]): ditto
2417 2005-01-31 David Harrison <harrison@apple.com>
2421 <rdar://problem/3961239> AX Setting AXFocused on AXScrollArea of AXWebArea will cause keyboard selection change
2423 * WebView.subproj/WebHTMLView.m:
2424 (-[WebHTMLView maintainsInactiveSelection]):
2425 Keep the selection when the new first respomder is our own scrollview, in both editable and non-editaqble content.
2427 2005-01-31 Jens Alfke <jens@apple.com>
2431 - Fixed <rdar://problem/3903199> REGRESSION: Large background patterns slide around while loading
2433 * WebCoreSupport.subproj/WebImageData.m:
2435 (-[WebImageData tileInRect:fromPoint:context:]):
2437 2005-01-30 Darin Adler <darin@apple.com>
2441 - fixed <rdar://problem/3965265> Safari displays HTML as source when default encoding is Hebrew (due to direction overrides added by encoding converter)
2443 * WebView.subproj/WebPreferencesPrivate.h: Added _systemCFStringEncoding, and changed
2444 _setInitialDefaultTextEncodingToSystemEncoding to be a class method.
2445 * WebView.subproj/WebPreferences.m:
2446 (+[WebPreferences _systemCFStringEncoding]): Added. New SPI to be used by Safari. Broken out of
2447 _setInitialDefaultTextEncodingToSystemEncoding, but also added cases for MacArabic and MacHebrew.
2448 (+[WebPreferences _setInitialDefaultTextEncodingToSystemEncoding]): Refactor to use _systemCFStringEncoding.
2450 2005-01-28 Jens Alfke <jens@apple.com>
2452 Reviewed by Richard.
2454 <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)
2456 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.)
2458 * WebCoreSupport.subproj/WebImageData.h:
2459 * WebCoreSupport.subproj/WebImageData.m:
2460 (-[WebImageData _invalidateImages]):
2461 (-[WebImageData _checkSolidColor:]):
2462 (-[WebImageData _cacheImages:allImages:]):
2463 (-[WebImageData _fillSolidColorInRect:compositeOperation:context:]):
2464 (-[WebImageData tileInRect:fromPoint:context:]):
2466 2005-01-28 David Harrison <harrison@apple.com>
2470 <rdar://problem/3584942> AX: Safari Accessibility parent-child mismatch
2472 Use AppKit SPI _accessibilityParentForSubview to return KWQAccObject parent of AppKit AX object.
2474 * WebView.subproj/WebHTMLView.m:
2475 (-[WebHTMLView _accessibilityParentForSubview:]):
2478 2005-01-28 Chris Blumenberg <cblu@apple.com>
2480 WebKit side of: <rdar://problem/3951283> can view pages from the back/forward cache that should be disallowed by Parental Controls
2484 * WebView.subproj/WebDefaultPolicyDelegate.m:
2485 (-[WebDefaultPolicyDelegate webView:shouldGoToHistoryItem:]): new private delegate method
2486 * WebView.subproj/WebFrame.m:
2487 (-[WebFrame _goToItem:withLoadType:]): call new delegate method
2488 * WebView.subproj/WebPolicyDelegatePrivate.h:
2490 2005-01-26 Maciej Stachowiak <mjs@apple.com>
2492 Reviewed by Darin, Hyatt and Ken.
2494 <rdar://problem/3790449> REGRESSION (Mail): underline behavior is flaky because of how CSS handles text-decoration
2496 * WebView.subproj/WebHTMLView.m:
2497 (-[WebHTMLView _styleFromFontAttributes:]): Use new -khtml-text-decorations-in-effect
2499 (-[WebHTMLView _styleForAttributeChange:]): likewise
2500 (-[WebHTMLView underline:]): likewise
2502 2005-01-27 Ken Kocienda <kocienda@apple.com>
2506 * WebView.subproj/WebHTMLView.m:
2507 (-[WebHTMLView _handleKillRing:prepend:]): New helper function. Code factored out from
2508 _deleteRange:killRing:prepend:smartDeleteOK:isTypingAction:.
2509 (-[WebHTMLView _deleteRange:killRing:prepend:smartDeleteOK:isTypingAction:]): No longer takes
2510 unused preflight argument. Now takes new isTypingAction argument. Uses isTypingAction to
2511 determine which flavor of delete command to call.
2512 (-[WebHTMLView _deleteSelection]): No longer passes unused preflight argument. Now passes new isTypingAction argument.
2513 (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]): Rearranged code to call
2514 correct flavor of delete command, based on whether typing should be preserved. Some other cleanups.
2515 (-[WebHTMLView deleteForward:]): Add _isEditable check.
2516 (-[WebHTMLView deleteBackward:]): Now calls _deleteWithDirection instead of having unique behavior different
2517 from forward delete.
2518 (-[WebHTMLView deleteWordForward:]): Add new isTypingAction flag to _deleteWithDirection call.
2519 (-[WebHTMLView deleteWordBackward:]): Ditto.
2520 (-[WebHTMLView deleteToBeginningOfLine:]): Ditto.
2521 (-[WebHTMLView deleteToEndOfLine:]): Ditto.
2522 (-[WebHTMLView deleteToBeginningOfParagraph:]): Ditto.
2523 (-[WebHTMLView deleteToEndOfParagraph:]): Ditto.
2524 (-[WebHTMLView deleteToMark:]): Ditto.
2528 2005-01-27 Chris Blumenberg <cblu@apple.com>
2530 Fixed: <rdar://problem/3973272> REGRESSION: Safari uses QT plugin to display PNG images
2534 * Plugins.subproj/WebBasePluginPackage.m: use renamed QT bundle ID
2536 2005-01-26 Darin Adler <darin@apple.com>
2540 - fixed <rdar://problem/3829517> WebView still draws white when setDrawsBackground set to NO and no content loaded yet
2542 * WebView.subproj/WebFrameView.m: (-[WebFrameView drawRect:]): Check drawsBackground, and don't
2543 draw the white "no document" background if it's NO. This fixes things for frames with no document.
2544 * WebView.subproj/WebImageView.m: (-[WebImageView drawRect:]): Same as above. This fixes things
2545 for frames with just an image.
2546 * WebView.subproj/WebFrame.m: (-[WebFrame _updateDrawsBackground]): Call setDrawsBackground: on the
2547 document view if it implements it. This fixes things for frames with plain text.
2549 2005-01-25 John Sullivan <sullivan@apple.com>
2553 - WebKit part of fix for: <rdar://problem/3970670> Text context menu
2554 in WebKit needs "Look Up in Dictionary" item
2556 * WebView.subproj/WebDefaultContextMenuDelegate.m:
2557 (localizedMenuTitleFromAppKit):
2558 return English string in the case where AppKit bundle is found but doesn't
2559 contain the expected string. This case will be hit by people testing with
2561 (-[WebDefaultUIDelegate menuItemWithTag:]):
2562 create Look Up in Dictionary item
2563 (-[WebDefaultUIDelegate contextMenuItemsForElement:]):
2564 add Look Up in Dictionary item and separator
2565 (-[WebDefaultUIDelegate editingContextMenuItemsForElement:]):
2568 * WebView.subproj/WebHTMLView.m:
2569 (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
2570 new method, handles bringing up the Dictionary window. Includes FIXMEs
2571 for a couple of the known loose ends.
2572 (-[WebHTMLView validateUserInterfaceItem:]):
2573 handle Look Up in Dictionary item like the other new items
2575 * WebView.subproj/WebUIDelegatePrivate.h:
2576 added SPI constant for Look Up in Dictionary menu item
2578 2005-01-24 Maciej Stachowiak <mjs@apple.com>
2580 Fixed Panther build (missing ifdef)
2582 * WebView.subproj/WebDefaultContextMenuDelegate.m:
2584 2005-01-24 John Sullivan <sullivan@apple.com>
2588 - WebKit part of fix for <rdar://problem/3960231> Text context menu in WebKit needs Spotlight and Google items
2590 * WebView.subproj/WebDefaultContextMenuDelegate.m:
2591 (localizedMenuTitleFromAppKit):
2592 new function, gets localized string from AppKit so we can avoid adding localized
2593 strings to WebKit at this late date in Tiger. Returns the non-localized English
2594 string if we can't find the localized string in AppKit.
2595 (-[WebDefaultUIDelegate menuItemWithTag:]):
2596 handle the two new menu items by tag name
2597 (-[WebDefaultUIDelegate contextMenuItemsForElement:]):
2598 add menu items for Search in Google and Search in Spotlight to selected-text menu item
2599 for the noneditable case
2600 (-[WebDefaultUIDelegate editingContextMenuItemsForElement:]):
2601 add menu items for Search in Google and Search in Spotlight to selected-text menu item
2602 for the editable case
2604 * WebView.subproj/WebHTMLView.m:
2605 (-[WebHTMLView _searchWithGoogleFromMenu:]):
2606 implement this menu item action method, using same method name and implementation as NSTextView
2607 (-[WebHTMLView _searchWithSpotlightFromMenu:]):
2608 implement this menu item action method, using same basic implementation as NSTextView
2609 (-[WebHTMLView validateUserInterfaceItem:]):
2610 validate new menu items
2612 * WebView.subproj/WebUIDelegatePrivate.h:
2613 define new tags for new menu items
2615 * English.lproj/StringsNotToBeLocalized.txt:
2616 updated for these changes
2618 2005-01-24 Darin Adler <darin@apple.com>
2620 * WebView.subproj/WebDataSource.m: (+[WebDataSource _repTypesAllowImageTypeOmission:]):
2621 Do the same check as for view types, so the representation types are consistent.
2623 2005-01-24 Darin Adler <darin@apple.com>
2627 - fixed <rdar://problem/3791158> REGRESSION (Mail): copyFont: and pasteFont: copy and paste only the NSFont, not other attributes
2629 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView _styleFromFontAttributes:]): Added the last
2630 few loose ends here: strikethrough and underline.
2632 - fixed <rdar://problem/3967393> add a user default that lets you turn off WebKit PDF support
2634 * WebView.subproj/WebFrameView.m: (+[WebFrameView _viewTypesAllowImageTypeOmission:]):
2635 Leave the PDF-handling classes out of the dictionary if the secret default is set.
2637 * English.lproj/StringsNotToBeLocalized.txt: Updated for recent changes.
2639 2005-01-20 Darin Adler <darin@apple.com>
2641 Reviewed by Kristin Forster.
2643 - fixed <rdar://problem/3964972> update _initWithCGSEvent:eventRef: call in mouse moved workaround (breaks cursors in Carbon WebKit applications)
2645 * Carbon.subproj/HIWebView.m: (MouseMoved): Instead of munging the event record's window number directly
2646 before calling _initWithCGSEvent, on Tiger we call _eventRelativeToWindow on the event after creating it.
2647 Also added a check so that with Macromedia Contribute's workaround in place we don't do anything at all
2648 to the event. Tested with both Contribute and CarbonWeb.
2650 * English.lproj/StringsNotToBeLocalized.txt: Update for recent changes.
2652 2005-01-20 Richard Williamson <rjw@apple.com>
2654 Fixed <rdar://problem/3815672> REGRESSION (Mail): Japanese text cannot be made bold
2656 The AppKit's font substitution API doesn't match font traits!
2657 It only find fonts that contain the appropriate glyphs. This
2658 patch attempts to find the best variation within a family.
2662 * WebCoreSupport.subproj/WebTextRenderer.m:
2663 (-[WebTextRenderer _substituteFontForString:families:]):
2667 2005-01-20 Ken Kocienda <kocienda@apple.com>
2673 <rdar://problem/3786659> REGRESSION (Mail): editable WebViews don't work with "size up" and "size down" NSFontManager changes
2675 * WebView.subproj/WebHTMLView.m:
2676 (-[WebHTMLView _addToStyle:fontA:fontB:]): This is the WebKit side of the fix. Replaced unimplemented code blocks
2677 with FIXME's in them for make bigger and make smaller with real working code.
2679 2005-01-19 David Hyatt <hyatt@apple.com>
2681 Fix for 3513067, spaces being lost when RTL text is rendered. Make sure not to allow hangers or spaces
2686 * WebCoreSupport.subproj/WebTextRenderer.m:
2687 (-[WebTextRenderer _createATSUTextLayoutForRun:style:]):
2689 2005-01-19 Darin Adler <darin@apple.com>
2693 - fixed <rdar://problem/3962559> stopAnimationsInView leaks after cvs-base
2695 * WebCoreSupport.subproj/WebImageData.m: (+[WebImageData stopAnimationsInView:]): add a release
2697 2005-01-19 Chris Blumenberg <cblu@apple.com>
2699 Fixed: <rdar://problem/3961809> plug-in code attempts to load empty URL
2703 * Plugins.subproj/WebNetscapePluginEmbeddedView.m:
2704 (-[WebNetscapePluginEmbeddedView didStart]): don't start load if URL is empty
2706 2005-01-17 Darin Adler <darin@apple.com>
2708 * DOM.subproj/DOMPrivate.h: Check in generated file.
2710 2005-01-17 Darin Adler <darin@apple.com>
2712 Reviewed by John and Richard.
2714 - fixed <rdar://problem/3907453> printing a multi-page PDF document from Safari doesn't produce correct output
2716 * WebView.subproj/WebFrameViewPrivate.h: Added.
2717 * WebView.subproj/WebFrameView.m:
2718 (-[WebFrameView canPrintHeadersAndFooters]): Added. Returnes NO for documents that can't print headers or footers,
2719 and delegates to the document view to answer the question. Defaults to NO, since only a view that actively does
2720 the work is compatible with our header and footer code.
2721 (-[WebFrameView printOperationWithPrintInfo:]): Added. Returns an NSPrintOperation set up for printing. The reason
2722 we return this rather than an NSView is that in the PDFView case, the print info is changed around before creating
2723 the NSPrintOperation, and also the PDFKit SPI works this way.
2725 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView canPrintHeadersAndFooters]): Added. Returns YES.
2726 * WebView.subproj/WebImageView.m: (-[WebImageView canPrintHeadersAndFooters]): Ditto.
2727 * WebView.subproj/WebTextView.m: (-[WebTextView canPrintHeadersAndFooters]): Ditto.
2729 * WebView.subproj/WebPDFView.m:
2730 (-[WebPDFView canPrintHeadersAndFooters]): Added. Returns NO.
2731 (-[WebPDFView printOperationWithPrintInfo:]): Added. Calls getPrintOperationForPrintInfo: autoRotate:YES on the PDFView.
2733 * WebKit.pbproj/project.pbxproj: Added WebFrameViewPrivate.h as a new private header.
2735 2005-01-13 Chris Blumenberg <cblu@apple.com>
2737 Fixed: <rdar://problem/3932107> Safari does not load QT Cocoa plug-in if the WebPluginMIMETypes key is not in the info.plist
2739 Fixing this bug required that we allow WebKit plug-ins (as well as Netscape plug-ins) support BP_CreatePluginMIMETypesPreferences
2740 which allows plug-ins create an auxiliary MIME types file.
2744 * Plugins.subproj/WebBasePluginPackage.h:
2745 * Plugins.subproj/WebBasePluginPackage.m:
2746 (+[WebBasePluginPackage preferredLocalizationName]): moved from WebNetscapePluginPackage
2747 (-[WebBasePluginPackage pListForPath:createFile:]): ditto
2748 (-[WebBasePluginPackage getPluginInfoFromPLists]): ditto
2749 (-[WebBasePluginPackage isLoaded]): return isLoaded ivar
2750 (-[WebBasePluginPackage load]): if loaded, get BP_CreatePluginMIMETypesPreferences symbol
2751 * Plugins.subproj/WebNetscapePluginPackage.h:
2752 * Plugins.subproj/WebNetscapePluginPackage.m:
2753 (-[WebNetscapePluginPackage load]): call super when done so BP_CreatePluginMIMETypesPreferences can be initialized
2754 * Plugins.subproj/WebPluginPackage.m:
2755 (-[WebPluginPackage initWithPath:]): call getPluginInfoFromPLists
2756 (-[WebPluginPackage load]): call super when done so BP_CreatePluginMIMETypesPreferences can be initialized
2758 2005-01-13 Richard Williamson <rjw@apple.com>
2760 Fixed <rdar://problem/3952809> WebJavaPlugIn.h comments need method name corrected (webPlugInCallJava)
2764 * Plugins.subproj/WebJavaPlugIn.h:
2768 2005-01-13 Vicki Murley <vicki@apple.com>
2772 - fix <rdar://problem/3946836> Safari about box lists 2004 instead of 2005
2774 * WebKit.pbproj/project.pbxproj: bump "2004" to "2005"
2776 2005-01-13 Richard Williamson <rjw@apple.com>
2778 Fixed <rdar://problem/3951911> REGRESSION: Animated GIF images with loop counts no longer update
2780 Draw last image after animation loop terminates. (We
2781 were drawing the image at index+1, which doesn't exist!)
2785 * WebCoreSupport.subproj/WebImageData.m:
2786 (-[WebImageData _nextFrame:]):
2788 2005-01-13 Richard Williamson <rjw@apple.com>
2790 Fixed <rdar://problem/3952084> REGRESSION: Links at projectseven.com now draw and update incorrectly during hover
2792 Turn off use of new CGContextStrokeLineSegments API. We should
2793 turn back on when 3952944 is fixed.
2797 * WebCoreSupport.subproj/WebTextRenderer.m:
2798 (-[WebTextRenderer drawLineForCharacters:yOffset:width:color:thickness:]):
2800 2005-01-13 Chris Blumenberg <cblu@apple.com>
2802 Fixed: <rdar://problem/3937663> repro assertion failure and crash dragging image that has PDF source
2806 * Misc.subproj/WebNSViewExtras.m:
2807 (-[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
2808 * WebCoreSupport.subproj/WebImageRendererFactory.m:
2809 (-[WebImageRendererFactory supportedMIMETypes]): removed code that omits PDF and PostScript from the list since this omission is only needed in WebImageView
2810 * WebView.subproj/WebImageView.m:
2811 (+[WebImageView supportedImageMIMETypes]): added code that omits PDF and PostScript since we don't want WebImageView to render these types
2813 2005-01-10 Maciej Stachowiak <mjs@apple.com>
2817 <rdar://problem/3758033> REGRESSION (Mail): Support attributes in marked text (International input)
2819 * WebCoreSupport.subproj/WebTextRenderer.m:
2820 (-[WebTextRenderer drawLineForCharacters:yOffset:width:color:thickness:]): Changed to support
2821 underline thickness. Also added a bit of a hack here to move thickness 2 underlines down by
2822 .5 pixels, since the rendering engine can't give a fractional pixel offset.
2823 * WebView.subproj/WebHTMLView.m:
2824 (-[WebHTMLView validAttributesForMarkedText]): Support underline, underline color and marked
2825 clause attributes. Others that NSText supports are unimplemented for now.
2826 (-[WebHTMLView firstRectForCharacterRange:]): Remove needless logging.
2827 (-[WebHTMLView unmarkText]): Updated for new WebCore SPI.
2828 (-[WebHTMLView _extractAttributes:ranges:fromAttributedString:]): New method to pull the attributes
2829 and ranges out of an attributed string.
2830 (-[WebHTMLView setMarkedText:selectedRange:]): Extract attributes and pass to WebCore.
2831 (-[WebHTMLView insertText:]): Add comment noting that we don't really handle attributed strings
2834 2005-01-12 Darin Adler <darin@apple.com>
2838 - fixed <rdar://problem/3848257> WebView will draw more than AppKit asks it to, so views behind won't redraw enough (transparent WebView)
2840 * WebView.subproj/WebHTMLView.m:
2841 (-[WebHTMLView _propagateDirtyRectsToOpaqueAncestors]): As recommended by Troy Stephens, do the
2842 layouts here in this call, since it's before propagating the dirty rects to our ancestors.
2843 This fixes the bug, but we only do it if the WebView is not opaque, because otherwise we can
2844 optimize by only doing layouts you really need, and doing them later on is safe because we
2845 know we don't need to draw any of the views behind us.
2846 (-[WebHTMLView _layoutIfNeeded]): Added. Factored out from the method below.
2847 (-[WebHTMLView _web_layoutIfNeededRecursive]): Added. Like the other "layout if needed" call,
2849 (-[WebHTMLView _web_layoutIfNeededRecursive:testDirtyRect:]): Factored out the guts into the
2850 _layoutIfNeeded method above. Otherwise unchanged.
2851 (-[NSView _web_layoutIfNeededRecursive]): Added.
2853 * WebView.subproj/WebFrame.m: (-[WebFrame _updateDrawsBackground]): Call setDrawsBackground:NO
2854 on the scroll view when changing the frame to no longer be in "draws background" mode. This
2855 is needed because the frame manages the "draws background" mode of the scroll view. It won't
2856 have any effect if you call setDrawsBackground:NO before starting to use a WebView, but without
2857 it calling setDrawsBackground:NO later won't have an immediate effect (easily visible in Safari).
2858 This was hidden before because the HTML view was filling with transparent color, which blew away
2859 the fill that was done by NSScrollView.
2861 - fixed <rdar://problem/3921129> reproducible crash at www.funnychristmas.com in CFSet manipulation in WebImageData
2863 * WebCoreSupport.subproj/WebImageData.m:
2864 (-[WebImageData _imageSourceOptions]): Changed types so we don't need a cast.
2865 (+[WebImageData stopAnimationsInView:]): Instead of building a set of sets, by putting in the sets with addObject,
2866 build a single set using unionSet, and then iterate the objects instead of having to iterate the sets and then the
2867 objects in each set. The old code ended up sharing the sets with the live code, when the whole idea was to gather
2868 all the renderers because the process of stopping modifies the active sets.
2870 2005-01-12 Richard Williamson <rjw@apple.com>
2872 Fixed <rdar://problem/3926825> Safari ignores GIF loop count
2874 Get loop count from file properties, not image properties.
2876 Reviewed by Ken Kocienda.
2878 * WebCoreSupport.subproj/WebImageData.h:
2879 * WebCoreSupport.subproj/WebImageData.m:
2880 (-[WebImageData _commonTermination]):
2881 (-[WebImageData fileProperties]):
2882 (-[WebImageData _floatProperty:type:at:]):
2883 (-[WebImageData _floatFileProperty:type:]):
2884 (-[WebImageData _repetitionCount]):
2886 2005-01-11 Chris Blumenberg <cblu@apple.com>
2888 Fixed: <rdar://problem/3934749> assertion failure in WebBaseNetscapePluginView loading movie
2892 * Plugins.subproj/WebBaseNetscapePluginView.m:
2893 (-[WebBaseNetscapePluginView start]): call canStart before asserting about the webView
2895 2005-01-11 John Sullivan <sullivan@apple.com>
2899 - fixed <rdar://problem/3446838> REGRESSION (Mail): text decorations don't print
2900 (e.g. <strike>, underline)
2902 * WebCoreSupport.subproj/WebTextRenderer.m:
2903 (-[WebTextRenderer drawLineForCharacters:yOffset:withWidth:withColor:]):
2904 This bottleneck routine for drawing a line was setting the linewidth to 0 when
2905 the graphics context was not drawing to the screen. Thus, no lines. Now links
2906 are underlined when printing from Safari (as well as Mail).
2908 2005-01-11 Richard Williamson <rjw@apple.com>
2910 Fixed 3949145. CG has a much faster API for drawing lines.
2911 Switched over to that new API (CGContextStrokeLineSegments).
2913 Reviewed by John Sullivan.
2915 * WebCoreSupport.subproj/WebTextRenderer.m:
2916 (-[WebTextRenderer drawLineForCharacters:yOffset:withWidth:withColor:]):
2918 2005-01-10 Chris Blumenberg <cblu@apple.com>
2920 Fixed: <rdar://problem/3948862> REGRESSION: missing images when RTFD is pasted into editable WebView
2922 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.
2926 * WebView.subproj/WebHTMLView.m:
2927 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]): don't deal with subresources since that's now done by the following method
2928 (-[WebHTMLView resourceForData:preferredFilename:]): new handler method called by AppKit
2932 2005-01-06 David Harrison <harrison@apple.com>
2934 Reviewed by Dave Hyatt
2936 <rdar://problem/3588548> AX: tabbing does not work correctly with the screen reader and a focused link; need AXFocusedUIElement to work.
2938 * WebView.subproj/WebHTMLView.m:
2939 (-[WebHTMLView accessibilityFocusedUIElement]):
2940 Implement this so that AppKit can use it from NSAccessibilityHandleFocusChanged.
2942 2005-01-05 Chris Blumenberg <cblu@apple.com>
2944 Fixed: <rdar://problem/3936865> REGRESSION: canvas.drawImage no longer scales properly
2948 * WebCoreSupport.subproj/WebImageData.m: use the height of the inRect instead of the fromRect when setting the origin of the context
2950 2005-01-04 Chris Blumenberg <cblu@apple.com>
2952 Fixed: <rdar://problem/3928329> WebKit should pass nil for "language" to checkSpellingOfString:
2954 Reviewed by kocienda.
2956 * WebView.subproj/WebHTMLView.m:
2957 (-[WebHTMLView _isSelectionMisspelled]): pass nil not @"" for language
2959 2004-12-21 Maciej Stachowiak <mjs@apple.com>
2963 <rdar://problem/3888931> frame naming allows malicious site to bring up a window when you click on a link in another
2965 Implement a security check on name frame visbility. This is the
2966 same rule as mozilla. You can only target frames by name if you
2967 are in the same window, have the same domain as the frame or an
2968 ancestor, or if it's a top level window have the same domain as
2971 * WebView.subproj/WebFrame.m:
2972 (-[WebFrame _shouldAllowAccessFrom:]):
2973 (-[WebFrame _descendantFrameNamed:sourceFrame:]):
2974 (-[WebFrame findFrameNamed:]):
2975 * WebView.subproj/WebFramePrivate.h:
2976 * WebView.subproj/WebView.m:
2977 (-[WebView _findFrameInThisWindowNamed:sourceFrame:]):
2978 (-[WebView _findFrameNamed:sourceFrame:]):
2979 * WebView.subproj/WebViewPrivate.h:
2985 2004-12-20 Richard Williamson <rjw@apple.com>
2987 Add call to new API. ImageIO deprecated some older (although
2988 quite new!) API. This caused us to fail to build on 337 or later.
2990 Developers wanting to build on older versions of Tiger must define
2991 USE_DEPRECATED_IMAGESOURCE_API in WebImageData.m.
2995 * WebCoreSupport.subproj/WebImageData.m:
2996 (-[WebImageData propertiesAtIndex:]):
2998 2004-12-20 Richard Williamson <rjw@apple.com>
3000 Don't call Tiger SPI on Panther.
3004 * WebCoreSupport.subproj/WebTextRendererFactory.m:
3005 (+[WebTextRendererFactory createSharedFactory]):
3007 2004-12-20 Richard Williamson <rjw@apple.com>
3009 Fixed <rdar://problem/3884448> WebKit should turn on CG local font cache
3011 Enable mutli-tier font caching. We should see a performance boost with this
3016 * WebCoreSupport.subproj/WebTextRendererFactory.m:
3017 (+[WebTextRendererFactory createSharedFactory]):
3019 2004-12-20 Richard Williamson <rjw@apple.com>
3021 Fix image decoding to separately decode image meta data from actual image bits. I
3022 incorrectly consolidated decode of meta data and image bits resulting in a huge
3023 performance regression.
3025 Double size of WebCore cache on lower end machines. On the PLT run on machines with
3026 256MB of memory, too many images were being evicted, causing a re-decode on the PLT.
3027 Upping the lower limit of the cache size ensure that no images are evicted (this
3028 goes hand-in-hand with the change to the minimum object size from 32K to 40K).
3032 * WebCoreSupport.subproj/WebImageData.h:
3033 * WebCoreSupport.subproj/WebImageData.m:
3034 (+[WebImageData initialize]):
3035 (-[WebImageData _commonTermination]):
3036 (-[WebImageData _invalidateImages]):
3037 (-[WebImageData _invalidateImageProperties]):
3038 (-[WebImageData imageAtIndex:]):
3039 (-[WebImageData propertiesAtIndex:]):
3040 (-[WebImageData _cacheImages:allImages:]):
3041 (-[WebImageData decodeData:isComplete:callback:]):
3042 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
3043 * WebView.subproj/WebPreferences.m:
3044 (+[WebPreferences initialize]):
3046 2004-12-20 Richard Williamson <rjw@apple.com>
3048 Fixed build problem caused by change to ImageIO API.
3052 * WebCoreSupport.subproj/WebImageData.m:
3054 2004-12-19 Darin Adler <darin@apple.com>
3058 - some garbage collection fixes
3060 * Misc.subproj/WebNSObjectExtras.h: (WebCFAutorelease): Replaced the old WebNSRetainCFRelease with this
3061 much-easier-to-understand function cribbed from what David Harrison did in WebCore.
3063 * Misc.subproj/WebKitNSStringExtras.m: (+[NSString _web_encodingForResource:]): Use CFRelease here to
3064 get rid of an unnecessary use of WebNSRetainCFRelease.
3065 * Misc.subproj/WebNSURLExtras.m:
3066 (+[NSURL _web_URLWithData:relativeToURL:]): Use WebCFAutorelease instead of WebNSRetainCFRelease and autorelease.
3067 (-[NSURL _web_URLWithLowercasedScheme]): Ditto.
3068 (-[NSString _web_mapHostNameWithRange:encode:makeString:]): Use WebCFAutorelease here; the old code would not
3069 work correctly under GC.
3070 * Plugins.subproj/WebNetscapePluginPackage.m: (+[WebNetscapePluginPackage preferredLocalizationName]):
3071 Use WebCFAutorelease here; the old code would not work correctly under GC.
3073 2004-12-18 Chris Blumenberg <cblu@apple.com>
3075 Fixed: <rdar://problem/3766915> PDF content needs search to work
3077 Reviewed by kevin, john.
3079 * WebView.subproj/WebPDFView.m:
3080 (-[WebPDFView searchFor:direction:caseSensitive:wrap:]): implemented
3081 (-[WebPDFView takeFindStringFromSelection:]): new
3082 (-[WebPDFView jumpToSelection:]): new
3083 (-[WebPDFView validateUserInterfaceItem:]): new
3085 2004-12-17 Richard Williamson <rjw@apple.com>
3087 Make image decoding as lazy as possible for non threaded case; in some cases
3088 can avoid unnecessary decoding work.
3092 * WebCoreSupport.subproj/WebImageData.h:
3093 * WebCoreSupport.subproj/WebImageData.m:
3094 (-[WebImageData imageAtIndex:]):
3095 (-[WebImageData propertiesAtIndex:]):
3096 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
3098 2004-12-16 John Sullivan <sullivan@apple.com>
3102 One of the assertions from my previous checkin fired, so
3103 I made this code more robust.
3105 * WebCoreSupport.subproj/WebBridge.m:
3106 (-[WebBridge _preferences]):
3107 new helper method, returns global preferences if webView is nil,
3108 otherwise returns webView's preferences
3109 (-[WebBridge getObjectCacheSize]):
3110 use new helper method, remove now-unnecessary assert
3111 (-[WebBridge _retrieveKeyboardUIModeFromPreferences:]):
3114 2004-12-16 John Sullivan <sullivan@apple.com>
3118 - fixed <rdar://problem/3913523> Mail needs SPI for adding tooltips to links
3119 - cleaned up some calls to +[WebPreferences standardPreferences] that should
3120 have been using -[WebView preferences]
3122 This adds a (currently SPI-only) new feature that shows the URL of the link
3123 under the mouse in a toolTip. I tested this in Safari, but we're adding this
3124 feature for Mail, and Safari won't use it (unless of course you know the
3125 magic defaults command)
3127 * Plugins.subproj/WebBaseNetscapePluginView.m:
3128 (-[WebBaseNetscapePluginView start]):
3129 use -[WebView preferences] instead of +[WebPreferences standardPreferences]
3131 * WebCoreSupport.subproj/WebBridge.m:
3132 (-[WebBridge getObjectCacheSize]):
3134 (-[WebBridge _retrieveKeyboardUIModeFromPreferences:]):
3137 * WebView.subproj/WebBaseResourceHandleDelegate.m:
3138 (-[WebBaseResourceHandleDelegate willCacheResponse:]):
3141 * WebView.subproj/WebFrame.m:
3142 (-[WebFrame _transitionToCommitted:]):
3144 (-[WebFrame _loadItem:withLoadType:]):
3147 * WebView.subproj/WebHTMLViewInternal.h:
3148 private struct now keeps ivar for cached value of showsURLsInToolTips
3149 so it doesn't have look it up in preferences a zillion times
3151 * WebView.subproj/WebHTMLView.m:
3152 (-[WebHTMLView _updateMouseoverWithEvent:]):
3153 if private->showsURLsInToolTips is true, set the toolTip from the URL.
3154 Fall back to showing the title attribute in case some element has a title
3155 attribute but no URL.
3156 (-[WebHTMLView _mayStartDragAtEventLocation:]):
3157 use -[WebView preferences] instead of +[WebPreferences standardPreferences]
3158 (-[WebHTMLView _resetCachedWebPreferences:]):
3159 get a fresh value for private->showsURLsInToolTips
3160 (-[WebHTMLView initWithFrame:]):
3161 call _resetCachedWebPreferences the first time, and listen for WebPreferencesChanged notifications
3162 (-[WebHTMLView _handleStyleKeyEquivalent:]):
3163 use -[WebView preferences] instead of +[WebPreferences standardPreferences]
3165 * WebView.subproj/WebPreferenceKeysPrivate.h:
3166 added WebKitShowsURLsInToolTipsPreferenceKey
3168 * WebView.subproj/WebPreferences.m:
3169 (+[WebPreferences initialize]):
3170 initialize WebKitShowsURLsInToolTipsPreferenceKey to 0
3171 (-[WebPreferences showsURLsInToolTips]):
3172 return WebKitShowsURLsInToolTipsPreferenceKey value
3173 (-[WebPreferences setShowsURLsInToolTips:]):
3174 set WebKitShowsURLsInToolTipsPreferenceKey value
3176 * WebView.subproj/WebPreferencesPrivate.h:
3177 add declarations for showsURLsInToolTips and setter
3179 * WebView.subproj/WebTextView.m:
3180 (-[WebTextView _preferences]):
3181 new helper method that gets preferences from webView if there is a webView,
3182 otherwise gets global preferences
3183 (-[WebTextView setFixedWidthFont]):
3184 use new helper method rather than always using global preferences
3185 (-[WebTextView initWithFrame:]):
3186 observe WebPreferencesChangedNotification instead of unnecessarily general
3187 NSUserDefaultsChangedNotification
3189 2004-12-14 John Sullivan <sullivan@apple.com>
3193 - rest of WebKit fix for <rdar://problem/3790011> undoable operations all say "Undo"
3194 in the menu, no specific action names
3196 I only know of one loose end currently, which I wrote up as <rdar://problem/3920971> Edit menu
3197 says "Undo Change Attributes" when it should say "Undo Set Color", from font panel
3199 * WebView.subproj/WebHTMLView.m:
3200 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]):
3201 use WebUndoActionSetColor when dragging color swatch
3202 (-[WebHTMLView _applyStyleToSelection:withUndoAction:]):
3203 new WebUndoAction parameter, passed across bridge
3204 (-[WebHTMLView _toggleBold]):
3205 use WebUndoActionSetFont
3206 (-[WebHTMLView _toggleItalic]):
3207 use WebUndoActionSetFont
3208 (-[WebHTMLView pasteFont:]):
3209 use WebUndoActionPasteFont
3210 (-[WebHTMLView changeFont:]):
3211 use WebUndoActionSetFont
3212 (-[WebHTMLView changeAttributes:]):
3213 use WebUndoActionChangeAttributes
3214 (-[WebHTMLView _undoActionFromColorPanelWithSelector:]):
3215 new method, returns WebUndoActionSetBackgroundColor or WebUndoActionSetColor
3216 (-[WebHTMLView _changeCSSColorUsingSelector:inRange:]):
3217 now calls _undoActionFromColorPanelWithSelector
3218 (-[WebHTMLView changeColor:]):
3219 use WebUndoActionSetColor
3220 (-[WebHTMLView _alignSelectionUsingCSSValue:withUndoAction:]):
3221 new WebUndoAction parameter, passed through
3222 (-[WebHTMLView alignCenter:]):
3223 use WebUndoActionCenter
3224 (-[WebHTMLView alignJustified:]):
3225 use WebUndoActionJustify
3226 (-[WebHTMLView alignLeft:]):
3227 use WebUndoActionAlignLeft
3228 (-[WebHTMLView alignRight:]):
3229 use WebUndoActionAlignRight
3230 (-[WebHTMLView subscript:]):
3231 use WebUndoActionAlignSubscript
3232 (-[WebHTMLView superscript:]):
3233 use WebUndoActionAlignSuperscript
3234 (-[WebHTMLView unscript:]):
3235 use WebUndoActionAlignUnscript
3236 (-[WebHTMLView underline:]):
3237 use WebUndoActionAlignUnderline
3239 * WebView.subproj/WebView.m:
3240 (-[WebView setTypingStyle:]):
3241 pass WebUndoActionUnspecified through as new parameter since we don't have any more specific info
3242 (-[WebView applyStyle:]):
3245 2004-12-14 Richard Williamson <rjw@apple.com>
3247 Helper method to get URL of plugin view.
3251 * Misc.subproj/WebNSViewExtras.m:
3252 (-[NSView _webViewURL]):
3254 2004-12-14 Vicki Murley <vicki@apple.com>
3258 <rdar://problem/3855573> Remove reference to "WebScriptMethods" from WebScriptObject.h comments
3260 * Plugins.subproj/WebPlugin.h: changed instances of "WebScriptMethods" to "WebScripting" in this
3261 file as well, as requested in the bug report
3263 2004-12-13 Maciej Stachowiak <mjs@apple.com>
3267 <rdar://problem/3912488> Mail throws an exception after backspacing "away" inline input
3269 * WebView.subproj/WebHTMLView.m:
3270 (-[WebHTMLView setMarkedText:selectedRange:]): Don't try to set a selection if
3271 we end up with no marked text, since that case fails and is unnecessary.
3273 2004-12-14 John Sullivan <sullivan@apple.com>
3277 - WebKit part of plumbing of fix for <rdar://problem/3790011> undoable operations all say "Undo" in the menu,
3278 no specific action names
3280 * WebCoreSupport.subproj/WebBridge.m:
3281 (-[WebBridge nameForUndoAction:]):
3282 renamed from setUndoActionNamePlaceholder, replaced arbitrary integers with enum values, and
3283 handled new "unspecified" case as a fallback
3285 2004-12-13 Richard Williamson <rjw@apple.com>
3287 Fixed <rdar://problem/3887767> LiveConnect doesn't propagate Java exceptions back to JavaScript (prevents security suite from running)
3291 * Plugins.subproj/WebJavaPlugIn.h:
3293 2004-12-13 John Sullivan <sullivan@apple.com>
3297 - fixed <rdar://problem/3744583> Safari can not quit when a webpage has a login sheet
3298 that can't be cancelled.
3300 The proper fix for this would be to change the class of the NSPanel in the nib file.
3301 But since this would require a localization change, I did a run-time hack instead.
3302 I'll file a bug about fixing this when we're out of localization freeze.
3304 * Panels.subproj/WebAuthenticationPanel.m:
3305 (-[WebAuthenticationPanel replacePanelWithSubclassHack]):
3306 new method, creates a new panel that is identical to the original one except that
3307 it's our subclass, and moves all the subviews of the original panel into the new one.
3308 (-[WebAuthenticationPanel loadNib]):
3309 call replacePanelWithSubclassHack
3310 (-[NonBlockingPanel _blocksActionWhenModal:]):
3311 only method of new NSPanel subclass; overrides this SPI to allow the user to quit
3312 when one of these panels/sheets is on-screen
3314 2004-12-10 Richard Williamson <rjw@apple.com>
3316 Fixed <rdar://problem/3898708> REGRESSION (8A314-8A317): World Clock's short hand not displayed (ImageIO problem with PDF?)
3317 Fixed <rdar://problem/3914012> use CG directly for pdf images not ImageIO
3319 Create a PDF document and draw that instead of using ImageIO to create a rasterized image.
3323 * WebCoreSupport.subproj/WebImageData.h:
3324 * WebCoreSupport.subproj/WebImageData.m:
3325 (-[WebImageData setIsPDF:]):
3326 (-[WebImageData isPDF]):
3327 (-[WebImageData dealloc]):
3328 (-[WebImageData decodeData:isComplete:callback:]):
3329 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
3330 (-[WebImageData size]):
3331 (-[WebImageData animate]):
3332 (-[WebImageData _createPDFWithData:]):
3333 (-[WebImageData _PDFDocumentRef]):
3334 (-[WebImageData _PDFDrawInContext:]):
3335 (-[WebImageData _PDFDrawFromRect:toRect:operation:alpha:flipped:context:]):
3336 * WebCoreSupport.subproj/WebImageRenderer.h:
3337 * WebCoreSupport.subproj/WebImageRenderer.m:
3338 (-[WebImageRenderer size]):
3339 (-[WebImageRenderer incrementalLoadWithBytes:length:complete:callback:]):
3340 (-[WebImageRenderer drawImageInRect:fromRect:compositeOperator:context:]):
3343 2004-12-10 John Sullivan <sullivan@apple.com>
3347 - fixed <rdar://problem/3855127> Error while printing w/o sheet, then window is left in a bad state,
3348 if there's no default printer set
3350 * WebView.subproj/WebHTMLView.m:
3351 (-[WebHTMLView beginDocument]):
3352 Our implementation of knowsPageRange puts the WebHTMLView into a special "printing mode". We must
3353 exit the "printing mode" to return to normal behavior. This is normally done in endDocument.
3354 However, it turns out that if there's an exception in [super beginDocument], then endDocument
3355 will not be called (lame-o AppKit API). So, we handle that case by catching the exception and
3356 exiting the "printing mode" in beginDocument when it occurs.
3358 2004-12-09 Richard Williamson <rjw@apple.com>
3360 Fixed <rdar://problem/3905789> Burn Disc image vibrates rapidly
3362 Restrict our support for animated images to GIF. We used to
3363 use presence of more than one image in a resource to determine
3364 if an image should be animated. This caused us to animate icns!
3365 If we ever support any other animated image formats we'll have
3370 * WebCoreSupport.subproj/WebImageData.h:
3371 * WebCoreSupport.subproj/WebImageData.m:
3372 (-[WebImageData shouldAnimate]):
3373 * WebCoreSupport.subproj/WebImageRenderer.m:
3374 (-[WebImageRenderer _startOrContinueAnimationIfNecessary]):
3376 2004-12-09 Richard Williamson <rjw@apple.com>
3378 Make WebPluginDatabase.h private (Dashboard needs SPI).
3380 * WebKit.pbproj/project.pbxproj:
3384 2004-12-09 Chris Blumenberg <cblu@apple.com>
3386 Workaround for this exception being raised during download:
3387 [WebDownload connection:willStopBufferingData:]: selector not recognized
3391 * Misc.subproj/WebDownload.m:
3392 (-[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.
3394 2004-12-08 Richard Williamson <rjw@apple.com>
3396 Fixed <rdar://problem/3911719> REGRESSION: Images no longer scale vertically
3397 Account for scaling correctly when taking into account progressively
3400 Also added implementation of repetition count for animated GIF images.
3401 Also replaced strings with new constants from CFImageProperties.h
3403 Also fixed possible problem with -(NSSize)size implementation,
3404 relevant to Panther only.
3408 * WebCoreSupport.subproj/WebImageData.m:
3409 (-[WebImageData _floatProperty:type:at:]):
3410 (-[WebImageData _frameDurationAt:]):
3411 (-[WebImageData _repetitionCount]):
3412 * WebCoreSupport.subproj/WebImageRenderer.m:
3413 (-[WebImageRenderer size]):
3415 2004-12-08 Chris Blumenberg <cblu@apple.com>
3417 Removed NPN wrappers since these no longer need to be defined to make the QT plug-in work
3418 since 3828925 has been fixed.
3422 * Plugins.subproj/WebNetscapePluginPackage.m:
3423 (-[WebNetscapePluginPackage load]): use under-bar symbols since non-under-bar wrappers have been removed
3424 * Plugins.subproj/npapi.m: removed NPN wrappers
3425 * WebKit.exp: removed symbols
3427 2004-12-08 Ken Kocienda <kocienda@apple.com>
3431 * WebView.subproj/WebHTMLView.m:
3432 (-[WebHTMLView drawRect:]): Work around for this bug:
3433 <rdar://problem/3908282> REGRESSION (Mail): No drag image dragging selected text in Blot and Mail
3434 The reason for the workaround is that this method is called explicitly from the code
3435 to generate a drag image, and at that time, getRectsBeingDrawn:count: will return a zero count.
3436 This code change uses the passed-in rect when the count is zero.
3438 2004-12-07 Administrator <cblu@apple.com>
3440 Support for fix for:
3441 <rdar://problem/3734309> Safari doesn't open folders in title bar menu with non-Roman names using Cmd+click
3445 * Misc.subproj/WebNSURLExtras.h:
3446 * Misc.subproj/WebNSURLExtras.m:
3447 (+[NSURL _web_URLWithUserTypedString:relativeToURL:]): renamed to take relativeToURL parameter
3448 (+[NSURL _web_URLWithUserTypedString:]): call _web_URLWithUserTypedString:relativeToURL: with nil for URL
3450 2004-12-07 Richard Williamson <rjw@apple.com>
3452 Fixed <rdar://problem/3905564> REGRESSION (Tiger); in History menu, pixel size appears but is wrong for standalone images in Safari.
3456 * WebCoreSupport.subproj/WebImageRenderer.m:
3457 (-[WebImageRenderer size]):
3459 2004-12-07 Richard Williamson <rjw@apple.com>
3461 Support threaded image decoding on machines w/ >= 2 CPUs.
3463 Reviewed by Maciej and Chris.
3465 * Misc.subproj/WebKitSystemBits.h:
3466 * Misc.subproj/WebKitSystemBits.m:
3467 (WebSystemMainMemory):
3469 * WebCoreSupport.subproj/WebImageData.h:
3470 * WebCoreSupport.subproj/WebImageData.m:
3471 (+[WebImageData initialize]):
3472 (-[WebImageData init]):
3473 (-[WebImageData _commonTermination]):
3474 (-[WebImageData dealloc]):
3475 (-[WebImageData _invalidateImages]):
3476 (-[WebImageData _imageSourceOptions]):
3477 (-[WebImageData imageAtIndex:]):
3478 (-[WebImageData propertiesAtIndex:]):
3479 (-[WebImageData _createImages]):
3480 (-[WebImageData decodeData:isComplete:callback:]):
3481 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
3483 (-[WebImageData tileInRect:fromPoint:context:]):
3484 (-[WebImageData isNull]):
3485 (-[WebImageData size]):
3486 (-[WebImageData _frameDurationAt:]):
3487 (-[WebImageData _frameDuration]):
3488 (+[WebImageData stopAnimationsInView:]):
3489 (-[WebImageData addAnimatingRenderer:inView:]):
3490 (-[WebImageData removeAnimatingRenderer:]):
3491 * WebCoreSupport.subproj/WebImageDecodeItem.h: Added.
3492 * WebCoreSupport.subproj/WebImageDecodeItem.m: Added.
3493 (+[WebImageDecodeItem decodeItemWithImage:data:isComplete:callback:]):
3494 (-[WebImageDecodeItem initWithImage:data:isComplete:callback:]):