1 2004-12-14 John Sullivan <sullivan@apple.com>
5 - WebKit part of fix for <rdar://problem/3790011> undoable operations all say "Undo" in the menu,
6 no specific action names
8 * WebCoreSupport.subproj/WebBridge.m:
9 (-[WebBridge nameForUndoAction:]):
10 renamed from setUndoActionNamePlaceholder, replaced arbitrary integers with enum values, and
11 handled new "unspecified" case as a fallback
13 2004-12-13 Richard Williamson <rjw@apple.com>
15 Fixed <rdar://problem/3887767> LiveConnect doesn't propagate Java exceptions back to JavaScript (prevents security suite from running)
19 * Plugins.subproj/WebJavaPlugIn.h:
21 2004-12-13 John Sullivan <sullivan@apple.com>
25 - fixed <rdar://problem/3744583> Safari can not quit when a webpage has a login sheet
26 that can't be cancelled.
28 The proper fix for this would be to change the class of the NSPanel in the nib file.
29 But since this would require a localization change, I did a run-time hack instead.
30 I'll file a bug about fixing this when we're out of localization freeze.
32 * Panels.subproj/WebAuthenticationPanel.m:
33 (-[WebAuthenticationPanel replacePanelWithSubclassHack]):
34 new method, creates a new panel that is identical to the original one except that
35 it's our subclass, and moves all the subviews of the original panel into the new one.
36 (-[WebAuthenticationPanel loadNib]):
37 call replacePanelWithSubclassHack
38 (-[NonBlockingPanel _blocksActionWhenModal:]):
39 only method of new NSPanel subclass; overrides this SPI to allow the user to quit
40 when one of these panels/sheets is on-screen
42 2004-12-10 Richard Williamson <rjw@apple.com>
44 Fixed <rdar://problem/3898708> REGRESSION (8A314-8A317): World Clock's short hand not displayed (ImageIO problem with PDF?)
45 Fixed <rdar://problem/3914012> use CG directly for pdf images not ImageIO
47 Create a PDF document and draw that instead of using ImageIO to create a rasterized image.
51 * WebCoreSupport.subproj/WebImageData.h:
52 * WebCoreSupport.subproj/WebImageData.m:
53 (-[WebImageData setIsPDF:]):
54 (-[WebImageData isPDF]):
55 (-[WebImageData dealloc]):
56 (-[WebImageData decodeData:isComplete:callback:]):
57 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
58 (-[WebImageData size]):
59 (-[WebImageData animate]):
60 (-[WebImageData _createPDFWithData:]):
61 (-[WebImageData _PDFDocumentRef]):
62 (-[WebImageData _PDFDrawInContext:]):
63 (-[WebImageData _PDFDrawFromRect:toRect:operation:alpha:flipped:context:]):
64 * WebCoreSupport.subproj/WebImageRenderer.h:
65 * WebCoreSupport.subproj/WebImageRenderer.m:
66 (-[WebImageRenderer size]):
67 (-[WebImageRenderer incrementalLoadWithBytes:length:complete:callback:]):
68 (-[WebImageRenderer drawImageInRect:fromRect:compositeOperator:context:]):
71 2004-12-10 John Sullivan <sullivan@apple.com>
75 - fixed <rdar://problem/3855127> Error while printing w/o sheet, then window is left in a bad state,
76 if there's no default printer set
78 * WebView.subproj/WebHTMLView.m:
79 (-[WebHTMLView beginDocument]):
80 Our implementation of knowsPageRange puts the WebHTMLView into a special "printing mode". We must
81 exit the "printing mode" to return to normal behavior. This is normally done in endDocument.
82 However, it turns out that if there's an exception in [super beginDocument], then endDocument
83 will not be called (lame-o AppKit API). So, we handle that case by catching the exception and
84 exiting the "printing mode" in beginDocument when it occurs.
86 2004-12-09 Richard Williamson <rjw@apple.com>
88 Fixed <rdar://problem/3905789> Burn Disc image vibrates rapidly
90 Restrict our support for animated images to GIF. We used to
91 use presence of more than one image in a resource to determine
92 if an image should be animated. This caused us to animate icns!
93 If we ever support any other animated image formats we'll have
98 * WebCoreSupport.subproj/WebImageData.h:
99 * WebCoreSupport.subproj/WebImageData.m:
100 (-[WebImageData shouldAnimate]):
101 * WebCoreSupport.subproj/WebImageRenderer.m:
102 (-[WebImageRenderer _startOrContinueAnimationIfNecessary]):
104 2004-12-09 Richard Williamson <rjw@apple.com>
106 Make WebPluginDatabase.h private (Dashboard needs SPI).
108 * WebKit.pbproj/project.pbxproj:
112 2004-12-09 Chris Blumenberg <cblu@apple.com>
114 Workaround for this exception being raised during download:
115 [WebDownload connection:willStopBufferingData:]: selector not recognized
119 * Misc.subproj/WebDownload.m:
120 (-[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.
122 2004-12-08 Richard Williamson <rjw@apple.com>
124 Fixed <rdar://problem/3911719> REGRESSION: Images no longer scale vertically
125 Account for scaling correctly when taking into account progressively
128 Also added implementation of repetition count for animated GIF images.
129 Also replaced strings with new constants from CFImageProperties.h
131 Also fixed possible problem with -(NSSize)size implementation,
132 relevant to Panther only.
136 * WebCoreSupport.subproj/WebImageData.m:
137 (-[WebImageData _floatProperty:type:at:]):
138 (-[WebImageData _frameDurationAt:]):
139 (-[WebImageData _repetitionCount]):
140 * WebCoreSupport.subproj/WebImageRenderer.m:
141 (-[WebImageRenderer size]):
143 2004-12-08 Chris Blumenberg <cblu@apple.com>
145 Removed NPN wrappers since these no longer need to be defined to make the QT plug-in work
146 since 3828925 has been fixed.
150 * Plugins.subproj/WebNetscapePluginPackage.m:
151 (-[WebNetscapePluginPackage load]): use under-bar symbols since non-under-bar wrappers have been removed
152 * Plugins.subproj/npapi.m: removed NPN wrappers
153 * WebKit.exp: removed symbols
155 2004-12-08 Ken Kocienda <kocienda@apple.com>
159 * WebView.subproj/WebHTMLView.m:
160 (-[WebHTMLView drawRect:]): Work around for this bug:
161 <rdar://problem/3908282> REGRESSION (Mail): No drag image dragging selected text in Blot and Mail
162 The reason for the workaround is that this method is called explicitly from the code
163 to generate a drag image, and at that time, getRectsBeingDrawn:count: will return a zero count.
164 This code change uses the passed-in rect when the count is zero.
166 2004-12-07 Administrator <cblu@apple.com>
169 <rdar://problem/3734309> Safari doesn't open folders in title bar menu with non-Roman names using Cmd+click
173 * Misc.subproj/WebNSURLExtras.h:
174 * Misc.subproj/WebNSURLExtras.m:
175 (+[NSURL _web_URLWithUserTypedString:relativeToURL:]): renamed to take relativeToURL parameter
176 (+[NSURL _web_URLWithUserTypedString:]): call _web_URLWithUserTypedString:relativeToURL: with nil for URL
178 2004-12-07 Richard Williamson <rjw@apple.com>
180 Fixed <rdar://problem/3905564> REGRESSION (Tiger); in History menu, pixel size appears but is wrong for standalone images in Safari.
184 * WebCoreSupport.subproj/WebImageRenderer.m:
185 (-[WebImageRenderer size]):
187 2004-12-07 Richard Williamson <rjw@apple.com>
189 Support threaded image decoding on machines w/ >= 2 CPUs.
191 Reviewed by Maciej and Chris.
193 * Misc.subproj/WebKitSystemBits.h:
194 * Misc.subproj/WebKitSystemBits.m:
195 (WebSystemMainMemory):
197 * WebCoreSupport.subproj/WebImageData.h:
198 * WebCoreSupport.subproj/WebImageData.m:
199 (+[WebImageData initialize]):
200 (-[WebImageData init]):
201 (-[WebImageData _commonTermination]):
202 (-[WebImageData dealloc]):
203 (-[WebImageData _invalidateImages]):
204 (-[WebImageData _imageSourceOptions]):
205 (-[WebImageData imageAtIndex:]):
206 (-[WebImageData propertiesAtIndex:]):
207 (-[WebImageData _createImages]):
208 (-[WebImageData decodeData:isComplete:callback:]):
209 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
211 (-[WebImageData tileInRect:fromPoint:context:]):
212 (-[WebImageData isNull]):
213 (-[WebImageData size]):
214 (-[WebImageData _frameDurationAt:]):
215 (-[WebImageData _frameDuration]):
216 (+[WebImageData stopAnimationsInView:]):
217 (-[WebImageData addAnimatingRenderer:inView:]):
218 (-[WebImageData removeAnimatingRenderer:]):
219 * WebCoreSupport.subproj/WebImageDecodeItem.h: Added.
220 * WebCoreSupport.subproj/WebImageDecodeItem.m: Added.
221 (+[WebImageDecodeItem decodeItemWithImage:data:isComplete:callback:]):
222 (-[WebImageDecodeItem initWithImage:data:isComplete:callback:]):
223 (-[WebImageDecodeItem finalize]):
224 (-[WebImageDecodeItem dealloc]):
225 * WebCoreSupport.subproj/WebImageDecoder.h: Added.
226 * WebCoreSupport.subproj/WebImageDecoder.m: Added.
227 (decoderNotifications):
228 (+[WebImageDecoder initialize]):
229 (+[WebImageDecoder notifyMainThread]):
230 (+[WebImageDecoder sharedDecoder]):
231 (+[WebImageDecoder performDecodeWithImage:data:isComplete:callback:]):
232 (+[WebImageDecoder imageDecodesPending]):
233 (+[WebImageDecoder decodeComplete:status:]):
234 (-[WebImageDecoder init]):
235 (-[WebImageDecoder dealloc]):
236 (-[WebImageDecoder finalize]):
237 (-[WebImageDecoder removeItem]):
238 (-[WebImageDecoder addItem:]):
239 (-[WebImageDecoder decodeItem:]):
241 (startDecoderThread):
242 * WebCoreSupport.subproj/WebImageRenderer.m:
243 (-[WebImageRenderer initWithData:MIMEType:]):
244 (-[WebImageRenderer initWithContentsOfFile:]):
245 (-[WebImageRenderer incrementalLoadWithBytes:length:complete:callback:]):
246 (-[WebInternalImage incrementalLoadWithBytes:length:complete:callback:]):
247 * WebKit.pbproj/project.pbxproj:
248 * WebView.subproj/WebImageRepresentation.m:
249 (-[WebImageRepresentation receivedData:withDataSource:]):
250 (-[WebImageRepresentation receivedError:withDataSource:]):
251 (-[WebImageRepresentation finishedLoadingWithDataSource:]):
253 2004-12-07 Chris Blumenberg <cblu@apple.com>
255 Fix for performance regression.
259 * WebCoreSupport.subproj/WebBridge.m:
260 (-[WebBridge objectLoadedFromCacheWithURL:response:data:]): construct the WebResource without copying the data
262 2004-12-07 Chris Blumenberg <cblu@apple.com>
264 Fixed: <rdar://problem/3909243> REGRESSION: large standalone images stop loading part way through
268 * WebView.subproj/WebBaseResourceHandleDelegate.h:
269 * WebView.subproj/WebMainResourceClient.m:
270 (-[WebMainResourceClient addData:]): call super so it buffers the data
272 2004-12-06 Richard Williamson <rjw@apple.com>
274 Use the AppKit's font rendering mode. This fixes 3905347, but we still need to track down
275 and resolve why metrics have changed for Courier. This may be caused by changes in
280 * WebCoreSupport.subproj/WebTextRenderer.m:
281 (_AppkitGetCGRenderingMode):
285 2004-12-06 Chris Blumenberg <cblu@apple.com>
287 Forgot to commit copied header.
289 * DOM.subproj/DOMPrivate.h:
291 2004-12-06 Chris Blumenberg <cblu@apple.com>
293 Fixed: <rdar://problem/3907381> NSURLConnection and WebKit buffer 2 copies of incoming data
297 * WebView.subproj/WebBaseResourceHandleDelegate.h:
298 * WebView.subproj/WebBaseResourceHandleDelegate.m:
299 (+[WebBaseResourceHandleDelegate initialize]): cache check to see if Foundation supports access to its buffered data
300 (-[WebBaseResourceHandleDelegate addData:]): don't buffer data if Foundation is buffering it for us
301 (-[WebBaseResourceHandleDelegate saveResource]): when creating a WebResource, pass NO for copyData since we know it won't be mutated
302 (-[WebBaseResourceHandleDelegate resourceData]): return the buffered data from the connection if it supports it
303 (-[WebBaseResourceHandleDelegate willStopBufferingData:]): make a mutable copy of the data from NSURLConnection so we can continue buffering
304 (-[WebBaseResourceHandleDelegate willCacheResponse:]): removed optimization that used the cached response data to save the resource since that is obsolete by this change
305 (-[WebBaseResourceHandleDelegate connection:willStopBufferingData:]): new callback from NSURLConnection, informs us that NSURLConnection has given up buffering
306 * WebView.subproj/WebDataSource.m:
307 (-[WebDataSource _receivedData:]): removed buffering code since that's done by NSURLConnection and the main client
308 (-[WebDataSource _setData:]): removed unnecessary cast since the resourceData ivar is now an NSData instead of NSMutableData
309 (-[WebDataSource data]): return resourceData ivar, else return the resourceData from the main client
310 * WebView.subproj/WebDataSourcePrivate.h:
311 * WebView.subproj/WebMainResourceClient.m:
312 (-[WebMainResourceClient releaseResources]): store resourceData on the data source so it can continue to have data after the main client has gone away
313 (-[WebMainResourceClient connection:didReceiveData:lengthReceived:]):don't call [dataSource data] just to get the length of data received since [dataSource data] can now cause data to be copied
314 (-[WebMainResourceClient connectionDidFinishLoading:]): ditto
315 * WebView.subproj/WebResource.m:
316 (-[WebResource initWithData:URL:MIMEType:textEncodingName:frameName:]): call following method with YES for copyData
317 (-[WebResource _initWithData:URL:MIMEType:textEncodingName:frameName:copyData:]): new initializer, allows caller to choose whether or not the data is copied
318 * WebView.subproj/WebResourcePrivate.h:
320 2004-12-06 Richard Williamson <rjw@apple.com>
322 Fixed <rdar://problem/3903749> REGRESSION (8A321): WebKit gets incorrect glyph metrics due to change in how AppKit uses CGFont
324 Use CGFontRef direction when both getting font metrics and drawing
325 glyphs, instead on depending on [NSFont set].
329 * WebCoreSupport.subproj/WebTextRenderer.m:
333 2004-12-06 Ken Kocienda <kocienda@apple.com>
339 <rdar://problem/3906930> Hitting return key in editable content inserts br elements instead of blocks
341 * WebView.subproj/WebHTMLView.m:
342 (-[WebHTMLView insertNewline:]): One-line change to call insert-block rather than insert-br method
345 2004-12-04 Darin Adler <darin@apple.com>
349 - fixed <rdar://problem/3846079> assertion failure in WebHTMLView(WebPrivate) removeTrackingRect at boots.com
350 - fixed <rdar://problem/3857737> REGRESSION (165-166): clicking in a text field that's scrolled to the right causes it to scroll all the way left
351 - fixed <rdar://problem/3861952> REGRESSION (165-166): selection is cleared when you start to scroll a frame
353 * WebView.subproj/WebHTMLViewInternal.h: Added handlingMouseDown flag.
354 * WebView.subproj/WebHTMLView.m:
355 (-[WebHTMLView _addTrackingRect:owner:userData:assumeInside:useTrackingNum:]): Allow passing in a
356 tracking number of 0, which means no existing tracking number.
357 (-[WebHTMLView _addTrackingRects:owner:userDataList:assumeInsideList:trackingNums:count:]): Ditto.
358 (-[WebHTMLView removeTrackingRect:]): Allow removing a tracking number of 0, which is a no-op.
359 (-[WebHTMLView _removeTrackingRects:count:]): Ditto.
360 (-[WebHTMLView acceptsFirstResponder]): Changed check to use handlingMouseDown flag instead of mouseDownEvent
361 field since that field is set up too early in the mouse down event handling process.
362 (-[WebHTMLView mouseDown:]): Added code to set handlingMouseDown flag.
364 - fixed part of <rdar://problem/3829808> Safari crashes when adding a DOM node that was removed from an XMLHTTP request result
366 * WebCoreSupport.subproj/WebBridge.m:
367 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
368 Changed code around so that it won't try to create a WebResource when the load fails.
370 - moved next/previous links into private structure with the rest of WebFrame fields
371 (We have a rule against putting new fields into obejcts that are part of our public API.)
373 * WebView.subproj/WebFrame.h: Remove _nextSibling and _previousSibling.
374 * WebView.subproj/WebFramePrivate.h: Added nextSibling and previousSibling fields to private class.
375 * WebView.subproj/WebFrame.m: Got rid of some tabs in this file.
376 (-[WebFrame _addChild:]): Changed code to use fields inside _private.
377 (-[WebFrame _removeChild:]): Ditto.
378 (-[WebFrame _nextFrameWithWrap:]): Ditto.
379 (-[WebFrame _previousFrameWithWrap:]): Ditto.
381 2004-12-04 Chris Blumenberg <cblu@apple.com>
384 <rdar://problem/3685766> WebDataSource is missing subresources when they use cached WebCore data
385 <rdar://problem/3722434> REGRESSION?: Assertion failure trying to drag image in iframe (itapema.sc.gov.br)
386 <rdar://problem/3903173> REGRESSION (172-TOT): assertion failure and crash in slotAllData logging into hotmail account
387 <rdar://problem/3902749> REGRESSION (Tiger): missing image symbol does not appear
389 Reviewed by darin, rjw, kocienda.
391 * WebCoreSupport.subproj/WebBridge.m:
392 (-[WebBridge objectLoadedFromCacheWithURL:response:data:]):
393 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
394 * WebCoreSupport.subproj/WebSubresourceClient.m:
395 (-[WebSubresourceClient didFinishLoading]):
396 * WebView.subproj/WebFrame.m:
397 (-[WebFrame _opened]):
398 (-[WebFrame _internalLoadDelegate]):
399 (-[WebFrame _sendResourceLoadDelegateMessagesForURL:response:length:]):
400 * WebView.subproj/WebFrameInternal.h:
402 2004-12-04 Darin Adler <darin@apple.com>
406 - fixed remaining bit of <rdar://problem/3814237> REGRESSION (Mail): Copy/paste style does not set color in Mail compose window
408 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView _styleFromFontAttributes:]): When translating from
409 an attribute dictionary to a CSS declaration, treat missing values according to the defaults defined
410 in <AppKit/NSAttributedString.h>. Before the code was treating them as "no change", which is incorrect.
412 * English.lproj/StringsNotToBeLocalized.txt: Add a string from the above change.
416 2004-12-03 Ken Kocienda <kocienda@apple.com>
420 Roll out some recent changes by Chris that caused a performance regression.
421 Fix is in hand, but it is a little risky this close to a submission. So,
422 we have decided to roll back the change with the regression and roll in
423 the new code after we submit.
425 * WebCoreSupport.subproj/WebBridge.m:
426 (-[WebBridge objectLoadedFromCacheWithURL:response:size:]):
427 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
428 * WebCoreSupport.subproj/WebSubresourceClient.m:
429 (-[WebSubresourceClient didFinishLoading]):
430 * WebView.subproj/WebFrame.m:
431 (-[WebFrame _opened]):
432 (-[WebFrame _internalLoadDelegate]):
433 * WebView.subproj/WebFrameInternal.h:
435 2004-12-02 Richard Williamson <rjw@apple.com>
437 Fixed <rdar://problem/3841332> REGRESSION (125.9-167u): repro crash in -[KWQPageState invalidate] involving .Mac images
439 Ensure that the document is cleared when leaving a non-HTML page. This ensures that
440 the b/f cache won't incorrectly trash the previous state when restoring.
444 * WebView.subproj/WebFrame.m:
445 (-[WebFrame _setState:]):
447 2004-12-02 Ken Kocienda <kocienda@apple.com>
451 <rdar://problem/3748323> Problem with -[WebView editableDOMRangeForPoint:] (-isFlipped not taken into account?)
452 <rdar://problem/3852590> REGRESSION (Mail): Dropped content appears in wrong place if Mail message is scrolled down
454 When implementing drag and drop, moveDragCaretToPoint: and editableDOMRangeForPoint: are used in
455 concert to track the mouse and determine a drop location, respectively. However, moveDragCaretToPoint:
456 did a conversion of the passed-in point to the document view's coordinate space, whereas
457 editableDOMRangeForPoint: did not. Now it does.
459 Note that I will need to coordinate with Grant to have him roll out some code in Mail that
460 attempts to work around this problem (unsuccessfully), and actually manages to block the
461 real fix (which needs to be in WebKit).
463 * WebView.subproj/WebView.m:
464 (-[WebView editableDOMRangeForPoint:]): Convert the passed-in point to the document view's coordinate space.
466 2004-12-02 Richard Williamson <rjw@apple.com>
468 Fixed <rdar://problem/3895810> FATAL ERROR: <WebTextRenderer: 0x9328a20> unable to initialize with font "Times-Roman 16.00 pt. S ....
470 We have a hack to replace Times with Times New Roman if we fail
471 to setup Times. If we then fail to setup Times New Roman we
472 don't attempt to further fallback to the system font. Added
473 that additional fallback.
477 * WebCoreSupport.subproj/WebTextRenderer.m:
478 (+[WebTextRenderer webFallbackFontFamily]):
479 (-[WebTextRenderer initWithFont:usingPrinterFont:]):
481 2004-12-02 Richard Williamson <rjw@apple.com>
483 Fixed build problem on Tiger8A821. Private macro and function
484 we were using have been deprecated,
488 * WebCoreSupport.subproj/WebTextRenderer.m:
489 (-[WebTextRenderer initWithFont:usingPrinterFont:]):
491 2004-12-01 Chris Blumenberg <cblu@apple.com>
493 Fixed: <rdar://problem/3879870> Flash Player unable to stop data stream from continuing to download by returning -1 from NPP_Write
494 Also improved and cleaned-up the plug-in stream termination code.
498 * Plugins.subproj/WebBaseNetscapePluginStream.h:
499 * Plugins.subproj/WebBaseNetscapePluginStream.m:
500 (+[WebBaseNetscapePluginStream reasonForError:]): return NPRES_DONE for a nil error
501 (-[WebBaseNetscapePluginStream _pluginCancelledConnectionError]): new, factored out from other methods
502 (-[WebBaseNetscapePluginStream errorForReason:]): new
503 (-[WebBaseNetscapePluginStream dealloc]): release MIME type
504 (-[WebBaseNetscapePluginStream setMIMEType:]): new
505 (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:]): call setMIMEType so we can use it in _pluginCancelledConnectionError, call renamed methods
506 (-[WebBaseNetscapePluginStream _destroyStream]): prepended underscore, replaced some early returns with asserts as the callers are now smarter
507 (-[WebBaseNetscapePluginStream _destroyStreamWithReason:]): prepended underscore, only call _destroyStream if there is an error or if the load is complete and there is no more data to be streamed
508 (-[WebBaseNetscapePluginStream cancelLoadWithError:]): new, overridden by subclasses to cancel the actual NSURLConnection
509 (-[WebBaseNetscapePluginStream destroyStreamWithError:]): new, calls _destroyStreamWithReason
510 (-[WebBaseNetscapePluginStream finishedLoadingWithData:]): call renamed methods
511 (-[WebBaseNetscapePluginStream _deliverData]): prepended underscore, call cancelLoadAndDestroyStreamWithError if NPP_Write returns a negative number
512 * Plugins.subproj/WebBaseNetscapePluginView.m:
513 (-[WebBaseNetscapePluginView destroyStream:reason:]): call cancelLoadAndDestroyStreamWithError
514 * Plugins.subproj/WebNetscapePluginRepresentation.m:
515 (-[WebNetscapePluginRepresentation receivedError:withDataSource:]): call destroyStreamWithError
516 (-[WebNetscapePluginRepresentation cancelLoadWithError:]): new, override method, tell the data source to stop loading
517 * Plugins.subproj/WebNetscapePluginStream.m:
518 (-[WebNetscapePluginStream cancelLoadWithError:]): new, override method, tell the loader to stop
519 (-[WebNetscapePluginStream stop]): call cancelLoadAndDestroyStreamWithError
520 (-[WebNetscapePluginConnectionDelegate isDone]): new
521 (-[WebNetscapePluginConnectionDelegate didReceiveResponse:]): call cancelLoadAndDestroyStreamWithError
522 (-[WebNetscapePluginConnectionDelegate didFailWithError:]): call destroyStreamWithError
524 2004-12-01 Kevin Decker <kdecker@apple.com>
526 Reviewed by Harrison.
528 Fixed: <rdar://problem/3228878> potential performance problem in finding in large framesets
530 Got rid of O(N^2) conditions in _nextSibling and _previousSibling of where we were looking up self in the parent array of frames.
532 * WebView.subproj/WebFrame.h: Added two new pointers, one for the previous kid and one for the next kid
533 * WebView.subproj/WebFrame.m:
534 (-[WebFrame _addChild:]): Updates the previous frame and the next frame after this child
535 (-[WebFrame _removeChild:]): ditto
536 (-[WebFrame _nextSibling]): just return the pointer now
537 (-[WebFrame _previousSibling]): ditto
539 2004-11-30 Chris Blumenberg <cblu@apple.com>
542 <rdar://problem/3685766> WebDataSource is missing subresources when they use cached WebCore data
543 <rdar://problem/3722434> REGRESSION?: Assertion failure trying to drag image in iframe (itapema.sc.gov.br)
547 * WebCoreSupport.subproj/WebBridge.m:
548 (-[WebBridge objectLoadedFromCacheWithURL:response:data:]): renamed to pass all data for the resource, moved delegate code to new method
549 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]): call renamed method
550 * WebCoreSupport.subproj/WebSubresourceClient.m:
551 (-[WebSubresourceClient didFinishLoading]): call renamed method
552 * WebView.subproj/WebFrame.m:
553 (-[WebFrame _opened]): call _sendResourceLoadDelegateMessagesForURL:response:length:, not objectLoadedFromCacheWithURL:response:data:
554 (-[WebFrame _internalLoadDelegate]):
555 (-[WebFrame _sendResourceLoadDelegateMessagesForURL:response:length:]): moved from objectLoadedFromCacheWithURL:response:data:
556 * WebView.subproj/WebFrameInternal.h:
558 2004-11-29 Darin Adler <darin@apple.com>
562 - worked around bug in Panther where NSScroller calls _destinationFloatValueForScroller: on superview
563 without first checking if it's implemented
565 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView _destinationFloatValueForScroller:]):
566 Implemented. Calls floatValue on the scroller.
568 * English.lproj/StringsNotToBeLocalized.txt: Update for recent changes.
570 2004-11-23 Chris Blumenberg <cblu@apple.com>
572 Fixed: <rdar://problem/3890944> disable icon database for Dashboard
576 * Misc.subproj/WebIconDatabase.h:
577 * Misc.subproj/WebIconDatabase.m:
578 (-[WebIconDatabase init]): don't create dictionaries if disabled
579 (-[WebIconDatabase iconForURL:withSize:cache:]): return default icon if disabled
580 (-[WebIconDatabase iconURLForURL:]): return nil if disabled
581 (-[WebIconDatabase retainIconForURL:]): return if disabled
582 (-[WebIconDatabase releaseIconForURL:]): ditto
583 (-[WebIconDatabase delayDatabaseCleanup]): ditto
584 (-[WebIconDatabase allowDatabaseCleanup]): ditto
585 (-[WebIconDatabase _isEnabled]): new
586 (-[WebIconDatabase _setIcon:forIconURL:]): assert if called when disabled, moved to own category implementation
587 (-[WebIconDatabase _setHaveNoIconForIconURL:]): ditto
588 (-[WebIconDatabase _setIconURL:forURL:]): ditto
589 (-[WebIconDatabase _createFileDatabase]): tweak
590 (-[WebIconDatabase _applicationWillTerminate:]): moved out of public code
591 * Misc.subproj/WebIconDatabasePrivate.h:
592 * Misc.subproj/WebIconLoader.m:
593 * WebView.subproj/WebDataSource.m:
594 (-[WebDataSource _updateIconDatabaseWithURL:]): assert if called when icon DB is disabled
595 (-[WebDataSource _loadIcon]): don't load icon if icon DB is disabled
597 2004-11-22 David Hyatt <hyatt@apple.com>
599 Make sure the WebCore cache grows at 512mb and at 1024mb exactly.
603 * WebCoreSupport.subproj/WebBridge.m:
604 (-[WebBridge getObjectCacheSize]):
606 2004-11-22 Richard Williamson <rjw@apple.com>
608 Fixed <rdar://problem/3891737> WebPreferences do not work if they are set before set on the WebView
610 John found this problem and suggested the fix.
612 Reviewed by John Louch.
614 * WebView.subproj/WebView.m:
615 (-[WebView setPreferences:]):
617 2004-11-22 Ken Kocienda <kocienda@apple.com>
621 * WebCoreSupport.subproj/WebBridge.m:
622 (-[WebBridge canPaste]): Call WebView _canPaste.
623 * WebView.subproj/WebView.m:
624 (-[WebView _canPaste]): Try to forward to document view's implementation. Only WebHTMLView
625 answers right now. Returns NO otherwise.
626 * WebView.subproj/WebViewInternal.h: Add _canPaste method to WebView.
628 2004-11-22 Maciej Stachowiak <mjs@apple.com>
630 Back out the window closing fix, it seems to be causing crashes.
632 * WebView.subproj/WebFrame.m:
633 (-[WebFrame _detachFromParent]):
635 2004-11-20 Maciej Stachowiak <mjs@apple.com>
639 <rdar://problem/3710101> _web_userVisibleString makes URL autocomplete roughly 2x slower
641 * Misc.subproj/WebNSURLExtras.h:
642 * Misc.subproj/WebNSURLExtras.m:
643 (-[NSString _web_isUserVisibleURL]): New SPI to check if a URL
644 string is already in user-visible form (i.e. converting it to an
645 NSURL and then back via _web_userVisibleString would not change
648 2004-11-19 Maciej Stachowiak <mjs@apple.com>
652 <rdar://problem/3190977> closing window with many tabs in it can be quite slow
654 * WebView.subproj/WebFrame.m:
655 (-[WebFrame _detachFromParent]): autorelease bridge instead of releasing it,
656 to make window and tab closing more responsive - this way the deallocation happens
657 after the windoow or tab appears to close.
661 2004-11-19 Chris Blumenberg <cblu@apple.com>
663 Fixed: <rdar://problem/3880387> REGRESSION: www.shockplay.com site gives "Unexpected server response"
667 * Plugins.subproj/WebBaseNetscapePluginView.m:
668 (-[NSData _web_locationAfterFirstBlankLine]): support both formats ("\r\n\n" and "\r\n\r\n") for separating header data from body data because Shockwave still sends the prior format
670 2004-11-19 Ken Kocienda <kocienda@apple.com>
676 <rdar://problem/3655241> setTypingStyle: does not set the real typing style, and typingStyle does not return it
678 * WebCoreSupport.subproj/WebBridge.m:
679 (-[WebBridge respondToChangedContents]): No longer call through to WebKit to set the typing style. The call
680 was part of the misguided use of the setTypingStyle: and typingStyle as a cache of what was stored on
682 (-[WebBridge respondToChangedSelection]): Ditto.
683 * WebView.subproj/WebView.m:
684 (-[WebViewPrivate dealloc]): Object no longer has typingStyle ivar.
685 (-[WebView setTypingStyle:]): Call over the bridge to set typing style.
686 (-[WebView typingStyle]): Call over the bridge to retrieve typing style.
687 * WebView.subproj/WebViewInternal.h: Object no longer has typingStyle ivar.
689 2004-11-18 John Sullivan <sullivan@apple.com>
693 - fixed <rdar://problem/3886042> should save history file as binary XML so serialization,
694 parsing, reading and writing is faster
696 * History.subproj/WebHistory.m:
697 (-[WebHistoryPrivate _saveHistoryGuts:URL:error:]):
698 convert dictionary to binary data before saving
700 2004-11-18 Chris Blumenberg <cblu@apple.com>
702 * WebView.subproj/WebHTMLRepresentation.m:
703 (-[WebHTMLRepresentation currentForm]): removed stray ";"
705 2004-11-18 Chris Blumenberg <cblu@apple.com>
707 Fixed development build failure.
709 * Misc.subproj/WebIconDatabase.m:
710 (+[WebIconDatabase sharedIconDatabase]): call LOG not Log
712 2004-11-18 Chris Blumenberg <cblu@apple.com>
714 <rdar://problem/3885708> save memory in icon DB by not using NSSets when holding 1 object
716 Reviewed by sullivan.
718 * Misc.subproj/WebIconDatabase.m:
719 (+[WebIconDatabase sharedIconDatabase]): added timing code
720 (-[WebIconDatabase _clearDictionaries]): new
721 (-[WebIconDatabase _loadIconDictionaries]): call _clearDictionaries in 2 places before we bail, use _web_setObjectUsingSetIfNecessary:forKey: when adding site URLs to the iconURLToURLs dictionary
722 (-[WebIconDatabase _updateFileDatabase]): fixed comment
723 (-[WebIconDatabase _setIconURL:forURL:]): use _web_setObjectUsingSetIfNecessary:forKey: when adding site URLs to the iconURLToURLs dictionary
724 (-[WebIconDatabase _releaseIconForIconURLString:]): handle NSString objects retured from iconURLToURLs
725 (-[NSMutableDictionary _web_setObjectUsingSetIfNecessary:forKey:]): new, puts a set on the dictionary when there are 2 or more object for s key
727 2004-11-17 Richard Williamson <rjw@apple.com>
729 Fixed <rdar://problem/3885073> REGRESSION: Tab images at top of news.com.com replicated and squished
731 Correctly account for scaled image size and clipping.
735 * WebCoreSupport.subproj/WebImageData.h:
736 * WebCoreSupport.subproj/WebImageData.m:
737 * WebCoreSupport.subproj/WebImageRenderer.m:
738 (-[WebImageRenderer drawImageInRect:fromRect:compositeOperator:context:]):
740 2004-11-17 Maciej Stachowiak <mjs@apple.com>
744 <rdar://problem/3885076> Don't make IDN calls for all-ascii URLs to save about 3 pages
747 * Misc.subproj/WebNSURLExtras.m:
748 (mapHostNames): If encoding and not decoding, then bail early if the URL is all ascii.
749 (-[NSString _web_mapHostNameWithRange:encode:makeString:]): Remove earlier special-case
750 check for localhost, no longer needed.
752 2004-11-17 Richard Williamson <rjw@apple.com>
754 Fixed <rdar://problem/3863601> Legacy font cache code in [WebTextRendererFactory createSharedFactory] may be unnecesary
756 and added call to SPI for
758 <rdar://problem/3884448> WebKit should turn on CG local font cache
760 currently disabled until a Tiger build shows up with the SPI.
762 Reviewed by David Harrison.
764 * WebCoreSupport.subproj/WebTextRendererFactory.m:
765 (+[WebTextRendererFactory createSharedFactory]):
767 2004-11-17 Richard Williamson <rjw@apple.com>
769 Fixed <rdar://problem/3882212> REGRESSION: Images clipped instead of scaled
770 Fixed <rdar://problem/3884088> Crash terminating image load
772 Also added code to turn off color correction for images created
773 via CGImageSources. This code is currently disabled because CG
774 can't change the color space of images loaded progressively.
775 Further, according to Dave Hayward, CG will no longer attempt
776 to color correct images that don't have embedded profiles as of
781 * WebCoreSupport.subproj/WebImageData.m:
782 (-[WebImageData _commonTermination]):
783 (-[WebImageData dealloc]):
784 (-[WebImageData _invalidateImageProperties]):
785 (-[WebImageData imageAtIndex:]):
786 (-[WebImageData incrementalLoadWithBytes:length:complete:]):
787 (-[WebImageData propertiesAtIndex:]):
789 2004-11-16 Chris Blumenberg <cblu@apple.com>
791 Fixed: <rdar://problem/3882034> REGRESSION: Context menu incorrect for PDF content
795 * WebView.subproj/WebPDFView.m:
796 (-[WebPDFView hitTest:]): return self if the current event is a context menu event
797 (-[WebPDFView menuForEvent:]): use the PDFView subview
799 2004-11-15 Chris Blumenberg <cblu@apple.com>
801 Fixed: <rdar://problem/3880410> save 5 dirty pages by soft-linking against PDFKit framework
805 * WebKit.pbproj/project.pbxproj:
806 * WebView.subproj/WebPDFRepresentation.m:
807 (+[WebPDFRepresentation PDFDocumentClass]): new
808 (-[WebPDFRepresentation finishedLoadingWithDataSource:]): use PDFDocumentClass
809 * WebView.subproj/WebPDFView.h:
810 * WebView.subproj/WebPDFView.m:
811 (+[WebPDFView PDFKitBundle]): new
812 (+[WebPDFView PDFViewClass]): new
813 (-[WebPDFView initWithFrame:]): create a PDFView subview
814 (-[WebPDFView dealloc]): release the PDFView subview
815 (-[WebPDFView PDFSubview]): new
817 2004-11-15 Chris Blumenberg <cblu@apple.com>
819 Fixed: <rdar://problem/3879891> WebKit should link against PDFKit instead of Quartz
823 * WebKit.pbproj/project.pbxproj: link against PDFKit if it is present instead of Quartz.framework
825 2004-11-15 Richard Williamson <rjw@apple.com>
827 Fixed missing retain of image property data.
831 * WebCoreSupport.subproj/WebImageData.h:
832 * WebCoreSupport.subproj/WebImageData.m:
833 (-[WebImageData dealloc]):
834 (-[WebImageData _invalidateImages]):
835 (-[WebImageData imageAtIndex:]):
836 (-[WebImageData propertiesAtIndex:]):
837 (-[WebImageData _frameDuration]):
839 2004-11-15 Richard Williamson <rjw@apple.com>
841 Cache image properties and frame durations.
842 Create NSImage and TIFF representations from CGImage, lazily, as needed for
843 dragging and element info dictionary.
847 * WebCoreSupport.subproj/WebImageData.h:
848 * WebCoreSupport.subproj/WebImageData.m:
849 (-[WebImageData dealloc]):
850 (-[WebImageData size]):
851 (-[WebImageData propertiesAtIndex:]):
852 (-[WebImageData _frameDurationAt:]):
853 (-[WebImageData _frameDuration]):
854 * WebCoreSupport.subproj/WebImageRenderer.h:
855 * WebCoreSupport.subproj/WebImageRenderer.m:
856 (-[WebImageRenderer dealloc]):
857 (-[WebImageRenderer TIFFRepresentation]):
858 (-[WebImageRenderer image]):
860 2004-11-14 Maciej Stachowiak <mjs@apple.com>
864 <rdar://problem/3879226> WebKit needlessly uses extra memory to store icon refcounts as NSNumbers
866 * Misc.subproj/WebIconDatabase.m:
867 (-[WebIconDatabase init]):
868 (-[WebIconDatabase _setIconURL:forURL:]):
869 (-[WebIconDatabase _retainIconForIconURLString:]):
870 (-[WebIconDatabase _releaseIconForIconURLString:]):
871 (-[WebIconDatabase _retainFutureIconForURL:]):
872 (-[WebIconDatabase _releaseFutureIconForURL:]):
873 * Misc.subproj/WebIconDatabasePrivate.h:
875 2004-11-15 John Sullivan <sullivan@apple.com>
879 - fixed <rdar://problem/3879513> leak in [WebArchive _propertyListRepresentation] copying HTML to pasteboard
881 * WebView.subproj/WebArchive.m:
882 (-[WebArchive _propertyListRepresentation]):
883 the array holding the subresources was not released after use, oops!
885 2004-11-12 Chris Blumenberg <cblu@apple.com>
887 Fixed: <rdar://problem/3874577> Opening restricted (parental) content in new window/tab reveals Safari's "Resources" folder
891 * WebView.subproj/WebDefaultContextMenuDelegate.m:
892 (-[WebDefaultUIDelegate openFrameInNewWindow:]): use the unreachable URL if there is one
896 2004-11-11 Richard Williamson <rjw@apple.com>
898 Report actual size (not partial size) but use partial size
903 * WebCoreSupport.subproj/WebImageData.h:
904 * WebCoreSupport.subproj/WebImageData.m:
905 (-[WebImageData size]):
907 2004-11-11 Darin Adler <darin@apple.com>
911 - added _wasFirstResponderAtMouseDownTime method to bridge so we can fix
912 <rdar://problem/3846152> REGRESSION (125-166): can't drag text out of <input type=text> fields
913 with a subsequent change to WebCore.
915 * WebCoreSupport.subproj/WebBridge.m:
916 (wasFirstResponderAtMouseDownTime:): Added. Calls _wasFirstResponderAtMouseDownTime
918 (_getPreSmartSet): Move global inside the function, add (void) for cleanliness.
919 (_getPostSmartSet): Ditto.
921 * WebView.subproj/WebHTMLView.m:
922 (-[WebHTMLViewPrivate dealloc]): Release firstResponderAtMouseDownTime.
923 (-[WebHTMLView _setMouseDownEvent:]): Early exit if event is not changing.
924 Set firstResponderAtMouseDownTime to the first responder.
925 (-[WebHTMLView mouseDown:]): Release firstResponderAtMouseDownTime after handling
927 (-[WebHTMLView _wasFirstResponderAtMouseDownTime:]): Added. Uses the
928 firstResponderAtMouseDownTime field.
929 * WebView.subproj/WebHTMLViewInternal.h: Added firstResponderAtMouseDownTime field
930 and _wasFirstResponderAtMouseDownTime method.
932 * English.lproj/StringsNotToBeLocalized.txt: Update for recent changes.
934 2004-11-11 Richard Williamson <rjw@apple.com>
938 Work-around to minimize impact of 3876764. Cache frame durations
939 after first call. So we'll still leak 1K for each animated
940 image, but that's better than 1K each time the frame is drawn!
941 * WebCoreSupport.subproj/WebImageData.h:
942 * WebCoreSupport.subproj/WebImageData.m:
943 (-[WebImageData _frameDuration]):
945 Simplified animation cleanup code. Fixed leak due to
946 incorrect key passed to CFDictionaryRemoveValue.
948 (+[WebImageData stopAnimationsInView:]):
949 (-[WebImageData addAnimatingRenderer:inView:]):
950 (-[WebImageData removeAnimatingRenderer:]):
951 (-[WebImageData _stopAnimation]):
953 2004-11-11 Darin Adler <darin@apple.com>
957 - fixed <rdar://problem/3605906> Flash scrolled off the top and bottom cause CPU spin when combined with something dirty on the visible part of the page
959 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView drawRect:]):
960 Work around AppKit bug by using rectangles from getRectsBeingDrawn:count: instead of
961 using the passed-in rectangle.
963 2004-11-11 Richard Williamson <rjw@apple.com>
965 Work-arounds to make new ImageIO code work correctly. Still
966 disabled for now. Requires at least Tiger 300. Testing does
967 show a 3% improvement in PLT tests! That's huge!
971 * WebCoreSupport.subproj/WebImageData.m:
972 (-[WebImageData imageAtIndex:]):
973 (-[WebImageData incrementalLoadWithBytes:length:complete:]):
974 (-[WebImageData isNull]):
976 2004-11-10 Chris Blumenberg <cblu@apple.com>
978 Fixed: <rdar://problem/3396872> ICONS: icon DB inconsistencies can cause slowness during startup, idle and quit
982 * Misc.subproj/WebFileDatabase.m:
983 (-[WebFileDatabase objectForKey:]): added logging code
984 * Misc.subproj/WebIconDatabase.m:
985 (-[WebIconDatabase init]): use alloc, init rather than autorelease, retain
986 (-[WebIconDatabase _loadIconDictionaries]): use 1 object for mapping icon URLs to site URLs and vice versa rather than 3. This avoids inconsistencies and is faster.
987 (-[WebIconDatabase _updateFileDatabase]): write 1 object out
989 2004-11-09 David Hyatt <hyatt@apple.com>
991 Fix for 3873234, Safari UI is unresponsive when parsing multiple HTML docs and 3873233, Safari hangs when
992 loading large local files.
996 * WebCoreSupport.subproj/WebBridge.m:
997 (-[WebBridge tokenizerProcessedData]):
998 * WebView.subproj/WebDataSource.m:
999 (-[WebDataSource _receivedMainResourceError:complete:]):
1000 (-[WebDataSource isLoading]):
1002 2004-11-09 Richard Williamson <rjw@apple.com>
1004 Fixed <rdar://problem/3870964> 8A300: Safari not recognizing a PDF link (it displays raw data)
1006 Add "text/pdf" as an acceptable PDF MIME type.
1010 * WebView.subproj/WebDataSource.m:
1011 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
1012 * WebView.subproj/WebFrameView.m:
1013 (+[WebFrameView _viewTypesAllowImageTypeOmission:]):
1015 2004-11-08 Chris Blumenberg <cblu@apple.com>
1017 Fixed: <rdar://problem/3783904> Return key behavior is confusingly different between popup menus and autofill menus
1021 * WebCoreSupport.subproj/WebBridge.m:
1022 (-[WebBridge control:textView:shouldHandleEvent:]): new
1023 * WebView.subproj/WebFormDelegate.h:
1024 * WebView.subproj/WebFormDelegate.m:
1025 (-[WebFormDelegate control:textView:shouldHandleEvent:inFrame:]): new
1027 2004-11-05 Chris Blumenberg <cblu@apple.com>
1029 Fixed: <rdar://problem/3854218> Safari is sometimes really slow because of increased null events to plug-ins
1031 * Plugins.subproj/WebBaseNetscapePluginView.m: reverted null event interval to 0.02
1033 2004-11-05 Chris Blumenberg <cblu@apple.com>
1035 Fixed: <rdar://problem/3838413> REGRESSION (Mail): "Smart" word paste adds spaces before/after special characters
1039 * WebCoreSupport.subproj/WebBridge.m:
1040 (_getPreSmartSet): copied from AppKit
1041 (_getPostSmartSet): ditto
1042 (-[WebBridge isCharacterSmartReplaceExempt:isPreviousCharacter:]): new
1044 2004-11-05 Richard Williamson <rjw@apple.com>
1046 Fixed <rdar://problem/3810702> _checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector: ASSERTS when reentered from Xcode's man page viewer
1048 Reviewed by Maciej (a long time ago).
1050 * WebView.subproj/WebFrame.m:
1051 (-[WebFrame _loadDataSource:withLoadType:formState:]):
1053 Fixed <rdar://problem/3845307> WebKit needs to export _HIWebViewRegisterClass so HIWebViews can work in Carbon nib files
1055 As suggested in the bug, the fix is to actually call
1056 HIWebViewRegisterClass in WebKitInitForCarbon, rather than
1057 exporting the symbol.
1061 * Carbon.subproj/CarbonUtils.m:
1063 * Carbon.subproj/HIWebView.m:
1064 * WebKit.pbproj/project.pbxproj:
1068 2004-11-05 Darin Adler <darin@apple.com>
1072 - fixed <rdar://problem/3857151> Assertion failure in "trackingRectOwner" while moving mouse over Slashdot.org page
1074 * WebView.subproj/WebHTMLView.m:
1075 (-[WebHTMLView _addTrackingRect:owner:userData:assumeInside:useTrackingNum:]): Changed to no longer call
1076 addTrackingRect to do the work for consistency with the new method below. Not too much copied and pasted code.
1077 (-[WebHTMLView _addTrackingRects:owner:userDataList:assumeInsideList:trackingNums:count:]): Added an override
1078 for this new method in Tiger. No harm in implementing it on Panther, although it won't be called.
1079 (-[WebHTMLView _removeTrackingRects:count:]): Ditto.
1081 2004-11-04 David Hyatt <hyatt@apple.com>
1083 Make sure the dominant line direction is properly set for RTL runs so that spaces will reverse.
1085 Change xHeight to measure the ascent of the x glyph, since the xHeight metrics appear to be
1086 totally bogus in both CG and AppKit.
1090 * WebCoreSupport.subproj/WebTextRenderer.m:
1091 (-[WebTextRenderer xHeight]):
1092 (-[WebTextRenderer _createATSUTextLayoutForRun:style:]):
1093 (-[WebTextRenderer _trapezoidForRun:style:atPoint:]):
1094 (-[WebTextRenderer _ATSU_drawHighlightForRun:style:geometry:]):
1095 (-[WebTextRenderer _ATSU_drawRun:style:geometry:]):
1096 (-[WebTextRenderer _ATSU_pointToOffset:style:position:reversed:includePartialGlyphs:]):
1098 2004-11-02 Maciej Stachowiak <mjs@apple.com>
1100 Reviewed by Dave Hyatt (when I originally coded it).
1102 Redid WebKit part of fix for:
1104 <rdar://problem/3759187> REGRESSION (Mail): implement firstRectForCharacterRange:
1106 * WebView.subproj/WebHTMLView.m:
1107 (-[WebHTMLView firstRectForCharacterRange:]): Call the appropriate new bridge method,
1108 and translate to screen coordinates.
1110 2004-11-02 John Sullivan <sullivan@apple.com>
1114 - [NSFont menuFontOfSize:], called from WebStringTruncator, was taking > 9% of the time creating a
1115 very large bookmarks menu, so I cached this one NSFont object.
1117 * Misc.subproj/WebStringTruncator.m:
1119 new function, caches the font used when no font is specified
1120 (+[WebStringTruncator centerTruncateString:toWidth:]):
1123 2004-11-02 Ken Kocienda <kocienda@apple.com>
1127 WebCore now implements a command to insert a block in response to typing a return key, and
1128 some names were improved in the course of this work.
1130 * WebView.subproj/WebHTMLView.m:
1131 (-[WebHTMLView insertNewline:]): Now calls insertLineBreak on bridge object.
1132 (-[WebHTMLView insertLineBreak:]): New method.
1133 (-[WebHTMLView insertParagraphSeparator:]): Now implemented.
1134 * WebView.subproj/WebView.m:
1138 2004-10-29 Chris Blumenberg <cblu@apple.com>
1140 * WebKit.exp: added _WebPlugInModeKey, forgot to add it earlier
1142 2004-10-29 Darin Adler <darin@apple.com>
1144 - fixed <rdar://problem/3855573> Remove reference to "WebScriptMethods" from WebScriptObject.h comments
1146 * Plugins.subproj/WebScriptObject.h: Removed unneeded #ifdef protection for multiple includes (since
1147 this is an Objective-C header and we use #import for those). Fixed comments as requested in the bug
1148 report to match the contents of the file.
1150 2004-10-27 Ken Kocienda <kocienda@apple.com>
1154 Added new SPI for Mail so it can get the behavior it needs when the user hits
1155 the return key with the selection in quoted content.
1157 * WebView.subproj/WebView.m
1158 * WebView.subproj/WebViewPrivate.h
1160 2004-10-26 Chris Blumenberg <cblu@apple.com>
1162 Fixed exception that Darin encountered in Mail.
1166 * Plugins.subproj/WebPluginController.m:
1167 (+[WebPluginController plugInViewWithArguments:fromPluginPackage:]): if the plug-in returns a nil view, return nil
1169 2004-10-25 Chris Blumenberg <cblu@apple.com>
1171 Darin made an internal notification have the Web prefix.
1175 * Plugins.subproj/WebBaseNetscapePluginView.m:
1176 (-[WebBaseNetscapePluginView addWindowObservers]):
1177 (-[WebBaseNetscapePluginView removeWindowObservers]):
1178 (ConsoleConnectionChangeNotifyProc):
1180 2004-10-25 John Sullivan <sullivan@apple.com>
1184 - Cleanup from fix for <rdar://problem/3851676> bookmarks should not hold onto a WebHistoryItem object;
1185 eliminated notificationsSuppressed mechanism, which was used only by WebBookmark
1187 * History.subproj/WebHistoryItem.m:
1188 removed notificationsSuppressed ivar from private data object
1189 (-[WebHistoryItem setAlternateTitle:]):
1190 remove notificationsSuppressed guard
1191 (-[WebHistoryItem setURLString:]):
1193 (-[WebHistoryItem setOriginalURLString:]):
1195 (-[WebHistoryItem setTitle:]):
1197 (-[WebHistoryItem _setLastVisitedTimeInterval:]):
1199 (-[WebHistoryItem setNotificationsSuppressed:]):
1201 (-[WebHistoryItem notificationsSuppressed]):
1204 * History.subproj/WebHistoryItemPrivate.h:
1205 removed notificationsSuppressed and setNotificationsSuppressed
1207 2004-10-22 Chris Blumenberg <cblu@apple.com>
1209 Fixed: <rdar://problem/3851491> installedPlugins being called for a page without plugins
1213 * WebView.subproj/WebFrameView.m:
1214 (+[WebFrameView _canShowMIMETypeAsHTML:]): call _viewTypesAllowImageTypeOmission instead of using ivar since the ivar is nil until _viewTypesAllowImageTypeOmission is called, this was causing [WebView canShowMIMEType:] to check plug-ins
1218 2004-10-22 Ken Kocienda <kocienda@apple.com>
1222 * WebKit.pbproj/project.pbxproj: Add GCC_ENABLE_OBJC_GC and GCC_FAST_OBJC_DISPATCH flags.
1224 2004-10-21 Darin Adler <darin@apple.com>
1228 - fixed <rdar://problem/3847994> REGRESSION: reproducible exception in WebImageRenderer releasePatternColor; afterwards get crash or no more browsing
1230 * WebCoreSupport.subproj/WebImageRenderer.m:
1231 (-[WebInternalImage createRendererIfNeeded]): Replaced retainOrCopyIfNeeded with this.
1232 This returns nil if a copied renderer isn't needed, and returns a new renderer if a copy is.
1233 The old version was sometimes returning a WebInternalImage and other times a WebImageRenderer.
1234 (-[WebImageRenderer retainOrCopyIfNeeded]): Returns the result of createRendererIfNeeded
1235 or retains self and returns self.
1237 2004-10-20 Darin Adler <darin@apple.com>
1241 - fixed <rdar://problem/3470715> Pattern cache can get huge with use of css background-image in Safari
1243 * WebCoreSupport.subproj/WebImageRenderer.h: Change WebImageRenderer to be a subclass of NSObject
1244 rather than NSImage and contain a pointer to a WebInternalImage.
1245 * WebCoreSupport.subproj/WebImageRenderer.m:
1246 (-[WebInternalImage releasePatternColor]): Added. Releases patternColor.
1247 (-[WebImageRenderer initWithMIMEType:]): Added. Makes WebInternalImage and then self.
1248 (-[WebImageRenderer initWithData:MIMEType:]): Ditto.
1249 (-[WebImageRenderer initWithContentsOfFile:]): Ditto.
1250 (-[WebImageRenderer dealloc]): Added. Calls releasePatternColor and then releases WebInternalImage.
1251 (-[WebImageRenderer image]): Added. Returns pointer to image.
1252 (-[WebImageRenderer MIMEType]): Added. Calls through to image.
1253 (-[WebImageRenderer TIFFRepresentation]): Ditto.
1254 (-[WebImageRenderer frameCount]): Ditto.
1255 (-[WebImageRenderer setOriginalData:]): Added. Sets image data pointer.
1256 (+[WebImageRenderer stopAnimationsInView:]): Added. Calls through to image.
1257 (-[WebImageRenderer incrementalLoadWithBytes:length:complete:]): Ditto.
1258 (-[WebImageRenderer size]): Ditto.
1259 (-[WebImageRenderer resize:]): Ditto.
1260 (-[WebImageRenderer drawImageInRect:fromRect:]): Ditto.
1261 (-[WebImageRenderer drawImageInRect:fromRect:compositeOperator:context:]): Ditto.
1262 (-[WebImageRenderer stopAnimation]): Ditto.
1263 (-[WebImageRenderer tileInRect:fromPoint:context:]): Ditto.
1264 (-[WebImageRenderer isNull]): Ditto.
1265 (-[WebImageRenderer retainOrCopyIfNeeded]): Ditto.
1266 (-[WebImageRenderer increaseUseCount]): Ditto.
1267 (-[WebImageRenderer decreaseUseCount]): Ditto.
1268 (-[WebImageRenderer flushRasterCache]): Ditto.
1269 (-[WebImageRenderer imageRef]): Ditto.
1270 (-[WebImageRenderer copyWithZone:]): Ditto.
1272 * Misc.subproj/WebNSViewExtras.m: (-[NSView _web_dragImage:rect:event:pasteboard:source:offset:]):
1273 Update for slight changes to WebImageRenderer API.
1274 * WebCoreSupport.subproj/WebImageRendererFactory.m:
1275 (-[WebImageRendererFactory imageRendererWithMIMEType:]): Ditto.
1276 (-[WebImageRendererFactory imageRendererWithData:MIMEType:]): Ditto.
1277 (-[WebImageRendererFactory imageRendererWithSize:]): Ditto.
1278 (-[WebImageRendererFactory imageRendererWithName:]): Ditto.
1279 * WebView.subproj/WebImageView.m: (-[WebImageView image]): Ditto.
1281 2004-10-20 Chris Blumenberg <cblu@apple.com>
1283 Fixed: <rdar://problem/3846943> REGRESSION: JNLP files are rendered instead of downloaded
1287 * Plugins.subproj/WebBasePluginPackage.h:
1288 * Plugins.subproj/WebBasePluginPackage.m:
1289 (-[WebBasePluginPackage isJavaPlugIn]): new
1290 * Plugins.subproj/WebPluginDatabase.m:
1291 (-[WebPluginDatabase refresh]): don't register the Java plug-in for a document view since Java file should be downloaded when not embedded.
1293 2004-10-20 Chris Blumenberg <cblu@apple.com>
1296 <rdar://problem/3842030> WebKit needs to pass the mode (NP_FULL, NP_EMBED, etc) when calling plugInViewWithArguments
1297 <rdar://problem/3792852> Safari is loading the new QuickTime Cocoa plugin on Panther
1301 * Plugins.subproj/WebPluginDocumentView.m:
1302 (-[WebPluginDocumentView setDataSource:]): pass "full" as the mode
1303 * Plugins.subproj/WebPluginPackage.m:
1304 (-[WebPluginPackage initWithPath:]): load plug-in with the "webplugin" extension
1305 * WebCoreSupport.subproj/WebBridge.m:
1306 (-[WebBridge pluginViewWithPackage:attributeNames:attributeValues:baseURL:]): pass "embed" as the mode
1307 * WebKit.pbproj/project.pbxproj:
1309 2004-10-19 Vicki Murley <vicki@apple.com>
1311 - bump WebKit version to 167.1, so that we can do a quick dot submission for <rdar://problem/3843951>
1313 * WebKit.pbproj/project.pbxproj:
1315 2004-10-19 Darin Adler <darin@apple.com>
1317 Change suggested by Maciej during code review.
1319 * WebCoreSupport.subproj/WebTextRenderer.m: Changed rounding hack table to be const so it can be in shared instead
1320 of private memory, and doesn't require an initialization function.
1321 (+[WebTextRenderer initialize]): Removed initialization.
1323 2004-10-19 Darin Adler <darin@apple.com>
1327 - fixed <rdar://problem/3838934> Safari stops loading pages after rangeOfCharacterFromSet nil argument exception
1328 - fixed <rdar://problem/3843951> REGRESSION (166-167): Safari crashes in widthForNextCharacter (belkin.com, at startup for others)
1329 - fixed <rdar://problem/3841049> REGRESSION (109-110): control characters render as square boxes
1331 * WebCoreSupport.subproj/WebTextRenderer.m:
1332 (isSpace): Merged in isAlternateSpace, never used.
1333 (setupRoundingHackCharacterTable): Fixed size of table, was 1 entry too short. Got rid of unneeded call to bzero,
1334 since globals start out zeroed automatically.
1335 (isRoundingHackCharacter): Fixed backwards logic causing the crash in widthForNextCharacter.
1336 Also removed explicit compare with 1; check for non-zero is just fine.
1337 (fontContainsString): Change code so we'll just skip the font if the covered character set returns nil rather than
1338 throwing an exception like the old version did. This should make bug 3838934 go away, although perhaps covering up
1339 the underlying problem.
1340 (-[WebTextRenderer _convertCharacters:length:toGlyphs:]): Removed unused skipControlCharacters: parameter and also
1341 the unnecessary code to copy the buffer to change newline characters and non-break spaces to spaces.
1342 (-[WebTextRenderer _convertUnicodeCharacters:length:toGlyphs:]): Removed unused local.
1343 (-[WebTextRenderer _extendCharacterToGlyphMapToInclude:]): Added code to set up special cases for control characters,
1344 \n and non-break spaces.
1345 (-[WebTextRenderer _createATSUTextLayoutForRun:]): Added comment about the cases this code does not handle that
1346 are handled by the CG case.
1347 (widthForNextCharacter): Call isSpace instead of checking specifically for the space character here. The old code
1348 would not handle cases with '\n' coming across from WebCore properly.
1350 2004-10-18 Chris Blumenberg <cblu@apple.com>
1352 Fixed: <rdar://problem/3840916> GC: -[WebNetscapePluginPackage initWithPath:] leaks an NSURL
1356 * Plugins.subproj/WebNetscapePluginPackage.m:
1357 (-[WebNetscapePluginPackage initWithPath:]): use executablePath on NSBundle instead of CFBundleCopyExecutableURL
1359 2004-10-18 Chris Blumenberg <cblu@apple.com>
1361 * DOM.subproj/DOMPrivate.h: change to copied header that was never committed
1363 2004-10-18 John Sullivan <sullivan@apple.com>
1367 - fixed <rdar://problem/3810183> Make WebHTMLView respect return value of webView:doCommandBySelector:
1369 * WebView.subproj/WebHTMLView.m:
1370 (-[WebHTMLView doCommandBySelector:]):
1371 only do default action if delegate returns NO; this works with Mail as of Tiger 8A275.
1375 2004-10-14 Ken Kocienda <kocienda@apple.com>
1379 Final fix for these bugs:
1381 <rdar://problem/3806306> HTML editing puts spaces at start of line
1382 <rdar://problem/3814252> HTML editing groups space with word causing wrapping
1384 This change sets some new CSS properties that have been added to WebCore to
1385 enable whitespace-handling and line-breaking features that make WebView work
1386 more like a text editor.
1388 * WebView.subproj/WebHTMLRepresentation.m:
1389 (-[WebHTMLRepresentation finishedLoadingWithDataSource:]): Turn on special editing
1390 CSS properties when loading an HTML document into a WebView that is editable.
1391 * WebView.subproj/WebView.m:
1392 (-[WebView setEditable:]): Add and remove special editing CSS properties in current
1393 document being displayed.
1395 2004-10-14 Richard Williamson <rjw@apple.com>
1397 Fixed <rdar://problem/3823026> making isRoundingHackCharacter use -O3 and an 8-bit lookup-table will speed "XBS" test up by 3% (actually < 1%)
1399 Careful testing shows a small performance gain on very large text files.
1400 I saw large variations in timings, but taking the lowest PLT timing
1401 with and without this change showed a 0.9% gain. Note the cvs-base showed
1402 no improvement. The improvement was for the large page attached to the
1407 * WebCoreSupport.subproj/WebTextRenderer.m:
1408 (setupRoundingHackCharacterTable):
1409 (isRoundingHackCharacter):
1410 (+[WebTextRenderer initialize]):
1412 2004-10-14 Ken Kocienda <kocienda@apple.com>
1416 Fix build breakage. These three functions need to return the values from their
1417 calls to WebCGColorSpaceCreateXXX.
1419 * WebCoreSupport.subproj/WebGraphicsBridge.m:
1420 (-[WebGraphicsBridge createRGBColorSpace])
1421 (-[WebGraphicsBridge createGrayColorSpace])
1422 (-[WebGraphicsBridge createCMYKColorSpace])
1424 2004-10-13 Richard Williamson <rjw@apple.com>
1426 Addressed concerns in <rdar://problem/3803117> RESP: High complexity in icu uidna_IDNToASCII called by [NSString(WebNSURLExtras) _web_mapHostNameWithRange:encode:makeString:]
1428 In practice I saw NO improvement in performance. Although,
1429 special-case tests could possibly show improvement. Anyway,
1430 the changes don't hurt performance.
1434 * Misc.subproj/WebNSURLExtras.m:
1435 (-[NSString _web_mapHostNameWithRange:encode:makeString:]):
1437 2004-10-13 Maciej Stachowiak <mjs@apple.com>
1441 <rdar://problem/3824626> Change to do colormatching for DeviceRGB colorspace causes ~11% Safari slowdown
1443 - I fixed this by turning off all colormatching for WebKit
1444 content. We might turn it back on later. For now, it's possible to
1445 turn it on temporarily by defining COLORMATCH_EVERYTHING.
1447 * WebCoreSupport.subproj/WebGraphicsBridge.m:
1448 (-[WebGraphicsBridge setFocusRingStyle:radius:color:]):
1449 (-[WebGraphicsBridge additionalPatternPhase]):
1450 (-[WebGraphicsBridge createRGBColorSpace]):
1451 (-[WebGraphicsBridge createGrayColorSpace]):
1452 (-[WebGraphicsBridge createCMYKColorSpace]):
1453 * WebCoreSupport.subproj/WebImageData.m:
1454 * WebCoreSupport.subproj/WebImageRenderer.h:
1455 * WebCoreSupport.subproj/WebImageRenderer.m:
1456 (-[WebImageRenderer _adjustSizeToPixelDimensions]):
1457 (-[WebImageRenderer incrementalLoadWithBytes:length:complete:]):
1458 (-[WebImageRenderer _adjustColorSpace]):
1459 (-[WebImageRenderer drawClippedToValidInRect:fromRect:]):
1460 (-[WebImageRenderer tileInRect:fromPoint:context:]):
1462 (WebCGColorSpaceCreateRGB):
1463 (WebCGColorSpaceCreateGray):
1464 (WebCGColorSpaceCreateCMYK):
1467 2004-10-13 Richard Williamson <rjw@apple.com>
1469 Don't fill background with transparency unless debug flag
1474 * WebView.subproj/WebHTMLView.m:
1475 (-[WebHTMLView drawRect:]):
1477 2004-10-12 Richard Williamson <rjw@apple.com>
1479 Fixed <rdar://problem/3829705> Need to remove filling w/ transparency when not drawing backgroundy.
1483 * WebView.subproj/WebHTMLView.m:
1484 (-[WebHTMLView _transparentBackground]):
1485 (-[WebHTMLView _setTransparentBackground:]):
1486 (-[WebHTMLView drawRect:]):
1487 * WebView.subproj/WebHTMLViewInternal.h:
1488 * WebView.subproj/WebHTMLViewPrivate.h:
1490 2004-10-11 Chris Blumenberg <cblu@apple.com>
1492 Fixed: <rdar://problem/3802039> 8A259: Can't use Grab services to grab selection from screen
1496 * WebView.subproj/WebHTMLView.m:
1497 (+[WebHTMLView initialize]): register service "return types" which are types that can be inserted into a WebView
1498 (-[WebHTMLView writeSelectionToPasteboard:types:]): service protocol method, be sure to only write specified types
1499 (-[WebHTMLView readSelectionFromPasteboard:]): new, service protocol method, insert types
1500 (-[WebHTMLView validRequestorForSendType:returnType:]): moved, handle return types
1502 2004-10-11 Darin Adler <darin@apple.com>
1506 - fixed <rdar://problem/3834130> nil-object-in-dictionary exception seen in -[WebView _elementAtWindowPoint:]
1508 * WebView.subproj/WebView.m: (-[WebView _elementAtWindowPoint:]): Added a check for nil frame.
1510 2004-10-11 Darin Adler <darin@apple.com>
1514 - fixed <rdar://problem/3834166> <input type=file> sends onchange even when the same file is chosen twice
1516 * WebCoreSupport.subproj/WebFileButton.m: (-[WebFileButton chooseFilename:]):
1517 Do nothing if filename is the same as before.
1519 2004-10-11 Ken Kocienda <kocienda@apple.com>
1523 * WebView.subproj/WebHTMLView.m:
1524 (-[WebTextCompleteController doCompletion]): bridge call to get caret rect at a node
1525 now takes an affinity: caretRectAtNode:offset:affinity:.
1527 2004-10-10 Ken Kocienda <kocienda@apple.com>
1533 <rdar://problem/3814236> REGRESSION (Mail): Can't set the color of text in Mail compose window using drag/drag from color panel
1535 * WebView.subproj/WebHTMLView.m:
1536 (+[WebHTMLView _insertablePasteboardTypes]): Add NSColorPboardType to list.
1537 (-[WebHTMLView _isNSColorDrag:]): New helper. Determines if drag is an NSColor drag.
1538 (-[WebHTMLView draggingUpdatedWithDraggingInfo:actionMask:]): Add a case for NSColor drags,
1539 else do what we did before.
1540 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): Add a case for NSColor drags, which creates
1541 a CSS style containing color info and calls the bridge to apply the style. Otherwise, do what we did before.
1543 2004-10-11 Darin Adler <darin@apple.com>
1547 - fixed <rdar://problem/3833848> REGRESSION (133-134): each keydown event is getting sent multiple times
1549 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView performKeyEquivalent:]):
1550 Don't send an event through WebCore if it has already been through once.
1552 2004-10-10 John Sullivan <sullivan@apple.com>
1556 - fixed <rdar://problem/3777253> Crash in redirect mechanism trying to display error page for bad scheme
1558 * WebView.subproj/WebMainResourceClient.m:
1559 (-[WebMainResourceClient connection:willSendRequest:redirectResponse:]):
1560 add retain/autorelease to the request returned from call to super. In this case, the return value
1561 was being dealloc'ed before being returned.
1563 2004-10-09 Chris Blumenberg <cblu@apple.com>
1566 <rdar://problem/3625352> up and down arrow and page up/down keys don't work to scroll overflow:auto/scroll/overlay areas
1567 <rdar://problem/3397658> scroll wheel does not work to scroll overflow:auto/scroll/overlay areas (RSS)
1571 * Plugins.subproj/WebBaseNetscapePluginStream.m:
1572 (-[WebBaseNetscapePluginStream initWithRequestURL:pluginPointer:notifyData:sendNotification:]): fixed typo in comment
1573 * Plugins.subproj/WebNetscapePluginStream.m:
1574 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]): ditto
1575 * WebView.subproj/WebFramePrivate.h:
1576 * WebView.subproj/WebFrameView.m:
1577 (-[WebFrameView _bridge]): new
1578 (-[WebFrameView scrollToBeginningOfDocument:]): call the bridge to scroll, if that fails, scroll the document view
1579 (-[WebFrameView scrollToEndOfDocument:]): ditto
1580 (-[WebFrameView _pageVertically:]): ditto
1581 (-[WebFrameView _pageHorizontally:]): ditto
1582 (-[WebFrameView _scrollLineVertically:]): ditto
1583 (-[WebFrameView _scrollLineHorizontally:]): ditto
1584 * WebView.subproj/WebHTMLView.m:
1585 (-[WebHTMLView scrollWheel:]): call the bridge to scroll, if that fails, pass to next responder
1589 2004-10-05 Chris Blumenberg <cblu@apple.com>
1591 Fixed: <rdar://problem/3827002> assertion failure in WebBaseNetscapePluginStream on abc.go.com
1595 * Plugins.subproj/WebBaseNetscapePluginStream.m:
1596 (-[WebBaseNetscapePluginStream initWithRequestURL:pluginPointer:notifyData:sendNotification:]): avoid assertion failure in dealloc by temporarily setting isTerminated to YES in case we are released in this method
1597 * Plugins.subproj/WebNetscapePluginStream.m:
1598 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]): ditto
1600 2004-10-05 John Sullivan <sullivan@apple.com>
1602 * WebCoreSupport.subproj/WebBridge.m:
1603 (-[WebBridge pluginViewWithPackage:attributeNames:attributeValues:baseURL:]):
1604 initialize "arguments" var to nil to satisfy compiler on deployment build.
1606 2004-10-05 Richard Williamson <rjw@apple.com>
1608 Fixed <rdar://problem/3825442> first click lost for Dashboard
1609 Allow dashboard to force acceptsFirstMouse:
1613 * WebView.subproj/WebHTMLView.m:
1614 (-[WebHTMLView acceptsFirstMouse:]):
1615 * WebView.subproj/WebView.m:
1616 (-[WebView _dashboardBehavior:]):
1617 * WebView.subproj/WebViewInternal.h:
1618 * WebView.subproj/WebViewPrivate.h:
1620 * WebCoreSupport.subproj/WebImageRenderer.h:
1623 2004-10-05 Chris Blumenberg <cblu@apple.com>
1625 Fixed: <rdar://problem/3760920> Need to record plugin view instances
1629 * Plugins.subproj/WebPluginController.h:
1630 * Plugins.subproj/WebPluginController.m:
1631 (+[WebPluginController plugInViewWithArguments:fromPluginPackage:]): new, creates plug-in view and adds it to global list
1632 (+[WebPluginController isPlugInView:]): new, checks if the plug-in view is in the global list
1633 (-[WebPluginController destroyAllPlugins]): remove the plug-in from the global list
1634 * Plugins.subproj/WebPluginDocumentView.m:
1635 (-[WebPluginDocumentView setDataSource:]): call [WebPluginController plugInViewWithArguments:fromPluginPackage:]
1636 * WebCoreSupport.subproj/WebBridge.m:
1637 (-[WebBridge pluginViewWithPackage:attributeNames:attributeValues:baseURL:]): ditto
1638 * WebView.subproj/WebFrame.m:
1639 (-[WebFrame _reloadForPluginChanges]): call [WebPluginController isPlugInView:]
1640 * WebView.subproj/WebHTMLView.m:
1641 (-[WebHTMLView addSubview:]): ditto
1643 2004-10-05 David Hyatt <hyatt@apple.com>
1645 Fix to make selection more like NSTextView. All gap painting is now done by WebCore, so WebKit no longer
1646 needs to try to fill gaps around text.
1648 Reviewed by kocienda
1650 * WebCoreSupport.subproj/WebTextRenderer.m:
1651 (-[WebTextRenderer _CG_drawHighlightForRun:style:geometry:]):
1652 (-[WebTextRenderer _ATSU_drawHighlightForRun:style:geometry:]):
1654 2004-10-05 Darin Adler <darin@apple.com>
1658 - fixed <rdar://problem/3577255> custom file icon shows up upside down in <input type=file>
1660 * WebCoreSupport.subproj/WebFileButton.m: (-[WebFileButton setFilename:]): Added a call to
1661 setFlipped that fixes the problem, even though I don't know why.
1663 2004-10-04 Darin Adler <darin@apple.com>
1667 - fixed <rdar://problem/3814237> REGRESSION (Mail): Copy/paste style does not set color in Mail compose window
1669 * WebView.subproj/WebHTMLView.m:
1670 (-[WebHTMLView _selectionStartFontAttributesAsRTF]): Changed to call new bridge method
1671 named fontAttributesForSelectionStart, deleted the method this used to use, and renamed
1672 this to have the word "start" in it.
1673 (-[WebHTMLView copyFont:]): Updated for name change.
1675 * English.lproj/StringsNotToBeLocalized.txt: Updated for recent changes.
1677 2004-10-04 Chris Blumenberg <cblu@apple.com>
1679 * WebView.subproj/WebFrameInternal.h: removed constant declarations that I committed by mistake
1681 2004-10-04 Chris Blumenberg <cblu@apple.com>
1683 Fixed: <rdar://problem/3798948> NPP_URLNotify is not called if plug-in calls NPN_*URLNotfy
1684 Fixed a number of FIXME's related to notifying plug-ins of loaded pages.
1688 * Plugins.subproj/WebBaseNetscapePluginStream.h:
1689 - replaced URL ivar with requestURL and responseURL ivars since we need to pass both to plug-ins
1690 - added sendNotification boolean. Relying on notifyData not being NULL was not information to know whether to call NPP_URLNotify or not.
1691 - added isTerminated boolean because determining whether or not stream.ndata is NULL is not enough to know if the stream has been cancelled.
1692 * Plugins.subproj/WebBaseNetscapePluginStream.m:
1693 (+[WebBaseNetscapePluginStream reasonForError:]): new, factored out from receivedError:
1694 (-[WebBaseNetscapePluginStream initWithRequestURL:pluginPointer:notifyData:sendNotification:]): new
1695 (-[WebBaseNetscapePluginStream dealloc]): release new ivars
1696 (-[WebBaseNetscapePluginStream finalize]): added assert
1697 (-[WebBaseNetscapePluginStream setRequestURL:]): new
1698 (-[WebBaseNetscapePluginStream setResponseURL:]): new
1699 (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:]): renamed, use responseURL as it basically did before
1700 (-[WebBaseNetscapePluginStream startStreamWithResponse:]): call renamed method
1701 (-[WebBaseNetscapePluginStream destroyStream]):
1702 - do nothing if terminated
1703 - call NPP_StreamAsFile and NPP_DestroyStream if stream.ndata is not NULL
1704 - call NPP_URLNotify if sendNotification is YES regardless of value of notifyData
1705 (-[WebBaseNetscapePluginStream receivedError:]): call reasonForError
1706 (-[WebBaseNetscapePluginStream deliverData]): use renamed ivar
1707 * Plugins.subproj/WebBaseNetscapePluginView.h:
1708 - added observingFrameLoadNotification boolean
1709 - renamed dictionary ivar to pendingFrameLoads which has WebFrame keys and WebPluginRequest values
1710 * Plugins.subproj/WebBaseNetscapePluginView.m:
1711 (-[WebBaseNetscapePluginView addFrameLoadObserver]): new
1712 (-[WebBaseNetscapePluginView removeFrameLoadObserver]): new
1713 (-[WebBaseNetscapePluginView stop]): call removeFrameLoadObserver
1714 (-[WebBaseNetscapePluginView initWithFrame:]): use renamed pendingFrameLoads ivar
1715 (-[WebBaseNetscapePluginView dealloc]): ditto
1716 (-[WebBaseNetscapePluginView requestWithURLCString:]): set referrer on the request just as IE does
1717 (-[WebBaseNetscapePluginView evaluateJavaScriptPluginRequest:]):
1718 - call NPP_URLNotify depending of value of sendNotification
1719 - call new init method on WebBaseNetscapePluginStream rather then setting variables individually
1720 (-[WebBaseNetscapePluginView webFrame:didFinishLoadWithReason:]): new, calls NPP_URLNotify at the right time with the right value
1721 (-[WebBaseNetscapePluginView webFrame:didFinishLoadWithError:]): new, delegate method called from WebFrame
1722 (-[WebBaseNetscapePluginView loadPluginRequest:]): call addFrameLoadObserver
1723 (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]): take new sendNotification parameter and pass it
1724 (-[WebBaseNetscapePluginView getURLNotify:target:notifyData:]): pass YES for sendNotification
1725 (-[WebBaseNetscapePluginView getURL:target:]): pass NO for sendNotification
1726 (-[WebBaseNetscapePluginView _postURL:target:len:buf:file:notifyData:sendNotification:allowHeaders:]): take new sendNotification parameter and pass it
1727 (-[WebBaseNetscapePluginView postURLNotify:target:len:buf:file:notifyData:]): pass YES for sendNotification
1728 (-[WebBaseNetscapePluginView postURL:target:len:buf:file:]): pass NO for sendNotification
1729 (-[WebPluginRequest initWithRequest:frameName:notifyData:sendNotification:]): take new sendNotification parameter
1730 (-[WebPluginRequest sendNotification]): new
1731 * Plugins.subproj/WebBaseNetscapePluginViewPrivate.h:
1732 * Plugins.subproj/WebNetscapePluginEmbeddedView.m:
1733 (-[WebNetscapePluginEmbeddedView didStart]): set referrer on the request just as IE does
1734 * Plugins.subproj/WebNetscapePluginRepresentation.m:
1735 (-[WebNetscapePluginRepresentation receivedData:withDataSource:]): set the request URL on the stream
1736 * Plugins.subproj/WebNetscapePluginStream.h:
1737 * Plugins.subproj/WebNetscapePluginStream.m:
1738 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]): take new sendNotification parameter and pass it
1739 (-[WebNetscapePluginStream dealloc]): use renamed ivar
1740 (-[WebNetscapePluginStream start]): ditto
1741 * WebView.subproj/WebFrame.m:
1742 (-[WebFrame _setState:]): removed notification posting code. This was only used by WebBaseNetscapePluginView and it was the wrong notification to send.
1743 (-[WebFrame _checkLoadCompleteForThisFrame]): call internal load delegate to tell it that the load has finished
1744 (-[WebFrame _loadItem:withLoadType:]): ditto
1745 (-[WebFrame _continueFragmentScrollAfterNavigationPolicy:formState:]): ditto
1746 (-[WebFrame _setInternalLoadDelegate:]): new
1747 (-[WebFrame _internalLoadDelegate]): new
1748 * WebView.subproj/WebFrameInternal.h:
1749 * WebView.subproj/WebFramePrivate.h:
1751 2004-10-04 Chris Blumenberg <cblu@apple.com>
1753 Fixed: <rdar://problem/3758113> REGRESSION: Macromedia ColdFusion page doesn't show main content
1755 After bumping up our plug-in version, Flash now sends 2 CRLF's between the headers and body of their POST request. Our code was not prepared for this.
1759 * Plugins.subproj/WebBaseNetscapePluginView.m:
1760 (-[NSData _web_locationAfterFirstBlankLine]): looks for 2 CRLF's, not for 2 LF's
1762 2004-10-04 Darin Adler <darin@apple.com>
1766 - fixed a potential storage leak when we turn on CGImageRef image rendering
1768 * WebCoreSupport.subproj/WebImageRenderer.m: (-[WebImageRenderer dealloc]): Fix potential storage leak
1769 by adding [super dealloc], but leak was not real yet because the code is commented out.
1771 - make paste style work with color as part of fix to <rdar://problem/3814237> REGRESSION (Mail):
1772 Copy/paste style does not set color in Mail compose window
1774 * WebView.subproj/WebHTMLView.m:
1775 (-[WebHTMLView _selectionFontAttributes]): Change structure so it's easy to add more attributes.
1776 For now I haven't added any yet.
1777 (-[WebHTMLView _colorAsString:]): Moved this earlier in the file.
1778 (-[WebHTMLView _shadowAsString:]): Ditto.
1779 (-[WebHTMLView _styleFromFontAttributes:]): Add background color, foreground color, and text shadow.
1781 2004-09-30 Richard Williamson <rjw@apple.com>
1783 Fixed <rdar://problem/3821215> NPN hasMethod and hasProperty functions should take NPObjects, not NPClass
1785 Also changed dashboard regions dictionary to use "control"
1786 for scroller region label, instead of "scroller, per
1791 * Plugins.subproj/npruntime.h:
1792 * WebView.subproj/WebView.m:
1793 (-[WebView _addScrollerDashboardRegions:from:]):
1795 2004-09-30 Chris Blumenberg <cblu@apple.com>
1797 Fixed: <rdar://problem/3498680> switching back and forth between tabs stops calling anything in a plug-in
1801 * Plugins.subproj/WebBaseNetscapePluginView.m:
1802 (-[WebBaseNetscapePluginView sendEvent:]): call setWindowIfNecessary because the window may have changed
1803 (-[WebBaseNetscapePluginView updateAndSetWindow]): new
1804 (-[WebBaseNetscapePluginView setWindowIfNecessary]): was setWindow, this method now just sets the window
1805 (-[WebBaseNetscapePluginView start]): call updateAndSetWindow
1806 (-[WebBaseNetscapePluginView viewDidMoveToWindow]): ditto
1807 (-[WebBaseNetscapePluginView viewHasMoved:]): ditto
1809 2004-09-30 Chris Blumenberg <cblu@apple.com>
1811 Fixed: <rdar://problem/3498668> switching out of tab doesn't send loseFocusEvent to plug-in
1815 * Plugins.subproj/WebBaseNetscapePluginView.h:
1816 * Plugins.subproj/WebBaseNetscapePluginView.m:
1817 (-[WebBaseNetscapePluginView setHasFocus:]): new, sends events to plug-in
1818 (-[WebBaseNetscapePluginView becomeFirstResponder]): call setHasFocus
1819 (-[WebBaseNetscapePluginView resignFirstResponder]): ditto
1820 (-[WebBaseNetscapePluginView viewWillMoveToWindow:]): ditto
1822 2004-09-30 Chris Blumenberg <cblu@apple.com>
1825 Assertion failure when loading standalone netscape plug-in content.
1826 Document loads of WebKit plug-in content should be cancelled since the plug-in does its own loading.
1830 * Misc.subproj/WebKitErrors.m: removed deprecated method
1831 * Misc.subproj/WebKitErrorsPrivate.h:
1832 * Plugins.subproj/WebNetscapePluginDocumentView.m:
1833 (-[WebNetscapePluginDocumentView setDataSource:]): fixed the assertion statement
1834 * Plugins.subproj/WebPluginDocumentView.h:
1835 * Plugins.subproj/WebPluginDocumentView.m:
1836 (-[WebPluginDocumentView dealloc]): remove retained plug-in
1837 (-[WebPluginDocumentView setDataSource:]): retain the plug-in, cancel the laod
1839 2004-09-29 Chris Blumenberg <cblu@apple.com>
1842 <rdar://problem/3763832> Safari-155: Non-Embeded movies fail to open in Cocoa QT plug-in
1843 <rdar://problem/3820517> "*** -[WebPluginPackage NPP_New]: selector not recognized [self = 0x5552c10]"
1847 * History.subproj/WebHistoryItem.m:
1848 * Misc.subproj/WebNSViewExtras.h:
1849 * Misc.subproj/WebNSViewExtras.m:
1850 (-[NSView _web_firstResponderCausesFocusDisplay]):
1851 (-[NSView _webView]):
1853 (-[NSView _bridge]):
1854 (-[NSView _dataSource]):
1855 * Plugins.subproj/WebBasePluginPackage.h:
1856 * Plugins.subproj/WebBasePluginPackage.m:
1857 (-[WebBasePluginPackage hash]):
1858 (-[WebBasePluginPackage isQuickTimePlugIn]):
1859 * Plugins.subproj/WebNetscapePluginDocumentView.m:
1860 (-[WebNetscapePluginDocumentView setDataSource:]):
1861 * Plugins.subproj/WebNetscapePluginRepresentation.m:
1862 * Plugins.subproj/WebPluginController.h:
1863 * Plugins.subproj/WebPluginController.m:
1864 (-[WebPluginController initWithDocumentView:]):
1865 (-[WebPluginController addPlugin:]):
1866 (-[WebPluginController destroyAllPlugins]):
1867 (-[WebPluginController webPlugInContainerLoadRequest:inFrame:]):
1868 (-[WebPluginController webPlugInContainerShowStatus:]):
1869 (-[WebPluginController webPlugInContainerSelectionColor]):
1870 (-[WebPluginController webFrame]):
1871 * Plugins.subproj/WebPluginDatabase.h:
1872 * Plugins.subproj/WebPluginDatabase.m:
1873 (-[WebPluginDatabase pluginForKey:withEnumeratorSelector:]):
1874 (-[WebPluginDatabase refresh]):
1875 (WebPluginDocumentView::while):
1876 * Plugins.subproj/WebPluginDocumentView.h: Added.
1877 * Plugins.subproj/WebPluginDocumentView.m: Added.
1878 (-[WebPluginDocumentView initWithFrame:]):
1879 (-[WebPluginDocumentView dealloc]):
1880 (-[WebPluginDocumentView drawRect:]):
1881 (-[WebPluginDocumentView setDataSource:]):
1882 (-[WebPluginDocumentView setNeedsLayout:]):
1883 (-[WebPluginDocumentView layout]):
1884 (-[WebPluginDocumentView currentWindow]):
1885 (-[WebPluginDocumentView viewWillMoveToWindow:]):
1886 (-[WebPluginDocumentView viewDidMoveToWindow]):
1887 (-[WebPluginDocumentView viewWillMoveToHostWindow:]):
1888 (-[WebPluginDocumentView viewDidMoveToHostWindow]):
1889 (-[WebPluginDocumentView receivedData:withDataSource:]):
1890 (-[WebPluginDocumentView receivedError:withDataSource:]):
1891 (-[WebPluginDocumentView finishedLoadingWithDataSource:]):
1892 (-[WebPluginDocumentView canProvideDocumentSource]):
1893 (-[WebPluginDocumentView documentSource]):
1894 (-[WebPluginDocumentView title]):
1895 * Plugins.subproj/npapi.m:
1896 (NPN_ReleaseVariantValue):
1897 (NPN_GetStringIdentifier):
1898 (NPN_GetStringIdentifiers):
1899 (NPN_GetIntIdentifier):
1900 (NPN_IdentifierIsString):
1901 (NPN_UTF8FromIdentifier):
1902 (NPN_IntFromIdentifier):
1905 (NPN_ReleaseObject):
1907 (NPN_InvokeDefault):
1911 (NPN_RemoveProperty):
1916 * WebCoreSupport.subproj/WebBridge.m:
1917 (-[WebBridge frameRequiredForMIMEType:URL:]):
1918 * WebCoreSupport.subproj/WebViewFactory.m:
1920 * WebKit.pbproj/project.pbxproj:
1921 * WebView.subproj/WebDebugDOMNode.m:
1922 * WebView.subproj/WebDocumentInternal.h:
1923 * WebView.subproj/WebHTMLView.m:
1924 (-[WebHTMLView initWithFrame:]):
1925 * WebView.subproj/WebHTMLViewPrivate.h:
1926 * WebView.subproj/WebImageRepresentation.h:
1927 * WebView.subproj/WebRenderNode.m:
1928 * WebView.subproj/WebView.m:
1930 2004-09-29 Richard Williamson <rjw@apple.com>
1932 Fixed <rdar://problem/3779998> bringing window to front or sending to back does not send focus/blur events to JavaScript window object
1934 The fix has two parts, 1) make onblur and onfocus work for windows,
1935 and 2), allow the dashboard to override WebKit's special key/non-key
1940 * Plugins.subproj/WebBaseNetscapePluginView.m:
1941 (-[WebBaseNetscapePluginView restartNullEvents]):
1942 * WebView.subproj/WebHTMLView.m:
1943 (-[WebHTMLView addMouseMovedObserver]):
1944 (-[WebHTMLView removeMouseMovedObserver]):
1945 * WebView.subproj/WebView.m:
1946 (-[WebView _dashboardBehavior:]):
1947 * WebView.subproj/WebViewInternal.h:
1948 * WebView.subproj/WebViewPrivate.h:
1950 2004-09-29 Maciej Stachowiak <mjs@apple.com>
1954 - consolidated OS version checks into prefix header
1956 * Misc.subproj/WebFileDatabase.m:
1957 (-[WebFileDatabase _createLRUList:]):
1958 (+[WebFileDatabase _syncLoop:]):
1959 * Misc.subproj/WebKitErrors.m:
1961 * Misc.subproj/WebNSObjectExtras.h:
1962 (WebNSRetainCFRelease):
1963 * Misc.subproj/WebNSPasteboardExtras.m:
1964 (-[NSPasteboard _web_declareAndWriteDragImage:URL:title:archive:source:]):
1965 * Misc.subproj/WebUnicode.m:
1966 (_unicodeDirection):
1967 * WebCoreSupport.subproj/WebImageData.h:
1968 * WebCoreSupport.subproj/WebImageRenderer.h:
1969 * WebCoreSupport.subproj/WebKeyGenerator.h:
1970 * WebCoreSupport.subproj/WebNewKeyGeneration.c:
1972 * WebView.subproj/WebDataSource.m:
1973 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
1974 (-[WebDataSource isLoading]):
1975 * WebView.subproj/WebFrameView.m:
1976 (+[WebFrameView _viewTypesAllowImageTypeOmission:]):
1977 * WebView.subproj/WebHTMLView.m:
1978 * WebView.subproj/WebPDFRepresentation.h:
1979 * WebView.subproj/WebPDFRepresentation.m:
1980 * WebView.subproj/WebPDFView.h:
1981 * WebView.subproj/WebPDFView.m:
1983 2004-09-29 Ken Kocienda <kocienda@apple.com>
1989 <rdar://problem/3818296> REGRESSION (Mail): centerSelectionInVisibleArea does not work correctly
1991 * WebView.subproj/WebHTMLView.m:
1992 (-[WebHTMLView centerSelectionInVisibleArea:]): Now calls new centerSelectionInVisibleArea
1993 bridge function instead of ensureCaretVisible. Now handles caret selections and range
1994 selections correctly.
1996 2004-09-28 Chris Blumenberg <cblu@apple.com>
1998 Added timing code so that Doug can time RTF conversion.
2000 * WebView.subproj/WebHTMLView.m:
2001 (-[WebHTMLView writeSelectionWithPasteboardTypes:toPasteboard:]):
2002 (-[WebHTMLView _attributeStringFromDOMRange:]):
2004 2004-09-28 Richard Williamson <rjw@apple.com>
2006 <rdar://problem/3817421> add getter for dashboard regions (debugging)
2008 <rdar://problem/3817417> NSScrollView need autoregions for dashboard
2013 * WebCoreSupport.subproj/WebBridge.m:
2014 (-[WebBridge dashboardRegionsChanged:]):
2015 * WebView.subproj/WebView.m:
2016 (-[WebView _setInitiatedDrag:]):
2017 (-[WebView _addScrollerDashboardRegions:from:]):
2018 (-[WebView _addScrollerDashboardRegions:]):
2019 (-[WebView _dashboardRegions]):
2020 * WebView.subproj/WebViewPrivate.h:
2022 2004-09-27 John Sullivan <sullivan@apple.com>
2024 - fixed <rdar://problem/3814705> 8A266: Safari authentication dialog "remember password" text should match Mail
2026 * Panels.subproj/English.lproj/WebAuthenticationPanel.nib:
2027 changed "Remember this password" to "Remember this password in my keychain";
2028 this will need to go through CCC for this week's build.
2030 2004-09-27 Chris Blumenberg <cblu@apple.com>
2032 Fixed: <rdar://problem/3594754> change null event interval from 20 ms to 10 ms to match speed on Windows
2036 * Plugins.subproj/WebBaseNetscapePluginView.m:
2038 2004-09-27 Chris Blumenberg <cblu@apple.com>
2040 Fixed: <rdar://problem/3502138> text files don't remember scroll position when going back or reloading
2044 * WebView.subproj/WebTextView.m:
2045 (-[WebTextView layout]): implemented, call sizeToFit, without this scrollPoint: won't work
2047 2004-09-27 John Sullivan <sullivan@apple.com>
2051 - WebKit part of fix for <rdar://problem/3734466> ER: Support standard editing keystrokes
2052 like Cmd-B while editing rich text
2054 * WebView.subproj/WebHTMLView.m:
2055 (-[WebHTMLView _toggleBold]):
2056 new method, toggles font-weight from "bold" to "normal"
2057 (-[WebHTMLView _toggleItalic]):
2058 new method, toggles font-style from "italic" to "normal"
2059 (-[WebHTMLView _handleStyleKeyEquivalent:]):
2060 new method, if the new preference is set and we're in an editable state, check for standard
2061 key equivalents for toggling styles (just command-B and command-I for now).
2062 (-[WebHTMLView performKeyEquivalent:]):
2063 Moved in file, now calls _handleStyleKeyEquivalent:
2065 * WebView.subproj/WebPreferenceKeysPrivate.h:
2066 new preference key WebKitRespectStandardStyleKeyEquivalentsPreferenceKey
2067 * WebView.subproj/WebPreferences.m:
2068 (+[WebPreferences initialize]):
2069 initial value of WebKitRespectStandardStyleKeyEquivalentsPreferenceKey is NO (maybe we'll
2070 change our minds about this, but this is more guaranteed to be backward-compatible)
2071 (-[WebPreferences respectStandardStyleKeyEquivalents]):
2072 read WebKitRespectStandardStyleKeyEquivalentsPreferenceKey
2073 (-[WebPreferences setRespectStandardStyleKeyEquivalents:]):
2074 write WebKitRespectStandardStyleKeyEquivalentsPreferenceKey
2076 * WebView.subproj/WebPreferencesPrivate.h:
2077 declare getter and setter
2079 * English.lproj/StringsNotToBeLocalized.txt:
2080 updated for these and other recent changes
2082 2004-09-27 Chris Blumenberg <cblu@apple.com>
2084 Fixed: <rdar://problem/3806649> assertion failure after control-click of webcam
2088 * WebView.subproj/WebDefaultContextMenuDelegate.m:
2089 (-[WebDefaultUIDelegate contextMenuItemsForElement:]): don't provide "Copy Image" if the image is not fully loaded
2091 2004-09-27 Chris Blumenberg <cblu@apple.com>
2093 Fixed: <rdar://problem/3814810> REGRESSION (125-164): Exception adding nil to dictionary in dragging code
2097 * WebView.subproj/WebHTMLView.m:
2098 (-[WebHTMLView _setMouseDownEvent:]): new
2099 (-[WebHTMLView acceptsFirstMouse:]): call _setMouseDownEvent
2100 (-[WebHTMLView shouldDelayWindowOrderingForEvent:]): ditto
2101 (-[WebHTMLView mouseDown:]): ditto
2102 (-[WebHTMLView _delegateDragSourceActionMask]): removed temp fix, assert that the mouse event is not nil
2104 2004-09-27 Darin Adler <darin@apple.com>
2106 * WebKit.pbproj/project.pbxproj: Added WebDashboardRegion.h as a private header.
2108 2004-09-24 Chris Blumenberg <cblu@apple.com>
2112 * WebView.subproj/WebHTMLView.m:
2113 (-[WebHTMLView _selectedArchive]): added timing code for copying markup
2117 2004-09-24 Chris Blumenberg <cblu@apple.com>
2119 Temp fix for: <rdar://problem/3814810> REGRESSION (125-164): Exception adding nil to dictionary in dragging code
2123 * WebView.subproj/WebHTMLView.m:
2124 (-[WebHTMLView _delegateDragSourceActionMask]): return none if the mouse down event is nil
2126 2004-09-24 Ken Kocienda <kocienda@apple.com>
2132 <rdar://problem/3813917> REGRESSION (125-163): The font panel will change the font of any web page
2134 We were doing a laughably bad job at preventing edits in documents that were not editable.
2135 This change fixes the specific case of the bug mentioned above, and makes an attempt to
2136 fix similar bugs by checking for whether the view is in editing mode before making edits.
2138 * WebView.subproj/WebHTMLView.m:
2139 (-[WebHTMLView _canEdit]): Renamed from _canType. Used in many more places in the code now.
2140 (-[WebHTMLView _isMoveDrag]): Change around code to make the meaning more clear. This one
2141 was actually performing a correct check before.
2142 (-[WebHTMLView keyDown:]): Renamed _canType to _canEdit.
2143 (-[WebHTMLView paste:]): Don't beep if can't paste. This matches AppKit. Any paste-related beeps
2144 will come from failure to handle key equivalent. Menu validation will kick in to dim menu.
2145 (-[WebHTMLView _applyStyleToSelection:]): Bail if !_canEdit.
2146 (-[WebHTMLView pasteAsPlainText:]): Ditto.
2147 (-[WebHTMLView _alignSelectionUsingCSSValue:]): Ditto.
2148 (-[WebHTMLView insertNewline:]): Ditto.
2149 (-[WebHTMLView insertParagraphSeparator:]): Ditto.
2150 (-[WebHTMLView _changeWordCaseWithSelector:]): Ditto.
2151 (-[WebHTMLView _deleteWithDirection:granularity:killRing:]): Ditto.
2152 (-[WebHTMLView complete:]): Ditto.
2153 (-[WebHTMLView _changeSpellingToWord:]): Ditto. Some code rearranging to eliminate bridge local variable.
2154 (-[WebHTMLView ignoreSpelling:]): Ditto.
2155 (-[WebHTMLView yank:]): Bail if !_canEdit.
2156 (-[WebHTMLView yankAndSelect:]): Ditto.
2157 (-[WebHTMLView deleteToMark:]): Ditto.
2158 (-[WebHTMLView swapWithMark:]): Ditto.
2159 (-[WebHTMLView transpose:]): Ditto.
2160 (-[WebHTMLView _updateFontPanel]): Ditto. Some code rearranging to eliminate bridge local variable.
2161 (-[WebHTMLView setMarkedText:selectedRange:]): Bail if !_canEdit.
2162 (-[WebHTMLView _insertText:selectInsertedText:]): Ditto. Some code rearranging to eliminate bridge local variable.
2163 * WebView.subproj/WebHTMLViewPrivate.h: Renamed _canType to _canEdit.
2165 2004-09-24 Ken Kocienda <kocienda@apple.com>
2169 * WebCoreSupport.subproj/WebDashboardRegion.h: Check in file copied from WebCore.
2171 2004-09-23 Maciej Stachowiak <mjs@apple.com>
2175 <rdar://problem/3685235> REGRESSION (Mail): links are not properly editable
2177 * WebView.subproj/WebDefaultUIDelegate.m: By default, don't allow
2178 link dragging if the element under the mouse pointer is
2179 editable. This way, you can drag-select starting inside a link.
2181 2004-09-23 John Sullivan <sullivan@apple.com>
2185 - WebKit part of fix for <rdar://problem/3415264>
2186 Default encoding should initially be set to current system encoding
2188 * WebView.subproj/WebPreferences.m:
2189 (-[WebPreferences _setInitialDefaultTextEncodingToSystemEncoding]):
2190 new SPI that sets the initial value of the default text encoding to
2191 be the system encoding, with a special-case conversion of MacRoman->Latin1.
2192 This is not done automatically for WebKit clients for fear of breaking them.
2194 * WebView.subproj/WebPreferencesPrivate.h:
2197 2004-09-23 Darin Adler <darin@apple.com>
2201 - fixed <rdar://problem/3811584> REGRESSION (85-125): iframe.document undefined in function called from button onclick; works from img onclick
2203 The fix is to not let "defers callbacks" have any effect on loading "about:blank".
2204 I also had to fix one bug in WebCore that could then be reproduced by going to "about:blank"
2205 while using a button.
2207 * WebView.subproj/WebMainResourceClient.m:
2208 (-[WebMainResourceClient connection:didReceiveResponse:]): Loosen asserts to allow this callback
2209 for the specific case of "about:blank" even if the defers callbacks flag is true.
2210 (-[WebMainResourceClient connectionDidFinishLoading:]): Ditto.
2211 (-[WebMainResourceClient loadWithRequestNow:]): Added NSURLRequest return value. Loosened asserts
2212 as above. Changed code to return a new request if we get a new request back that is not empty
2213 when the defers callbacks flag is true.
2214 (-[WebMainResourceClient loadWithRequest:]): If the defers callbacks flag is set, but the
2215 URL is one that gives us an empty document, then do the work right away, don't defer it.
2217 2004-09-23 Darin Adler <darin@apple.com>
2219 - fixed B&I builds by checking in generated file
2221 * WebCoreSupport.subproj/WebDashboardRegion.h: Added.
2223 2004-09-22 Richard Williamson <rjw@apple.com>
2225 Pass dashboard regions to UI delegate.
2229 * WebCoreSupport.subproj/WebBridge.m:
2230 (-[WebBridge dashboardRegionsChanged:]):
2231 * WebView.subproj/WebUIDelegatePrivate.h:
2232 * copy-webcore-files-to-webkit:
2234 2004-09-22 Chris Blumenberg <cblu@apple.com>
2236 Fixed build that I just broke.
2238 * WebView.subproj/WebHTMLView.m:
2239 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]):
2241 2004-09-22 Chris Blumenberg <cblu@apple.com>
2243 <rdar://problem/3812091> REGRESSION (Mail): double-clicked word is not smart inserted on drag
2247 * WebView.subproj/WebHTMLView.m:
2248 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): pass value for smartMove
2250 2004-09-22 Chris Blumenberg <cblu@apple.com>
2253 <rdar://problem/3667301> Frequent crashes in Mail when viewing HTML messages (CFURLGetByteRangeForComponent)
2254 <rdar://problem/3810354> WebResourceLoadDelegate can't refuse requests by returning nil; code asserts/crashes instead
2258 * WebCoreSupport.subproj/WebSubresourceClient.m:
2259 (+[WebSubresourceClient startLoadingResource:withRequest:customHeaders:referrer:forDataSource:]): removed broken code that handled loadWithRequest returning NO
2260 * WebView.subproj/WebBaseResourceHandleDelegate.m:
2261 (-[WebBaseResourceHandleDelegate loadWithRequest:]): if nil is returned from the client for willSendRequest, report the cancelled error and return
2263 2004-09-22 Ken Kocienda <kocienda@apple.com>
2267 * WebView.subproj/WebFrameView.m:
2268 (-[WebFrameView _webcore_effectiveFirstResponder]): New function to yield the correct responder
2269 to check for firstResponder-ness before calling makeFirstResonder. This helps to prevent
2270 unwanted firstResponder switching.
2271 * WebView.subproj/WebView.m:
2272 (-[WebView _webcore_effectiveFirstResponder]): Ditto.
2274 2004-09-21 Chris Blumenberg <cblu@apple.com
2277 <rdar://problem/3735071> REGRESSION (Mail): WebCore Editing must do smart paste
2278 <rdar://problem/3799163> REGRESSION (Mail): Deleting a word doesn't delete whitespace
2282 * WebView.subproj/WebDataSource.m:
2283 (-[WebDataSource _replaceSelectionWithArchive:selectReplacement:]): pass NO for smartReplace
2284 * WebView.subproj/WebHTMLView.m:
2285 (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]): pass parameter for smartReplace using _canSmartReplaceWithPasteboard
2286 (-[WebHTMLView _changeSpellingFromMenu:]): pass NO for smartReplace
2287 (-[WebHTMLView pasteboardTypesForSelection]): include WebSmartPastePboardType when _canSmartCopyOrDelete return YES
2288 (-[WebHTMLView writeSelectionWithPasteboardTypes:toPasteboard:]): ditto
2289 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): pass parameter for smartReplace using _canSmartReplaceWithPasteboard
2290 (-[WebHTMLView delete:]): call _deleteSelection
2291 (-[WebHTMLView cut:]): don't call delegate twice, call _deleteRange to delete
2292 (-[WebHTMLView pasteAsPlainText:]): pass parameter for smartReplace using _canSmartReplaceWithPasteboard
2293 (-[WebHTMLView _changeWordCaseWithSelector:]): pass NO for smartReplace
2294 (-[WebHTMLView deleteBackward:]): call _deleteSelection when there is a selected range
2295 (-[WebHTMLView _changeSpellingToWord:]): pass NO for smartReplace
2296 (-[WebHTMLView deleteToMark:]): pass NO for smartDeleteOK
2297 (-[WebHTMLView transpose:]): pass NO for smartReplace
2298 (-[WebHTMLView _shouldDeleteRange:]): moved
2299 (-[WebHTMLView _deleteRange:preflight:killRing:prepend:smartDeleteOK:]): moved, handle smartDelete
2300 (-[WebHTMLView _deleteWithDirection:granularity:killRing:]): moved
2301 (-[WebHTMLView _deleteSelection]): new
2302 (-[WebHTMLView _canSmartReplaceWithPasteboard]): new
2303 (-[WebHTMLView _canSmartCopyOrDelete]): new
2304 (-[WebHTMLView setMarkedText:selectedRange:]): pass NO for smartReplace
2305 (-[WebHTMLView _discardMarkedText]): call _deleteSelection
2306 (-[WebTextCompleteController _insertMatch:]): pass NO for smartReplace
2307 (-[WebTextCompleteController endRevertingChange:moveLeft:]): pass NO for smartReplace
2308 * WebView.subproj/WebHTMLViewInternal.h:
2309 * WebView.subproj/WebView.m:
2310 (-[WebView _commonInitializationWithFrameName:groupName:]): set smartInsertDeleteEnabled to YES
2311 (-[WebView replaceSelectionWithNode:]): pass NO for smartReplace
2312 (-[WebView replaceSelectionWithText:]): pass NO for smartReplace
2313 (-[WebView replaceSelectionWithMarkupString:]): pass NO for smartReplace
2314 (-[WebView deleteSelection]): call _deleteSelection on WebHTMLView
2316 2004-09-21 John Sullivan <sullivan@apple.com>
2320 - WebKit part of fix for <rdar://problem/3618274> REGRESSION (125-135):
2321 Option-tab doesn't always work as expected
2323 * WebCoreSupport.subproj/WebBridge.m:
2324 (-[WebBridge _retrieveKeyboardUIModeFromPreferences:]):
2325 Don't set WebCoreKeyboardAccessFull when setting WebCoreKeyboardAccessTabsToLinks
2326 after all; these need to be tested independently to get the option-tab behavior
2329 2004-09-21 John Sullivan <sullivan@apple.com>
2331 * WebView.subproj/WebHTMLView.m:
2332 (-[WebHTMLView doCommandBySelector:]):
2333 Commented out part of previous change; it breaks Mail editing until Mail
2336 2004-09-21 John Sullivan <sullivan@apple.com>
2340 * WebView.subproj/WebHTMLView.m:
2341 (-[WebHTMLView doCommandBySelector:]):
2342 Fix build failure from previous checkin, d'oh! Didn't set up webview variable.
2344 2004-09-21 John Sullivan <sullivan@apple.com>
2348 - fixed <rdar://problem/3809477> WebHTMLView needs to pass doCommandBySelector through delegate
2350 * WebView.subproj/WebHTMLView.m:
2351 (-[WebHTMLView doCommandBySelector:]):
2352 Call through to editing delegate. If editing delegate returns YES, don't call super.
2354 * WebView.subproj/WebDefaultEditingDelegate.m:
2355 (-[WebDefaultEditingDelegate webView:doCommandBySelector:]):
2356 default implementation (which was never called) was returning YES, but it should
2357 return NO to signal that it didn't handle the selector.
2359 2004-09-21 Chris Blumenberg <cblu@apple.com>
2361 Fixed: <rdar://problem/3647229> Safari does not play inline Windows Media Content on some sites (miggy.net and ministryofsound.com)
2365 * Plugins.subproj/WebBaseNetscapePluginView.m:
2366 * Plugins.subproj/WebNetscapePluginEmbeddedView.m:
2367 (-[WebNetscapePluginEmbeddedView initWithFrame:plugin:URL:baseURL:MIMEType:attributeKeys:attributeValues:]): set the plug-in before calling setting the attributes, so we can avoid passing certain attributes to the WMP plug-in that cause it to crash
2369 2004-09-20 Chris Blumenberg <cblu@apple.com>
2371 Fixed: <rdar://problem/3781290> REGRESSION (Mail): Crash in ReplaceSelectionCommandImpl attaching file to new message
2373 Reviewed by kocienda.
2375 * WebView.subproj/WebView.m:
2376 (-[WebView setEditable:]): call updateSelectionFromEmpty on the bridge if there is no selection
2378 2004-09-20 Chris Blumenberg <cblu@apple.com>
2380 Changes to implement renamed bridge methods.
2385 * DOM.subproj/WebDOMOperations.m:
2386 (-[DOMDocument URLWithAttributeString:]): call renamed bridge method
2387 * WebCoreSupport.subproj/WebBridge.m:
2388 (-[WebBridge pluginViewWithPackage:attributeNames:attributeValues:baseURL:]): take 2 parameter arrays rather than 1 which will have to be parsed
2389 (-[WebBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:]): ditto
2391 2004-09-20 Darin Adler <darin@apple.com>
2395 * WebView.subproj/WebFramePrivate.h: Added back.
2396 * WebView.subproj/WebFrameViewPrivate.h: Removed.
2398 2004-09-20 Darin Adler <darin@apple.com>
2402 - fixed <rdar://problem/3655360> REGRESSION (Mail): Ctrl-V emacs key binding, -pageDown: method, unimplemented (and pageUp, and selection-modifying versions)
2403 - fixed <rdar://problem/3792138> REGRESSION (Mail): Spell checker doesn't check current selected word
2405 * WebView.subproj/WebFrameViewInternal.h: Moved WebFrameViewPrivate inside the WebFrameView.m file.
2406 Removed a bunch of methods that don't need to be seen in other files, and added _verticalPageScrollDistance.
2407 * WebView.subproj/WebFrameViewPrivate.h: Removed. Renamed to WebFrameViewInternal.h.
2408 * WebView.subproj/WebFrameView.m:
2409 (-[WebFrameView _verticalKeyboardScrollDistance]): Move in the file because of internal vs. private.
2410 (-[WebFrameView _shouldDrawBorder]): Ditto.
2411 (-[WebFrameView _tile]): Ditto.
2412 (-[WebFrameView _verticalPageScrollDistance]): Added. Separate method so it can be called
2413 by the code to implement pageDown:.
2414 (-[WebFrameView _drawBorder]): Move in the file because of internal vs. private.
2415 (-[WebFrameView _goBack]): Ditto.
2416 (-[WebFrameView _goForward]): Ditto.
2417 (-[WebFrameView _scrollVerticallyBy:]): Ditto.
2418 (-[WebFrameView _scrollHorizontallyBy:]): Ditto.
2419 (-[WebFrameView _horizontalKeyboardScrollDistance]): Ditto.
2420 (-[WebFrameView _horizontalPageScrollDistance]): Added. Separate method for consistency with
2421 vertical method above.
2422 (-[WebFrameView _pageVertically:]): Moved and changed to use _verticalPageScrollDistance.
2423 (-[WebFrameView _pageHorizontally:]): Moved and changed to use _horizontalPageScrollDistance.
2424 (-[WebFrameView _scrollLineVertically:]): Move in the file because of internal vs. private.
2425 (-[WebFrameView _scrollLineHorizontally:]): Ditto.
2426 (-[WebFrameView scrollPageUp:]): Ditto.
2427 (-[WebFrameView scrollPageDown:]): Ditto.
2428 (-[WebFrameView scrollLineUp:]): Ditto.
2429 (-[WebFrameView scrollLineDown:]): Ditto.
2430 (-[WebFrameView _firstResponderIsControl]): Ditto.
2431 (-[WebFrameView keyDown:]): Changed to eliminate _pageLeft, _lineLeft, _pageRight, and _lineRight.
2433 * WebView.subproj/WebDataSource.m: Use WebFrameView.h instead of WebFrameViewPrivate.h.
2435 * WebView.subproj/WebHTMLView.m:
2436 (-[WebHTMLView _alterCurrentSelection:verticalDistance:]): Added.
2437 (-[WebHTMLView moveToBeginningOfDocument:]): Use WebSelectToDocumentBoundary.
2438 (-[WebHTMLView moveToBeginningOfDocumentAndModifySelection:]): Ditto.
2439 (-[WebHTMLView moveToEndOfDocument:]): Ditto.
2440 (-[WebHTMLView moveToEndOfDocumentAndModifySelection:]): Ditto.
2441 (-[WebHTMLView moveParagraphBackwardAndModifySelection:]): Added.
2442 (-[WebHTMLView moveParagraphForwardAndModifySelection:]): Added.
2443 (-[WebHTMLView pageUp:]): Added.
2444 (-[WebHTMLView pageDown:]): Added.
2445 (-[WebHTMLView pageUpAndModifySelection:]): Added.
2446 (-[WebHTMLView pageDownAndModifySelection:]): Added.
2447 (-[WebHTMLView showGuessPanel:]): Changed to call advanceToNextMisspellingStartingJustBeforeSelection.
2448 This fixes the problem with spell checking.
2450 * WebView.subproj/WebImageView.m:
2451 (-[WebImageView webView]): Changed to use _web_parentWebView.
2452 (-[WebImageView menuForEvent:]): Changed to use [self webView].
2453 (-[WebImageView mouseDown:]): Ditto.
2454 (-[WebImageView mouseDragged:]): Ditto.
2455 (-[WebImageView draggedImage:endedAt:operation:]): Ditto.
2457 * WebView.subproj/WebTextView.m:
2458 (-[WebTextView _textSizeMultiplierFromWebView]): Changed to use _web_parentWebView.
2459 (-[WebTextView menuForEvent:]): Ditto.
2460 (-[WebTextView drawPageBorderWithSize:]): Ditto.
2461 (-[WebTextView knowsPageRange:]): Ditto.
2463 * Plugins.subproj/WebPluginDatabase.m: Updated filename of WebFrameViewInternal.h.
2464 * WebCoreSupport.subproj/WebBridge.m: Ditto.
2465 * WebKit.pbproj/project.pbxproj: Ditto.
2466 * WebView.subproj/WebFrame.m: Ditto.
2467 * WebView.subproj/WebView.m: Ditto.
2468 * Misc.subproj/WebNSViewExtras.m: Ditto.
2470 2004-09-20 Darin Adler <darin@apple.com>
2474 - added helper method _web_parentWebView so fewer files need to get at WebFrame private methods
2476 * Misc.subproj/WebNSViewExtras.h: Added _web_parentWebView.
2477 * Misc.subproj/WebNSViewExtras.m: (-[NSView _web_parentWebView]): Added.
2481 2004-09-17 Chris Blumenberg <cblu@apple.com>
2484 <rdar://problem/3805757> don't unnecessarily put RTFD on the pasteboard
2485 <rdar://problem/3805756> strip attachments before generating RTF
2489 * WebView.subproj/WebHTMLView.m:
2490 (-[WebHTMLView writeSelectionWithPasteboardTypes:toPasteboard:]): only put RTFD on the pasteboard if it has attachments, strip attachments when writing RTF
2492 2004-09-16 Darin Adler <darin@apple.com>
2496 - fixed <rdar://problem/3804648> 8A262: Safari crashed in -[WebView(WebPrivate) _editingDelegateForwarder] inside QuickTime Cocoa Plug-in during WebView deallocation
2498 * WebView.subproj/WebView.m: (-[WebView _editingDelegateForwarder]):
2499 Check _private for nil before dereferencing it.
2501 2004-09-16 Chris Blumenberg <cblu@apple.com>
2503 Fixed: <rdar://problem/3779150> REGRESSION: images not copied when copying HTML in Safari and pasting into TextEdit
2507 * WebView.subproj/WebHTMLView.m:
2508 (-[WebHTMLView writeSelectionWithPasteboardTypes:toPasteboard:]): use RTFDFromRange:: for RTFD
2509 * WebView.subproj/WebHTMLViewPrivate.h:
2511 2004-09-15 Darin Adler <darin@apple.com>
2515 - fixed assertion I saw using the font panel
2517 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView _colorAsString:]):
2518 Convert color space before trying to get R, G, and B components.
2520 2004-09-15 Chris Blumenberg <cblu@apple.com>
2522 Fixed: <rdar://problem/3802232> REGRESSION (Mail): WebCore Editing must do smart copy
2524 Reviewed by kocienda.
2526 * WebView.subproj/WebHTMLView.m:
2527 (-[WebHTMLView _writeSelectionToPasteboard:]): call instance method not class method to get pasteboard types since the types depends on the current selection granularity
2528 (-[WebHTMLView pasteboardTypesForSelection]): if the selection granularity is "word" include the smart pasteboard type
2529 (-[WebHTMLView writeSelectionWithPasteboardTypes:toPasteboard:]): put nil on the pasteboard for smart copy
2531 2004-09-14 Darin Adler <darin@apple.com>
2535 - fixed <rdar://problem/3788894> REGRESSION (Mail): ctrl-t emacs key binding does not work (transpose)
2536 - fixed <rdar://problem/3798946> REGRESSION (Mail): Cursor does not disappear when typing
2538 * WebView.subproj/WebHTMLView.m:
2539 (-[WebHTMLView keyDown:]): Hide cursor by calling setHiddenUntilMouseMoves:YES.
2540 (-[WebHTMLView transpose:]): Added.
2542 2004-09-14 Richard Williamson <rjw@apple.com>
2544 1. Add class parameter to object allocation function. This is somewhat redundant, given that
2545 the allocation function is in the class function vector, but people wanted to use the same
2546 allocation function for different classes.
2548 2. Renamed NPN_Class to NPN_Invoke to match the name in the function vector.
2550 3. Add support for a default function on an object. This is a feature that ActiveX supports,
2551 and will allow JavaScript code to be written that will look exactly the same for both ActiveX
2552 plugins and Netscape or WebKit plugins. There are implementations included for the 'C' and
2553 'Objective-C' bindings.
2555 There bugs are covered by
2557 <rdar://problem/3776343> Support for default functions in the JavaScript bindings
2558 <rdar://problem/3779186> NPN_Call needs to be renamed to NPN_Invoke
2559 <rdar://problem/3674754> Need to implement latest npruntime.h
2563 * Plugins.subproj/WebNetscapePluginPackage.m:
2564 (-[WebNetscapePluginPackage load]):
2565 * Plugins.subproj/WebScriptObject.h:
2566 * Plugins.subproj/npfunctions.h:
2567 * Plugins.subproj/npruntime.h:
2569 2004-09-13 Richard Williamson <rjw@apple.com>
2571 D'oh. How many times can I screw up a simple fix!
2573 * WebCoreSupport.subproj/WebTextRenderer.m:
2574 (-[WebTextRenderer initWithFont:usingPrinterFont:]):
2576 2004-09-13 Richard Williamson <rjw@apple.com>
2578 Fixed snafu from 3782533 checkin.
2582 * WebCoreSupport.subproj/WebTextRenderer.m:
2583 (-[WebTextRenderer initWithFont:usingPrinterFont:]):
2585 2004-09-12 Chris Blumenberg <cblu@apple.com>
2587 Support for: <rdar://problem/3794790> drop rate or time remaining from download status when window is too small to fit it
2591 * Misc.subproj/WebStringTruncator.h:
2592 * Misc.subproj/WebStringTruncator.m:
2593 (+[WebStringTruncator widthOfString:font:]): new
2595 2004-09-10 Richard Williamson <rjw@apple.com>
2597 Fixed <rdar://problem/3782533> CrashTracer: .1459 crashes at com.apple.WebKit: -[WebTextRenderer initWithFont:usingPrinterFont:] + 0x138
2599 We were explicitly failing when we encountered deprecated fonts.
2600 (Those with unsupported glyph packings).
2601 Deprecated fonts should only appear on a system that have
2602 stuff migrated from OS 9. Ugh, thats probably why we've never seen
2607 * WebCoreSupport.subproj/WebTextRenderer.m:
2608 (-[WebTextRenderer initWithFont:usingPrinterFont:]):
2610 2004-09-10 John Sullivan <sullivan@apple.com>
2614 - added _isFrameSet as a private method, so it can be used in WebBrowser.
2615 This is needed to merge the fix for 3123987 to SUPanNavy.
2617 * WebView.subproj/WebFrame.m:
2618 (-[WebFrame _isFrameSet]):
2621 * WebView.subproj/WebFramePrivate.h:
2624 2004-09-09 Chris Blumenberg <cblu@apple.com>
2626 Support for: <rdar://problem/3795485> debug menu item to enable RSS animation on first layout
2630 * WebCoreSupport.subproj/WebBridge.m:
2631 (-[WebBridge didFirstLayout]): new
2632 * WebView.subproj/WebDefaultFrameLoadDelegate.m:
2633 (-[WebDefaultFrameLoadDelegate webView:didFirstLayoutInFrame:]): new
2634 * WebView.subproj/WebViewPrivate.h:
2636 2004-09-09 Richard Williamson <rjw@apple.com>
2638 Alternate implementation of image rendering. Use CGImageRefs instead
2641 Mostly works, but currently disabled because of issues w/ CG.
2646 * WebCoreSupport.subproj/WebImageData.h: Added.
2647 * WebCoreSupport.subproj/WebImageData.m: Added.
2648 (-[WebImageData _commonTermination]):
2649 (-[WebImageData dealloc]):
2650 (-[WebImageData finalize]):
2651 (-[WebImageData copyWithZone:]):
2652 (-[WebImageData numberOfImages]):
2653 (-[WebImageData currentFrame]):
2654 (-[WebImageData _invalidateImages]):
2655 (-[WebImageData imageAtIndex:]):
2656 (-[WebImageData incrementalLoadWithBytes:length:complete:]):
2658 (-[WebImageData tileInRect:fromPoint:context:]):
2659 (-[WebImageData isNull]):
2660 (-[WebImageData size]):
2661 (-[WebImageData _frameDuration]):
2662 (-[WebImageData _repetitionCount]):
2663 (-[WebImageData isAnimationFinished]):
2664 (+[WebImageData stopAnimationsInView:]):
2665 (-[WebImageData addAnimatingRenderer:inView:]):
2666 (-[WebImageData removeAnimatingRenderer:]):
2667 (-[WebImageData _stopAnimation]):
2668 (-[WebImageData _nextFrame:]):
2669 (-[WebImageData animate]):
2670 * WebCoreSupport.subproj/WebImageRenderer.h:
2671 * WebCoreSupport.subproj/WebImageRenderer.m:
2672 (-[WebImageRenderer initWithMIMEType:]):
2673 (-[WebImageRenderer initWithData:MIMEType:]):
2674 (-[WebImageRenderer initWithContentsOfFile:]):
2675 (-[WebImageRenderer dealloc]):
2676 (-[WebImageRenderer copyWithZone:]):
2677 (-[WebImageRenderer retainOrCopyIfNeeded]):
2678 (-[WebImageRenderer resize:]):
2679 (-[WebImageRenderer size]):
2680 (-[WebImageRenderer MIMEType]):
2681 (-[WebImageRenderer frameCount]):
2682 (-[WebImageRenderer isNull]):
2683 (-[WebImageRenderer incrementalLoadWithBytes:length:complete:]):
2684 (-[WebImageRenderer drawImageInRect:fromRect:]):
2685 (-[WebImageRenderer drawImageInRect:fromRect:compositeOperator:context:]):
2686 (-[WebImageRenderer tileInRect:fromPoint:context:]):
2687 (-[WebImageRenderer _startOrContinueAnimationIfNecessary]):
2688 (+[WebImageRenderer stopAnimationsInView:]):
2689 (-[WebImageRenderer stopAnimation]):
2690 (-[WebImageRenderer targetAnimationRect]):
2691 (-[WebImageRenderer increaseUseCount]):
2692 (-[WebImageRenderer decreaseUseCount]):
2693 (-[WebImageRenderer flushRasterCache]):
2694 (-[WebImageRenderer imageRef]):
2695 (-[WebImageRenderer TIFFRepresentation]):
2696 (-[WebImageRenderer image]):
2697 * WebCoreSupport.subproj/WebImageRendererFactory.m:
2698 (-[WebImageRendererFactory imageRendererWithMIMEType:]):
2699 (-[WebImageRendererFactory imageRendererWithData:MIMEType:]):
2700 (-[WebImageRendererFactory imageRendererWithSize:]):
2701 (-[WebImageRendererFactory imageRendererWithName:]):
2702 * WebKit.pbproj/project.pbxproj:
2703 * WebView.subproj/WebImageView.m:
2704 (-[WebImageView image]):
2708 2004-09-09 Maciej Stachowiak <mjs@apple.com>
2710 - rolled out last two changes, they seem to cause a performance regression
2712 * WebView.subproj/WebHTMLView.m:
2713 (-[WebHTMLView firstRectForCharacterRange:]):
2715 2004-09-09 Maciej Stachowiak <mjs@apple.com>
2719 * WebView.subproj/WebHTMLView.m:
2720 (-[WebHTMLView firstRectForCharacterRange:]):
2722 2004-09-08 Maciej Stachowiak <mjs@apple.com>
2726 WebKit part of fix for:
2728 <rdar://problem/3759187> REGRESSION (Mail): implement firstRectForCharacterRange:
2730 * WebView.subproj/WebHTMLView.m:
2731 (-[WebHTMLView firstRectForCharacterRange:]): Call the appropriate new bridge method,
2732 and translate to screen coordinates.
2734 2004-09-09 Darin Adler <darin@apple.com>
2738 - fixed <rdar://problem/3790526> mark-related methods not implemented (needed for people with them in their key bindings files)
2740 * WebKit.pbproj/project.pbxproj: Update MACOSX_DEPLOYMENT_TARGET to 10.3 and add -fobjc-exceptions
2741 so we can use new exceptions.
2743 * WebView.subproj/WebHTMLView.m:
2744 (-[WebHTMLView setMark:]): Added.
2745 (unionDOMRanges): Added.
2746 (-[WebHTMLView deleteToMark:]): Added.
2747 (-[WebHTMLView selectToMark:]): Added.
2748 (-[WebHTMLView swapWithMark:]): Added.
2749 (-[WebHTMLView markedRange]): Updated for change to bridge method names.
2750 (-[WebHTMLView hasMarkedText]): Ditto.
2751 (-[WebHTMLView unmarkText]): Ditto.
2752 (-[WebHTMLView _selectMarkedText]): Ditto.
2753 (-[WebHTMLView _selectRangeInMarkedText:]): Ditto.
2754 (-[WebHTMLView setMarkedText:selectedRange:]): Ditto.
2755 (-[WebHTMLView _insertText:selectInsertedText:]): Removed check for empty string. An empty string
2756 should not be filtered out here. We need to allow inserting an empty string.
2757 (-[WebHTMLView _selectionIsInsideMarkedText]): Updated for change to bridge method names.
2758 (-[WebHTMLView _updateSelectionForInputManager]): Ditto.
2760 * WebView.subproj/WebView.m: (-[WebView searchFor:direction:caseSensitive:wrap:]):
2761 Changed to use selectionDOMRange instead of selectionStart.
2763 * WebView.subproj/WebHTMLRepresentation.h: Removed unused setSelectionFrom method.
2764 * WebView.subproj/WebHTMLRepresentation.m: Ditto.
2766 2004-09-08 John Sullivan <sullivan@apple.com>
2770 - fixed the localization aspect of:
2771 <rdar://problem/3790011> undoable operations all say "Undo" in the menu, no specific action names
2773 We now have all the strings ready for localization; we just don't actually use them yet.
2775 * English.lproj/Localizable.strings:
2776 updated for this change
2778 * WebCoreSupport.subproj/WebBridge.m:
2779 (-[WebBridge setUndoActionNamePlaceholder]):
2780 added this placeholder method whose purpose is to hold localizable strings for all the Undo
2781 action names that NSTextView uses. Later we will use some or all of these, but we can do
2782 that part after the localization freeze.
2784 2004-09-08 Chris Blumenberg <cblu@apple.com>
2786 Fixed: <rdar://problem/3778785> REGRESSION (Mail): copying from MS word and pasting into editable region leaves internal clipboard data
2788 Reviewed by kocienda.
2790 * WebView.subproj/WebHTMLView.m:
2791 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]): ignore Microsoft's header meta data
2793 2004-09-08 Chris Blumenberg <cblu@apple.com>
2795 Fixed: <rdar://problem/3792893> WebBaseResourceHandleDelegate always returns cached data for subresource loads
2799 * WebView.subproj/WebBaseResourceHandleDelegate.m:
2800 (-[WebBaseResourceHandleDelegate _canUseResourceForRequest:]): new
2801 (-[WebBaseResourceHandleDelegate loadWithRequest:]): call _canUseResourceForRequest:
2803 2004-09-08 Chris Blumenberg <cblu@apple.com>
2805 Forgot to add this in previous check-in.
2807 * English.lproj/WebViewEditingContextMenu.nib: Added.
2809 2004-09-08 Chris Blumenberg <cblu@apple.com>
2811 Fixed: <rdar://problem/3791240> WebKit uses the NSTextViewContextMenu nib from inside AppKit
2815 * English.lproj/StringsNotToBeLocalized.txt:
2816 * WebKit.pbproj/project.pbxproj:
2817 * WebView.subproj/WebDefaultContextMenuDelegate.m:
2818 (-[WebDefaultUIDelegate editingContextMenuItemsForElement:]): use our copy of the nib
2820 2004-09-07 Darin Adler <darin@apple.com>
2822 * English.lproj/StringsNotToBeLocalized.txt: Update for recent changes.
2824 2004-09-07 Chris Blumenberg <cblu@apple.com>
2826 Fixed: <rdar://problem/3790143> exception raised when dragging a URL with 2-byte characters
2828 (checked in with last check-in)
2830 2004-09-07 Chris Blumenberg <cblu@apple.com>
2833 <rdar://problem/3080103> Need to pass cmd-modified keys to plug-ins
2834 <rdar://problem/3751509> can't use safari edit menu to copy and paste with Vantage Learning's My Access
2838 * Plugins.subproj/WebBaseNetscapePluginView.m: fake up command-key events for cut, copy, paste and select all so these menu items work for plug-ins
2839 (-[WebBaseNetscapePluginView sendModifierEventWithKeyCode:character:]):
2840 (-[WebBaseNetscapePluginView cut:]):
2841 (-[WebBaseNetscapePluginView copy:]):
2842 (-[WebBaseNetscapePluginView paste:]):
2843 (-[WebBaseNetscapePluginView selectAll:]):
2845 2004-09-07 Darin Adler <darin@apple.com>
2847 - fixed deployment build
2849 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView _deleteWithDirection:granularity:killRing:]):
2850 Initialize prepend variable.
2852 2004-09-06 Darin Adler <darin@apple.com>
2856 - fixed <rdar://problem/3696542> REGRESSION (Mail): Editable WebKit doesn't support underline yet (in the iChat profile window, at least)
2857 - fixed <rdar://problem/3780249> REGRESSION (Mail): copy style/paste style doesn't work in HTML editing in Mail
2858 - fixed <rdar://problem/3788857> REGRESSION (Mail): Home and End keys don't work in message composer
2859 - fixed <rdar://problem/3788884> REGRESSION (Mail): ctrl-d emacs key binding does not work (delete forward)
2860 - fixed <rdar://problem/3788890> REGRESSION (Mail): ctrl-k emacs key binding does not work (delete to end of paragraph)
2861 - fixed <rdar://problem/3788899> REGRESSION (Mail): ctrl-y emacs key binding does not work (yank)
2862 - fixed <rdar://problem/3788901> REGRESSION (Mail): ctrl-o emacs key binding does not work (insert newline in front of insertion point)
2863 - fixed <rdar://problem/3788908> REGRESSION (Mail): ctrl-left-arrow emacs key binding does not work (move to beginning of line)
2864 - fixed <rdar://problem/3788913> REGRESSION (Mail): ctrl-right-arrow emacs key binding does not work (move to end of line)
2865 - implemented a first cut at other attribute changes from Text Panel besides underline (bugs?)
2866 - dealt with a couple of FIXMEs in WebHTMLView.m
2867 - updated list of not-yet-implemented methods in WebHTMLView.m
2868 - fixed many deletion operations to call the correct editing delegate methods
2870 * WebView.subproj/WebFrameViewPrivate.h: Remove _scrollToTopLeft and _scrollToBottomLeft.
2871 No one was calling them anyway, so they should really have been marked internal and not private.
2872 * WebView.subproj/WebFrameView.m:
2873 (-[WebFrameView scrollToBeginningOfDocument:]): Renamed _scrollToTopLeft to this, so the home key
2874 would start working with the key bindings machinery.
2875 (-[WebFrameView scrollToEndOfDocument:]): Same thing, for end key.
2876 (-[WebFrameView keyDown:]): Update for name changes, and also make sure we don't try to grab
2877 control-arrow keys here (probably not necessary, but good anyway).
2879 * WebView.subproj/WebHTMLViewInternal.h: Added keyDownEvent field, and startNewKillRingSequence
2880 and nextResponderDisabledOnce flags.
2881 * WebView.subproj/WebHTMLView.m:
2882 Rearrange declarations at the top of the file so that external things are up with
2883 the #import directives and things inside this file are declared below.
2884 (-[WebHTMLView _shouldReplaceSelectionWithText:givenAction:]): Ditto.
2885 (-[WebHTMLView _calculatePrintHeight]): Moved up into the "internal to file" category.
2886 (-[WebHTMLView _updateTextSizeMultiplier]): Ditto.
2887 (-[WebHTMLView _selectedRange]): Added.
2888 (-[WebHTMLView _openLinkFromMenu:]): Left this method lying around even though I deleted the
2889 other APPKIT_CODE_FOR_REFERENCE in case this shows up in the context menu we are now sharing
2890 with the AppKit. Chris will look at this later, and he can delete it then.
2891 (+[WebHTMLView initialize]): Call _NSInitializeKillRing.
2892 (-[WebHTMLView _documentRange]): Added.
2893 (-[WebHTMLView string]): Call the bridge to get the plain text rather than making an attributed
2894 string and then getting the text from there.
2895 (-[WebHTMLView becomeFirstResponder]): Set startNewKillRingSequence flag, so that new deletions
2896 will create a new kill ring entry.
2897 (-[WebHTMLView moveToBeginningOfDocument:]): Use backward direction instead of left direction.
2898 (-[WebHTMLView moveToBeginningOfDocumentAndModifySelection:]): Ditto.
2899 (-[WebHTMLView moveToBeginningOfLine:]): Ditto.
2900 (-[WebHTMLView moveToBeginningOfLineAndModifySelection:]): Ditto.
2901 (-[WebHTMLView moveToBeginningOfParagraph:]): Ditto, also use WebSelectToParagraphBoundary.
2902 (-[WebHTMLView moveToBeginningOfParagraphAndModifySelection:]): Ditto.
2903 (-[WebHTMLView moveToEndOfDocument:]): Use forward direction instead of right direction.
2904 (-[WebHTMLView moveToEndOfDocumentAndModifySelection:]): Ditto.
2905 (-[WebHTMLView moveToEndOfLine:]): Ditto.
2906 (-[WebHTMLView moveToEndOfLineAndModifySelection:]): Ditto.
2907 (-[WebHTMLView moveToEndOfParagraph:]): Ditto, also use WebSelectToParagraphBoundary.
2908 (-[WebHTMLView moveToEndOfParagraphAndModifySelection:]): Ditto.
2909 (-[WebHTMLView _shouldDeleteRange:]): Added.
2910 (-[WebHTMLView _deleteRange:preflight:killRing:prepend:]): Added.
2911 (-[WebHTMLView delete:]): Changed to call new _deleteRange method.
2912 (-[WebHTMLView cut:]): Changed to preflight property and call new _deleteRange method.
2913 (-[WebHTMLView _selectionFontAttributes]): Added.
2914 (-[WebHTMLView _selectionFontAttributesAsRTF]): Added.
2915 (-[WebHTMLView _fontAttributesFromFontPasteboard]): Added.
2916 (-[WebHTMLView _emptyStyle]): Added.
2917 (-[WebHTMLView _styleFromFontAttributes:]): Added.
2918 (-[WebHTMLView _applyStyleToSelection:]): Added.
2919 (-[WebHTMLView copyFont:]): Implemented.
2920 (-[WebHTMLView pasteFont:]): Implemented.
2921 (-[WebHTMLView _originalFontA]): Added.
2922 (-[WebHTMLView _originalFontB]): Added.
2923 (-[WebHTMLView _addToStyle:fontA:fontB:]): Added. Has code from the method that figures out
2924 what the font manager is doing for changeFont:, now needed for changeAttribute: too.
2925 (-[WebHTMLView _styleFromFontManagerOperation]): Renamed and now calls shared methods.
2926 (-[WebHTMLView changeFont:]): Call shared method, still does the same thing.
2927 (-[WebHTMLView _colorAsString:]): Added. Has code from the method we were using with the
2929 (-[WebHTMLView _shadowAsString:]): Added.
2930 (-[WebHTMLView _styleForAttributeChange:]): Added.
2931 (-[WebHTMLView changeAttributes:]): Implemented.
2932 (-[WebHTMLView _styleFromColorPanelWithSelector:]): Renamed and now calls shared methods.
2933 (-[WebHTMLView _changeCSSColorUsingSelector:inRange:]): Call method by new name.
2934 (-[WebHTMLView changeDocumentBackgroundColor:]): Call method by new name.
2935 (-[WebHTMLView changeColor:]): Changed around a bit; still doesn't work yet.
2936 (-[WebHTMLView _alignSelectionUsingCSSValue:]): Call shared methods.
2937 (-[WebHTMLView indent:]): Removed, since NSTextView doesn't implement this method. Added to list
2938 of methods to possibly implement later in the file.
2939 (-[WebHTMLView insertTab:]): Call insertText: to save code and so we get WebViewInsertActionTyped
2940 instead of WebViewInsertActionPasted.
2941 (-[WebHTMLView changeCaseOfLetter:]): Removed, since NSTextView doesn't implement this method.
2942 Added to list of methods to possibly implement later in the file.
2943 (-[WebHTMLView _deleteWithDirection:granularity:killRing:]): Added.
2944 (-[WebHTMLView deleteForward:]): Implemented. This makes Control-D work.
2945 (-[WebHTMLView deleteBackwardByDecomposingPreviousCharacter:]): Implemented by just calling
2946 deleteBackward for now; probably better than doing nothing.
2947 (-[WebHTMLView deleteWordForward:]): Changed to call new _delete method above. Fixes things
2948 so that we delete the selection if there is one, get the appropriate delegate calls, handle
2949 the kill ring properly, and don't do any selection if we can't delete.
2950 (-[WebHTMLView deleteWordBackward:]): Ditto.
2951 (-[WebHTMLView deleteToBeginningOfLine:]): Ditto.
2952 (-[WebHTMLView deleteToEndOfLine:]): Ditto.
2953 (-[WebHTMLView deleteToBeginningOfParagraph:]): Ditto.
2954 (-[WebHTMLView deleteToEndOfParagraph:]): Ditto. Added additional behavior needed since this
2955 is bound to Control-K, so it's not really just delete to end of paragraph.
2956 (-[WebHTMLView insertNewlineIgnoringFieldEditor:]): Added. Calls insertNewline:.
2957 (-[WebHTMLView insertTabIgnoringFieldEditor:]): Added. Calls insertTab:.
2958 (-[WebHTMLView subscript:]): Added.
2959 (-[WebHTMLView superscript:]): Added.
2960 (-[WebHTMLView unscript:]): Added.
2961 (-[WebHTMLView underline:]): Added.
2962 (-[WebHTMLView yank:]): Added.
2963 (-[WebHTMLView yankAndSelect:]): Added. Calls _insertText.
2964 (-[WebHTMLView _arrowKeyDownEventSelectorIfPreprocessing:]): Added. Part of workaround for
2965 control-arrow key trouble.
2966 (-[WebHTMLView respondsToSelector:]): Added. More of workaround.
2967 (-[WebHTMLView nextResponder:]): Added. More of workaround.
2968 (-[WebHTMLView _selectionChanged]): Set startNewKillRingSequence flag, so that new deletions
2969 will create a new kill ring entry.
2970 (-[WebHTMLView _updateFontPanel]): Remove a bunch of code here that wasn't working very well
2971 because it walked a DOM range incorrectly, and instead use the new method that does all the
2972 right stuff on the other side of the bridge.
2973 (-[WebHTMLView _insertText:selectInsertedText:]): Added new helper method for use by both
2974 insertText and yankAndSelect, with most of the guts of insertText and one additional parameter.
2975 (-[WebHTMLView insertText:]): Call the new _insertText.
2977 * WebView.subproj/WebView.m: Use macros to make the forwarding from WebView more terse.
2978 Updated the list to include a few methods it didn't before.
2980 2004-09-06 John Sullivan <sullivan@apple.com>
2984 - put preference keys in a private header file so Safari can use them for Managed Preferences
2986 * WebView.subproj/WebPreferenceKeysPrivate.h:
2987 new Private header file, includes the #defines for NSUserDefaults preference keys
2989 * WebView.subproj/WebPreferences.m:
2990 moved the preference key #defines out of here; now imports WebPreferenceKeysPrivate.h
2992 * WebKit.pbproj/project.pbxproj:
2993 updated for new file
2995 2004-09-03 Chris Blumenberg <cblu@apple.com>
2997 Fixed: <rdar://problem/3782543> CrashTracer: ...87 crashes at com.apple.WebKit: -[WebNetscapePluginPackage initWithPath:] + 0x18c
3001 * Plugins.subproj/WebNetscapePluginPackage.m:
3002 (-[WebNetscapePluginPackage initWithPath:]): make sure the file is at least 8 bytes long before calling memcmp
3004 2004-09-03 Chris Blumenberg <cblu@apple.com>
3007 <rdar://problem/3788328> assertion failure when moving an image
3008 <rdar://problem/3783628> REGRESSION (Mail): when I try to reorder an image, the image is duplicated
3010 Reviewed by NOBODY (OOPS!).
3012 * DOM.subproj/WebDOMOperations.m:
3013 (-[DOMDocument _createRangeWithNode:]): new, convenience
3014 (-[DOMDocument _documentRange]): use _ createRangeWithNode:
3015 * DOM.subproj/WebDOMOperationsPrivate.h:
3016 * WebView.subproj/WebHTMLView.m:
3017 (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]): set the selection to the image when starting the drag. This allows "move selection" to work and this matches NSText's behavior
3021 2004-09-02 Richard Williamson <rjw@apple.com>
3023 Support for patterns in <canvas>.
3024 (These changes attempt to create a CGImageRef from a WebImageRenderer that
3025 is used by the pattern drawing function.)
3029 * WebCoreSupport.subproj/WebImageRenderer.h:
3030 * WebCoreSupport.subproj/WebImageRenderer.m:
3031 (-[WebImageRenderer dealloc]):
3032 (-[WebImageRenderer finalize]):
3033 (-[WebImageRenderer imageRef]):
3035 * WebView.subproj/WebPDFView.h:
3036 * WebView.subproj/WebPDFView.m:
3038 2004-09-01 Chris Blumenberg <cblu@apple.com>
3040 Fixed deployment build failure.
3042 * WebView.subproj/WebDefaultContextMenuDelegate.m:
3043 (-[WebDefaultUIDelegate menuItemWithTag:]):
3045 2004-08-31 Chris Blumenberg <cblu@apple.com>
3048 <rdar://problem/3699498> Context menu for editable WebViews should provide items like Cut and Paste
3049 <rdar://problem/3781535> REGRESSION (Mail): no context menu after ctrl-clicking a misspelled word
3051 Reviewed by kocienda.
3053 * English.lproj/Localizable.strings:
3054 * WebView.subproj/WebDefaultContextMenuDelegate.m:
3055 (-[WebDefaultUIDelegate menuItemWithTag:]): updated to handle new menu items
3056 (-[WebDefaultUIDelegate contextMenuItemsForElement:]): renamed from webView:contextMenuItemsForElement:defaultMenuItems:
3057 (-[WebDefaultUIDelegate editingContextMenuItemsForElement:]): new
3058 (-[WebDefaultUIDelegate webView:contextMenuItemsForElement:defaultMenuItems:]): moved, now call contextMenuItemsForElement: or editingContextMenuItemsForElement:
3059 * WebView.subproj/WebDefaultUIDelegate.h:
3060 * WebView.subproj/WebHTMLView.m:
3061 (-[WebHTMLView _isSelectionMisspelled]): new
3062 (-[WebHTMLView _guessesForMisspelledSelection]): new
3063 (-[WebHTMLView _changeSpellingFromMenu:]): new
3064 (-[WebHTMLView _ignoreSpellingFromMenu:]): new
3065 (-[WebHTMLView _learnSpellingFromMenu:]): new
3066 * WebView.subproj/WebHTMLViewPrivate.h:
3067 * WebView.subproj/WebUIDelegate.h:
3069 2004-08-31 Darin Adler <darin@apple.com>
3071 - fixed B&I build failure
3073 * WebView.subproj/WebHTMLView.m: (-[WebTextCompleteController _buildUI]):
3074 Work around unwanted warning by adding a cast.
3076 2004-08-27 Maciej Stachowiak <mjs@apple.com>
3080 <rdar://problem/3778314> REGRESSION: Can't proceed to survey questions on Lominger's Apple website
3082 Because we will stop parsing when there is a pending redirection,
3083 avoid setting one if no navigation would actually take place
3084 because the number of steps is out of range.
3086 * WebCoreSupport.subproj/WebBridge.m:
3087 (-[WebBridge canGoBackOrForward:]):
3089 2004-08-30 Darin Adler <darin@apple.com>
3093 - part of fix for <rdar://problem/3637519> REGRESSION (125-128): unrepro crash in QListBox::sizeForNumberOfLines at istweb.apple.com
3095 * WebCoreSupport.subproj/WebTextRendererFactory.m: (-[WebTextRendererFactory clearCaches]):
3096 Call [super clearCaches].
3098 2004-08-30 Darin Adler <darin@apple.com>
3102 - did work to prepare for uploading files incrementally when submitting forms
3104 * History.subproj/WebHistoryItem.m:
3105 (-[WebHistoryItem _setFormInfoFromRequest:]): Use NSArray instead of NSData for form data.
3106 (-[WebHistoryItem formData]): Ditto.
3107 * History.subproj/WebHistoryItemPrivate.h: Ditto.
3108 * WebCoreSupport.subproj/WebBridge.m:
3109 (-[WebBridge startLoadingResource:withURL:customHeaders:postData:]): Ditto.
3110 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]): Ditto.
3111 (-[WebBridge postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]): Ditto.
3112 * WebCoreSupport.subproj/WebSubresourceClient.h: Ditto.
3113 * WebCoreSupport.subproj/WebSubresourceClient.m:
3114 (+[WebSubresourceClient startLoadingResource:withURL:customHeaders:postData:referrer:forDataSource:]): Ditto.
3115 * WebView.subproj/WebFrame.m:
3116 (-[WebFrame _loadItem:withLoadType:]): Ditto.
3117 (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]): Ditto.
3118 * WebView.subproj/WebFramePrivate.h: Ditto.
3120 * WebView.subproj/WebFormDataStream.h: Added.
3121 * WebView.subproj/WebFormDataStream.m:
3122 (-[WebFormDataStream initWithFormDataArray:]): Placeholder; not done yet.
3123 (-[WebFormDataStream formDataArray]): Ditto.
3124 * WebKit.pbproj/project.pbxproj: Added WebFormDataStream files.
3126 2004-08-30 John Sullivan <sullivan@apple.com>
3130 - WebKit part of fix for <rdar://problem/3607720> myFrame.print() prints the window
3131 but should only print the frame
3133 * WebView.subproj/WebUIDelegatePrivate.h:
3134 declare new delegate method that includes which frame to print
3136 * WebView.subproj/WebDefaultUIDelegate.m:
3137 (-[WebDefaultUIDelegate webView:printFrameView:]):
3138 implement default (no-op) version of new delegate method
3140 * WebCoreSupport.subproj/WebBridge.m:
3141 (-[WebBridge print]):
3142 call new delegate method if available, otherwise call old delegate method, for
3143 backward compatibility.
3145 2004-08-27 Maciej Stachowiak <mjs@apple.com>
3150 Ken comments: It looks like Maciej forgot to land this when he checked in the
3151 WebCore portion of this change.
3153 <rdar://problem/3778314> REGRESSION: Can't proceed to survey questions on Lominger's Apple website
3155 Because we will stop parsing when there is a pending redirection,
3156 avoid setting one if no navigation would actually take place
3157 because the number of steps is out of range.
3159 * WebCoreSupport.subproj/WebBridge.m:
3160 (-[WebBridge canGoBackOrForward:]):
3162 2004-08-27 Ken Kocienda <kocienda@apple.com>
3168 <rdar://problem/3756997> WebKit aggressive in making pasted text into a URL, even when it's not much like a URL
3170 * WebView.subproj/WebHTMLView.m:
3171 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]): Don't try so hard to coerce data
3172 on the pasteboard into a URL, and do not make an anchor with an href for any URLs that are
3173 explicitly present on the pasteboard. Also, move URL pasteboard type check beneath the RTF
3178 2004-08-26 Chris Blumenberg <cblu@apple.com>
3180 Fixed build failure on Panther.
3184 * WebView.subproj/WebHTMLView.m:
3185 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]): ifdef'd out call to AppKit SPI
3186 (-[WebHTMLView _attributeStringFromDOMRange:]): ditto
3188 2004-08-26 Chris Blumenberg <cblu@apple.com>
3190 Tweak to last check-in.
3192 * WebView.subproj/WebHTMLView.m:
3193 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]):
3195 2004-08-26 Chris Blumenberg <cblu@apple.com>
3198 <rdar://problem/3546412> support for pasting and drag and dropping of RTF and RTFD to editable WebViews
3199 <rdar://problem/3745345> use AppKit for converting from DOM to RTF
3203 * DOM.subproj/WebDOMOperations.m:
3204 (-[DOMDocument _documentRange]): new
3205 * DOM.subproj/WebDOMOperationsPrivate.h:
3206 * WebView.subproj/WebHTMLView.m:
3207 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]): call AppKit SPI to get a document fragment from an attributed string
3208 (-[WebHTMLView string]): added a FIXME
3209 (-[WebHTMLView _attributeStringFromDOMRange:]): new, calls AppKit SPI that creates an attributed string from a DOM Range
3210 (-[WebHTMLView attributedString]): call _attributeStringFromDOMRange:, fallback to old code if it returns nil
3211 (-[WebHTMLView selectedAttributedString]): ditto
3213 2004-08-26 Chris Blumenberg <cblu@apple.com>
3215 Fixed: <rdar://problem/3774178> Plugin hooks for selected state aren't being called
3219 * WebCoreSupport.subproj/WebBridge.m:
3220 (-[WebBridge setIsSelected:forView:]): don't forget colons in method names
3222 2004-08-26 Chris Blumenberg <cblu@apple.com>
3224 Fixed: <rdar://problem/3768439> can't click in WebView in Carbon WebKit apps (GetEventPlatformEventRecord returns false)
3228 * Carbon.subproj/HIWebView.m:
3229 (Click): use WebGetEventPlatformEventRecord not GetEventPlatformEventRecord
3232 (MouseDragged): ditto
3233 (MouseWheelMoved): ditto
3234 (WindowHandler): ditto
3235 (HIWebViewEventHandler): ditto
3236 (UpdateObserver): ditto
3237 (WebGetEventPlatformEventRecord): Call GetEventPlatformEventRecord, if that fails fallback to the current event. This is code Eric Schlegel to me to use.
3239 2004-08-24 Chris Blumenberg <cblu@apple.com>
3241 Fixed with help from Trey:
3242 <rdar://problem/3764856> REGRESSION !25-154): Safari accepts mouse clicks (follows links) when not key
3246 * WebView.subproj/WebHTMLView.m:
3247 (-[WebHTMLView _isSelectionEvent:]): brought back from CVS
3248 (-[WebHTMLView acceptsFirstMouse:]): only call eventMayStartDrag if _isSelectionEvent returns YES since we only want to allow selection dragging on the first mouse down
3249 (-[WebHTMLView shouldDelayWindowOrderingForEvent:]): ditto
3251 2004-08-24 Ken Kocienda <kocienda@apple.com>
3255 Improved the checks used to see if certain operations can be done based
3256 on the state of the selection and whether the selection is editable. I
3257 added some helpers and improved some others to assist in making these
3260 This helps to fix this bug:
3261 <rdar://problem/3764987> Crash after adding newline to quoted text
3263 Since some editing methods expect the the selection to be in a certain state
3264 in order to work, these checks help obviate crashes like 3764987.
3266 * WebView.subproj/WebHTMLView.m:
3267 (-[WebHTMLView _writeSelectionToPasteboard:]): _haveSelection name changed to _hasSelection.
3268 (-[WebHTMLView _canCopy]): Checks to see if state is appropriate to perform this operation.
3269 (-[WebHTMLView _canCut]): Ditto. Function added.
3270 (-[WebHTMLView _canDelete]): Ditto. Function refined.
3271 (-[WebHTMLView _canPaste]): Ditto. Function refined.
3272 (-[WebHTMLView _canType]): Ditto. Function added.
3273 (-[WebHTMLView _hasSelection]): Name changed from _haveSelection.
3274 (-[WebHTMLView _hasSelectionOrInsertionPoint]): Added.
3275 (-[WebHTMLView _isEditable]): Added.
3276 (-[WebHTMLView takeFindStringFromSelection:]): _haveSelection name changed to _hasSelection.
3277 (-[WebHTMLView validateUserInterfaceItem:]): Ditto
3278 (-[WebHTMLView validRequestorForSendType:returnType:]): Ditto
3279 (-[WebHTMLView keyDown:]):
3280 (-[WebHTMLView copy:]): Uses new _canCopy check.
3281 (-[WebHTMLView cut:]): Uses new _canCut check.
3282 (-[WebHTMLView delete:]): Now uses _canDelete check.
3283 (-[WebHTMLView paste:]): Now uses _canPaste check.
3284 (-[WebHTMLView _updateFontPanel]): _haveSelection name changed to _hasSelection.
3285 * WebView.subproj/WebHTMLViewPrivate.h:
3286 * WebView.subproj/WebView.m:
3287 (-[WebView writeSelectionWithPasteboardTypes:toPasteboard:]): Use selectionState check to
3288 determine whether or not operation can be done.
3290 2004-08-24 Richard Williamson <rjw@apple.com>
3292 Fixed <rdar://problem/3770469> Some PDFs open with line of previous page above PDF view
3294 Set height resize flags on WebPDFView.
3298 * WebView.subproj/WebPDFView.m:
3299 (-[WebPDFView initWithFrame:]):
3301 2004-08-24 David Hyatt <hyatt@apple.com>
3303 Add Atom and RSS MIME types to set of supported XML types.
3307 * WebView.subproj/WebDataSource.m:
3308 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
3309 * WebView.subproj/WebFrameView.m:
3310 (+[WebFrameView _viewTypesAllowImageTypeOmission:]):
3312 2004-08-23 Maciej Stachowiak <mjs@apple.com>
3316 - remove annoying ERROR spew and replace with comment
3318 * WebView.subproj/WebHTMLView.m:
3319 (-[WebHTMLView validAttributesForMarkedText]):
3321 2004-08-23 Maciej Stachowiak <mjs@apple.com>
3323 Reviewed by Richard.
3325 - a bit of code cleanup
3327 * WebView.subproj/WebDataSource.m:
3328 (-[WebDataSource _stringWithData:]): Call textEncodingName instead of
3330 (-[WebDataSource textEncodingName]): Tweak formatting.
3332 2004-08-23 Chris Blumenberg <cblu@apple.com>
3336 * WebKit.pbproj/project.pbxproj: make sure we're doing -f on a file, not a directory
3338 2004-08-23 Chris Blumenberg <cblu@apple.com>
3340 Fixed: <rdar://problem/3674867> use new Security framework SPI's to reenable cert acquisition
3344 * WebCoreSupport.subproj/WebKeyGeneration.cpp:
3345 * WebCoreSupport.subproj/WebKeyGeneration.h:
3346 * WebCoreSupport.subproj/WebKeyGenerator.h:
3347 * WebCoreSupport.subproj/WebKeyGenerator.m:
3348 (-[WebKeyGenerator signedPublicKeyAndChallengeStringWithStrengthIndex:challenge:pageURL:]): re-enabled cert code, call Panther version on Panther, Tiger version on Tiger
3349 (-[WebKeyGenerator addCertificatesToKeychainFromData:]): ditto
3350 * WebCoreSupport.subproj/WebNewKeyGeneration.c: Added.
3351 (gnrAddContextAttribute):
3357 (signedPublicKeyAndChallengeString):
3358 (addCertificateToKeychainFromData):
3359 (addCertificatesToKeychainFromData):
3360 * WebCoreSupport.subproj/WebNewKeyGeneration.h: Added.
3361 * WebKit.pbproj/project.pbxproj:
3363 2004-08-20 David Hyatt <hyatt@apple.com>
3365 Fix the directionality of the unicode hyphen so that on Panther it now matches Tiger.
3369 * Misc.subproj/WebUnicode.m:
3370 (_unicodeDirection):
3372 2004-08-20 Richard Williamson <rjw@apple.com>
3374 Implemented new JNI abstraction. We no longer invoke Java methods
3375 directly with JNI, rather we call into the plugin. This allows the
3376 plugin to dispatch the call to the appropriate VM thread. This
3377 change should (will?) fix a whole class of threading related problems with
3382 * WebCoreSupport.subproj/WebBridge.m:
3383 (-[WebBridge getAppletInView:]):
3385 2004-08-20 Trey Matteson <trey@apple.com>
3387 3655407 - Editing: -complete: method unimplemented (WebKit editing API)
3389 This feature is mostly implemented. The only loose ends I know of are:
3391 3769654 - text insertions done via complete: should preserve case of full replacement string
3392 3769652 - positioning of complete: popup window wrong for right-to-left languages
3396 * WebView.subproj/WebHTMLView.m:
3397 (-[WebHTMLViewPrivate dealloc]): Free new object.
3398 (-[WebHTMLView menuForEvent:]): Bail on completion session.
3399 (-[WebHTMLView windowDidResignKey:]): Ditto.
3400 (-[WebHTMLView windowWillClose:]): Ditto.
3401 (-[WebHTMLView mouseDown:]): Ditto.
3402 (-[WebHTMLView resignFirstResponder]): Ditto.
3403 (-[WebHTMLView keyDown:]): Bail on completion session if WebCore takes the event.
3404 Give the CompleteController a crack at the key event.
3405 (-[WebHTMLView _expandSelectionToGranularity:]): Adopt method rename
3406 (-[WebHTMLView complete:]): Make CompleteController, tell it to do its thing.
3407 (-[WebHTMLView checkSpelling:]): Add ERROR().
3408 (-[WebHTMLView showGuessPanel:]): Add ERROR().
3409 (-[WebHTMLView _changeSpellingToWord:]): Add ERROR().
3410 (-[WebHTMLView ignoreSpelling:]): Add ERROR().
3412 (-[WebTextCompleteController initWithHTMLView:]):
3413 (-[WebTextCompleteController dealloc]):
3414 (-[WebTextCompleteController _insertMatch:]): Stick the new string into the doc.
3415 (-[WebTextCompleteController _buildUI]): Make popup window.
3416 (-[WebTextCompleteController _placePopupWindow:]): Position popup window.
3417 (-[WebTextCompleteController doCompletion]): Lookup matches, display window.
3418 (-[WebTextCompleteController endRevertingChange:moveLeft:]): Bail on complete: session.
3419 (-[WebTextCompleteController filterKeyDown:]): Process keys while popup is up.
3420 (-[WebTextCompleteController _reflectSelection]): Handle choice in popup.
3421 (-[WebTextCompleteController tableAction:]): Handle double click in popup
3422 (-[WebTextCompleteController numberOfRowsInTableView:]): Fill table with matches.
3423 (-[WebTextCompleteController tableView:objectValueForTableColumn:row:]): Ditto.
3424 (-[WebTextCompleteController tableViewSelectionDidChange:]): Handle selection change.
3425 * WebView.subproj/WebHTMLViewInternal.h:
3427 2004-08-20 John Sullivan <sullivan@apple.com>
3429 * English.lproj/StringsNotToBeLocalized.txt:
3430 checked this in; the only difference is that
3431 the strings were out of order.
3433 2004-08-19 Richard Williamson <rjw@apple.com>
3435 Continue to call old pollForAppletInView: in Tiger until
3436 we get an plugin that supports the new API.
3440 * WebCoreSupport.subproj/WebBridge.m:
3441 (-[WebBridge getAppletInView:]):
3442 * WebKit.pbproj/project.pbxproj:
3446 2004-08-19 Chris Blumenberg <cblu@apple.com>
3448 Fixed typo in comment.
3450 * Misc.subproj/WebIconDatabase.m:
3451 (-[WebIconDatabase _updateFileDatabase]):
3453 2004-08-19 Chris Blumenberg <cblu@apple.com>
3455 Fixed: <rdar://problem/3566336> CrashTracer: .2403 crashes at com.apple.WebKit: -[WebFileDatabase performSetObject:forKey:] + 0x94
3459 * Misc.subproj/WebIconDatabase.m:
3460 (-[WebIconDatabase _updateFileDatabase]): pass WebFileDatabase copies of the mutable dictionaries or else they may be accessed on a separate thread as the main thread is modifying them
3462 2004-08-18 Richard Williamson <rjw@apple.com>
3464 Replace horrible pollForAppletInView: with new
3465 webPlugInGetApplet. The details of how the applet instance
3466 is provided now belong to the Java team. Yeh.
3470 * WebCoreSupport.subproj/WebBridge.m:
3471 (-[WebBridge getAppletInView:]):
3473 2004-08-17 Richard Williamson <rjw@apple.com>
3475 Fixed <rdar://problem/3759093> Need PDF context menu: "Open in Preview" or other external app
3477 Added support for "Open with ..." in PDF view.
3479 Reviewed by Chris and Trey.
3482 * English.lproj/Localizable.strings:
3483 * English.lproj/StringsNotToBeLocalized.txt:
3484 * WebView.subproj/WebPDFView.h:
3485 * WebView.subproj/WebPDFView.m:
3486 (-[WebPDFView initWithFrame:]):
3487 (-[WebPDFView dealloc]):
3488 (applicationInfoForMIMEType):
3489 (-[WebPDFView path]):
3490 (-[WebPDFView menuForEvent:]):
3491 (-[WebPDFView setDataSource:]):
3492 (-[WebPDFView layout]):
3493 (-[WebPDFView viewDidMoveToHostWindow]):
3494 (-[WebPDFView openWithFinder:]):
3496 2004-08-17 Richard Williamson <rjw@apple.com>
3498 JNI needs both the jmethodID and return type. Changed API to
3503 * Plugins.subproj/WebJavaPlugIn.h:
3505 2004-08-17 Trey Matteson <trey@apple.com>
3507 3764147 - failure of subframe to load leaves links in parent doc broken
3511 * WebView.subproj/WebDataSource.m:
3512 (-[WebDataSource _receivedMainResourceError:complete:]):
3513 Need to call [bridge end] in the case of an error, so WC can clean up.
3517 2004-08-15 Richard Williamson <rjw@apple.com>
3519 More changes to np headers.
3523 * Plugins.subproj/WebNetscapePluginPackage.m:
3524 (-[WebNetscapePluginPackage load]):
3525 * Plugins.subproj/npapi.h:
3526 * Plugins.subproj/npfunctions.h:
3527 * Plugins.subproj/npruntime.h:
3529 2004-08-13 Darin Adler <darin@apple.com>
3533 - fixed <rdar://problem/3760924> Carbon path passed in NPP_StreamAsFile must be in local character set, not UTF-8
3535 * Plugins.subproj/WebBaseNetscapePluginStream.m:
3536 (CarbonPathFromPOSIXPath): Added. New function that uses the path pieces from an FSSpec.
3537 This has many advantages; the big one that fixes the bug is that it gives the mangled names
3538 that work even for files that have names that can't otherwise be encoded in Carbon-style
3539 path names. I didn't write this from scratch: I started with the method in Foundation
3540 and just changed it to use FSSpec.
3541 (-[WebBaseNetscapePluginStream destroyStream]): Remove code that used NSString and just call
3542 CarbonPathFromPOSIXPath instead.
3544 * Plugins.subproj/npapi.h: The Revision tag wanted to touch this file.
3545 I think we are going to have some trouble with this; I'd like to take that out.
3547 * English.lproj/StringsNotToBeLocalized.txt: Updated.
3549 2004-08-12 Trey Matteson <trey@apple.com>
3551 3761329 - query result links all dead in ingrammicro.com (sometimes)
3552 3761328 - links in some docs dead when doc is loaded from WebArchive
3554 Nasty problem. It turns out that these result pages are a parent frame with two child
3555 frames. One of the child frames is a 1 or 2 byte text document. When the text child
3556 is the last doc to complete, because we use a Text rep instead of an HTMLRep, it turns
3557 out we never send [bridge end] from WebKit. That mistake results in checkCompleted not
3558 being called enough in the part, and we never realize the load is done. WebCore does
3559 not allow redirects to happen until the entire load is complete, and the links on this
3560 results page are actually little pieces of JS that set location to a generated URL. Since
3561 redirects are not allowed these links all silently fail to do anything, and the doc never
3562 achieves a completed state where they will work.
3564 Solution is to make sure we always call [bridge end] from the DataSource instead of only
3565 the HTML rep doing it.
3567 Reviewed by Richard and Darin.
3569 * WebView.subproj/WebDataSource.m:
3570 (-[WebDataSource _finishedLoading]): Call [bridge end] here for all kinds of docs.
3571 * WebView.subproj/WebHTMLRepresentation.m:
3572 (-[WebHTMLRepresentation finishedLoadingWithDataSource:]): Don't call is just for HTMLReps.
3574 2004-08-12 Richard Williamson <rjw@apple.com>
3576 Bring npruntime.h and friends closer to compliance with
3581 * Plugins.subproj/npapi.h:
3582 * Plugins.subproj/npfunctions.h:
3583 * Plugins.subproj/npruntime.h:
3585 (_NPString::_NPVariant::):
3586 * copy-webcore-files-to-webkit:
3588 2004-08-12 Chris Blumenberg <cblu@apple.com>
3590 Fixed: <rdar://problem/3761097> should be able to option-drag selection so HTML can be copied within a page
3594 * WebView.subproj/WebHTMLView.m:
3595 (-[WebHTMLView _isMoveDrag]): new, take into account the option key
3596 (-[WebHTMLView draggingUpdatedWithDraggingInfo:actionMask:]): call _isMoveDrag
3597 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): call _isMoveDrag
3599 2004-08-12 Richard Williamson <rjw@apple.com>
3601 Quick fix for 3760903. The real fix is described in 3760920. Needed
3602 by Java plugin guys so they can be unblocked for feature freeze.
3606 * WebView.subproj/WebFrame.m:
3607 (-[WebFrame _reloadForPluginChanges]):
3608 * WebView.subproj/WebHTMLView.m:
3609 (-[WebHTMLView addSubview:]):
3611 2004-08-12 Chris Blumenberg <cblu@apple.com>
3613 Fixed: <rdar://problem/3760898> error pages in subframes attempt to load appledata URLs when reloaded
3617 * WebView.subproj/WebFrame.m:
3618 (-[WebFrame _createItem:]): when setting the original URL of the history item, use the unreachable URL
3622 2004-08-11 Adele Amchan <adele@apple.com>
3624 Reviewed by me, bug fix by Darin.
3626 - fixed <rdar://problem/3736477> Pages don't load if hard drive is named with non-ASCII Symbol
3628 * Plugins.subproj/WebBaseNetscapePluginStream.m:
3629 (-[WebBaseNetscapePluginStream startStreamWithURL:expectedContentLength:lastModifiedDate:MIMEType:]):
3630 Use UTF8String instead of cString to convert the MIME type to a C string. Safer, since it can't
3631 ever fail due to encoding problems even though this string should always be ASCII.
3632 (-[WebBaseNetscapePluginStream destroyStream]): Use stringWithUTF8String to convert the path name
3633 to an NSString, since stringWithCString is deprecated (doesn't really matter since the path is always
3634 all ASCII). Fix the bug by calling fileSystemRepresentation on the NSString to turn it into a C
3635 string form. Even though the POSIX path can't have any non-ASCII characters in it, the Carbon path
3636 can, so we need to use this instead of cString which can fail depending on characters and encoding.
3638 2004-08-09 Maciej Stachowiak <mjs@apple.com>
3644 - made basic marked text highlighting work to complete basic level of <rdar://problem/3704359> input method support not yet implemented for HTML editing
3646 * WebView.subproj/WebHTMLView.m:
3647 (-[WebHTMLView markedRange]): Use new bridge calls instead of internal marked range storage.
3648 (-[WebHTMLView hasMarkedText]): Likewise.
3649 (-[WebHTMLView unmarkText]): Likewise.
3650 (-[WebHTMLView _selectMarkedText]): Likewise.
3651 (-[WebHTMLView _selectRangeInMarkedText:]): Likewise.
3652 (-[WebHTMLView _selectionIsInsideMarkedText]): Likewise.
3653 (-[WebHTMLView _updateSelectionForInputManager]): Likewise.
3654 (-[WebHTMLView setMarkedText:selectedRange:]): Use direct bridge call instead
3655 of private _selectMarkedDOMRange: method, which would now be trivial.
3656 * WebView.subproj/WebHTMLViewInternal.h: Remove unneeded
3658 2004-08-10 Darin Adler <darin@apple.com>
3662 - change name of WebMakeCollectable to WebNSRetainCFRelease so it fits into the
3663 "NS and CF retain counts are separate" mental model, rather than the "think about
3664 how garbage collection works" one
3666 * Misc.subproj/WebKitNSStringExtras.m: (+[NSString _web_encodingForResource:]): Rename.
3667 * Misc.subproj/WebNSObjectExtras.h: (WebNSRetainCFRelease): Ditto.
3668 * Misc.subproj/WebNSURLExtras.m:
3669 (+[NSURL _web_URLWithData:relativeToURL:]): Ditto.
3670 (-[NSURL _web_URLWithLowercasedScheme]): Ditto.
3672 2004-08-09 Trey Matteson <trey@apple.com>
3674 3756599 - REGRESSION: hit assertion in KWQPageState invalidate
3676 By inspection I found a flaw in the recently added logic, although
3677 I have no steps to repro. My theoretical explanation is that we would
3678 get two errors and go through _receivedMainResourceError: twice, which
3679 would cause the pageState to be invalidated twice, which is the only
3680 way I can see to hit the assert.
3684 * WebView.subproj/WebFrame.m:
3685 (-[WebFrame _receivedMainResourceError:]): Clear the pageState out
3686 of the history item after it's been invalidated by WebCore.
3688 2004-08-09 Richard Williamson <rjw@apple.com>
3690 Inspired by Trey we have a much better approach for conditionally
3691 linking Quart.framework. Instead of multiple targets we use
3692 `` to invoke some inline script to extend COMMON_LDFLAGS as
3693 necessary. Thanks Trey!
3697 * WebKit.pbproj/project.pbxproj:
3699 2004-08-09 Trey Matteson <trey@apple.com>
3701 Hookup UI for "Continuous Spelling" menu item.
3703 Reviewed by Richard.
3705 * WebView.subproj/WebView.m:
3706 (-[WebView validateUserInterfaceItem:]): Enable and check the
3707 menu item to reflect our state.
3708 (-[WebView toggleContinuousSpellChecking:]): Change type to
3709 IBAction, just cosmetic.
3710 * WebView.subproj/WebViewPrivate.h:
3712 2004-08-08 Trey Matteson <trey@apple.com>
3714 3745023 - Safari crashes trying to access anchor while downloading
3716 I bet this is behind a few other crashers as well. In this bug the start of the
3717 download leaves a KWQPageState hanging around, and when that is freed it damages
3718 the part and view. If you're still using that page, you're dead.
3720 The fix is to properly invalidate the PageState when we receive an error before
3721 reaching WebFrameCommitted state. Normally this happens when a page is reheated
3722 from the PageState, but in this case we never manage to leave the page to begin
3723 with, although we've already created the PageState.
3725 Other errors besides the synthetic one download generates would have caused similar
3726 crashing. Another example would be clicking on a second link before the load
3727 caused by clicking on the first link reached committed state.
3731 * WebView.subproj/WebDataSource.m:
3732 (-[WebDataSource _receivedMainResourceError:complete:]): Let the frame do the
3733 main work (since it has access to the pageCache state). Also renamed to make
3734 it clear that this is about an error for the main resource.
3735 * WebView.subproj/WebDataSourcePrivate.h:
3736 * WebView.subproj/WebFrame.m:
3737 (-[WebFrame _receivedMainResourceError:]): Let WC know about the failure, as
3738 the DataSource used to, but now pass the pageCache state along too.
3739 * WebView.subproj/WebFramePrivate.h:
3740 * WebView.subproj/WebMainResourceClient.m:
3741 (-[WebMainResourceClient receivedError:]): Call renamed method.
3742 (-[WebMainResourceClient cancelWithError:]): Ditto.
3744 2004-08-08 Vicki Murley <vicki@apple.com>
3746 Reviewed by vicki (changes by rjw)
3748 - make "weak" linking with Quartz work with buildit
3750 * WebKit.pbproj/project.pbxproj:
3752 2004-08-06 Ken Kocienda <kocienda@apple.com>
3756 Finish off spellchecking support to HTML editing. Includes work to
3757 enable continuous spellchecking.
3759 * WebCoreSupport.subproj/WebBridge.m:
3760 (-[WebBridge isContinuousSpellCheckingEnabled]): Simple bridge method.
3761 * WebCoreSupport.subproj/WebTextRenderer.m:
3762 (-[WebTextRenderer drawLineForMisspelling:withWidth:]): New method to add
3763 AppKit-style misspelling underline.
3767 2004-08-05 Darin Adler <darin@apple.com>
3769 * WebView.subproj/WebHTMLView.m: Added a list of methods that NSTextView implements that we don't.
3772 2004-08-05 Chris Blumenberg <cblu@apple.com>
3774 Fixed unnecessary import of NSURLFileTypeMappings.
3776 * WebView.subproj/WebMainResourceClient.m:
3778 2004-08-05 Richard Williamson <rjw@apple.com>
3780 Make builds conditionally include -framework Quartz.
3784 * WebKit.pbproj/project.pbxproj:
3786 2004-08-04 Darin Adler <darin@apple.com>
3788 - fixed broken Deployment build
3790 * Carbon.subproj/HIWebView.m: (Click):
3791 Remove code that checks err variable before setting it.
3793 2004-08-03 Richard Williamson <rjw@apple.com>
3795 First cut at dirt simple PDF support. This feature
3796 depends on Quartz.framework (parent of PDFKit), which only exists
3797 on Tiger. So, we "weak" link against Quartz.
3799 We do very basic PDF rendering. Coming up are support for
3800 "Find..." and linearized PDF (incremental). Linearized PDF
3801 support will require API changes in PDFKit.
3803 No UI is added to Safari, yet.
3807 * WebKit.pbproj/project.pbxproj:
3808 * WebView.subproj/WebDataSource.m:
3809 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
3810 * WebView.subproj/WebFrameView.m:
3811 (+[WebFrameView _viewTypesAllowImageTypeOmission:]):
3812 * WebView.subproj/WebPDFRepresentation.h: Added.
3813 * WebView.subproj/WebPDFRepresentation.m: Added.
3814 (-[WebPDFRepresentation finishedLoadingWithDataSource:]):
3815 (-[WebPDFRepresentation canProvideDocumentSource]):
3816 (-[WebPDFRepresentation documentSource]):
3817 (-[WebPDFRepresentation title]):
3818 * WebView.subproj/WebPDFView.h: Added.
3819 * WebView.subproj/WebPDFView.m: Added.
3820 (-[WebPDFView initWithFrame:]):
3821 (-[WebPDFView setDataSource:]):
3822 (-[WebPDFView dataSourceUpdated:]):
3823 (-[WebPDFView setNeedsLayout:]):
3824 (-[WebPDFView layout]):
3825 (-[WebPDFView viewWillMoveToHostWindow:]):
3826 (-[WebPDFView viewDidMoveToHostWindow]):
3828 Copied fix from Jaguar carbon/cocoa work.
3830 Reviewed by Darin (Jaguar version)
3832 * Carbon.subproj/CarbonWindowAdapter.h:
3833 * Carbon.subproj/CarbonWindowAdapter.m:
3834 (-[CarbonWindowAdapter relinquishFocus]):
3835 * Carbon.subproj/HIWebView.m:
3837 (OwningWindowChanged):
3840 2004-08-03 David Hyatt <hyatt@apple.com>
3842 Add the text/xsl MIME type as one that can be displayed.
3846 * WebView.subproj/WebDataSource.m:
3847 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
3848 * WebView.subproj/WebFrameView.m:
3849 (+[WebFrameView _viewTypesAllowImageTypeOmission:]):
3851 2004-08-03 Maciej Stachowiak <mjs@apple.com>
3855 - implemented enough of the NSTextInput protocol and added the
3856 proper calls to NSInputManager to allow input methods to
3857 work. However, the text is not marked yet.
3859 * WebView.subproj/WebHTMLViewInternal.h: Added new fields to track
3861 * WebView.subproj/WebHTMLView.m:
3862 (-[WebHTMLView markedRange]): Implemented
3863 (-[WebHTMLView conversationIdentifier]): Implemented
3864 (-[WebHTMLView hasMarkedText]): Implemented
3865 (-[WebHTMLView unmarkText]): Implemented
3866 (-[WebHTMLView setMarkedText:selectedRange:]): Implemented - does
3867 not yet handle attributes in attributed strings
3868 (-[WebHTMLView insertText:]): Modified to handle replacing or abandoning
3869 the marked text when set.
3870 (-[WebHTMLView _selectMarkedText]): new helper method, self-explanatory
3871 (-[WebHTMLView _setMarkedDOMRange:]): hitto.
3872 (-[WebHTMLView _selectRangeInMarkedText:]): ditto
3873 (-[WebHTMLView _discardMarkedText]): ditto
3874 (-[WebHTMLView _selectionIsInsideMarkedText]): ditto
3875 (-[WebHTMLView _updateSelectionForInputManager]): ditto
3877 - did a bit of refactoring while I was in here.
3879 * WebView.subproj/WebHTMLView.m:
3880 (-[WebHTMLView _shouldReplaceSelectionWithText:givenAction:]): added this new
3881 helper method to simplify the common case of calling the shouldInsertText: delegate
3882 (-[WebHTMLView pasteAsPlainText:]): use it
3883 (-[WebHTMLView insertTab:]): ditto
3884 (-[WebHTMLView insertNewline:]): ditto
3885 (-[WebHTMLView _changeWordCaseWithSelector:]): ditto
3886 (-[WebHTMLView _changeSpellingToWord:]): ditto
3887 (-[WebHTMLView _selectionChanged]): ditto
3889 2004-08-03 Chris Blumenberg <cblu@apple.com>
3891 Fixed: <rdar://problem/3572737> Images not resizing at www.bmx-test.com (spoof nofix)
3895 * WebCoreSupport.subproj/WebImageRendererFactory.m:
3896 (-[WebImageRendererFactory supportedMIMETypes]): hard code image/pjpeg to the list of image mime types that we can handle
3898 2004-08-03 Darin Adler <darin@apple.com>
3902 - fixed <rdar://problem/3740937> ER: A way to turn a DOMRange into text (equivalent of -innerText)
3904 * DOM.subproj/DOMPrivate.h: Added.
3905 * WebKit.pbproj/project.pbxproj: Added DOMPrivate.h.
3906 * copy-webcore-files-to-webkit: Added DOMPrivate.h.
3908 2004-08-02 John Sullivan <sullivan@apple.com>
3912 WebKit part of fix for <rdar://problem/3631868> NSToolbar adoption:
3913 Tab key should cycle around toolbar and page content
3915 * WebView.subproj/WebHTMLView.m:
3916 removed overrides of nextKeyView and previousKeyView
3917 (-[WebHTMLView nextValidKeyView]):
3918 call super only if we can't move the focus within the frame hierarchy
3919 (-[WebHTMLView previousValidKeyView]):
3921 * WebView.subproj/WebHTMLViewInternal.h:
3922 removed nextKeyViewAccessShouldMoveFocus ivar
3924 2004-08-02 Ken Kocienda <kocienda@apple.com>
3928 Update name of firstResponderIsSelfOrDescendantView, adding _web_ prefix to this SPI call.
3930 Do some work to make caret blinking in newly-created editable WebView's that are
3931 similar in structure to Blot more "automatic".
3933 * Misc.subproj/WebNSViewExtras.h: Change name of firstResponderIsSelfOrDescendantView. Add _web_ prefix.
3934 * Misc.subproj/WebNSViewExtras.m:
3935 (-[NSView _web_firstResponderIsSelfOrDescendantView]): Name change.
3936 (-[NSView _web_firstResponderCausesFocusDisplay]): Adds an additional check for whether the view's
3937 is first responder. This helps to make the focus setting in viewDidMoveToWindow work right.
3938 * WebView.subproj/WebHTMLView.m:
3939 (-[WebHTMLView updateFocusDisplay]): Use _web_firstResponderCausesFocusDisplay now instead of
3940 firstResponderIsSelfOrDescendantView.
3941 (-[WebHTMLView viewDidMoveToWindow]): Schedule call to updateFocusDisplay for the next crank of the
3942 run loop. The reason is that placing the caret in the just-installed view requires the HTML/XML
3943 document to be available on the WebCore side, but it is not at the time this code is running.
3944 However, it will be there on the next crank of the run loop. Doing this helps to make a
3945 blinking caret appear in a new, empty window "automatic".
3946 (-[WebHTMLView performKeyEquivalent:]): _web_firstResponderIsSelfOrDescendantView name change.
3947 * WebView.subproj/WebView.m:
3948 (-[WebView _performResponderOperation:with:]): _web_firstResponderIsSelfOrDescendantView name change.
3950 2004-07-29 Maciej Stachowiak <mjs@apple.com>
3954 Added stubbed-out versions of all the NSTextInput protocol
3955 methods, and put comments in places where we will need to call the
3956 input manager to make input methods work 100%.
3958 * WebCoreSupport.subproj/WebBridge.m:
3959 (-[WebBridge respondToChangedSelection]):
3960 * WebView.subproj/WebHTMLView.m:
3961 (-[WebHTMLView mouseDown:]):
3962 (-[WebHTMLView mouseDragged:]):
3963 (-[WebHTMLView mouseUp:]):
3964 (-[WebHTMLView _interceptEditingKeyEvent:]):
3965 (-[WebHTMLView keyDown:]):
3966 (-[WebHTMLView _selectionChanged]):
3967 (-[WebHTMLView _delegateDragSourceActionMask]):
3968 (-[WebHTMLView validAttributesForMarkedText]):
3969 (-[WebHTMLView characterIndexForPoint:]):
3970 (-[WebHTMLView firstRectForCharacterRange:]):
3971 (-[WebHTMLView selectedRange]):
3972 (-[WebHTMLView markedRange]):
3973 (-[WebHTMLView attributedSubstringFromRange:]):
3974 (-[WebHTMLView conversationIdentifier]):
3975 (-[WebHTMLView hasMarkedText]):
3976 (-[WebHTMLView unmarkText]):
3977 (-[WebHTMLView setMarkedText:selectedRange:]):
3978 (-[WebHTMLView doCommandBySelector:]):
3979 (-[WebHTMLView insertText:]):
3980 * WebView.subproj/WebHTMLViewInternal.h:
3981 * WebView.subproj/WebView.m:
3985 2004-07-29 Darin Adler <darin@apple.com>
3989 - fill in some unimplemented methods
3991 * WebView.subproj/WebHTMLView.m:
3992 (-[WebHTMLView moveToBeginningOfDocument:]): Implement, using new document granularity.
3993 (-[WebHTMLView moveToBeginningOfDocumentAndModifySelection:]): Ditto.
3994 (-[WebHTMLView moveToBeginningOfParagraph:]): Implement, even though the underlying WebCore
3995 code is not yet implemented.
3996 (-[WebHTMLView moveToBeginningOfParagraphAndModifySelection:]): Ditto.
3997 (-[WebHTMLView moveToEndOfDocument:]): More of the same.
3998 (-[WebHTMLView moveToEndOfDocumentAndModifySelection:]): Ditto.
3999 (-[WebHTMLView moveToEndOfParagraph:]): More of the same.
4000 (-[WebHTMLView moveToEndOfParagraphAndModifySelection:]): Ditto.
4001 (-[WebHTMLView pageDown:]): Added comment describing desired behavior.
4002 (-[WebHTMLView pageUp:]): Ditto.
4003 (-[WebHTMLView copyFont:]): Ditto.
4004 (-[WebHTMLView pasteFont:]): Ditto.
4005 (-[WebHTMLView changeAttributes:]): Ditto.
4006 (-[WebHTMLView indent:]): Ditto.
4008 2004-07-28 Chris Blumenberg <cblu@apple.com>
4010 Fixed: <rdar://problem/3737864> Can not download image from web by using drag and drop
4014 * Misc.subproj/WebNSPasteboardExtras.m:
4015 (-[NSPasteboard _web_declareAndWriteDragImage:URL:title:archive:source:]): On Tiger, to use NSFilesPromisePboardType with other pasteboard types, set the file types of the promise on the pasteboard as a property list instead of mucking with the NSFilePromiseDragSource class
4017 2004-07-28 Maciej Stachowiak <mjs@apple.com>
4021 - avoid triggering an assertion when using dead keys (like option-e)
4023 * WebView.subproj/WebHTMLView.m:
4024 (-[WebHTMLView insertText:]): Don't pass zero-length strings to
4025 WebCore. Dead-key input seems to insert empty strings as a side
4028 2004-07-28 Trey Matteson <trey@apple.com>
4030 Spellchecking, Part I. Basic spellcheck is working. Spelling panel is hooked up.
4032 At this point, no special marking of misspellings, no grammar check, no context
4033 menu integration, no "check continually" mode.
4037 * WebCoreSupport.subproj/WebBridge.m:
4038 (-[WebBridge spellCheckerDocumentTag]): Typical bridge glue.
4039 * WebView.subproj/WebHTMLView.m:
4040 (-[WebHTMLView validateUserInterfaceItem:]): Validate various spelling actions.
4041 (-[WebHTMLView checkSpelling:]): Call WC for real work, update panel.
4042 (-[WebHTMLView showGuessPanel:]): Show panel, call WC for real work.
4043 (-[WebHTMLView _changeSpellingToWord:]): Apply correction to our doc.
4044 (-[WebHTMLView changeSpelling:]): Simple pass through to above method.
4045 (-[WebHTMLView ignoreSpelling:]): Tell checker to ignore the word.
4046 * WebView.subproj/WebView.m:
4047 (-[WebView _close]): Call AK's closeSpellDocumentWithTag: for proper cleanup.
4049 2004-07-27 John Sullivan <sullivan@apple.com>
4053 WebKit part of fix for <rdar://problem/3622268> Reload failed pages when a
4054 network problem is corrected, inc. using Network Diagnostics
4056 * WebView.subproj/WebFrame.m:
4057 (-[WebFrame reload]):
4058 This method did not handle unreachableURLs at all. The reason Safari's Reload
4059 did work with unreachableURLs was that Safari does "reloadObeyingLocationField"
4060 which never actually calls -[WebFrame reload]. Fixed by creating a fresh
4061 request for the previously-unreachable URL.
4063 2004-07-26 Richard Williamson <rjw@apple.com>
4065 Fixed 3739737. When setting the focus to a NSView, set the focus
4066 carbon focus to kControlIndicatorPart. kControlIndicatorPart is a
4067 placeholder value for use to indicate that Cocoa has the focus.
4071 * Carbon.subproj/CarbonWindowAdapter.m:
4072 (-[CarbonWindowAdapter makeFirstResponder:]):
4073 * Carbon.subproj/HIWebView.m:
4077 2004-07-26 Chris Blumenberg <cblu@apple.com>
4079 Fixed: <rdar://problem/3689734> dragging to an editable WebView does not scroll document
4083 * WebView.subproj/WebView.m:
4084 (-[WebView documentViewAtWindowPoint:]): new, factored from draggingDocumentViewAtWindowPoint:
4085 (-[WebView _draggingDocumentViewAtWindowPoint:]): call documentViewAtWindowPoint:
4086 (-[WebView _autoscrollForDraggingInfo:timeDelta:]): forward call to the document view
4087 (-[WebView _shouldAutoscrollForDraggingInfo:]): ditto
4091 2004-07-23 Ken Kocienda <kocienda@apple.com>
4097 <rdar://problem/3738920> Caret blinks in inactive window
4099 As part of the fix, I cleaned up the way we handle special drawing that needs
4100 to be done in the HTML view that is first responder in the key window (e.g the
4101 drawing of text selection highlight and caret blinking).
4103 * WebView.subproj/WebHTMLView.m:
4104 (-[WebHTMLView updateFocusDisplay]): New method that&nbs