1 2004-11-19 Maciej Stachowiak <mjs@apple.com>
3 Reviewed by NOBODY (OOPS!).
5 <rdar://problem/3190977> closing window with many tabs in it can be quite slow
7 * WebView.subproj/WebFrame.m:
8 (-[WebFrame _detachFromParent]): autorelease bridge instead of releasing it,
9 to make window and tab closing more responsive - this way the deallocation happens
10 after the windoow or tab appears to close.
14 2004-11-19 Chris Blumenberg <cblu@apple.com>
16 Fixed: <rdar://problem/3880387> REGRESSION: www.shockplay.com site gives "Unexpected server response"
20 * Plugins.subproj/WebBaseNetscapePluginView.m:
21 (-[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
24 2004-11-19 Ken Kocienda <kocienda@apple.com>
30 <rdar://problem/3655241> setTypingStyle: does not set the real typing style, and typingStyle does not return it
32 * WebCoreSupport.subproj/WebBridge.m:
33 (-[WebBridge respondToChangedContents]): No longer call through to WebKit to set the typing style. The call
34 was part of the misguided use of the setTypingStyle: and typingStyle as a cache of what was stored on
36 (-[WebBridge respondToChangedSelection]): Ditto.
37 * WebView.subproj/WebView.m:
38 (-[WebViewPrivate dealloc]): Object no longer has typingStyle ivar.
39 (-[WebView setTypingStyle:]): Call over the bridge to set typing style.
40 (-[WebView typingStyle]): Call over the bridge to retrieve typing style.
41 * WebView.subproj/WebViewInternal.h: Object no longer has typingStyle ivar.
43 2004-11-18 John Sullivan <sullivan@apple.com>
47 - fixed <rdar://problem/3886042> should save history file as binary XML so serialization,
48 parsing, reading and writing is faster
50 * History.subproj/WebHistory.m:
51 (-[WebHistoryPrivate _saveHistoryGuts:URL:error:]):
52 convert dictionary to binary data before saving
54 2004-11-18 Chris Blumenberg <cblu@apple.com>
56 * WebView.subproj/WebHTMLRepresentation.m:
57 (-[WebHTMLRepresentation currentForm]): removed stray ";"
59 2004-11-18 Chris Blumenberg <cblu@apple.com>
61 Fixed development build failure.
63 * Misc.subproj/WebIconDatabase.m:
64 (+[WebIconDatabase sharedIconDatabase]): call LOG not Log
66 2004-11-18 Chris Blumenberg <cblu@apple.com>
68 <rdar://problem/3885708> save memory in icon DB by not using NSSets when holding 1 object
72 * Misc.subproj/WebIconDatabase.m:
73 (+[WebIconDatabase sharedIconDatabase]): added timing code
74 (-[WebIconDatabase _clearDictionaries]): new
75 (-[WebIconDatabase _loadIconDictionaries]): call _clearDictionaries in 2 places before we bail, use _web_setObjectUsingSetIfNecessary:forKey: when adding site URLs to the iconURLToURLs dictionary
76 (-[WebIconDatabase _updateFileDatabase]): fixed comment
77 (-[WebIconDatabase _setIconURL:forURL:]): use _web_setObjectUsingSetIfNecessary:forKey: when adding site URLs to the iconURLToURLs dictionary
78 (-[WebIconDatabase _releaseIconForIconURLString:]): handle NSString objects retured from iconURLToURLs
79 (-[NSMutableDictionary _web_setObjectUsingSetIfNecessary:forKey:]): new, puts a set on the dictionary when there are 2 or more object for s key
81 2004-11-17 Richard Williamson <rjw@apple.com>
83 Fixed <rdar://problem/3885073> REGRESSION: Tab images at top of news.com.com replicated and squished
85 Correctly account for scaled image size and clipping.
89 * WebCoreSupport.subproj/WebImageData.h:
90 * WebCoreSupport.subproj/WebImageData.m:
91 * WebCoreSupport.subproj/WebImageRenderer.m:
92 (-[WebImageRenderer drawImageInRect:fromRect:compositeOperator:context:]):
94 2004-11-17 Maciej Stachowiak <mjs@apple.com>
98 <rdar://problem/3885076> Don't make IDN calls for all-ascii URLs to save about 3 pages
101 * Misc.subproj/WebNSURLExtras.m:
102 (mapHostNames): If encoding and not decoding, then bail early if the URL is all ascii.
103 (-[NSString _web_mapHostNameWithRange:encode:makeString:]): Remove earlier special-case
104 check for localhost, no longer needed.
106 2004-11-17 Richard Williamson <rjw@apple.com>
108 Fixed <rdar://problem/3863601> Legacy font cache code in [WebTextRendererFactory createSharedFactory] may be unnecesary
110 and added call to SPI for
112 <rdar://problem/3884448> WebKit should turn on CG local font cache
114 currently disabled until a Tiger build shows up with the SPI.
116 Reviewed by David Harrison.
118 * WebCoreSupport.subproj/WebTextRendererFactory.m:
119 (+[WebTextRendererFactory createSharedFactory]):
121 2004-11-17 Richard Williamson <rjw@apple.com>
123 Fixed <rdar://problem/3882212> REGRESSION: Images clipped instead of scaled
124 Fixed <rdar://problem/3884088> Crash terminating image load
126 Also added code to turn off color correction for images created
127 via CGImageSources. This code is currently disabled because CG
128 can't change the color space of images loaded progressively.
129 Further, according to Dave Hayward, CG will no longer attempt
130 to color correct images that don't have embedded profiles as of
135 * WebCoreSupport.subproj/WebImageData.m:
136 (-[WebImageData _commonTermination]):
137 (-[WebImageData dealloc]):
138 (-[WebImageData _invalidateImageProperties]):
139 (-[WebImageData imageAtIndex:]):
140 (-[WebImageData incrementalLoadWithBytes:length:complete:]):
141 (-[WebImageData propertiesAtIndex:]):
143 2004-11-16 Chris Blumenberg <cblu@apple.com>
145 Fixed: <rdar://problem/3882034> REGRESSION: Context menu incorrect for PDF content
149 * WebView.subproj/WebPDFView.m:
150 (-[WebPDFView hitTest:]): return self if the current event is a context menu event
151 (-[WebPDFView menuForEvent:]): use the PDFView subview
153 2004-11-15 Chris Blumenberg <cblu@apple.com>
155 Fixed: <rdar://problem/3880410> save 5 dirty pages by soft-linking against PDFKit framework
159 * WebKit.pbproj/project.pbxproj:
160 * WebView.subproj/WebPDFRepresentation.m:
161 (+[WebPDFRepresentation PDFDocumentClass]): new
162 (-[WebPDFRepresentation finishedLoadingWithDataSource:]): use PDFDocumentClass
163 * WebView.subproj/WebPDFView.h:
164 * WebView.subproj/WebPDFView.m:
165 (+[WebPDFView PDFKitBundle]): new
166 (+[WebPDFView PDFViewClass]): new
167 (-[WebPDFView initWithFrame:]): create a PDFView subview
168 (-[WebPDFView dealloc]): release the PDFView subview
169 (-[WebPDFView PDFSubview]): new
171 2004-11-15 Chris Blumenberg <cblu@apple.com>
173 Fixed: <rdar://problem/3879891> WebKit should link against PDFKit instead of Quartz
177 * WebKit.pbproj/project.pbxproj: link against PDFKit if it is present instead of Quartz.framework
179 2004-11-15 Richard Williamson <rjw@apple.com>
181 Fixed missing retain of image property data.
185 * WebCoreSupport.subproj/WebImageData.h:
186 * WebCoreSupport.subproj/WebImageData.m:
187 (-[WebImageData dealloc]):
188 (-[WebImageData _invalidateImages]):
189 (-[WebImageData imageAtIndex:]):
190 (-[WebImageData propertiesAtIndex:]):
191 (-[WebImageData _frameDuration]):
193 2004-11-15 Richard Williamson <rjw@apple.com>
195 Cache image properties and frame durations.
196 Create NSImage and TIFF representations from CGImage, lazily, as needed for
197 dragging and element info dictionary.
201 * WebCoreSupport.subproj/WebImageData.h:
202 * WebCoreSupport.subproj/WebImageData.m:
203 (-[WebImageData dealloc]):
204 (-[WebImageData size]):
205 (-[WebImageData propertiesAtIndex:]):
206 (-[WebImageData _frameDurationAt:]):
207 (-[WebImageData _frameDuration]):
208 * WebCoreSupport.subproj/WebImageRenderer.h:
209 * WebCoreSupport.subproj/WebImageRenderer.m:
210 (-[WebImageRenderer dealloc]):
211 (-[WebImageRenderer TIFFRepresentation]):
212 (-[WebImageRenderer image]):
214 2004-11-14 Maciej Stachowiak <mjs@apple.com>
218 <rdar://problem/3879226> WebKit needlessly uses extra memory to store icon refcounts as NSNumbers
220 * Misc.subproj/WebIconDatabase.m:
221 (-[WebIconDatabase init]):
222 (-[WebIconDatabase _setIconURL:forURL:]):
223 (-[WebIconDatabase _retainIconForIconURLString:]):
224 (-[WebIconDatabase _releaseIconForIconURLString:]):
225 (-[WebIconDatabase _retainFutureIconForURL:]):
226 (-[WebIconDatabase _releaseFutureIconForURL:]):
227 * Misc.subproj/WebIconDatabasePrivate.h:
229 2004-11-15 John Sullivan <sullivan@apple.com>
233 - fixed <rdar://problem/3879513> leak in [WebArchive _propertyListRepresentation] copying HTML to pasteboard
235 * WebView.subproj/WebArchive.m:
236 (-[WebArchive _propertyListRepresentation]):
237 the array holding the subresources was not released after use, oops!
239 2004-11-12 Chris Blumenberg <cblu@apple.com>
241 Fixed: <rdar://problem/3874577> Opening restricted (parental) content in new window/tab reveals Safari's "Resources" folder
245 * WebView.subproj/WebDefaultContextMenuDelegate.m:
246 (-[WebDefaultUIDelegate openFrameInNewWindow:]): use the unreachable URL if there is one
250 2004-11-11 Richard Williamson <rjw@apple.com>
252 Report actual size (not partial size) but use partial size
257 * WebCoreSupport.subproj/WebImageData.h:
258 * WebCoreSupport.subproj/WebImageData.m:
259 (-[WebImageData size]):
261 2004-11-11 Darin Adler <darin@apple.com>
265 - added _wasFirstResponderAtMouseDownTime method to bridge so we can fix
266 <rdar://problem/3846152> REGRESSION (125-166): can't drag text out of <input type=text> fields
267 with a subsequent change to WebCore.
269 * WebCoreSupport.subproj/WebBridge.m:
270 (wasFirstResponderAtMouseDownTime:): Added. Calls _wasFirstResponderAtMouseDownTime
272 (_getPreSmartSet): Move global inside the function, add (void) for cleanliness.
273 (_getPostSmartSet): Ditto.
275 * WebView.subproj/WebHTMLView.m:
276 (-[WebHTMLViewPrivate dealloc]): Release firstResponderAtMouseDownTime.
277 (-[WebHTMLView _setMouseDownEvent:]): Early exit if event is not changing.
278 Set firstResponderAtMouseDownTime to the first responder.
279 (-[WebHTMLView mouseDown:]): Release firstResponderAtMouseDownTime after handling
281 (-[WebHTMLView _wasFirstResponderAtMouseDownTime:]): Added. Uses the
282 firstResponderAtMouseDownTime field.
283 * WebView.subproj/WebHTMLViewInternal.h: Added firstResponderAtMouseDownTime field
284 and _wasFirstResponderAtMouseDownTime method.
286 * English.lproj/StringsNotToBeLocalized.txt: Update for recent changes.
288 2004-11-11 Richard Williamson <rjw@apple.com>
292 Work-around to minimize impact of 3876764. Cache frame durations
293 after first call. So we'll still leak 1K for each animated
294 image, but that's better than 1K each time the frame is drawn!
295 * WebCoreSupport.subproj/WebImageData.h:
296 * WebCoreSupport.subproj/WebImageData.m:
297 (-[WebImageData _frameDuration]):
299 Simplified animation cleanup code. Fixed leak due to
300 incorrect key passed to CFDictionaryRemoveValue.
302 (+[WebImageData stopAnimationsInView:]):
303 (-[WebImageData addAnimatingRenderer:inView:]):
304 (-[WebImageData removeAnimatingRenderer:]):
305 (-[WebImageData _stopAnimation]):
307 2004-11-11 Darin Adler <darin@apple.com>
311 - 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
313 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView drawRect:]):
314 Work around AppKit bug by using rectangles from getRectsBeingDrawn:count: instead of
315 using the passed-in rectangle.
317 2004-11-11 Richard Williamson <rjw@apple.com>
319 Work-arounds to make new ImageIO code work correctly. Still
320 disabled for now. Requires at least Tiger 300. Testing does
321 show a 3% improvement in PLT tests! That's huge!
325 * WebCoreSupport.subproj/WebImageData.m:
326 (-[WebImageData imageAtIndex:]):
327 (-[WebImageData incrementalLoadWithBytes:length:complete:]):
328 (-[WebImageData isNull]):
330 2004-11-10 Chris Blumenberg <cblu@apple.com>
332 Fixed: <rdar://problem/3396872> ICONS: icon DB inconsistencies can cause slowness during startup, idle and quit
336 * Misc.subproj/WebFileDatabase.m:
337 (-[WebFileDatabase objectForKey:]): added logging code
338 * Misc.subproj/WebIconDatabase.m:
339 (-[WebIconDatabase init]): use alloc, init rather than autorelease, retain
340 (-[WebIconDatabase _loadIconDictionaries]): use 1 object for mapping icon URLs to site URLs and vice versa rather than 3. This avoids inconsistencies and is faster.
341 (-[WebIconDatabase _updateFileDatabase]): write 1 object out
343 2004-11-09 David Hyatt <hyatt@apple.com>
345 Fix for 3873234, Safari UI is unresponsive when parsing multiple HTML docs and 3873233, Safari hangs when
346 loading large local files.
350 * WebCoreSupport.subproj/WebBridge.m:
351 (-[WebBridge tokenizerProcessedData]):
352 * WebView.subproj/WebDataSource.m:
353 (-[WebDataSource _receivedMainResourceError:complete:]):
354 (-[WebDataSource isLoading]):
356 2004-11-09 Richard Williamson <rjw@apple.com>
358 Fixed <rdar://problem/3870964> 8A300: Safari not recognizing a PDF link (it displays raw data)
360 Add "text/pdf" as an acceptable PDF MIME type.
364 * WebView.subproj/WebDataSource.m:
365 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
366 * WebView.subproj/WebFrameView.m:
367 (+[WebFrameView _viewTypesAllowImageTypeOmission:]):
369 2004-11-08 Chris Blumenberg <cblu@apple.com>
371 Fixed: <rdar://problem/3783904> Return key behavior is confusingly different between popup menus and autofill menus
375 * WebCoreSupport.subproj/WebBridge.m:
376 (-[WebBridge control:textView:shouldHandleEvent:]): new
377 * WebView.subproj/WebFormDelegate.h:
378 * WebView.subproj/WebFormDelegate.m:
379 (-[WebFormDelegate control:textView:shouldHandleEvent:inFrame:]): new
381 2004-11-05 Chris Blumenberg <cblu@apple.com>
383 Fixed: <rdar://problem/3854218> Safari is sometimes really slow because of increased null events to plug-ins
385 * Plugins.subproj/WebBaseNetscapePluginView.m: reverted null event interval to 0.02
387 2004-11-05 Chris Blumenberg <cblu@apple.com>
389 Fixed: <rdar://problem/3838413> REGRESSION (Mail): "Smart" word paste adds spaces before/after special characters
393 * WebCoreSupport.subproj/WebBridge.m:
394 (_getPreSmartSet): copied from AppKit
395 (_getPostSmartSet): ditto
396 (-[WebBridge isCharacterSmartReplaceExempt:isPreviousCharacter:]): new
398 2004-11-05 Richard Williamson <rjw@apple.com>
400 Fixed <rdar://problem/3810702> _checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector: ASSERTS when reentered from Xcode's man page viewer
402 Reviewed by Maciej (a long time ago).
404 * WebView.subproj/WebFrame.m:
405 (-[WebFrame _loadDataSource:withLoadType:formState:]):
407 Fixed <rdar://problem/3845307> WebKit needs to export _HIWebViewRegisterClass so HIWebViews can work in Carbon nib files
409 As suggested in the bug, the fix is to actually call
410 HIWebViewRegisterClass in WebKitInitForCarbon, rather than
411 exporting the symbol.
415 * Carbon.subproj/CarbonUtils.m:
417 * Carbon.subproj/HIWebView.m:
418 * WebKit.pbproj/project.pbxproj:
422 2004-11-05 Darin Adler <darin@apple.com>
426 - fixed <rdar://problem/3857151> Assertion failure in "trackingRectOwner" while moving mouse over Slashdot.org page
428 * WebView.subproj/WebHTMLView.m:
429 (-[WebHTMLView _addTrackingRect:owner:userData:assumeInside:useTrackingNum:]): Changed to no longer call
430 addTrackingRect to do the work for consistency with the new method below. Not too much copied and pasted code.
431 (-[WebHTMLView _addTrackingRects:owner:userDataList:assumeInsideList:trackingNums:count:]): Added an override
432 for this new method in Tiger. No harm in implementing it on Panther, although it won't be called.
433 (-[WebHTMLView _removeTrackingRects:count:]): Ditto.
435 2004-11-04 David Hyatt <hyatt@apple.com>
437 Make sure the dominant line direction is properly set for RTL runs so that spaces will reverse.
439 Change xHeight to measure the ascent of the x glyph, since the xHeight metrics appear to be
440 totally bogus in both CG and AppKit.
444 * WebCoreSupport.subproj/WebTextRenderer.m:
445 (-[WebTextRenderer xHeight]):
446 (-[WebTextRenderer _createATSUTextLayoutForRun:style:]):
447 (-[WebTextRenderer _trapezoidForRun:style:atPoint:]):
448 (-[WebTextRenderer _ATSU_drawHighlightForRun:style:geometry:]):
449 (-[WebTextRenderer _ATSU_drawRun:style:geometry:]):
450 (-[WebTextRenderer _ATSU_pointToOffset:style:position:reversed:includePartialGlyphs:]):
452 2004-11-02 Maciej Stachowiak <mjs@apple.com>
454 Reviewed by Dave Hyatt (when I originally coded it).
456 Redid WebKit part of fix for:
458 <rdar://problem/3759187> REGRESSION (Mail): implement firstRectForCharacterRange:
460 * WebView.subproj/WebHTMLView.m:
461 (-[WebHTMLView firstRectForCharacterRange:]): Call the appropriate new bridge method,
462 and translate to screen coordinates.
464 2004-11-02 John Sullivan <sullivan@apple.com>
468 - [NSFont menuFontOfSize:], called from WebStringTruncator, was taking > 9% of the time creating a
469 very large bookmarks menu, so I cached this one NSFont object.
471 * Misc.subproj/WebStringTruncator.m:
473 new function, caches the font used when no font is specified
474 (+[WebStringTruncator centerTruncateString:toWidth:]):
477 2004-11-02 Ken Kocienda <kocienda@apple.com>
481 WebCore now implements a command to insert a block in response to typing a return key, and
482 some names were improved in the course of this work.
484 * WebView.subproj/WebHTMLView.m:
485 (-[WebHTMLView insertNewline:]): Now calls insertLineBreak on bridge object.
486 (-[WebHTMLView insertLineBreak:]): New method.
487 (-[WebHTMLView insertParagraphSeparator:]): Now implemented.
488 * WebView.subproj/WebView.m:
492 2004-10-29 Chris Blumenberg <cblu@apple.com>
494 * WebKit.exp: added _WebPlugInModeKey, forgot to add it earlier
496 2004-10-29 Darin Adler <darin@apple.com>
498 - fixed <rdar://problem/3855573> Remove reference to "WebScriptMethods" from WebScriptObject.h comments
500 * Plugins.subproj/WebScriptObject.h: Removed unneeded #ifdef protection for multiple includes (since
501 this is an Objective-C header and we use #import for those). Fixed comments as requested in the bug
502 report to match the contents of the file.
504 2004-10-27 Ken Kocienda <kocienda@apple.com>
508 Added new SPI for Mail so it can get the behavior it needs when the user hits
509 the return key with the selection in quoted content.
511 * WebView.subproj/WebView.m
512 * WebView.subproj/WebViewPrivate.h
514 2004-10-26 Chris Blumenberg <cblu@apple.com>
516 Fixed exception that Darin encountered in Mail.
520 * Plugins.subproj/WebPluginController.m:
521 (+[WebPluginController plugInViewWithArguments:fromPluginPackage:]): if the plug-in returns a nil view, return nil
523 2004-10-25 Chris Blumenberg <cblu@apple.com>
525 Darin made an internal notification have the Web prefix.
529 * Plugins.subproj/WebBaseNetscapePluginView.m:
530 (-[WebBaseNetscapePluginView addWindowObservers]):
531 (-[WebBaseNetscapePluginView removeWindowObservers]):
532 (ConsoleConnectionChangeNotifyProc):
534 2004-10-25 John Sullivan <sullivan@apple.com>
538 - Cleanup from fix for <rdar://problem/3851676> bookmarks should not hold onto a WebHistoryItem object;
539 eliminated notificationsSuppressed mechanism, which was used only by WebBookmark
541 * History.subproj/WebHistoryItem.m:
542 removed notificationsSuppressed ivar from private data object
543 (-[WebHistoryItem setAlternateTitle:]):
544 remove notificationsSuppressed guard
545 (-[WebHistoryItem setURLString:]):
547 (-[WebHistoryItem setOriginalURLString:]):
549 (-[WebHistoryItem setTitle:]):
551 (-[WebHistoryItem _setLastVisitedTimeInterval:]):
553 (-[WebHistoryItem setNotificationsSuppressed:]):
555 (-[WebHistoryItem notificationsSuppressed]):
558 * History.subproj/WebHistoryItemPrivate.h:
559 removed notificationsSuppressed and setNotificationsSuppressed
561 2004-10-22 Chris Blumenberg <cblu@apple.com>
563 Fixed: <rdar://problem/3851491> installedPlugins being called for a page without plugins
567 * WebView.subproj/WebFrameView.m:
568 (+[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
572 2004-10-22 Ken Kocienda <kocienda@apple.com>
576 * WebKit.pbproj/project.pbxproj: Add GCC_ENABLE_OBJC_GC and GCC_FAST_OBJC_DISPATCH flags.
578 2004-10-21 Darin Adler <darin@apple.com>
582 - fixed <rdar://problem/3847994> REGRESSION: reproducible exception in WebImageRenderer releasePatternColor; afterwards get crash or no more browsing
584 * WebCoreSupport.subproj/WebImageRenderer.m:
585 (-[WebInternalImage createRendererIfNeeded]): Replaced retainOrCopyIfNeeded with this.
586 This returns nil if a copied renderer isn't needed, and returns a new renderer if a copy is.
587 The old version was sometimes returning a WebInternalImage and other times a WebImageRenderer.
588 (-[WebImageRenderer retainOrCopyIfNeeded]): Returns the result of createRendererIfNeeded
589 or retains self and returns self.
591 2004-10-20 Darin Adler <darin@apple.com>
595 - fixed <rdar://problem/3470715> Pattern cache can get huge with use of css background-image in Safari
597 * WebCoreSupport.subproj/WebImageRenderer.h: Change WebImageRenderer to be a subclass of NSObject
598 rather than NSImage and contain a pointer to a WebInternalImage.
599 * WebCoreSupport.subproj/WebImageRenderer.m:
600 (-[WebInternalImage releasePatternColor]): Added. Releases patternColor.
601 (-[WebImageRenderer initWithMIMEType:]): Added. Makes WebInternalImage and then self.
602 (-[WebImageRenderer initWithData:MIMEType:]): Ditto.
603 (-[WebImageRenderer initWithContentsOfFile:]): Ditto.
604 (-[WebImageRenderer dealloc]): Added. Calls releasePatternColor and then releases WebInternalImage.
605 (-[WebImageRenderer image]): Added. Returns pointer to image.
606 (-[WebImageRenderer MIMEType]): Added. Calls through to image.
607 (-[WebImageRenderer TIFFRepresentation]): Ditto.
608 (-[WebImageRenderer frameCount]): Ditto.
609 (-[WebImageRenderer setOriginalData:]): Added. Sets image data pointer.
610 (+[WebImageRenderer stopAnimationsInView:]): Added. Calls through to image.
611 (-[WebImageRenderer incrementalLoadWithBytes:length:complete:]): Ditto.
612 (-[WebImageRenderer size]): Ditto.
613 (-[WebImageRenderer resize:]): Ditto.
614 (-[WebImageRenderer drawImageInRect:fromRect:]): Ditto.
615 (-[WebImageRenderer drawImageInRect:fromRect:compositeOperator:context:]): Ditto.
616 (-[WebImageRenderer stopAnimation]): Ditto.
617 (-[WebImageRenderer tileInRect:fromPoint:context:]): Ditto.
618 (-[WebImageRenderer isNull]): Ditto.
619 (-[WebImageRenderer retainOrCopyIfNeeded]): Ditto.
620 (-[WebImageRenderer increaseUseCount]): Ditto.
621 (-[WebImageRenderer decreaseUseCount]): Ditto.
622 (-[WebImageRenderer flushRasterCache]): Ditto.
623 (-[WebImageRenderer imageRef]): Ditto.
624 (-[WebImageRenderer copyWithZone:]): Ditto.
626 * Misc.subproj/WebNSViewExtras.m: (-[NSView _web_dragImage:rect:event:pasteboard:source:offset:]):
627 Update for slight changes to WebImageRenderer API.
628 * WebCoreSupport.subproj/WebImageRendererFactory.m:
629 (-[WebImageRendererFactory imageRendererWithMIMEType:]): Ditto.
630 (-[WebImageRendererFactory imageRendererWithData:MIMEType:]): Ditto.
631 (-[WebImageRendererFactory imageRendererWithSize:]): Ditto.
632 (-[WebImageRendererFactory imageRendererWithName:]): Ditto.
633 * WebView.subproj/WebImageView.m: (-[WebImageView image]): Ditto.
635 2004-10-20 Chris Blumenberg <cblu@apple.com>
637 Fixed: <rdar://problem/3846943> REGRESSION: JNLP files are rendered instead of downloaded
641 * Plugins.subproj/WebBasePluginPackage.h:
642 * Plugins.subproj/WebBasePluginPackage.m:
643 (-[WebBasePluginPackage isJavaPlugIn]): new
644 * Plugins.subproj/WebPluginDatabase.m:
645 (-[WebPluginDatabase refresh]): don't register the Java plug-in for a document view since Java file should be downloaded when not embedded.
647 2004-10-20 Chris Blumenberg <cblu@apple.com>
650 <rdar://problem/3842030> WebKit needs to pass the mode (NP_FULL, NP_EMBED, etc) when calling plugInViewWithArguments
651 <rdar://problem/3792852> Safari is loading the new QuickTime Cocoa plugin on Panther
655 * Plugins.subproj/WebPluginDocumentView.m:
656 (-[WebPluginDocumentView setDataSource:]): pass "full" as the mode
657 * Plugins.subproj/WebPluginPackage.m:
658 (-[WebPluginPackage initWithPath:]): load plug-in with the "webplugin" extension
659 * WebCoreSupport.subproj/WebBridge.m:
660 (-[WebBridge pluginViewWithPackage:attributeNames:attributeValues:baseURL:]): pass "embed" as the mode
661 * WebKit.pbproj/project.pbxproj:
663 2004-10-19 Vicki Murley <vicki@apple.com>
665 - bump WebKit version to 167.1, so that we can do a quick dot submission for <rdar://problem/3843951>
667 * WebKit.pbproj/project.pbxproj:
669 2004-10-19 Darin Adler <darin@apple.com>
671 Change suggested by Maciej during code review.
673 * WebCoreSupport.subproj/WebTextRenderer.m: Changed rounding hack table to be const so it can be in shared instead
674 of private memory, and doesn't require an initialization function.
675 (+[WebTextRenderer initialize]): Removed initialization.
677 2004-10-19 Darin Adler <darin@apple.com>
681 - fixed <rdar://problem/3838934> Safari stops loading pages after rangeOfCharacterFromSet nil argument exception
682 - fixed <rdar://problem/3843951> REGRESSION (166-167): Safari crashes in widthForNextCharacter (belkin.com, at startup for others)
683 - fixed <rdar://problem/3841049> REGRESSION (109-110): control characters render as square boxes
685 * WebCoreSupport.subproj/WebTextRenderer.m:
686 (isSpace): Merged in isAlternateSpace, never used.
687 (setupRoundingHackCharacterTable): Fixed size of table, was 1 entry too short. Got rid of unneeded call to bzero,
688 since globals start out zeroed automatically.
689 (isRoundingHackCharacter): Fixed backwards logic causing the crash in widthForNextCharacter.
690 Also removed explicit compare with 1; check for non-zero is just fine.
691 (fontContainsString): Change code so we'll just skip the font if the covered character set returns nil rather than
692 throwing an exception like the old version did. This should make bug 3838934 go away, although perhaps covering up
693 the underlying problem.
694 (-[WebTextRenderer _convertCharacters:length:toGlyphs:]): Removed unused skipControlCharacters: parameter and also
695 the unnecessary code to copy the buffer to change newline characters and non-break spaces to spaces.
696 (-[WebTextRenderer _convertUnicodeCharacters:length:toGlyphs:]): Removed unused local.
697 (-[WebTextRenderer _extendCharacterToGlyphMapToInclude:]): Added code to set up special cases for control characters,
698 \n and non-break spaces.
699 (-[WebTextRenderer _createATSUTextLayoutForRun:]): Added comment about the cases this code does not handle that
700 are handled by the CG case.
701 (widthForNextCharacter): Call isSpace instead of checking specifically for the space character here. The old code
702 would not handle cases with '\n' coming across from WebCore properly.
704 2004-10-18 Chris Blumenberg <cblu@apple.com>
706 Fixed: <rdar://problem/3840916> GC: -[WebNetscapePluginPackage initWithPath:] leaks an NSURL
710 * Plugins.subproj/WebNetscapePluginPackage.m:
711 (-[WebNetscapePluginPackage initWithPath:]): use executablePath on NSBundle instead of CFBundleCopyExecutableURL
713 2004-10-18 Chris Blumenberg <cblu@apple.com>
715 * DOM.subproj/DOMPrivate.h: change to copied header that was never committed
717 2004-10-18 John Sullivan <sullivan@apple.com>
721 - fixed <rdar://problem/3810183> Make WebHTMLView respect return value of webView:doCommandBySelector:
723 * WebView.subproj/WebHTMLView.m:
724 (-[WebHTMLView doCommandBySelector:]):
725 only do default action if delegate returns NO; this works with Mail as of Tiger 8A275.
729 2004-10-14 Ken Kocienda <kocienda@apple.com>
733 Final fix for these bugs:
735 <rdar://problem/3806306> HTML editing puts spaces at start of line
736 <rdar://problem/3814252> HTML editing groups space with word causing wrapping
738 This change sets some new CSS properties that have been added to WebCore to
739 enable whitespace-handling and line-breaking features that make WebView work
740 more like a text editor.
742 * WebView.subproj/WebHTMLRepresentation.m:
743 (-[WebHTMLRepresentation finishedLoadingWithDataSource:]): Turn on special editing
744 CSS properties when loading an HTML document into a WebView that is editable.
745 * WebView.subproj/WebView.m:
746 (-[WebView setEditable:]): Add and remove special editing CSS properties in current
747 document being displayed.
749 2004-10-14 Richard Williamson <rjw@apple.com>
751 Fixed <rdar://problem/3823026> making isRoundingHackCharacter use -O3 and an 8-bit lookup-table will speed "XBS" test up by 3% (actually < 1%)
753 Careful testing shows a small performance gain on very large text files.
754 I saw large variations in timings, but taking the lowest PLT timing
755 with and without this change showed a 0.9% gain. Note the cvs-base showed
756 no improvement. The improvement was for the large page attached to the
761 * WebCoreSupport.subproj/WebTextRenderer.m:
762 (setupRoundingHackCharacterTable):
763 (isRoundingHackCharacter):
764 (+[WebTextRenderer initialize]):
766 2004-10-14 Ken Kocienda <kocienda@apple.com>
770 Fix build breakage. These three functions need to return the values from their
771 calls to WebCGColorSpaceCreateXXX.
773 * WebCoreSupport.subproj/WebGraphicsBridge.m:
774 (-[WebGraphicsBridge createRGBColorSpace])
775 (-[WebGraphicsBridge createGrayColorSpace])
776 (-[WebGraphicsBridge createCMYKColorSpace])
778 2004-10-13 Richard Williamson <rjw@apple.com>
780 Addressed concerns in <rdar://problem/3803117> RESP: High complexity in icu uidna_IDNToASCII called by [NSString(WebNSURLExtras) _web_mapHostNameWithRange:encode:makeString:]
782 In practice I saw NO improvement in performance. Although,
783 special-case tests could possibly show improvement. Anyway,
784 the changes don't hurt performance.
788 * Misc.subproj/WebNSURLExtras.m:
789 (-[NSString _web_mapHostNameWithRange:encode:makeString:]):
791 2004-10-13 Maciej Stachowiak <mjs@apple.com>
795 <rdar://problem/3824626> Change to do colormatching for DeviceRGB colorspace causes ~11% Safari slowdown
797 - I fixed this by turning off all colormatching for WebKit
798 content. We might turn it back on later. For now, it's possible to
799 turn it on temporarily by defining COLORMATCH_EVERYTHING.
801 * WebCoreSupport.subproj/WebGraphicsBridge.m:
802 (-[WebGraphicsBridge setFocusRingStyle:radius:color:]):
803 (-[WebGraphicsBridge additionalPatternPhase]):
804 (-[WebGraphicsBridge createRGBColorSpace]):
805 (-[WebGraphicsBridge createGrayColorSpace]):
806 (-[WebGraphicsBridge createCMYKColorSpace]):
807 * WebCoreSupport.subproj/WebImageData.m:
808 * WebCoreSupport.subproj/WebImageRenderer.h:
809 * WebCoreSupport.subproj/WebImageRenderer.m:
810 (-[WebImageRenderer _adjustSizeToPixelDimensions]):
811 (-[WebImageRenderer incrementalLoadWithBytes:length:complete:]):
812 (-[WebImageRenderer _adjustColorSpace]):
813 (-[WebImageRenderer drawClippedToValidInRect:fromRect:]):
814 (-[WebImageRenderer tileInRect:fromPoint:context:]):
816 (WebCGColorSpaceCreateRGB):
817 (WebCGColorSpaceCreateGray):
818 (WebCGColorSpaceCreateCMYK):
821 2004-10-13 Richard Williamson <rjw@apple.com>
823 Don't fill background with transparency unless debug flag
828 * WebView.subproj/WebHTMLView.m:
829 (-[WebHTMLView drawRect:]):
831 2004-10-12 Richard Williamson <rjw@apple.com>
833 Fixed <rdar://problem/3829705> Need to remove filling w/ transparency when not drawing backgroundy.
837 * WebView.subproj/WebHTMLView.m:
838 (-[WebHTMLView _transparentBackground]):
839 (-[WebHTMLView _setTransparentBackground:]):
840 (-[WebHTMLView drawRect:]):
841 * WebView.subproj/WebHTMLViewInternal.h:
842 * WebView.subproj/WebHTMLViewPrivate.h:
844 2004-10-11 Chris Blumenberg <cblu@apple.com>
846 Fixed: <rdar://problem/3802039> 8A259: Can't use Grab services to grab selection from screen
850 * WebView.subproj/WebHTMLView.m:
851 (+[WebHTMLView initialize]): register service "return types" which are types that can be inserted into a WebView
852 (-[WebHTMLView writeSelectionToPasteboard:types:]): service protocol method, be sure to only write specified types
853 (-[WebHTMLView readSelectionFromPasteboard:]): new, service protocol method, insert types
854 (-[WebHTMLView validRequestorForSendType:returnType:]): moved, handle return types
856 2004-10-11 Darin Adler <darin@apple.com>
860 - fixed <rdar://problem/3834130> nil-object-in-dictionary exception seen in -[WebView _elementAtWindowPoint:]
862 * WebView.subproj/WebView.m: (-[WebView _elementAtWindowPoint:]): Added a check for nil frame.
864 2004-10-11 Darin Adler <darin@apple.com>
868 - fixed <rdar://problem/3834166> <input type=file> sends onchange even when the same file is chosen twice
870 * WebCoreSupport.subproj/WebFileButton.m: (-[WebFileButton chooseFilename:]):
871 Do nothing if filename is the same as before.
873 2004-10-11 Ken Kocienda <kocienda@apple.com>
877 * WebView.subproj/WebHTMLView.m:
878 (-[WebTextCompleteController doCompletion]): bridge call to get caret rect at a node
879 now takes an affinity: caretRectAtNode:offset:affinity:.
881 2004-10-10 Ken Kocienda <kocienda@apple.com>
887 <rdar://problem/3814236> REGRESSION (Mail): Can't set the color of text in Mail compose window using drag/drag from color panel
889 * WebView.subproj/WebHTMLView.m:
890 (+[WebHTMLView _insertablePasteboardTypes]): Add NSColorPboardType to list.
891 (-[WebHTMLView _isNSColorDrag:]): New helper. Determines if drag is an NSColor drag.
892 (-[WebHTMLView draggingUpdatedWithDraggingInfo:actionMask:]): Add a case for NSColor drags,
893 else do what we did before.
894 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): Add a case for NSColor drags, which creates
895 a CSS style containing color info and calls the bridge to apply the style. Otherwise, do what we did before.
897 2004-10-11 Darin Adler <darin@apple.com>
901 - fixed <rdar://problem/3833848> REGRESSION (133-134): each keydown event is getting sent multiple times
903 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView performKeyEquivalent:]):
904 Don't send an event through WebCore if it has already been through once.
906 2004-10-10 John Sullivan <sullivan@apple.com>
910 - fixed <rdar://problem/3777253> Crash in redirect mechanism trying to display error page for bad scheme
912 * WebView.subproj/WebMainResourceClient.m:
913 (-[WebMainResourceClient connection:willSendRequest:redirectResponse:]):
914 add retain/autorelease to the request returned from call to super. In this case, the return value
915 was being dealloc'ed before being returned.
917 2004-10-09 Chris Blumenberg <cblu@apple.com>
920 <rdar://problem/3625352> up and down arrow and page up/down keys don't work to scroll overflow:auto/scroll/overlay areas
921 <rdar://problem/3397658> scroll wheel does not work to scroll overflow:auto/scroll/overlay areas (RSS)
925 * Plugins.subproj/WebBaseNetscapePluginStream.m:
926 (-[WebBaseNetscapePluginStream initWithRequestURL:pluginPointer:notifyData:sendNotification:]): fixed typo in comment
927 * Plugins.subproj/WebNetscapePluginStream.m:
928 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]): ditto
929 * WebView.subproj/WebFramePrivate.h:
930 * WebView.subproj/WebFrameView.m:
931 (-[WebFrameView _bridge]): new
932 (-[WebFrameView scrollToBeginningOfDocument:]): call the bridge to scroll, if that fails, scroll the document view
933 (-[WebFrameView scrollToEndOfDocument:]): ditto
934 (-[WebFrameView _pageVertically:]): ditto
935 (-[WebFrameView _pageHorizontally:]): ditto
936 (-[WebFrameView _scrollLineVertically:]): ditto
937 (-[WebFrameView _scrollLineHorizontally:]): ditto
938 * WebView.subproj/WebHTMLView.m:
939 (-[WebHTMLView scrollWheel:]): call the bridge to scroll, if that fails, pass to next responder
943 2004-10-05 Chris Blumenberg <cblu@apple.com>
945 Fixed: <rdar://problem/3827002> assertion failure in WebBaseNetscapePluginStream on abc.go.com
949 * Plugins.subproj/WebBaseNetscapePluginStream.m:
950 (-[WebBaseNetscapePluginStream initWithRequestURL:pluginPointer:notifyData:sendNotification:]): avoid assertion failure in dealloc by temporarily setting isTerminated to YES in case we are released in this method
951 * Plugins.subproj/WebNetscapePluginStream.m:
952 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]): ditto
954 2004-10-05 John Sullivan <sullivan@apple.com>
956 * WebCoreSupport.subproj/WebBridge.m:
957 (-[WebBridge pluginViewWithPackage:attributeNames:attributeValues:baseURL:]):
958 initialize "arguments" var to nil to satisfy compiler on deployment build.
960 2004-10-05 Richard Williamson <rjw@apple.com>
962 Fixed <rdar://problem/3825442> first click lost for Dashboard
963 Allow dashboard to force acceptsFirstMouse:
967 * WebView.subproj/WebHTMLView.m:
968 (-[WebHTMLView acceptsFirstMouse:]):
969 * WebView.subproj/WebView.m:
970 (-[WebView _dashboardBehavior:]):
971 * WebView.subproj/WebViewInternal.h:
972 * WebView.subproj/WebViewPrivate.h:
974 * WebCoreSupport.subproj/WebImageRenderer.h:
977 2004-10-05 Chris Blumenberg <cblu@apple.com>
979 Fixed: <rdar://problem/3760920> Need to record plugin view instances
983 * Plugins.subproj/WebPluginController.h:
984 * Plugins.subproj/WebPluginController.m:
985 (+[WebPluginController plugInViewWithArguments:fromPluginPackage:]): new, creates plug-in view and adds it to global list
986 (+[WebPluginController isPlugInView:]): new, checks if the plug-in view is in the global list
987 (-[WebPluginController destroyAllPlugins]): remove the plug-in from the global list
988 * Plugins.subproj/WebPluginDocumentView.m:
989 (-[WebPluginDocumentView setDataSource:]): call [WebPluginController plugInViewWithArguments:fromPluginPackage:]
990 * WebCoreSupport.subproj/WebBridge.m:
991 (-[WebBridge pluginViewWithPackage:attributeNames:attributeValues:baseURL:]): ditto
992 * WebView.subproj/WebFrame.m:
993 (-[WebFrame _reloadForPluginChanges]): call [WebPluginController isPlugInView:]
994 * WebView.subproj/WebHTMLView.m:
995 (-[WebHTMLView addSubview:]): ditto
997 2004-10-05 David Hyatt <hyatt@apple.com>
999 Fix to make selection more like NSTextView. All gap painting is now done by WebCore, so WebKit no longer
1000 needs to try to fill gaps around text.
1002 Reviewed by kocienda
1004 * WebCoreSupport.subproj/WebTextRenderer.m:
1005 (-[WebTextRenderer _CG_drawHighlightForRun:style:geometry:]):
1006 (-[WebTextRenderer _ATSU_drawHighlightForRun:style:geometry:]):
1008 2004-10-05 Darin Adler <darin@apple.com>
1012 - fixed <rdar://problem/3577255> custom file icon shows up upside down in <input type=file>
1014 * WebCoreSupport.subproj/WebFileButton.m: (-[WebFileButton setFilename:]): Added a call to
1015 setFlipped that fixes the problem, even though I don't know why.
1017 2004-10-04 Darin Adler <darin@apple.com>
1021 - fixed <rdar://problem/3814237> REGRESSION (Mail): Copy/paste style does not set color in Mail compose window
1023 * WebView.subproj/WebHTMLView.m:
1024 (-[WebHTMLView _selectionStartFontAttributesAsRTF]): Changed to call new bridge method
1025 named fontAttributesForSelectionStart, deleted the method this used to use, and renamed
1026 this to have the word "start" in it.
1027 (-[WebHTMLView copyFont:]): Updated for name change.
1029 * English.lproj/StringsNotToBeLocalized.txt: Updated for recent changes.
1031 2004-10-04 Chris Blumenberg <cblu@apple.com>
1033 * WebView.subproj/WebFrameInternal.h: removed constant declarations that I committed by mistake
1035 2004-10-04 Chris Blumenberg <cblu@apple.com>
1037 Fixed: <rdar://problem/3798948> NPP_URLNotify is not called if plug-in calls NPN_*URLNotfy
1038 Fixed a number of FIXME's related to notifying plug-ins of loaded pages.
1042 * Plugins.subproj/WebBaseNetscapePluginStream.h:
1043 - replaced URL ivar with requestURL and responseURL ivars since we need to pass both to plug-ins
1044 - added sendNotification boolean. Relying on notifyData not being NULL was not information to know whether to call NPP_URLNotify or not.
1045 - added isTerminated boolean because determining whether or not stream.ndata is NULL is not enough to know if the stream has been cancelled.
1046 * Plugins.subproj/WebBaseNetscapePluginStream.m:
1047 (+[WebBaseNetscapePluginStream reasonForError:]): new, factored out from receivedError:
1048 (-[WebBaseNetscapePluginStream initWithRequestURL:pluginPointer:notifyData:sendNotification:]): new
1049 (-[WebBaseNetscapePluginStream dealloc]): release new ivars
1050 (-[WebBaseNetscapePluginStream finalize]): added assert
1051 (-[WebBaseNetscapePluginStream setRequestURL:]): new
1052 (-[WebBaseNetscapePluginStream setResponseURL:]): new
1053 (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:]): renamed, use responseURL as it basically did before
1054 (-[WebBaseNetscapePluginStream startStreamWithResponse:]): call renamed method
1055 (-[WebBaseNetscapePluginStream destroyStream]):
1056 - do nothing if terminated
1057 - call NPP_StreamAsFile and NPP_DestroyStream if stream.ndata is not NULL
1058 - call NPP_URLNotify if sendNotification is YES regardless of value of notifyData
1059 (-[WebBaseNetscapePluginStream receivedError:]): call reasonForError
1060 (-[WebBaseNetscapePluginStream deliverData]): use renamed ivar
1061 * Plugins.subproj/WebBaseNetscapePluginView.h:
1062 - added observingFrameLoadNotification boolean
1063 - renamed dictionary ivar to pendingFrameLoads which has WebFrame keys and WebPluginRequest values
1064 * Plugins.subproj/WebBaseNetscapePluginView.m:
1065 (-[WebBaseNetscapePluginView addFrameLoadObserver]): new
1066 (-[WebBaseNetscapePluginView removeFrameLoadObserver]): new
1067 (-[WebBaseNetscapePluginView stop]): call removeFrameLoadObserver
1068 (-[WebBaseNetscapePluginView initWithFrame:]): use renamed pendingFrameLoads ivar
1069 (-[WebBaseNetscapePluginView dealloc]): ditto
1070 (-[WebBaseNetscapePluginView requestWithURLCString:]): set referrer on the request just as IE does
1071 (-[WebBaseNetscapePluginView evaluateJavaScriptPluginRequest:]):
1072 - call NPP_URLNotify depending of value of sendNotification
1073 - call new init method on WebBaseNetscapePluginStream rather then setting variables individually
1074 (-[WebBaseNetscapePluginView webFrame:didFinishLoadWithReason:]): new, calls NPP_URLNotify at the right time with the right value
1075 (-[WebBaseNetscapePluginView webFrame:didFinishLoadWithError:]): new, delegate method called from WebFrame
1076 (-[WebBaseNetscapePluginView loadPluginRequest:]): call addFrameLoadObserver
1077 (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]): take new sendNotification parameter and pass it
1078 (-[WebBaseNetscapePluginView getURLNotify:target:notifyData:]): pass YES for sendNotification
1079 (-[WebBaseNetscapePluginView getURL:target:]): pass NO for sendNotification
1080 (-[WebBaseNetscapePluginView _postURL:target:len:buf:file:notifyData:sendNotification:allowHeaders:]): take new sendNotification parameter and pass it
1081 (-[WebBaseNetscapePluginView postURLNotify:target:len:buf:file:notifyData:]): pass YES for sendNotification
1082 (-[WebBaseNetscapePluginView postURL:target:len:buf:file:]): pass NO for sendNotification
1083 (-[WebPluginRequest initWithRequest:frameName:notifyData:sendNotification:]): take new sendNotification parameter
1084 (-[WebPluginRequest sendNotification]): new
1085 * Plugins.subproj/WebBaseNetscapePluginViewPrivate.h:
1086 * Plugins.subproj/WebNetscapePluginEmbeddedView.m:
1087 (-[WebNetscapePluginEmbeddedView didStart]): set referrer on the request just as IE does
1088 * Plugins.subproj/WebNetscapePluginRepresentation.m:
1089 (-[WebNetscapePluginRepresentation receivedData:withDataSource:]): set the request URL on the stream
1090 * Plugins.subproj/WebNetscapePluginStream.h:
1091 * Plugins.subproj/WebNetscapePluginStream.m:
1092 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]): take new sendNotification parameter and pass it
1093 (-[WebNetscapePluginStream dealloc]): use renamed ivar
1094 (-[WebNetscapePluginStream start]): ditto
1095 * WebView.subproj/WebFrame.m:
1096 (-[WebFrame _setState:]): removed notification posting code. This was only used by WebBaseNetscapePluginView and it was the wrong notification to send.
1097 (-[WebFrame _checkLoadCompleteForThisFrame]): call internal load delegate to tell it that the load has finished
1098 (-[WebFrame _loadItem:withLoadType:]): ditto
1099 (-[WebFrame _continueFragmentScrollAfterNavigationPolicy:formState:]): ditto
1100 (-[WebFrame _setInternalLoadDelegate:]): new
1101 (-[WebFrame _internalLoadDelegate]): new
1102 * WebView.subproj/WebFrameInternal.h:
1103 * WebView.subproj/WebFramePrivate.h:
1105 2004-10-04 Chris Blumenberg <cblu@apple.com>
1107 Fixed: <rdar://problem/3758113> REGRESSION: Macromedia ColdFusion page doesn't show main content
1109 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.
1113 * Plugins.subproj/WebBaseNetscapePluginView.m:
1114 (-[NSData _web_locationAfterFirstBlankLine]): looks for 2 CRLF's, not for 2 LF's
1116 2004-10-04 Darin Adler <darin@apple.com>
1120 - fixed a potential storage leak when we turn on CGImageRef image rendering
1122 * WebCoreSupport.subproj/WebImageRenderer.m: (-[WebImageRenderer dealloc]): Fix potential storage leak
1123 by adding [super dealloc], but leak was not real yet because the code is commented out.
1125 - make paste style work with color as part of fix to <rdar://problem/3814237> REGRESSION (Mail):
1126 Copy/paste style does not set color in Mail compose window
1128 * WebView.subproj/WebHTMLView.m:
1129 (-[WebHTMLView _selectionFontAttributes]): Change structure so it's easy to add more attributes.
1130 For now I haven't added any yet.
1131 (-[WebHTMLView _colorAsString:]): Moved this earlier in the file.
1132 (-[WebHTMLView _shadowAsString:]): Ditto.
1133 (-[WebHTMLView _styleFromFontAttributes:]): Add background color, foreground color, and text shadow.
1135 2004-09-30 Richard Williamson <rjw@apple.com>
1137 Fixed <rdar://problem/3821215> NPN hasMethod and hasProperty functions should take NPObjects, not NPClass
1139 Also changed dashboard regions dictionary to use "control"
1140 for scroller region label, instead of "scroller, per
1145 * Plugins.subproj/npruntime.h:
1146 * WebView.subproj/WebView.m:
1147 (-[WebView _addScrollerDashboardRegions:from:]):
1149 2004-09-30 Chris Blumenberg <cblu@apple.com>
1151 Fixed: <rdar://problem/3498680> switching back and forth between tabs stops calling anything in a plug-in
1155 * Plugins.subproj/WebBaseNetscapePluginView.m:
1156 (-[WebBaseNetscapePluginView sendEvent:]): call setWindowIfNecessary because the window may have changed
1157 (-[WebBaseNetscapePluginView updateAndSetWindow]): new
1158 (-[WebBaseNetscapePluginView setWindowIfNecessary]): was setWindow, this method now just sets the window
1159 (-[WebBaseNetscapePluginView start]): call updateAndSetWindow
1160 (-[WebBaseNetscapePluginView viewDidMoveToWindow]): ditto
1161 (-[WebBaseNetscapePluginView viewHasMoved:]): ditto
1163 2004-09-30 Chris Blumenberg <cblu@apple.com>
1165 Fixed: <rdar://problem/3498668> switching out of tab doesn't send loseFocusEvent to plug-in
1169 * Plugins.subproj/WebBaseNetscapePluginView.h:
1170 * Plugins.subproj/WebBaseNetscapePluginView.m:
1171 (-[WebBaseNetscapePluginView setHasFocus:]): new, sends events to plug-in
1172 (-[WebBaseNetscapePluginView becomeFirstResponder]): call setHasFocus
1173 (-[WebBaseNetscapePluginView resignFirstResponder]): ditto
1174 (-[WebBaseNetscapePluginView viewWillMoveToWindow:]): ditto
1176 2004-09-30 Chris Blumenberg <cblu@apple.com>
1179 Assertion failure when loading standalone netscape plug-in content.
1180 Document loads of WebKit plug-in content should be cancelled since the plug-in does its own loading.
1184 * Misc.subproj/WebKitErrors.m: removed deprecated method
1185 * Misc.subproj/WebKitErrorsPrivate.h:
1186 * Plugins.subproj/WebNetscapePluginDocumentView.m:
1187 (-[WebNetscapePluginDocumentView setDataSource:]): fixed the assertion statement
1188 * Plugins.subproj/WebPluginDocumentView.h:
1189 * Plugins.subproj/WebPluginDocumentView.m:
1190 (-[WebPluginDocumentView dealloc]): remove retained plug-in
1191 (-[WebPluginDocumentView setDataSource:]): retain the plug-in, cancel the laod
1193 2004-09-29 Chris Blumenberg <cblu@apple.com>
1196 <rdar://problem/3763832> Safari-155: Non-Embeded movies fail to open in Cocoa QT plug-in
1197 <rdar://problem/3820517> "*** -[WebPluginPackage NPP_New]: selector not recognized [self = 0x5552c10]"
1201 * History.subproj/WebHistoryItem.m:
1202 * Misc.subproj/WebNSViewExtras.h:
1203 * Misc.subproj/WebNSViewExtras.m:
1204 (-[NSView _web_firstResponderCausesFocusDisplay]):
1205 (-[NSView _webView]):
1207 (-[NSView _bridge]):
1208 (-[NSView _dataSource]):
1209 * Plugins.subproj/WebBasePluginPackage.h:
1210 * Plugins.subproj/WebBasePluginPackage.m:
1211 (-[WebBasePluginPackage hash]):
1212 (-[WebBasePluginPackage isQuickTimePlugIn]):
1213 * Plugins.subproj/WebNetscapePluginDocumentView.m:
1214 (-[WebNetscapePluginDocumentView setDataSource:]):
1215 * Plugins.subproj/WebNetscapePluginRepresentation.m:
1216 * Plugins.subproj/WebPluginController.h:
1217 * Plugins.subproj/WebPluginController.m:
1218 (-[WebPluginController initWithDocumentView:]):
1219 (-[WebPluginController addPlugin:]):
1220 (-[WebPluginController destroyAllPlugins]):
1221 (-[WebPluginController webPlugInContainerLoadRequest:inFrame:]):
1222 (-[WebPluginController webPlugInContainerShowStatus:]):
1223 (-[WebPluginController webPlugInContainerSelectionColor]):
1224 (-[WebPluginController webFrame]):
1225 * Plugins.subproj/WebPluginDatabase.h:
1226 * Plugins.subproj/WebPluginDatabase.m:
1227 (-[WebPluginDatabase pluginForKey:withEnumeratorSelector:]):
1228 (-[WebPluginDatabase refresh]):
1229 (WebPluginDocumentView::while):
1230 * Plugins.subproj/WebPluginDocumentView.h: Added.
1231 * Plugins.subproj/WebPluginDocumentView.m: Added.
1232 (-[WebPluginDocumentView initWithFrame:]):
1233 (-[WebPluginDocumentView dealloc]):
1234 (-[WebPluginDocumentView drawRect:]):
1235 (-[WebPluginDocumentView setDataSource:]):
1236 (-[WebPluginDocumentView setNeedsLayout:]):
1237 (-[WebPluginDocumentView layout]):
1238 (-[WebPluginDocumentView currentWindow]):
1239 (-[WebPluginDocumentView viewWillMoveToWindow:]):
1240 (-[WebPluginDocumentView viewDidMoveToWindow]):
1241 (-[WebPluginDocumentView viewWillMoveToHostWindow:]):
1242 (-[WebPluginDocumentView viewDidMoveToHostWindow]):
1243 (-[WebPluginDocumentView receivedData:withDataSource:]):
1244 (-[WebPluginDocumentView receivedError:withDataSource:]):
1245 (-[WebPluginDocumentView finishedLoadingWithDataSource:]):
1246 (-[WebPluginDocumentView canProvideDocumentSource]):
1247 (-[WebPluginDocumentView documentSource]):
1248 (-[WebPluginDocumentView title]):
1249 * Plugins.subproj/npapi.m:
1250 (NPN_ReleaseVariantValue):
1251 (NPN_GetStringIdentifier):
1252 (NPN_GetStringIdentifiers):
1253 (NPN_GetIntIdentifier):
1254 (NPN_IdentifierIsString):
1255 (NPN_UTF8FromIdentifier):
1256 (NPN_IntFromIdentifier):
1259 (NPN_ReleaseObject):
1261 (NPN_InvokeDefault):
1265 (NPN_RemoveProperty):
1270 * WebCoreSupport.subproj/WebBridge.m:
1271 (-[WebBridge frameRequiredForMIMEType:URL:]):
1272 * WebCoreSupport.subproj/WebViewFactory.m:
1274 * WebKit.pbproj/project.pbxproj:
1275 * WebView.subproj/WebDebugDOMNode.m:
1276 * WebView.subproj/WebDocumentInternal.h:
1277 * WebView.subproj/WebHTMLView.m:
1278 (-[WebHTMLView initWithFrame:]):
1279 * WebView.subproj/WebHTMLViewPrivate.h:
1280 * WebView.subproj/WebImageRepresentation.h:
1281 * WebView.subproj/WebRenderNode.m:
1282 * WebView.subproj/WebView.m:
1284 2004-09-29 Richard Williamson <rjw@apple.com>
1286 Fixed <rdar://problem/3779998> bringing window to front or sending to back does not send focus/blur events to JavaScript window object
1288 The fix has two parts, 1) make onblur and onfocus work for windows,
1289 and 2), allow the dashboard to override WebKit's special key/non-key
1294 * Plugins.subproj/WebBaseNetscapePluginView.m:
1295 (-[WebBaseNetscapePluginView restartNullEvents]):
1296 * WebView.subproj/WebHTMLView.m:
1297 (-[WebHTMLView addMouseMovedObserver]):
1298 (-[WebHTMLView removeMouseMovedObserver]):
1299 * WebView.subproj/WebView.m:
1300 (-[WebView _dashboardBehavior:]):
1301 * WebView.subproj/WebViewInternal.h:
1302 * WebView.subproj/WebViewPrivate.h:
1304 2004-09-29 Maciej Stachowiak <mjs@apple.com>
1308 - consolidated OS version checks into prefix header
1310 * Misc.subproj/WebFileDatabase.m:
1311 (-[WebFileDatabase _createLRUList:]):
1312 (+[WebFileDatabase _syncLoop:]):
1313 * Misc.subproj/WebKitErrors.m:
1315 * Misc.subproj/WebNSObjectExtras.h:
1316 (WebNSRetainCFRelease):
1317 * Misc.subproj/WebNSPasteboardExtras.m:
1318 (-[NSPasteboard _web_declareAndWriteDragImage:URL:title:archive:source:]):
1319 * Misc.subproj/WebUnicode.m:
1320 (_unicodeDirection):
1321 * WebCoreSupport.subproj/WebImageData.h:
1322 * WebCoreSupport.subproj/WebImageRenderer.h:
1323 * WebCoreSupport.subproj/WebKeyGenerator.h:
1324 * WebCoreSupport.subproj/WebNewKeyGeneration.c:
1326 * WebView.subproj/WebDataSource.m:
1327 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
1328 (-[WebDataSource isLoading]):
1329 * WebView.subproj/WebFrameView.m:
1330 (+[WebFrameView _viewTypesAllowImageTypeOmission:]):
1331 * WebView.subproj/WebHTMLView.m:
1332 * WebView.subproj/WebPDFRepresentation.h:
1333 * WebView.subproj/WebPDFRepresentation.m:
1334 * WebView.subproj/WebPDFView.h:
1335 * WebView.subproj/WebPDFView.m:
1337 2004-09-29 Ken Kocienda <kocienda@apple.com>
1343 <rdar://problem/3818296> REGRESSION (Mail): centerSelectionInVisibleArea does not work correctly
1345 * WebView.subproj/WebHTMLView.m:
1346 (-[WebHTMLView centerSelectionInVisibleArea:]): Now calls new centerSelectionInVisibleArea
1347 bridge function instead of ensureCaretVisible. Now handles caret selections and range
1348 selections correctly.
1350 2004-09-28 Chris Blumenberg <cblu@apple.com>
1352 Added timing code so that Doug can time RTF conversion.
1354 * WebView.subproj/WebHTMLView.m:
1355 (-[WebHTMLView writeSelectionWithPasteboardTypes:toPasteboard:]):
1356 (-[WebHTMLView _attributeStringFromDOMRange:]):
1358 2004-09-28 Richard Williamson <rjw@apple.com>
1360 <rdar://problem/3817421> add getter for dashboard regions (debugging)
1362 <rdar://problem/3817417> NSScrollView need autoregions for dashboard
1367 * WebCoreSupport.subproj/WebBridge.m:
1368 (-[WebBridge dashboardRegionsChanged:]):
1369 * WebView.subproj/WebView.m:
1370 (-[WebView _setInitiatedDrag:]):
1371 (-[WebView _addScrollerDashboardRegions:from:]):
1372 (-[WebView _addScrollerDashboardRegions:]):
1373 (-[WebView _dashboardRegions]):
1374 * WebView.subproj/WebViewPrivate.h:
1376 2004-09-27 John Sullivan <sullivan@apple.com>
1378 - fixed <rdar://problem/3814705> 8A266: Safari authentication dialog "remember password" text should match Mail
1380 * Panels.subproj/English.lproj/WebAuthenticationPanel.nib:
1381 changed "Remember this password" to "Remember this password in my keychain";
1382 this will need to go through CCC for this week's build.
1384 2004-09-27 Chris Blumenberg <cblu@apple.com>
1386 Fixed: <rdar://problem/3594754> change null event interval from 20 ms to 10 ms to match speed on Windows
1390 * Plugins.subproj/WebBaseNetscapePluginView.m:
1392 2004-09-27 Chris Blumenberg <cblu@apple.com>
1394 Fixed: <rdar://problem/3502138> text files don't remember scroll position when going back or reloading
1398 * WebView.subproj/WebTextView.m:
1399 (-[WebTextView layout]): implemented, call sizeToFit, without this scrollPoint: won't work
1401 2004-09-27 John Sullivan <sullivan@apple.com>
1405 - WebKit part of fix for <rdar://problem/3734466> ER: Support standard editing keystrokes
1406 like Cmd-B while editing rich text
1408 * WebView.subproj/WebHTMLView.m:
1409 (-[WebHTMLView _toggleBold]):
1410 new method, toggles font-weight from "bold" to "normal"
1411 (-[WebHTMLView _toggleItalic]):
1412 new method, toggles font-style from "italic" to "normal"
1413 (-[WebHTMLView _handleStyleKeyEquivalent:]):
1414 new method, if the new preference is set and we're in an editable state, check for standard
1415 key equivalents for toggling styles (just command-B and command-I for now).
1416 (-[WebHTMLView performKeyEquivalent:]):
1417 Moved in file, now calls _handleStyleKeyEquivalent:
1419 * WebView.subproj/WebPreferenceKeysPrivate.h:
1420 new preference key WebKitRespectStandardStyleKeyEquivalentsPreferenceKey
1421 * WebView.subproj/WebPreferences.m:
1422 (+[WebPreferences initialize]):
1423 initial value of WebKitRespectStandardStyleKeyEquivalentsPreferenceKey is NO (maybe we'll
1424 change our minds about this, but this is more guaranteed to be backward-compatible)
1425 (-[WebPreferences respectStandardStyleKeyEquivalents]):
1426 read WebKitRespectStandardStyleKeyEquivalentsPreferenceKey
1427 (-[WebPreferences setRespectStandardStyleKeyEquivalents:]):
1428 write WebKitRespectStandardStyleKeyEquivalentsPreferenceKey
1430 * WebView.subproj/WebPreferencesPrivate.h:
1431 declare getter and setter
1433 * English.lproj/StringsNotToBeLocalized.txt:
1434 updated for these and other recent changes
1436 2004-09-27 Chris Blumenberg <cblu@apple.com>
1438 Fixed: <rdar://problem/3806649> assertion failure after control-click of webcam
1442 * WebView.subproj/WebDefaultContextMenuDelegate.m:
1443 (-[WebDefaultUIDelegate contextMenuItemsForElement:]): don't provide "Copy Image" if the image is not fully loaded
1445 2004-09-27 Chris Blumenberg <cblu@apple.com>
1447 Fixed: <rdar://problem/3814810> REGRESSION (125-164): Exception adding nil to dictionary in dragging code
1451 * WebView.subproj/WebHTMLView.m:
1452 (-[WebHTMLView _setMouseDownEvent:]): new
1453 (-[WebHTMLView acceptsFirstMouse:]): call _setMouseDownEvent
1454 (-[WebHTMLView shouldDelayWindowOrderingForEvent:]): ditto
1455 (-[WebHTMLView mouseDown:]): ditto
1456 (-[WebHTMLView _delegateDragSourceActionMask]): removed temp fix, assert that the mouse event is not nil
1458 2004-09-27 Darin Adler <darin@apple.com>
1460 * WebKit.pbproj/project.pbxproj: Added WebDashboardRegion.h as a private header.
1462 2004-09-24 Chris Blumenberg <cblu@apple.com>
1466 * WebView.subproj/WebHTMLView.m:
1467 (-[WebHTMLView _selectedArchive]): added timing code for copying markup
1471 2004-09-24 Chris Blumenberg <cblu@apple.com>
1473 Temp fix for: <rdar://problem/3814810> REGRESSION (125-164): Exception adding nil to dictionary in dragging code
1477 * WebView.subproj/WebHTMLView.m:
1478 (-[WebHTMLView _delegateDragSourceActionMask]): return none if the mouse down event is nil
1480 2004-09-24 Ken Kocienda <kocienda@apple.com>
1486 <rdar://problem/3813917> REGRESSION (125-163): The font panel will change the font of any web page
1488 We were doing a laughably bad job at preventing edits in documents that were not editable.
1489 This change fixes the specific case of the bug mentioned above, and makes an attempt to
1490 fix similar bugs by checking for whether the view is in editing mode before making edits.
1492 * WebView.subproj/WebHTMLView.m:
1493 (-[WebHTMLView _canEdit]): Renamed from _canType. Used in many more places in the code now.
1494 (-[WebHTMLView _isMoveDrag]): Change around code to make the meaning more clear. This one
1495 was actually performing a correct check before.
1496 (-[WebHTMLView keyDown:]): Renamed _canType to _canEdit.
1497 (-[WebHTMLView paste:]): Don't beep if can't paste. This matches AppKit. Any paste-related beeps
1498 will come from failure to handle key equivalent. Menu validation will kick in to dim menu.
1499 (-[WebHTMLView _applyStyleToSelection:]): Bail if !_canEdit.
1500 (-[WebHTMLView pasteAsPlainText:]): Ditto.
1501 (-[WebHTMLView _alignSelectionUsingCSSValue:]): Ditto.
1502 (-[WebHTMLView insertNewline:]): Ditto.
1503 (-[WebHTMLView insertParagraphSeparator:]): Ditto.
1504 (-[WebHTMLView _changeWordCaseWithSelector:]): Ditto.
1505 (-[WebHTMLView _deleteWithDirection:granularity:killRing:]): Ditto.
1506 (-[WebHTMLView complete:]): Ditto.
1507 (-[WebHTMLView _changeSpellingToWord:]): Ditto. Some code rearranging to eliminate bridge local variable.
1508 (-[WebHTMLView ignoreSpelling:]): Ditto.
1509 (-[WebHTMLView yank:]): Bail if !_canEdit.
1510 (-[WebHTMLView yankAndSelect:]): Ditto.
1511 (-[WebHTMLView deleteToMark:]): Ditto.
1512 (-[WebHTMLView swapWithMark:]): Ditto.
1513 (-[WebHTMLView transpose:]): Ditto.
1514 (-[WebHTMLView _updateFontPanel]): Ditto. Some code rearranging to eliminate bridge local variable.
1515 (-[WebHTMLView setMarkedText:selectedRange:]): Bail if !_canEdit.
1516 (-[WebHTMLView _insertText:selectInsertedText:]): Ditto. Some code rearranging to eliminate bridge local variable.
1517 * WebView.subproj/WebHTMLViewPrivate.h: Renamed _canType to _canEdit.
1519 2004-09-24 Ken Kocienda <kocienda@apple.com>
1523 * WebCoreSupport.subproj/WebDashboardRegion.h: Check in file copied from WebCore.
1525 2004-09-23 Maciej Stachowiak <mjs@apple.com>
1529 <rdar://problem/3685235> REGRESSION (Mail): links are not properly editable
1531 * WebView.subproj/WebDefaultUIDelegate.m: By default, don't allow
1532 link dragging if the element under the mouse pointer is
1533 editable. This way, you can drag-select starting inside a link.
1535 2004-09-23 John Sullivan <sullivan@apple.com>
1539 - WebKit part of fix for <rdar://problem/3415264>
1540 Default encoding should initially be set to current system encoding
1542 * WebView.subproj/WebPreferences.m:
1543 (-[WebPreferences _setInitialDefaultTextEncodingToSystemEncoding]):
1544 new SPI that sets the initial value of the default text encoding to
1545 be the system encoding, with a special-case conversion of MacRoman->Latin1.
1546 This is not done automatically for WebKit clients for fear of breaking them.
1548 * WebView.subproj/WebPreferencesPrivate.h:
1551 2004-09-23 Darin Adler <darin@apple.com>
1555 - fixed <rdar://problem/3811584> REGRESSION (85-125): iframe.document undefined in function called from button onclick; works from img onclick
1557 The fix is to not let "defers callbacks" have any effect on loading "about:blank".
1558 I also had to fix one bug in WebCore that could then be reproduced by going to "about:blank"
1559 while using a button.
1561 * WebView.subproj/WebMainResourceClient.m:
1562 (-[WebMainResourceClient connection:didReceiveResponse:]): Loosen asserts to allow this callback
1563 for the specific case of "about:blank" even if the defers callbacks flag is true.
1564 (-[WebMainResourceClient connectionDidFinishLoading:]): Ditto.
1565 (-[WebMainResourceClient loadWithRequestNow:]): Added NSURLRequest return value. Loosened asserts
1566 as above. Changed code to return a new request if we get a new request back that is not empty
1567 when the defers callbacks flag is true.
1568 (-[WebMainResourceClient loadWithRequest:]): If the defers callbacks flag is set, but the
1569 URL is one that gives us an empty document, then do the work right away, don't defer it.
1571 2004-09-23 Darin Adler <darin@apple.com>
1573 - fixed B&I builds by checking in generated file
1575 * WebCoreSupport.subproj/WebDashboardRegion.h: Added.
1577 2004-09-22 Richard Williamson <rjw@apple.com>
1579 Pass dashboard regions to UI delegate.
1583 * WebCoreSupport.subproj/WebBridge.m:
1584 (-[WebBridge dashboardRegionsChanged:]):
1585 * WebView.subproj/WebUIDelegatePrivate.h:
1586 * copy-webcore-files-to-webkit:
1588 2004-09-22 Chris Blumenberg <cblu@apple.com>
1590 Fixed build that I just broke.
1592 * WebView.subproj/WebHTMLView.m:
1593 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]):
1595 2004-09-22 Chris Blumenberg <cblu@apple.com>
1597 <rdar://problem/3812091> REGRESSION (Mail): double-clicked word is not smart inserted on drag
1601 * WebView.subproj/WebHTMLView.m:
1602 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): pass value for smartMove
1604 2004-09-22 Chris Blumenberg <cblu@apple.com>
1607 <rdar://problem/3667301> Frequent crashes in Mail when viewing HTML messages (CFURLGetByteRangeForComponent)
1608 <rdar://problem/3810354> WebResourceLoadDelegate can't refuse requests by returning nil; code asserts/crashes instead
1612 * WebCoreSupport.subproj/WebSubresourceClient.m:
1613 (+[WebSubresourceClient startLoadingResource:withRequest:customHeaders:referrer:forDataSource:]): removed broken code that handled loadWithRequest returning NO
1614 * WebView.subproj/WebBaseResourceHandleDelegate.m:
1615 (-[WebBaseResourceHandleDelegate loadWithRequest:]): if nil is returned from the client for willSendRequest, report the cancelled error and return
1617 2004-09-22 Ken Kocienda <kocienda@apple.com>
1621 * WebView.subproj/WebFrameView.m:
1622 (-[WebFrameView _webcore_effectiveFirstResponder]): New function to yield the correct responder
1623 to check for firstResponder-ness before calling makeFirstResonder. This helps to prevent
1624 unwanted firstResponder switching.
1625 * WebView.subproj/WebView.m:
1626 (-[WebView _webcore_effectiveFirstResponder]): Ditto.
1628 2004-09-21 Chris Blumenberg <cblu@apple.com
1631 <rdar://problem/3735071> REGRESSION (Mail): WebCore Editing must do smart paste
1632 <rdar://problem/3799163> REGRESSION (Mail): Deleting a word doesn't delete whitespace
1636 * WebView.subproj/WebDataSource.m:
1637 (-[WebDataSource _replaceSelectionWithArchive:selectReplacement:]): pass NO for smartReplace
1638 * WebView.subproj/WebHTMLView.m:
1639 (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]): pass parameter for smartReplace using _canSmartReplaceWithPasteboard
1640 (-[WebHTMLView _changeSpellingFromMenu:]): pass NO for smartReplace
1641 (-[WebHTMLView pasteboardTypesForSelection]): include WebSmartPastePboardType when _canSmartCopyOrDelete return YES
1642 (-[WebHTMLView writeSelectionWithPasteboardTypes:toPasteboard:]): ditto
1643 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): pass parameter for smartReplace using _canSmartReplaceWithPasteboard
1644 (-[WebHTMLView delete:]): call _deleteSelection
1645 (-[WebHTMLView cut:]): don't call delegate twice, call _deleteRange to delete
1646 (-[WebHTMLView pasteAsPlainText:]): pass parameter for smartReplace using _canSmartReplaceWithPasteboard
1647 (-[WebHTMLView _changeWordCaseWithSelector:]): pass NO for smartReplace
1648 (-[WebHTMLView deleteBackward:]): call _deleteSelection when there is a selected range
1649 (-[WebHTMLView _changeSpellingToWord:]): pass NO for smartReplace
1650 (-[WebHTMLView deleteToMark:]): pass NO for smartDeleteOK
1651 (-[WebHTMLView transpose:]): pass NO for smartReplace
1652 (-[WebHTMLView _shouldDeleteRange:]): moved
1653 (-[WebHTMLView _deleteRange:preflight:killRing:prepend:smartDeleteOK:]): moved, handle smartDelete
1654 (-[WebHTMLView _deleteWithDirection:granularity:killRing:]): moved
1655 (-[WebHTMLView _deleteSelection]): new
1656 (-[WebHTMLView _canSmartReplaceWithPasteboard]): new
1657 (-[WebHTMLView _canSmartCopyOrDelete]): new
1658 (-[WebHTMLView setMarkedText:selectedRange:]): pass NO for smartReplace
1659 (-[WebHTMLView _discardMarkedText]): call _deleteSelection
1660 (-[WebTextCompleteController _insertMatch:]): pass NO for smartReplace
1661 (-[WebTextCompleteController endRevertingChange:moveLeft:]): pass NO for smartReplace
1662 * WebView.subproj/WebHTMLViewInternal.h:
1663 * WebView.subproj/WebView.m:
1664 (-[WebView _commonInitializationWithFrameName:groupName:]): set smartInsertDeleteEnabled to YES
1665 (-[WebView replaceSelectionWithNode:]): pass NO for smartReplace
1666 (-[WebView replaceSelectionWithText:]): pass NO for smartReplace
1667 (-[WebView replaceSelectionWithMarkupString:]): pass NO for smartReplace
1668 (-[WebView deleteSelection]): call _deleteSelection on WebHTMLView
1670 2004-09-21 John Sullivan <sullivan@apple.com>
1674 - WebKit part of fix for <rdar://problem/3618274> REGRESSION (125-135):
1675 Option-tab doesn't always work as expected
1677 * WebCoreSupport.subproj/WebBridge.m:
1678 (-[WebBridge _retrieveKeyboardUIModeFromPreferences:]):
1679 Don't set WebCoreKeyboardAccessFull when setting WebCoreKeyboardAccessTabsToLinks
1680 after all; these need to be tested independently to get the option-tab behavior
1683 2004-09-21 John Sullivan <sullivan@apple.com>
1685 * WebView.subproj/WebHTMLView.m:
1686 (-[WebHTMLView doCommandBySelector:]):
1687 Commented out part of previous change; it breaks Mail editing until Mail
1690 2004-09-21 John Sullivan <sullivan@apple.com>
1694 * WebView.subproj/WebHTMLView.m:
1695 (-[WebHTMLView doCommandBySelector:]):
1696 Fix build failure from previous checkin, d'oh! Didn't set up webview variable.
1698 2004-09-21 John Sullivan <sullivan@apple.com>
1702 - fixed <rdar://problem/3809477> WebHTMLView needs to pass doCommandBySelector through delegate
1704 * WebView.subproj/WebHTMLView.m:
1705 (-[WebHTMLView doCommandBySelector:]):
1706 Call through to editing delegate. If editing delegate returns YES, don't call super.
1708 * WebView.subproj/WebDefaultEditingDelegate.m:
1709 (-[WebDefaultEditingDelegate webView:doCommandBySelector:]):
1710 default implementation (which was never called) was returning YES, but it should
1711 return NO to signal that it didn't handle the selector.
1713 2004-09-21 Chris Blumenberg <cblu@apple.com>
1715 Fixed: <rdar://problem/3647229> Safari does not play inline Windows Media Content on some sites (miggy.net and ministryofsound.com)
1719 * Plugins.subproj/WebBaseNetscapePluginView.m:
1720 * Plugins.subproj/WebNetscapePluginEmbeddedView.m:
1721 (-[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
1723 2004-09-20 Chris Blumenberg <cblu@apple.com>
1725 Fixed: <rdar://problem/3781290> REGRESSION (Mail): Crash in ReplaceSelectionCommandImpl attaching file to new message
1727 Reviewed by kocienda.
1729 * WebView.subproj/WebView.m:
1730 (-[WebView setEditable:]): call updateSelectionFromEmpty on the bridge if there is no selection
1732 2004-09-20 Chris Blumenberg <cblu@apple.com>
1734 Changes to implement renamed bridge methods.
1739 * DOM.subproj/WebDOMOperations.m:
1740 (-[DOMDocument URLWithAttributeString:]): call renamed bridge method
1741 * WebCoreSupport.subproj/WebBridge.m:
1742 (-[WebBridge pluginViewWithPackage:attributeNames:attributeValues:baseURL:]): take 2 parameter arrays rather than 1 which will have to be parsed
1743 (-[WebBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:]): ditto
1745 2004-09-20 Darin Adler <darin@apple.com>
1749 * WebView.subproj/WebFramePrivate.h: Added back.
1750 * WebView.subproj/WebFrameViewPrivate.h: Removed.
1752 2004-09-20 Darin Adler <darin@apple.com>
1756 - fixed <rdar://problem/3655360> REGRESSION (Mail): Ctrl-V emacs key binding, -pageDown: method, unimplemented (and pageUp, and selection-modifying versions)
1757 - fixed <rdar://problem/3792138> REGRESSION (Mail): Spell checker doesn't check current selected word
1759 * WebView.subproj/WebFrameViewInternal.h: Moved WebFrameViewPrivate inside the WebFrameView.m file.
1760 Removed a bunch of methods that don't need to be seen in other files, and added _verticalPageScrollDistance.
1761 * WebView.subproj/WebFrameViewPrivate.h: Removed. Renamed to WebFrameViewInternal.h.
1762 * WebView.subproj/WebFrameView.m:
1763 (-[WebFrameView _verticalKeyboardScrollDistance]): Move in the file because of internal vs. private.
1764 (-[WebFrameView _shouldDrawBorder]): Ditto.
1765 (-[WebFrameView _tile]): Ditto.
1766 (-[WebFrameView _verticalPageScrollDistance]): Added. Separate method so it can be called
1767 by the code to implement pageDown:.
1768 (-[WebFrameView _drawBorder]): Move in the file because of internal vs. private.
1769 (-[WebFrameView _goBack]): Ditto.
1770 (-[WebFrameView _goForward]): Ditto.
1771 (-[WebFrameView _scrollVerticallyBy:]): Ditto.
1772 (-[WebFrameView _scrollHorizontallyBy:]): Ditto.
1773 (-[WebFrameView _horizontalKeyboardScrollDistance]): Ditto.
1774 (-[WebFrameView _horizontalPageScrollDistance]): Added. Separate method for consistency with
1775 vertical method above.
1776 (-[WebFrameView _pageVertically:]): Moved and changed to use _verticalPageScrollDistance.
1777 (-[WebFrameView _pageHorizontally:]): Moved and changed to use _horizontalPageScrollDistance.
1778 (-[WebFrameView _scrollLineVertically:]): Move in the file because of internal vs. private.
1779 (-[WebFrameView _scrollLineHorizontally:]): Ditto.
1780 (-[WebFrameView scrollPageUp:]): Ditto.
1781 (-[WebFrameView scrollPageDown:]): Ditto.
1782 (-[WebFrameView scrollLineUp:]): Ditto.
1783 (-[WebFrameView scrollLineDown:]): Ditto.
1784 (-[WebFrameView _firstResponderIsControl]): Ditto.
1785 (-[WebFrameView keyDown:]): Changed to eliminate _pageLeft, _lineLeft, _pageRight, and _lineRight.
1787 * WebView.subproj/WebDataSource.m: Use WebFrameView.h instead of WebFrameViewPrivate.h.
1789 * WebView.subproj/WebHTMLView.m:
1790 (-[WebHTMLView _alterCurrentSelection:verticalDistance:]): Added.
1791 (-[WebHTMLView moveToBeginningOfDocument:]): Use WebSelectToDocumentBoundary.
1792 (-[WebHTMLView moveToBeginningOfDocumentAndModifySelection:]): Ditto.
1793 (-[WebHTMLView moveToEndOfDocument:]): Ditto.
1794 (-[WebHTMLView moveToEndOfDocumentAndModifySelection:]): Ditto.
1795 (-[WebHTMLView moveParagraphBackwardAndModifySelection:]): Added.
1796 (-[WebHTMLView moveParagraphForwardAndModifySelection:]): Added.
1797 (-[WebHTMLView pageUp:]): Added.
1798 (-[WebHTMLView pageDown:]): Added.
1799 (-[WebHTMLView pageUpAndModifySelection:]): Added.
1800 (-[WebHTMLView pageDownAndModifySelection:]): Added.
1801 (-[WebHTMLView showGuessPanel:]): Changed to call advanceToNextMisspellingStartingJustBeforeSelection.
1802 This fixes the problem with spell checking.
1804 * WebView.subproj/WebImageView.m:
1805 (-[WebImageView webView]): Changed to use _web_parentWebView.
1806 (-[WebImageView menuForEvent:]): Changed to use [self webView].
1807 (-[WebImageView mouseDown:]): Ditto.
1808 (-[WebImageView mouseDragged:]): Ditto.
1809 (-[WebImageView draggedImage:endedAt:operation:]): Ditto.
1811 * WebView.subproj/WebTextView.m:
1812 (-[WebTextView _textSizeMultiplierFromWebView]): Changed to use _web_parentWebView.
1813 (-[WebTextView menuForEvent:]): Ditto.
1814 (-[WebTextView drawPageBorderWithSize:]): Ditto.
1815 (-[WebTextView knowsPageRange:]): Ditto.
1817 * Plugins.subproj/WebPluginDatabase.m: Updated filename of WebFrameViewInternal.h.
1818 * WebCoreSupport.subproj/WebBridge.m: Ditto.
1819 * WebKit.pbproj/project.pbxproj: Ditto.
1820 * WebView.subproj/WebFrame.m: Ditto.
1821 * WebView.subproj/WebView.m: Ditto.
1822 * Misc.subproj/WebNSViewExtras.m: Ditto.
1824 2004-09-20 Darin Adler <darin@apple.com>
1828 - added helper method _web_parentWebView so fewer files need to get at WebFrame private methods
1830 * Misc.subproj/WebNSViewExtras.h: Added _web_parentWebView.
1831 * Misc.subproj/WebNSViewExtras.m: (-[NSView _web_parentWebView]): Added.
1835 2004-09-17 Chris Blumenberg <cblu@apple.com>
1838 <rdar://problem/3805757> don't unnecessarily put RTFD on the pasteboard
1839 <rdar://problem/3805756> strip attachments before generating RTF
1843 * WebView.subproj/WebHTMLView.m:
1844 (-[WebHTMLView writeSelectionWithPasteboardTypes:toPasteboard:]): only put RTFD on the pasteboard if it has attachments, strip attachments when writing RTF
1846 2004-09-16 Darin Adler <darin@apple.com>
1850 - fixed <rdar://problem/3804648> 8A262: Safari crashed in -[WebView(WebPrivate) _editingDelegateForwarder] inside QuickTime Cocoa Plug-in during WebView deallocation
1852 * WebView.subproj/WebView.m: (-[WebView _editingDelegateForwarder]):
1853 Check _private for nil before dereferencing it.
1855 2004-09-16 Chris Blumenberg <cblu@apple.com>
1857 Fixed: <rdar://problem/3779150> REGRESSION: images not copied when copying HTML in Safari and pasting into TextEdit
1861 * WebView.subproj/WebHTMLView.m:
1862 (-[WebHTMLView writeSelectionWithPasteboardTypes:toPasteboard:]): use RTFDFromRange:: for RTFD
1863 * WebView.subproj/WebHTMLViewPrivate.h:
1865 2004-09-15 Darin Adler <darin@apple.com>
1869 - fixed assertion I saw using the font panel
1871 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView _colorAsString:]):
1872 Convert color space before trying to get R, G, and B components.
1874 2004-09-15 Chris Blumenberg <cblu@apple.com>
1876 Fixed: <rdar://problem/3802232> REGRESSION (Mail): WebCore Editing must do smart copy
1878 Reviewed by kocienda.
1880 * WebView.subproj/WebHTMLView.m:
1881 (-[WebHTMLView _writeSelectionToPasteboard:]): call instance method not class method to get pasteboard types since the types depends on the current selection granularity
1882 (-[WebHTMLView pasteboardTypesForSelection]): if the selection granularity is "word" include the smart pasteboard type
1883 (-[WebHTMLView writeSelectionWithPasteboardTypes:toPasteboard:]): put nil on the pasteboard for smart copy
1885 2004-09-14 Darin Adler <darin@apple.com>
1889 - fixed <rdar://problem/3788894> REGRESSION (Mail): ctrl-t emacs key binding does not work (transpose)
1890 - fixed <rdar://problem/3798946> REGRESSION (Mail): Cursor does not disappear when typing
1892 * WebView.subproj/WebHTMLView.m:
1893 (-[WebHTMLView keyDown:]): Hide cursor by calling setHiddenUntilMouseMoves:YES.
1894 (-[WebHTMLView transpose:]): Added.
1896 2004-09-14 Richard Williamson <rjw@apple.com>
1898 1. Add class parameter to object allocation function. This is somewhat redundant, given that
1899 the allocation function is in the class function vector, but people wanted to use the same
1900 allocation function for different classes.
1902 2. Renamed NPN_Class to NPN_Invoke to match the name in the function vector.
1904 3. Add support for a default function on an object. This is a feature that ActiveX supports,
1905 and will allow JavaScript code to be written that will look exactly the same for both ActiveX
1906 plugins and Netscape or WebKit plugins. There are implementations included for the 'C' and
1907 'Objective-C' bindings.
1909 There bugs are covered by
1911 <rdar://problem/3776343> Support for default functions in the JavaScript bindings
1912 <rdar://problem/3779186> NPN_Call needs to be renamed to NPN_Invoke
1913 <rdar://problem/3674754> Need to implement latest npruntime.h
1917 * Plugins.subproj/WebNetscapePluginPackage.m:
1918 (-[WebNetscapePluginPackage load]):
1919 * Plugins.subproj/WebScriptObject.h:
1920 * Plugins.subproj/npfunctions.h:
1921 * Plugins.subproj/npruntime.h:
1923 2004-09-13 Richard Williamson <rjw@apple.com>
1925 D'oh. How many times can I screw up a simple fix!
1927 * WebCoreSupport.subproj/WebTextRenderer.m:
1928 (-[WebTextRenderer initWithFont:usingPrinterFont:]):
1930 2004-09-13 Richard Williamson <rjw@apple.com>
1932 Fixed snafu from 3782533 checkin.
1936 * WebCoreSupport.subproj/WebTextRenderer.m:
1937 (-[WebTextRenderer initWithFont:usingPrinterFont:]):
1939 2004-09-12 Chris Blumenberg <cblu@apple.com>
1941 Support for: <rdar://problem/3794790> drop rate or time remaining from download status when window is too small to fit it
1945 * Misc.subproj/WebStringTruncator.h:
1946 * Misc.subproj/WebStringTruncator.m:
1947 (+[WebStringTruncator widthOfString:font:]): new
1949 2004-09-10 Richard Williamson <rjw@apple.com>
1951 Fixed <rdar://problem/3782533> CrashTracer: .1459 crashes at com.apple.WebKit: -[WebTextRenderer initWithFont:usingPrinterFont:] + 0x138
1953 We were explicitly failing when we encountered deprecated fonts.
1954 (Those with unsupported glyph packings).
1955 Deprecated fonts should only appear on a system that have
1956 stuff migrated from OS 9. Ugh, thats probably why we've never seen
1961 * WebCoreSupport.subproj/WebTextRenderer.m:
1962 (-[WebTextRenderer initWithFont:usingPrinterFont:]):
1964 2004-09-10 John Sullivan <sullivan@apple.com>
1968 - added _isFrameSet as a private method, so it can be used in WebBrowser.
1969 This is needed to merge the fix for 3123987 to SUPanNavy.
1971 * WebView.subproj/WebFrame.m:
1972 (-[WebFrame _isFrameSet]):
1975 * WebView.subproj/WebFramePrivate.h:
1978 2004-09-09 Chris Blumenberg <cblu@apple.com>
1980 Support for: <rdar://problem/3795485> debug menu item to enable RSS animation on first layout
1984 * WebCoreSupport.subproj/WebBridge.m:
1985 (-[WebBridge didFirstLayout]): new
1986 * WebView.subproj/WebDefaultFrameLoadDelegate.m:
1987 (-[WebDefaultFrameLoadDelegate webView:didFirstLayoutInFrame:]): new
1988 * WebView.subproj/WebViewPrivate.h:
1990 2004-09-09 Richard Williamson <rjw@apple.com>
1992 Alternate implementation of image rendering. Use CGImageRefs instead
1995 Mostly works, but currently disabled because of issues w/ CG.
2000 * WebCoreSupport.subproj/WebImageData.h: Added.
2001 * WebCoreSupport.subproj/WebImageData.m: Added.
2002 (-[WebImageData _commonTermination]):
2003 (-[WebImageData dealloc]):
2004 (-[WebImageData finalize]):
2005 (-[WebImageData copyWithZone:]):
2006 (-[WebImageData numberOfImages]):
2007 (-[WebImageData currentFrame]):
2008 (-[WebImageData _invalidateImages]):
2009 (-[WebImageData imageAtIndex:]):
2010 (-[WebImageData incrementalLoadWithBytes:length:complete:]):
2012 (-[WebImageData tileInRect:fromPoint:context:]):
2013 (-[WebImageData isNull]):
2014 (-[WebImageData size]):
2015 (-[WebImageData _frameDuration]):
2016 (-[WebImageData _repetitionCount]):
2017 (-[WebImageData isAnimationFinished]):
2018 (+[WebImageData stopAnimationsInView:]):
2019 (-[WebImageData addAnimatingRenderer:inView:]):
2020 (-[WebImageData removeAnimatingRenderer:]):
2021 (-[WebImageData _stopAnimation]):
2022 (-[WebImageData _nextFrame:]):
2023 (-[WebImageData animate]):
2024 * WebCoreSupport.subproj/WebImageRenderer.h:
2025 * WebCoreSupport.subproj/WebImageRenderer.m:
2026 (-[WebImageRenderer initWithMIMEType:]):
2027 (-[WebImageRenderer initWithData:MIMEType:]):
2028 (-[WebImageRenderer initWithContentsOfFile:]):
2029 (-[WebImageRenderer dealloc]):
2030 (-[WebImageRenderer copyWithZone:]):
2031 (-[WebImageRenderer retainOrCopyIfNeeded]):
2032 (-[WebImageRenderer resize:]):
2033 (-[WebImageRenderer size]):
2034 (-[WebImageRenderer MIMEType]):
2035 (-[WebImageRenderer frameCount]):
2036 (-[WebImageRenderer isNull]):
2037 (-[WebImageRenderer incrementalLoadWithBytes:length:complete:]):
2038 (-[WebImageRenderer drawImageInRect:fromRect:]):
2039 (-[WebImageRenderer drawImageInRect:fromRect:compositeOperator:context:]):
2040 (-[WebImageRenderer tileInRect:fromPoint:context:]):
2041 (-[WebImageRenderer _startOrContinueAnimationIfNecessary]):
2042 (+[WebImageRenderer stopAnimationsInView:]):
2043 (-[WebImageRenderer stopAnimation]):
2044 (-[WebImageRenderer targetAnimationRect]):
2045 (-[WebImageRenderer increaseUseCount]):
2046 (-[WebImageRenderer decreaseUseCount]):
2047 (-[WebImageRenderer flushRasterCache]):
2048 (-[WebImageRenderer imageRef]):
2049 (-[WebImageRenderer TIFFRepresentation]):
2050 (-[WebImageRenderer image]):
2051 * WebCoreSupport.subproj/WebImageRendererFactory.m:
2052 (-[WebImageRendererFactory imageRendererWithMIMEType:]):
2053 (-[WebImageRendererFactory imageRendererWithData:MIMEType:]):
2054 (-[WebImageRendererFactory imageRendererWithSize:]):
2055 (-[WebImageRendererFactory imageRendererWithName:]):
2056 * WebKit.pbproj/project.pbxproj:
2057 * WebView.subproj/WebImageView.m:
2058 (-[WebImageView image]):
2062 2004-09-09 Maciej Stachowiak <mjs@apple.com>
2064 - rolled out last two changes, they seem to cause a performance regression
2066 * WebView.subproj/WebHTMLView.m:
2067 (-[WebHTMLView firstRectForCharacterRange:]):
2069 2004-09-09 Maciej Stachowiak <mjs@apple.com>
2073 * WebView.subproj/WebHTMLView.m:
2074 (-[WebHTMLView firstRectForCharacterRange:]):
2076 2004-09-08 Maciej Stachowiak <mjs@apple.com>
2080 WebKit part of fix for:
2082 <rdar://problem/3759187> REGRESSION (Mail): implement firstRectForCharacterRange:
2084 * WebView.subproj/WebHTMLView.m:
2085 (-[WebHTMLView firstRectForCharacterRange:]): Call the appropriate new bridge method,
2086 and translate to screen coordinates.
2088 2004-09-09 Darin Adler <darin@apple.com>
2092 - fixed <rdar://problem/3790526> mark-related methods not implemented (needed for people with them in their key bindings files)
2094 * WebKit.pbproj/project.pbxproj: Update MACOSX_DEPLOYMENT_TARGET to 10.3 and add -fobjc-exceptions
2095 so we can use new exceptions.
2097 * WebView.subproj/WebHTMLView.m:
2098 (-[WebHTMLView setMark:]): Added.
2099 (unionDOMRanges): Added.
2100 (-[WebHTMLView deleteToMark:]): Added.
2101 (-[WebHTMLView selectToMark:]): Added.
2102 (-[WebHTMLView swapWithMark:]): Added.
2103 (-[WebHTMLView markedRange]): Updated for change to bridge method names.
2104 (-[WebHTMLView hasMarkedText]): Ditto.
2105 (-[WebHTMLView unmarkText]): Ditto.
2106 (-[WebHTMLView _selectMarkedText]): Ditto.
2107 (-[WebHTMLView _selectRangeInMarkedText:]): Ditto.
2108 (-[WebHTMLView setMarkedText:selectedRange:]): Ditto.
2109 (-[WebHTMLView _insertText:selectInsertedText:]): Removed check for empty string. An empty string
2110 should not be filtered out here. We need to allow inserting an empty string.
2111 (-[WebHTMLView _selectionIsInsideMarkedText]): Updated for change to bridge method names.
2112 (-[WebHTMLView _updateSelectionForInputManager]): Ditto.
2114 * WebView.subproj/WebView.m: (-[WebView searchFor:direction:caseSensitive:wrap:]):
2115 Changed to use selectionDOMRange instead of selectionStart.
2117 * WebView.subproj/WebHTMLRepresentation.h: Removed unused setSelectionFrom method.
2118 * WebView.subproj/WebHTMLRepresentation.m: Ditto.
2120 2004-09-08 John Sullivan <sullivan@apple.com>
2124 - fixed the localization aspect of:
2125 <rdar://problem/3790011> undoable operations all say "Undo" in the menu, no specific action names
2127 We now have all the strings ready for localization; we just don't actually use them yet.
2129 * English.lproj/Localizable.strings:
2130 updated for this change
2132 * WebCoreSupport.subproj/WebBridge.m:
2133 (-[WebBridge setUndoActionNamePlaceholder]):
2134 added this placeholder method whose purpose is to hold localizable strings for all the Undo
2135 action names that NSTextView uses. Later we will use some or all of these, but we can do
2136 that part after the localization freeze.
2138 2004-09-08 Chris Blumenberg <cblu@apple.com>
2140 Fixed: <rdar://problem/3778785> REGRESSION (Mail): copying from MS word and pasting into editable region leaves internal clipboard data
2142 Reviewed by kocienda.
2144 * WebView.subproj/WebHTMLView.m:
2145 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]): ignore Microsoft's header meta data
2147 2004-09-08 Chris Blumenberg <cblu@apple.com>
2149 Fixed: <rdar://problem/3792893> WebBaseResourceHandleDelegate always returns cached data for subresource loads
2153 * WebView.subproj/WebBaseResourceHandleDelegate.m:
2154 (-[WebBaseResourceHandleDelegate _canUseResourceForRequest:]): new
2155 (-[WebBaseResourceHandleDelegate loadWithRequest:]): call _canUseResourceForRequest:
2157 2004-09-08 Chris Blumenberg <cblu@apple.com>
2159 Forgot to add this in previous check-in.
2161 * English.lproj/WebViewEditingContextMenu.nib: Added.
2163 2004-09-08 Chris Blumenberg <cblu@apple.com>
2165 Fixed: <rdar://problem/3791240> WebKit uses the NSTextViewContextMenu nib from inside AppKit
2169 * English.lproj/StringsNotToBeLocalized.txt:
2170 * WebKit.pbproj/project.pbxproj:
2171 * WebView.subproj/WebDefaultContextMenuDelegate.m:
2172 (-[WebDefaultUIDelegate editingContextMenuItemsForElement:]): use our copy of the nib
2174 2004-09-07 Darin Adler <darin@apple.com>
2176 * English.lproj/StringsNotToBeLocalized.txt: Update for recent changes.
2178 2004-09-07 Chris Blumenberg <cblu@apple.com>
2180 Fixed: <rdar://problem/3790143> exception raised when dragging a URL with 2-byte characters
2182 (checked in with last check-in)
2184 2004-09-07 Chris Blumenberg <cblu@apple.com>
2187 <rdar://problem/3080103> Need to pass cmd-modified keys to plug-ins
2188 <rdar://problem/3751509> can't use safari edit menu to copy and paste with Vantage Learning's My Access
2192 * Plugins.subproj/WebBaseNetscapePluginView.m: fake up command-key events for cut, copy, paste and select all so these menu items work for plug-ins
2193 (-[WebBaseNetscapePluginView sendModifierEventWithKeyCode:character:]):
2194 (-[WebBaseNetscapePluginView cut:]):
2195 (-[WebBaseNetscapePluginView copy:]):
2196 (-[WebBaseNetscapePluginView paste:]):
2197 (-[WebBaseNetscapePluginView selectAll:]):
2199 2004-09-07 Darin Adler <darin@apple.com>
2201 - fixed deployment build
2203 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView _deleteWithDirection:granularity:killRing:]):
2204 Initialize prepend variable.
2206 2004-09-06 Darin Adler <darin@apple.com>
2210 - fixed <rdar://problem/3696542> REGRESSION (Mail): Editable WebKit doesn't support underline yet (in the iChat profile window, at least)
2211 - fixed <rdar://problem/3780249> REGRESSION (Mail): copy style/paste style doesn't work in HTML editing in Mail
2212 - fixed <rdar://problem/3788857> REGRESSION (Mail): Home and End keys don't work in message composer
2213 - fixed <rdar://problem/3788884> REGRESSION (Mail): ctrl-d emacs key binding does not work (delete forward)
2214 - fixed <rdar://problem/3788890> REGRESSION (Mail): ctrl-k emacs key binding does not work (delete to end of paragraph)
2215 - fixed <rdar://problem/3788899> REGRESSION (Mail): ctrl-y emacs key binding does not work (yank)
2216 - fixed <rdar://problem/3788901> REGRESSION (Mail): ctrl-o emacs key binding does not work (insert newline in front of insertion point)
2217 - fixed <rdar://problem/3788908> REGRESSION (Mail): ctrl-left-arrow emacs key binding does not work (move to beginning of line)
2218 - fixed <rdar://problem/3788913> REGRESSION (Mail): ctrl-right-arrow emacs key binding does not work (move to end of line)
2219 - implemented a first cut at other attribute changes from Text Panel besides underline (bugs?)
2220 - dealt with a couple of FIXMEs in WebHTMLView.m
2221 - updated list of not-yet-implemented methods in WebHTMLView.m
2222 - fixed many deletion operations to call the correct editing delegate methods
2224 * WebView.subproj/WebFrameViewPrivate.h: Remove _scrollToTopLeft and _scrollToBottomLeft.
2225 No one was calling them anyway, so they should really have been marked internal and not private.
2226 * WebView.subproj/WebFrameView.m:
2227 (-[WebFrameView scrollToBeginningOfDocument:]): Renamed _scrollToTopLeft to this, so the home key
2228 would start working with the key bindings machinery.
2229 (-[WebFrameView scrollToEndOfDocument:]): Same thing, for end key.
2230 (-[WebFrameView keyDown:]): Update for name changes, and also make sure we don't try to grab
2231 control-arrow keys here (probably not necessary, but good anyway).
2233 * WebView.subproj/WebHTMLViewInternal.h: Added keyDownEvent field, and startNewKillRingSequence
2234 and nextResponderDisabledOnce flags.
2235 * WebView.subproj/WebHTMLView.m:
2236 Rearrange declarations at the top of the file so that external things are up with
2237 the #import directives and things inside this file are declared below.
2238 (-[WebHTMLView _shouldReplaceSelectionWithText:givenAction:]): Ditto.
2239 (-[WebHTMLView _calculatePrintHeight]): Moved up into the "internal to file" category.
2240 (-[WebHTMLView _updateTextSizeMultiplier]): Ditto.
2241 (-[WebHTMLView _selectedRange]): Added.
2242 (-[WebHTMLView _openLinkFromMenu:]): Left this method lying around even though I deleted the
2243 other APPKIT_CODE_FOR_REFERENCE in case this shows up in the context menu we are now sharing
2244 with the AppKit. Chris will look at this later, and he can delete it then.
2245 (+[WebHTMLView initialize]): Call _NSInitializeKillRing.
2246 (-[WebHTMLView _documentRange]): Added.
2247 (-[WebHTMLView string]): Call the bridge to get the plain text rather than making an attributed
2248 string and then getting the text from there.
2249 (-[WebHTMLView becomeFirstResponder]): Set startNewKillRingSequence flag, so that new deletions
2250 will create a new kill ring entry.
2251 (-[WebHTMLView moveToBeginningOfDocument:]): Use backward direction instead of left direction.
2252 (-[WebHTMLView moveToBeginningOfDocumentAndModifySelection:]): Ditto.
2253 (-[WebHTMLView moveToBeginningOfLine:]): Ditto.
2254 (-[WebHTMLView moveToBeginningOfLineAndModifySelection:]): Ditto.
2255 (-[WebHTMLView moveToBeginningOfParagraph:]): Ditto, also use WebSelectToParagraphBoundary.
2256 (-[WebHTMLView moveToBeginningOfParagraphAndModifySelection:]): Ditto.
2257 (-[WebHTMLView moveToEndOfDocument:]): Use forward direction instead of right direction.
2258 (-[WebHTMLView moveToEndOfDocumentAndModifySelection:]): Ditto.
2259 (-[WebHTMLView moveToEndOfLine:]): Ditto.
2260 (-[WebHTMLView moveToEndOfLineAndModifySelection:]): Ditto.
2261 (-[WebHTMLView moveToEndOfParagraph:]): Ditto, also use WebSelectToParagraphBoundary.
2262 (-[WebHTMLView moveToEndOfParagraphAndModifySelection:]): Ditto.
2263 (-[WebHTMLView _shouldDeleteRange:]): Added.
2264 (-[WebHTMLView _deleteRange:preflight:killRing:prepend:]): Added.
2265 (-[WebHTMLView delete:]): Changed to call new _deleteRange method.
2266 (-[WebHTMLView cut:]): Changed to preflight property and call new _deleteRange method.
2267 (-[WebHTMLView _selectionFontAttributes]): Added.
2268 (-[WebHTMLView _selectionFontAttributesAsRTF]): Added.
2269 (-[WebHTMLView _fontAttributesFromFontPasteboard]): Added.
2270 (-[WebHTMLView _emptyStyle]): Added.
2271 (-[WebHTMLView _styleFromFontAttributes:]): Added.
2272 (-[WebHTMLView _applyStyleToSelection:]): Added.
2273 (-[WebHTMLView copyFont:]): Implemented.
2274 (-[WebHTMLView pasteFont:]): Implemented.
2275 (-[WebHTMLView _originalFontA]): Added.
2276 (-[WebHTMLView _originalFontB]): Added.
2277 (-[WebHTMLView _addToStyle:fontA:fontB:]): Added. Has code from the method that figures out
2278 what the font manager is doing for changeFont:, now needed for changeAttribute: too.
2279 (-[WebHTMLView _styleFromFontManagerOperation]): Renamed and now calls shared methods.
2280 (-[WebHTMLView changeFont:]): Call shared method, still does the same thing.
2281 (-[WebHTMLView _colorAsString:]): Added. Has code from the method we were using with the
2283 (-[WebHTMLView _shadowAsString:]): Added.
2284 (-[WebHTMLView _styleForAttributeChange:]): Added.
2285 (-[WebHTMLView changeAttributes:]): Implemented.
2286 (-[WebHTMLView _styleFromColorPanelWithSelector:]): Renamed and now calls shared methods.
2287 (-[WebHTMLView _changeCSSColorUsingSelector:inRange:]): Call method by new name.
2288 (-[WebHTMLView changeDocumentBackgroundColor:]): Call method by new name.
2289 (-[WebHTMLView changeColor:]): Changed around a bit; still doesn't work yet.
2290 (-[WebHTMLView _alignSelectionUsingCSSValue:]): Call shared methods.
2291 (-[WebHTMLView indent:]): Removed, since NSTextView doesn't implement this method. Added to list
2292 of methods to possibly implement later in the file.
2293 (-[WebHTMLView insertTab:]): Call insertText: to save code and so we get WebViewInsertActionTyped
2294 instead of WebViewInsertActionPasted.
2295 (-[WebHTMLView changeCaseOfLetter:]): Removed, since NSTextView doesn't implement this method.
2296 Added to list of methods to possibly implement later in the file.
2297 (-[WebHTMLView _deleteWithDirection:granularity:killRing:]): Added.
2298 (-[WebHTMLView deleteForward:]): Implemented. This makes Control-D work.
2299 (-[WebHTMLView deleteBackwardByDecomposingPreviousCharacter:]): Implemented by just calling
2300 deleteBackward for now; probably better than doing nothing.
2301 (-[WebHTMLView deleteWordForward:]): Changed to call new _delete method above. Fixes things
2302 so that we delete the selection if there is one, get the appropriate delegate calls, handle
2303 the kill ring properly, and don't do any selection if we can't delete.
2304 (-[WebHTMLView deleteWordBackward:]): Ditto.
2305 (-[WebHTMLView deleteToBeginningOfLine:]): Ditto.
2306 (-[WebHTMLView deleteToEndOfLine:]): Ditto.
2307 (-[WebHTMLView deleteToBeginningOfParagraph:]): Ditto.
2308 (-[WebHTMLView deleteToEndOfParagraph:]): Ditto. Added additional behavior needed since this
2309 is bound to Control-K, so it's not really just delete to end of paragraph.
2310 (-[WebHTMLView insertNewlineIgnoringFieldEditor:]): Added. Calls insertNewline:.
2311 (-[WebHTMLView insertTabIgnoringFieldEditor:]): Added. Calls insertTab:.
2312 (-[WebHTMLView subscript:]): Added.
2313 (-[WebHTMLView superscript:]): Added.
2314 (-[WebHTMLView unscript:]): Added.
2315 (-[WebHTMLView underline:]): Added.
2316 (-[WebHTMLView yank:]): Added.
2317 (-[WebHTMLView yankAndSelect:]): Added. Calls _insertText.
2318 (-[WebHTMLView _arrowKeyDownEventSelectorIfPreprocessing:]): Added. Part of workaround for
2319 control-arrow key trouble.
2320 (-[WebHTMLView respondsToSelector:]): Added. More of workaround.
2321 (-[WebHTMLView nextResponder:]): Added. More of workaround.
2322 (-[WebHTMLView _selectionChanged]): Set startNewKillRingSequence flag, so that new deletions
2323 will create a new kill ring entry.
2324 (-[WebHTMLView _updateFontPanel]): Remove a bunch of code here that wasn't working very well
2325 because it walked a DOM range incorrectly, and instead use the new method that does all the
2326 right stuff on the other side of the bridge.
2327 (-[WebHTMLView _insertText:selectInsertedText:]): Added new helper method for use by both
2328 insertText and yankAndSelect, with most of the guts of insertText and one additional parameter.
2329 (-[WebHTMLView insertText:]): Call the new _insertText.
2331 * WebView.subproj/WebView.m: Use macros to make the forwarding from WebView more terse.
2332 Updated the list to include a few methods it didn't before.
2334 2004-09-06 John Sullivan <sullivan@apple.com>
2338 - put preference keys in a private header file so Safari can use them for Managed Preferences
2340 * WebView.subproj/WebPreferenceKeysPrivate.h:
2341 new Private header file, includes the #defines for NSUserDefaults preference keys
2343 * WebView.subproj/WebPreferences.m:
2344 moved the preference key #defines out of here; now imports WebPreferenceKeysPrivate.h
2346 * WebKit.pbproj/project.pbxproj:
2347 updated for new file
2349 2004-09-03 Chris Blumenberg <cblu@apple.com>
2351 Fixed: <rdar://problem/3782543> CrashTracer: ...87 crashes at com.apple.WebKit: -[WebNetscapePluginPackage initWithPath:] + 0x18c
2355 * Plugins.subproj/WebNetscapePluginPackage.m:
2356 (-[WebNetscapePluginPackage initWithPath:]): make sure the file is at least 8 bytes long before calling memcmp
2358 2004-09-03 Chris Blumenberg <cblu@apple.com>
2361 <rdar://problem/3788328> assertion failure when moving an image
2362 <rdar://problem/3783628> REGRESSION (Mail): when I try to reorder an image, the image is duplicated
2364 Reviewed by NOBODY (OOPS!).
2366 * DOM.subproj/WebDOMOperations.m:
2367 (-[DOMDocument _createRangeWithNode:]): new, convenience
2368 (-[DOMDocument _documentRange]): use _ createRangeWithNode:
2369 * DOM.subproj/WebDOMOperationsPrivate.h:
2370 * WebView.subproj/WebHTMLView.m:
2371 (-[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
2375 2004-09-02 Richard Williamson <rjw@apple.com>
2377 Support for patterns in <canvas>.
2378 (These changes attempt to create a CGImageRef from a WebImageRenderer that
2379 is used by the pattern drawing function.)
2383 * WebCoreSupport.subproj/WebImageRenderer.h:
2384 * WebCoreSupport.subproj/WebImageRenderer.m:
2385 (-[WebImageRenderer dealloc]):
2386 (-[WebImageRenderer finalize]):
2387 (-[WebImageRenderer imageRef]):
2389 * WebView.subproj/WebPDFView.h:
2390 * WebView.subproj/WebPDFView.m:
2392 2004-09-01 Chris Blumenberg <cblu@apple.com>
2394 Fixed deployment build failure.
2396 * WebView.subproj/WebDefaultContextMenuDelegate.m:
2397 (-[WebDefaultUIDelegate menuItemWithTag:]):
2399 2004-08-31 Chris Blumenberg <cblu@apple.com>
2402 <rdar://problem/3699498> Context menu for editable WebViews should provide items like Cut and Paste
2403 <rdar://problem/3781535> REGRESSION (Mail): no context menu after ctrl-clicking a misspelled word
2405 Reviewed by kocienda.
2407 * English.lproj/Localizable.strings:
2408 * WebView.subproj/WebDefaultContextMenuDelegate.m:
2409 (-[WebDefaultUIDelegate menuItemWithTag:]): updated to handle new menu items
2410 (-[WebDefaultUIDelegate contextMenuItemsForElement:]): renamed from webView:contextMenuItemsForElement:defaultMenuItems:
2411 (-[WebDefaultUIDelegate editingContextMenuItemsForElement:]): new
2412 (-[WebDefaultUIDelegate webView:contextMenuItemsForElement:defaultMenuItems:]): moved, now call contextMenuItemsForElement: or editingContextMenuItemsForElement:
2413 * WebView.subproj/WebDefaultUIDelegate.h:
2414 * WebView.subproj/WebHTMLView.m:
2415 (-[WebHTMLView _isSelectionMisspelled]): new
2416 (-[WebHTMLView _guessesForMisspelledSelection]): new
2417 (-[WebHTMLView _changeSpellingFromMenu:]): new
2418 (-[WebHTMLView _ignoreSpellingFromMenu:]): new
2419 (-[WebHTMLView _learnSpellingFromMenu:]): new
2420 * WebView.subproj/WebHTMLViewPrivate.h:
2421 * WebView.subproj/WebUIDelegate.h:
2423 2004-08-31 Darin Adler <darin@apple.com>
2425 - fixed B&I build failure
2427 * WebView.subproj/WebHTMLView.m: (-[WebTextCompleteController _buildUI]):
2428 Work around unwanted warning by adding a cast.
2430 2004-08-27 Maciej Stachowiak <mjs@apple.com>
2434 <rdar://problem/3778314> REGRESSION: Can't proceed to survey questions on Lominger's Apple website
2436 Because we will stop parsing when there is a pending redirection,
2437 avoid setting one if no navigation would actually take place
2438 because the number of steps is out of range.
2440 * WebCoreSupport.subproj/WebBridge.m:
2441 (-[WebBridge canGoBackOrForward:]):
2443 2004-08-30 Darin Adler <darin@apple.com>
2447 - part of fix for <rdar://problem/3637519> REGRESSION (125-128): unrepro crash in QListBox::sizeForNumberOfLines at istweb.apple.com
2449 * WebCoreSupport.subproj/WebTextRendererFactory.m: (-[WebTextRendererFactory clearCaches]):
2450 Call [super clearCaches].
2452 2004-08-30 Darin Adler <darin@apple.com>
2456 - did work to prepare for uploading files incrementally when submitting forms
2458 * History.subproj/WebHistoryItem.m:
2459 (-[WebHistoryItem _setFormInfoFromRequest:]): Use NSArray instead of NSData for form data.
2460 (-[WebHistoryItem formData]): Ditto.
2461 * History.subproj/WebHistoryItemPrivate.h: Ditto.
2462 * WebCoreSupport.subproj/WebBridge.m:
2463 (-[WebBridge startLoadingResource:withURL:customHeaders:postData:]): Ditto.
2464 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]): Ditto.
2465 (-[WebBridge postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]): Ditto.
2466 * WebCoreSupport.subproj/WebSubresourceClient.h: Ditto.
2467 * WebCoreSupport.subproj/WebSubresourceClient.m:
2468 (+[WebSubresourceClient startLoadingResource:withURL:customHeaders:postData:referrer:forDataSource:]): Ditto.
2469 * WebView.subproj/WebFrame.m:
2470 (-[WebFrame _loadItem:withLoadType:]): Ditto.
2471 (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]): Ditto.
2472 * WebView.subproj/WebFramePrivate.h: Ditto.
2474 * WebView.subproj/WebFormDataStream.h: Added.
2475 * WebView.subproj/WebFormDataStream.m:
2476 (-[WebFormDataStream initWithFormDataArray:]): Placeholder; not done yet.
2477 (-[WebFormDataStream formDataArray]): Ditto.
2478 * WebKit.pbproj/project.pbxproj: Added WebFormDataStream files.
2480 2004-08-30 John Sullivan <sullivan@apple.com>
2484 - WebKit part of fix for <rdar://problem/3607720> myFrame.print() prints the window
2485 but should only print the frame
2487 * WebView.subproj/WebUIDelegatePrivate.h:
2488 declare new delegate method that includes which frame to print
2490 * WebView.subproj/WebDefaultUIDelegate.m:
2491 (-[WebDefaultUIDelegate webView:printFrameView:]):
2492 implement default (no-op) version of new delegate method
2494 * WebCoreSupport.subproj/WebBridge.m:
2495 (-[WebBridge print]):
2496 call new delegate method if available, otherwise call old delegate method, for
2497 backward compatibility.
2499 2004-08-27 Maciej Stachowiak <mjs@apple.com>
2504 Ken comments: It looks like Maciej forgot to land this when he checked in the
2505 WebCore portion of this change.
2507 <rdar://problem/3778314> REGRESSION: Can't proceed to survey questions on Lominger's Apple website
2509 Because we will stop parsing when there is a pending redirection,
2510 avoid setting one if no navigation would actually take place
2511 because the number of steps is out of range.
2513 * WebCoreSupport.subproj/WebBridge.m:
2514 (-[WebBridge canGoBackOrForward:]):
2516 2004-08-27 Ken Kocienda <kocienda@apple.com>
2522 <rdar://problem/3756997> WebKit aggressive in making pasted text into a URL, even when it's not much like a URL
2524 * WebView.subproj/WebHTMLView.m:
2525 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]): Don't try so hard to coerce data
2526 on the pasteboard into a URL, and do not make an anchor with an href for any URLs that are
2527 explicitly present on the pasteboard. Also, move URL pasteboard type check beneath the RTF
2532 2004-08-26 Chris Blumenberg <cblu@apple.com>
2534 Fixed build failure on Panther.
2538 * WebView.subproj/WebHTMLView.m:
2539 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]): ifdef'd out call to AppKit SPI
2540 (-[WebHTMLView _attributeStringFromDOMRange:]): ditto
2542 2004-08-26 Chris Blumenberg <cblu@apple.com>
2544 Tweak to last check-in.
2546 * WebView.subproj/WebHTMLView.m:
2547 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]):
2549 2004-08-26 Chris Blumenberg <cblu@apple.com>
2552 <rdar://problem/3546412> support for pasting and drag and dropping of RTF and RTFD to editable WebViews
2553 <rdar://problem/3745345> use AppKit for converting from DOM to RTF
2557 * DOM.subproj/WebDOMOperations.m:
2558 (-[DOMDocument _documentRange]): new
2559 * DOM.subproj/WebDOMOperationsPrivate.h:
2560 * WebView.subproj/WebHTMLView.m:
2561 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]): call AppKit SPI to get a document fragment from an attributed string
2562 (-[WebHTMLView string]): added a FIXME
2563 (-[WebHTMLView _attributeStringFromDOMRange:]): new, calls AppKit SPI that creates an attributed string from a DOM Range
2564 (-[WebHTMLView attributedString]): call _attributeStringFromDOMRange:, fallback to old code if it returns nil
2565 (-[WebHTMLView selectedAttributedString]): ditto
2567 2004-08-26 Chris Blumenberg <cblu@apple.com>
2569 Fixed: <rdar://problem/3774178> Plugin hooks for selected state aren't being called
2573 * WebCoreSupport.subproj/WebBridge.m:
2574 (-[WebBridge setIsSelected:forView:]): don't forget colons in method names
2576 2004-08-26 Chris Blumenberg <cblu@apple.com>
2578 Fixed: <rdar://problem/3768439> can't click in WebView in Carbon WebKit apps (GetEventPlatformEventRecord returns false)
2582 * Carbon.subproj/HIWebView.m:
2583 (Click): use WebGetEventPlatformEventRecord not GetEventPlatformEventRecord
2586 (MouseDragged): ditto
2587 (MouseWheelMoved): ditto
2588 (WindowHandler): ditto
2589 (HIWebViewEventHandler): ditto
2590 (UpdateObserver): ditto
2591 (WebGetEventPlatformEventRecord): Call GetEventPlatformEventRecord, if that fails fallback to the current event. This is code Eric Schlegel to me to use.
2593 2004-08-24 Chris Blumenberg <cblu@apple.com>
2595 Fixed with help from Trey:
2596 <rdar://problem/3764856> REGRESSION !25-154): Safari accepts mouse clicks (follows links) when not key
2600 * WebView.subproj/WebHTMLView.m:
2601 (-[WebHTMLView _isSelectionEvent:]): brought back from CVS
2602 (-[WebHTMLView acceptsFirstMouse:]): only call eventMayStartDrag if _isSelectionEvent returns YES since we only want to allow selection dragging on the first mouse down
2603 (-[WebHTMLView shouldDelayWindowOrderingForEvent:]): ditto
2605 2004-08-24 Ken Kocienda <kocienda@apple.com>
2609 Improved the checks used to see if certain operations can be done based
2610 on the state of the selection and whether the selection is editable. I
2611 added some helpers and improved some others to assist in making these
2614 This helps to fix this bug:
2615 <rdar://problem/3764987> Crash after adding newline to quoted text
2617 Since some editing methods expect the the selection to be in a certain state
2618 in order to work, these checks help obviate crashes like 3764987.
2620 * WebView.subproj/WebHTMLView.m:
2621 (-[WebHTMLView _writeSelectionToPasteboard:]): _haveSelection name changed to _hasSelection.
2622 (-[WebHTMLView _canCopy]): Checks to see if state is appropriate to perform this operation.
2623 (-[WebHTMLView _canCut]): Ditto. Function added.
2624 (-[WebHTMLView _canDelete]): Ditto. Function refined.
2625 (-[WebHTMLView _canPaste]): Ditto. Function refined.
2626 (-[WebHTMLView _canType]): Ditto. Function added.
2627 (-[WebHTMLView _hasSelection]): Name changed from _haveSelection.
2628 (-[WebHTMLView _hasSelectionOrInsertionPoint]): Added.
2629 (-[WebHTMLView _isEditable]): Added.
2630 (-[WebHTMLView takeFindStringFromSelection:]): _haveSelection name changed to _hasSelection.
2631 (-[WebHTMLView validateUserInterfaceItem:]): Ditto
2632 (-[WebHTMLView validRequestorForSendType:returnType:]): Ditto
2633 (-[WebHTMLView keyDown:]):
2634 (-[WebHTMLView copy:]): Uses new _canCopy check.
2635 (-[WebHTMLView cut:]): Uses new _canCut check.
2636 (-[WebHTMLView delete:]): Now uses _canDelete check.
2637 (-[WebHTMLView paste:]): Now uses _canPaste check.
2638 (-[WebHTMLView _updateFontPanel]): _haveSelection name changed to _hasSelection.
2639 * WebView.subproj/WebHTMLViewPrivate.h:
2640 * WebView.subproj/WebView.m:
2641 (-[WebView writeSelectionWithPasteboardTypes:toPasteboard:]): Use selectionState check to
2642 determine whether or not operation can be done.
2644 2004-08-24 Richard Williamson <rjw@apple.com>
2646 Fixed <rdar://problem/3770469> Some PDFs open with line of previous page above PDF view
2648 Set height resize flags on WebPDFView.
2652 * WebView.subproj/WebPDFView.m:
2653 (-[WebPDFView initWithFrame:]):
2655 2004-08-24 David Hyatt <hyatt@apple.com>
2657 Add Atom and RSS MIME types to set of supported XML types.
2661 * WebView.subproj/WebDataSource.m:
2662 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
2663 * WebView.subproj/WebFrameView.m:
2664 (+[WebFrameView _viewTypesAllowImageTypeOmission:]):
2666 2004-08-23 Maciej Stachowiak <mjs@apple.com>
2670 - remove annoying ERROR spew and replace with comment
2672 * WebView.subproj/WebHTMLView.m:
2673 (-[WebHTMLView validAttributesForMarkedText]):
2675 2004-08-23 Maciej Stachowiak <mjs@apple.com>
2677 Reviewed by Richard.
2679 - a bit of code cleanup
2681 * WebView.subproj/WebDataSource.m:
2682 (-[WebDataSource _stringWithData:]): Call textEncodingName instead of
2684 (-[WebDataSource textEncodingName]): Tweak formatting.
2686 2004-08-23 Chris Blumenberg <cblu@apple.com>
2690 * WebKit.pbproj/project.pbxproj: make sure we're doing -f on a file, not a directory
2692 2004-08-23 Chris Blumenberg <cblu@apple.com>
2694 Fixed: <rdar://problem/3674867> use new Security framework SPI's to reenable cert acquisition
2698 * WebCoreSupport.subproj/WebKeyGeneration.cpp:
2699 * WebCoreSupport.subproj/WebKeyGeneration.h:
2700 * WebCoreSupport.subproj/WebKeyGenerator.h:
2701 * WebCoreSupport.subproj/WebKeyGenerator.m:
2702 (-[WebKeyGenerator signedPublicKeyAndChallengeStringWithStrengthIndex:challenge:pageURL:]): re-enabled cert code, call Panther version on Panther, Tiger version on Tiger
2703 (-[WebKeyGenerator addCertificatesToKeychainFromData:]): ditto
2704 * WebCoreSupport.subproj/WebNewKeyGeneration.c: Added.
2705 (gnrAddContextAttribute):
2711 (signedPublicKeyAndChallengeString):
2712 (addCertificateToKeychainFromData):
2713 (addCertificatesToKeychainFromData):
2714 * WebCoreSupport.subproj/WebNewKeyGeneration.h: Added.
2715 * WebKit.pbproj/project.pbxproj:
2717 2004-08-20 David Hyatt <hyatt@apple.com>
2719 Fix the directionality of the unicode hyphen so that on Panther it now matches Tiger.
2723 * Misc.subproj/WebUnicode.m:
2724 (_unicodeDirection):
2726 2004-08-20 Richard Williamson <rjw@apple.com>
2728 Implemented new JNI abstraction. We no longer invoke Java methods
2729 directly with JNI, rather we call into the plugin. This allows the
2730 plugin to dispatch the call to the appropriate VM thread. This
2731 change should (will?) fix a whole class of threading related problems with
2736 * WebCoreSupport.subproj/WebBridge.m:
2737 (-[WebBridge getAppletInView:]):
2739 2004-08-20 Trey Matteson <trey@apple.com>
2741 3655407 - Editing: -complete: method unimplemented (WebKit editing API)
2743 This feature is mostly implemented. The only loose ends I know of are:
2745 3769654 - text insertions done via complete: should preserve case of full replacement string
2746 3769652 - positioning of complete: popup window wrong for right-to-left languages
2750 * WebView.subproj/WebHTMLView.m:
2751 (-[WebHTMLViewPrivate dealloc]): Free new object.
2752 (-[WebHTMLView menuForEvent:]): Bail on completion session.
2753 (-[WebHTMLView windowDidResignKey:]): Ditto.
2754 (-[WebHTMLView windowWillClose:]): Ditto.
2755 (-[WebHTMLView mouseDown:]): Ditto.
2756 (-[WebHTMLView resignFirstResponder]): Ditto.
2757 (-[WebHTMLView keyDown:]): Bail on completion session if WebCore takes the event.
2758 Give the CompleteController a crack at the key event.
2759 (-[WebHTMLView _expandSelectionToGranularity:]): Adopt method rename
2760 (-[WebHTMLView complete:]): Make CompleteController, tell it to do its thing.
2761 (-[WebHTMLView checkSpelling:]): Add ERROR().
2762 (-[WebHTMLView showGuessPanel:]): Add ERROR().
2763 (-[WebHTMLView _changeSpellingToWord:]): Add ERROR().
2764 (-[WebHTMLView ignoreSpelling:]): Add ERROR().
2766 (-[WebTextCompleteController initWithHTMLView:]):
2767 (-[WebTextCompleteController dealloc]):
2768 (-[WebTextCompleteController _insertMatch:]): Stick the new string into the doc.
2769 (-[WebTextCompleteController _buildUI]): Make popup window.
2770 (-[WebTextCompleteController _placePopupWindow:]): Position popup window.
2771 (-[WebTextCompleteController doCompletion]): Lookup matches, display window.
2772 (-[WebTextCompleteController endRevertingChange:moveLeft:]): Bail on complete: session.
2773 (-[WebTextCompleteController filterKeyDown:]): Process keys while popup is up.
2774 (-[WebTextCompleteController _reflectSelection]): Handle choice in popup.
2775 (-[WebTextCompleteController tableAction:]): Handle double click in popup
2776 (-[WebTextCompleteController numberOfRowsInTableView:]): Fill table with matches.
2777 (-[WebTextCompleteController tableView:objectValueForTableColumn:row:]): Ditto.
2778 (-[WebTextCompleteController tableViewSelectionDidChange:]): Handle selection change.
2779 * WebView.subproj/WebHTMLViewInternal.h:
2781 2004-08-20 John Sullivan <sullivan@apple.com>
2783 * English.lproj/StringsNotToBeLocalized.txt:
2784 checked this in; the only difference is that
2785 the strings were out of order.
2787 2004-08-19 Richard Williamson <rjw@apple.com>
2789 Continue to call old pollForAppletInView: in Tiger until
2790 we get an plugin that supports the new API.
2794 * WebCoreSupport.subproj/WebBridge.m:
2795 (-[WebBridge getAppletInView:]):
2796 * WebKit.pbproj/project.pbxproj:
2800 2004-08-19 Chris Blumenberg <cblu@apple.com>
2802 Fixed typo in comment.
2804 * Misc.subproj/WebIconDatabase.m:
2805 (-[WebIconDatabase _updateFileDatabase]):
2807 2004-08-19 Chris Blumenberg <cblu@apple.com>
2809 Fixed: <rdar://problem/3566336> CrashTracer: .2403 crashes at com.apple.WebKit: -[WebFileDatabase performSetObject:forKey:] + 0x94
2813 * Misc.subproj/WebIconDatabase.m:
2814 (-[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
2816 2004-08-18 Richard Williamson <rjw@apple.com>
2818 Replace horrible pollForAppletInView: with new
2819 webPlugInGetApplet. The details of how the applet instance
2820 is provided now belong to the Java team. Yeh.
2824 * WebCoreSupport.subproj/WebBridge.m:
2825 (-[WebBridge getAppletInView:]):
2827 2004-08-17 Richard Williamson <rjw@apple.com>
2829 Fixed <rdar://problem/3759093> Need PDF context menu: "Open in Preview" or other external app
2831 Added support for "Open with ..." in PDF view.
2833 Reviewed by Chris and Trey.
2836 * English.lproj/Localizable.strings:
2837 * English.lproj/StringsNotToBeLocalized.txt:
2838 * WebView.subproj/WebPDFView.h:
2839 * WebView.subproj/WebPDFView.m:
2840 (-[WebPDFView initWithFrame:]):
2841 (-[WebPDFView dealloc]):
2842 (applicationInfoForMIMEType):
2843 (-[WebPDFView path]):
2844 (-[WebPDFView menuForEvent:]):
2845 (-[WebPDFView setDataSource:]):
2846 (-[WebPDFView layout]):
2847 (-[WebPDFView viewDidMoveToHostWindow]):
2848 (-[WebPDFView openWithFinder:]):
2850 2004-08-17 Richard Williamson <rjw@apple.com>
2852 JNI needs both the jmethodID and return type. Changed API to
2857 * Plugins.subproj/WebJavaPlugIn.h:
2859 2004-08-17 Trey Matteson <trey@apple.com>
2861 3764147 - failure of subframe to load leaves links in parent doc broken
2865 * WebView.subproj/WebDataSource.m:
2866 (-[WebDataSource _receivedMainResourceError:complete:]):
2867 Need to call [bridge end] in the case of an error, so WC can clean up.
2871 2004-08-15 Richard Williamson <rjw@apple.com>
2873 More changes to np headers.
2877 * Plugins.subproj/WebNetscapePluginPackage.m:
2878 (-[WebNetscapePluginPackage load]):
2879 * Plugins.subproj/npapi.h:
2880 * Plugins.subproj/npfunctions.h:
2881 * Plugins.subproj/npruntime.h:
2883 2004-08-13 Darin Adler <darin@apple.com>
2887 - fixed <rdar://problem/3760924> Carbon path passed in NPP_StreamAsFile must be in local character set, not UTF-8
2889 * Plugins.subproj/WebBaseNetscapePluginStream.m:
2890 (CarbonPathFromPOSIXPath): Added. New function that uses the path pieces from an FSSpec.
2891 This has many advantages; the big one that fixes the bug is that it gives the mangled names
2892 that work even for files that have names that can't otherwise be encoded in Carbon-style
2893 path names. I didn't write this from scratch: I started with the method in Foundation
2894 and just changed it to use FSSpec.
2895 (-[WebBaseNetscapePluginStream destroyStream]): Remove code that used NSString and just call
2896 CarbonPathFromPOSIXPath instead.
2898 * Plugins.subproj/npapi.h: The Revision tag wanted to touch this file.
2899 I think we are going to have some trouble with this; I'd like to take that out.
2901 * English.lproj/StringsNotToBeLocalized.txt: Updated.
2903 2004-08-12 Trey Matteson <trey@apple.com>
2905 3761329 - query result links all dead in ingrammicro.com (sometimes)
2906 3761328 - links in some docs dead when doc is loaded from WebArchive
2908 Nasty problem. It turns out that these result pages are a parent frame with two child
2909 frames. One of the child frames is a 1 or 2 byte text document. When the text child
2910 is the last doc to complete, because we use a Text rep instead of an HTMLRep, it turns
2911 out we never send [bridge end] from WebKit. That mistake results in checkCompleted not
2912 being called enough in the part, and we never realize the load is done. WebCore does
2913 not allow redirects to happen until the entire load is complete, and the links on this
2914 results page are actually little pieces of JS that set location to a generated URL. Since
2915 redirects are not allowed these links all silently fail to do anything, and the doc never
2916 achieves a completed state where they will work.
2918 Solution is to make sure we always call [bridge end] from the DataSource instead of only
2919 the HTML rep doing it.
2921 Reviewed by Richard and Darin.
2923 * WebView.subproj/WebDataSource.m:
2924 (-[WebDataSource _finishedLoading]): Call [bridge end] here for all kinds of docs.
2925 * WebView.subproj/WebHTMLRepresentation.m:
2926 (-[WebHTMLRepresentation finishedLoadingWithDataSource:]): Don't call is just for HTMLReps.
2928 2004-08-12 Richard Williamson <rjw@apple.com>
2930 Bring npruntime.h and friends closer to compliance with
2935 * Plugins.subproj/npapi.h:
2936 * Plugins.subproj/npfunctions.h:
2937 * Plugins.subproj/npruntime.h:
2939 (_NPString::_NPVariant::):
2940 * copy-webcore-files-to-webkit:
2942 2004-08-12 Chris Blumenberg <cblu@apple.com>
2944 Fixed: <rdar://problem/3761097> should be able to option-drag selection so HTML can be copied within a page
2948 * WebView.subproj/WebHTMLView.m:
2949 (-[WebHTMLView _isMoveDrag]): new, take into account the option key
2950 (-[WebHTMLView draggingUpdatedWithDraggingInfo:actionMask:]): call _isMoveDrag
2951 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): call _isMoveDrag
2953 2004-08-12 Richard Williamson <rjw@apple.com>
2955 Quick fix for 3760903. The real fix is described in 3760920. Needed
2956 by Java plugin guys so they can be unblocked for feature freeze.
2960 * WebView.subproj/WebFrame.m:
2961 (-[WebFrame _reloadForPluginChanges]):
2962 * WebView.subproj/WebHTMLView.m:
2963 (-[WebHTMLView addSubview:]):
2965 2004-08-12 Chris Blumenberg <cblu@apple.com>
2967 Fixed: <rdar://problem/3760898> error pages in subframes attempt to load appledata URLs when reloaded
2971 * WebView.subproj/WebFrame.m:
2972 (-[WebFrame _createItem:]): when setting the original URL of the history item, use the unreachable URL
2976 2004-08-11 Adele Amchan <adele@apple.com>
2978 Reviewed by me, bug fix by Darin.
2980 - fixed <rdar://problem/3736477> Pages don't load if hard drive is named with non-ASCII Symbol
2982 * Plugins.subproj/WebBaseNetscapePluginStream.m:
2983 (-[WebBaseNetscapePluginStream startStreamWithURL:expectedContentLength:lastModifiedDate:MIMEType:]):
2984 Use UTF8String instead of cString to convert the MIME type to a C string. Safer, since it can't
2985 ever fail due to encoding problems even though this string should always be ASCII.
2986 (-[WebBaseNetscapePluginStream destroyStream]): Use stringWithUTF8String to convert the path name
2987 to an NSString, since stringWithCString is deprecated (doesn't really matter since the path is always
2988 all ASCII). Fix the bug by calling fileSystemRepresentation on the NSString to turn it into a C
2989 string form. Even though the POSIX path can't have any non-ASCII characters in it, the Carbon path
2990 can, so we need to use this instead of cString which can fail depending on characters and encoding.
2992 2004-08-09 Maciej Stachowiak <mjs@apple.com>
2998 - made basic marked text highlighting work to complete basic level of <rdar://problem/3704359> input method support not yet implemented for HTML editing
3000 * WebView.subproj/WebHTMLView.m:
3001 (-[WebHTMLView markedRange]): Use new bridge calls instead of internal marked range storage.
3002 (-[WebHTMLView hasMarkedText]): Likewise.
3003 (-[WebHTMLView unmarkText]): Likewise.
3004 (-[WebHTMLView _selectMarkedText]): Likewise.
3005 (-[WebHTMLView _selectRangeInMarkedText:]): Likewise.
3006 (-[WebHTMLView _selectionIsInsideMarkedText]): Likewise.
3007 (-[WebHTMLView _updateSelectionForInputManager]): Likewise.
3008 (-[WebHTMLView setMarkedText:selectedRange:]): Use direct bridge call instead
3009 of private _selectMarkedDOMRange: method, which would now be trivial.
3010 * WebView.subproj/WebHTMLViewInternal.h: Remove unneeded
3012 2004-08-10 Darin Adler <darin@apple.com>
3016 - change name of WebMakeCollectable to WebNSRetainCFRelease so it fits into the
3017 "NS and CF retain counts are separate" mental model, rather than the "think about
3018 how garbage collection works" one
3020 * Misc.subproj/WebKitNSStringExtras.m: (+[NSString _web_encodingForResource:]): Rename.
3021 * Misc.subproj/WebNSObjectExtras.h: (WebNSRetainCFRelease): Ditto.
3022 * Misc.subproj/WebNSURLExtras.m:
3023 (+[NSURL _web_URLWithData:relativeToURL:]): Ditto.
3024 (-[NSURL _web_URLWithLowercasedScheme]): Ditto.
3026 2004-08-09 Trey Matteson <trey@apple.com>
3028 3756599 - REGRESSION: hit assertion in KWQPageState invalidate
3030 By inspection I found a flaw in the recently added logic, although
3031 I have no steps to repro. My theoretical explanation is that we would
3032 get two errors and go through _receivedMainResourceError: twice, which
3033 would cause the pageState to be invalidated twice, which is the only
3034 way I can see to hit the assert.
3038 * WebView.subproj/WebFrame.m:
3039 (-[WebFrame _receivedMainResourceError:]): Clear the pageState out
3040 of the history item after it's been invalidated by WebCore.
3042 2004-08-09 Richard Williamson <rjw@apple.com>
3044 Inspired by Trey we have a much better approach for conditionally
3045 linking Quart.framework. Instead of multiple targets we use
3046 `` to invoke some inline script to extend COMMON_LDFLAGS as
3047 necessary. Thanks Trey!
3051 * WebKit.pbproj/project.pbxproj:
3053 2004-08-09 Trey Matteson <trey@apple.com>
3055 Hookup UI for "Continuous Spelling" menu item.
3057 Reviewed by Richard.
3059 * WebView.subproj/WebView.m:
3060 (-[WebView validateUserInterfaceItem:]): Enable and check the
3061 menu item to reflect our state.
3062 (-[WebView toggleContinuousSpellChecking:]): Change type to
3063 IBAction, just cosmetic.
3064 * WebView.subproj/WebViewPrivate.h:
3066 2004-08-08 Trey Matteson <trey@apple.com>
3068 3745023 - Safari crashes trying to access anchor while downloading
3070 I bet this is behind a few other crashers as well. In this bug the start of the
3071 download leaves a KWQPageState hanging around, and when that is freed it damages
3072 the part and view. If you're still using that page, you're dead.
3074 The fix is to properly invalidate the PageState when we receive an error before
3075 reaching WebFrameCommitted state. Normally this happens when a page is reheated
3076 from the PageState, but in this case we never manage to leave the page to begin
3077 with, although we've already created the PageState.
3079 Other errors besides the synthetic one download generates would have caused similar
3080 crashing. Another example would be clicking on a second link before the load
3081 caused by clicking on the first link reached committed state.
3085 * WebView.subproj/WebDataSource.m:
3086 (-[WebDataSource _receivedMainResourceError:complete:]): Let the frame do the
3087 main work (since it has access to the pageCache state). Also renamed to make
3088 it clear that this is about an error for the main resource.
3089 * WebView.subproj/WebDataSourcePrivate.h:
3090 * WebView.subproj/WebFrame.m:
3091 (-[WebFrame _receivedMainResourceError:]): Let WC know about the failure, as
3092 the DataSource used to, but now pass the pageCache state along too.
3093 * WebView.subproj/WebFramePrivate.h:
3094 * WebView.subproj/WebMainResourceClient.m:
3095 (-[WebMainResourceClient receivedError:]): Call renamed method.
3096 (-[WebMainResourceClient cancelWithError:]): Ditto.
3098 2004-08-08 Vicki Murley <vicki@apple.com>
3100 Reviewed by vicki (changes by rjw)
3102 - make "weak" linking with Quartz work with buildit
3104 * WebKit.pbproj/project.pbxproj:
3106 2004-08-06 Ken Kocienda <kocienda@apple.com>
3110 Finish off spellchecking support to HTML editing. Includes work to
3111 enable continuous spellchecking.
3113 * WebCoreSupport.subproj/WebBridge.m:
3114 (-[WebBridge isContinuousSpellCheckingEnabled]): Simple bridge method.
3115 * WebCoreSupport.subproj/WebTextRenderer.m:
3116 (-[WebTextRenderer drawLineForMisspelling:withWidth:]): New method to add
3117 AppKit-style misspelling underline.
3121 2004-08-05 Darin Adler <darin@apple.com>
3123 * WebView.subproj/WebHTMLView.m: Added a list of methods that NSTextView implements that we don't.
3126 2004-08-05 Chris Blumenberg <cblu@apple.com>
3128 Fixed unnecessary import of NSURLFileTypeMappings.
3130 * WebView.subproj/WebMainResourceClient.m:
3132 2004-08-05 Richard Williamson <rjw@apple.com>
3134 Make builds conditionally include -framework Quartz.
3138 * WebKit.pbproj/project.pbxproj:
3140 2004-08-04 Darin Adler <darin@apple.com>
3142 - fixed broken Deployment build
3144 * Carbon.subproj/HIWebView.m: (Click):
3145 Remove code that checks err variable before setting it.
3147 2004-08-03 Richard Williamson <rjw@apple.com>
3149 First cut at dirt simple PDF support. This feature
3150 depends on Quartz.framework (parent of PDFKit), which only exists
3151 on Tiger. So, we "weak" link against Quartz.
3153 We do very basic PDF rendering. Coming up are support for
3154 "Find..." and linearized PDF (incremental). Linearized PDF
3155 support will require API changes in PDFKit.
3157 No UI is added to Safari, yet.
3161 * WebKit.pbproj/project.pbxproj:
3162 * WebView.subproj/WebDataSource.m:
3163 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
3164 * WebView.subproj/WebFrameView.m:
3165 (+[WebFrameView _viewTypesAllowImageTypeOmission:]):
3166 * WebView.subproj/WebPDFRepresentation.h: Added.
3167 * WebView.subproj/WebPDFRepresentation.m: Added.
3168 (-[WebPDFRepresentation finishedLoadingWithDataSource:]):
3169 (-[WebPDFRepresentation canProvideDocumentSource]):
3170 (-[WebPDFRepresentation documentSource]):
3171 (-[WebPDFRepresentation title]):
3172 * WebView.subproj/WebPDFView.h: Added.
3173 * WebView.subproj/WebPDFView.m: Added.
3174 (-[WebPDFView initWithFrame:]):
3175 (-[WebPDFView setDataSource:]):
3176 (-[WebPDFView dataSourceUpdated:]):
3177 (-[WebPDFView setNeedsLayout:]):
3178 (-[WebPDFView layout]):
3179 (-[WebPDFView viewWillMoveToHostWindow:]):
3180 (-[WebPDFView viewDidMoveToHostWindow]):
3182 Copied fix from Jaguar carbon/cocoa work.
3184 Reviewed by Darin (Jaguar version)
3186 * Carbon.subproj/CarbonWindowAdapter.h:
3187 * Carbon.subproj/CarbonWindowAdapter.m:
3188 (-[CarbonWindowAdapter relinquishFocus]):
3189 * Carbon.subproj/HIWebView.m:
3191 (OwningWindowChanged):
3194 2004-08-03 David Hyatt <hyatt@apple.com>
3196 Add the text/xsl MIME type as one that can be displayed.
3200 * WebView.subproj/WebDataSource.m:
3201 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
3202 * WebView.subproj/WebFrameView.m:
3203 (+[WebFrameView _viewTypesAllowImageTypeOmission:]):
3205 2004-08-03 Maciej Stachowiak <mjs@apple.com>
3209 - implemented enough of the NSTextInput protocol and added the
3210 proper calls to NSInputManager to allow input methods to
3211 work. However, the text is not marked yet.
3213 * WebView.subproj/WebHTMLViewInternal.h: Added new fields to track
3215 * WebView.subproj/WebHTMLView.m:
3216 (-[WebHTMLView markedRange]): Implemented
3217 (-[WebHTMLView conversationIdentifier]): Implemented
3218 (-[WebHTMLView hasMarkedText]): Implemented
3219 (-[WebHTMLView unmarkText]): Implemented
3220 (-[WebHTMLView setMarkedText:selectedRange:]): Implemented - does
3221 not yet handle attributes in attributed strings
3222 (-[WebHTMLView insertText:]): Modified to handle replacing or abandoning
3223 the marked text when set.
3224 (-[WebHTMLView _selectMarkedText]): new helper method, self-explanatory
3225 (-[WebHTMLView _setMarkedDOMRange:]): hitto.
3226 (-[WebHTMLView _selectRangeInMarkedText:]): ditto
3227 (-[WebHTMLView _discardMarkedText]): ditto
3228 (-[WebHTMLView _selectionIsInsideMarkedText]): ditto
3229 (-[WebHTMLView _updateSelectionForInputManager]): ditto
3231 - did a bit of refactoring while I was in here.
3233 * WebView.subproj/WebHTMLView.m:
3234 (-[WebHTMLView _shouldReplaceSelectionWithText:givenAction:]): added this new
3235 helper method to simplify the common case of calling the shouldInsertText: delegate
3236 (-[WebHTMLView pasteAsPlainText:]): use it
3237 (-[WebHTMLView insertTab:]): ditto
3238 (-[WebHTMLView insertNewline:]): ditto
3239 (-[WebHTMLView _changeWordCaseWithSelector:]): ditto
3240 (-[WebHTMLView _changeSpellingToWord:]): ditto
3241 (-[WebHTMLView _selectionChanged]): ditto
3243 2004-08-03 Chris Blumenberg <cblu@apple.com>
3245 Fixed: <rdar://problem/3572737> Images not resizing at www.bmx-test.com (spoof nofix)
3249 * WebCoreSupport.subproj/WebImageRendererFactory.m:
3250 (-[WebImageRendererFactory supportedMIMETypes]): hard code image/pjpeg to the list of image mime types that we can handle
3252 2004-08-03 Darin Adler <darin@apple.com>
3256 - fixed <rdar://problem/3740937> ER: A way to turn a DOMRange into text (equivalent of -innerText)
3258 * DOM.subproj/DOMPrivate.h: Added.
3259 * WebKit.pbproj/project.pbxproj: Added DOMPrivate.h.
3260 * copy-webcore-files-to-webkit: Added DOMPrivate.h.
3262 2004-08-02 John Sullivan <sullivan@apple.com>
3266 WebKit part of fix for <rdar://problem/3631868> NSToolbar adoption:
3267 Tab key should cycle around toolbar and page content
3269 * WebView.subproj/WebHTMLView.m:
3270 removed overrides of nextKeyView and previousKeyView
3271 (-[WebHTMLView nextValidKeyView]):
3272 call super only if we can't move the focus within the frame hierarchy
3273 (-[WebHTMLView previousValidKeyView]):
3275 * WebView.subproj/WebHTMLViewInternal.h:
3276 removed nextKeyViewAccessShouldMoveFocus ivar
3278 2004-08-02 Ken Kocienda <kocienda@apple.com>
3282 Update name of firstResponderIsSelfOrDescendantView, adding _web_ prefix to this SPI call.
3284 Do some work to make caret blinking in newly-created editable WebView's that are
3285 similar in structure to Blot more "automatic".
3287 * Misc.subproj/WebNSViewExtras.h: Change name of firstResponderIsSelfOrDescendantView. Add _web_ prefix.
3288 * Misc.subproj/WebNSViewExtras.m:
3289 (-[NSView _web_firstResponderIsSelfOrDescendantView]): Name change.
3290 (-[NSView _web_firstResponderCausesFocusDisplay]): Adds an additional check for whether the view's
3291 is first responder. This helps to make the focus setting in viewDidMoveToWindow work right.
3292 * WebView.subproj/WebHTMLView.m:
3293 (-[WebHTMLView updateFocusDisplay]): Use _web_firstResponderCausesFocusDisplay now instead of
3294 firstResponderIsSelfOrDescendantView.
3295 (-[WebHTMLView viewDidMoveToWindow]): Schedule call to updateFocusDisplay for the next crank of the
3296 run loop. The reason is that placing the caret in the just-installed view requires the HTML/XML
3297 document to be available on the WebCore side, but it is not at the time this code is running.
3298 However, it will be there on the next crank of the run loop. Doing this helps to make a
3299 blinking caret appear in a new, empty window "automatic".
3300 (-[WebHTMLView performKeyEquivalent:]): _web_firstResponderIsSelfOrDescendantView name change.
3301 * WebView.subproj/WebView.m:
3302 (-[WebView _performResponderOperation:with:]): _web_firstResponderIsSelfOrDescendantView name change.
3304 2004-07-29 Maciej Stachowiak <mjs@apple.com>
3308 Added stubbed-out versions of all the NSTextInput protocol
3309 methods, and put comments in places where we will need to call the
3310 input manager to make input methods work 100%.
3312 * WebCoreSupport.subproj/WebBridge.m:
3313 (-[WebBridge respondToChangedSelection]):
3314 * WebView.subproj/WebHTMLView.m:
3315 (-[WebHTMLView mouseDown:]):
3316 (-[WebHTMLView mouseDragged:]):
3317 (-[WebHTMLView mouseUp:]):
3318 (-[WebHTMLView _interceptEditingKeyEvent:]):
3319 (-[WebHTMLView keyDown:]):
3320 (-[WebHTMLView _selectionChanged]):
3321 (-[WebHTMLView _delegateDragSourceActionMask]):
3322 (-[WebHTMLView validAttributesForMarkedText]):
3323 (-[WebHTMLView characterIndexForPoint:]):
3324 (-[WebHTMLView firstRectForCharacterRange:]):
3325 (-[WebHTMLView selectedRange]):
3326 (-[WebHTMLView markedRange]):
3327 (-[WebHTMLView attributedSubstringFromRange:]):
3328 (-[WebHTMLView conversationIdentifier]):
3329 (-[WebHTMLView hasMarkedText]):
3330 (-[WebHTMLView unmarkText]):
3331 (-[WebHTMLView setMarkedText:selectedRange:]):
3332 (-[WebHTMLView doCommandBySelector:]):
3333 (-[WebHTMLView insertText:]):
3334 * WebView.subproj/WebHTMLViewInternal.h:
3335 * WebView.subproj/WebView.m:
3339 2004-07-29 Darin Adler <darin@apple.com>
3343 - fill in some unimplemented methods
3345 * WebView.subproj/WebHTMLView.m:
3346 (-[WebHTMLView moveToBeginningOfDocument:]): Implement, using new document granularity.
3347 (-[WebHTMLView moveToBeginningOfDocumentAndModifySelection:]): Ditto.
3348 (-[WebHTMLView moveToBeginningOfParagraph:]): Implement, even though the underlying WebCore
3349 code is not yet implemented.
3350 (-[WebHTMLView moveToBeginningOfParagraphAndModifySelection:]): Ditto.
3351 (-[WebHTMLView moveToEndOfDocument:]): More of the same.
3352 (-[WebHTMLView moveToEndOfDocumentAndModifySelection:]): Ditto.
3353 (-[WebHTMLView moveToEndOfParagraph:]): More of the same.
3354 (-[WebHTMLView moveToEndOfParagraphAndModifySelection:]): Ditto.
3355 (-[WebHTMLView pageDown:]): Added comment describing desired behavior.
3356 (-[WebHTMLView pageUp:]): Ditto.
3357 (-[WebHTMLView copyFont:]): Ditto.
3358 (-[WebHTMLView pasteFont:]): Ditto.
3359 (-[WebHTMLView changeAttributes:]): Ditto.
3360 (-[WebHTMLView indent:]): Ditto.
3362 2004-07-28 Chris Blumenberg <cblu@apple.com>
3364 Fixed: <rdar://problem/3737864> Can not download image from web by using drag and drop
3368 * Misc.subproj/WebNSPasteboardExtras.m:
3369 (-[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
3371 2004-07-28 Maciej Stachowiak <mjs@apple.com>
3375 - avoid triggering an assertion when using dead keys (like option-e)
3377 * WebView.subproj/WebHTMLView.m:
3378 (-[WebHTMLView insertText:]): Don't pass zero-length strings to
3379 WebCore. Dead-key input seems to insert empty strings as a side
3382 2004-07-28 Trey Matteson <trey@apple.com>
3384 Spellchecking, Part I. Basic spellcheck is working. Spelling panel is hooked up.
3386 At this point, no special marking of misspellings, no grammar check, no context
3387 menu integration, no "check continually" mode.
3391 * WebCoreSupport.subproj/WebBridge.m:
3392 (-[WebBridge spellCheckerDocumentTag]): Typical bridge glue.
3393 * WebView.subproj/WebHTMLView.m:
3394 (-[WebHTMLView validateUserInterfaceItem:]): Validate various spelling actions.
3395 (-[WebHTMLView checkSpelling:]): Call WC for real work, update panel.
3396 (-[WebHTMLView showGuessPanel:]): Show panel, call WC for real work.
3397 (-[WebHTMLView _changeSpellingToWord:]): Apply correction to our doc.
3398 (-[WebHTMLView changeSpelling:]): Simple pass through to above method.
3399 (-[WebHTMLView ignoreSpelling:]): Tell checker to ignore the word.
3400 * WebView.subproj/WebView.m:
3401 (-[WebView _close]): Call AK's closeSpellDocumentWithTag: for proper cleanup.
3403 2004-07-27 John Sullivan <sullivan@apple.com>
3407 WebKit part of fix for <rdar://problem/3622268> Reload failed pages when a
3408 network problem is corrected, inc. using Network Diagnostics
3410 * WebView.subproj/WebFrame.m:
3411 (-[WebFrame reload]):
3412 This method did not handle unreachableURLs at all. The reason Safari's Reload
3413 did work with unreachableURLs was that Safari does "reloadObeyingLocationField"
3414 which never actually calls -[WebFrame reload]. Fixed by creating a fresh
3415 request for the previously-unreachable URL.
3417 2004-07-26 Richard Williamson <rjw@apple.com>
3419 Fixed 3739737. When setting the focus to a NSView, set the focus
3420 carbon focus to kControlIndicatorPart. kControlIndicatorPart is a
3421 placeholder value for use to indicate that Cocoa has the focus.
3425 * Carbon.subproj/CarbonWindowAdapter.m:
3426 (-[CarbonWindowAdapter makeFirstResponder:]):
3427 * Carbon.subproj/HIWebView.m:
3431 2004-07-26 Chris Blumenberg <cblu@apple.com>
3433 Fixed: <rdar://problem/3689734> dragging to an editable WebView does not scroll document
3437 * WebView.subproj/WebView.m:
3438 (-[WebView documentViewAtWindowPoint:]): new, factored from draggingDocumentViewAtWindowPoint:
3439 (-[WebView _draggingDocumentViewAtWindowPoint:]): call documentViewAtWindowPoint:
3440 (-[WebView _autoscrollForDraggingInfo:timeDelta:]): forward call to the document view
3441 (-[WebView _shouldAutoscrollForDraggingInfo:]): ditto
3445 2004-07-23 Ken Kocienda <kocienda@apple.com>
3451 <rdar://problem/3738920> Caret blinks in inactive window
3453 As part of the fix, I cleaned up the way we handle special drawing that needs
3454 to be done in the HTML view that is first responder in the key window (e.g the
3455 drawing of text selection highlight and caret blinking).
3457 * WebView.subproj/WebHTMLView.m:
3458 (-[WebHTMLView updateFocusDisplay]): New method that centralizes the changes
3459 we need to make when the first responder-ness of the view or key-ness of the
3461 (-[WebHTMLView viewDidMoveToWindow]): Call new updateFocusDisplay helper.
3462 (-[WebHTMLView windowDidBecomeKey:]): Ditto.
3463 (-[WebHTMLView windowDidResignKey:]): Ditto.
3464 (-[WebHTMLView becomeFirstResponder]): Ditto.
3465 (-[WebHTMLView resignFirstResponder]): Ditto.
3467 2004-07-22 Darin Adler <darin@apple.com>
3469 * Plugins.subproj/npruntime.h: Update with new version from newer JavaScriptCore.
3471 2004-07-21 Ken Kocienda <kocienda@apple.com>
3475 * WebCoreSupport.subproj/WebBridge.m: Remove interceptEditingKeyEvent
3476 bridge call over. This method of handling editing key events is now
3478 * WebView.subproj/WebHTMLView.m:
3479 (-[WebHTMLView performKeyEquivalent:]): Send key event over to the
3480 DOM if this view is or contains the first responder. This now
3481 happens unconditionally.
3482 (-[WebHTMLView keyDown:]): Send key event to the DOM, then see if
3483 the web view wants to interpret it an an editing key event. This
3484 is the new place to intercept key events for editing.
3486 2004-07-21 Ken Kocienda <kocienda@apple.com>
3490 Add implementations for these methods. Formerly, they logged an error.
3492 * WebView.subproj/WebHTMLView.m:
3493 (-[WebHTMLView moveToBeginningOfLine:]):
3494 (-[WebHTMLView moveToBeginningOfLineAndModifySelection:]):
3495 (-[WebHTMLView moveToEndOfLine:]):
3496 (-[WebHTMLView moveToEndOfLineAndModifySelection:]):
3498 2004-07-21 Ken Kocienda <kocienda@apple.com>
3502 Added some more handlers for standard Cocoa key bindings.
3503 These are "secrets" of NSText, meaning they are not public API, but we choose to mimic.
3505 * WebView.subproj/WebHTMLView.m:
3506 (-[WebHTMLView moveToBeginningOfDocumentAndModifySelection:]):
3507 (-[WebHTMLView moveToBeginningOfLineAndModifySelection:]):
3508 (-[WebHTMLView moveToBeginningOfParagraphAndModifySelection:]):
3509 (-[WebHTMLView moveToEndOfDocumentAndModifySelection:]):
3510 (-[WebHTMLView moveToEndOfLineAndModifySelection:]):
3511 (-[WebHTMLView moveToEndOfParagraph:]):
3512 (-[WebHTMLView moveToEndOfParagraphAndModifySelection:]):
3513 * WebView.subproj/WebView.h: Add these declarations to the comment in the header listing
3514 the responder-like methods we support.
3515 * WebView.subproj/WebView.m:
3516 (-[WebView moveToBeginningOfParagraphAndModifySelection:]):
3517 (-[WebView moveToEndOfParagraphAndModifySelection:]):
3518 (-[WebView moveToBeginningOfLineAndModifySelection:]):
3519 (-[WebView moveToEndOfLineAndModifySelection:]):
3520 (-[WebView moveToBeginningOfDocumentAndModifySelection:]):
3521 (-[WebView moveToEndOfDocumentAndModifySelection:]):
3523 2004-07-20 Ken Kocienda <kocienda@apple.com>
3527 * Misc.subproj/WebNSEventExtras.h: Added helper that returns whether
3528 a key event has a binding in the key binding manager.
3529 * Misc.subproj/WebNSEventExtras.m:
3530 (-[NSEvent _web_keyBindingManagerHasBinding]): New helper mentioned above.
3531 * Plugins.subproj/npruntime.h:
3532 * WebView.subproj/WebHTMLView.m:
3533 (-[WebHTMLView performKeyEquivalent:]): Add a check of whether the key event
3534 has a binding in the key binding manager. This works around the fact that
3535 NSResponder's interpretKeyEvents does not return a value telling whether
3536 or not the key was handled. This now makes it possible for us to trap
3537 modified key events we know we can handle (like those command-key + arrow events
3538 used for text navigation), while letting all others pass.
3540 2004-07-20 Chris Blumenberg <cblu@apple.com>
3543 <rdar://problem/3580589> REGRESSION (1.1-1.2): can't open a new window for an image that has not loaded
3544 <rdar://problem/3612691> Missing image icons (blue ?) lack context menu
3548 * WebView.subproj/WebDefaultContextMenuDelegate.m:
3549 (-[WebDefaultUIDelegate webView:contextMenuItemsForElement:defaultMenuItems:]): if there is no image, but there is an image URL, provide image context menu items besides "Copy Image"
3550 * WebView.subproj/WebHTMLView.m:
3551 (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]): don't drag an image with an actual image
3552 (-[WebHTMLView _mayStartDragAtEventLocation:]): ditto
3554 2004-07-20 Maciej Stachowiak <mjs@apple.com>
3558 <rdar://problem/3721690> REGRESSION (125.7-148u) clicking on links at macosx.apple.com/Builds does not load new page in frame
3560 * Plugins.subproj/npruntime.h:
3561 * WebCoreSupport.subproj/WebBridge.m:
3562 (-[WebBridge canTargetLoadInFrame:]): Don't apply the restrictions to frames
3563 that are in the same window (Mozilla does this too).
3565 2004-07-20 Richard Williamson <rjw@apple.com>
3567 Fix for 3728558. Fixed the key event handling in the carbon/cocoa
3568 integration code. This does not fix the arrow keys not working on
3569 initial focus problem also mentioned in the bug.
3571 Bumped the version of the NP function structures.
3575 * Carbon.subproj/CarbonUtils.m:
3578 * Carbon.subproj/HIWebView.m:
3579 (OwningWindowChanged):
3581 * Plugins.subproj/npapi.h:
3583 2004-07-20 Trey Matteson <trey@apple.com>
3585 3733698 REGRESSION: sometimes dragging photos on homepage.mac.com leads to an assertion
3587 Relax an assertion, as we ran into a valid case where it's not true.
3591 * WebView.subproj/WebHTMLView.m:
3592 (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
3593 Removing this assert allows for the oddball case of a drag gesture that
3594 starts on one element, but then the element is no longer there when
3595 the drag is about to start.
3597 2004-07-20 Ken Kocienda <kocienda@apple.com>
3603 <rdar://problem/3707505> HTMLCompose: blinking cursor in both an address text field and the message body
3605 * WebView.subproj/WebHTMLView.m:
3606 (-[WebHTMLView setCaretVisible:]): New helper. Calls over bridge to do the work.
3607 (-[WebHTMLView windowDidBecomeKey:]): This function cannot just assume that self is first responder
3608 (and do things like adjusting text background color and restoring focus rings).
3609 First-responder-ness needs to be checked first. Now it is.
3610 (-[WebHTMLView windowDidResignKey:]): Ditto.
3611 (-[WebHTMLView becomeFirstResponder]): Call new helper to make caret visible.
3612 (-[WebHTMLView resignFirstResponder]): Call new helper to make caret invisible.
3614 2004-07-12 Richard Williamson <rjw@apple.com>
3616 Fixed 3721917. The RealPlayer plugin doesn't support the new
3617 NPPVpluginScriptableNPObject variable passed to NPP_GetValue and
3618 incorrectly returns NPERR_NO_ERROR. We interpret this to the
3619 mean the variable has been set. The variable has not been set
3620 and will consequently be uninitialized.
3622 Reviewed by NOBODY (OOPS!).
3624 * Plugins.subproj/WebBaseNetscapePluginView.m:
3625 (-[WebBaseNetscapePluginView pluginScriptableObject]):
3627 2004-07-19 Ken Kocienda <kocienda@apple.com>
3633 <rdar://problem/3707504> HTMLCompose: key events are stolen by Web(HTML)View
3635 * Misc.subproj/WebNSViewExtras.h:
3636 * Misc.subproj/WebNSViewExtras.m:
3637 (-[NSView firstResponderIsSelfOrDescendantView]): New helper to
3638 (-[WebHTMLView performKeyEquivalent:]): Do not pass key events through to the editing
3639 key handler unless the WebHTMLView is first responder or contains the first responder.
3640 This prevents the "stealing" of key events mentioned in the bug.
3641 * WebView.subproj/WebView.m:
3642 (-[WebView _performResponderOperation:with:]): Uses the new firstResponderIsSelfOrDescendantView
3643 helper. The code I replaced used the same logic as the new helper.
3647 2004-07-12 Maciej Stachowiak <mjs@apple.com>
3651 <rdar://problem/3673988>: (REGRESSION(141-144): connection assertion failure at http://traffic.511.org/sfgate)
3653 * WebView.subproj/WebBaseResourceHandleDelegate.m:
3654 (-[WebBaseResourceHandleDelegate connectionDidFinishLoading:]):
3655 Don't check connection consistency if this load got cancelled
3656 while finishing, because in this case we have cleared the
3657 connection field already. This can happen when a redirect fires
3658 from an onload handler.
3660 2004-07-12 Maciej Stachowiak <mjs@apple.com>
3664 <rdar://problem/3632570>: (REGRESSION: SocialText.net wiki keeps asking for auth, even though pages load)
3666 * Misc.subproj/WebIconLoader.m:
3667 (-[WebIconLoader didReceiveAuthenticationChallenge:]): Ignore the challenge - we don't
3668 want an auth panel for favicons.
3669 (-[WebIconLoader didCancelAuthenticationChallenge:]): Ignore cancel, since we are ignoring
3672 2004-07-09 Chris Blumenberg <cblu@apple.com>
3674 Allowed my change for 3715785 to compile on Jaguar.
3676 Reviewed by kocienda.
3678 * WebCoreSupport.subproj/WebBridge.m:
3679 (-[WebBridge canTargetLoadInFrame:]): don't use the DOM API since it doesn't exist on Jaguar, instead call the new domain method on the bridge
3681 2004-07-09 Ken Kocienda <kocienda@apple.com>
3685 * Plugins.subproj/npruntime.h: Updated license to lawyer-approved
3686 joint Apple-Mozilla BSD-style license.
3688 2004-07-08 Chris Blumenberg <cblu@apple.com>
3690 Fixed: <rdar://problem/3720728> REGRESSION (125.8-146): Crash moving mouse over plugin at manray-photo.com
3694 * Plugins.subproj/WebBaseNetscapePluginView.m:
3695 (-[WebBaseNetscapePluginView pluginScriptableObject]): don't call NPP_GetValue unless the plug-in implements it
3697 2004-07-08 Chris Blumenberg <cblu@apple.com>
3699 Fixed: <rdar://problem/3706296> VIP: ifilm.com crashing reproducibly with Safari
3701 Reviewed by kocienda.
3703 * Plugins.subproj/WebNetscapePluginPackage.m:
3704 (-[WebNetscapePluginPackage launchRealPlayer]): don't release a NULL appURL
3706 2004-07-08 Chris Blumenberg <cblu@apple.com>
3708 Fixed: <rdar://problem/3650140> reproducible assertion failure going to plugin page with JavaScript disabled
3712 * Plugins.subproj/WebBaseNetscapePluginView.m:
3713 (-[WebBaseNetscapePluginView evaluateJavaScriptPluginRequest:]): don't call NPP_NewStream and other stream methods if there is no JS result to deliver. This is what Mozilla does.
3714 (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:]): Return NPERR_GENERIC_ERROR if JS is disabled. This is what Mozilla does.
3718 2004-07-07 Trey Matteson <trey@apple.com>
3720 3719051 - Safari doesn't update form inputs when a page was refreshed by javascript window.location
3721 ... and at least 5 other cases in Radar
3723 Very similar problem to the Harvard PIN bug. We need to be sure
3724 to not carry any state over when we are processing a client
3725 redirect, which reuses the same WebHistoryItem.
3729 * WebView.subproj/WebFrame.m:
3730 (-[WebFrame _transitionToCommitted:]): Comment
3731 (-[WebFrame _opened]): Clear form and scroll state on client redirect.
3733 2004-07-06 Chris Blumenberg <cblu@apple.com>
3735 Fixed: <rdar://problem/3715785> multiple frame injection vulnerability reported by Secunia, affects almost all browsers
3737 Reviewed by john, trey, kocienda.
3739 * WebCoreSupport.subproj/WebBridge.m:
3740 (-[WebBridge canTargetLoadInFrame:]): new method, return YES if the requesting frame is local, the target frame is an entire window or if the domain of the parent of the targeted frame equals this domain
3741 (-[WebBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]): call canTargetLoadInFrame: to make sure we can load the request
3742 (-[WebBridge postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]): ditto
3744 2004-07-06 John Sullivan <sullivan@apple.com>
3748 - fixed <rdar://problem/3717147> folder icon used for error page in back/forward
3749 menu when iTunes is not installed
3751 * WebView.subproj/WebFrame.m:
3752 (-[WebFrame _transitionToCommitted:]):
3753 When displaying the error page for an unreachable URL, leave the requested URL
3754 in the WebHistoryItem; don't clobber it with a bogus one that represents the
3755 error page. This not only avoids the wrong-icon problem, but should also help
3756 in cases where an unreachable URL becomes reachable later on.
3758 2004-07-06 Trey Matteson <trey@apple.com>
3760 3716053 - www.theage.com.au has extra back/forward items due to ads
3762 The real change was in WebKit. Here was are just renaming a method and folding
3763 all the WebFrameLoadTypeOnLoadEvent uses to be WebFrameLoadTypeInternal, since there
3764 was never any difference anyway.
3768 * WebCoreSupport.subproj/WebBridge.m:
3769 (-[WebBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]): rename part of the method.
3770 * WebView.subproj/WebFrame.m: Nuke WebFrameLoadTypeOnLoadEvent.
3771 (-[WebFrame _transitionToCommitted:]):
3772 (-[WebFrame _checkLoadCompleteForThisFrame]):
3773 (-[WebFrame _loadItem:withLoadType:]):
3774 (-[WebFrame _itemForRestoringDocState]):
3775 * WebView.subproj/WebFramePrivate.h:
3777 2004-07-06 Ken Kocienda <kocienda@apple.com>
3781 Only register the editing delegate for those notifications for which it implements the callbacks.
3783 * WebView.subproj/WebView.m:
3784 (-[WebView registerForEditingDelegateNotification:selector:]):
3785 (-[WebView setEditingDelegate:]):
3787 2004-07-06 Trey Matteson <trey@apple.com>
3789 3294652 - Failed drag of links doesn't slide back
3791 The only reason for this is that because of some hacks, we lie to
3792 AK about the drag image offset, which means we slide back to
3793 slightly the wrong place. But it's very minor, so we should
3798 * WebView.subproj/WebHTMLView.m:
3799 (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
3802 2004-07-02 Darin Adler <darin@apple.com>
3806 - fixed problem where tabsToLinks and privateBrowsingEnabled did not work with non-
3807 standard WebPreferences objects
3809 * WebView.subproj/WebPreferences.m:
3810 (-[WebPreferences _valueForKey:]): New helper.
3811 (-[WebPreferences _stringValueForKey:]): Use _valueForKey.
3812 (-[WebPreferences _integerValueForKey:]): Use _valueForKey.
3813 (-[WebPreferences _boolValueForKey:]): Use _valueForKey.
3814 (-[WebPreferences tabsToLinks]): Use _boolValueForKey; this is the bug fix.
3815 (-[WebPreferences privateBrowsingEnabled]): Ditto.
3816 (+[WebPreferences _setIBCreatorID:]): Use copy instead of retain for keeping an NSString.
3818 2004-07-01 Trey Matteson <trey@apple.com>
3820 3556159 - Crashes in -[WebFrame(WebPrivate) _transitionToCommitted:] at www.mastercardbusiness.com
3822 We know from the line number of the crash that it is due to [self parentFrame]==nil.
3824 Looking at the HTML and that of the related bugs, they do special stuff with onload
3825 handlers. It is no longer repro, presumably because the includes JS files changed,
3826 as the bugs only included the top level HTML. I suspect that the problem is that the
3827 WebFrameLoadTypeOnLoadEvent case was added, and in some weird sequence specific to
3828 MasterCard, they hit a case where we would be in WebFrameLoadTypeOnLoadEvent mode but
3829 not have a parent frame.
3831 So we guard in the code against hitting a nil parentFrame, and log an error just in
3832 case this ever crops up again and we can learn more about it.
3834 Reviewed by Richard.
3836 * WebView.subproj/WebFrame.m:
3837 (-[WebFrame _transitionToCommitted:]): Guard against nil parentFrame.
3839 2004-07-01 John Sullivan <sullivan@apple.com>
3844 <rdar://problem/3709110> REGRESSION (Tiger): Pressing Tab key to move focus
3845 onto links skips every other link
3846 <rdar://problem/3692576> focus ring is in odd place after clicking RSS button
3847 with "Tab to links" enabled
3849 WebHTMLView has some trickery by which we advance the focused link when nextKeyView
3850 or previousKeyView is called within nextValidKeyView or previousValidKeyView. This
3851 broke in Tiger because AppKit now (sometimes at least) calls nextKeyView more than
3852 once within nextValidKeyView. Fixed 3709110 by making sure we only advance the focus
3853 once within a call to nextValidKeyView or previousValidKeyView.
3855 Also, this same trickery didn't work right with hidden views. Fixed 3692576 by checking
3856 whether the view is hidden and bypassing the focus-moving trickery in that case.
3858 * WebView.subproj/WebHTMLViewInternal.h:
3859 renamed inNextValidKeyView -> nextKeyViewAccessShouldMoveFocus
3861 * WebView.subproj/WebHTMLView.m:
3862 (-[WebHTMLView nextKeyView]):
3863 now clears nextKeyViewAccessShouldMoveFocus
3864 (-[WebHTMLView previousKeyView]):
3866 (-[WebHTMLView nextValidKeyView]):
3867 now doesn't set focus-moving trigger ivar if view is hidden or has hidden ancestor
3868 (-[WebHTMLView previousValidKeyView]):
3871 2004-06-30 Trey Matteson <trey@apple.com>
3873 Dragging within a web view should be allowed to start when the window isn't key.
3875 A few months ago, Chris made this work, but it relied on the fact that all dragging
3876 was done in WebKit. When WebCore got involved in dragging, it was broken. Now we
3877 have a new scheme that gets it working again that properly involves WebCore.
3879 The general idea is that when AK asks us whether to accept the first mouse and do
3880 "delayed window ordering", we must consult WC to see if we might start a drag. In
3881 addition, instead of these drags in non-active windows being started as a special
3882 case in WK, they go through the normal WK-WC drag machinery. Finally to work in
3883 frames we have to drill to the deepest hit view in acceptsFirstMouse, because previous
3884 hacks to hitTest make the top-most WebHTMLView field all events for its view tree
3885 (which leads to it fielding all acceptFirstMouse messages too).
3889 * WebCoreSupport.subproj/WebBridge.m:
3890 (-[WebBridge mayStartDragAtEventLocation:]): Glue change for new arg type.
3891 * WebView.subproj/WebHTMLView.m:
3892 (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
3893 firstMouseDownEvent ivar is no longer needed.
3894 (-[WebHTMLView _mayStartDragAtEventLocation:]): Receives a location instead of a drag
3895 event, since we need to do this work when we have no drag event. This means the
3896 check of the delay for text dragging is moved down to WebCore.
3897 (-[WebHTMLView acceptsFirstMouse:]): Respond based on whether we might do a drag.
3898 This includes drilling to the deepest view the event hits, whereas we used to only
3899 respond considering the topmost WebHTMLView.
3900 (-[WebHTMLView shouldDelayWindowOrderingForEvent:]): Ditto.
3901 (-[WebHTMLView mouseDown:]): Get rid of special case where some activating
3902 mouseDown events weren't sent to WC. We need to go through the whole pipeline
3903 now to get a drag started properly.
3904 (-[WebHTMLView mouseDragged:]): Ditto, let WC start the drag.
3905 (-[WebHTMLView mouseUp:]): firstMouseDownEvent ivar is no longer needed.
3906 * WebView.subproj/WebHTMLViewInternal.h:
3907 * WebView.subproj/WebHTMLViewPrivate.h:
3909 2004-06-25 Trey Matteson <trey@apple.com>
3911 Added new utility method.
3915 * WebView.subproj/WebFrame.m:
3916 (-[WebFrame _isDescendantOfFrame:]): New code.
3917 * WebView.subproj/WebFramePrivate.h:
3919 2004-06-24 Richard Williamson <rjw@apple.com>
3921 Fixed <rdar://problem/3710313>: CGContext not zeroed when WebImageRenderer is copied
3922 The context ivar of WebImageRenderer wasn't being nil when the object was copied.
3926 * WebCoreSupport.subproj/WebImageRenderer.m:
3927 (-[WebImageRenderer copyWithZone:]):
3928 (-[WebImageRenderer dealloc]):
3929 (-[WebImageRenderer drawImageInRect:fromRect:compositeOperator:context:]):
3931 2004-06-24 Trey Matteson <trey@apple.com>
3933 3672725 - Assertion failure in URLCompletion code with particular set of bookmarks
3935 Problem was caused by a URL with unescaped unicodes getting into
3936 the Bookmarks file, presumably from import from IE. We now test
3937 for this case and convert the data on the way in as if it were
3940 Reviewed by John and Darin.
3942 * History.subproj/WebHistoryItem.m:
3943 (-[WebHistoryItem initFromDictionaryRepresentation:]):
3945 2004-06-24 Trey Matteson <trey@apple.com>
3947 3704950 drag image in DB ConfigBar has horizontal graphics turd WebCore JavaScript
3949 When we generate a drag image (or a selection image too, for that matter) we
3950 translate the CTM using a CG call. Later, WebImageRenderer adjusts the pattern
3951 phase based on the CTM of the focused view, which doesn't include our translate.
3952 So we must inform WebKit about the additional phase adjustment.
3956 * WebCoreSupport.subproj/WebGraphicsBridge.h:
3957 * WebCoreSupport.subproj/WebGraphicsBridge.m:
3958 (-[WebGraphicsBridge setAdditionalPatternPhase:]): New trivial setter.
3959 (-[WebGraphicsBridge additionalPatternPhase]): ...and getter.
3960 * WebCoreSupport.subproj/WebImageRenderer.m:
3961 (-[WebImageRenderer tileInRect:fromPoint:context:]): Take any additional phase
3962 adjustment into account when setting phase.
3964 2004-06-24 Trey Matteson <trey@apple.com>
3966 3693420 - onbeforecut and onbeforepaste need real implementaion
3970 * WebView.subproj/WebHTMLView.m:
3971 (-[WebHTMLView validateUserInterfaceItem:]): Check with WebCore
3972 to see if cut, copy, paste should be enabled.
3974 2004-06-24 John Sullivan <sullivan@apple.com>
3978 - fixed <rdar://problem/3706792> 8A161: Choosing text encoding for
3979 error page opens finder window!?
3981 * WebView.subproj/WebFrame.m:
3982 (-[WebFrame _reloadAllowingStaleDataWithOverrideEncoding:]):
3983 take unreachableURL into account
3985 2004-06-23 Richard Williamson <rjw@apple.com>
3987 Implemented changes for latest npruntime.h.
3988 Made npruntime.h public.
3992 * Plugins.subproj/WebBaseNetscapePluginView.h:
3993 * Plugins.subproj/WebBaseNetscapePluginView.m:
3994 (-[WebBaseNetscapePluginView pluginScriptableObject]):
3995 (-[WebBaseNetscapePluginView forceRedraw]):
3996 (-[WebBaseNetscapePluginView getVariable:value:]):
3997 * Plugins.subproj/WebBaseNetscapePluginViewPrivate.h:
3998 * Plugins.subproj/WebNetscapePluginPackage.m:
3999 (-[WebNetscapePluginPackage load]):
4000 * Plugins.subproj/npapi.h:
4001 * Plugins.subproj/npapi.m:
4003 * Plugins.subproj/npfunctions.h:
4004 * Plugins.subproj/npruntime.h:
4005 * WebKit.pbproj/project.pbxproj:
4007 2004-06-21 Darin Adler <darin@apple.com>
4009 * English.lproj/StringsNotToBeLocalized.txt: Updated for recent changes.
4011 2004-06-21 Chris Blumenberg <cblu@apple.com>
4013 Made WebKitErrorDescriptionPlugInCancelledConnection have its own description string
4014 (Not for software update branch)
4018 * English.lproj/Localizable.strings:
4019 * Misc.subproj/WebKitErrors.m:
4021 2004-06-21 Chris Blumenberg <cblu@apple.com>
4023 Made WebKitErrorDescriptionPlugInCancelledConnection properly reuse an already localized string to avoid loc changes.
4028 * Misc.subproj/WebKitErrors.m:
4030 2004-06-21 Chris Blumenberg <cblu@apple.com>
4032 Fixed: <rdar://problem/3701269> change in error handling behavior from 10.3.3 to 10.3.4 breaks unreleased Adobe PDF plug-in
4036 * Misc.subproj/WebKitErrors.m:
4037 (registerErrors): register string for WebKitErrorPlugInCancelledConnection
4038 * Misc.subproj/WebKitErrorsPrivate.h:
4039 * Plugins.subproj/WebBaseNetscapePluginStream.h:
4040 * Plugins.subproj/WebBaseNetscapePluginStream.m:
4041 (-[WebBaseNetscapePluginStream startStreamWithURL:expectedContentLength:lastModifiedDate:MIMEType:]): use renamed WEB_REASON_PLUGIN_CANCELLED constant
4042 (-[WebBaseNetscapePluginStream destroyStream]): ditto
4043 * Plugins.subproj/WebNetscapePluginRepresentation.m:
4044 (-[WebNetscapePluginRepresentation cancelWithReason:]): if the reason is WEB_REASON_PLUGIN_CANCELLED, cancel the load with WebKitErrorPlugInCancelledConnection
4045 * Plugins.subproj/WebNetscapePluginStream.m:
4046 (-[WebNetscapePluginStream cancelWithReason:]): ditto
4050 2004-06-17 Richard Williamson <rjw@apple.com>
4052 Changed private headers to be pubic for npapi.h and npfunctions.h. That
4053 API was approved but never marked as public in the project file. This change does
4054 not make npruntime.h public, which contains the not yet approved changes
4055 for script-ability of netscape plugins. Unfortunately, that API will not
4060 * WebKit.pbproj/project.pbxproj:
4062 2004-06-17 Trey Matteson <trey@apple.com>
4064 3698514 - coordinates in ondragstart and ondrag events are wrong
4066 This part fixes the ondrag coords. I thought Cocoa passed us the mouse location
4067 in draggedImage:movedTo:, but no, it's the position of the dragged image.
4068 WebCore needs the mouse location, so to calc that we must save away the
4069 offset of the mouse relative to the image when we kick off the drag.
4073 * Misc.subproj/WebNSViewExtras.h:
4074 * Misc.subproj/WebNSViewExtras.m:
4075 (-[NSView _web_dragImage:rect:event:pasteboard:source:offset:]): Add the ability
4076 to return the offset of the cursor wrt to the drag image, since this routine
4077 generates its own drag image and positions it.
4078 * WebView.subproj/WebHTMLView.m:
4079 (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
4080 Calc the offset of the cursor wrt to the drag image in the myriad of ways
4081 that we kick off the drag.
4082 (-[WebHTMLView draggedImage:movedTo:]): Adjust the location by the
4083 offset we save when we kicked off the drag.
4084 (-[WebHTMLView draggedImage:endedAt:operation:]): Ditto.
4085 * WebView.subproj/WebHTMLViewInternal.h:
4086 * WebView.subproj/WebImageView.m:
4087 (-[WebImageView mouseDragged:]): Pass nil for new arg, we don't care.
4089 2004-06-16 David Hyatt <hyatt@apple.com>
4091 In order to support truncation in Emerson, enhance pointToOffset so that it needn't include partial
4092 character glyphs (the left half of a glyph).
4096 * WebCoreSupport.subproj/WebTextRenderer.m:
4097 (-[WebTextRenderer pointToOffset:style:position:reversed:includePartialGlyphs:]):
4098 (-[WebTextRenderer _ATSU_pointToOffset:style:position:reversed:includePartialGlyphs:]):
4099 (-[WebTextRenderer _CG_pointToOffset:style:position:reversed:includePartialGlyphs:]):
4103 2004-06-16 Darin Adler <darin@apple.com>
4105 - fixed <rdar://problem/3696081> REGRESSION: <WebKit/CarbonUtils.h> doesn't build any more
4109 * Carbon.subproj/CarbonUtils.h: Fixed include. Need to include <ApplicationServices/ApplicationServices.h>
4110 to get CGImageRef; can't include an individual header.
4112 2004-06-15 Richard Williamson <rjw@apple.com>