1 2005-06-14 John Sullivan <sullivan@apple.com>
6 - fixed <rdar://problem/3766909> PDF viewing could use a zoom control other than the one in the context menu
8 * WebView.subproj/WebPDFView.h:
9 now implements protocol _web_WebDocumentTextSizing
10 * WebView.subproj/WebPDFView.m:
11 (-[WebPDFView _updateScalingToReflectTextSize]):
12 new method, sets the PDF scaling from the text size multiplier
13 (-[WebPDFView setDataSource:]):
14 call _updateScalingToReflectTextSize
15 (-[WebPDFView _web_textSizeMultiplierChanged]):
16 implementation of protocol _web_WebDocumentTextSizing, calls _updateScalingToReflectTextSize
18 2005-06-14 John Sullivan <sullivan@apple.com>
20 Reviewed by Dave Harrison.
22 * WebView.subproj/WebHTMLView.m:
23 (-[WebHTMLView _delayedEndPrintMode:]):
24 After discussing this with Dave, I made this method both more debugger-friendly with asserts for
25 the cases we don't think could ever happen, and more paranoid by handling these cases in deployment
28 2005-06-14 Darin Adler <darin@apple.com>
30 - fixed build for Xcode 2.1
32 * WebKit.pbproj/project.pbxproj: Use BUILT_PRODUCTS_DIR instead of SYMROOT to search for the
33 WebKitSystemInterface.h file. We could re-jigger this again later, but for now this is consistent
34 with both the .a file's location and where build-webkit puts the file.
36 2005-06-13 John Sullivan <sullivan@apple.com>
38 Reviewed by Dave Harrison and Maciej.
40 * WebView.subproj/WebHTMLView.m:
41 (-[WebHTMLView _endPrintMode]):
42 new method, extracted from identical code in beginDocument and endDocument. This method must be called
43 once to counterbalance the code called from knowsPageRange that turns on "printing mode".
44 (-[WebHTMLView _delayedEndPrintMode:]):
45 new method, called from "perform after delay". Checks whether the same print operation is still underway
46 and, if so, delays further. Otherwise calls _endPrintMode directly.
47 (-[WebHTMLView knowsPageRange:]):
48 after turning on "printing mode", queue up a delayed call to _delayedEndPrintMode:. If there's an early
49 error in the print mechanism such that beginDocument is never called, this will cleanly end "printing
50 mode" and make the webview usable again.
51 (-[WebHTMLView beginDocument]):
52 cancel any delayed call to _delayedEndPrintMode:. If we get this far along in printing, then we don't need
53 the failsafe call to _delayedEndPrintMode: that was set up in knowsPageRange:. Also, call extracted method.
54 (-[WebHTMLView endDocument]):
57 2005-06-13 Maciej Stachowiak <mjs@apple.com>
59 Reviewed by Chris Blumenberg and Adele.
61 - better fix for <rdar://problem/4142247> REGRESSION: List to browse widgets at Apple website failed. Closing tab afterwards caused Safari crash
62 http://bugzilla.opendarwin.org/show_bug.cgi?id=3445
64 With this change and the matching WebKit change we'll still stop loading the moment you click
65 a download link, but the unload event and detaching of event handlers will not happen early any more.
67 * WebView.subproj/WebDataSource.m:
68 (-[WebDataSource _stopLoadingInternal]): call stopLoading on bridge instead of closeURL.
69 * WebView.subproj/WebFrame.m:
70 (-[WebFrame _transitionToCommitted:]): Revert previous attempt at fix.
71 (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]): ditto
72 (-[WebFrame stopLoading]): ditto
74 2005-06-13 Chris Petersen <cpetersen@apple.com>
79 - fixed problems building deployment due to recent init change
81 * WebView.subproj/WebArchive.m: (-[WebArchive initWithCoder:]):
82 Put the [super init] call and check for nil outside the exception handler.
83 * WebView.subproj/WebResource.m: (-[WebResource initWithCoder:]): Ditto.
85 2005-06-12 Darin Adler <darin@apple.com>
89 - fixed <rdar://problem/4141569> REGRESSION (412+): printing fails on any page with images, and for standalone images
90 also <http://bugzilla.opendarwin.org/show_bug.cgi?id=3318>
92 * WebCoreSupport.subproj/WebImageData.m: Got rid of use of tabs instead of spaces throughout the file.
93 (-[WebImageData _checkSolidColor:]): Wrap use of NSGraphicsContext with an autorelease pool.
94 (-[WebImageData _fillSolidColorInRect:compositeOperation:context:]): Ditto.
95 (-[WebImageData tileInRect:fromPoint:context:]): Ditto.
96 (-[WebImageData _PDFDrawFromRect:toRect:operation:alpha:flipped:context:]): Ditto.
98 2005-06-12 Darin Adler <darin@apple.com>
100 Changes by Nick Zitzmann.
103 - fixed init methods that don't handle return values from the init methods they call
105 * WebView.subproj/WebArchive.m:
106 (-[WebArchive init]): Use value returned by init, check it for nil too.
107 (-[WebArchive initWithMainResource:subresources:subframeArchives:]): Ditto.
108 (-[WebArchive _initWithPropertyList:]): Ditto.
109 (-[WebArchive initWithCoder:]): Ditto.
110 * WebView.subproj/WebClipView.m:
111 (-[WebClipView initWithFrame:]): Ditto.
112 * WebView.subproj/WebDebugDOMNode.m:
113 (-[WebDebugDOMNode initWithName:value:source:children:]): Ditto.
114 * WebView.subproj/WebFrame.m:
115 (-[WebFormState initWithForm:values:sourceFrame:]): Ditto.
116 (-[WebFrame initWithName:webFrameView:webView:]): Ditto.
117 * WebView.subproj/WebFrameView.m:
118 (-[WebFrameView initWithFrame:]): Ditto.
119 * WebView.subproj/WebHTMLRepresentation.m:
120 (-[WebHTMLRepresentation init]): Ditto.
121 * WebView.subproj/WebHTMLView.m:
122 (-[WebHTMLView initWithFrame:]): Ditto.
123 (-[WebTextCompleteController initWithHTMLView:]): Ditto.
124 * WebView.subproj/WebImageView.m:
125 (-[WebImageView initWithFrame:]): Ditto.
126 * WebView.subproj/WebPreferences.m:
127 (-[WebPreferences initWithIdentifier:]): Ditto.
128 * WebView.subproj/WebRenderNode.m:
129 (-[WebRenderNode initWithName:position:rect:view:children:]): Ditto.
130 * WebView.subproj/WebResource.m:
131 (-[WebResource init]): Ditto.
132 (-[WebResource initWithCoder:]): Ditto.
133 * WebView.subproj/WebView.m:
134 (-[WebViewPrivate init]): Call super init.
135 (-[_WebSafeForwarder initWithTarget:defaultTarget:templateClass:]): Use value returned by init, check it for nil too.
136 (-[WebView initWithFrame:]): Ditto.
138 2005-06-12 Maciej Stachowiak <mjs@apple.com>
140 Reviewed by Chris Blumenberg.
142 - fixed <rdar://problem/4142247> REGRESSION: List to browse widgets at Apple website failed. Closing tab afterwards caused Safari crash
143 http://bugzilla.opendarwin.org/show_bug.cgi?id=3445
145 * WebView.subproj/WebFrame.m:
146 (-[WebFrame _transitionToCommitted:]): Stop loading the non-provisional data
147 source before swapping in the provisional.
148 (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]): Stop only
149 the provisional load here, we would not want to stop loading if this navigation
150 later turns into a download or is cancelled before being committed.
151 (-[WebFrame stopLoading]): Factored a bit.
152 (-[WebFrame _cancelProvisionalLoad]): New method to stop only provisional load,
153 and cancel any pending policy deicions.
154 (-[WebFrame _stopNonProvisionalLoadOnly]): New mthod that stops only the main
157 2005-06-10 John Sullivan <sullivan@apple.com>
159 reviewed by Dave Harrison (first & second drafts) and Darin Adler (third draft)
161 - WebKit part of fix for
162 <rdar://problem/4145214> REGRESSION (412+): Can't drag URLs from the location bar
164 * Misc.subproj/WebNSPasteboardExtras.m:
165 (+[NSPasteboard initialize]):
166 Reinstate variation of old code that uses CreatePasteboardFlavorTypeName to set up our new pasteboard types.
167 The newfangled way didn't work.
169 2005-06-07 Darin Adler <darin@apple.com>
171 Change by Mark Rowe <opendarwin.org@bdash.net.nz>.
174 - fixed the WebKit half of build failure with spaces in the path
175 http://bugzilla.opendarwin.org/show_bug.cgi?id=3291
177 * WebKit.pbproj/project.pbxproj: Quote DERIVED_FILE_DIR when it is substituted
178 into FRAMEWORK_SEARCH_PATHS, and SYMROOT when into HEADER_SEARCH_PATHS.
180 2005-06-06 Darin Adler <darin@apple.com>
182 * Info.plist: Bumped version to 412+. For some reason it was set to 312.1!
184 2005-06-05 Darin Adler <darin@apple.com>
188 - fixed build that I broke with the license change (some includes of WebException were still around)
190 * WebKit.pbproj/project.pbxproj: Removed references to WebException.h/m.
191 * WebView.subproj/WebDataSource.m: Removed include of WebException.h.
192 * WebView.subproj/WebHTMLView.m: Ditto.
193 * WebView.subproj/WebView.m: Ditto.
195 - fixed build under gcc 4.0 (some code moved here from Foundation had warnings)
197 * Misc.subproj/WebNSDataExtras.m:
198 (-[NSString _web_capitalizeRFC822HeaderFieldName]): Use char instead of UInt8.
199 (-[NSData _webkit_guessedMIMEType]): Use char instead of UInt8, and take out now-
202 2005-06-05 Darin Adler <darin@apple.com>
204 - added appropriate license headers to most files and updated copyright to reflect publication dates
207 * <lots of files>: Added license header.
209 * WebKit.pbproj/project.pbxproj: Removed references to NP_objc.h.
211 * API-Issues.rtf: Removed.
212 * Misc.subproj/WebException.h: Removed.
213 * Misc.subproj/WebException.m: Removed.
214 * Plugins.subproj/NP_objc.h: Removed.
216 2005-06-01 Darin Adler <darin@apple.com>
218 Reviewed by John Sullivan.
220 - WebKit part of fix for <rdar://problem/3166090> add IE JavaScript extension window.showModalDialog
222 * WebCoreSupport.subproj/WebBridge.m:
223 (-[WebBridge createModalDialogWithURL:]): Added. Calls the UI delegate, falling back to the generic
224 "create WebView" method.
225 (-[WebBridge canRunModal]): Added. Checks the UI delegate to see if it implements runModal.
226 (-[WebBridge canRunModalNow]): Added. Checks the "inConnectionCallback" field so we can prevent
227 deadlock since we can't do any I/O while inside a connection callback until this aspect of NSURLConnection
229 (-[WebBridge runModal]): Added. Sets "defersCallbacks" on all other web views in the group, then
230 calls runModal on the UI delegate.
232 * WebView.subproj/WebBaseResourceHandleDelegate.h: Added inConnectionCallback class method.
233 * WebView.subproj/WebBaseResourceHandleDelegate.m:
234 (-[WebBaseResourceHandleDelegate connection:willSendRequest:redirectResponse:]): Bump count and then
235 decrement count so we can tell if we are in a callback.
236 (-[WebBaseResourceHandleDelegate connection:didReceiveAuthenticationChallenge:]): Ditto.
237 (-[WebBaseResourceHandleDelegate connection:didCancelAuthenticationChallenge:]): Ditto.
238 (-[WebBaseResourceHandleDelegate connection:didReceiveResponse:]): Ditto.
239 (-[WebBaseResourceHandleDelegate connection:didReceiveData:lengthReceived:]): Ditto.
240 (-[WebBaseResourceHandleDelegate connection:willStopBufferingData:]): Ditto.
241 (-[WebBaseResourceHandleDelegate connectionDidFinishLoading:]): Ditto.
242 (-[WebBaseResourceHandleDelegate connection:didFailWithError:]): Ditto.
243 (-[WebBaseResourceHandleDelegate connection:willCacheResponse:]): Ditto.
244 (+[WebBaseResourceHandleDelegate inConnectionCallback]): Added. Return YES if count is not 0.
246 * WebView.subproj/WebMainResourceClient.m:
247 (-[WebMainResourceClient receivedError:]): Changed to use the method without the connection: parameter
248 in the base class, since we no longer are overriding the connection: version.
249 (-[WebMainResourceClient willSendRequest:redirectResponse:]): Change to override the version without
250 the connection prefix/parameter; now only the base class overrides the actual connection delegate methods.
251 (-[WebMainResourceClient continueAfterContentPolicy:response:]): Ditto.
252 (-[WebMainResourceClient didReceiveResponse:]): Ditto.
253 (-[WebMainResourceClient didReceiveData:lengthReceived:]): Ditto.
254 (-[WebMainResourceClient didFinishLoading]): Ditto.
255 (-[WebMainResourceClient didFailWithError:]): Ditto.
256 (-[WebMainResourceClient loadWithRequestNow:]): Call the method without the connection parameter.
258 * WebView.subproj/WebUIDelegatePrivate.h: Added new SPI here that WebBrowser implements.
260 2005-05-26 Darin Adler <darin@apple.com>
264 - fix build failure from when I removed WebCoreUnicode
266 * WebCoreSupport.subproj/WebTextRenderer.m: Removed import of WebUnicode.h that I missed.
267 (-[WebTextRenderer _convertUnicodeCharacters:length:toGlyphs:]): Switch from our own macros
268 to the ICU macros for surrogate pairs.
269 (widthForNextCharacter): Ditto.
271 2005-05-26 David Harrison <harrison@apple.com>
273 <rdar://problem/4120518> Mail: control-T in an empty message crashes mail
275 * WebCoreSupport.subproj/WebBridge.m:
276 (-[WebBridge issueTransposeCommand]):
277 New, to support transpose in JS.
279 2005-05-26 Darin Adler <darin@apple.com>
281 Reviewed by Richard and Dave Harrison.
283 - eliminate WebCoreUnicode and use ICU directly instead
285 * Misc.subproj/WebKitNSStringExtras.m: (canUseFastRenderer): Use u_charDirection directly.
286 * WebCoreSupport.subproj/WebTextRenderer.m: Removed import of <WebCore/WebCoreUnicode.h>.
287 * WebView.subproj/WebHTMLView.m: (+[WebHTMLView initialize]): Removed call to WebKitInitializeUnicode.
289 * Misc.subproj/WebUnicode.h: Removed.
290 * Misc.subproj/WebUnicode.m: Removed.
291 * Misc.subproj/WebUnicodeTables.m: Removed.
293 * WebKit.pbproj/project.pbxproj: Removed files.
295 2005-05-24 Richard Williamson <rjw@apple.com>
297 Fixed <rdar://problem/4097289> -[WebView elementAtPoint:] failing when WebView is nested and offset
299 Code to determine the correct frame under the window point was
300 converting the point incorrectly.
304 * WebView.subproj/WebView.m:
305 (-[WebView _frameViewAtWindowPoint:]):
307 2005-05-23 John Sullivan <sullivan@apple.com>
311 - WebKit part of <rdar://problem/4125783> WebKit needs a way to control whether textareas are resizable
313 * WebView.subproj/WebPreferencesPrivate.h:
314 added private-for-now getter and setter for new preference
315 * WebView.subproj/WebPreferenceKeysPrivate.h:
316 added private preference key controlling whether textareas are resizable
317 * WebView.subproj/WebPreferences.m:
318 (+[WebPreferences initialize]):
319 initial value of new preference is NO, so other clients' behavior doesn't change
320 (-[WebPreferences textAreasAreResizable]):
322 (-[WebPreferences setTextAreasAreResizable:]):
325 * WebView.subproj/WebView.m:
326 (-[WebView _updateWebCoreSettingsFromPreferences:]):
327 update this new setting in WebCore
329 * English.lproj/StringsNotToBeLocalized.txt:
330 updated for these changes
332 2005-05-23 Chris Blumenberg <cblu@apple.com>
334 Changed type for identifier parameter in WebResourceLoadDelegate-related calls to id from NSString.
338 * WebCoreSupport.subproj/WebBridge.m:
339 (-[WebBridge objectLoadedFromCacheWithURL:response:data:]):
340 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
341 * WebView.subproj/WebFrame.m:
342 (-[WebFrame _opened]):
343 (-[WebFrame _requestFromDelegateForRequest:identifier:error:]):
344 (-[WebFrame _sendRemainingDelegateMessagesWithIdentifier:response:length:error:]):
345 (-[WebFrame _saveResourceAndSendRemainingDelegateMessagesWithRequest:identifier:response:data:error:]):
346 * WebView.subproj/WebFrameInternal.h:
348 2005-05-20 Chris Blumenberg <cblu@apple.com>
350 Fixed: <rdar://problem/4098786> sync. XMLHttpRequest works w/o AllowNetworkAccess key because load delegate is not consulted
352 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.
354 Reviewed by sullivan.
356 * WebCoreSupport.subproj/WebBridge.m:
357 (-[WebBridge objectLoadedFromCacheWithURL:response:data:]): call [WebFrame _requestFromDelegateForRequest:identifier:error:] then
358 [WebFrame _saveResourceAndSendRemainingDelegateMessagesWithRequest:identifier:response:data:error:] so synthetic resource load delegate
359 methods are called and the data is saved as a WebResource for resources in the WebCore cache.
361 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]): call [WebFrame _requestFromDelegateForRequest:identifier:error:],
362 respect its result, do the load and then call [WebFrame _saveResourceAndSendRemainingDelegateMessagesWithRequest:identifier:response:data:error:]
363 for synchronous loads
365 * WebView.subproj/WebFrame.m:
366 (-[WebFrame _opened]): call [WebFrame _requestFromDelegateForRequest:identifier:error:] then
367 [WebFrame _sendRemainingDelegateMessagesWithIdentifier:response:length:error:] so synthetic resource load delegate methods are called
368 for subresrources in the page cache
370 (-[WebFrame _requestFromDelegateForRequest:identifier:error:]): new, was part of the removed _sendResourceLoadDelegateMessagesForURL:::
371 This method calls identifierForInitialRequest and willSendRequest.
373 (-[WebFrame _sendRemainingDelegateMessagesWithIdentifier:response:length:error:]): new, was part of the removed _sendResourceLoadDelegateMessagesForURL:::
374 This method calls the remaining resource load delegate messages.
376 (-[WebFrame _saveResourceAndSendRemainingDelegateMessagesWithRequest:identifier:response:data:error:]): new, saves the resource and calls
377 [WebFrame _sendRemainingDelegateMessagesWithIdentifier:response:length:error:]
379 * WebView.subproj/WebFrameInternal.h:
381 2005-05-17 Chris Blumenberg <cblu@apple.com>
383 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
387 * WebCoreSupport.subproj/WebBridge.m:
388 (-[WebBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]): pass the passed referrer to canLoadURL::: not [self referrer]
389 (-[WebBridge postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]): ditto
390 * WebView.subproj/WebTextView.m:
391 (-[WebTextView clickedOnLink:atIndex:]): call the loadURL bridge method so that security checks are made, command/option clicks work, policy delegate is consulted etc.
393 2005-05-17 Chris Blumenberg <cblu@apple.com>
395 Fixed: <rdar://problem/4120255> web archives on remote servers can be viewed directly (with major security issues); should download instead
399 * WebView.subproj/WebBaseResourceHandleDelegate.h:
400 * WebView.subproj/WebMainResourceClient.m:
401 (-[WebMainResourceClient continueAfterContentPolicy:response:]): if the WebKit client has chosen to "use" a remote web archive, stop the load with an error
403 2005-05-16 Darin Adler <darin@apple.com>
405 - attempt to get things building under "Saffron" development tools
407 * WebKit.pbproj/project.pbxproj: Use BUILT_PRODUCTS_DIR instead of SYMROOT.
409 2005-05-13 John Sullivan <sullivan@apple.com>
413 - fixed <rdar://problem/4093306> Safari crashes if Esc key is held down during series
414 of authentication sheets
416 * Panels.subproj/WebAuthenticationPanel.m:
417 (-[WebAuthenticationPanel cancel:]):
418 retain and autorelease self. This is a workaround for an AppKit key-handling issue, which I wrote up as:
419 <rdar://problem/4118422> Key-down events can be sent to a closed window if a key is kept pressed down
421 2005-05-12 John Sullivan <sullivan@apple.com>
425 - rolled in changes from experimental-ui-branch to support resizable textareas
426 and find-as-you-type and confirming unsubmitted form changes. The files/functions
427 modified are listed just below. After that are the ChangeLog comments from the branch.
429 * WebCoreSupport.subproj/WebBridge.m:
430 (-[WebBridge textDidChange:]):
431 * WebView.subproj/WebFormDelegate.h:
432 * WebView.subproj/WebFormDelegate.m:
433 (-[WebFormDelegate textDidChange:inFrame:]):
434 * WebView.subproj/WebHTMLView.m:
435 (-[WebHTMLView maintainsInactiveSelection]):
436 (-[WebHTMLView searchFor:direction:caseSensitive:wrap:]):
437 (-[WebHTMLView _searchFor:direction:caseSensitive:wrap:findInSelection:]):
438 * WebView.subproj/WebView.m:
439 (-[WebView _searchFor:direction:caseSensitive:wrap:findInSelection:]):
440 (-[WebView searchFor:direction:caseSensitive:wrap:]):
441 (-[WebView makeTextStandardSize:]):
442 (-[WebView maintainsInactiveSelection]):
443 * WebView.subproj/WebViewPrivate.h:
445 2005-04-18 John Sullivan <sullivan@apple.com>
447 WebKit support for notifying a form delegate when a
448 textarea's contents have changed (as opposed to a
449 textfield, which was already handled).
453 * WebView.subproj/WebFormDelegate.h:
454 * WebView.subproj/WebFormDelegate.m:
455 (-[WebFormDelegate textDidChange:inFrame:]):
456 new form delegate method
458 * WebCoreSupport.subproj/WebBridge.m:
459 (-[WebBridge textDidChange:]):
460 new method, calls through to form delegate
462 2005-04-11 John Sullivan <sullivan@apple.com>
464 Fixed inability to wrap around in Find in Page
466 * WebView.subproj/WebView.m:
467 (-[WebView _searchFor:direction:caseSensitive:wrap:findInSelection:]):
468 changed wrapFlag from NO to YES on two lines (copy/paste error)
470 2005-04-07 John Sullivan <sullivan@apple.com>
472 WebKit support for find-as-you-type. Needed an additional parameter on
473 a method from WebDocumentSearching protocol. Since that's a public protocol,
474 I couldn't just add the parameter. For now I hacked it with an undeclared
475 internal method that's discovered via respondsToSelector. Probably the right
476 long-term approach is to deprecate the WebDocumentSearching protocol and introduce
477 a replacement that has a more flexible set of parameters for possible future
480 Reviewed by Dave Hyatt.
482 * WebView.subproj/WebHTMLView.m:
483 (-[WebHTMLView searchFor:direction:caseSensitive:wrap:]):
484 now calls new one-more-parameter version passing NO for new parameter to match old behavior
485 (-[WebHTMLView _searchFor:direction:caseSensitive:wrap:findInSelection:]):
486 new method, adds findInSelection parameter and passes it through to bridge
488 * WebView.subproj/WebView.m:
489 (-[WebView searchFor:direction:caseSensitive:wrap:]):
490 now calls new one-more-parameter version passing NO for new parameter to match old behavior
491 (-[WebView _searchFor:direction:caseSensitive:wrap:findInSelection:]):
492 new method, adds findInSelection parameter and passes it through
494 2005-04-07 John Sullivan <sullivan@apple.com>
496 WebKit support to allow clients to control whether the selection is still
497 drawn when the first responder is elsewhere. Formerly this was hardwired
498 to be true only when -[WebView isEditable] was true.
502 * WebView.subproj/WebHTMLView.m:
503 (-[WebHTMLView maintainsInactiveSelection]):
504 check [WebView maintainsInactiveSelection] rather than just [WebView isEditable]
506 * WebView.subproj/WebViewPrivate.h:
507 * WebView.subproj/WebView.m:
508 (-[WebView maintainsInactiveSelection]):
509 new method for clients to override, returns -[self isEditable]
512 2005-05-10 John Sullivan <sullivan@apple.com>
516 - WebKit support for <rdar://problem/3795701> Menu item/keyboard shortcut to
517 restore text zoom to normal
519 * WebView.subproj/WebView.m:
520 (-[WebView validateUserInterfaceItem:]):
521 validate makeTextStandardSize by calling canMakeTextStandardSize
522 (-[WebView canMakeTextStandardSize]):
523 new method, returns YES unless text size multiplier is currently 1
524 (-[WebView makeTextStandardSize:]):
525 new method, sets text size multiplier to 1
527 * WebView.subproj/WebViewPrivate.h:
528 add makeTextStandardSize: and canMakeTextStandardSize to pending public category
530 2005-05-10 John Sullivan <sullivan@apple.com>
534 - fixed <rdar://problem/4067981> Mail places RTF flavor before RTFD flavor when dragging
535 mixed image/text content.
537 * WebView.subproj/WebHTMLView.m:
538 (+[WebHTMLView _selectionPasteboardTypes]):
539 put RTFD type before RTF type in array of types to declare
541 2005-05-09 Chris Blumenberg <cblu@apple.com>
543 Turned assertion into error message to prevent crash when encountering this bug:
544 <rdar://problem/4067625> connection:willCacheResponse: is called inside of [NSURLConnection initWithRequest:delegate:]
546 * WebView.subproj/WebBaseResourceHandleDelegate.h:
547 * WebView.subproj/WebBaseResourceHandleDelegate.m:
548 (-[WebBaseResourceHandleDelegate loadWithRequest:]): set flag to track when we're initializing the connection
549 (-[WebBaseResourceHandleDelegate connection:willCacheResponse:]): log error
551 2005-05-09 Darin Adler <darin@apple.com>
553 * Makefile.am: Don't set up PBXIntermediatesDirectory explicitly;
554 Not needed to make builds work, spews undesirable error messages too.
556 2005-05-06 Darin Adler <darin@apple.com>
560 - make building multiple trees with make work better
562 * Makefile.am: Set up Xcode build directory before invoking xcodebuild.
564 2005-05-04 Darin Adler <darin@apple.com>
566 Reviewed by Dave Hyatt.
570 * WebKit.pbproj/project.pbxproj: Set deployment target to 10.3 in the build styles.
571 When built without a build style (by Apple B&I) we want to get the target from the
572 environment. But when built with a build style (by Safari engineers and others), we want
573 to use 10.3. Because our deployment target was not set, we ran into this bug:
575 <rdar://problem/4108717> CTFontGetGlyphWithName doesn't work with some strings
577 * Makefile.am: Took out extra parameters that make command-line building different from
578 Xcode building. Now that this is fixed, you should not get a full rebuild if you switch
579 from command line to Xcode or back.
581 2005-05-04 Chris Blumenberg <cblu@apple.com>
584 <rdar://problem/4078417> REGRESSION (125-412): MLB gameday page doesn't update (Flash)
585 <rdar://problem/4072280> XMLHttpRequest calls onReadyStateChange callback with bogus status value
589 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.
591 * WebCoreSupport.subproj/WebBridge.m:
592 (-[WebBridge objectLoadedFromCacheWithURL:response:data:]): call new [WebResource _initWithData:URL:response:]
593 * WebView.subproj/WebBaseResourceHandleDelegate.m:
594 (-[WebBaseResourceHandleDelegate _canUseResourceWithResponse:]): new, checks response cache directives
595 (-[WebBaseResourceHandleDelegate loadWithRequest:]): call _canUseResourceWithResponse:
596 (-[WebBaseResourceHandleDelegate saveResource]): call new [WebResource _initWithData:URL:response:]
597 * WebView.subproj/WebResource.m:
598 (-[WebResourcePrivate dealloc]):
599 (-[WebResource initWithData:URL:MIMEType:textEncodingName:frameName:]): call renamed _initWithData:URL:MIMEType:textEncodingName:frameName:response:copyData:
600 (-[WebResource initWithCoder:]): decode the NSURLReponse
601 (-[WebResource encodeWithCoder:]): encode the NSURLReponse
602 (-[WebResource _initWithData:URL:MIMEType:textEncodingName:frameName:response:copyData:]): take the NSURLReponse
603 (-[WebResource _initWithData:URL:response:]): new
604 (-[WebResource _initWithPropertyList:]): decode the NSURLReponse
605 (-[WebResource _propertyListRepresentation]): encode the NSURLReponse
606 (-[WebResource _response]): return ivar if we have one
607 * WebView.subproj/WebResourcePrivate.h:
609 2005-05-03 David Hyatt <hyatt@apple.com>
611 Fix object element support so that fallback content works. With this change Safari passes the Acid2 test.
615 * WebCoreSupport.subproj/WebBridge.m:
616 (-[WebBridge determineObjectFromMIMEType:URL:]):
617 * WebView.subproj/WebDataSource.m:
618 (-[WebDataSource _receivedMainResourceError:complete:]):
619 * WebView.subproj/WebMainResourceClient.m:
620 (-[WebMainResourceClient continueAfterContentPolicy:response:]):
622 2005-05-03 Darin Adler <darin@apple.com>
624 * WebView.subproj/WebUIDelegate.h: Fixed incorrect comment.
627 2005-05-01 Darin Adler <darin@apple.com>
629 - move to Xcode native targets and stop checking in generated files
631 * WebKit.pbproj/project.pbxproj: Updated to use native targets and generate all the generated
632 files, so we don't have to check them in any more.
633 * Info.plist: Added. Native targets use a separate file for this.
635 * Plugins.subproj/npapi.m: Fixed import statement to get npapi.h from <WebKit/> rather than current directory.
637 * Makefile.am: Removed timestamp cleaning rules since we don't use it any more.
639 * .cvsignore: Removed various timestamp files.
641 * DOM.subproj/DOM-compat.h: Removed.
642 * DOM.subproj/DOM.h: Removed.
643 * DOM.subproj/DOMCSS.h: Removed.
644 * DOM.subproj/DOMCore.h: Removed.
645 * DOM.subproj/DOMEvents.h: Removed.
646 * DOM.subproj/DOMExtensions.h: Removed.
647 * DOM.subproj/DOMHTML.h: Removed.
648 * DOM.subproj/DOMPrivate.h: Removed.
649 * DOM.subproj/DOMRange.h: Removed.
650 * DOM.subproj/DOMStylesheets.h: Removed.
651 * DOM.subproj/DOMTraversal.h: Removed.
652 * DOM.subproj/DOMViews.h: Removed.
653 * Plugins.subproj/WebScriptObject.h: Removed.
654 * Plugins.subproj/npapi.h: Removed.
655 * Plugins.subproj/npruntime.h: Removed.
656 * copy-webcore-files-to-webkit: Removed.
657 * embed-frameworks.sh: Removed.
658 * force-clean-timestamp: Removed.
660 2005-04-28 Darin Adler <darin@apple.com>
664 - fixed problems preventing us from compiling with gcc 4.0
666 * WebKit.pbproj/project.pbxproj: Removed -fobjc-exceptions because I can't figure out an easy
667 way to pass it only when compiling Objective-C/C++. Removed -Wmissing-prototypes from
668 WARNING_CPLUSPLUSFLAGS since it's now a C-only warning.
670 * History.subproj/WebHistoryItem.m: (-[WebHistoryItem pageCache]): Changed return type
671 to match the declaration.
672 * WebCoreSupport.subproj/WebBridge.m: (-[WebBridge _retrieveKeyboardUIModeFromPreferences:]):
673 Fixed a BOOL that should have been a Boolean.
674 * WebCoreSupport.subproj/WebTextRenderer.m: Removed redundant copy of ROUND_TO_INT, also in
676 (-[WebTextRenderer _computeWidthForSpace]): Had to add cast because of difference in type of
677 ROUND_TO_INT vs. CEIL_TO_INT.
678 (pathFromFont): Added a cast to convert UInt8 * to char *.
679 * WebView.subproj/WebFrameView.m:
680 (-[WebFrameView _setDocumentView:]): Fixed parameter type to match the declaration.
681 (-[WebFrameView documentView]): Fixed return type to match the declaration.
682 * WebView.subproj/WebHTMLView.m:
683 (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
684 Initialized a variable to quiet an incorrect gcc 4.0 uninitialized variable warning.
685 (-[WebHTMLView deleteToMark:]): Switched from @try style to NS_DURING style of exception handler
686 because we can't pass -fobjc-exceptions just to Objective-C at the moment (see above).
687 (-[WebHTMLView selectToMark:]): Ditto.
688 (-[WebHTMLView swapWithMark:]): Ditto.
690 2005-04-27 John Sullivan <sullivan@apple.com>
692 Reviewed by Dave Harrison.
694 - fixed <rdar://problem/3547489> pop-up window blocking preference and
695 menu item can easily get out of sync.
697 * WebView.subproj/WebPreferences.m:
698 (-[WebPreferences _setStringValue:forKey:]):
699 save local value before setting value in NSUserDefaults, so clients reacting to NSUserDefaults
700 change notification but calling back on WebPreferences API will see the updated value.
701 (-[WebPreferences _setIntegerValue:forKey:]):
703 (-[WebPreferences _setBoolValue:forKey:]):
706 2005-04-26 Richard Williamson <rjw@apple.com>
708 Fixed <rdar://problem/4098713> Scripting API is incompatible with Mozilla
712 * Plugins.subproj/npfunctions.h:
713 * Plugins.subproj/npruntime.h:
715 2005-04-26 Darin Adler <darin@apple.com>
719 - fixed <rdar://problem/3655817> please add support for mouse wheel events and the onmousewheel handler
721 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView scrollWheel:]): Call sendScrollWheelEvent: method
722 instead of the old scrollOverflowWithScrollWheelEvent: (just a name change).
724 2005-04-18 Darin Adler <darin@apple.com>
728 - fixed <rdar://problem/4092614> REGRESSION (Tiger): progressively loaded background images "scroll around" instead of just appearing
730 * WebCoreSupport.subproj/WebImageData.m:
731 (-[WebImageData _imageSourceOptions]): Moved a global inside this function, since it's only used here.
732 (-[WebImageData _cacheImages:allImages:]): Fixed a sizeof that was getting the size of the wrong thing.
733 (-[WebImageData _isSizeAvailable]): Used calloc in a more consistent way.
734 (drawPattern): Removed an unneeded cast.
735 (-[WebImageData tileInRect:fromPoint:context:]): Here's the actual bug fix. Don't use the image size
736 when deciding whether the image needs to be tiled as a pattern nor when creating the pattern: in both
737 cases, use the tile size. The old way was wrong, and the new way works perfectly. Also removed uneeded
738 error message when the image is not yet loaded enough to create a CGImageRef for it -- it's fine to
739 draw nothing in that case.
741 2005-04-14 John Sullivan <sullivan@apple.com>
745 * WebView.subproj/WebBaseResourceHandleDelegate.m:
746 (-[WebBaseResourceHandleDelegate connection:willCacheResponse:]):
747 Beefed up assertion that's been bugging me and Chris to include
748 the two troublemaking values.
750 2005-04-05 David Hyatt <hyatt@apple.com>
752 Fix for 4077106, wheel scroll amount smaller in Tiger. All along wheeling should have been 4x the default
753 line height of 10 (just as arrow keys did). Scroll arrows should have done this too for scroll views (they did
754 already for overflow sections). This patch puts the override into the scrollview itself, and removes the
755 multipliers in the private frame methods.
759 * WebView.subproj/WebFrameView.m:
760 (-[WebFrameView _verticalKeyboardScrollDistance]):
761 (-[WebFrameView initWithFrame:]):
762 (-[WebFrameView _horizontalKeyboardScrollDistance]):
766 2005-03-31 Chris Blumenberg <cblu@apple.com>
768 Fixed: <rdar://problem/4070729> REGRESSION (125-311, Panther-only?): Safari crashes while reloading "My eBay" page
772 * WebView.subproj/WebBaseResourceHandleDelegate.m:
773 (-[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
779 2005-03-23 Richard Williamson <rjw@apple.com>
781 Use Patti Yeh's hack to determine the appropriate rectangle
782 to place the "associated word" window.
783 If there is no marked text firstRectForCharacterRange: will
784 use the selected range to determine the returned rectangle,
785 ignoring the input range. This is the fix from
786 4029491 that I previously backed out.
790 * WebView.subproj/WebHTMLView.m:
791 (-[WebHTMLView firstRectForCharacterRange:]):
793 2005-03-23 Richard Williamson <rjw@apple.com>
795 Fixed <rdar://problem/4062490> REGRESSION (WebKit-408): no subresources reported in Activity window after going back at hrweb.apple.com
797 Stop collecting subresource responses after the document
798 had loaded, not after it has been opened.
802 * WebView.subproj/WebFrame.m:
803 (-[WebFrame _setState:]):
804 (-[WebFrame _opened]):
806 2005-03-21 Maciej Stachowiak <mjs@apple.com>
810 <rdar://problem/4051145> The QuickTime Cocoa plug-in needs an SPI that it can call to check for URL policy
812 * Plugins.subproj/WebPluginContainerCheck.h: Added.
813 * Plugins.subproj/WebPluginContainerCheck.m: Added this new helper class to encapsulate
814 an async plugin navigation check.
815 (+[WebPluginContainerCheck checkWithRequest:target:resultObject:selector:controller:]): Convenience allocator that gives autoreleased value.
816 (-[WebPluginContainerCheck initWithRequest:target:resultObject:selector:controller:]): Initializer.
817 (-[WebPluginContainerCheck finalize]): Just assert that we're done, it would
818 be bad to deallocate this object while request is still outstanding.
819 (-[WebPluginContainerCheck dealloc]): Ditto.
820 (-[WebPluginContainerCheck _continueWithPolicy:]): Method to continue after async
822 (-[WebPluginContainerCheck _isDisallowedFileLoad]): Do "file: URL from remote content"
824 (-[WebPluginContainerCheck _actionInformationWithURL:]): Helper to make action
826 (-[WebPluginContainerCheck _askPolicyDelegate]): Call policy delegate to let
827 the app decide if this load is allowed.
828 (-[WebPluginContainerCheck start]): Start the check.
829 (-[WebPluginContainerCheck cancel]): Cancel a check in progress.
830 * Plugins.subproj/WebPluginController.h:
831 * Plugins.subproj/WebPluginController.m:
832 (-[WebPluginController initWithDocumentView:]): Initialize new _checksInProgress field.
833 (-[WebPluginController _webPluginContainerCancelCheckIfAllowedToLoadRequest:]): Implement
835 (-[WebPluginController _cancelOutstandingChecks]): New helper to make sure to cancel
836 all outstanding requests when destroying all plugins.
837 (-[WebPluginController destroyAllPlugins]): Call above helper.
838 (-[WebPluginController _webPluginContainerCheckIfAllowedToLoadRequest:inFrame:resultObject:selector:]): Implement this new plug-in SPI method.
839 (-[WebPluginController bridge]): New helper method.
840 (-[WebPluginController webView]): New helper method.
841 * WebView.subproj/WebPolicyDelegatePrivate.h: Add new navigation
842 type WebNavigationTypePlugInRequest.
843 * WebKit.pbproj/project.pbxproj: Add new files.
844 * WebView.subproj/WebDefaultPolicyDelegate.m:
845 (-[WebDefaultPolicyDelegate webView:decidePolicyForNavigationAction:request:frame:decisionListener:]): Don't open externally on a plug-in request.
847 2005-03-23 Richard Williamson <rjw@apple.com>
849 Fixed <rdar://problem/4053515> REGRESSION (Mail): Kotoeri input method reconversion does not work in WebViews
851 We now use actual document NSRanges to represent both marked text
852 ranges and selection ranges.
854 Reviewed by Ken Kocienda.
856 * WebView.subproj/WebHTMLView.m:
857 (-[WebHTMLView validAttributesForMarkedText]):
858 (-[WebHTMLView firstRectForCharacterRange:]):
859 (-[WebHTMLView selectedRange]):
860 (-[WebHTMLView markedRange]):
861 (-[WebHTMLView _selectMarkedText]):
862 (-[WebHTMLView setMarkedText:selectedRange:]):
866 2005-03-22 Darin Adler <darin@apple.com>
868 * English.lproj/StringsNotToBeLocalized.txt: Updated for recent changes.
872 2005-03-20 Maciej Stachowiak <mjs@apple.com>
876 <rdar://problem/4060020> Add stub version of security SPI for QuickTime plug-in so QuickTime team has something to compile and link against
878 * Plugins.subproj/WebPluginContainerPrivate.h: Added.
879 * Plugins.subproj/WebPluginController.m:
880 (-[WebPluginController _webPluginContainerCheckIfAllowedToLoadRequest:inFrame:resultObject:selector:]):
881 (-[WebPluginController _webPluginContainerCancelCheckIfAllowedToLoadRequest:]):
882 * WebKit.pbproj/project.pbxproj:
884 2005-03-19 David Harrison <harrison@apple.com>
888 <rdar://problem/4059479> Misspelling underline does underline the whole word, could go farther to the right
890 * WebCoreSupport.subproj/WebTextRenderer.m:
891 (-[WebTextRenderer misspellingLinePatternGapWidth]):
892 (-[WebTextRenderer drawLineForMisspelling:withWidth:]):
893 Consider that the last pixel in the underline dot pattern is transparent.
895 2005-03-19 Darin Adler <darin@apple.com>
897 Reviewed by Maciej (a while back).
899 - fixed <rdar://problem/4059323> local-file security check is allowing plug-in streams, but must not
901 * Plugins.subproj/WebNetscapePluginStream.m:
902 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
903 Roll out change I made on 3-13. That change is needed for subresource, but not for plug-in streams.
904 For plug-in streams it's too risky, and leaves a serious security hole open.
906 2005-03-19 Darin Adler <darin@apple.com>
908 Reviewed by Ken and John.
910 - fixed <rdar://problem/4059123> REGRESSION (402-403): deleteWordForward: and deleteWordBackward: start deleting single characters after the first delete
912 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]):
913 Fixed backwards logic in here and added missing check. Set action to one of the two typing actions only
914 if isTypingAction is YES.
916 2005-03-19 David Harrison <harrison@apple.com>
918 Reviewed by me (written by Patti Yeh).
920 <rdar://problem/4029491> <TCIM> CangJie: the candidate window appears at the top left hand corner during typing in Mail and iChat
922 * WebView.subproj/WebHTMLView.m:
923 (-[WebHTMLView firstRectForCharacterRange:]):
924 Use selected range if there is no marked range.
928 2005-03-18 David Harrison <harrison@apple.com>
932 <rdar://problem/3584942> AX: Safari Accessibility parent-child mismatch
934 * WebView.subproj/WebFrameView.m:
935 (-[WebFrameView webCoreBridge]):
936 New to conform to WebCoreBridgeHolder protocol.
938 2005-03-18 Richard Williamson <rjw@apple.com>
940 Fixed <rdar://problem/4057004> Data from XMLHTTPRequest is never dealloced
942 WebDataSource keeps an array of all the NSURLResponses associated
943 with the load for a page. This is used to playback delegate messages
944 when loading from the page cache. However, after the document
945 has completed it's initial load, we continue to keep track of responses.
946 So, this has the consequence of keeping all the responses for a page
947 around for the life of the page. NSURLResponses are now very
948 heavy. They indirectly reference the resource data (via the
949 download assessment dictionary). This fix will keep
950 references to responses around for those resources loaded during initial
951 page load, but not after that point.
955 * WebView.subproj/WebDataSource.m:
956 (-[WebDataSource _addResponse:]):
957 (-[WebDataSource _stopRecordingResponses]):
958 * WebView.subproj/WebDataSourcePrivate.h:
959 * WebView.subproj/WebFrame.m:
960 (-[WebFrame _opened]):
962 2005-03-18 Ken Kocienda <kocienda@apple.com>
968 <rdar://problem/4053729> Copy/paste of page with frames into Blot or Mail does nothing and loses insertion point
970 * WebView.subproj/WebHTMLView.m:
971 (-[WebHTMLView _selectedArchive]): Wrap frameset documents in an iframe, so they can be pasted into
972 existing documents which will have a body or frameset of their own.
976 2005-03-17 Richard Williamson <rjw@apple.com>
978 Fixed <rdar://problem/4055562> REGRESSION (Tiger): Safari doesn't draw progressively-loaded JPEGs (www.theregister.co.uk, www.titantalk.com)
980 Anothe side effect of lazy loading of image meta data. We now
981 don't cache image size until size meta data is actually available.
985 * WebCoreSupport.subproj/WebImageData.m:
986 (-[WebImageData size]):
988 2005-03-16 David Harrison <harrison@apple.com>
992 <rdar://problem/4048506> Deleting from beginning of editable div deletes other document elements
994 Also changed WebCore.
996 * WebView.subproj/WebHTMLView.m:
997 (-[WebHTMLView _shouldDeleteRange:]):
998 Added call to new bridge method canDeleteRange.
1000 2005-03-16 Ken Kocienda <kocienda@apple.com>
1006 <rdar://problem/4042935> undo doesn't work properly during inline input
1008 * WebView.subproj/WebHTMLView.m:
1009 (-[WebHTMLView setMarkedText:selectedRange:]): Call new -[WebCoreBridge replaceMarkedTextWithText:] instead of
1010 -[WebCoreBridge replaceSelectionWithText:selectReplacement:smartReplace:]. The former call was just added in
1011 order to provide a better mapping of international text input onto the typing command/undo design.
1013 2005-03-15 Richard Williamson <rjw@apple.com>
1015 Fixed <rdar://problem/4040321> Exception: Someone's trying to encode a WebDataRequestParameters instance
1017 If client mutates request use new Foundation SPI to address remove applewebdata properties from request.
1019 Reviewed by Ken Kocienda.
1021 * WebView.subproj/WebBaseResourceHandleDelegate.m:
1022 (-[WebBaseResourceHandleDelegate willSendRequest:redirectResponse:]):
1023 * WebView.subproj/WebDataProtocol.h:
1024 * WebView.subproj/WebDataProtocol.m:
1025 (+[NSURLRequest _webDataRequestPropertyKey]):
1027 2005-03-15 Ken Kocienda <kocienda@apple.com>
1033 <rdar://problem/4052642> Each delete keystroke is in its own undo group; not included in undo group with other typing
1035 Calling -[WebCore setSelectedDOMRange:range affinity:] had the result of "closing" any active set of typing
1036 keystrokes grouped together in a single undo operation. My change on 27 Jan to route delete keystrokes
1037 through _deleteRange:killRing:... made this feature regress. Previous to that change, the backwards delete
1038 key went through separate code that is no longer in the tree that did not set the selection in the way
1041 The solution is to add an extra argument to the set-selection call. The WebCoreBridge now offers this method:
1042 -[WebCore setSelectedDOMRange:range affinity:closeTyping:]. Now, callers must indicate whether setting the
1043 selection will act to close typing or not. The code changes below all add this new argument with the
1044 appropriate value for closeTyping.
1046 * WebView.subproj/WebHTMLView.m:
1047 (-[WebHTMLView _deleteRange:killRing:prepend:smartDeleteOK:deletionAction:]): Passes NO for closeTyping when
1048 deletionAction is deleteKeyAction or forwardDeleteKeyAction; YES when deleteSelectionAction.
1049 (-[WebHTMLView _expandSelectionToGranularity:]): Passes YES for closeTyping.
1050 (-[WebHTMLView selectToMark:]): Passes YES for closeTyping.
1051 (-[WebHTMLView swapWithMark:]): Passes YES for closeTyping.
1052 (-[WebHTMLView transpose:]): Passes YES for closeTyping.
1053 (-[WebHTMLView _selectMarkedText]): Passes NO for closeTyping.
1054 (-[WebHTMLView _selectRangeInMarkedText:]): Passes NO for closeTyping.
1055 * WebView.subproj/WebView.m:
1056 (-[WebView setSelectedDOMRange:affinity:]): Passes YES for closeTyping.
1058 2005-03-14 Richard Williamson <rjw@apple.com>
1060 Fix <rdar://problem/4051389> 8A413: gifs animating too fast
1064 Match Mozilla's policy for minimum frame duration, which is somewhat odd:
1066 <= 0.01 sec use .1 sec, otherwise use specified duration.
1068 * WebCoreSupport.subproj/WebImageData.m:
1069 (-[WebImageData _frameDurationAt:]):
1071 2005-03-14 Darin Adler <darin@apple.com>
1073 Reviewed by Harrison.
1075 - fixed <rdar://problem/4049776> Seed: Mail: Disable spellcheck leaves red artifacts
1077 * WebView.subproj/WebFrameInternal.h: Added _unmarkAllMisspellings.
1078 * WebView.subproj/WebFrame.m: (-[WebFrame _unmarkAllMisspellings]): Added.
1079 Calls unmarkAllMisspellings on the bridge and self and all subframes.
1081 * WebView.subproj/WebView.m: (-[WebView setContinuousSpellCheckingEnabled:]):
1082 Call _unmarkAllMisspellings on the main frame when turning continuous spell checking off.
1084 2005-03-14 Richard Williamson <rjw@apple.com>
1086 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
1088 The Acrobat application triggers loads of new documents in it's policy delegate. This
1089 ultimately causes the WebHTMLView to be released before their event handlers have
1090 returned. To bullet proof against this case we retain/release self before passing
1091 the event on for further handling.
1095 * WebView.subproj/WebHTMLView.m:
1096 (-[WebHTMLView _updateMouseoverWithEvent:]):
1097 (-[WebHTMLView scrollWheel:]):
1098 (-[WebHTMLView mouseDown:]):
1099 (-[WebHTMLView mouseDragged:]):
1100 (-[WebHTMLView mouseUp:]):
1101 (-[WebHTMLView keyDown:]):
1102 (-[WebHTMLView keyUp:]):
1103 (-[WebHTMLView performKeyEquivalent:]):
1105 2005-03-14 Vicki Murley <vicki@apple.com>
1107 - roll out the fix for 4040321, since it is still pending CCC review.
1109 2005-03-10 Richard Williamson <rjw@apple.com>
1111 Fixed <rdar://problem/4040321> Exception: Someone's trying to encode a WebDataRequestParameters instance
1115 If a delegate returns a mutated applewebdata: request in it's willSendRequest:
1116 method, we don't load using the WebDataRequest. Instead we do a normal load.
1117 Unfortunately, if the request they return is mutated *copy* of the applewebdata:
1118 request it will hold the applewebdata: special properties. These properties
1119 will be encoded into the cache. They should not be. So, to fix, we sanitize the
1120 request, by removing the special properties from the request.
1122 Note that we had to dig into the private guts of NSURLRequest because there is
1123 no public mechanism to remove properties from a request, see 4046775.
1125 * WebView.subproj/WebBaseResourceHandleDelegate.m:
1126 (-[WebBaseResourceHandleDelegate willSendRequest:redirectResponse:]):
1127 * WebView.subproj/WebDataProtocol.h:
1128 * WebView.subproj/WebDataProtocol.m:
1129 (-[NSURLRequest _webDataRequestExternalRequest]):
1130 (-[NSURLRequest _webDataRequestSanitize]):
1134 2005-03-13 Darin Adler <darin@apple.com>
1136 Reviewed by Ken and Maciej.
1138 - fixed <rdar://problem/4049040> REGRESSION (403-405): security check prevents user stylesheet from loading (Dictionary.app doesn't work at all!)
1140 * Plugins.subproj/WebNetscapePluginStream.m: (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
1141 Allow plug-in subresource streams to load with any URL, ignoring the "canLoadURL" method's restriction (only
1142 file URLs can load other file URLs), which now applies only to main resources, like web pages in frames or
1143 object tags and plug-in main resources.
1145 * WebCoreSupport.subproj/WebBridge.m:
1146 (-[WebBridge startLoadingResource:withURL:customHeaders:]): Allow subresources to load with any URL, as above.
1147 This allows things like images, stylesheets, and JavaScript to be loaded without the "canLoadURL" method's
1149 (-[WebBridge startLoadingResource:withURL:customHeaders:postData:]): Ditto.
1150 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]): Ditto.
1152 2005-03-10 Richard Williamson <rjw@apple.com>
1154 Fixed <rdar://problem/4040321> Exception: Someone's trying to encode a WebDataRequestParameters instance
1158 If a delegate returns a mutated applewebdata: request in it's willSendRequest:
1159 method, we don't load using the WebDataRequest. Instead we do a normal load.
1160 Unfortunately, if the request they return is mutated *copy* of the applewebdata:
1161 request it will hold the applewebdata: special properties. These properties
1162 will be encoded into the cache. They should not be. So, to fix, we sanitize the
1163 request, by removing the special properties from the request.
1165 Note that we had to dig into the private guts of NSURLRequest because there is
1166 no public mechanism to remove properties from a request, see 4046775.
1168 * WebView.subproj/WebBaseResourceHandleDelegate.m:
1169 (-[WebBaseResourceHandleDelegate willSendRequest:redirectResponse:]):
1170 * WebView.subproj/WebDataProtocol.h:
1171 * WebView.subproj/WebDataProtocol.m:
1172 (-[NSURLRequest _webDataRequestExternalRequest]):
1173 (-[NSURLRequest _webDataRequestSanitize]):
1177 2005-03-10 Maciej Stachowiak <mjs@apple.com>
1181 <rdar://problem/4046510> REGRESSION (TOT): All Flash and Shockwave plugin-based web content missing
1183 * Plugins.subproj/WebNetscapePluginStream.m:
1184 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
1186 2005-03-10 John Sullivan <sullivan@apple.com>
1190 - fixed <rdar://problem/4045843> Going back/forward to error page
1191 hits assertion in -[WebDataSource(WebPrivate) _setData:]
1193 * WebView.subproj/WebDataSource.m:
1194 (-[WebDataSource _setData:]):
1195 Removed bogus assertion
1197 2005-03-09 Deborah Goldsmith <goldsmit@apple.com>
1201 - fixed <rdar://problem/3997044> default encoding for non-Latin incorrect
1203 * WebKit/WebView.subproj/WebPreferences.m: (+[WebPreferences _systemCFStringEncoding]):
1204 Call __CFStringGetUserDefaultEncoding to get region, and TECGetWebTextEncodings to get
1205 the first encoding to determine the default encoding.
1207 2005-03-09 Darin Adler <darin@apple.com>
1209 Reviewed by Richard.
1211 - fixed <rdar://problem/4034175> REGRESSION (Mail): Can't use any font with style Light/Condensed/Semibold/Extrabold, etc
1213 * WebView.subproj/WebHTMLView.m:
1214 (-[WebHTMLView _styleFromFontAttributes:]): Use a constant instead of hard-coded weight for clarity.
1215 (-[WebHTMLView _originalFontA]): Ditto.
1216 (-[WebHTMLView _originalFontB]): Ditto.
1217 (-[WebHTMLView _addToStyle:fontA:fontB:]): Add code to detect the case where the family name is not good enough
1218 to specify the font precisely. In that case, use the Postscript font name instead. Also change variable names
1219 so it's easier to understand the method.
1221 2005-03-06 Maciej Stachowiak <mjs@apple.com>
1225 <rdar://problem/4005575> Arbitrary file disclosure vulnerability due to ability to load local html from remote content
1227 * Plugins.subproj/WebBaseNetscapePluginView.m:
1228 (-[WebBaseNetscapePluginView requestWithURLCString:]):
1229 * Plugins.subproj/WebNetscapePluginEmbeddedView.m:
1230 (-[WebNetscapePluginEmbeddedView didStart]):
1231 * Plugins.subproj/WebNetscapePluginStream.m:
1232 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
1233 * WebCoreSupport.subproj/WebBridge.m:
1234 (-[WebBridge createWindowWithURL:frameName:]):
1235 (-[WebBridge startLoadingResource:withURL:customHeaders:]):
1236 (-[WebBridge startLoadingResource:withURL:customHeaders:postData:]):
1237 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
1238 (-[WebBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]):
1239 (-[WebBridge postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
1240 (-[WebBridge createChildFrameNamed:withURL:referrer:renderPart:allowsScrolling:marginWidth:marginHeight:]):
1241 (-[WebBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:]):
1242 * WebView.subproj/WebFrame.m:
1243 (-[WebFrame _loadURL:referrer:intoChild:]):
1244 * WebView.subproj/WebFramePrivate.h:
1246 2005-03-09 Richard Williamson <rjw@apple.com>
1248 Fixed <rdar://problem/4032938> Safari: text layout for MS P Gothic font is corrupted
1250 The AppKit and ATS reports that MS P Gothic is fixed pitch. It is
1251 not! This is another case of "fixed pitch" being wrong. I've
1252 coalesced all the special cases into our isFontFixedPitch:, and
1253 used a dictionary to improve speed. No performance regression.
1257 * WebCoreSupport.subproj/WebTextRenderer.m:
1258 (-[WebTextRenderer _computeWidthForSpace]):
1259 * WebCoreSupport.subproj/WebTextRendererFactory.m:
1260 (-[WebTextRendererFactory clearCaches]):
1261 (-[WebTextRendererFactory isFontFixedPitch:]):
1263 2005-03-09 Darin Adler <darin@apple.com>
1267 <rdar://problem/4040388> REGRESSION (172-173): nonrepro crash in -[NSString(WebNSURLExtras) _web_isUserVisibleURL]
1269 * Misc.subproj/WebNSURLExtras.m:
1270 (-[NSString _web_isUserVisibleURL]): Fixed some pointer expressions that didn't include the index in the expression.
1271 (readIDNScriptWhiteListFile): Removed NSLog statements in here since we decided they aren't useful and they will
1272 write some messages on Tiger.
1274 2005-03-09 Darin Adler <darin@apple.com>
1276 * DOM.subproj/DOMPrivate.h: Checked in file copied from WebCore.
1278 2005-03-08 Richard Williamson <rjw@apple.com>
1280 Fixed <rdar://problem/4036949> many JPEG images fail to incremental-load due to change in ImageIO JPEG header parsing (to be fixed in WebKit)
1281 Fixed <rdar://problem/4042570> Need to check image properties for presence of width/height properties
1283 ImageIO-55 changed how image properties are created. They
1284 are now created incrementally. So we need "re-get" the image
1285 properties if the properties we care about (width/height) aren't
1286 in the property dictionary.
1290 * WebCoreSupport.subproj/WebImageData.h:
1291 * WebCoreSupport.subproj/WebImageData.m:
1292 (-[WebImageData init]):
1293 (-[WebImageData fileProperties]):
1294 (-[WebImageData propertiesAtIndex:]):
1295 (-[WebImageData _isSizeAvailable]):
1296 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
1297 (-[WebImageData size]):
1299 2005-03-08 John Sullivan <sullivan@apple.com>
1301 A couple of tweaks to the previous patch, from Darin's review.
1303 * Misc.subproj/WebNSPasteboardExtras.m:
1304 (_writableTypesForImageWithoutArchive):
1305 remove unnecessary _web prefix
1306 (_writableTypesForImageWithArchive):
1308 (+[NSPasteboard _web_writableTypesForImageIncludingArchive:]):
1309 use mutableCopy rather than initWithArray:, and adjust for name changes
1311 2005-03-08 John Sullivan <sullivan@apple.com>
1315 - fixed <rdar://problem/4031826> REGRESSION (Mail): standalone images from
1316 Safari can't be pasted into Mail (WebKit part of fix)
1318 We were always declaring webarchive-related pasteboard types, even in the standalone
1319 image cases where we had no webarchive. Unfortunately, the WebView pasteboard-related
1320 API doesn't prevent this kind of thing from happening, because the code that
1321 declares the types isn't guaranteed to be anywhere near the code that writes
1322 the pasteboard data.
1324 After this fix, I discovered that pasting standalone images into Mail still doesn't
1325 work right, but the remaining issues seem to be entirely in Mail. I wrote up 4041671
1328 * Misc.subproj/WebNSPasteboardExtras.h:
1329 (+[NSPasteboard _web_writableTypesForImageIncludingArchive:]):
1330 Added boolean parameter; clients must specify whether or not there's an
1331 archive involved, because the array of types is different if there is.
1333 * Misc.subproj/WebNSPasteboardExtras.m:
1334 (_web_writableTypesForImageWithoutArchive):
1335 new static function, constructs (once) and returns the array of types
1336 for images that don't have archives
1337 (_web_writableTypesForImageWithArchive):
1338 new static function, constructs (once) and returns the array of types
1339 for images that do have archives
1340 (+[NSPasteboard _web_writableTypesForImageIncludingArchive:]):
1341 added boolean parameter, now calls one of the two new static functions
1343 (-[NSPasteboard _web_writeImage:URL:title:archive:types:]):
1344 added asserts that we aren't declaring the archive types if we don't have archive data
1346 (-[NSPasteboard _web_declareAndWriteDragImage:URL:title:archive:source:]):
1347 updated to pass parameter to _web_writableTypesForImageIncludingArchive:
1349 * WebView.subproj/WebDefaultContextMenuDelegate.m:
1350 (-[WebDefaultUIDelegate copyImageToClipboard:]):
1351 updated to pass parameter to _web_writableTypesForImageIncludingArchive:
1353 * WebView.subproj/WebImageView.m:
1354 (-[WebImageView copy:]):
1355 updated to pass parameter to _web_writableTypesForImageIncludingArchive:
1357 * WebView.subproj/WebView.m:
1358 (-[WebView pasteboardTypesForElement:]):
1359 updated to pass parameter to _web_writableTypesForImageIncludingArchive:
1361 2005-03-07 Richard Williamson <rjw@apple.com>
1363 More bullet proofing for <rdar://problem/4038304> CrashTracer: ....9 crashes at com.apple.WebKit: -[WebTextRenderer initWithFont:usingPrinterFont:] + 840
1365 Protect against removal of Times and Times New Roman from
1366 system. If these fonts are removed attempt to get system font
1367 instead of FATAL_ALWAYS.
1371 * WebCoreSupport.subproj/WebTextRenderer.m:
1372 (-[WebTextRenderer initWithFont:usingPrinterFont:]):
1376 2005-03-06 Darin Adler <darin@apple.com>
1378 - fixed obvious mistake in IDN script code (luckily it hasn't been in a submission yet!)
1380 * Misc.subproj/WebNSURLExtras.m: (readIDNScriptWhiteListFile): Use "index" to index into the array,
1381 not "script", which is the script number, not the 32-bit-word index.
1383 2005-03-05 Kevin Decker <kdecker@apple.com>
1387 Fixed: <rdar://problem/4038529> Infinite progress bar loading webcams and other sites that use multipart/x-mixed-replace
1389 The previous patch I landed prevented us from loading multipart/x-mixed-replace but did not always update the progress bar accordingly.
1390 This stops websites from having seemingly infinite progress in the browser UI.
1392 * WebCoreSupport.subproj/WebSubresourceClient.m:
1393 (-[WebSubresourceClient didReceiveResponse:]): If this is "multipart/x-mixed-replace", remove the WebBaseResourceHandleDelegate client from
1394 the datasource's subresource array, otherwise -[WebDataSource isLoading] incorrectly returns YES. Also it's possible at this point in
1395 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
1396 in fact we're complete.
1397 * WebView.subproj/WebMainResourceClient.m:
1398 (-[WebMainResourceClient connection:didReceiveResponse:]): ditto
1400 2005-03-05 Richard Williamson <rjw@apple.com>
1402 Fixed panther build problem. Shouldn't include
1403 changes for 3968753 on panther.
1407 * WebView.subproj/WebView.m:
1408 (-[WebView _commonInitializationWithFrameName:groupName:]):
1410 2005-03-05 Darin Adler <darin@apple.com>
1414 - fixed <rdar://problem/4034603> REGRESSION (185-188): RadarWeb can't send enclosures anymore
1416 * WebView.subproj/WebFormDataStream.m:
1417 (closeCurrentStream): Release currentData when closing the stream.
1418 (advanceCurrentStream): Set up and retain currentData when the current stream is reading that data, so the
1419 data won't be released while in use.
1420 (formCreate): Initialize currentData to NULL.
1422 - fixed <rdar://problem/4037562> Tiger8A402: Help Viewer crashed when viewing help for iChat (infinite recursion in WebView)
1424 * WebView.subproj/WebView.m: (-[WebView _responderValidateUserInterfaceItem:]):
1425 Check for the case where we ourselves are the responder. This avoids an infinite loop.
1426 The actual code to perform operations avoids this with a global variable, but this lighter weight
1427 solution is sufficient here because validate operations don't call through to the next responder.
1429 2005-03-04 Richard Williamson <rjw@apple.com>
1431 Fixed <rdar://problem/3968753> REGRESSION: Poor performance with differing multiple animated GIFs (was fast in Panther)
1433 Disable coalesced updates (in CG). This restores the
1436 Reviewed by David Harrison.
1438 * WebView.subproj/WebView.m:
1439 (-[WebView _commonInitializationWithFrameName:groupName:]):
1441 2005-03-04 Adele Amchan <adele@apple.com>
1445 * English.lproj/StringsNotToBeLocalized.txt: added new strings "text/x-vcf" and "text/x-csv" to the list
1447 2005-03-04 Adele Amchan <adele@apple.com>
1451 Fix for <rdar://problem/4032982> Sun iPlanet app: not able to import AddressBook CSV format addresses properly
1452 Fix for <rdar://problem/4032985> Sun iPlanet app: not able to import vCard format addresses properly
1454 * WebView.subproj/WebTextView.m:
1455 (+[WebTextView unsupportedTextMIMETypes]): added "text/x-csv" and "text/x-vcf" to the list of MIME types that our text view doesn't handle
1457 2005-03-04 Darin Adler <darin@apple.com>
1461 - fixed <rdar://problem/4036817> REGRESSION: ctrl-y broken when a line + carriage return cut
1463 * WebView.subproj/WebHTMLView.m:
1464 (-[WebHTMLView _deleteRange:killRing:prepend:smartDeleteOK:deletionAction:]): Merged _handleKillRing behavior
1465 into this function, since there's now a more-complicated way the startNewKillRingSequence boolean needs to
1466 be handled. Set the startNewKillRingSequence boolean after the entire process so changing the selection before
1467 and during the editing dosn't clear it. Also change "isTypingAction" parameter to "deletionAction" so we can
1468 handle forward delete with this method.
1469 (-[WebHTMLView _deleteSelection]): Pass deleteSelectionAction for action rather than NO for isTypingAction,
1470 which is the way to say the same thing using the new parameter.
1471 (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]): Refactor to use the _deleteRange
1472 method above. Also calls _shouldDeleteRange: for the pre-existing selection case; not doing that before was
1474 (-[WebHTMLView deleteToMark:]): Pass deleteSelectionAction for action rather than NO for isTypingAction,
1475 which is the way to say the same thing using the new parameter.
1477 2005-03-04 Darin Adler <darin@apple.com>
1481 - fixed <rdar://problem/4020413> REGRESSION (Mail): can't use fonts with names that start with "#" in Mail (Korean fonts)
1483 * WebView.subproj/WebHTMLView.m:
1484 (-[WebHTMLView _styleFromFontAttributes:]): Quote font name when calling setFontFamily.
1485 (-[WebHTMLView _addToStyle:fontA:fontB:]): Ditto.
1487 2005-03-04 Darin Adler <darin@apple.com>
1491 - fixed <rdar://problem/3965666> IDN spoofing vulnerability caused by Unicode characters that look like ASCII characters
1493 * Misc.subproj/WebNSURLExtras.m:
1494 (readIDNScriptWhiteListFile): Added. Reads file and parses script names.
1495 (readIDNScriptWhiteList): Added. Calls readIDNScriptWhiteList on each of the white list locations in succession.
1496 (allCharactersInIDNScriptWhiteList): Renamed from containsPossibleLatinLookalikes and changed sense.
1497 Now calls readIDNScriptWhiteList first time, and then uses the read-in list to check the scripts.
1498 (-[NSString _web_mapHostNameWithRange:encode:makeString:]): Call allCharactersInIDNScriptWhiteList instead of
1499 containsPossibleLatinLookalikes.
1500 * Resources/IDNScriptWhiteList.txt: Added.
1501 * WebKit.pbproj/project.pbxproj: Added IDNScriptWhiteList.txt file.
1503 * Misc.subproj/WebKitLocalizableStrings.m: Removed. This is simply unused.
1504 * English.lproj/StringsNotToBeLocalized.txt: Updated for recent changes.
1506 2005-03-04 Darin Adler <darin@apple.com>
1510 - fixed <rdar://problem/3937667> REGRESSION (Mail): Zooming a window from titlebar button doesn't paint newly-exposed portions of window
1512 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView _recursiveDisplayAllDirtyWithLockFocus:visRect:]):
1513 Re-set-up the visRect if the bounds changes due to layout.
1517 2005-03-03 Jens Alfke <jens@apple.com>
1521 <rdar://problem/3991818> REGRESSION: Images scale while loading
1522 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.
1524 * WebCoreSupport.subproj/WebImageData.m:
1525 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
1527 2005-03-01 David Hyatt <hyatt@apple.com>
1529 Fix for 3841186, scrollbar shows up disabled when it should not appear at all. Make sure updateScrollers
1530 is never allowed to be re-entrant from any call point by moving the guard inside the function itself.
1532 Reviewed by John Sullivan
1534 * WebView.subproj/WebDynamicScrollBarsView.m:
1535 (-[WebDynamicScrollBarsView updateScrollers]):
1536 (-[WebDynamicScrollBarsView reflectScrolledClipView:]):
1538 2005-03-02 Chris Blumenberg <cblu@apple.com>
1540 Fixed: <rdar://problem/4029010> Expose method to retrieve drag image for WebView's selection
1542 Reviewed by sullivan.
1544 * WebView.subproj/WebHTMLView.m:
1545 (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]): call _selectionDraggingImage
1546 (-[WebHTMLView _selectionDraggingImage]): new SPI for Mail, factored from previous method
1547 (-[WebHTMLView _selectionDraggingRect]): new SPI for Mail
1548 * WebView.subproj/WebHTMLViewPrivate.h:
1550 2005-03-02 John Sullivan <sullivan@apple.com>
1554 - fixed <rdar://problem/4023337> Safari stops loading any page (-[NSCFDictionary setObject:forKey:]:
1555 attempt to insert nil key)
1557 It is very likely that the exception being hit is caused by the same problem as WebFoundation
1558 bug 4018486. This change makes the code robust against this kind of problem regardless.
1560 * WebView.subproj/WebBaseResourceHandleDelegate.m:
1561 (-[WebBaseResourceHandleDelegate saveResource]):
1562 Don't call addSubresource if newly-created resource is nil (but do assert on debug builds).
1563 Also assert that originalURL and MIMEType are not nil.
1565 * WebView.subproj/WebDataSource.m:
1566 (-[WebDataSource addSubresource:]):
1567 Don't add nil subresource to dictionary, but do assert on debug builds.
1571 2005-03-01 John Sullivan <sullivan@apple.com>
1575 - fixed <rdar://problem/3987482> Format>Style>Italic is not enabled when a
1576 compose window is empty (works in Blot)
1578 * WebView.subproj/WebHTMLView.m:
1579 (-[WebHTMLView becomeFirstResponder]):
1580 call _updateFontPanel here so NSFontManager knows the right font for the menu
1581 items and the font panel
1583 2005-03-01 David Harrison <harrison@apple.com>
1587 <rdar://problem/3915560> Mail would like an SPI to enable "smart" text paste/drop
1589 * WebView.subproj/WebHTMLView.m:
1590 (-[WebHTMLView _smartDeleteRangeForProposedRange:]):
1591 (-[WebHTMLView _smartInsertForString:replacingRange:beforeString:afterString:]):
1594 2005-02-28 John Sullivan <sullivan@apple.com>
1598 - WebKit part of fix for <rdar://problem/4023490> REGRESSION (125-185): Tabbing through links
1599 on frameset page gets stuck at end (tivofaq.com)
1601 This tab-to-links stuff has been in shaky condition ever since AppKit futzed with
1602 tabbing behavior in Tiger to add support for including the toolbar in the key loop.
1603 I made some changes months ago to compensate for that, but some cases, such as this
1604 one, still weren't fixed.
1606 * WebCoreSupport.subproj/WebBridge.m:
1607 (-[WebBridge _nextKeyViewOutsideWebFrameViewsWithValidityCheck:]):
1608 new bottleneck method, extracted from nextKeyViewOutsideWebFrameViews; handles
1609 nextKeyView or nextValidKeyView depending on parameter.
1610 (-[WebBridge nextKeyViewOutsideWebFrameViews]):
1611 now calls extracted method
1612 (-[WebBridge nextValidKeyViewOutsideWebFrameViews]):
1613 new method, calls new bottleneck method
1615 * WebView.subproj/WebHTMLView.m:
1616 (-[WebHTMLView nextValidKeyView]):
1617 when we're stuck at the end of a nextKeyView chain inside a nexted frame, use
1618 nextValidKeyViewOutsideWebFrameViews. Make sure we don't end up looking inside
1619 the web frame views while doing this.
1621 2005-02-25 Darin Adler <darin@apple.com>
1625 - fixed <rdar://problem/4025088> window onblur and onfocus don't fire when text field has focus
1627 * WebView.subproj/WebHTMLView.m:
1628 (-[WebHTMLView updateFocusState]): Renamed from updateFocusDisplay. Added call to setWindowHasFocus: method.
1629 (-[WebHTMLView viewDidMoveToWindow]): Call method by new name.
1630 (-[WebHTMLView windowDidBecomeKey:]): Ditto.
1631 (-[WebHTMLView windowDidResignKey:]): Ditto.
1632 (-[WebHTMLView becomeFirstResponder]): Ditto.
1633 (-[WebHTMLView resignFirstResponder]): Ditto.
1637 2005-02-25 Richard Williamson <rjw@apple.com>
1639 Fixed <rdar://problem/4000962> 8A375: Help Viewer displays voiced sound and semi-voiced characters strangely (characters don't seem to be composed)
1641 Added special case for voiced marks.
1645 * WebCoreSupport.subproj/WebTextRenderer.m:
1646 (widthForNextCharacter):
1648 2005-02-25 Darin Adler <darin@apple.com>
1652 - fixed <rdar://problem/4019823> Seed: Control-Y doesn't work
1654 * WebView.subproj/WebHTMLView.m:
1655 (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]): Call _handleKillRing
1656 after setting the selection, since it uses the selection to get the text.
1657 (-[WebHTMLView _insertText:selectInsertedText:]): Check for empty string to avoid an assertion
1658 on the other side of the bridge when you yank the empty string.
1660 2005-02-24 Richard Williamson <rjw@apple.com>
1662 Fixed <rdar://problem/3382926> Bidi neutrals at RTL/LTR boundaries not handled correctly.
1664 If directionality is specified use that as initial directionality,
1665 rather than neutral directionality.
1669 * WebCoreSupport.subproj/WebTextRenderer.m:
1670 (widthForNextCharacter):
1672 2005-02-24 Adele Amchan <adele@apple.com>
1676 Fix for <rdar://problem/4023393> Safari crashed in khtml::RenderObject::repaintAfterLayoutIfNeeded(QRect const&, QRect const&)
1678 We were crashing after hitting PageDown when viewing a pdf because
1679 WebKit was calling over to WebCore to scroll overflow areas.
1680 Since this only needs to be done if we're dealing with a WebHTMLView,
1681 I added a wrapper function to check the documentView before calling
1684 * WebView.subproj/WebFrameView.m:
1685 (-[WebFrameView _scrollOverflowInDirection:granularity:]): added wrapper function that checks if documentView is a WebHTMLView
1686 (-[WebFrameView scrollToBeginningOfDocument:]): uses new wrapper function now
1687 (-[WebFrameView scrollToEndOfDocument:]): uses new wrapper function now
1688 (-[WebFrameView _pageVertically:]): uses new wrapper function now
1689 (-[WebFrameView _pageHorizontally:]): uses new wrapper function now
1690 (-[WebFrameView _scrollLineVertically:]): uses new wrapper function now
1691 (-[WebFrameView _scrollLineHorizontally:]): uses new wrapper function now
1693 2005-02-24 Richard Williamson <rjw@apple.com>
1695 Fixed <rdar://problem/3985889> REGRESSION (125-180): setting <img> src to GIF that already animated does not animate; just shows final frame
1699 * WebCoreSupport.subproj/WebImageData.h:
1700 * WebCoreSupport.subproj/WebImageData.m:
1701 (-[WebImageData resetAnimation]):
1702 * WebCoreSupport.subproj/WebImageRenderer.m:
1703 (-[WebImageRenderer resetAnimation]):
1704 (-[WebInternalImage resetAnimation]):
1705 (-[WebImageRenderer drawImageInRect:fromRect:compositeOperator:context:]):
1707 2005-02-24 Kevin Decker <kdecker@apple.com>
1711 Fixed <rdar://problem/3962401> Don't load multipart/x-mixed-replace content to prevent memory leak
1713 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.
1715 * WebView.subproj/WebMainResourceClient.m:
1716 (-[WebMainResourceClient connection:didReceiveResponse:]): Disabled loading of multipart/x-mixed-replace content until we fully implement server side push.
1717 * WebCoreSupport.subproj/WebSubresourceClient.m:
1718 (-[WebSubresourceClient didReceiveResponse:]): Ditto. Same exact thing for sub resources.
1721 2005-02-23 John Sullivan <sullivan@apple.com>
1725 - fixed <rdar://problem/4021370> REGRESSION (Tiger): WebKit part of fix for
1726 shift-tab on tivofaq doing the wrong thing
1728 * WebView.subproj/WebFrameView.m:
1729 (-[WebFrameView becomeFirstResponder]):
1730 If our previousValidKeyView is nil or self (same as nil modulo AppKit oddness),
1731 look out of the box and get the previousValidKeyView of our webview.
1733 2005-02-23 Darin Adler <darin@apple.com>
1737 - fixed <rdar://problem/4010196> REGRESSION (125-186+): 8-character timestamps in gmail wrap to 2 lines (width:8ex; font-size:80%)
1739 * WebCoreSupport.subproj/WebTextRenderer.m: (-[WebTextRenderer xHeight]): Return the maximum
1740 of the "x" height and width. Comment in the code explains why in more detail.
1742 2005-02-22 Richard Williamson <rjw@apple.com>
1744 Fixed <rdar://problem/3937203> when a div adds a scrollbar (overflow:auto) we do not get regions
1746 Compare regions after automatice scroll regions have been
1751 * WebCoreSupport.subproj/WebBridge.h:
1752 * WebCoreSupport.subproj/WebBridge.m:
1753 (-[WebBridge dealloc]):
1754 (-[WebBridge _compareDashboardRegions:]):
1755 (-[WebBridge dashboardRegionsChanged:]):
1757 2005-02-22 Richard Williamson <rjw@apple.com>
1759 Fixed <rdar://problem/4012463> Dashboard widgets don't work with authenticating proxies
1761 Added new SPI for dashboard that just calls default delegate
1766 * WebView.subproj/WebView.m:
1767 (-[WebView handleAuthenticationForResource:challenge:fromDataSource:]):
1768 * WebView.subproj/WebViewPrivate.h:
1770 2005-02-22 Chris Blumenberg <cblu@apple.com>
1774 * WebCoreSupport.subproj/WebBridge.m:
1775 (-[WebBridge issuePasteAndMatchStyleCommand]): support for new "PasteAndMatchStyle" exec command
1779 2005-02-21 David Harrison <harrison@apple.com>
1783 <rdar://problem/3943090> REGRESSION (Mail): Spelling underline incompletely erased following certain steps
1785 * WebCoreSupport.subproj/WebTextRenderer.m:
1786 (-[WebTextRenderer misspellingLineThickness]):
1787 (-[WebTextRenderer misspellingLinePatternWidth]):
1788 Replaced #defines with these methods, so others can get the same info.
1790 (-[WebTextRenderer drawLineForMisspelling:withWidth:]):
1791 Keep underline within originally specified bounds.
1794 2005-02-21 Darin Adler <darin@apple.com>
1798 - fixed <rdar://problem/4016358> don't ever display IDN URLs with characters from "possible Latin look-alike" scripts
1800 * Misc.subproj/WebNSURLExtras.m:
1801 (containsPossibleLatinLookalikes): Added.
1802 (-[NSString _web_mapHostNameWithRange:encode:makeString:]): Call containsPossibleLatinLookalikes, and if true,
1803 don't decode the host name.
1805 2005-02-19 Kevin Decker <kdecker@apple.com>
1809 Fixed <rdar://problem/4010765> Flash player can be used to arbitrarily open popup windows without user permission
1811 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.
1813 * Plugins.subproj/WebBaseNetscapePluginView.h: Addded currentEventIsUserGesture boolean ivar.
1814 * Plugins.subproj/WebBaseNetscapePluginView.m:
1815 (-[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.
1816 (-[WebBaseNetscapePluginView initWithFrame:]): In our asynchronous load, pass along currentEventIsUserGesture to the PluginRequest.
1817 (-[WebBaseNetscapePluginView evaluateJavaScriptPluginRequest:]): Inform WebCore if this was a user originated gesture when calling executeScript().
1818 (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]):
1819 (-[WebPluginRequest initWithRequest:frameName:notifyData:sendNotification:didStartFromUserGesture:]):
1820 (-[WebPluginRequest isCurrentEventUserGesture]): Added.
1822 2005-02-18 Chris Blumenberg <cblu@apple.com>
1824 Fixed: <rdar://problem/3945271> REGRESSION (Mail): pasted plain text should pick up typing style instead of being unstyled
1826 Reviewed by kocienda.
1828 * WebView.subproj/WebDataSource.m:
1829 (-[WebDataSource _replaceSelectionWithArchive:selectReplacement:]): pass NO for matchStyle to replaceSelection
1830 * WebView.subproj/WebHTMLView.m:
1831 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:chosePlainText:]): return new chosePlainText parameter
1832 (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]): pass chosePlainText for matchStyle to replaceSelection
1833 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): ditto
1835 2005-02-17 Richard Williamson <rjw@apple.com>
1837 Removed code that should not have been checked in from
1840 * WebCoreSupport.subproj/WebTextRendererFactory.m:
1841 (-[WebTextRendererFactory isFontFixedPitch:]):
1843 2005-02-17 Richard Williamson <rjw@apple.com>
1845 Fixed <rdar://problem/3999467> when Osaka-Mono is specified as fixed width font, Osaka used instead
1847 Fixed w/o introducing a performance regression.
1849 Reviewed by Vicki (and earlier by Dave Harrison).
1851 * WebCoreSupport.subproj/WebTextRenderer.m:
1852 (-[WebTextRenderer _computeWidthForSpace]):
1853 (widthForNextCharacter):
1854 * WebCoreSupport.subproj/WebTextRendererFactory.h:
1855 * WebCoreSupport.subproj/WebTextRendererFactory.m:
1856 (-[NSFont _web_isFakeFixedPitch]):
1857 (-[WebTextRendererFactory isFontFixedPitch:]):
1858 (-[WebTextRendererFactory fontWithFamily:traits:size:]):
1860 2005-02-17 Richard Williamson <rjw@apple.com>
1862 Fixed <rdar://problem/3959304> PDF in img tag is not rendered correctly anymore
1864 We were incorrectly adding image position when flipping coordinates.
1866 Reviewed by David Harrison.
1868 * WebCoreSupport.subproj/WebImageData.m:
1869 (-[WebImageData _PDFDrawFromRect:toRect:operation:alpha:flipped:context:]):
1871 2005-02-17 Richard Williamson <rjw@apple.com>
1873 Fixed <rdar://problem/4007262> Seed: Flight tracker scrolling moves to the left
1875 Added SPI for dashboard to disable wheel scrolling of the WebClipView.
1880 * WebView.subproj/WebClipView.m:
1881 (-[WebClipView _focusRingVisibleRect]):
1882 (-[WebClipView scrollWheel:]):
1883 * WebView.subproj/WebView.m:
1884 (-[WebViewPrivate init]):
1885 (-[WebView drawRect:]):
1886 (-[WebView _dashboardBehavior:]):
1887 * WebView.subproj/WebViewInternal.h:
1888 * WebView.subproj/WebViewPrivate.h:
1892 2005-02-17 Vicki Murley <vicki@apple.com>
1894 - roll out this change, since it causes a 1.5% performance regression
1896 2005-02-15 Richard Williamson <rjw@apple.com>
1898 Fixed <rdar://problem/3999467> when Osaka-Mono is specified as fixed width font, Osaka used instead
1900 Lie about Osaka-Mono. Treat it as fixed pitch, even though,
1901 strictly speaking it isn't. (Similar to what we do with
1904 Reviewed by David Harrison.
1906 * WebCoreSupport.subproj/WebTextRenderer.m:
1907 (-[WebTextRenderer _computeWidthForSpace]):
1908 * WebCoreSupport.subproj/WebTextRendererFactory.h:
1909 * WebCoreSupport.subproj/WebTextRendererFactory.m:
1910 (-[NSFont _web_isFakeFixedPitch]):
1911 (-[WebTextRendererFactory isFontFixedPitch:]):
1912 (-[WebTextRendererFactory fontWithFamily:traits:size:]):
1914 2005-02-17 John Sullivan <sullivan@apple.com>
1918 - fixed <rdar://problem/3997185> The Web view on .Mac Prefs caused System Prefs
1919 to lockup (resolved by re-boot only)
1921 * WebCoreSupport.subproj/WebBridge.m:
1922 (-[WebBridge nextKeyViewOutsideWebFrameViews]):
1923 Don't allow recursion here; assert on debug build, return nil on deployment. I
1924 couldn't get my machine into a state to repro this problem (and neither could the
1925 originator), but it's obvious from the stack crawl that this method was recursing
1926 when it shouldn't have.
1928 2005-02-16 John Sullivan <sullivan@apple.com>
1930 Written by Darin, reviewed by me.
1932 - WebKit part of fix for <rdar://problem/4007384>
1933 FILTER: Bookmark of RSS with Japanese search word & multiple RSS pages loses filter
1935 * DOM.subproj/DOMPrivate.h:
1936 updated this file, which is a copy of the WebCore version
1938 2005-02-16 Richard Williamson <rjw@apple.com>
1940 Fixed <rdar://problem/3966973> Tiger 8A357: Binary Compatiblity: frequent Webstractor.app crashes [WebImageData _nextFrame]
1942 Webstractor.app was playing tricks to create thumbnails of
1943 pages. This caused the 'focusView' to be incorrect during
1944 animated GIF frame rendering.
1948 * WebCoreSupport.subproj/WebImageRenderer.m:
1949 (-[WebImageRenderer _startOrContinueAnimationIfNecessary]):
1951 2005-02-16 Vicki Murley <vicki@apple.com>
1953 Reviewed by me, code change by Darin.
1955 - fixed the build on Panther
1957 * WebView.subproj/WebFormDataStream.m: (webSetHTTPBody):
1958 Added a Panther-specific code path that just loads all the data into one big
1959 NSData object. This means that bug 3686434 won't be fixed on SUPanWheat; we'll
1960 still load the file into memory before sending it to the server on Panther.
1962 2005-02-15 Richard Williamson <rjw@apple.com>
1964 Fixed <rdar://problem/3998368> Tiger8A376: WebTextRenderer assertion failure in Safari while browsing news.bbc.co.uk
1966 Removed use of FATAL_ALWAYS from getUncachedWidth(). It's unclear
1967 why we would trigger the FATAL_ALWAYS. In the past we've seen
1968 the message triggered because of corrupt fonts. Anyway, in this
1969 particular case, we will now return 0 for the character width,
1970 rather than exiting.
1972 Reviewed by David Harrison.
1974 * WebCoreSupport.subproj/WebTextRenderer.m:
1977 2005-02-15 Richard Williamson <rjw@apple.com>
1979 Fixed <rdar://problem/3999467> when Osaka-Mono is specified as fixed width font, Osaka used instead
1981 Lie about Osaka-Mono. Treat it as fixed pitch, even though,
1982 strictly speaking it isn't. (Similar to what we do with
1985 Reviewed by David Harrison.
1987 * WebCoreSupport.subproj/WebTextRenderer.m:
1988 (-[WebTextRenderer _computeWidthForSpace]):
1989 * WebCoreSupport.subproj/WebTextRendererFactory.h:
1990 * WebCoreSupport.subproj/WebTextRendererFactory.m:
1991 (-[NSFont _web_isFakeFixedPitch]):
1992 (-[WebTextRendererFactory isFontFixedPitch:]):
1993 (-[WebTextRendererFactory fontWithFamily:traits:size:]):
1995 2005-02-14 Darin Adler <darin@apple.com>
1999 - fixed <rdar://problem/3686434> Safari uses too much RAM on file upload, leading to malloc errors and crashes (HP printers)
2001 * WebView.subproj/WebFormDataStream.h: Added webSetHTTPBody, which creates and connects an appropriate
2002 stream to an NSMutableURLRequest.
2003 * WebView.subproj/WebFormDataStream.m: Added implementation here.
2005 * WebCoreSupport.subproj/WebBridge.m:
2006 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
2008 * WebCoreSupport.subproj/WebSubresourceClient.m:
2009 (+[WebSubresourceClient startLoadingResource:withURL:customHeaders:postData:referrer:forDataSource:]):
2011 * WebView.subproj/WebFrame.m:
2012 (-[WebFrame _loadItem:withLoadType:]): Use webSetHTTPBody.
2013 (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]): Ditto.
2015 * English.lproj/StringsNotToBeLocalized.txt: Updated for this change and other recent changes.
2017 2005-02-11 Richard Williamson <rjw@apple.com>
2019 Fixed <rdar://problem/4002505> 8A378: Endlessly animating gif's on http://www.entropy.ch
2021 If animated images had no loop count property we were incorrectly
2022 looping forver. Note, that in the course of fixing this bug
2023 I found that ImageIO is incorrectly NOT reporting the loop count
2024 for a whole class of animated GIFs.
2026 Reviewed by Ken Kocienda.
2028 * WebCoreSupport.subproj/WebImageData.m:
2029 (-[WebImageData _repetitionCount]):
2033 2005-02-11 Vicki Murley <vicki@apple.com>
2037 - fix deployment build on Panther
2039 * WebView.subproj/WebHTMLView.m:
2040 (-[WebHTMLView changeBaseWritingDirection:]): ifdef out NSWritingDirectionNatural
2041 (-[WebHTMLView toggleBaseWritingDirection:]): fix a spacing issue
2043 2005-02-10 David Harrison <harrison@apple.com>
2045 Reviewed by Richard.
2047 <rdar://problem/3991652> REGRESSION (Mail): Deleting entire line in reply deletes extra blank line and moves insertion point
2049 * WebView.subproj/WebHTMLView.m:
2050 (-[WebHTMLView _deleteRange:killRing:prepend:smartDeleteOK:isTypingAction:]):
2051 (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
2052 (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]):
2053 (-[WebHTMLView selectToMark:]):
2054 (-[WebHTMLView swapWithMark:]):
2055 (-[WebHTMLView transpose:]):
2056 (-[WebHTMLView _selectMarkedText]):
2057 (-[WebHTMLView _selectRangeInMarkedText:]):
2058 Adopt new default affinity of NSSelectionAffinityDownstream as of <rdar://problem/3937447>.
2060 2005-02-10 Darin Adler <darin@apple.com>
2062 Reviewed by Harrison.
2064 - fixed <rdar://problem/4002084> Setting ResourceLoadDelegate to nil can cause a crash
2066 * WebView.subproj/WebView.m: (-[WebView _cacheResourceLoadDelegateImplementations]):
2067 Set booleans to either YES or NO, rather than setting them only in the YES case.
2069 2005-02-10 Darin Adler <darin@apple.com>
2071 Reviewed by Harrison.
2073 - fixed <rdar://problem/3991225> Format->Style->Underline menu item does not get checked when selected text is underlined
2075 * WebView.subproj/WebHTMLView.m:
2076 (-[WebHTMLView validateUserInterfaceItem:]): Added tons of additional cases in here for all the
2077 "action" style methods in this class that don't always want to be valid. For the ones where state
2078 makes sense, added the state-checking code too for the menu item case.
2079 (-[WebHTMLView ignoreSpelling:]): Removed unnecessary "editable text only" check since this command
2080 would work fine on a non-editable selection.
2081 (-[WebHTMLView swapWithMark:]): Ditto.
2082 (-[WebHTMLView changeBaseWritingDirection:]): Added. Like toggle, but based on the sender's tag.
2084 2005-02-08 Darin Adler <darin@apple.com>
2086 "Reviewed" by Richard (he told me the file was obsolete).
2088 - got rid of an obsolete file
2090 * Plugins.subproj/npsap.h: Removed.
2091 * copy-webcore-files-to-webkit: Removed npsap.h.
2093 2005-02-09 Richard Williamson <rjw@apple.com>
2095 Fixed <rdar://problem/4000073> non-screen font error on www.worldofwarcraft.com
2097 Reviewed by John Sullivan.
2099 * WebCoreSupport.subproj/WebTextRenderer.m:
2100 (-[WebTextRenderer _smallCapsFont]):
2104 2005-02-07 Chris Blumenberg <cblu@apple.com>
2106 Fixed: <rdar://problem/3993354> Safari claims to put RTFD on the pasteboard, but doesn't, in some cases
2110 * WebView.subproj/WebHTMLView.m:
2111 (-[WebHTMLView _stripAttachmentCharactersFromAttributedString:]): moved
2112 (-[WebHTMLView _writeSelectionWithPasteboardTypes:toPasteboard:cachedAttributedString:]): take cachedAttributedString parameter in case the attributed string was gotten already
2113 (-[WebHTMLView _writeSelectionToPasteboard:]): omit RTFD from the types list when there are no attachments
2115 2005-02-07 David Harrison <harrison@apple.com>
2119 <rdar://problem/3990693> REGRESSION (8A373): ctrl-k now deletes just one character instead of line
2121 * WebView.subproj/WebHTMLView.m:
2122 (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]):
2123 Set the selection so that deleteKeyPressedWithSmartDelete knows what to delete.
2125 2005-02-06 Darin Adler <darin@apple.com>
2129 - fixed <rdar://problem/3963166> PDFView SPI print method is being deprecated, moving to PDFDocument; please update WebKit
2131 * WebView.subproj/WebPDFView.m: (-[WebPDFView printOperationWithPrintInfo:]): Target the document instead of the view.
2133 * English.lproj/StringsNotToBeLocalized.txt: Updated for recent changes and also moved one translation to be a file-specific
2134 item rather than a file-independent one.
2136 2005-02-05 Chris Blumenberg <cblu@apple.com>
2138 Fixed: <rdar://problem/3991974> REGRESSION: www.jabra.com world location screen does not work
2142 * WebCoreSupport.subproj/WebBridge.m:
2143 (-[WebBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:]): use the baseURL from the bridge rather than from the response
2145 2005-02-04 Chris Blumenberg <cblu@apple.com>
2147 Fixed: <rdar://problem/3802781> rtf->html pasteboard conversion using xhtml
2149 Reviewed by kocienda.
2151 * WebView.subproj/WebHTMLView.m:
2152 (+[WebHTMLView _excludedElementsForAttributedStringConversion]): new
2153 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]): call _excludedElementsForAttributedStringConversion
2155 2005-02-04 Chris Blumenberg <cblu@apple.com>
2157 Fixed: <rdar://problem/3832973> copy text from PowerPoint, paste into Blot (or presumably Mail) and get a single missing image icon
2161 * WebView.subproj/WebHTMLView.m:
2162 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]): prefer RTF and RTFD over images just as NSTextView does
2164 2005-02-03 Chris Blumenberg <cblu@apple.com>
2166 Fixed: <rdar://problem/3555137> REGRESSION (125-173): Flash animation can erase parts of chrome (bookmarks bar & tab bar)
2168 convertRect:toView: returns incorrect results inside of viewWillMoveToWindow: with a nil window. Workaround this by catching this case.
2172 * Plugins.subproj/WebBaseNetscapePluginView.m:
2173 (-[WebBaseNetscapePluginView superviewsHaveSuperviews]): new
2174 (-[WebBaseNetscapePluginView saveAndSetPortStateForUpdate:]): clip out the plug-in view when superviewsHaveSuperviews returns NO
2176 2005-02-03 Chris Blumenberg <cblu@apple.com>
2178 Fixed: <rdar://problem/3893513> Sun iPlanet app: when saving to a file it brings up a window with the thing to be saved instead
2182 * WebView.subproj/WebTextView.m:
2183 (+[WebTextView unsupportedTextMIMETypes]): added "text/ldif" to the list of MIME types that our text view doesn't handle
2187 2005-02-03 Chris Blumenberg <cblu@apple.com>
2189 * English.lproj/StringsNotToBeLocalized.txt: updated
2191 2005-02-03 Chris Blumenberg <cblu@apple.com>
2193 Fixed: <rdar://problem/3989611> Evite style "add vCalendar to calendar" do not work
2197 * WebView.subproj/WebTextView.m:
2198 (+[WebTextView unsupportedTextMIMETypes]): added "text/x-vcalendar" to the list of MIME types our text view doesn't handle
2200 2005-02-03 Vicki Murley <vicki@apple.com>
2204 - fix deployment build breakage on Panther
2206 * WebView.subproj/WebHTMLView.m:
2207 (-[WebHTMLView toggleBaseWritingDirection:]):
2209 2005-02-02 John Sullivan <sullivan@apple.com>
2213 - WebKit part of fix for <rdar://problem/3980651> REGRESSION (125-180): Huge number of pages printed from certain page,
2216 This also fixes the problems with printing from GMail, yay!
2218 * WebView.subproj/WebHTMLView.m:
2219 (-[WebHTMLView _setPrinting:minimumPageWidth:maximumPageWidth:adjustViewSize:]):
2220 Don't adjust margins for header/footer here, because this is called for each subframe.
2221 (-[WebHTMLView knowsPageRange:]):
2222 Do adjust margins for header/footer here (analogous to WebTextView and WebImageView).
2223 Also, round the page height to an integer here (noticed in passing).
2225 2005-02-02 Chris Blumenberg <cblu@apple.com>
2227 Fixed: <rdar://problem/3986546> Cut, delete, and paste menu items are active when a image is opened in window
2231 * WebView.subproj/WebView.m:
2232 (-[WebView _responderValidateUserInterfaceItem:]): new, has the responder validate the item
2233 (-[WebView validateUserInterfaceItem:]): call VALIDATE for each repsonder selector using FOR_EACH_RESPONDER_SELECTOR macro
2234 (-[WebView _performResponderOperation:with:]): call factored out method _responderForResponderOperations
2235 (-[WebView _responderForResponderOperations]): new, code from _performResponderOperation:with:
2237 2005-02-02 Chris Blumenberg <cblu@apple.com>
2239 Fixed: <rdar://problem/3983628> control-click on WebView is not selecting the word under the cursor (Mail, non-editable WebView)
2243 * WebCoreSupport.subproj/WebBridge.m:
2244 (-[WebBridge selectWordBeforeMenuEvent]): new
2245 * WebView.subproj/WebView.m:
2246 (-[WebView _selectWordBeforeMenuEvent]): new SPI
2247 (-[WebView _setSelectWordBeforeMenuEvent:]): new SPI
2248 * WebView.subproj/WebViewInternal.h:
2249 * WebView.subproj/WebViewPrivate.h:
2251 2005-02-02 Chris Blumenberg <cblu@apple.com>
2253 Fixed: <rdar://problem/3986013> Assertion failure going back after page load error (no apparent problem in nondebug build)
2257 * WebView.subproj/WebDataSource.m:
2258 (-[WebDataSource _setPrimaryLoadComplete:]): don't set the data source data when the main client is nil
2260 2005-02-02 Ken Kocienda <kocienda@apple.com>
2266 <rdar://problem/3823109> WebKit should support -toggleBaseWritingDirection: (bidi editing support)
2268 * WebView.subproj/WebHTMLView.m:
2269 (-[WebHTMLView _applyParagraphStyleToSelection:withUndoAction:]): New function that calls through to
2270 new feature that allows callers to force all properties in a style to be applied as block styles.
2271 (-[WebHTMLView _alignSelectionUsingCSSValue:withUndoAction:]): Removed FIXME comment for something that has been fixed.
2272 (-[WebHTMLView toggleBaseWritingDirection:]): Implemented.
2274 2005-02-01 Richard Williamson <rjw@apple.com>
2276 Fixed <rdar://problem/3977727> WebKit should use new SPI to support faster GIF rendering
2278 Note: This REQUIRES build >= 3A362 when building on Tiger.
2282 * WebCoreSupport.subproj/WebImageData.m:
2283 (-[WebImageData _imageSourceOptions]):
2287 2005-02-01 Richard Williamson <rjw@apple.com>
2289 Added new SPI for <rdar://problem/3967063> need spi on WebView to turn of lcd text for Dashboard
2293 * WebCoreSupport.subproj/WebTextRenderer.m:
2295 * WebView.subproj/WebView.m:
2296 (-[WebView drawRect:]):
2297 (-[WebView _dashboardBehavior:]):
2298 (+[WebView _setShouldUseFontSmoothing:]):
2299 (+[WebView _shouldUseFontSmoothing]):
2300 * WebView.subproj/WebViewInternal.h:
2301 * WebView.subproj/WebViewPrivate.h:
2303 2005-01-31 Chris Blumenberg <cblu@apple.com>
2305 Fixed: <rdar://problem/3949806> REGRESSION: Source window fails to refresh correctly on reload
2307 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.
2311 * WebView.subproj/WebDataSource.m:
2312 (-[WebDataSource _setData:]): moved within file
2313 (-[WebDataSource _setPrimaryLoadComplete:]): call _setData: with the data from the main client before letting go of the main client
2314 * WebView.subproj/WebDataSourcePrivate.h:
2315 * WebView.subproj/WebMainResourceClient.m:
2316 (-[WebMainResourceClient releaseResources]): removed call to _setData: since the data source may need the data before releaseResources is called
2318 2005-01-31 Chris Blumenberg <cblu@apple.com>
2320 Fixed: <rdar://problem/3946285> Seed: Safari crashed by selecting all at internet-moebel.com
2324 * WebView.subproj/WebHTMLView.m:
2325 (-[WebHTMLView _hitViewForEvent:]): new, factored hit test hack to this method
2326 (-[WebHTMLView _updateMouseoverWithEvent:): call _hitViewForEvent:
2327 (-[WebHTMLView acceptsFirstMouse:]): call _setMouseDownEvent: and _isSelectionEvent: on the hit HTMLView or else when it's asked to drag it will assert
2328 (-[WebHTMLView shouldDelayWindowOrderingForEvent:]): ditto
2330 2005-01-31 David Harrison <harrison@apple.com>
2334 <rdar://problem/3961239> AX Setting AXFocused on AXScrollArea of AXWebArea will cause keyboard selection change
2336 * WebView.subproj/WebHTMLView.m:
2337 (-[WebHTMLView maintainsInactiveSelection]):
2338 Keep the selection when the new first respomder is our own scrollview, in both editable and non-editaqble content.
2340 2005-01-31 Jens Alfke <jens@apple.com>
2344 - Fixed <rdar://problem/3903199> REGRESSION: Large background patterns slide around while loading
2346 * WebCoreSupport.subproj/WebImageData.m:
2348 (-[WebImageData tileInRect:fromPoint:context:]):
2350 2005-01-30 Darin Adler <darin@apple.com>
2354 - fixed <rdar://problem/3965265> Safari displays HTML as source when default encoding is Hebrew (due to direction overrides added by encoding converter)
2356 * WebView.subproj/WebPreferencesPrivate.h: Added _systemCFStringEncoding, and changed
2357 _setInitialDefaultTextEncodingToSystemEncoding to be a class method.
2358 * WebView.subproj/WebPreferences.m:
2359 (+[WebPreferences _systemCFStringEncoding]): Added. New SPI to be used by Safari. Broken out of
2360 _setInitialDefaultTextEncodingToSystemEncoding, but also added cases for MacArabic and MacHebrew.
2361 (+[WebPreferences _setInitialDefaultTextEncodingToSystemEncoding]): Refactor to use _systemCFStringEncoding.
2363 2005-01-28 Jens Alfke <jens@apple.com>
2365 Reviewed by Richard.
2367 <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)
2369 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.)
2371 * WebCoreSupport.subproj/WebImageData.h:
2372 * WebCoreSupport.subproj/WebImageData.m:
2373 (-[WebImageData _invalidateImages]):
2374 (-[WebImageData _checkSolidColor:]):
2375 (-[WebImageData _cacheImages:allImages:]):
2376 (-[WebImageData _fillSolidColorInRect:compositeOperation:context:]):
2377 (-[WebImageData tileInRect:fromPoint:context:]):
2379 2005-01-28 David Harrison <harrison@apple.com>
2383 <rdar://problem/3584942> AX: Safari Accessibility parent-child mismatch
2385 Use AppKit SPI _accessibilityParentForSubview to return KWQAccObject parent of AppKit AX object.
2387 * WebView.subproj/WebHTMLView.m:
2388 (-[WebHTMLView _accessibilityParentForSubview:]):
2391 2005-01-28 Chris Blumenberg <cblu@apple.com>
2393 WebKit side of: <rdar://problem/3951283> can view pages from the back/forward cache that should be disallowed by Parental Controls
2397 * WebView.subproj/WebDefaultPolicyDelegate.m:
2398 (-[WebDefaultPolicyDelegate webView:shouldGoToHistoryItem:]): new private delegate method
2399 * WebView.subproj/WebFrame.m:
2400 (-[WebFrame _goToItem:withLoadType:]): call new delegate method
2401 * WebView.subproj/WebPolicyDelegatePrivate.h:
2403 2005-01-26 Maciej Stachowiak <mjs@apple.com>
2405 Reviewed by Darin, Hyatt and Ken.
2407 <rdar://problem/3790449> REGRESSION (Mail): underline behavior is flaky because of how CSS handles text-decoration
2409 * WebView.subproj/WebHTMLView.m:
2410 (-[WebHTMLView _styleFromFontAttributes:]): Use new -khtml-text-decorations-in-effect
2412 (-[WebHTMLView _styleForAttributeChange:]): likewise
2413 (-[WebHTMLView underline:]): likewise
2415 2005-01-27 Ken Kocienda <kocienda@apple.com>
2419 * WebView.subproj/WebHTMLView.m:
2420 (-[WebHTMLView _handleKillRing:prepend:]): New helper function. Code factored out from
2421 _deleteRange:killRing:prepend:smartDeleteOK:isTypingAction:.
2422 (-[WebHTMLView _deleteRange:killRing:prepend:smartDeleteOK:isTypingAction:]): No longer takes
2423 unused preflight argument. Now takes new isTypingAction argument. Uses isTypingAction to
2424 determine which flavor of delete command to call.
2425 (-[WebHTMLView _deleteSelection]): No longer passes unused preflight argument. Now passes new isTypingAction argument.
2426 (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]): Rearranged code to call
2427 correct flavor of delete command, based on whether typing should be preserved. Some other cleanups.
2428 (-[WebHTMLView deleteForward:]): Add _isEditable check.
2429 (-[WebHTMLView deleteBackward:]): Now calls _deleteWithDirection instead of having unique behavior different
2430 from forward delete.
2431 (-[WebHTMLView deleteWordForward:]): Add new isTypingAction flag to _deleteWithDirection call.
2432 (-[WebHTMLView deleteWordBackward:]): Ditto.
2433 (-[WebHTMLView deleteToBeginningOfLine:]): Ditto.
2434 (-[WebHTMLView deleteToEndOfLine:]): Ditto.
2435 (-[WebHTMLView deleteToBeginningOfParagraph:]): Ditto.
2436 (-[WebHTMLView deleteToEndOfParagraph:]): Ditto.
2437 (-[WebHTMLView deleteToMark:]): Ditto.
2441 2005-01-27 Chris Blumenberg <cblu@apple.com>
2443 Fixed: <rdar://problem/3973272> REGRESSION: Safari uses QT plugin to display PNG images
2447 * Plugins.subproj/WebBasePluginPackage.m: use renamed QT bundle ID
2449 2005-01-26 Darin Adler <darin@apple.com>
2453 - fixed <rdar://problem/3829517> WebView still draws white when setDrawsBackground set to NO and no content loaded yet
2455 * WebView.subproj/WebFrameView.m: (-[WebFrameView drawRect:]): Check drawsBackground, and don't
2456 draw the white "no document" background if it's NO. This fixes things for frames with no document.
2457 * WebView.subproj/WebImageView.m: (-[WebImageView drawRect:]): Same as above. This fixes things
2458 for frames with just an image.
2459 * WebView.subproj/WebFrame.m: (-[WebFrame _updateDrawsBackground]): Call setDrawsBackground: on the
2460 document view if it implements it. This fixes things for frames with plain text.
2462 2005-01-25 John Sullivan <sullivan@apple.com>
2466 - WebKit part of fix for: <rdar://problem/3970670> Text context menu
2467 in WebKit needs "Look Up in Dictionary" item
2469 * WebView.subproj/WebDefaultContextMenuDelegate.m:
2470 (localizedMenuTitleFromAppKit):
2471 return English string in the case where AppKit bundle is found but doesn't
2472 contain the expected string. This case will be hit by people testing with
2474 (-[WebDefaultUIDelegate menuItemWithTag:]):
2475 create Look Up in Dictionary item
2476 (-[WebDefaultUIDelegate contextMenuItemsForElement:]):
2477 add Look Up in Dictionary item and separator
2478 (-[WebDefaultUIDelegate editingContextMenuItemsForElement:]):
2481 * WebView.subproj/WebHTMLView.m:
2482 (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
2483 new method, handles bringing up the Dictionary window. Includes FIXMEs
2484 for a couple of the known loose ends.
2485 (-[WebHTMLView validateUserInterfaceItem:]):
2486 handle Look Up in Dictionary item like the other new items
2488 * WebView.subproj/WebUIDelegatePrivate.h:
2489 added SPI constant for Look Up in Dictionary menu item
2491 2005-01-24 Maciej Stachowiak <mjs@apple.com>
2493 Fixed Panther build (missing ifdef)
2495 * WebView.subproj/WebDefaultContextMenuDelegate.m:
2497 2005-01-24 John Sullivan <sullivan@apple.com>
2501 - WebKit part of fix for <rdar://problem/3960231> Text context menu in WebKit needs Spotlight and Google items
2503 * WebView.subproj/WebDefaultContextMenuDelegate.m:
2504 (localizedMenuTitleFromAppKit):
2505 new function, gets localized string from AppKit so we can avoid adding localized
2506 strings to WebKit at this late date in Tiger. Returns the non-localized English
2507 string if we can't find the localized string in AppKit.
2508 (-[WebDefaultUIDelegate menuItemWithTag:]):
2509 handle the two new menu items by tag name
2510 (-[WebDefaultUIDelegate contextMenuItemsForElement:]):
2511 add menu items for Search in Google and Search in Spotlight to selected-text menu item
2512 for the noneditable case
2513 (-[WebDefaultUIDelegate editingContextMenuItemsForElement:]):
2514 add menu items for Search in Google and Search in Spotlight to selected-text menu item
2515 for the editable case
2517 * WebView.subproj/WebHTMLView.m:
2518 (-[WebHTMLView _searchWithGoogleFromMenu:]):
2519 implement this menu item action method, using same method name and implementation as NSTextView
2520 (-[WebHTMLView _searchWithSpotlightFromMenu:]):
2521 implement this menu item action method, using same basic implementation as NSTextView
2522 (-[WebHTMLView validateUserInterfaceItem:]):
2523 validate new menu items
2525 * WebView.subproj/WebUIDelegatePrivate.h:
2526 define new tags for new menu items
2528 * English.lproj/StringsNotToBeLocalized.txt:
2529 updated for these changes
2531 2005-01-24 Darin Adler <darin@apple.com>
2533 * WebView.subproj/WebDataSource.m: (+[WebDataSource _repTypesAllowImageTypeOmission:]):
2534 Do the same check as for view types, so the representation types are consistent.
2536 2005-01-24 Darin Adler <darin@apple.com>
2540 - fixed <rdar://problem/3791158> REGRESSION (Mail): copyFont: and pasteFont: copy and paste only the NSFont, not other attributes
2542 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView _styleFromFontAttributes:]): Added the last
2543 few loose ends here: strikethrough and underline.
2545 - fixed <rdar://problem/3967393> add a user default that lets you turn off WebKit PDF support
2547 * WebView.subproj/WebFrameView.m: (+[WebFrameView _viewTypesAllowImageTypeOmission:]):
2548 Leave the PDF-handling classes out of the dictionary if the secret default is set.
2550 * English.lproj/StringsNotToBeLocalized.txt: Updated for recent changes.
2552 2005-01-20 Darin Adler <darin@apple.com>
2554 Reviewed by Kristin Forster.
2556 - fixed <rdar://problem/3964972> update _initWithCGSEvent:eventRef: call in mouse moved workaround (breaks cursors in Carbon WebKit applications)
2558 * Carbon.subproj/HIWebView.m: (MouseMoved): Instead of munging the event record's window number directly
2559 before calling _initWithCGSEvent, on Tiger we call _eventRelativeToWindow on the event after creating it.
2560 Also added a check so that with Macromedia Contribute's workaround in place we don't do anything at all
2561 to the event. Tested with both Contribute and CarbonWeb.
2563 * English.lproj/StringsNotToBeLocalized.txt: Update for recent changes.
2565 2005-01-20 Richard Williamson <rjw@apple.com>
2567 Fixed <rdar://problem/3815672> REGRESSION (Mail): Japanese text cannot be made bold
2569 The AppKit's font substitution API doesn't match font traits!
2570 It only find fonts that contain the appropriate glyphs. This
2571 patch attempts to find the best variation within a family.
2575 * WebCoreSupport.subproj/WebTextRenderer.m:
2576 (-[WebTextRenderer _substituteFontForString:families:]):
2580 2005-01-20 Ken Kocienda <kocienda@apple.com>
2586 <rdar://problem/3786659> REGRESSION (Mail): editable WebViews don't work with "size up" and "size down" NSFontManager changes
2588 * WebView.subproj/WebHTMLView.m:
2589 (-[WebHTMLView _addToStyle:fontA:fontB:]): This is the WebKit side of the fix. Replaced unimplemented code blocks
2590 with FIXME's in them for make bigger and make smaller with real working code.
2592 2005-01-19 David Hyatt <hyatt@apple.com>
2594 Fix for 3513067, spaces being lost when RTL text is rendered. Make sure not to allow hangers or spaces
2599 * WebCoreSupport.subproj/WebTextRenderer.m:
2600 (-[WebTextRenderer _createATSUTextLayoutForRun:style:]):
2602 2005-01-19 Darin Adler <darin@apple.com>
2606 - fixed <rdar://problem/3962559> stopAnimationsInView leaks after cvs-base
2608 * WebCoreSupport.subproj/WebImageData.m: (+[WebImageData stopAnimationsInView:]): add a release
2610 2005-01-19 Chris Blumenberg <cblu@apple.com>
2612 Fixed: <rdar://problem/3961809> plug-in code attempts to load empty URL
2616 * Plugins.subproj/WebNetscapePluginEmbeddedView.m:
2617 (-[WebNetscapePluginEmbeddedView didStart]): don't start load if URL is empty
2619 2005-01-17 Darin Adler <darin@apple.com>
2621 * DOM.subproj/DOMPrivate.h: Check in generated file.
2623 2005-01-17 Darin Adler <darin@apple.com>
2625 Reviewed by John and Richard.
2627 - fixed <rdar://problem/3907453> printing a multi-page PDF document from Safari doesn't produce correct output
2629 * WebView.subproj/WebFrameViewPrivate.h: Added.
2630 * WebView.subproj/WebFrameView.m:
2631 (-[WebFrameView canPrintHeadersAndFooters]): Added. Returnes NO for documents that can't print headers or footers,
2632 and delegates to the document view to answer the question. Defaults to NO, since only a view that actively does
2633 the work is compatible with our header and footer code.
2634 (-[WebFrameView printOperationWithPrintInfo:]): Added. Returns an NSPrintOperation set up for printing. The reason
2635 we return this rather than an NSView is that in the PDFView case, the print info is changed around before creating
2636 the NSPrintOperation, and also the PDFKit SPI works this way.
2638 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView canPrintHeadersAndFooters]): Added. Returns YES.
2639 * WebView.subproj/WebImageView.m: (-[WebImageView canPrintHeadersAndFooters]): Ditto.
2640 * WebView.subproj/WebTextView.m: (-[WebTextView canPrintHeadersAndFooters]): Ditto.
2642 * WebView.subproj/WebPDFView.m:
2643 (-[WebPDFView canPrintHeadersAndFooters]): Added. Returns NO.
2644 (-[WebPDFView printOperationWithPrintInfo:]): Added. Calls getPrintOperationForPrintInfo: autoRotate:YES on the PDFView.
2646 * WebKit.pbproj/project.pbxproj: Added WebFrameViewPrivate.h as a new private header.
2648 2005-01-13 Chris Blumenberg <cblu@apple.com>
2650 Fixed: <rdar://problem/3932107> Safari does not load QT Cocoa plug-in if the WebPluginMIMETypes key is not in the info.plist
2652 Fixing this bug required that we allow WebKit plug-ins (as well as Netscape plug-ins) support BP_CreatePluginMIMETypesPreferences
2653 which allows plug-ins create an auxiliary MIME types file.
2657 * Plugins.subproj/WebBasePluginPackage.h:
2658 * Plugins.subproj/WebBasePluginPackage.m:
2659 (+[WebBasePluginPackage preferredLocalizationName]): moved from WebNetscapePluginPackage
2660 (-[WebBasePluginPackage pListForPath:createFile:]): ditto
2661 (-[WebBasePluginPackage getPluginInfoFromPLists]): ditto
2662 (-[WebBasePluginPackage isLoaded]): return isLoaded ivar
2663 (-[WebBasePluginPackage load]): if loaded, get BP_CreatePluginMIMETypesPreferences symbol
2664 * Plugins.subproj/WebNetscapePluginPackage.h:
2665 * Plugins.subproj/WebNetscapePluginPackage.m:
2666 (-[WebNetscapePluginPackage load]): call super when done so BP_CreatePluginMIMETypesPreferences can be initialized
2667 * Plugins.subproj/WebPluginPackage.m:
2668 (-[WebPluginPackage initWithPath:]): call getPluginInfoFromPLists
2669 (-[WebPluginPackage load]): call super when done so BP_CreatePluginMIMETypesPreferences can be initialized
2671 2005-01-13 Richard Williamson <rjw@apple.com>
2673 Fixed <rdar://problem/3952809> WebJavaPlugIn.h comments need method name corrected (webPlugInCallJava)
2677 * Plugins.subproj/WebJavaPlugIn.h:
2681 2005-01-13 Vicki Murley <vicki@apple.com>
2685 - fix <rdar://problem/3946836> Safari about box lists 2004 instead of 2005
2687 * WebKit.pbproj/project.pbxproj: bump "2004" to "2005"
2689 2005-01-13 Richard Williamson <rjw@apple.com>
2691 Fixed <rdar://problem/3951911> REGRESSION: Animated GIF images with loop counts no longer update
2693 Draw last image after animation loop terminates. (We
2694 were drawing the image at index+1, which doesn't exist!)
2698 * WebCoreSupport.subproj/WebImageData.m:
2699 (-[WebImageData _nextFrame:]):
2701 2005-01-13 Richard Williamson <rjw@apple.com>
2703 Fixed <rdar://problem/3952084> REGRESSION: Links at projectseven.com now draw and update incorrectly during hover
2705 Turn off use of new CGContextStrokeLineSegments API. We should
2706 turn back on when 3952944 is fixed.
2710 * WebCoreSupport.subproj/WebTextRenderer.m:
2711 (-[WebTextRenderer drawLineForCharacters:yOffset:width:color:thickness:]):
2713 2005-01-13 Chris Blumenberg <cblu@apple.com>
2715 Fixed: <rdar://problem/3937663> repro assertion failure and crash dragging image that has PDF source
2719 * Misc.subproj/WebNSViewExtras.m:
2720 (-[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
2721 * WebCoreSupport.subproj/WebImageRendererFactory.m:
2722 (-[WebImageRendererFactory supportedMIMETypes]): removed code that omits PDF and PostScript from the list since this omission is only needed in WebImageView
2723 * WebView.subproj/WebImageView.m:
2724 (+[WebImageView supportedImageMIMETypes]): added code that omits PDF and PostScript since we don't want WebImageView to render these types
2726 2005-01-10 Maciej Stachowiak <mjs@apple.com>
2730 <rdar://problem/3758033> REGRESSION (Mail): Support attributes in marked text (International input)
2732 * WebCoreSupport.subproj/WebTextRenderer.m:
2733 (-[WebTextRenderer drawLineForCharacters:yOffset:width:color:thickness:]): Changed to support
2734 underline thickness. Also added a bit of a hack here to move thickness 2 underlines down by
2735 .5 pixels, since the rendering engine can't give a fractional pixel offset.
2736 * WebView.subproj/WebHTMLView.m:
2737 (-[WebHTMLView validAttributesForMarkedText]): Support underline, underline color and marked
2738 clause attributes. Others that NSText supports are unimplemented for now.
2739 (-[WebHTMLView firstRectForCharacterRange:]): Remove needless logging.
2740 (-[WebHTMLView unmarkText]): Updated for new WebCore SPI.
2741 (-[WebHTMLView _extractAttributes:ranges:fromAttributedString:]): New method to pull the attributes
2742 and ranges out of an attributed string.
2743 (-[WebHTMLView setMarkedText:selectedRange:]): Extract attributes and pass to WebCore.
2744 (-[WebHTMLView insertText:]): Add comment noting that we don't really handle attributed strings
2747 2005-01-12 Darin Adler <darin@apple.com>
2751 - fixed <rdar://problem/3848257> WebView will draw more than AppKit asks it to, so views behind won't redraw enough (transparent WebView)
2753 * WebView.subproj/WebHTMLView.m:
2754 (-[WebHTMLView _propagateDirtyRectsToOpaqueAncestors]): As recommended by Troy Stephens, do the
2755 layouts here in this call, since it's before propagating the dirty rects to our ancestors.
2756 This fixes the bug, but we only do it if the WebView is not opaque, because otherwise we can
2757 optimize by only doing layouts you really need, and doing them later on is safe because we
2758 know we don't need to draw any of the views behind us.
2759 (-[WebHTMLView _layoutIfNeeded]): Added. Factored out from the method below.
2760 (-[WebHTMLView _web_layoutIfNeededRecursive]): Added. Like the other "layout if needed" call,
2762 (-[WebHTMLView _web_layoutIfNeededRecursive:testDirtyRect:]): Factored out the guts into the
2763 _layoutIfNeeded method above. Otherwise unchanged.
2764 (-[NSView _web_layoutIfNeededRecursive]): Added.
2766 * WebView.subproj/WebFrame.m: (-[WebFrame _updateDrawsBackground]): Call setDrawsBackground:NO
2767 on the scroll view when changing the frame to no longer be in "draws background" mode. This
2768 is needed because the frame manages the "draws background" mode of the scroll view. It won't
2769 have any effect if you call setDrawsBackground:NO before starting to use a WebView, but without
2770 it calling setDrawsBackground:NO later won't have an immediate effect (easily visible in Safari).
2771 This was hidden before because the HTML view was filling with transparent color, which blew away
2772 the fill that was done by NSScrollView.
2774 - fixed <rdar://problem/3921129> reproducible crash at www.funnychristmas.com in CFSet manipulation in WebImageData
2776 * WebCoreSupport.subproj/WebImageData.m:
2777 (-[WebImageData _imageSourceOptions]): Changed types so we don't need a cast.
2778 (+[WebImageData stopAnimationsInView:]): Instead of building a set of sets, by putting in the sets with addObject,
2779 build a single set using unionSet, and then iterate the objects instead of having to iterate the sets and then the
2780 objects in each set. The old code ended up sharing the sets with the live code, when the whole idea was to gather
2781 all the renderers because the process of stopping modifies the active sets.
2783 2005-01-12 Richard Williamson <rjw@apple.com>
2785 Fixed <rdar://problem/3926825> Safari ignores GIF loop count
2787 Get loop count from file properties, not image properties.
2789 Reviewed by Ken Kocienda.
2791 * WebCoreSupport.subproj/WebImageData.h:
2792 * WebCoreSupport.subproj/WebImageData.m:
2793 (-[WebImageData _commonTermination]):
2794 (-[WebImageData fileProperties]):
2795 (-[WebImageData _floatProperty:type:at:]):
2796 (-[WebImageData _floatFileProperty:type:]):
2797 (-[WebImageData _repetitionCount]):
2799 2005-01-11 Chris Blumenberg <cblu@apple.com>
2801 Fixed: <rdar://problem/3934749> assertion failure in WebBaseNetscapePluginView loading movie
2805 * Plugins.subproj/WebBaseNetscapePluginView.m:
2806 (-[WebBaseNetscapePluginView start]): call canStart before asserting about the webView
2808 2005-01-11 John Sullivan <sullivan@apple.com>
2812 - fixed <rdar://problem/3446838> REGRESSION (Mail): text decorations don't print
2813 (e.g. <strike>, underline)
2815 * WebCoreSupport.subproj/WebTextRenderer.m:
2816 (-[WebTextRenderer drawLineForCharacters:yOffset:withWidth:withColor:]):
2817 This bottleneck routine for drawing a line was setting the linewidth to 0 when
2818 the graphics context was not drawing to the screen. Thus, no lines. Now links
2819 are underlined when printing from Safari (as well as Mail).
2821 2005-01-11 Richard Williamson <rjw@apple.com>
2823 Fixed 3949145. CG has a much faster API for drawing lines.
2824 Switched over to that new API (CGContextStrokeLineSegments).
2826 Reviewed by John Sullivan.
2828 * WebCoreSupport.subproj/WebTextRenderer.m:
2829 (-[WebTextRenderer drawLineForCharacters:yOffset:withWidth:withColor:]):
2831 2005-01-10 Chris Blumenberg <cblu@apple.com>
2833 Fixed: <rdar://problem/3948862> REGRESSION: missing images when RTFD is pasted into editable WebView
2835 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.
2839 * WebView.subproj/WebHTMLView.m:
2840 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]): don't deal with subresources since that's now done by the following method
2841 (-[WebHTMLView resourceForData:preferredFilename:]): new handler method called by AppKit
2845 2005-01-06 David Harrison <harrison@apple.com>
2847 Reviewed by Dave Hyatt
2849 <rdar://problem/3588548> AX: tabbing does not work correctly with the screen reader and a focused link; need AXFocusedUIElement to work.
2851 * WebView.subproj/WebHTMLView.m:
2852 (-[WebHTMLView accessibilityFocusedUIElement]):
2853 Implement this so that AppKit can use it from NSAccessibilityHandleFocusChanged.
2855 2005-01-05 Chris Blumenberg <cblu@apple.com>
2857 Fixed: <rdar://problem/3936865> REGRESSION: canvas.drawImage no longer scales properly
2861 * WebCoreSupport.subproj/WebImageData.m: use the height of the inRect instead of the fromRect when setting the origin of the context
2863 2005-01-04 Chris Blumenberg <cblu@apple.com>
2865 Fixed: <rdar://problem/3928329> WebKit should pass nil for "language" to checkSpellingOfString:
2867 Reviewed by kocienda.
2869 * WebView.subproj/WebHTMLView.m:
2870 (-[WebHTMLView _isSelectionMisspelled]): pass nil not @"" for language
2872 2004-12-21 Maciej Stachowiak <mjs@apple.com>
2876 <rdar://problem/3888931> frame naming allows malicious site to bring up a window when you click on a link in another
2878 Implement a security check on name frame visbility. This is the
2879 same rule as mozilla. You can only target frames by name if you
2880 are in the same window, have the same domain as the frame or an
2881 ancestor, or if it's a top level window have the same domain as
2884 * WebView.subproj/WebFrame.m:
2885 (-[WebFrame _shouldAllowAccessFrom:]):
2886 (-[WebFrame _descendantFrameNamed:sourceFrame:]):
2887 (-[WebFrame findFrameNamed:]):
2888 * WebView.subproj/WebFramePrivate.h:
2889 * WebView.subproj/WebView.m:
2890 (-[WebView _findFrameInThisWindowNamed:sourceFrame:]):
2891 (-[WebView _findFrameNamed:sourceFrame:]):
2892 * WebView.subproj/WebViewPrivate.h:
2898 2004-12-20 Richard Williamson <rjw@apple.com>
2900 Add call to new API. ImageIO deprecated some older (although
2901 quite new!) API. This caused us to fail to build on 337 or later.
2903 Developers wanting to build on older versions of Tiger must define
2904 USE_DEPRECATED_IMAGESOURCE_API in WebImageData.m.
2908 * WebCoreSupport.subproj/WebImageData.m:
2909 (-[WebImageData propertiesAtIndex:]):
2911 2004-12-20 Richard Williamson <rjw@apple.com>
2913 Don't call Tiger SPI on Panther.
2917 * WebCoreSupport.subproj/WebTextRendererFactory.m:
2918 (+[WebTextRendererFactory createSharedFactory]):
2920 2004-12-20 Richard Williamson <rjw@apple.com>
2922 Fixed <rdar://problem/3884448> WebKit should turn on CG local font cache
2924 Enable mutli-tier font caching. We should see a performance boost with this
2929 * WebCoreSupport.subproj/WebTextRendererFactory.m:
2930 (+[WebTextRendererFactory createSharedFactory]):
2932 2004-12-20 Richard Williamson <rjw@apple.com>
2934 Fix image decoding to separately decode image meta data from actual image bits. I
2935 incorrectly consolidated decode of meta data and image bits resulting in a huge
2936 performance regression.
2938 Double size of WebCore cache on lower end machines. On the PLT run on machines with
2939 256MB of memory, too many images were being evicted, causing a re-decode on the PLT.
2940 Upping the lower limit of the cache size ensure that no images are evicted (this
2941 goes hand-in-hand with the change to the minimum object size from 32K to 40K).
2945 * WebCoreSupport.subproj/WebImageData.h:
2946 * WebCoreSupport.subproj/WebImageData.m:
2947 (+[WebImageData initialize]):
2948 (-[WebImageData _commonTermination]):
2949 (-[WebImageData _invalidateImages]):
2950 (-[WebImageData _invalidateImageProperties]):
2951 (-[WebImageData imageAtIndex:]):
2952 (-[WebImageData propertiesAtIndex:]):
2953 (-[WebImageData _cacheImages:allImages:]):
2954 (-[WebImageData decodeData:isComplete:callback:]):
2955 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
2956 * WebView.subproj/WebPreferences.m:
2957 (+[WebPreferences initialize]):
2959 2004-12-20 Richard Williamson <rjw@apple.com>
2961 Fixed build problem caused by change to ImageIO API.
2965 * WebCoreSupport.subproj/WebImageData.m:
2967 2004-12-19 Darin Adler <darin@apple.com>
2971 - some garbage collection fixes
2973 * Misc.subproj/WebNSObjectExtras.h: (WebCFAutorelease): Replaced the old WebNSRetainCFRelease with this
2974 much-easier-to-understand function cribbed from what David Harrison did in WebCore.
2976 * Misc.subproj/WebKitNSStringExtras.m: (+[NSString _web_encodingForResource:]): Use CFRelease here to
2977 get rid of an unnecessary use of WebNSRetainCFRelease.
2978 * Misc.subproj/WebNSURLExtras.m:
2979 (+[NSURL _web_URLWithData:relativeToURL:]): Use WebCFAutorelease instead of WebNSRetainCFRelease and autorelease.
2980 (-[NSURL _web_URLWithLowercasedScheme]): Ditto.
2981 (-[NSString _web_mapHostNameWithRange:encode:makeString:]): Use WebCFAutorelease here; the old code would not
2982 work correctly under GC.
2983 * Plugins.subproj/WebNetscapePluginPackage.m: (+[WebNetscapePluginPackage preferredLocalizationName]):
2984 Use WebCFAutorelease here; the old code would not work correctly under GC.
2986 2004-12-18 Chris Blumenberg <cblu@apple.com>
2988 Fixed: <rdar://problem/3766915> PDF content needs search to work
2990 Reviewed by kevin, john.
2992 * WebView.subproj/WebPDFView.m:
2993 (-[WebPDFView searchFor:direction:caseSensitive:wrap:]): implemented
2994 (-[WebPDFView takeFindStringFromSelection:]): new
2995 (-[WebPDFView jumpToSelection:]): new
2996 (-[WebPDFView validateUserInterfaceItem:]): new
2998 2004-12-17 Richard Williamson <rjw@apple.com>
3000 Make image decoding as lazy as possible for non threaded case; in some cases
3001 can avoid unnecessary decoding work.
3005 * WebCoreSupport.subproj/WebImageData.h:
3006 * WebCoreSupport.subproj/WebImageData.m:
3007 (-[WebImageData imageAtIndex:]):
3008 (-[WebImageData propertiesAtIndex:]):
3009 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
3011 2004-12-16 John Sullivan <sullivan@apple.com>
3015 One of the assertions from my previous checkin fired, so
3016 I made this code more robust.
3018 * WebCoreSupport.subproj/WebBridge.m:
3019 (-[WebBridge _preferences]):
3020 new helper method, returns global preferences if webView is nil,
3021 otherwise returns webView's preferences
3022 (-[WebBridge getObjectCacheSize]):
3023 use new helper method, remove now-unnecessary assert
3024 (-[WebBridge _retrieveKeyboardUIModeFromPreferences:]):
3027 2004-12-16 John Sullivan <sullivan@apple.com>
3031 - fixed <rdar://problem/3913523> Mail needs SPI for adding tooltips to links
3032 - cleaned up some calls to +[WebPreferences standardPreferences] that should
3033 have been using -[WebView preferences]
3035 This adds a (currently SPI-only) new feature that shows the URL of the link
3036 under the mouse in a toolTip. I tested this in Safari, but we're adding this
3037 feature for Mail, and Safari won't use it (unless of course you know the
3038 magic defaults command)
3040 * Plugins.subproj/WebBaseNetscapePluginView.m:
3041 (-[WebBaseNetscapePluginView start]):
3042 use -[WebView preferences] instead of +[WebPreferences standardPreferences]
3044 * WebCoreSupport.subproj/WebBridge.m:
3045 (-[WebBridge getObjectCacheSize]):
3047 (-[WebBridge _retrieveKeyboardUIModeFromPreferences:]):
3050 * WebView.subproj/WebBaseResourceHandleDelegate.m:
3051 (-[WebBaseResourceHandleDelegate willCacheResponse:]):
3054 * WebView.subproj/WebFrame.m:
3055 (-[WebFrame _transitionToCommitted:]):
3057 (-[WebFrame _loadItem:withLoadType:]):
3060 * WebView.subproj/WebHTMLViewInternal.h:
3061 private struct now keeps ivar for cached value of showsURLsInToolTips
3062 so it doesn't have look it up in preferences a zillion times
3064 * WebView.subproj/WebHTMLView.m:
3065 (-[WebHTMLView _updateMouseoverWithEvent:]):
3066 if private->showsURLsInToolTips is true, set the toolTip from the URL.
3067 Fall back to showing the title attribute in case some element has a title
3068 attribute but no URL.
3069 (-[WebHTMLView _mayStartDragAtEventLocation:]):
3070 use -[WebView preferences] instead of +[WebPreferences standardPreferences]
3071 (-[WebHTMLView _resetCachedWebPreferences:]):
3072 get a fresh value for private->showsURLsInToolTips
3073 (-[WebHTMLView initWithFrame:]):
3074 call _resetCachedWebPreferences the first time, and listen for WebPreferencesChanged notifications
3075 (-[WebHTMLView _handleStyleKeyEquivalent:]):
3076 use -[WebView preferences] instead of +[WebPreferences standardPreferences]
3078 * WebView.subproj/WebPreferenceKeysPrivate.h:
3079 added WebKitShowsURLsInToolTipsPreferenceKey
3081 * WebView.subproj/WebPreferences.m:
3082 (+[WebPreferences initialize]):
3083 initialize WebKitShowsURLsInToolTipsPreferenceKey to 0
3084 (-[WebPreferences showsURLsInToolTips]):
3085 return WebKitShowsURLsInToolTipsPreferenceKey value
3086 (-[WebPreferences setShowsURLsInToolTips:]):
3087 set WebKitShowsURLsInToolTipsPreferenceKey value
3089 * WebView.subproj/WebPreferencesPrivate.h:
3090 add declarations for showsURLsInToolTips and setter
3092 * WebView.subproj/WebTextView.m:
3093 (-[WebTextView _preferences]):
3094 new helper method that gets preferences from webView if there is a webView,
3095 otherwise gets global preferences
3096 (-[WebTextView setFixedWidthFont]):
3097 use new helper method rather than always using global preferences
3098 (-[WebTextView initWithFrame:]):
3099 observe WebPreferencesChangedNotification instead of unnecessarily general
3100 NSUserDefaultsChangedNotification
3102 2004-12-14 John Sullivan <sullivan@apple.com>
3106 - rest of WebKit fix for <rdar://problem/3790011> undoable operations all say "Undo"
3107 in the menu, no specific action names
3109 I only know of one loose end currently, which I wrote up as <rdar://problem/3920971> Edit menu
3110 says "Undo Change Attributes" when it should say "Undo Set Color", from font panel
3112 * WebView.subproj/WebHTMLView.m:
3113 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]):
3114 use WebUndoActionSetColor when dragging color swatch
3115 (-[WebHTMLView _applyStyleToSelection:withUndoAction:]):
3116 new WebUndoAction parameter, passed across bridge
3117 (-[WebHTMLView _toggleBold]):
3118 use WebUndoActionSetFont
3119 (-[WebHTMLView _toggleItalic]):
3120 use WebUndoActionSetFont
3121 (-[WebHTMLView pasteFont:]):
3122 use WebUndoActionPasteFont
3123 (-[WebHTMLView changeFont:]):
3124 use WebUndoActionSetFont
3125 (-[WebHTMLView changeAttributes:]):
3126 use WebUndoActionChangeAttributes
3127 (-[WebHTMLView _undoActionFromColorPanelWithSelector:]):
3128 new method, returns WebUndoActionSetBackgroundColor or WebUndoActionSetColor
3129 (-[WebHTMLView _changeCSSColorUsingSelector:inRange:]):
3130 now calls _undoActionFromColorPanelWithSelector
3131 (-[WebHTMLView changeColor:]):
3132 use WebUndoActionSetColor
3133 (-[WebHTMLView _alignSelectionUsingCSSValue:withUndoAction:]):
3134 new WebUndoAction parameter, passed through
3135 (-[WebHTMLView alignCenter:]):
3136 use WebUndoActionCenter
3137 (-[WebHTMLView alignJustified:]):
3138 use WebUndoActionJustify
3139 (-[WebHTMLView alignLeft:]):
3140 use WebUndoActionAlignLeft
3141 (-[WebHTMLView alignRight:]):
3142 use WebUndoActionAlignRight
3143 (-[WebHTMLView subscript:]):
3144 use WebUndoActionAlignSubscript
3145 (-[WebHTMLView superscript:]):
3146 use WebUndoActionAlignSuperscript
3147 (-[WebHTMLView unscript:]):
3148 use WebUndoActionAlignUnscript
3149 (-[WebHTMLView underline:]):
3150 use WebUndoActionAlignUnderline
3152 * WebView.subproj/WebView.m:
3153 (-[WebView setTypingStyle:]):
3154 pass WebUndoActionUnspecified through as new parameter since we don't have any more specific info
3155 (-[WebView applyStyle:]):
3158 2004-12-14 Richard Williamson <rjw@apple.com>
3160 Helper method to get URL of plugin view.
3164 * Misc.subproj/WebNSViewExtras.m:
3165 (-[NSView _webViewURL]):
3167 2004-12-14 Vicki Murley <vicki@apple.com>
3171 <rdar://problem/3855573> Remove reference to "WebScriptMethods" from WebScriptObject.h comments
3173 * Plugins.subproj/WebPlugin.h: changed instances of "WebScriptMethods" to "WebScripting" in this
3174 file as well, as requested in the bug report
3176 2004-12-13 Maciej Stachowiak <mjs@apple.com>
3180 <rdar://problem/3912488> Mail throws an exception after backspacing "away" inline input
3182 * WebView.subproj/WebHTMLView.m:
3183 (-[WebHTMLView setMarkedText:selectedRange:]): Don't try to set a selection if
3184 we end up with no marked text, since that case fails and is unnecessary.
3186 2004-12-14 John Sullivan <sullivan@apple.com>
3190 - WebKit part of plumbing of fix for <rdar://problem/3790011> undoable operations all say "Undo" in the menu,
3191 no specific action names
3193 * WebCoreSupport.subproj/WebBridge.m:
3194 (-[WebBridge nameForUndoAction:]):
3195 renamed from setUndoActionNamePlaceholder, replaced arbitrary integers with enum values, and
3196 handled new "unspecified" case as a fallback
3198 2004-12-13 Richard Williamson <rjw@apple.com>
3200 Fixed <rdar://problem/3887767> LiveConnect doesn't propagate Java exceptions back to JavaScript (prevents security suite from running)
3204 * Plugins.subproj/WebJavaPlugIn.h:
3206 2004-12-13 John Sullivan <sullivan@apple.com>
3210 - fixed <rdar://problem/3744583> Safari can not quit when a webpage has a login sheet
3211 that can't be cancelled.
3213 The proper fix for this would be to change the class of the NSPanel in the nib file.
3214 But since this would require a localization change, I did a run-time hack instead.
3215 I'll file a bug about fixing this when we're out of localization freeze.
3217 * Panels.subproj/WebAuthenticationPanel.m:
3218 (-[WebAuthenticationPanel replacePanelWithSubclassHack]):
3219 new method, creates a new panel that is identical to the original one except that
3220 it's our subclass, and moves all the subviews of the original panel into the new one.
3221 (-[WebAuthenticationPanel loadNib]):
3222 call replacePanelWithSubclassHack
3223 (-[NonBlockingPanel _blocksActionWhenModal:]):
3224 only method of new NSPanel subclass; overrides this SPI to allow the user to quit
3225 when one of these panels/sheets is on-screen
3227 2004-12-10 Richard Williamson <rjw@apple.com>
3229 Fixed <rdar://problem/3898708> REGRESSION (8A314-8A317): World Clock's short hand not displayed (ImageIO problem with PDF?)
3230 Fixed <rdar://problem/3914012> use CG directly for pdf images not ImageIO
3232 Create a PDF document and draw that instead of using ImageIO to create a rasterized image.
3236 * WebCoreSupport.subproj/WebImageData.h:
3237 * WebCoreSupport.subproj/WebImageData.m:
3238 (-[WebImageData setIsPDF:]):
3239 (-[WebImageData isPDF]):
3240 (-[WebImageData dealloc]):
3241 (-[WebImageData decodeData:isComplete:callback:]):
3242 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
3243 (-[WebImageData size]):
3244 (-[WebImageData animate]):
3245 (-[WebImageData _createPDFWithData:]):
3246 (-[WebImageData _PDFDocumentRef]):
3247 (-[WebImageData _PDFDrawInContext:]):
3248 (-[WebImageData _PDFDrawFromRect:toRect:operation:alpha:flipped:context:]):
3249 * WebCoreSupport.subproj/WebImageRenderer.h:
3250 * WebCoreSupport.subproj/WebImageRenderer.m:
3251 (-[WebImageRenderer size]):
3252 (-[WebImageRenderer incrementalLoadWithBytes:length:complete:callback:]):
3253 (-[WebImageRenderer drawImageInRect:fromRect:compositeOperator:context:]):
3256 2004-12-10 John Sullivan <sullivan@apple.com>
3260 - fixed <rdar://problem/3855127> Error while printing w/o sheet, then window is left in a bad state,
3261 if there's no default printer set
3263 * WebView.subproj/WebHTMLView.m:
3264 (-[WebHTMLView beginDocument]):
3265 Our implementation of knowsPageRange puts the WebHTMLView into a special "printing mode". We must
3266 exit the "printing mode" to return to normal behavior. This is normally done in endDocument.
3267 However, it turns out that if there's an exception in [super beginDocument], then endDocument
3268 will not be called (lame-o AppKit API). So, we handle that case by catching the exception and
3269 exiting the "printing mode" in beginDocument when it occurs.
3271 2004-12-09 Richard Williamson <rjw@apple.com>
3273 Fixed <rdar://problem/3905789> Burn Disc image vibrates rapidly
3275 Restrict our support for animated images to GIF. We used to
3276 use presence of more than one image in a resource to determine
3277 if an image should be animated. This caused us to animate icns!
3278 If we ever support any other animated image formats we'll have
3283 * WebCoreSupport.subproj/WebImageData.h:
3284 * WebCoreSupport.subproj/WebImageData.m:
3285 (-[WebImageData shouldAnimate]):
3286 * WebCoreSupport.subproj/WebImageRenderer.m:
3287 (-[WebImageRenderer _startOrContinueAnimationIfNecessary]):
3289 2004-12-09 Richard Williamson <rjw@apple.com>
3291 Make WebPluginDatabase.h private (Dashboard needs SPI).
3293 * WebKit.pbproj/project.pbxproj:
3297 2004-12-09 Chris Blumenberg <cblu@apple.com>
3299 Workaround for this exception being raised during download:
3300 [WebDownload connection:willStopBufferingData:]: selector not recognized
3304 * Misc.subproj/WebDownload.m:
3305 (-[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.
3307 2004-12-08 Richard Williamson <rjw@apple.com>
3309 Fixed <rdar://problem/3911719> REGRESSION: Images no longer scale vertically
3310 Account for scaling correctly when taking into account progressively
3313 Also added implementation of repetition count for animated GIF images.
3314 Also replaced strings with new constants from CFImageProperties.h
3316 Also fixed possible problem with -(NSSize)size implementation,
3317 relevant to Panther only.
3321 * WebCoreSupport.subproj/WebImageData.m:
3322 (-[WebImageData _floatProperty:type:at:]):
3323 (-[WebImageData _frameDurationAt:]):
3324 (-[WebImageData _repetitionCount]):
3325 * WebCoreSupport.subproj/WebImageRenderer.m:
3326 (-[WebImageRenderer size]):
3328 2004-12-08 Chris Blumenberg <cblu@apple.com>
3330 Removed NPN wrappers since these no longer need to be defined to make the QT plug-in work
3331 since 3828925 has been fixed.
3335 * Plugins.subproj/WebNetscapePluginPackage.m:
3336 (-[WebNetscapePluginPackage load]): use under-bar symbols since non-under-bar wrappers have been removed
3337 * Plugins.subproj/npapi.m: removed NPN wrappers
3338 * WebKit.exp: removed symbols
3340 2004-12-08 Ken Kocienda <kocienda@apple.com>
3344 * WebView.subproj/WebHTMLView.m:
3345 (-[WebHTMLView drawRect:]): Work around for this bug:
3346 <rdar://problem/3908282> REGRESSION (Mail): No drag image dragging selected text in Blot and Mail
3347 The reason for the workaround is that this method is called explicitly from the code
3348 to generate a drag image, and at that time, getRectsBeingDrawn:count: will return a zero count.
3349 This code change uses the passed-in rect when the count is zero.
3351 2004-12-07 Administrator <cblu@apple.com>
3353 Support for fix for:
3354 <rdar://problem/3734309> Safari doesn't open folders in title bar menu with non-Roman names using Cmd+click
3358 * Misc.subproj/WebNSURLExtras.h:
3359 * Misc.subproj/WebNSURLExtras.m:
3360 (+[NSURL _web_URLWithUserTypedString:relativeToURL:]): renamed to take relativeToURL parameter
3361 (+[NSURL _web_URLWithUserTypedString:]): call _web_URLWithUserTypedString:relativeToURL: with nil for URL
3363 2004-12-07 Richard Williamson <rjw@apple.com>
3365 Fixed <rdar://problem/3905564> REGRESSION (Tiger); in History menu, pixel size appears but is wrong for standalone images in Safari.
3369 * WebCoreSupport.subproj/WebImageRenderer.m:
3370 (-[WebImageRenderer size]):
3372 2004-12-07 Richard Williamson <rjw@apple.com>
3374 Support threaded image decoding on machines w/ >= 2 CPUs.
3376 Reviewed by Maciej and Chris.
3378 * Misc.subproj/WebKitSystemBits.h:
3379 * Misc.subproj/WebKitSystemBits.m:
3380 (WebSystemMainMemory):
3382 * WebCoreSupport.subproj/WebImageData.h:
3383 * WebCoreSupport.subproj/WebImageData.m:
3384 (+[WebImageData initialize]):
3385 (-[WebImageData init]):
3386 (-[WebImageData _commonTermination]):
3387 (-[WebImageData dealloc]):
3388 (-[WebImageData _invalidateImages]):
3389 (-[WebImageData _imageSourceOptions]):
3390 (-[WebImageData imageAtIndex:]):
3391 (-[WebImageData propertiesAtIndex:]):
3392 (-[WebImageData _createImages]):
3393 (-[WebImageData decodeData:isComplete:callback:]):
3394 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
3396 (-[WebImageData tileInRect:fromPoint:context:]):
3397 (-[WebImageData isNull]):
3398 (-[WebImageData size]):
3399 (-[WebImageData _frameDurationAt:]):
3400 (-[WebImageData _frameDuration]):
3401 (+[WebImageData stopAnimationsInView:]):
3402 (-[WebImageData addAnimatingRenderer:inView:]):
3403 (-[WebImageData removeAnimatingRenderer:]):
3404 * WebCoreSupport.subproj/WebImageDecodeItem.h: Added.
3405 * WebCoreSupport.subproj/WebImageDecodeItem.m: Added.
3406 (+[WebImageDecodeItem decodeItemWithImage:data:isComplete:callback:]):
3407 (-[WebImageDecodeItem initWithImage:data:isComplete:callback:]):
3408 (-[WebImageDecodeItem finalize]):
3409 (-[WebImageDecodeItem dealloc]):
3410 * WebCoreSupport.subproj/WebImageDecoder.h: Added.
3411 * WebCoreSupport.subproj/WebImageDecoder.m: Added.
3412 (decoderNotifications):
3413 (+[WebImageDecoder initialize]):
3414 (+[WebImageDecoder notifyMainThread]):
3415 (+[WebImageDecoder sharedDecoder]):
3416 (+[WebImageDecoder performDecodeWithImage:data:isComplete:callback:]):
3417 (+[WebImageDecoder imageDecodesPending]):
3418 (+[WebImageDecoder decodeComplete:status:]):
3419 (-[WebImageDecoder init]):
3420 (-[WebImageDecoder dealloc]):
3421 (-[WebImageDecoder finalize]):
3422 (-[WebImageDecoder removeItem]):
3423 (-[WebImageDecoder addItem:]):
3424 (-[WebImageDecoder decodeItem:]):
3426 (startDecoderThread):
3427 * WebCoreSupport.subproj/WebImageRenderer.m:
3428 (-[WebImageRenderer initWithData:MIMEType:]):
3429 (-[WebImageRenderer initWithContentsOfFile:]):
3430 (-[WebImageRenderer incrementalLoadWithBytes:length:complete:callback:]):
3431 (-[WebInternalImage incrementalLoadWithBytes:length:complete:callback:]):
3432 * WebKit.pbproj/project.pbxproj:
3433 * WebView.subproj/WebImageRepresentation.m:
3434 (-[WebImageRepresentation receivedData:withDataSource:]):
3435 (-[WebImageRepresentation receivedError:withDataSource:]):
3436 (-[WebImageRepresentation finishedLoadingWithDataSource:]):
3438 2004-12-07 Chris Blumenberg <cblu@apple.com>
3440 Fix for performance regression.
3444 * WebCoreSupport.subproj/WebBridge.m:
3445 (-[WebBridge objectLoadedFromCacheWithURL:response:data:]): construct the WebResource without copying the data
3447 2004-12-07 Chris Blumenberg <cblu@apple.com>
3449 Fixed: <rdar://problem/3909243> REGRESSION: large standalone images stop loading part way through
3453 * WebView.subproj/WebBaseResourceHandleDelegate.h:
3454 * WebView.subproj/WebMainResourceClient.m:
3455 (-[WebMainResourceClient addData:]): call super so it buffers the data
3457 2004-12-06 Richard Williamson <rjw@apple.com>
3459 Use the AppKit's font rendering mode. This fixes 3905347, but we still need to track down
3460 and resolve why metrics have changed for Courier. This may be caused by changes in
3465 * WebCoreSupport.subproj/WebTextRenderer.m:
3466 (_AppkitGetCGRenderingMode):
3470 2004-12-06 Chris Blumenberg <cblu@apple.com>
3472 Forgot to commit copied header.
3474 * DOM.subproj/DOMPrivate.h:
3476 2004-12-06 Chris Blumenberg <cblu@apple.com>
3478 Fixed: <rdar://problem/3907381> NSURLConnection and WebKit buffer 2 copies of incoming data
3482 * WebView.subproj/WebBaseResourceHandleDelegate.h:
3483 * WebView.subproj/WebBaseResourceHandleDelegate.m:
3484 (+[WebBaseResourceHandleDelegate initialize]): cache check to see if Foundation supports access to its buffered data
3485 (-[WebBaseResourceHandleDelegate addData:]): don't buffer data if Foundation is buffering it for us
3486 (-[WebBaseResourceHandleDelegate saveResource]): when creating a WebResource, pass NO for copyData since we know it won't be mutated
3487 (-[WebBaseResourceHandleDelegate resourceData]): return the buffered data from the connection if it supports it
3488 (-[WebBaseResourceHandleDelegate willStopBufferingData:]): make a mutable copy of the data from NSURLConnection so we can continue buffering
3489 (-[WebBaseResourceHandleDelegate willCacheResponse:]): removed optimization that used the cached response data to save the resource since that is obsolete by this change
3490 (-[WebBaseResourceHandleDelegat