3 2004-10-29 Chris Blumenberg <cblu@apple.com>
5 * WebKit.exp: added _WebPlugInModeKey, forgot to add it earlier
7 2004-10-29 Darin Adler <darin@apple.com>
9 - fixed <rdar://problem/3855573> Remove reference to "WebScriptMethods" from WebScriptObject.h comments
11 * Plugins.subproj/WebScriptObject.h: Removed unneeded #ifdef protection for multiple includes (since
12 this is an Objective-C header and we use #import for those). Fixed comments as requested in the bug
13 report to match the contents of the file.
15 2004-10-27 Ken Kocienda <kocienda@apple.com>
19 Added new SPI for Mail so it can get the behavior it needs when the user hits
20 the return key with the selection in quoted content.
22 * WebView.subproj/WebView.m
23 * WebView.subproj/WebViewPrivate.h
25 2004-10-26 Chris Blumenberg <cblu@apple.com>
27 Fixed exception that Darin encountered in Mail.
31 * Plugins.subproj/WebPluginController.m:
32 (+[WebPluginController plugInViewWithArguments:fromPluginPackage:]): if the plug-in returns a nil view, return nil
34 2004-10-25 Chris Blumenberg <cblu@apple.com>
36 Darin made an internal notification have the Web prefix.
40 * Plugins.subproj/WebBaseNetscapePluginView.m:
41 (-[WebBaseNetscapePluginView addWindowObservers]):
42 (-[WebBaseNetscapePluginView removeWindowObservers]):
43 (ConsoleConnectionChangeNotifyProc):
45 2004-10-25 John Sullivan <sullivan@apple.com>
49 - Cleanup from fix for <rdar://problem/3851676> bookmarks should not hold onto a WebHistoryItem object;
50 eliminated notificationsSuppressed mechanism, which was used only by WebBookmark
52 * History.subproj/WebHistoryItem.m:
53 removed notificationsSuppressed ivar from private data object
54 (-[WebHistoryItem setAlternateTitle:]):
55 remove notificationsSuppressed guard
56 (-[WebHistoryItem setURLString:]):
58 (-[WebHistoryItem setOriginalURLString:]):
60 (-[WebHistoryItem setTitle:]):
62 (-[WebHistoryItem _setLastVisitedTimeInterval:]):
64 (-[WebHistoryItem setNotificationsSuppressed:]):
66 (-[WebHistoryItem notificationsSuppressed]):
69 * History.subproj/WebHistoryItemPrivate.h:
70 removed notificationsSuppressed and setNotificationsSuppressed
72 2004-10-22 Chris Blumenberg <cblu@apple.com>
74 Fixed: <rdar://problem/3851491> installedPlugins being called for a page without plugins
78 * WebView.subproj/WebFrameView.m:
79 (+[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
83 2004-10-22 Ken Kocienda <kocienda@apple.com>
87 * WebKit.pbproj/project.pbxproj: Add GCC_ENABLE_OBJC_GC and GCC_FAST_OBJC_DISPATCH flags.
89 2004-10-21 Darin Adler <darin@apple.com>
93 - fixed <rdar://problem/3847994> REGRESSION: reproducible exception in WebImageRenderer releasePatternColor; afterwards get crash or no more browsing
95 * WebCoreSupport.subproj/WebImageRenderer.m:
96 (-[WebInternalImage createRendererIfNeeded]): Replaced retainOrCopyIfNeeded with this.
97 This returns nil if a copied renderer isn't needed, and returns a new renderer if a copy is.
98 The old version was sometimes returning a WebInternalImage and other times a WebImageRenderer.
99 (-[WebImageRenderer retainOrCopyIfNeeded]): Returns the result of createRendererIfNeeded
100 or retains self and returns self.
102 2004-10-20 Darin Adler <darin@apple.com>
106 - fixed <rdar://problem/3470715> Pattern cache can get huge with use of css background-image in Safari
108 * WebCoreSupport.subproj/WebImageRenderer.h: Change WebImageRenderer to be a subclass of NSObject
109 rather than NSImage and contain a pointer to a WebInternalImage.
110 * WebCoreSupport.subproj/WebImageRenderer.m:
111 (-[WebInternalImage releasePatternColor]): Added. Releases patternColor.
112 (-[WebImageRenderer initWithMIMEType:]): Added. Makes WebInternalImage and then self.
113 (-[WebImageRenderer initWithData:MIMEType:]): Ditto.
114 (-[WebImageRenderer initWithContentsOfFile:]): Ditto.
115 (-[WebImageRenderer dealloc]): Added. Calls releasePatternColor and then releases WebInternalImage.
116 (-[WebImageRenderer image]): Added. Returns pointer to image.
117 (-[WebImageRenderer MIMEType]): Added. Calls through to image.
118 (-[WebImageRenderer TIFFRepresentation]): Ditto.
119 (-[WebImageRenderer frameCount]): Ditto.
120 (-[WebImageRenderer setOriginalData:]): Added. Sets image data pointer.
121 (+[WebImageRenderer stopAnimationsInView:]): Added. Calls through to image.
122 (-[WebImageRenderer incrementalLoadWithBytes:length:complete:]): Ditto.
123 (-[WebImageRenderer size]): Ditto.
124 (-[WebImageRenderer resize:]): Ditto.
125 (-[WebImageRenderer drawImageInRect:fromRect:]): Ditto.
126 (-[WebImageRenderer drawImageInRect:fromRect:compositeOperator:context:]): Ditto.
127 (-[WebImageRenderer stopAnimation]): Ditto.
128 (-[WebImageRenderer tileInRect:fromPoint:context:]): Ditto.
129 (-[WebImageRenderer isNull]): Ditto.
130 (-[WebImageRenderer retainOrCopyIfNeeded]): Ditto.
131 (-[WebImageRenderer increaseUseCount]): Ditto.
132 (-[WebImageRenderer decreaseUseCount]): Ditto.
133 (-[WebImageRenderer flushRasterCache]): Ditto.
134 (-[WebImageRenderer imageRef]): Ditto.
135 (-[WebImageRenderer copyWithZone:]): Ditto.
137 * Misc.subproj/WebNSViewExtras.m: (-[NSView _web_dragImage:rect:event:pasteboard:source:offset:]):
138 Update for slight changes to WebImageRenderer API.
139 * WebCoreSupport.subproj/WebImageRendererFactory.m:
140 (-[WebImageRendererFactory imageRendererWithMIMEType:]): Ditto.
141 (-[WebImageRendererFactory imageRendererWithData:MIMEType:]): Ditto.
142 (-[WebImageRendererFactory imageRendererWithSize:]): Ditto.
143 (-[WebImageRendererFactory imageRendererWithName:]): Ditto.
144 * WebView.subproj/WebImageView.m: (-[WebImageView image]): Ditto.
146 2004-10-20 Chris Blumenberg <cblu@apple.com>
148 Fixed: <rdar://problem/3846943> REGRESSION: JNLP files are rendered instead of downloaded
152 * Plugins.subproj/WebBasePluginPackage.h:
153 * Plugins.subproj/WebBasePluginPackage.m:
154 (-[WebBasePluginPackage isJavaPlugIn]): new
155 * Plugins.subproj/WebPluginDatabase.m:
156 (-[WebPluginDatabase refresh]): don't register the Java plug-in for a document view since Java file should be downloaded when not embedded.
158 2004-10-20 Chris Blumenberg <cblu@apple.com>
161 <rdar://problem/3842030> WebKit needs to pass the mode (NP_FULL, NP_EMBED, etc) when calling plugInViewWithArguments
162 <rdar://problem/3792852> Safari is loading the new QuickTime Cocoa plugin on Panther
166 * Plugins.subproj/WebPluginDocumentView.m:
167 (-[WebPluginDocumentView setDataSource:]): pass "full" as the mode
168 * Plugins.subproj/WebPluginPackage.m:
169 (-[WebPluginPackage initWithPath:]): load plug-in with the "webplugin" extension
170 * WebCoreSupport.subproj/WebBridge.m:
171 (-[WebBridge pluginViewWithPackage:attributeNames:attributeValues:baseURL:]): pass "embed" as the mode
172 * WebKit.pbproj/project.pbxproj:
174 2004-10-19 Vicki Murley <vicki@apple.com>
176 - bump WebKit version to 167.1, so that we can do a quick dot submission for <rdar://problem/3843951>
178 * WebKit.pbproj/project.pbxproj:
180 2004-10-19 Darin Adler <darin@apple.com>
182 Change suggested by Maciej during code review.
184 * WebCoreSupport.subproj/WebTextRenderer.m: Changed rounding hack table to be const so it can be in shared instead
185 of private memory, and doesn't require an initialization function.
186 (+[WebTextRenderer initialize]): Removed initialization.
188 2004-10-19 Darin Adler <darin@apple.com>
192 - fixed <rdar://problem/3838934> Safari stops loading pages after rangeOfCharacterFromSet nil argument exception
193 - fixed <rdar://problem/3843951> REGRESSION (166-167): Safari crashes in widthForNextCharacter (belkin.com, at startup for others)
194 - fixed <rdar://problem/3841049> REGRESSION (109-110): control characters render as square boxes
196 * WebCoreSupport.subproj/WebTextRenderer.m:
197 (isSpace): Merged in isAlternateSpace, never used.
198 (setupRoundingHackCharacterTable): Fixed size of table, was 1 entry too short. Got rid of unneeded call to bzero,
199 since globals start out zeroed automatically.
200 (isRoundingHackCharacter): Fixed backwards logic causing the crash in widthForNextCharacter.
201 Also removed explicit compare with 1; check for non-zero is just fine.
202 (fontContainsString): Change code so we'll just skip the font if the covered character set returns nil rather than
203 throwing an exception like the old version did. This should make bug 3838934 go away, although perhaps covering up
204 the underlying problem.
205 (-[WebTextRenderer _convertCharacters:length:toGlyphs:]): Removed unused skipControlCharacters: parameter and also
206 the unnecessary code to copy the buffer to change newline characters and non-break spaces to spaces.
207 (-[WebTextRenderer _convertUnicodeCharacters:length:toGlyphs:]): Removed unused local.
208 (-[WebTextRenderer _extendCharacterToGlyphMapToInclude:]): Added code to set up special cases for control characters,
209 \n and non-break spaces.
210 (-[WebTextRenderer _createATSUTextLayoutForRun:]): Added comment about the cases this code does not handle that
211 are handled by the CG case.
212 (widthForNextCharacter): Call isSpace instead of checking specifically for the space character here. The old code
213 would not handle cases with '\n' coming across from WebCore properly.
215 2004-10-18 Chris Blumenberg <cblu@apple.com>
217 Fixed: <rdar://problem/3840916> GC: -[WebNetscapePluginPackage initWithPath:] leaks an NSURL
221 * Plugins.subproj/WebNetscapePluginPackage.m:
222 (-[WebNetscapePluginPackage initWithPath:]): use executablePath on NSBundle instead of CFBundleCopyExecutableURL
224 2004-10-18 Chris Blumenberg <cblu@apple.com>
226 * DOM.subproj/DOMPrivate.h: change to copied header that was never committed
228 2004-10-18 John Sullivan <sullivan@apple.com>
232 - fixed <rdar://problem/3810183> Make WebHTMLView respect return value of webView:doCommandBySelector:
234 * WebView.subproj/WebHTMLView.m:
235 (-[WebHTMLView doCommandBySelector:]):
236 only do default action if delegate returns NO; this works with Mail as of Tiger 8A275.
240 2004-10-14 Ken Kocienda <kocienda@apple.com>
244 Final fix for these bugs:
246 <rdar://problem/3806306> HTML editing puts spaces at start of line
247 <rdar://problem/3814252> HTML editing groups space with word causing wrapping
249 This change sets some new CSS properties that have been added to WebCore to
250 enable whitespace-handling and line-breaking features that make WebView work
251 more like a text editor.
253 * WebView.subproj/WebHTMLRepresentation.m:
254 (-[WebHTMLRepresentation finishedLoadingWithDataSource:]): Turn on special editing
255 CSS properties when loading an HTML document into a WebView that is editable.
256 * WebView.subproj/WebView.m:
257 (-[WebView setEditable:]): Add and remove special editing CSS properties in current
258 document being displayed.
260 2004-10-14 Richard Williamson <rjw@apple.com>
262 Fixed <rdar://problem/3823026> making isRoundingHackCharacter use -O3 and an 8-bit lookup-table will speed "XBS" test up by 3% (actually < 1%)
264 Careful testing shows a small performance gain on very large text files.
265 I saw large variations in timings, but taking the lowest PLT timing
266 with and without this change showed a 0.9% gain. Note the cvs-base showed
267 no improvement. The improvement was for the large page attached to the
272 * WebCoreSupport.subproj/WebTextRenderer.m:
273 (setupRoundingHackCharacterTable):
274 (isRoundingHackCharacter):
275 (+[WebTextRenderer initialize]):
277 2004-10-14 Ken Kocienda <kocienda@apple.com>
281 Fix build breakage. These three functions need to return the values from their
282 calls to WebCGColorSpaceCreateXXX.
284 * WebCoreSupport.subproj/WebGraphicsBridge.m:
285 (-[WebGraphicsBridge createRGBColorSpace])
286 (-[WebGraphicsBridge createGrayColorSpace])
287 (-[WebGraphicsBridge createCMYKColorSpace])
289 2004-10-13 Richard Williamson <rjw@apple.com>
291 Addressed concerns in <rdar://problem/3803117> RESP: High complexity in icu uidna_IDNToASCII called by [NSString(WebNSURLExtras) _web_mapHostNameWithRange:encode:makeString:]
293 In practice I saw NO improvement in performance. Although,
294 special-case tests could possibly show improvement. Anyway,
295 the changes don't hurt performance.
299 * Misc.subproj/WebNSURLExtras.m:
300 (-[NSString _web_mapHostNameWithRange:encode:makeString:]):
302 2004-10-13 Maciej Stachowiak <mjs@apple.com>
306 <rdar://problem/3824626> Change to do colormatching for DeviceRGB colorspace causes ~11% Safari slowdown
308 - I fixed this by turning off all colormatching for WebKit
309 content. We might turn it back on later. For now, it's possible to
310 turn it on temporarily by defining COLORMATCH_EVERYTHING.
312 * WebCoreSupport.subproj/WebGraphicsBridge.m:
313 (-[WebGraphicsBridge setFocusRingStyle:radius:color:]):
314 (-[WebGraphicsBridge additionalPatternPhase]):
315 (-[WebGraphicsBridge createRGBColorSpace]):
316 (-[WebGraphicsBridge createGrayColorSpace]):
317 (-[WebGraphicsBridge createCMYKColorSpace]):
318 * WebCoreSupport.subproj/WebImageData.m:
319 * WebCoreSupport.subproj/WebImageRenderer.h:
320 * WebCoreSupport.subproj/WebImageRenderer.m:
321 (-[WebImageRenderer _adjustSizeToPixelDimensions]):
322 (-[WebImageRenderer incrementalLoadWithBytes:length:complete:]):
323 (-[WebImageRenderer _adjustColorSpace]):
324 (-[WebImageRenderer drawClippedToValidInRect:fromRect:]):
325 (-[WebImageRenderer tileInRect:fromPoint:context:]):
327 (WebCGColorSpaceCreateRGB):
328 (WebCGColorSpaceCreateGray):
329 (WebCGColorSpaceCreateCMYK):
332 2004-10-13 Richard Williamson <rjw@apple.com>
334 Don't fill background with transparency unless debug flag
339 * WebView.subproj/WebHTMLView.m:
340 (-[WebHTMLView drawRect:]):
342 2004-10-12 Richard Williamson <rjw@apple.com>
344 Fixed <rdar://problem/3829705> Need to remove filling w/ transparency when not drawing backgroundy.
348 * WebView.subproj/WebHTMLView.m:
349 (-[WebHTMLView _transparentBackground]):
350 (-[WebHTMLView _setTransparentBackground:]):
351 (-[WebHTMLView drawRect:]):
352 * WebView.subproj/WebHTMLViewInternal.h:
353 * WebView.subproj/WebHTMLViewPrivate.h:
355 2004-10-11 Chris Blumenberg <cblu@apple.com>
357 Fixed: <rdar://problem/3802039> 8A259: Can't use Grab services to grab selection from screen
361 * WebView.subproj/WebHTMLView.m:
362 (+[WebHTMLView initialize]): register service "return types" which are types that can be inserted into a WebView
363 (-[WebHTMLView writeSelectionToPasteboard:types:]): service protocol method, be sure to only write specified types
364 (-[WebHTMLView readSelectionFromPasteboard:]): new, service protocol method, insert types
365 (-[WebHTMLView validRequestorForSendType:returnType:]): moved, handle return types
367 2004-10-11 Darin Adler <darin@apple.com>
371 - fixed <rdar://problem/3834130> nil-object-in-dictionary exception seen in -[WebView _elementAtWindowPoint:]
373 * WebView.subproj/WebView.m: (-[WebView _elementAtWindowPoint:]): Added a check for nil frame.
375 2004-10-11 Darin Adler <darin@apple.com>
379 - fixed <rdar://problem/3834166> <input type=file> sends onchange even when the same file is chosen twice
381 * WebCoreSupport.subproj/WebFileButton.m: (-[WebFileButton chooseFilename:]):
382 Do nothing if filename is the same as before.
384 2004-10-11 Ken Kocienda <kocienda@apple.com>
388 * WebView.subproj/WebHTMLView.m:
389 (-[WebTextCompleteController doCompletion]): bridge call to get caret rect at a node
390 now takes an affinity: caretRectAtNode:offset:affinity:.
392 2004-10-10 Ken Kocienda <kocienda@apple.com>
398 <rdar://problem/3814236> REGRESSION (Mail): Can't set the color of text in Mail compose window using drag/drag from color panel
400 * WebView.subproj/WebHTMLView.m:
401 (+[WebHTMLView _insertablePasteboardTypes]): Add NSColorPboardType to list.
402 (-[WebHTMLView _isNSColorDrag:]): New helper. Determines if drag is an NSColor drag.
403 (-[WebHTMLView draggingUpdatedWithDraggingInfo:actionMask:]): Add a case for NSColor drags,
404 else do what we did before.
405 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): Add a case for NSColor drags, which creates
406 a CSS style containing color info and calls the bridge to apply the style. Otherwise, do what we did before.
408 2004-10-11 Darin Adler <darin@apple.com>
412 - fixed <rdar://problem/3833848> REGRESSION (133-134): each keydown event is getting sent multiple times
414 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView performKeyEquivalent:]):
415 Don't send an event through WebCore if it has already been through once.
417 2004-10-10 John Sullivan <sullivan@apple.com>
421 - fixed <rdar://problem/3777253> Crash in redirect mechanism trying to display error page for bad scheme
423 * WebView.subproj/WebMainResourceClient.m:
424 (-[WebMainResourceClient connection:willSendRequest:redirectResponse:]):
425 add retain/autorelease to the request returned from call to super. In this case, the return value
426 was being dealloc'ed before being returned.
428 2004-10-09 Chris Blumenberg <cblu@apple.com>
431 <rdar://problem/3625352> up and down arrow and page up/down keys don't work to scroll overflow:auto/scroll/overlay areas
432 <rdar://problem/3397658> scroll wheel does not work to scroll overflow:auto/scroll/overlay areas (RSS)
436 * Plugins.subproj/WebBaseNetscapePluginStream.m:
437 (-[WebBaseNetscapePluginStream initWithRequestURL:pluginPointer:notifyData:sendNotification:]): fixed typo in comment
438 * Plugins.subproj/WebNetscapePluginStream.m:
439 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]): ditto
440 * WebView.subproj/WebFramePrivate.h:
441 * WebView.subproj/WebFrameView.m:
442 (-[WebFrameView _bridge]): new
443 (-[WebFrameView scrollToBeginningOfDocument:]): call the bridge to scroll, if that fails, scroll the document view
444 (-[WebFrameView scrollToEndOfDocument:]): ditto
445 (-[WebFrameView _pageVertically:]): ditto
446 (-[WebFrameView _pageHorizontally:]): ditto
447 (-[WebFrameView _scrollLineVertically:]): ditto
448 (-[WebFrameView _scrollLineHorizontally:]): ditto
449 * WebView.subproj/WebHTMLView.m:
450 (-[WebHTMLView scrollWheel:]): call the bridge to scroll, if that fails, pass to next responder
454 2004-10-05 Chris Blumenberg <cblu@apple.com>
456 Fixed: <rdar://problem/3827002> assertion failure in WebBaseNetscapePluginStream on abc.go.com
460 * Plugins.subproj/WebBaseNetscapePluginStream.m:
461 (-[WebBaseNetscapePluginStream initWithRequestURL:pluginPointer:notifyData:sendNotification:]): avoid assertion failure in dealloc by temporarily setting isTerminated to YES in case we are released in this method
462 * Plugins.subproj/WebNetscapePluginStream.m:
463 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]): ditto
465 2004-10-05 John Sullivan <sullivan@apple.com>
467 * WebCoreSupport.subproj/WebBridge.m:
468 (-[WebBridge pluginViewWithPackage:attributeNames:attributeValues:baseURL:]):
469 initialize "arguments" var to nil to satisfy compiler on deployment build.
471 2004-10-05 Richard Williamson <rjw@apple.com>
473 Fixed <rdar://problem/3825442> first click lost for Dashboard
474 Allow dashboard to force acceptsFirstMouse:
478 * WebView.subproj/WebHTMLView.m:
479 (-[WebHTMLView acceptsFirstMouse:]):
480 * WebView.subproj/WebView.m:
481 (-[WebView _dashboardBehavior:]):
482 * WebView.subproj/WebViewInternal.h:
483 * WebView.subproj/WebViewPrivate.h:
485 * WebCoreSupport.subproj/WebImageRenderer.h:
488 2004-10-05 Chris Blumenberg <cblu@apple.com>
490 Fixed: <rdar://problem/3760920> Need to record plugin view instances
494 * Plugins.subproj/WebPluginController.h:
495 * Plugins.subproj/WebPluginController.m:
496 (+[WebPluginController plugInViewWithArguments:fromPluginPackage:]): new, creates plug-in view and adds it to global list
497 (+[WebPluginController isPlugInView:]): new, checks if the plug-in view is in the global list
498 (-[WebPluginController destroyAllPlugins]): remove the plug-in from the global list
499 * Plugins.subproj/WebPluginDocumentView.m:
500 (-[WebPluginDocumentView setDataSource:]): call [WebPluginController plugInViewWithArguments:fromPluginPackage:]
501 * WebCoreSupport.subproj/WebBridge.m:
502 (-[WebBridge pluginViewWithPackage:attributeNames:attributeValues:baseURL:]): ditto
503 * WebView.subproj/WebFrame.m:
504 (-[WebFrame _reloadForPluginChanges]): call [WebPluginController isPlugInView:]
505 * WebView.subproj/WebHTMLView.m:
506 (-[WebHTMLView addSubview:]): ditto
508 2004-10-05 David Hyatt <hyatt@apple.com>
510 Fix to make selection more like NSTextView. All gap painting is now done by WebCore, so WebKit no longer
511 needs to try to fill gaps around text.
515 * WebCoreSupport.subproj/WebTextRenderer.m:
516 (-[WebTextRenderer _CG_drawHighlightForRun:style:geometry:]):
517 (-[WebTextRenderer _ATSU_drawHighlightForRun:style:geometry:]):
519 2004-10-05 Darin Adler <darin@apple.com>
523 - fixed <rdar://problem/3577255> custom file icon shows up upside down in <input type=file>
525 * WebCoreSupport.subproj/WebFileButton.m: (-[WebFileButton setFilename:]): Added a call to
526 setFlipped that fixes the problem, even though I don't know why.
528 2004-10-04 Darin Adler <darin@apple.com>
532 - fixed <rdar://problem/3814237> REGRESSION (Mail): Copy/paste style does not set color in Mail compose window
534 * WebView.subproj/WebHTMLView.m:
535 (-[WebHTMLView _selectionStartFontAttributesAsRTF]): Changed to call new bridge method
536 named fontAttributesForSelectionStart, deleted the method this used to use, and renamed
537 this to have the word "start" in it.
538 (-[WebHTMLView copyFont:]): Updated for name change.
540 * English.lproj/StringsNotToBeLocalized.txt: Updated for recent changes.
542 2004-10-04 Chris Blumenberg <cblu@apple.com>
544 * WebView.subproj/WebFrameInternal.h: removed constant declarations that I committed by mistake
546 2004-10-04 Chris Blumenberg <cblu@apple.com>
548 Fixed: <rdar://problem/3798948> NPP_URLNotify is not called if plug-in calls NPN_*URLNotfy
549 Fixed a number of FIXME's related to notifying plug-ins of loaded pages.
553 * Plugins.subproj/WebBaseNetscapePluginStream.h:
554 - replaced URL ivar with requestURL and responseURL ivars since we need to pass both to plug-ins
555 - added sendNotification boolean. Relying on notifyData not being NULL was not information to know whether to call NPP_URLNotify or not.
556 - added isTerminated boolean because determining whether or not stream.ndata is NULL is not enough to know if the stream has been cancelled.
557 * Plugins.subproj/WebBaseNetscapePluginStream.m:
558 (+[WebBaseNetscapePluginStream reasonForError:]): new, factored out from receivedError:
559 (-[WebBaseNetscapePluginStream initWithRequestURL:pluginPointer:notifyData:sendNotification:]): new
560 (-[WebBaseNetscapePluginStream dealloc]): release new ivars
561 (-[WebBaseNetscapePluginStream finalize]): added assert
562 (-[WebBaseNetscapePluginStream setRequestURL:]): new
563 (-[WebBaseNetscapePluginStream setResponseURL:]): new
564 (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:]): renamed, use responseURL as it basically did before
565 (-[WebBaseNetscapePluginStream startStreamWithResponse:]): call renamed method
566 (-[WebBaseNetscapePluginStream destroyStream]):
567 - do nothing if terminated
568 - call NPP_StreamAsFile and NPP_DestroyStream if stream.ndata is not NULL
569 - call NPP_URLNotify if sendNotification is YES regardless of value of notifyData
570 (-[WebBaseNetscapePluginStream receivedError:]): call reasonForError
571 (-[WebBaseNetscapePluginStream deliverData]): use renamed ivar
572 * Plugins.subproj/WebBaseNetscapePluginView.h:
573 - added observingFrameLoadNotification boolean
574 - renamed dictionary ivar to pendingFrameLoads which has WebFrame keys and WebPluginRequest values
575 * Plugins.subproj/WebBaseNetscapePluginView.m:
576 (-[WebBaseNetscapePluginView addFrameLoadObserver]): new
577 (-[WebBaseNetscapePluginView removeFrameLoadObserver]): new
578 (-[WebBaseNetscapePluginView stop]): call removeFrameLoadObserver
579 (-[WebBaseNetscapePluginView initWithFrame:]): use renamed pendingFrameLoads ivar
580 (-[WebBaseNetscapePluginView dealloc]): ditto
581 (-[WebBaseNetscapePluginView requestWithURLCString:]): set referrer on the request just as IE does
582 (-[WebBaseNetscapePluginView evaluateJavaScriptPluginRequest:]):
583 - call NPP_URLNotify depending of value of sendNotification
584 - call new init method on WebBaseNetscapePluginStream rather then setting variables individually
585 (-[WebBaseNetscapePluginView webFrame:didFinishLoadWithReason:]): new, calls NPP_URLNotify at the right time with the right value
586 (-[WebBaseNetscapePluginView webFrame:didFinishLoadWithError:]): new, delegate method called from WebFrame
587 (-[WebBaseNetscapePluginView loadPluginRequest:]): call addFrameLoadObserver
588 (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]): take new sendNotification parameter and pass it
589 (-[WebBaseNetscapePluginView getURLNotify:target:notifyData:]): pass YES for sendNotification
590 (-[WebBaseNetscapePluginView getURL:target:]): pass NO for sendNotification
591 (-[WebBaseNetscapePluginView _postURL:target:len:buf:file:notifyData:sendNotification:allowHeaders:]): take new sendNotification parameter and pass it
592 (-[WebBaseNetscapePluginView postURLNotify:target:len:buf:file:notifyData:]): pass YES for sendNotification
593 (-[WebBaseNetscapePluginView postURL:target:len:buf:file:]): pass NO for sendNotification
594 (-[WebPluginRequest initWithRequest:frameName:notifyData:sendNotification:]): take new sendNotification parameter
595 (-[WebPluginRequest sendNotification]): new
596 * Plugins.subproj/WebBaseNetscapePluginViewPrivate.h:
597 * Plugins.subproj/WebNetscapePluginEmbeddedView.m:
598 (-[WebNetscapePluginEmbeddedView didStart]): set referrer on the request just as IE does
599 * Plugins.subproj/WebNetscapePluginRepresentation.m:
600 (-[WebNetscapePluginRepresentation receivedData:withDataSource:]): set the request URL on the stream
601 * Plugins.subproj/WebNetscapePluginStream.h:
602 * Plugins.subproj/WebNetscapePluginStream.m:
603 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]): take new sendNotification parameter and pass it
604 (-[WebNetscapePluginStream dealloc]): use renamed ivar
605 (-[WebNetscapePluginStream start]): ditto
606 * WebView.subproj/WebFrame.m:
607 (-[WebFrame _setState:]): removed notification posting code. This was only used by WebBaseNetscapePluginView and it was the wrong notification to send.
608 (-[WebFrame _checkLoadCompleteForThisFrame]): call internal load delegate to tell it that the load has finished
609 (-[WebFrame _loadItem:withLoadType:]): ditto
610 (-[WebFrame _continueFragmentScrollAfterNavigationPolicy:formState:]): ditto
611 (-[WebFrame _setInternalLoadDelegate:]): new
612 (-[WebFrame _internalLoadDelegate]): new
613 * WebView.subproj/WebFrameInternal.h:
614 * WebView.subproj/WebFramePrivate.h:
616 2004-10-04 Chris Blumenberg <cblu@apple.com>
618 Fixed: <rdar://problem/3758113> REGRESSION: Macromedia ColdFusion page doesn't show main content
620 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.
624 * Plugins.subproj/WebBaseNetscapePluginView.m:
625 (-[NSData _web_locationAfterFirstBlankLine]): looks for 2 CRLF's, not for 2 LF's
627 2004-10-04 Darin Adler <darin@apple.com>
631 - fixed a potential storage leak when we turn on CGImageRef image rendering
633 * WebCoreSupport.subproj/WebImageRenderer.m: (-[WebImageRenderer dealloc]): Fix potential storage leak
634 by adding [super dealloc], but leak was not real yet because the code is commented out.
636 - make paste style work with color as part of fix to <rdar://problem/3814237> REGRESSION (Mail):
637 Copy/paste style does not set color in Mail compose window
639 * WebView.subproj/WebHTMLView.m:
640 (-[WebHTMLView _selectionFontAttributes]): Change structure so it's easy to add more attributes.
641 For now I haven't added any yet.
642 (-[WebHTMLView _colorAsString:]): Moved this earlier in the file.
643 (-[WebHTMLView _shadowAsString:]): Ditto.
644 (-[WebHTMLView _styleFromFontAttributes:]): Add background color, foreground color, and text shadow.
646 2004-09-30 Richard Williamson <rjw@apple.com>
648 Fixed <rdar://problem/3821215> NPN hasMethod and hasProperty functions should take NPObjects, not NPClass
650 Also changed dashboard regions dictionary to use "control"
651 for scroller region label, instead of "scroller, per
656 * Plugins.subproj/npruntime.h:
657 * WebView.subproj/WebView.m:
658 (-[WebView _addScrollerDashboardRegions:from:]):
660 2004-09-30 Chris Blumenberg <cblu@apple.com>
662 Fixed: <rdar://problem/3498680> switching back and forth between tabs stops calling anything in a plug-in
666 * Plugins.subproj/WebBaseNetscapePluginView.m:
667 (-[WebBaseNetscapePluginView sendEvent:]): call setWindowIfNecessary because the window may have changed
668 (-[WebBaseNetscapePluginView updateAndSetWindow]): new
669 (-[WebBaseNetscapePluginView setWindowIfNecessary]): was setWindow, this method now just sets the window
670 (-[WebBaseNetscapePluginView start]): call updateAndSetWindow
671 (-[WebBaseNetscapePluginView viewDidMoveToWindow]): ditto
672 (-[WebBaseNetscapePluginView viewHasMoved:]): ditto
674 2004-09-30 Chris Blumenberg <cblu@apple.com>
676 Fixed: <rdar://problem/3498668> switching out of tab doesn't send loseFocusEvent to plug-in
680 * Plugins.subproj/WebBaseNetscapePluginView.h:
681 * Plugins.subproj/WebBaseNetscapePluginView.m:
682 (-[WebBaseNetscapePluginView setHasFocus:]): new, sends events to plug-in
683 (-[WebBaseNetscapePluginView becomeFirstResponder]): call setHasFocus
684 (-[WebBaseNetscapePluginView resignFirstResponder]): ditto
685 (-[WebBaseNetscapePluginView viewWillMoveToWindow:]): ditto
687 2004-09-30 Chris Blumenberg <cblu@apple.com>
690 Assertion failure when loading standalone netscape plug-in content.
691 Document loads of WebKit plug-in content should be cancelled since the plug-in does its own loading.
695 * Misc.subproj/WebKitErrors.m: removed deprecated method
696 * Misc.subproj/WebKitErrorsPrivate.h:
697 * Plugins.subproj/WebNetscapePluginDocumentView.m:
698 (-[WebNetscapePluginDocumentView setDataSource:]): fixed the assertion statement
699 * Plugins.subproj/WebPluginDocumentView.h:
700 * Plugins.subproj/WebPluginDocumentView.m:
701 (-[WebPluginDocumentView dealloc]): remove retained plug-in
702 (-[WebPluginDocumentView setDataSource:]): retain the plug-in, cancel the laod
704 2004-09-29 Chris Blumenberg <cblu@apple.com>
707 <rdar://problem/3763832> Safari-155: Non-Embeded movies fail to open in Cocoa QT plug-in
708 <rdar://problem/3820517> "*** -[WebPluginPackage NPP_New]: selector not recognized [self = 0x5552c10]"
712 * History.subproj/WebHistoryItem.m:
713 * Misc.subproj/WebNSViewExtras.h:
714 * Misc.subproj/WebNSViewExtras.m:
715 (-[NSView _web_firstResponderCausesFocusDisplay]):
716 (-[NSView _webView]):
719 (-[NSView _dataSource]):
720 * Plugins.subproj/WebBasePluginPackage.h:
721 * Plugins.subproj/WebBasePluginPackage.m:
722 (-[WebBasePluginPackage hash]):
723 (-[WebBasePluginPackage isQuickTimePlugIn]):
724 * Plugins.subproj/WebNetscapePluginDocumentView.m:
725 (-[WebNetscapePluginDocumentView setDataSource:]):
726 * Plugins.subproj/WebNetscapePluginRepresentation.m:
727 * Plugins.subproj/WebPluginController.h:
728 * Plugins.subproj/WebPluginController.m:
729 (-[WebPluginController initWithDocumentView:]):
730 (-[WebPluginController addPlugin:]):
731 (-[WebPluginController destroyAllPlugins]):
732 (-[WebPluginController webPlugInContainerLoadRequest:inFrame:]):
733 (-[WebPluginController webPlugInContainerShowStatus:]):
734 (-[WebPluginController webPlugInContainerSelectionColor]):
735 (-[WebPluginController webFrame]):
736 * Plugins.subproj/WebPluginDatabase.h:
737 * Plugins.subproj/WebPluginDatabase.m:
738 (-[WebPluginDatabase pluginForKey:withEnumeratorSelector:]):
739 (-[WebPluginDatabase refresh]):
740 (WebPluginDocumentView::while):
741 * Plugins.subproj/WebPluginDocumentView.h: Added.
742 * Plugins.subproj/WebPluginDocumentView.m: Added.
743 (-[WebPluginDocumentView initWithFrame:]):
744 (-[WebPluginDocumentView dealloc]):
745 (-[WebPluginDocumentView drawRect:]):
746 (-[WebPluginDocumentView setDataSource:]):
747 (-[WebPluginDocumentView setNeedsLayout:]):
748 (-[WebPluginDocumentView layout]):
749 (-[WebPluginDocumentView currentWindow]):
750 (-[WebPluginDocumentView viewWillMoveToWindow:]):
751 (-[WebPluginDocumentView viewDidMoveToWindow]):
752 (-[WebPluginDocumentView viewWillMoveToHostWindow:]):
753 (-[WebPluginDocumentView viewDidMoveToHostWindow]):
754 (-[WebPluginDocumentView receivedData:withDataSource:]):
755 (-[WebPluginDocumentView receivedError:withDataSource:]):
756 (-[WebPluginDocumentView finishedLoadingWithDataSource:]):
757 (-[WebPluginDocumentView canProvideDocumentSource]):
758 (-[WebPluginDocumentView documentSource]):
759 (-[WebPluginDocumentView title]):
760 * Plugins.subproj/npapi.m:
761 (NPN_ReleaseVariantValue):
762 (NPN_GetStringIdentifier):
763 (NPN_GetStringIdentifiers):
764 (NPN_GetIntIdentifier):
765 (NPN_IdentifierIsString):
766 (NPN_UTF8FromIdentifier):
767 (NPN_IntFromIdentifier):
776 (NPN_RemoveProperty):
781 * WebCoreSupport.subproj/WebBridge.m:
782 (-[WebBridge frameRequiredForMIMEType:URL:]):
783 * WebCoreSupport.subproj/WebViewFactory.m:
785 * WebKit.pbproj/project.pbxproj:
786 * WebView.subproj/WebDebugDOMNode.m:
787 * WebView.subproj/WebDocumentInternal.h:
788 * WebView.subproj/WebHTMLView.m:
789 (-[WebHTMLView initWithFrame:]):
790 * WebView.subproj/WebHTMLViewPrivate.h:
791 * WebView.subproj/WebImageRepresentation.h:
792 * WebView.subproj/WebRenderNode.m:
793 * WebView.subproj/WebView.m:
795 2004-09-29 Richard Williamson <rjw@apple.com>
797 Fixed <rdar://problem/3779998> bringing window to front or sending to back does not send focus/blur events to JavaScript window object
799 The fix has two parts, 1) make onblur and onfocus work for windows,
800 and 2), allow the dashboard to override WebKit's special key/non-key
805 * Plugins.subproj/WebBaseNetscapePluginView.m:
806 (-[WebBaseNetscapePluginView restartNullEvents]):
807 * WebView.subproj/WebHTMLView.m:
808 (-[WebHTMLView addMouseMovedObserver]):
809 (-[WebHTMLView removeMouseMovedObserver]):
810 * WebView.subproj/WebView.m:
811 (-[WebView _dashboardBehavior:]):
812 * WebView.subproj/WebViewInternal.h:
813 * WebView.subproj/WebViewPrivate.h:
815 2004-09-29 Maciej Stachowiak <mjs@apple.com>
819 - consolidated OS version checks into prefix header
821 * Misc.subproj/WebFileDatabase.m:
822 (-[WebFileDatabase _createLRUList:]):
823 (+[WebFileDatabase _syncLoop:]):
824 * Misc.subproj/WebKitErrors.m:
826 * Misc.subproj/WebNSObjectExtras.h:
827 (WebNSRetainCFRelease):
828 * Misc.subproj/WebNSPasteboardExtras.m:
829 (-[NSPasteboard _web_declareAndWriteDragImage:URL:title:archive:source:]):
830 * Misc.subproj/WebUnicode.m:
832 * WebCoreSupport.subproj/WebImageData.h:
833 * WebCoreSupport.subproj/WebImageRenderer.h:
834 * WebCoreSupport.subproj/WebKeyGenerator.h:
835 * WebCoreSupport.subproj/WebNewKeyGeneration.c:
837 * WebView.subproj/WebDataSource.m:
838 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
839 (-[WebDataSource isLoading]):
840 * WebView.subproj/WebFrameView.m:
841 (+[WebFrameView _viewTypesAllowImageTypeOmission:]):
842 * WebView.subproj/WebHTMLView.m:
843 * WebView.subproj/WebPDFRepresentation.h:
844 * WebView.subproj/WebPDFRepresentation.m:
845 * WebView.subproj/WebPDFView.h:
846 * WebView.subproj/WebPDFView.m:
848 2004-09-29 Ken Kocienda <kocienda@apple.com>
854 <rdar://problem/3818296> REGRESSION (Mail): centerSelectionInVisibleArea does not work correctly
856 * WebView.subproj/WebHTMLView.m:
857 (-[WebHTMLView centerSelectionInVisibleArea:]): Now calls new centerSelectionInVisibleArea
858 bridge function instead of ensureCaretVisible. Now handles caret selections and range
859 selections correctly.
861 2004-09-28 Chris Blumenberg <cblu@apple.com>
863 Added timing code so that Doug can time RTF conversion.
865 * WebView.subproj/WebHTMLView.m:
866 (-[WebHTMLView writeSelectionWithPasteboardTypes:toPasteboard:]):
867 (-[WebHTMLView _attributeStringFromDOMRange:]):
869 2004-09-28 Richard Williamson <rjw@apple.com>
871 <rdar://problem/3817421> add getter for dashboard regions (debugging)
873 <rdar://problem/3817417> NSScrollView need autoregions for dashboard
878 * WebCoreSupport.subproj/WebBridge.m:
879 (-[WebBridge dashboardRegionsChanged:]):
880 * WebView.subproj/WebView.m:
881 (-[WebView _setInitiatedDrag:]):
882 (-[WebView _addScrollerDashboardRegions:from:]):
883 (-[WebView _addScrollerDashboardRegions:]):
884 (-[WebView _dashboardRegions]):
885 * WebView.subproj/WebViewPrivate.h:
887 2004-09-27 John Sullivan <sullivan@apple.com>
889 - fixed <rdar://problem/3814705> 8A266: Safari authentication dialog "remember password" text should match Mail
891 * Panels.subproj/English.lproj/WebAuthenticationPanel.nib:
892 changed "Remember this password" to "Remember this password in my keychain";
893 this will need to go through CCC for this week's build.
895 2004-09-27 Chris Blumenberg <cblu@apple.com>
897 Fixed: <rdar://problem/3594754> change null event interval from 20 ms to 10 ms to match speed on Windows
901 * Plugins.subproj/WebBaseNetscapePluginView.m:
903 2004-09-27 Chris Blumenberg <cblu@apple.com>
905 Fixed: <rdar://problem/3502138> text files don't remember scroll position when going back or reloading
909 * WebView.subproj/WebTextView.m:
910 (-[WebTextView layout]): implemented, call sizeToFit, without this scrollPoint: won't work
912 2004-09-27 John Sullivan <sullivan@apple.com>
916 - WebKit part of fix for <rdar://problem/3734466> ER: Support standard editing keystrokes
917 like Cmd-B while editing rich text
919 * WebView.subproj/WebHTMLView.m:
920 (-[WebHTMLView _toggleBold]):
921 new method, toggles font-weight from "bold" to "normal"
922 (-[WebHTMLView _toggleItalic]):
923 new method, toggles font-style from "italic" to "normal"
924 (-[WebHTMLView _handleStyleKeyEquivalent:]):
925 new method, if the new preference is set and we're in an editable state, check for standard
926 key equivalents for toggling styles (just command-B and command-I for now).
927 (-[WebHTMLView performKeyEquivalent:]):
928 Moved in file, now calls _handleStyleKeyEquivalent:
930 * WebView.subproj/WebPreferenceKeysPrivate.h:
931 new preference key WebKitRespectStandardStyleKeyEquivalentsPreferenceKey
932 * WebView.subproj/WebPreferences.m:
933 (+[WebPreferences initialize]):
934 initial value of WebKitRespectStandardStyleKeyEquivalentsPreferenceKey is NO (maybe we'll
935 change our minds about this, but this is more guaranteed to be backward-compatible)
936 (-[WebPreferences respectStandardStyleKeyEquivalents]):
937 read WebKitRespectStandardStyleKeyEquivalentsPreferenceKey
938 (-[WebPreferences setRespectStandardStyleKeyEquivalents:]):
939 write WebKitRespectStandardStyleKeyEquivalentsPreferenceKey
941 * WebView.subproj/WebPreferencesPrivate.h:
942 declare getter and setter
944 * English.lproj/StringsNotToBeLocalized.txt:
945 updated for these and other recent changes
947 2004-09-27 Chris Blumenberg <cblu@apple.com>
949 Fixed: <rdar://problem/3806649> assertion failure after control-click of webcam
953 * WebView.subproj/WebDefaultContextMenuDelegate.m:
954 (-[WebDefaultUIDelegate contextMenuItemsForElement:]): don't provide "Copy Image" if the image is not fully loaded
956 2004-09-27 Chris Blumenberg <cblu@apple.com>
958 Fixed: <rdar://problem/3814810> REGRESSION (125-164): Exception adding nil to dictionary in dragging code
962 * WebView.subproj/WebHTMLView.m:
963 (-[WebHTMLView _setMouseDownEvent:]): new
964 (-[WebHTMLView acceptsFirstMouse:]): call _setMouseDownEvent
965 (-[WebHTMLView shouldDelayWindowOrderingForEvent:]): ditto
966 (-[WebHTMLView mouseDown:]): ditto
967 (-[WebHTMLView _delegateDragSourceActionMask]): removed temp fix, assert that the mouse event is not nil
969 2004-09-27 Darin Adler <darin@apple.com>
971 * WebKit.pbproj/project.pbxproj: Added WebDashboardRegion.h as a private header.
973 2004-09-24 Chris Blumenberg <cblu@apple.com>
977 * WebView.subproj/WebHTMLView.m:
978 (-[WebHTMLView _selectedArchive]): added timing code for copying markup
982 2004-09-24 Chris Blumenberg <cblu@apple.com>
984 Temp fix for: <rdar://problem/3814810> REGRESSION (125-164): Exception adding nil to dictionary in dragging code
988 * WebView.subproj/WebHTMLView.m:
989 (-[WebHTMLView _delegateDragSourceActionMask]): return none if the mouse down event is nil
991 2004-09-24 Ken Kocienda <kocienda@apple.com>
997 <rdar://problem/3813917> REGRESSION (125-163): The font panel will change the font of any web page
999 We were doing a laughably bad job at preventing edits in documents that were not editable.
1000 This change fixes the specific case of the bug mentioned above, and makes an attempt to
1001 fix similar bugs by checking for whether the view is in editing mode before making edits.
1003 * WebView.subproj/WebHTMLView.m:
1004 (-[WebHTMLView _canEdit]): Renamed from _canType. Used in many more places in the code now.
1005 (-[WebHTMLView _isMoveDrag]): Change around code to make the meaning more clear. This one
1006 was actually performing a correct check before.
1007 (-[WebHTMLView keyDown:]): Renamed _canType to _canEdit.
1008 (-[WebHTMLView paste:]): Don't beep if can't paste. This matches AppKit. Any paste-related beeps
1009 will come from failure to handle key equivalent. Menu validation will kick in to dim menu.
1010 (-[WebHTMLView _applyStyleToSelection:]): Bail if !_canEdit.
1011 (-[WebHTMLView pasteAsPlainText:]): Ditto.
1012 (-[WebHTMLView _alignSelectionUsingCSSValue:]): Ditto.
1013 (-[WebHTMLView insertNewline:]): Ditto.
1014 (-[WebHTMLView insertParagraphSeparator:]): Ditto.
1015 (-[WebHTMLView _changeWordCaseWithSelector:]): Ditto.
1016 (-[WebHTMLView _deleteWithDirection:granularity:killRing:]): Ditto.
1017 (-[WebHTMLView complete:]): Ditto.
1018 (-[WebHTMLView _changeSpellingToWord:]): Ditto. Some code rearranging to eliminate bridge local variable.
1019 (-[WebHTMLView ignoreSpelling:]): Ditto.
1020 (-[WebHTMLView yank:]): Bail if !_canEdit.
1021 (-[WebHTMLView yankAndSelect:]): Ditto.
1022 (-[WebHTMLView deleteToMark:]): Ditto.
1023 (-[WebHTMLView swapWithMark:]): Ditto.
1024 (-[WebHTMLView transpose:]): Ditto.
1025 (-[WebHTMLView _updateFontPanel]): Ditto. Some code rearranging to eliminate bridge local variable.
1026 (-[WebHTMLView setMarkedText:selectedRange:]): Bail if !_canEdit.
1027 (-[WebHTMLView _insertText:selectInsertedText:]): Ditto. Some code rearranging to eliminate bridge local variable.
1028 * WebView.subproj/WebHTMLViewPrivate.h: Renamed _canType to _canEdit.
1030 2004-09-24 Ken Kocienda <kocienda@apple.com>
1034 * WebCoreSupport.subproj/WebDashboardRegion.h: Check in file copied from WebCore.
1036 2004-09-23 Maciej Stachowiak <mjs@apple.com>
1040 <rdar://problem/3685235> REGRESSION (Mail): links are not properly editable
1042 * WebView.subproj/WebDefaultUIDelegate.m: By default, don't allow
1043 link dragging if the element under the mouse pointer is
1044 editable. This way, you can drag-select starting inside a link.
1046 2004-09-23 John Sullivan <sullivan@apple.com>
1050 - WebKit part of fix for <rdar://problem/3415264>
1051 Default encoding should initially be set to current system encoding
1053 * WebView.subproj/WebPreferences.m:
1054 (-[WebPreferences _setInitialDefaultTextEncodingToSystemEncoding]):
1055 new SPI that sets the initial value of the default text encoding to
1056 be the system encoding, with a special-case conversion of MacRoman->Latin1.
1057 This is not done automatically for WebKit clients for fear of breaking them.
1059 * WebView.subproj/WebPreferencesPrivate.h:
1062 2004-09-23 Darin Adler <darin@apple.com>
1066 - fixed <rdar://problem/3811584> REGRESSION (85-125): iframe.document undefined in function called from button onclick; works from img onclick
1068 The fix is to not let "defers callbacks" have any effect on loading "about:blank".
1069 I also had to fix one bug in WebCore that could then be reproduced by going to "about:blank"
1070 while using a button.
1072 * WebView.subproj/WebMainResourceClient.m:
1073 (-[WebMainResourceClient connection:didReceiveResponse:]): Loosen asserts to allow this callback
1074 for the specific case of "about:blank" even if the defers callbacks flag is true.
1075 (-[WebMainResourceClient connectionDidFinishLoading:]): Ditto.
1076 (-[WebMainResourceClient loadWithRequestNow:]): Added NSURLRequest return value. Loosened asserts
1077 as above. Changed code to return a new request if we get a new request back that is not empty
1078 when the defers callbacks flag is true.
1079 (-[WebMainResourceClient loadWithRequest:]): If the defers callbacks flag is set, but the
1080 URL is one that gives us an empty document, then do the work right away, don't defer it.
1082 2004-09-23 Darin Adler <darin@apple.com>
1084 - fixed B&I builds by checking in generated file
1086 * WebCoreSupport.subproj/WebDashboardRegion.h: Added.
1088 2004-09-22 Richard Williamson <rjw@apple.com>
1090 Pass dashboard regions to UI delegate.
1094 * WebCoreSupport.subproj/WebBridge.m:
1095 (-[WebBridge dashboardRegionsChanged:]):
1096 * WebView.subproj/WebUIDelegatePrivate.h:
1097 * copy-webcore-files-to-webkit:
1099 2004-09-22 Chris Blumenberg <cblu@apple.com>
1101 Fixed build that I just broke.
1103 * WebView.subproj/WebHTMLView.m:
1104 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]):
1106 2004-09-22 Chris Blumenberg <cblu@apple.com>
1108 <rdar://problem/3812091> REGRESSION (Mail): double-clicked word is not smart inserted on drag
1112 * WebView.subproj/WebHTMLView.m:
1113 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): pass value for smartMove
1115 2004-09-22 Chris Blumenberg <cblu@apple.com>
1118 <rdar://problem/3667301> Frequent crashes in Mail when viewing HTML messages (CFURLGetByteRangeForComponent)
1119 <rdar://problem/3810354> WebResourceLoadDelegate can't refuse requests by returning nil; code asserts/crashes instead
1123 * WebCoreSupport.subproj/WebSubresourceClient.m:
1124 (+[WebSubresourceClient startLoadingResource:withRequest:customHeaders:referrer:forDataSource:]): removed broken code that handled loadWithRequest returning NO
1125 * WebView.subproj/WebBaseResourceHandleDelegate.m:
1126 (-[WebBaseResourceHandleDelegate loadWithRequest:]): if nil is returned from the client for willSendRequest, report the cancelled error and return
1128 2004-09-22 Ken Kocienda <kocienda@apple.com>
1132 * WebView.subproj/WebFrameView.m:
1133 (-[WebFrameView _webcore_effectiveFirstResponder]): New function to yield the correct responder
1134 to check for firstResponder-ness before calling makeFirstResonder. This helps to prevent
1135 unwanted firstResponder switching.
1136 * WebView.subproj/WebView.m:
1137 (-[WebView _webcore_effectiveFirstResponder]): Ditto.
1139 2004-09-21 Chris Blumenberg <cblu@apple.com
1142 <rdar://problem/3735071> REGRESSION (Mail): WebCore Editing must do smart paste
1143 <rdar://problem/3799163> REGRESSION (Mail): Deleting a word doesn't delete whitespace
1147 * WebView.subproj/WebDataSource.m:
1148 (-[WebDataSource _replaceSelectionWithArchive:selectReplacement:]): pass NO for smartReplace
1149 * WebView.subproj/WebHTMLView.m:
1150 (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]): pass parameter for smartReplace using _canSmartReplaceWithPasteboard
1151 (-[WebHTMLView _changeSpellingFromMenu:]): pass NO for smartReplace
1152 (-[WebHTMLView pasteboardTypesForSelection]): include WebSmartPastePboardType when _canSmartCopyOrDelete return YES
1153 (-[WebHTMLView writeSelectionWithPasteboardTypes:toPasteboard:]): ditto
1154 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): pass parameter for smartReplace using _canSmartReplaceWithPasteboard
1155 (-[WebHTMLView delete:]): call _deleteSelection
1156 (-[WebHTMLView cut:]): don't call delegate twice, call _deleteRange to delete
1157 (-[WebHTMLView pasteAsPlainText:]): pass parameter for smartReplace using _canSmartReplaceWithPasteboard
1158 (-[WebHTMLView _changeWordCaseWithSelector:]): pass NO for smartReplace
1159 (-[WebHTMLView deleteBackward:]): call _deleteSelection when there is a selected range
1160 (-[WebHTMLView _changeSpellingToWord:]): pass NO for smartReplace
1161 (-[WebHTMLView deleteToMark:]): pass NO for smartDeleteOK
1162 (-[WebHTMLView transpose:]): pass NO for smartReplace
1163 (-[WebHTMLView _shouldDeleteRange:]): moved
1164 (-[WebHTMLView _deleteRange:preflight:killRing:prepend:smartDeleteOK:]): moved, handle smartDelete
1165 (-[WebHTMLView _deleteWithDirection:granularity:killRing:]): moved
1166 (-[WebHTMLView _deleteSelection]): new
1167 (-[WebHTMLView _canSmartReplaceWithPasteboard]): new
1168 (-[WebHTMLView _canSmartCopyOrDelete]): new
1169 (-[WebHTMLView setMarkedText:selectedRange:]): pass NO for smartReplace
1170 (-[WebHTMLView _discardMarkedText]): call _deleteSelection
1171 (-[WebTextCompleteController _insertMatch:]): pass NO for smartReplace
1172 (-[WebTextCompleteController endRevertingChange:moveLeft:]): pass NO for smartReplace
1173 * WebView.subproj/WebHTMLViewInternal.h:
1174 * WebView.subproj/WebView.m:
1175 (-[WebView _commonInitializationWithFrameName:groupName:]): set smartInsertDeleteEnabled to YES
1176 (-[WebView replaceSelectionWithNode:]): pass NO for smartReplace
1177 (-[WebView replaceSelectionWithText:]): pass NO for smartReplace
1178 (-[WebView replaceSelectionWithMarkupString:]): pass NO for smartReplace
1179 (-[WebView deleteSelection]): call _deleteSelection on WebHTMLView
1181 2004-09-21 John Sullivan <sullivan@apple.com>
1185 - WebKit part of fix for <rdar://problem/3618274> REGRESSION (125-135):
1186 Option-tab doesn't always work as expected
1188 * WebCoreSupport.subproj/WebBridge.m:
1189 (-[WebBridge _retrieveKeyboardUIModeFromPreferences:]):
1190 Don't set WebCoreKeyboardAccessFull when setting WebCoreKeyboardAccessTabsToLinks
1191 after all; these need to be tested independently to get the option-tab behavior
1194 2004-09-21 John Sullivan <sullivan@apple.com>
1196 * WebView.subproj/WebHTMLView.m:
1197 (-[WebHTMLView doCommandBySelector:]):
1198 Commented out part of previous change; it breaks Mail editing until Mail
1201 2004-09-21 John Sullivan <sullivan@apple.com>
1205 * WebView.subproj/WebHTMLView.m:
1206 (-[WebHTMLView doCommandBySelector:]):
1207 Fix build failure from previous checkin, d'oh! Didn't set up webview variable.
1209 2004-09-21 John Sullivan <sullivan@apple.com>
1213 - fixed <rdar://problem/3809477> WebHTMLView needs to pass doCommandBySelector through delegate
1215 * WebView.subproj/WebHTMLView.m:
1216 (-[WebHTMLView doCommandBySelector:]):
1217 Call through to editing delegate. If editing delegate returns YES, don't call super.
1219 * WebView.subproj/WebDefaultEditingDelegate.m:
1220 (-[WebDefaultEditingDelegate webView:doCommandBySelector:]):
1221 default implementation (which was never called) was returning YES, but it should
1222 return NO to signal that it didn't handle the selector.
1224 2004-09-21 Chris Blumenberg <cblu@apple.com>
1226 Fixed: <rdar://problem/3647229> Safari does not play inline Windows Media Content on some sites (miggy.net and ministryofsound.com)
1230 * Plugins.subproj/WebBaseNetscapePluginView.m:
1231 * Plugins.subproj/WebNetscapePluginEmbeddedView.m:
1232 (-[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
1234 2004-09-20 Chris Blumenberg <cblu@apple.com>
1236 Fixed: <rdar://problem/3781290> REGRESSION (Mail): Crash in ReplaceSelectionCommandImpl attaching file to new message
1238 Reviewed by kocienda.
1240 * WebView.subproj/WebView.m:
1241 (-[WebView setEditable:]): call updateSelectionFromEmpty on the bridge if there is no selection
1243 2004-09-20 Chris Blumenberg <cblu@apple.com>
1245 Changes to implement renamed bridge methods.
1250 * DOM.subproj/WebDOMOperations.m:
1251 (-[DOMDocument URLWithAttributeString:]): call renamed bridge method
1252 * WebCoreSupport.subproj/WebBridge.m:
1253 (-[WebBridge pluginViewWithPackage:attributeNames:attributeValues:baseURL:]): take 2 parameter arrays rather than 1 which will have to be parsed
1254 (-[WebBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:]): ditto
1256 2004-09-20 Darin Adler <darin@apple.com>
1260 * WebView.subproj/WebFramePrivate.h: Added back.
1261 * WebView.subproj/WebFrameViewPrivate.h: Removed.
1263 2004-09-20 Darin Adler <darin@apple.com>
1267 - fixed <rdar://problem/3655360> REGRESSION (Mail): Ctrl-V emacs key binding, -pageDown: method, unimplemented (and pageUp, and selection-modifying versions)
1268 - fixed <rdar://problem/3792138> REGRESSION (Mail): Spell checker doesn't check current selected word
1270 * WebView.subproj/WebFrameViewInternal.h: Moved WebFrameViewPrivate inside the WebFrameView.m file.
1271 Removed a bunch of methods that don't need to be seen in other files, and added _verticalPageScrollDistance.
1272 * WebView.subproj/WebFrameViewPrivate.h: Removed. Renamed to WebFrameViewInternal.h.
1273 * WebView.subproj/WebFrameView.m:
1274 (-[WebFrameView _verticalKeyboardScrollDistance]): Move in the file because of internal vs. private.
1275 (-[WebFrameView _shouldDrawBorder]): Ditto.
1276 (-[WebFrameView _tile]): Ditto.
1277 (-[WebFrameView _verticalPageScrollDistance]): Added. Separate method so it can be called
1278 by the code to implement pageDown:.
1279 (-[WebFrameView _drawBorder]): Move in the file because of internal vs. private.
1280 (-[WebFrameView _goBack]): Ditto.
1281 (-[WebFrameView _goForward]): Ditto.
1282 (-[WebFrameView _scrollVerticallyBy:]): Ditto.
1283 (-[WebFrameView _scrollHorizontallyBy:]): Ditto.
1284 (-[WebFrameView _horizontalKeyboardScrollDistance]): Ditto.
1285 (-[WebFrameView _horizontalPageScrollDistance]): Added. Separate method for consistency with
1286 vertical method above.
1287 (-[WebFrameView _pageVertically:]): Moved and changed to use _verticalPageScrollDistance.
1288 (-[WebFrameView _pageHorizontally:]): Moved and changed to use _horizontalPageScrollDistance.
1289 (-[WebFrameView _scrollLineVertically:]): Move in the file because of internal vs. private.
1290 (-[WebFrameView _scrollLineHorizontally:]): Ditto.
1291 (-[WebFrameView scrollPageUp:]): Ditto.
1292 (-[WebFrameView scrollPageDown:]): Ditto.
1293 (-[WebFrameView scrollLineUp:]): Ditto.
1294 (-[WebFrameView scrollLineDown:]): Ditto.
1295 (-[WebFrameView _firstResponderIsControl]): Ditto.
1296 (-[WebFrameView keyDown:]): Changed to eliminate _pageLeft, _lineLeft, _pageRight, and _lineRight.
1298 * WebView.subproj/WebDataSource.m: Use WebFrameView.h instead of WebFrameViewPrivate.h.
1300 * WebView.subproj/WebHTMLView.m:
1301 (-[WebHTMLView _alterCurrentSelection:verticalDistance:]): Added.
1302 (-[WebHTMLView moveToBeginningOfDocument:]): Use WebSelectToDocumentBoundary.
1303 (-[WebHTMLView moveToBeginningOfDocumentAndModifySelection:]): Ditto.
1304 (-[WebHTMLView moveToEndOfDocument:]): Ditto.
1305 (-[WebHTMLView moveToEndOfDocumentAndModifySelection:]): Ditto.
1306 (-[WebHTMLView moveParagraphBackwardAndModifySelection:]): Added.
1307 (-[WebHTMLView moveParagraphForwardAndModifySelection:]): Added.
1308 (-[WebHTMLView pageUp:]): Added.
1309 (-[WebHTMLView pageDown:]): Added.
1310 (-[WebHTMLView pageUpAndModifySelection:]): Added.
1311 (-[WebHTMLView pageDownAndModifySelection:]): Added.
1312 (-[WebHTMLView showGuessPanel:]): Changed to call advanceToNextMisspellingStartingJustBeforeSelection.
1313 This fixes the problem with spell checking.
1315 * WebView.subproj/WebImageView.m:
1316 (-[WebImageView webView]): Changed to use _web_parentWebView.
1317 (-[WebImageView menuForEvent:]): Changed to use [self webView].
1318 (-[WebImageView mouseDown:]): Ditto.
1319 (-[WebImageView mouseDragged:]): Ditto.
1320 (-[WebImageView draggedImage:endedAt:operation:]): Ditto.
1322 * WebView.subproj/WebTextView.m:
1323 (-[WebTextView _textSizeMultiplierFromWebView]): Changed to use _web_parentWebView.
1324 (-[WebTextView menuForEvent:]): Ditto.
1325 (-[WebTextView drawPageBorderWithSize:]): Ditto.
1326 (-[WebTextView knowsPageRange:]): Ditto.
1328 * Plugins.subproj/WebPluginDatabase.m: Updated filename of WebFrameViewInternal.h.
1329 * WebCoreSupport.subproj/WebBridge.m: Ditto.
1330 * WebKit.pbproj/project.pbxproj: Ditto.
1331 * WebView.subproj/WebFrame.m: Ditto.
1332 * WebView.subproj/WebView.m: Ditto.
1333 * Misc.subproj/WebNSViewExtras.m: Ditto.
1335 2004-09-20 Darin Adler <darin@apple.com>
1339 - added helper method _web_parentWebView so fewer files need to get at WebFrame private methods
1341 * Misc.subproj/WebNSViewExtras.h: Added _web_parentWebView.
1342 * Misc.subproj/WebNSViewExtras.m: (-[NSView _web_parentWebView]): Added.
1346 2004-09-17 Chris Blumenberg <cblu@apple.com>
1349 <rdar://problem/3805757> don't unnecessarily put RTFD on the pasteboard
1350 <rdar://problem/3805756> strip attachments before generating RTF
1354 * WebView.subproj/WebHTMLView.m:
1355 (-[WebHTMLView writeSelectionWithPasteboardTypes:toPasteboard:]): only put RTFD on the pasteboard if it has attachments, strip attachments when writing RTF
1357 2004-09-16 Darin Adler <darin@apple.com>
1361 - fixed <rdar://problem/3804648> 8A262: Safari crashed in -[WebView(WebPrivate) _editingDelegateForwarder] inside QuickTime Cocoa Plug-in during WebView deallocation
1363 * WebView.subproj/WebView.m: (-[WebView _editingDelegateForwarder]):
1364 Check _private for nil before dereferencing it.
1366 2004-09-16 Chris Blumenberg <cblu@apple.com>
1368 Fixed: <rdar://problem/3779150> REGRESSION: images not copied when copying HTML in Safari and pasting into TextEdit
1372 * WebView.subproj/WebHTMLView.m:
1373 (-[WebHTMLView writeSelectionWithPasteboardTypes:toPasteboard:]): use RTFDFromRange:: for RTFD
1374 * WebView.subproj/WebHTMLViewPrivate.h:
1376 2004-09-15 Darin Adler <darin@apple.com>
1380 - fixed assertion I saw using the font panel
1382 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView _colorAsString:]):
1383 Convert color space before trying to get R, G, and B components.
1385 2004-09-15 Chris Blumenberg <cblu@apple.com>
1387 Fixed: <rdar://problem/3802232> REGRESSION (Mail): WebCore Editing must do smart copy
1389 Reviewed by kocienda.
1391 * WebView.subproj/WebHTMLView.m:
1392 (-[WebHTMLView _writeSelectionToPasteboard:]): call instance method not class method to get pasteboard types since the types depends on the current selection granularity
1393 (-[WebHTMLView pasteboardTypesForSelection]): if the selection granularity is "word" include the smart pasteboard type
1394 (-[WebHTMLView writeSelectionWithPasteboardTypes:toPasteboard:]): put nil on the pasteboard for smart copy
1396 2004-09-14 Darin Adler <darin@apple.com>
1400 - fixed <rdar://problem/3788894> REGRESSION (Mail): ctrl-t emacs key binding does not work (transpose)
1401 - fixed <rdar://problem/3798946> REGRESSION (Mail): Cursor does not disappear when typing
1403 * WebView.subproj/WebHTMLView.m:
1404 (-[WebHTMLView keyDown:]): Hide cursor by calling setHiddenUntilMouseMoves:YES.
1405 (-[WebHTMLView transpose:]): Added.
1407 2004-09-14 Richard Williamson <rjw@apple.com>
1409 1. Add class parameter to object allocation function. This is somewhat redundant, given that
1410 the allocation function is in the class function vector, but people wanted to use the same
1411 allocation function for different classes.
1413 2. Renamed NPN_Class to NPN_Invoke to match the name in the function vector.
1415 3. Add support for a default function on an object. This is a feature that ActiveX supports,
1416 and will allow JavaScript code to be written that will look exactly the same for both ActiveX
1417 plugins and Netscape or WebKit plugins. There are implementations included for the 'C' and
1418 'Objective-C' bindings.
1420 There bugs are covered by
1422 <rdar://problem/3776343> Support for default functions in the JavaScript bindings
1423 <rdar://problem/3779186> NPN_Call needs to be renamed to NPN_Invoke
1424 <rdar://problem/3674754> Need to implement latest npruntime.h
1428 * Plugins.subproj/WebNetscapePluginPackage.m:
1429 (-[WebNetscapePluginPackage load]):
1430 * Plugins.subproj/WebScriptObject.h:
1431 * Plugins.subproj/npfunctions.h:
1432 * Plugins.subproj/npruntime.h:
1434 2004-09-13 Richard Williamson <rjw@apple.com>
1436 D'oh. How many times can I screw up a simple fix!
1438 * WebCoreSupport.subproj/WebTextRenderer.m:
1439 (-[WebTextRenderer initWithFont:usingPrinterFont:]):
1441 2004-09-13 Richard Williamson <rjw@apple.com>
1443 Fixed snafu from 3782533 checkin.
1447 * WebCoreSupport.subproj/WebTextRenderer.m:
1448 (-[WebTextRenderer initWithFont:usingPrinterFont:]):
1450 2004-09-12 Chris Blumenberg <cblu@apple.com>
1452 Support for: <rdar://problem/3794790> drop rate or time remaining from download status when window is too small to fit it
1456 * Misc.subproj/WebStringTruncator.h:
1457 * Misc.subproj/WebStringTruncator.m:
1458 (+[WebStringTruncator widthOfString:font:]): new
1460 2004-09-10 Richard Williamson <rjw@apple.com>
1462 Fixed <rdar://problem/3782533> CrashTracer: .1459 crashes at com.apple.WebKit: -[WebTextRenderer initWithFont:usingPrinterFont:] + 0x138
1464 We were explicitly failing when we encountered deprecated fonts.
1465 (Those with unsupported glyph packings).
1466 Deprecated fonts should only appear on a system that have
1467 stuff migrated from OS 9. Ugh, thats probably why we've never seen
1472 * WebCoreSupport.subproj/WebTextRenderer.m:
1473 (-[WebTextRenderer initWithFont:usingPrinterFont:]):
1475 2004-09-10 John Sullivan <sullivan@apple.com>
1479 - added _isFrameSet as a private method, so it can be used in WebBrowser.
1480 This is needed to merge the fix for 3123987 to SUPanNavy.
1482 * WebView.subproj/WebFrame.m:
1483 (-[WebFrame _isFrameSet]):
1486 * WebView.subproj/WebFramePrivate.h:
1489 2004-09-09 Chris Blumenberg <cblu@apple.com>
1491 Support for: <rdar://problem/3795485> debug menu item to enable RSS animation on first layout
1495 * WebCoreSupport.subproj/WebBridge.m:
1496 (-[WebBridge didFirstLayout]): new
1497 * WebView.subproj/WebDefaultFrameLoadDelegate.m:
1498 (-[WebDefaultFrameLoadDelegate webView:didFirstLayoutInFrame:]): new
1499 * WebView.subproj/WebViewPrivate.h:
1501 2004-09-09 Richard Williamson <rjw@apple.com>
1503 Alternate implementation of image rendering. Use CGImageRefs instead
1506 Mostly works, but currently disabled because of issues w/ CG.
1511 * WebCoreSupport.subproj/WebImageData.h: Added.
1512 * WebCoreSupport.subproj/WebImageData.m: Added.
1513 (-[WebImageData _commonTermination]):
1514 (-[WebImageData dealloc]):
1515 (-[WebImageData finalize]):
1516 (-[WebImageData copyWithZone:]):
1517 (-[WebImageData numberOfImages]):
1518 (-[WebImageData currentFrame]):
1519 (-[WebImageData _invalidateImages]):
1520 (-[WebImageData imageAtIndex:]):
1521 (-[WebImageData incrementalLoadWithBytes:length:complete:]):
1523 (-[WebImageData tileInRect:fromPoint:context:]):
1524 (-[WebImageData isNull]):
1525 (-[WebImageData size]):
1526 (-[WebImageData _frameDuration]):
1527 (-[WebImageData _repetitionCount]):
1528 (-[WebImageData isAnimationFinished]):
1529 (+[WebImageData stopAnimationsInView:]):
1530 (-[WebImageData addAnimatingRenderer:inView:]):
1531 (-[WebImageData removeAnimatingRenderer:]):
1532 (-[WebImageData _stopAnimation]):
1533 (-[WebImageData _nextFrame:]):
1534 (-[WebImageData animate]):
1535 * WebCoreSupport.subproj/WebImageRenderer.h:
1536 * WebCoreSupport.subproj/WebImageRenderer.m:
1537 (-[WebImageRenderer initWithMIMEType:]):
1538 (-[WebImageRenderer initWithData:MIMEType:]):
1539 (-[WebImageRenderer initWithContentsOfFile:]):
1540 (-[WebImageRenderer dealloc]):
1541 (-[WebImageRenderer copyWithZone:]):
1542 (-[WebImageRenderer retainOrCopyIfNeeded]):
1543 (-[WebImageRenderer resize:]):
1544 (-[WebImageRenderer size]):
1545 (-[WebImageRenderer MIMEType]):
1546 (-[WebImageRenderer frameCount]):
1547 (-[WebImageRenderer isNull]):
1548 (-[WebImageRenderer incrementalLoadWithBytes:length:complete:]):
1549 (-[WebImageRenderer drawImageInRect:fromRect:]):
1550 (-[WebImageRenderer drawImageInRect:fromRect:compositeOperator:context:]):
1551 (-[WebImageRenderer tileInRect:fromPoint:context:]):
1552 (-[WebImageRenderer _startOrContinueAnimationIfNecessary]):
1553 (+[WebImageRenderer stopAnimationsInView:]):
1554 (-[WebImageRenderer stopAnimation]):
1555 (-[WebImageRenderer targetAnimationRect]):
1556 (-[WebImageRenderer increaseUseCount]):
1557 (-[WebImageRenderer decreaseUseCount]):
1558 (-[WebImageRenderer flushRasterCache]):
1559 (-[WebImageRenderer imageRef]):
1560 (-[WebImageRenderer TIFFRepresentation]):
1561 (-[WebImageRenderer image]):
1562 * WebCoreSupport.subproj/WebImageRendererFactory.m:
1563 (-[WebImageRendererFactory imageRendererWithMIMEType:]):
1564 (-[WebImageRendererFactory imageRendererWithData:MIMEType:]):
1565 (-[WebImageRendererFactory imageRendererWithSize:]):
1566 (-[WebImageRendererFactory imageRendererWithName:]):
1567 * WebKit.pbproj/project.pbxproj:
1568 * WebView.subproj/WebImageView.m:
1569 (-[WebImageView image]):
1573 2004-09-09 Maciej Stachowiak <mjs@apple.com>
1575 - rolled out last two changes, they seem to cause a performance regression
1577 * WebView.subproj/WebHTMLView.m:
1578 (-[WebHTMLView firstRectForCharacterRange:]):
1580 2004-09-09 Maciej Stachowiak <mjs@apple.com>
1584 * WebView.subproj/WebHTMLView.m:
1585 (-[WebHTMLView firstRectForCharacterRange:]):
1587 2004-09-08 Maciej Stachowiak <mjs@apple.com>
1591 WebKit part of fix for:
1593 <rdar://problem/3759187> REGRESSION (Mail): implement firstRectForCharacterRange:
1595 * WebView.subproj/WebHTMLView.m:
1596 (-[WebHTMLView firstRectForCharacterRange:]): Call the appropriate new bridge method,
1597 and translate to screen coordinates.
1599 2004-09-09 Darin Adler <darin@apple.com>
1603 - fixed <rdar://problem/3790526> mark-related methods not implemented (needed for people with them in their key bindings files)
1605 * WebKit.pbproj/project.pbxproj: Update MACOSX_DEPLOYMENT_TARGET to 10.3 and add -fobjc-exceptions
1606 so we can use new exceptions.
1608 * WebView.subproj/WebHTMLView.m:
1609 (-[WebHTMLView setMark:]): Added.
1610 (unionDOMRanges): Added.
1611 (-[WebHTMLView deleteToMark:]): Added.
1612 (-[WebHTMLView selectToMark:]): Added.
1613 (-[WebHTMLView swapWithMark:]): Added.
1614 (-[WebHTMLView markedRange]): Updated for change to bridge method names.
1615 (-[WebHTMLView hasMarkedText]): Ditto.
1616 (-[WebHTMLView unmarkText]): Ditto.
1617 (-[WebHTMLView _selectMarkedText]): Ditto.
1618 (-[WebHTMLView _selectRangeInMarkedText:]): Ditto.
1619 (-[WebHTMLView setMarkedText:selectedRange:]): Ditto.
1620 (-[WebHTMLView _insertText:selectInsertedText:]): Removed check for empty string. An empty string
1621 should not be filtered out here. We need to allow inserting an empty string.
1622 (-[WebHTMLView _selectionIsInsideMarkedText]): Updated for change to bridge method names.
1623 (-[WebHTMLView _updateSelectionForInputManager]): Ditto.
1625 * WebView.subproj/WebView.m: (-[WebView searchFor:direction:caseSensitive:wrap:]):
1626 Changed to use selectionDOMRange instead of selectionStart.
1628 * WebView.subproj/WebHTMLRepresentation.h: Removed unused setSelectionFrom method.
1629 * WebView.subproj/WebHTMLRepresentation.m: Ditto.
1631 2004-09-08 John Sullivan <sullivan@apple.com>
1635 - fixed the localization aspect of:
1636 <rdar://problem/3790011> undoable operations all say "Undo" in the menu, no specific action names
1638 We now have all the strings ready for localization; we just don't actually use them yet.
1640 * English.lproj/Localizable.strings:
1641 updated for this change
1643 * WebCoreSupport.subproj/WebBridge.m:
1644 (-[WebBridge setUndoActionNamePlaceholder]):
1645 added this placeholder method whose purpose is to hold localizable strings for all the Undo
1646 action names that NSTextView uses. Later we will use some or all of these, but we can do
1647 that part after the localization freeze.
1649 2004-09-08 Chris Blumenberg <cblu@apple.com>
1651 Fixed: <rdar://problem/3778785> REGRESSION (Mail): copying from MS word and pasting into editable region leaves internal clipboard data
1653 Reviewed by kocienda.
1655 * WebView.subproj/WebHTMLView.m:
1656 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]): ignore Microsoft's header meta data
1658 2004-09-08 Chris Blumenberg <cblu@apple.com>
1660 Fixed: <rdar://problem/3792893> WebBaseResourceHandleDelegate always returns cached data for subresource loads
1664 * WebView.subproj/WebBaseResourceHandleDelegate.m:
1665 (-[WebBaseResourceHandleDelegate _canUseResourceForRequest:]): new
1666 (-[WebBaseResourceHandleDelegate loadWithRequest:]): call _canUseResourceForRequest:
1668 2004-09-08 Chris Blumenberg <cblu@apple.com>
1670 Forgot to add this in previous check-in.
1672 * English.lproj/WebViewEditingContextMenu.nib: Added.
1674 2004-09-08 Chris Blumenberg <cblu@apple.com>
1676 Fixed: <rdar://problem/3791240> WebKit uses the NSTextViewContextMenu nib from inside AppKit
1680 * English.lproj/StringsNotToBeLocalized.txt:
1681 * WebKit.pbproj/project.pbxproj:
1682 * WebView.subproj/WebDefaultContextMenuDelegate.m:
1683 (-[WebDefaultUIDelegate editingContextMenuItemsForElement:]): use our copy of the nib
1685 2004-09-07 Darin Adler <darin@apple.com>
1687 * English.lproj/StringsNotToBeLocalized.txt: Update for recent changes.
1689 2004-09-07 Chris Blumenberg <cblu@apple.com>
1691 Fixed: <rdar://problem/3790143> exception raised when dragging a URL with 2-byte characters
1693 (checked in with last check-in)
1695 2004-09-07 Chris Blumenberg <cblu@apple.com>
1698 <rdar://problem/3080103> Need to pass cmd-modified keys to plug-ins
1699 <rdar://problem/3751509> can't use safari edit menu to copy and paste with Vantage Learning's My Access
1703 * Plugins.subproj/WebBaseNetscapePluginView.m: fake up command-key events for cut, copy, paste and select all so these menu items work for plug-ins
1704 (-[WebBaseNetscapePluginView sendModifierEventWithKeyCode:character:]):
1705 (-[WebBaseNetscapePluginView cut:]):
1706 (-[WebBaseNetscapePluginView copy:]):
1707 (-[WebBaseNetscapePluginView paste:]):
1708 (-[WebBaseNetscapePluginView selectAll:]):
1710 2004-09-07 Darin Adler <darin@apple.com>
1712 - fixed deployment build
1714 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView _deleteWithDirection:granularity:killRing:]):
1715 Initialize prepend variable.
1717 2004-09-06 Darin Adler <darin@apple.com>
1721 - fixed <rdar://problem/3696542> REGRESSION (Mail): Editable WebKit doesn't support underline yet (in the iChat profile window, at least)
1722 - fixed <rdar://problem/3780249> REGRESSION (Mail): copy style/paste style doesn't work in HTML editing in Mail
1723 - fixed <rdar://problem/3788857> REGRESSION (Mail): Home and End keys don't work in message composer
1724 - fixed <rdar://problem/3788884> REGRESSION (Mail): ctrl-d emacs key binding does not work (delete forward)
1725 - fixed <rdar://problem/3788890> REGRESSION (Mail): ctrl-k emacs key binding does not work (delete to end of paragraph)
1726 - fixed <rdar://problem/3788899> REGRESSION (Mail): ctrl-y emacs key binding does not work (yank)
1727 - fixed <rdar://problem/3788901> REGRESSION (Mail): ctrl-o emacs key binding does not work (insert newline in front of insertion point)
1728 - fixed <rdar://problem/3788908> REGRESSION (Mail): ctrl-left-arrow emacs key binding does not work (move to beginning of line)
1729 - fixed <rdar://problem/3788913> REGRESSION (Mail): ctrl-right-arrow emacs key binding does not work (move to end of line)
1730 - implemented a first cut at other attribute changes from Text Panel besides underline (bugs?)
1731 - dealt with a couple of FIXMEs in WebHTMLView.m
1732 - updated list of not-yet-implemented methods in WebHTMLView.m
1733 - fixed many deletion operations to call the correct editing delegate methods
1735 * WebView.subproj/WebFrameViewPrivate.h: Remove _scrollToTopLeft and _scrollToBottomLeft.
1736 No one was calling them anyway, so they should really have been marked internal and not private.
1737 * WebView.subproj/WebFrameView.m:
1738 (-[WebFrameView scrollToBeginningOfDocument:]): Renamed _scrollToTopLeft to this, so the home key
1739 would start working with the key bindings machinery.
1740 (-[WebFrameView scrollToEndOfDocument:]): Same thing, for end key.
1741 (-[WebFrameView keyDown:]): Update for name changes, and also make sure we don't try to grab
1742 control-arrow keys here (probably not necessary, but good anyway).
1744 * WebView.subproj/WebHTMLViewInternal.h: Added keyDownEvent field, and startNewKillRingSequence
1745 and nextResponderDisabledOnce flags.
1746 * WebView.subproj/WebHTMLView.m:
1747 Rearrange declarations at the top of the file so that external things are up with
1748 the #import directives and things inside this file are declared below.
1749 (-[WebHTMLView _shouldReplaceSelectionWithText:givenAction:]): Ditto.
1750 (-[WebHTMLView _calculatePrintHeight]): Moved up into the "internal to file" category.
1751 (-[WebHTMLView _updateTextSizeMultiplier]): Ditto.
1752 (-[WebHTMLView _selectedRange]): Added.
1753 (-[WebHTMLView _openLinkFromMenu:]): Left this method lying around even though I deleted the
1754 other APPKIT_CODE_FOR_REFERENCE in case this shows up in the context menu we are now sharing
1755 with the AppKit. Chris will look at this later, and he can delete it then.
1756 (+[WebHTMLView initialize]): Call _NSInitializeKillRing.
1757 (-[WebHTMLView _documentRange]): Added.
1758 (-[WebHTMLView string]): Call the bridge to get the plain text rather than making an attributed
1759 string and then getting the text from there.
1760 (-[WebHTMLView becomeFirstResponder]): Set startNewKillRingSequence flag, so that new deletions
1761 will create a new kill ring entry.
1762 (-[WebHTMLView moveToBeginningOfDocument:]): Use backward direction instead of left direction.
1763 (-[WebHTMLView moveToBeginningOfDocumentAndModifySelection:]): Ditto.
1764 (-[WebHTMLView moveToBeginningOfLine:]): Ditto.
1765 (-[WebHTMLView moveToBeginningOfLineAndModifySelection:]): Ditto.
1766 (-[WebHTMLView moveToBeginningOfParagraph:]): Ditto, also use WebSelectToParagraphBoundary.
1767 (-[WebHTMLView moveToBeginningOfParagraphAndModifySelection:]): Ditto.
1768 (-[WebHTMLView moveToEndOfDocument:]): Use forward direction instead of right direction.
1769 (-[WebHTMLView moveToEndOfDocumentAndModifySelection:]): Ditto.
1770 (-[WebHTMLView moveToEndOfLine:]): Ditto.
1771 (-[WebHTMLView moveToEndOfLineAndModifySelection:]): Ditto.
1772 (-[WebHTMLView moveToEndOfParagraph:]): Ditto, also use WebSelectToParagraphBoundary.
1773 (-[WebHTMLView moveToEndOfParagraphAndModifySelection:]): Ditto.
1774 (-[WebHTMLView _shouldDeleteRange:]): Added.
1775 (-[WebHTMLView _deleteRange:preflight:killRing:prepend:]): Added.
1776 (-[WebHTMLView delete:]): Changed to call new _deleteRange method.
1777 (-[WebHTMLView cut:]): Changed to preflight property and call new _deleteRange method.
1778 (-[WebHTMLView _selectionFontAttributes]): Added.
1779 (-[WebHTMLView _selectionFontAttributesAsRTF]): Added.
1780 (-[WebHTMLView _fontAttributesFromFontPasteboard]): Added.
1781 (-[WebHTMLView _emptyStyle]): Added.
1782 (-[WebHTMLView _styleFromFontAttributes:]): Added.
1783 (-[WebHTMLView _applyStyleToSelection:]): Added.
1784 (-[WebHTMLView copyFont:]): Implemented.
1785 (-[WebHTMLView pasteFont:]): Implemented.
1786 (-[WebHTMLView _originalFontA]): Added.
1787 (-[WebHTMLView _originalFontB]): Added.
1788 (-[WebHTMLView _addToStyle:fontA:fontB:]): Added. Has code from the method that figures out
1789 what the font manager is doing for changeFont:, now needed for changeAttribute: too.
1790 (-[WebHTMLView _styleFromFontManagerOperation]): Renamed and now calls shared methods.
1791 (-[WebHTMLView changeFont:]): Call shared method, still does the same thing.
1792 (-[WebHTMLView _colorAsString:]): Added. Has code from the method we were using with the
1794 (-[WebHTMLView _shadowAsString:]): Added.
1795 (-[WebHTMLView _styleForAttributeChange:]): Added.
1796 (-[WebHTMLView changeAttributes:]): Implemented.
1797 (-[WebHTMLView _styleFromColorPanelWithSelector:]): Renamed and now calls shared methods.
1798 (-[WebHTMLView _changeCSSColorUsingSelector:inRange:]): Call method by new name.
1799 (-[WebHTMLView changeDocumentBackgroundColor:]): Call method by new name.
1800 (-[WebHTMLView changeColor:]): Changed around a bit; still doesn't work yet.
1801 (-[WebHTMLView _alignSelectionUsingCSSValue:]): Call shared methods.
1802 (-[WebHTMLView indent:]): Removed, since NSTextView doesn't implement this method. Added to list
1803 of methods to possibly implement later in the file.
1804 (-[WebHTMLView insertTab:]): Call insertText: to save code and so we get WebViewInsertActionTyped
1805 instead of WebViewInsertActionPasted.
1806 (-[WebHTMLView changeCaseOfLetter:]): Removed, since NSTextView doesn't implement this method.
1807 Added to list of methods to possibly implement later in the file.
1808 (-[WebHTMLView _deleteWithDirection:granularity:killRing:]): Added.
1809 (-[WebHTMLView deleteForward:]): Implemented. This makes Control-D work.
1810 (-[WebHTMLView deleteBackwardByDecomposingPreviousCharacter:]): Implemented by just calling
1811 deleteBackward for now; probably better than doing nothing.
1812 (-[WebHTMLView deleteWordForward:]): Changed to call new _delete method above. Fixes things
1813 so that we delete the selection if there is one, get the appropriate delegate calls, handle
1814 the kill ring properly, and don't do any selection if we can't delete.
1815 (-[WebHTMLView deleteWordBackward:]): Ditto.
1816 (-[WebHTMLView deleteToBeginningOfLine:]): Ditto.
1817 (-[WebHTMLView deleteToEndOfLine:]): Ditto.
1818 (-[WebHTMLView deleteToBeginningOfParagraph:]): Ditto.
1819 (-[WebHTMLView deleteToEndOfParagraph:]): Ditto. Added additional behavior needed since this
1820 is bound to Control-K, so it's not really just delete to end of paragraph.
1821 (-[WebHTMLView insertNewlineIgnoringFieldEditor:]): Added. Calls insertNewline:.
1822 (-[WebHTMLView insertTabIgnoringFieldEditor:]): Added. Calls insertTab:.
1823 (-[WebHTMLView subscript:]): Added.
1824 (-[WebHTMLView superscript:]): Added.
1825 (-[WebHTMLView unscript:]): Added.
1826 (-[WebHTMLView underline:]): Added.
1827 (-[WebHTMLView yank:]): Added.
1828 (-[WebHTMLView yankAndSelect:]): Added. Calls _insertText.
1829 (-[WebHTMLView _arrowKeyDownEventSelectorIfPreprocessing:]): Added. Part of workaround for
1830 control-arrow key trouble.
1831 (-[WebHTMLView respondsToSelector:]): Added. More of workaround.
1832 (-[WebHTMLView nextResponder:]): Added. More of workaround.
1833 (-[WebHTMLView _selectionChanged]): Set startNewKillRingSequence flag, so that new deletions
1834 will create a new kill ring entry.
1835 (-[WebHTMLView _updateFontPanel]): Remove a bunch of code here that wasn't working very well
1836 because it walked a DOM range incorrectly, and instead use the new method that does all the
1837 right stuff on the other side of the bridge.
1838 (-[WebHTMLView _insertText:selectInsertedText:]): Added new helper method for use by both
1839 insertText and yankAndSelect, with most of the guts of insertText and one additional parameter.
1840 (-[WebHTMLView insertText:]): Call the new _insertText.
1842 * WebView.subproj/WebView.m: Use macros to make the forwarding from WebView more terse.
1843 Updated the list to include a few methods it didn't before.
1845 2004-09-06 John Sullivan <sullivan@apple.com>
1849 - put preference keys in a private header file so Safari can use them for Managed Preferences
1851 * WebView.subproj/WebPreferenceKeysPrivate.h:
1852 new Private header file, includes the #defines for NSUserDefaults preference keys
1854 * WebView.subproj/WebPreferences.m:
1855 moved the preference key #defines out of here; now imports WebPreferenceKeysPrivate.h
1857 * WebKit.pbproj/project.pbxproj:
1858 updated for new file
1860 2004-09-03 Chris Blumenberg <cblu@apple.com>
1862 Fixed: <rdar://problem/3782543> CrashTracer: ...87 crashes at com.apple.WebKit: -[WebNetscapePluginPackage initWithPath:] + 0x18c
1866 * Plugins.subproj/WebNetscapePluginPackage.m:
1867 (-[WebNetscapePluginPackage initWithPath:]): make sure the file is at least 8 bytes long before calling memcmp
1869 2004-09-03 Chris Blumenberg <cblu@apple.com>
1872 <rdar://problem/3788328> assertion failure when moving an image
1873 <rdar://problem/3783628> REGRESSION (Mail): when I try to reorder an image, the image is duplicated
1875 Reviewed by NOBODY (OOPS!).
1877 * DOM.subproj/WebDOMOperations.m:
1878 (-[DOMDocument _createRangeWithNode:]): new, convenience
1879 (-[DOMDocument _documentRange]): use _ createRangeWithNode:
1880 * DOM.subproj/WebDOMOperationsPrivate.h:
1881 * WebView.subproj/WebHTMLView.m:
1882 (-[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
1886 2004-09-02 Richard Williamson <rjw@apple.com>
1888 Support for patterns in <canvas>.
1889 (These changes attempt to create a CGImageRef from a WebImageRenderer that
1890 is used by the pattern drawing function.)
1894 * WebCoreSupport.subproj/WebImageRenderer.h:
1895 * WebCoreSupport.subproj/WebImageRenderer.m:
1896 (-[WebImageRenderer dealloc]):
1897 (-[WebImageRenderer finalize]):
1898 (-[WebImageRenderer imageRef]):
1900 * WebView.subproj/WebPDFView.h:
1901 * WebView.subproj/WebPDFView.m:
1903 2004-09-01 Chris Blumenberg <cblu@apple.com>
1905 Fixed deployment build failure.
1907 * WebView.subproj/WebDefaultContextMenuDelegate.m:
1908 (-[WebDefaultUIDelegate menuItemWithTag:]):
1910 2004-08-31 Chris Blumenberg <cblu@apple.com>
1913 <rdar://problem/3699498> Context menu for editable WebViews should provide items like Cut and Paste
1914 <rdar://problem/3781535> REGRESSION (Mail): no context menu after ctrl-clicking a misspelled word
1916 Reviewed by kocienda.
1918 * English.lproj/Localizable.strings:
1919 * WebView.subproj/WebDefaultContextMenuDelegate.m:
1920 (-[WebDefaultUIDelegate menuItemWithTag:]): updated to handle new menu items
1921 (-[WebDefaultUIDelegate contextMenuItemsForElement:]): renamed from webView:contextMenuItemsForElement:defaultMenuItems:
1922 (-[WebDefaultUIDelegate editingContextMenuItemsForElement:]): new
1923 (-[WebDefaultUIDelegate webView:contextMenuItemsForElement:defaultMenuItems:]): moved, now call contextMenuItemsForElement: or editingContextMenuItemsForElement:
1924 * WebView.subproj/WebDefaultUIDelegate.h:
1925 * WebView.subproj/WebHTMLView.m:
1926 (-[WebHTMLView _isSelectionMisspelled]): new
1927 (-[WebHTMLView _guessesForMisspelledSelection]): new
1928 (-[WebHTMLView _changeSpellingFromMenu:]): new
1929 (-[WebHTMLView _ignoreSpellingFromMenu:]): new
1930 (-[WebHTMLView _learnSpellingFromMenu:]): new
1931 * WebView.subproj/WebHTMLViewPrivate.h:
1932 * WebView.subproj/WebUIDelegate.h:
1934 2004-08-31 Darin Adler <darin@apple.com>
1936 - fixed B&I build failure
1938 * WebView.subproj/WebHTMLView.m: (-[WebTextCompleteController _buildUI]):
1939 Work around unwanted warning by adding a cast.
1941 2004-08-27 Maciej Stachowiak <mjs@apple.com>
1945 <rdar://problem/3778314> REGRESSION: Can't proceed to survey questions on Lominger's Apple website
1947 Because we will stop parsing when there is a pending redirection,
1948 avoid setting one if no navigation would actually take place
1949 because the number of steps is out of range.
1951 * WebCoreSupport.subproj/WebBridge.m:
1952 (-[WebBridge canGoBackOrForward:]):
1954 2004-08-30 Darin Adler <darin@apple.com>
1958 - part of fix for <rdar://problem/3637519> REGRESSION (125-128): unrepro crash in QListBox::sizeForNumberOfLines at istweb.apple.com
1960 * WebCoreSupport.subproj/WebTextRendererFactory.m: (-[WebTextRendererFactory clearCaches]):
1961 Call [super clearCaches].
1963 2004-08-30 Darin Adler <darin@apple.com>
1967 - did work to prepare for uploading files incrementally when submitting forms
1969 * History.subproj/WebHistoryItem.m:
1970 (-[WebHistoryItem _setFormInfoFromRequest:]): Use NSArray instead of NSData for form data.
1971 (-[WebHistoryItem formData]): Ditto.
1972 * History.subproj/WebHistoryItemPrivate.h: Ditto.
1973 * WebCoreSupport.subproj/WebBridge.m:
1974 (-[WebBridge startLoadingResource:withURL:customHeaders:postData:]): Ditto.
1975 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]): Ditto.
1976 (-[WebBridge postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]): Ditto.
1977 * WebCoreSupport.subproj/WebSubresourceClient.h: Ditto.
1978 * WebCoreSupport.subproj/WebSubresourceClient.m:
1979 (+[WebSubresourceClient startLoadingResource:withURL:customHeaders:postData:referrer:forDataSource:]): Ditto.
1980 * WebView.subproj/WebFrame.m:
1981 (-[WebFrame _loadItem:withLoadType:]): Ditto.
1982 (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]): Ditto.
1983 * WebView.subproj/WebFramePrivate.h: Ditto.
1985 * WebView.subproj/WebFormDataStream.h: Added.
1986 * WebView.subproj/WebFormDataStream.m:
1987 (-[WebFormDataStream initWithFormDataArray:]): Placeholder; not done yet.
1988 (-[WebFormDataStream formDataArray]): Ditto.
1989 * WebKit.pbproj/project.pbxproj: Added WebFormDataStream files.
1991 2004-08-30 John Sullivan <sullivan@apple.com>
1995 - WebKit part of fix for <rdar://problem/3607720> myFrame.print() prints the window
1996 but should only print the frame
1998 * WebView.subproj/WebUIDelegatePrivate.h:
1999 declare new delegate method that includes which frame to print
2001 * WebView.subproj/WebDefaultUIDelegate.m:
2002 (-[WebDefaultUIDelegate webView:printFrameView:]):
2003 implement default (no-op) version of new delegate method
2005 * WebCoreSupport.subproj/WebBridge.m:
2006 (-[WebBridge print]):
2007 call new delegate method if available, otherwise call old delegate method, for
2008 backward compatibility.
2010 2004-08-27 Maciej Stachowiak <mjs@apple.com>
2015 Ken comments: It looks like Maciej forgot to land this when he checked in the
2016 WebCore portion of this change.
2018 <rdar://problem/3778314> REGRESSION: Can't proceed to survey questions on Lominger's Apple website
2020 Because we will stop parsing when there is a pending redirection,
2021 avoid setting one if no navigation would actually take place
2022 because the number of steps is out of range.
2024 * WebCoreSupport.subproj/WebBridge.m:
2025 (-[WebBridge canGoBackOrForward:]):
2027 2004-08-27 Ken Kocienda <kocienda@apple.com>
2033 <rdar://problem/3756997> WebKit aggressive in making pasted text into a URL, even when it's not much like a URL
2035 * WebView.subproj/WebHTMLView.m:
2036 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]): Don't try so hard to coerce data
2037 on the pasteboard into a URL, and do not make an anchor with an href for any URLs that are
2038 explicitly present on the pasteboard. Also, move URL pasteboard type check beneath the RTF
2043 2004-08-26 Chris Blumenberg <cblu@apple.com>
2045 Fixed build failure on Panther.
2049 * WebView.subproj/WebHTMLView.m:
2050 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]): ifdef'd out call to AppKit SPI
2051 (-[WebHTMLView _attributeStringFromDOMRange:]): ditto
2053 2004-08-26 Chris Blumenberg <cblu@apple.com>
2055 Tweak to last check-in.
2057 * WebView.subproj/WebHTMLView.m:
2058 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]):
2060 2004-08-26 Chris Blumenberg <cblu@apple.com>
2063 <rdar://problem/3546412> support for pasting and drag and dropping of RTF and RTFD to editable WebViews
2064 <rdar://problem/3745345> use AppKit for converting from DOM to RTF
2068 * DOM.subproj/WebDOMOperations.m:
2069 (-[DOMDocument _documentRange]): new
2070 * DOM.subproj/WebDOMOperationsPrivate.h:
2071 * WebView.subproj/WebHTMLView.m:
2072 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]): call AppKit SPI to get a document fragment from an attributed string
2073 (-[WebHTMLView string]): added a FIXME
2074 (-[WebHTMLView _attributeStringFromDOMRange:]): new, calls AppKit SPI that creates an attributed string from a DOM Range
2075 (-[WebHTMLView attributedString]): call _attributeStringFromDOMRange:, fallback to old code if it returns nil
2076 (-[WebHTMLView selectedAttributedString]): ditto
2078 2004-08-26 Chris Blumenberg <cblu@apple.com>
2080 Fixed: <rdar://problem/3774178> Plugin hooks for selected state aren't being called
2084 * WebCoreSupport.subproj/WebBridge.m:
2085 (-[WebBridge setIsSelected:forView:]): don't forget colons in method names
2087 2004-08-26 Chris Blumenberg <cblu@apple.com>
2089 Fixed: <rdar://problem/3768439> can't click in WebView in Carbon WebKit apps (GetEventPlatformEventRecord returns false)
2093 * Carbon.subproj/HIWebView.m:
2094 (Click): use WebGetEventPlatformEventRecord not GetEventPlatformEventRecord
2097 (MouseDragged): ditto
2098 (MouseWheelMoved): ditto
2099 (WindowHandler): ditto
2100 (HIWebViewEventHandler): ditto
2101 (UpdateObserver): ditto
2102 (WebGetEventPlatformEventRecord): Call GetEventPlatformEventRecord, if that fails fallback to the current event. This is code Eric Schlegel to me to use.
2104 2004-08-24 Chris Blumenberg <cblu@apple.com>
2106 Fixed with help from Trey:
2107 <rdar://problem/3764856> REGRESSION !25-154): Safari accepts mouse clicks (follows links) when not key
2111 * WebView.subproj/WebHTMLView.m:
2112 (-[WebHTMLView _isSelectionEvent:]): brought back from CVS
2113 (-[WebHTMLView acceptsFirstMouse:]): only call eventMayStartDrag if _isSelectionEvent returns YES since we only want to allow selection dragging on the first mouse down
2114 (-[WebHTMLView shouldDelayWindowOrderingForEvent:]): ditto
2116 2004-08-24 Ken Kocienda <kocienda@apple.com>
2120 Improved the checks used to see if certain operations can be done based
2121 on the state of the selection and whether the selection is editable. I
2122 added some helpers and improved some others to assist in making these
2125 This helps to fix this bug:
2126 <rdar://problem/3764987> Crash after adding newline to quoted text
2128 Since some editing methods expect the the selection to be in a certain state
2129 in order to work, these checks help obviate crashes like 3764987.
2131 * WebView.subproj/WebHTMLView.m:
2132 (-[WebHTMLView _writeSelectionToPasteboard:]): _haveSelection name changed to _hasSelection.
2133 (-[WebHTMLView _canCopy]): Checks to see if state is appropriate to perform this operation.
2134 (-[WebHTMLView _canCut]): Ditto. Function added.
2135 (-[WebHTMLView _canDelete]): Ditto. Function refined.
2136 (-[WebHTMLView _canPaste]): Ditto. Function refined.
2137 (-[WebHTMLView _canType]): Ditto. Function added.
2138 (-[WebHTMLView _hasSelection]): Name changed from _haveSelection.
2139 (-[WebHTMLView _hasSelectionOrInsertionPoint]): Added.
2140 (-[WebHTMLView _isEditable]): Added.
2141 (-[WebHTMLView takeFindStringFromSelection:]): _haveSelection name changed to _hasSelection.
2142 (-[WebHTMLView validateUserInterfaceItem:]): Ditto
2143 (-[WebHTMLView validRequestorForSendType:returnType:]): Ditto
2144 (-[WebHTMLView keyDown:]):
2145 (-[WebHTMLView copy:]): Uses new _canCopy check.
2146 (-[WebHTMLView cut:]): Uses new _canCut check.
2147 (-[WebHTMLView delete:]): Now uses _canDelete check.
2148 (-[WebHTMLView paste:]): Now uses _canPaste check.
2149 (-[WebHTMLView _updateFontPanel]): _haveSelection name changed to _hasSelection.
2150 * WebView.subproj/WebHTMLViewPrivate.h:
2151 * WebView.subproj/WebView.m:
2152 (-[WebView writeSelectionWithPasteboardTypes:toPasteboard:]): Use selectionState check to
2153 determine whether or not operation can be done.
2155 2004-08-24 Richard Williamson <rjw@apple.com>
2157 Fixed <rdar://problem/3770469> Some PDFs open with line of previous page above PDF view
2159 Set height resize flags on WebPDFView.
2163 * WebView.subproj/WebPDFView.m:
2164 (-[WebPDFView initWithFrame:]):
2166 2004-08-24 David Hyatt <hyatt@apple.com>
2168 Add Atom and RSS MIME types to set of supported XML types.
2172 * WebView.subproj/WebDataSource.m:
2173 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
2174 * WebView.subproj/WebFrameView.m:
2175 (+[WebFrameView _viewTypesAllowImageTypeOmission:]):
2177 2004-08-23 Maciej Stachowiak <mjs@apple.com>
2181 - remove annoying ERROR spew and replace with comment
2183 * WebView.subproj/WebHTMLView.m:
2184 (-[WebHTMLView validAttributesForMarkedText]):
2186 2004-08-23 Maciej Stachowiak <mjs@apple.com>
2188 Reviewed by Richard.
2190 - a bit of code cleanup
2192 * WebView.subproj/WebDataSource.m:
2193 (-[WebDataSource _stringWithData:]): Call textEncodingName instead of
2195 (-[WebDataSource textEncodingName]): Tweak formatting.
2197 2004-08-23 Chris Blumenberg <cblu@apple.com>
2201 * WebKit.pbproj/project.pbxproj: make sure we're doing -f on a file, not a directory
2203 2004-08-23 Chris Blumenberg <cblu@apple.com>
2205 Fixed: <rdar://problem/3674867> use new Security framework SPI's to reenable cert acquisition
2209 * WebCoreSupport.subproj/WebKeyGeneration.cpp:
2210 * WebCoreSupport.subproj/WebKeyGeneration.h:
2211 * WebCoreSupport.subproj/WebKeyGenerator.h:
2212 * WebCoreSupport.subproj/WebKeyGenerator.m:
2213 (-[WebKeyGenerator signedPublicKeyAndChallengeStringWithStrengthIndex:challenge:pageURL:]): re-enabled cert code, call Panther version on Panther, Tiger version on Tiger
2214 (-[WebKeyGenerator addCertificatesToKeychainFromData:]): ditto
2215 * WebCoreSupport.subproj/WebNewKeyGeneration.c: Added.
2216 (gnrAddContextAttribute):
2222 (signedPublicKeyAndChallengeString):
2223 (addCertificateToKeychainFromData):
2224 (addCertificatesToKeychainFromData):
2225 * WebCoreSupport.subproj/WebNewKeyGeneration.h: Added.
2226 * WebKit.pbproj/project.pbxproj:
2228 2004-08-20 David Hyatt <hyatt@apple.com>
2230 Fix the directionality of the unicode hyphen so that on Panther it now matches Tiger.
2234 * Misc.subproj/WebUnicode.m:
2235 (_unicodeDirection):
2237 2004-08-20 Richard Williamson <rjw@apple.com>
2239 Implemented new JNI abstraction. We no longer invoke Java methods
2240 directly with JNI, rather we call into the plugin. This allows the
2241 plugin to dispatch the call to the appropriate VM thread. This
2242 change should (will?) fix a whole class of threading related problems with
2247 * WebCoreSupport.subproj/WebBridge.m:
2248 (-[WebBridge getAppletInView:]):
2250 2004-08-20 Trey Matteson <trey@apple.com>
2252 3655407 - Editing: -complete: method unimplemented (WebKit editing API)
2254 This feature is mostly implemented. The only loose ends I know of are:
2256 3769654 - text insertions done via complete: should preserve case of full replacement string
2257 3769652 - positioning of complete: popup window wrong for right-to-left languages
2261 * WebView.subproj/WebHTMLView.m:
2262 (-[WebHTMLViewPrivate dealloc]): Free new object.
2263 (-[WebHTMLView menuForEvent:]): Bail on completion session.
2264 (-[WebHTMLView windowDidResignKey:]): Ditto.
2265 (-[WebHTMLView windowWillClose:]): Ditto.
2266 (-[WebHTMLView mouseDown:]): Ditto.
2267 (-[WebHTMLView resignFirstResponder]): Ditto.
2268 (-[WebHTMLView keyDown:]): Bail on completion session if WebCore takes the event.
2269 Give the CompleteController a crack at the key event.
2270 (-[WebHTMLView _expandSelectionToGranularity:]): Adopt method rename
2271 (-[WebHTMLView complete:]): Make CompleteController, tell it to do its thing.
2272 (-[WebHTMLView checkSpelling:]): Add ERROR().
2273 (-[WebHTMLView showGuessPanel:]): Add ERROR().
2274 (-[WebHTMLView _changeSpellingToWord:]): Add ERROR().
2275 (-[WebHTMLView ignoreSpelling:]): Add ERROR().
2277 (-[WebTextCompleteController initWithHTMLView:]):
2278 (-[WebTextCompleteController dealloc]):
2279 (-[WebTextCompleteController _insertMatch:]): Stick the new string into the doc.
2280 (-[WebTextCompleteController _buildUI]): Make popup window.
2281 (-[WebTextCompleteController _placePopupWindow:]): Position popup window.
2282 (-[WebTextCompleteController doCompletion]): Lookup matches, display window.
2283 (-[WebTextCompleteController endRevertingChange:moveLeft:]): Bail on complete: session.
2284 (-[WebTextCompleteController filterKeyDown:]): Process keys while popup is up.
2285 (-[WebTextCompleteController _reflectSelection]): Handle choice in popup.
2286 (-[WebTextCompleteController tableAction:]): Handle double click in popup
2287 (-[WebTextCompleteController numberOfRowsInTableView:]): Fill table with matches.
2288 (-[WebTextCompleteController tableView:objectValueForTableColumn:row:]): Ditto.
2289 (-[WebTextCompleteController tableViewSelectionDidChange:]): Handle selection change.
2290 * WebView.subproj/WebHTMLViewInternal.h:
2292 2004-08-20 John Sullivan <sullivan@apple.com>
2294 * English.lproj/StringsNotToBeLocalized.txt:
2295 checked this in; the only difference is that
2296 the strings were out of order.
2298 2004-08-19 Richard Williamson <rjw@apple.com>
2300 Continue to call old pollForAppletInView: in Tiger until
2301 we get an plugin that supports the new API.
2305 * WebCoreSupport.subproj/WebBridge.m:
2306 (-[WebBridge getAppletInView:]):
2307 * WebKit.pbproj/project.pbxproj:
2311 2004-08-19 Chris Blumenberg <cblu@apple.com>
2313 Fixed typo in comment.
2315 * Misc.subproj/WebIconDatabase.m:
2316 (-[WebIconDatabase _updateFileDatabase]):
2318 2004-08-19 Chris Blumenberg <cblu@apple.com>
2320 Fixed: <rdar://problem/3566336> CrashTracer: .2403 crashes at com.apple.WebKit: -[WebFileDatabase performSetObject:forKey:] + 0x94
2324 * Misc.subproj/WebIconDatabase.m:
2325 (-[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
2327 2004-08-18 Richard Williamson <rjw@apple.com>
2329 Replace horrible pollForAppletInView: with new
2330 webPlugInGetApplet. The details of how the applet instance
2331 is provided now belong to the Java team. Yeh.
2335 * WebCoreSupport.subproj/WebBridge.m:
2336 (-[WebBridge getAppletInView:]):
2338 2004-08-17 Richard Williamson <rjw@apple.com>
2340 Fixed <rdar://problem/3759093> Need PDF context menu: "Open in Preview" or other external app
2342 Added support for "Open with ..." in PDF view.
2344 Reviewed by Chris and Trey.
2347 * English.lproj/Localizable.strings:
2348 * English.lproj/StringsNotToBeLocalized.txt:
2349 * WebView.subproj/WebPDFView.h:
2350 * WebView.subproj/WebPDFView.m:
2351 (-[WebPDFView initWithFrame:]):
2352 (-[WebPDFView dealloc]):
2353 (applicationInfoForMIMEType):
2354 (-[WebPDFView path]):
2355 (-[WebPDFView menuForEvent:]):
2356 (-[WebPDFView setDataSource:]):
2357 (-[WebPDFView layout]):
2358 (-[WebPDFView viewDidMoveToHostWindow]):
2359 (-[WebPDFView openWithFinder:]):
2361 2004-08-17 Richard Williamson <rjw@apple.com>
2363 JNI needs both the jmethodID and return type. Changed API to
2368 * Plugins.subproj/WebJavaPlugIn.h:
2370 2004-08-17 Trey Matteson <trey@apple.com>
2372 3764147 - failure of subframe to load leaves links in parent doc broken
2376 * WebView.subproj/WebDataSource.m:
2377 (-[WebDataSource _receivedMainResourceError:complete:]):
2378 Need to call [bridge end] in the case of an error, so WC can clean up.
2382 2004-08-15 Richard Williamson <rjw@apple.com>
2384 More changes to np headers.
2388 * Plugins.subproj/WebNetscapePluginPackage.m:
2389 (-[WebNetscapePluginPackage load]):
2390 * Plugins.subproj/npapi.h:
2391 * Plugins.subproj/npfunctions.h:
2392 * Plugins.subproj/npruntime.h:
2394 2004-08-13 Darin Adler <darin@apple.com>
2398 - fixed <rdar://problem/3760924> Carbon path passed in NPP_StreamAsFile must be in local character set, not UTF-8
2400 * Plugins.subproj/WebBaseNetscapePluginStream.m:
2401 (CarbonPathFromPOSIXPath): Added. New function that uses the path pieces from an FSSpec.
2402 This has many advantages; the big one that fixes the bug is that it gives the mangled names
2403 that work even for files that have names that can't otherwise be encoded in Carbon-style
2404 path names. I didn't write this from scratch: I started with the method in Foundation
2405 and just changed it to use FSSpec.
2406 (-[WebBaseNetscapePluginStream destroyStream]): Remove code that used NSString and just call
2407 CarbonPathFromPOSIXPath instead.
2409 * Plugins.subproj/npapi.h: The Revision tag wanted to touch this file.
2410 I think we are going to have some trouble with this; I'd like to take that out.
2412 * English.lproj/StringsNotToBeLocalized.txt: Updated.
2414 2004-08-12 Trey Matteson <trey@apple.com>
2416 3761329 - query result links all dead in ingrammicro.com (sometimes)
2417 3761328 - links in some docs dead when doc is loaded from WebArchive
2419 Nasty problem. It turns out that these result pages are a parent frame with two child
2420 frames. One of the child frames is a 1 or 2 byte text document. When the text child
2421 is the last doc to complete, because we use a Text rep instead of an HTMLRep, it turns
2422 out we never send [bridge end] from WebKit. That mistake results in checkCompleted not
2423 being called enough in the part, and we never realize the load is done. WebCore does
2424 not allow redirects to happen until the entire load is complete, and the links on this
2425 results page are actually little pieces of JS that set location to a generated URL. Since
2426 redirects are not allowed these links all silently fail to do anything, and the doc never
2427 achieves a completed state where they will work.
2429 Solution is to make sure we always call [bridge end] from the DataSource instead of only
2430 the HTML rep doing it.
2432 Reviewed by Richard and Darin.
2434 * WebView.subproj/WebDataSource.m:
2435 (-[WebDataSource _finishedLoading]): Call [bridge end] here for all kinds of docs.
2436 * WebView.subproj/WebHTMLRepresentation.m:
2437 (-[WebHTMLRepresentation finishedLoadingWithDataSource:]): Don't call is just for HTMLReps.
2439 2004-08-12 Richard Williamson <rjw@apple.com>
2441 Bring npruntime.h and friends closer to compliance with
2446 * Plugins.subproj/npapi.h:
2447 * Plugins.subproj/npfunctions.h:
2448 * Plugins.subproj/npruntime.h:
2450 (_NPString::_NPVariant::):
2451 * copy-webcore-files-to-webkit:
2453 2004-08-12 Chris Blumenberg <cblu@apple.com>
2455 Fixed: <rdar://problem/3761097> should be able to option-drag selection so HTML can be copied within a page
2459 * WebView.subproj/WebHTMLView.m:
2460 (-[WebHTMLView _isMoveDrag]): new, take into account the option key
2461 (-[WebHTMLView draggingUpdatedWithDraggingInfo:actionMask:]): call _isMoveDrag
2462 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): call _isMoveDrag
2464 2004-08-12 Richard Williamson <rjw@apple.com>
2466 Quick fix for 3760903. The real fix is described in 3760920. Needed
2467 by Java plugin guys so they can be unblocked for feature freeze.
2471 * WebView.subproj/WebFrame.m:
2472 (-[WebFrame _reloadForPluginChanges]):
2473 * WebView.subproj/WebHTMLView.m:
2474 (-[WebHTMLView addSubview:]):
2476 2004-08-12 Chris Blumenberg <cblu@apple.com>
2478 Fixed: <rdar://problem/3760898> error pages in subframes attempt to load appledata URLs when reloaded
2482 * WebView.subproj/WebFrame.m:
2483 (-[WebFrame _createItem:]): when setting the original URL of the history item, use the unreachable URL
2487 2004-08-11 Adele Amchan <adele@apple.com>
2489 Reviewed by me, bug fix by Darin.
2491 - fixed <rdar://problem/3736477> Pages don't load if hard drive is named with non-ASCII Symbol
2493 * Plugins.subproj/WebBaseNetscapePluginStream.m:
2494 (-[WebBaseNetscapePluginStream startStreamWithURL:expectedContentLength:lastModifiedDate:MIMEType:]):
2495 Use UTF8String instead of cString to convert the MIME type to a C string. Safer, since it can't
2496 ever fail due to encoding problems even though this string should always be ASCII.
2497 (-[WebBaseNetscapePluginStream destroyStream]): Use stringWithUTF8String to convert the path name
2498 to an NSString, since stringWithCString is deprecated (doesn't really matter since the path is always
2499 all ASCII). Fix the bug by calling fileSystemRepresentation on the NSString to turn it into a C
2500 string form. Even though the POSIX path can't have any non-ASCII characters in it, the Carbon path
2501 can, so we need to use this instead of cString which can fail depending on characters and encoding.
2503 2004-08-09 Maciej Stachowiak <mjs@apple.com>
2509 - made basic marked text highlighting work to complete basic level of <rdar://problem/3704359> input method support not yet implemented for HTML editing
2511 * WebView.subproj/WebHTMLView.m:
2512 (-[WebHTMLView markedRange]): Use new bridge calls instead of internal marked range storage.
2513 (-[WebHTMLView hasMarkedText]): Likewise.
2514 (-[WebHTMLView unmarkText]): Likewise.
2515 (-[WebHTMLView _selectMarkedText]): Likewise.
2516 (-[WebHTMLView _selectRangeInMarkedText:]): Likewise.
2517 (-[WebHTMLView _selectionIsInsideMarkedText]): Likewise.
2518 (-[WebHTMLView _updateSelectionForInputManager]): Likewise.
2519 (-[WebHTMLView setMarkedText:selectedRange:]): Use direct bridge call instead
2520 of private _selectMarkedDOMRange: method, which would now be trivial.
2521 * WebView.subproj/WebHTMLViewInternal.h: Remove unneeded
2523 2004-08-10 Darin Adler <darin@apple.com>
2527 - change name of WebMakeCollectable to WebNSRetainCFRelease so it fits into the
2528 "NS and CF retain counts are separate" mental model, rather than the "think about
2529 how garbage collection works" one
2531 * Misc.subproj/WebKitNSStringExtras.m: (+[NSString _web_encodingForResource:]): Rename.
2532 * Misc.subproj/WebNSObjectExtras.h: (WebNSRetainCFRelease): Ditto.
2533 * Misc.subproj/WebNSURLExtras.m:
2534 (+[NSURL _web_URLWithData:relativeToURL:]): Ditto.
2535 (-[NSURL _web_URLWithLowercasedScheme]): Ditto.
2537 2004-08-09 Trey Matteson <trey@apple.com>
2539 3756599 - REGRESSION: hit assertion in KWQPageState invalidate
2541 By inspection I found a flaw in the recently added logic, although
2542 I have no steps to repro. My theoretical explanation is that we would
2543 get two errors and go through _receivedMainResourceError: twice, which
2544 would cause the pageState to be invalidated twice, which is the only
2545 way I can see to hit the assert.
2549 * WebView.subproj/WebFrame.m:
2550 (-[WebFrame _receivedMainResourceError:]): Clear the pageState out
2551 of the history item after it's been invalidated by WebCore.
2553 2004-08-09 Richard Williamson <rjw@apple.com>
2555 Inspired by Trey we have a much better approach for conditionally
2556 linking Quart.framework. Instead of multiple targets we use
2557 `` to invoke some inline script to extend COMMON_LDFLAGS as
2558 necessary. Thanks Trey!
2562 * WebKit.pbproj/project.pbxproj:
2564 2004-08-09 Trey Matteson <trey@apple.com>
2566 Hookup UI for "Continuous Spelling" menu item.
2568 Reviewed by Richard.
2570 * WebView.subproj/WebView.m:
2571 (-[WebView validateUserInterfaceItem:]): Enable and check the
2572 menu item to reflect our state.
2573 (-[WebView toggleContinuousSpellChecking:]): Change type to
2574 IBAction, just cosmetic.
2575 * WebView.subproj/WebViewPrivate.h:
2577 2004-08-08 Trey Matteson <trey@apple.com>
2579 3745023 - Safari crashes trying to access anchor while downloading
2581 I bet this is behind a few other crashers as well. In this bug the start of the
2582 download leaves a KWQPageState hanging around, and when that is freed it damages
2583 the part and view. If you're still using that page, you're dead.
2585 The fix is to properly invalidate the PageState when we receive an error before
2586 reaching WebFrameCommitted state. Normally this happens when a page is reheated
2587 from the PageState, but in this case we never manage to leave the page to begin
2588 with, although we've already created the PageState.
2590 Other errors besides the synthetic one download generates would have caused similar
2591 crashing. Another example would be clicking on a second link before the load
2592 caused by clicking on the first link reached committed state.
2596 * WebView.subproj/WebDataSource.m:
2597 (-[WebDataSource _receivedMainResourceError:complete:]): Let the frame do the
2598 main work (since it has access to the pageCache state). Also renamed to make
2599 it clear that this is about an error for the main resource.
2600 * WebView.subproj/WebDataSourcePrivate.h:
2601 * WebView.subproj/WebFrame.m:
2602 (-[WebFrame _receivedMainResourceError:]): Let WC know about the failure, as
2603 the DataSource used to, but now pass the pageCache state along too.
2604 * WebView.subproj/WebFramePrivate.h:
2605 * WebView.subproj/WebMainResourceClient.m:
2606 (-[WebMainResourceClient receivedError:]): Call renamed method.
2607 (-[WebMainResourceClient cancelWithError:]): Ditto.
2609 2004-08-08 Vicki Murley <vicki@apple.com>
2611 Reviewed by vicki (changes by rjw)
2613 - make "weak" linking with Quartz work with buildit
2615 * WebKit.pbproj/project.pbxproj:
2617 2004-08-06 Ken Kocienda <kocienda@apple.com>
2621 Finish off spellchecking support to HTML editing. Includes work to
2622 enable continuous spellchecking.
2624 * WebCoreSupport.subproj/WebBridge.m:
2625 (-[WebBridge isContinuousSpellCheckingEnabled]): Simple bridge method.
2626 * WebCoreSupport.subproj/WebTextRenderer.m:
2627 (-[WebTextRenderer drawLineForMisspelling:withWidth:]): New method to add
2628 AppKit-style misspelling underline.
2632 2004-08-05 Darin Adler <darin@apple.com>
2634 * WebView.subproj/WebHTMLView.m: Added a list of methods that NSTextView implements that we don't.
2637 2004-08-05 Chris Blumenberg <cblu@apple.com>
2639 Fixed unnecessary import of NSURLFileTypeMappings.
2641 * WebView.subproj/WebMainResourceClient.m:
2643 2004-08-05 Richard Williamson <rjw@apple.com>
2645 Make builds conditionally include -framework Quartz.
2649 * WebKit.pbproj/project.pbxproj:
2651 2004-08-04 Darin Adler <darin@apple.com>
2653 - fixed broken Deployment build
2655 * Carbon.subproj/HIWebView.m: (Click):
2656 Remove code that checks err variable before setting it.
2658 2004-08-03 Richard Williamson <rjw@apple.com>
2660 First cut at dirt simple PDF support. This feature
2661 depends on Quartz.framework (parent of PDFKit), which only exists
2662 on Tiger. So, we "weak" link against Quartz.
2664 We do very basic PDF rendering. Coming up are support for
2665 "Find..." and linearized PDF (incremental). Linearized PDF
2666 support will require API changes in PDFKit.
2668 No UI is added to Safari, yet.
2672 * WebKit.pbproj/project.pbxproj:
2673 * WebView.subproj/WebDataSource.m:
2674 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
2675 * WebView.subproj/WebFrameView.m:
2676 (+[WebFrameView _viewTypesAllowImageTypeOmission:]):
2677 * WebView.subproj/WebPDFRepresentation.h: Added.
2678 * WebView.subproj/WebPDFRepresentation.m: Added.
2679 (-[WebPDFRepresentation finishedLoadingWithDataSource:]):
2680 (-[WebPDFRepresentation canProvideDocumentSource]):
2681 (-[WebPDFRepresentation documentSource]):
2682 (-[WebPDFRepresentation title]):
2683 * WebView.subproj/WebPDFView.h: Added.
2684 * WebView.subproj/WebPDFView.m: Added.
2685 (-[WebPDFView initWithFrame:]):
2686 (-[WebPDFView setDataSource:]):
2687 (-[WebPDFView dataSourceUpdated:]):
2688 (-[WebPDFView setNeedsLayout:]):
2689 (-[WebPDFView layout]):
2690 (-[WebPDFView viewWillMoveToHostWindow:]):
2691 (-[WebPDFView viewDidMoveToHostWindow]):
2693 Copied fix from Jaguar carbon/cocoa work.
2695 Reviewed by Darin (Jaguar version)
2697 * Carbon.subproj/CarbonWindowAdapter.h:
2698 * Carbon.subproj/CarbonWindowAdapter.m:
2699 (-[CarbonWindowAdapter relinquishFocus]):
2700 * Carbon.subproj/HIWebView.m:
2702 (OwningWindowChanged):
2705 2004-08-03 David Hyatt <hyatt@apple.com>
2707 Add the text/xsl MIME type as one that can be displayed.
2711 * WebView.subproj/WebDataSource.m:
2712 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
2713 * WebView.subproj/WebFrameView.m:
2714 (+[WebFrameView _viewTypesAllowImageTypeOmission:]):
2716 2004-08-03 Maciej Stachowiak <mjs@apple.com>
2720 - implemented enough of the NSTextInput protocol and added the
2721 proper calls to NSInputManager to allow input methods to
2722 work. However, the text is not marked yet.
2724 * WebView.subproj/WebHTMLViewInternal.h: Added new fields to track
2726 * WebView.subproj/WebHTMLView.m:
2727 (-[WebHTMLView markedRange]): Implemented
2728 (-[WebHTMLView conversationIdentifier]): Implemented
2729 (-[WebHTMLView hasMarkedText]): Implemented
2730 (-[WebHTMLView unmarkText]): Implemented
2731 (-[WebHTMLView setMarkedText:selectedRange:]): Implemented - does
2732 not yet handle attributes in attributed strings
2733 (-[WebHTMLView insertText:]): Modified to handle replacing or abandoning
2734 the marked text when set.
2735 (-[WebHTMLView _selectMarkedText]): new helper method, self-explanatory
2736 (-[WebHTMLView _setMarkedDOMRange:]): hitto.
2737 (-[WebHTMLView _selectRangeInMarkedText:]): ditto
2738 (-[WebHTMLView _discardMarkedText]): ditto
2739 (-[WebHTMLView _selectionIsInsideMarkedText]): ditto
2740 (-[WebHTMLView _updateSelectionForInputManager]): ditto
2742 - did a bit of refactoring while I was in here.
2744 * WebView.subproj/WebHTMLView.m:
2745 (-[WebHTMLView _shouldReplaceSelectionWithText:givenAction:]): added this new
2746 helper method to simplify the common case of calling the shouldInsertText: delegate
2747 (-[WebHTMLView pasteAsPlainText:]): use it
2748 (-[WebHTMLView insertTab:]): ditto
2749 (-[WebHTMLView insertNewline:]): ditto
2750 (-[WebHTMLView _changeWordCaseWithSelector:]): ditto
2751 (-[WebHTMLView _changeSpellingToWord:]): ditto
2752 (-[WebHTMLView _selectionChanged]): ditto
2754 2004-08-03 Chris Blumenberg <cblu@apple.com>
2756 Fixed: <rdar://problem/3572737> Images not resizing at www.bmx-test.com (spoof nofix)
2760 * WebCoreSupport.subproj/WebImageRendererFactory.m:
2761 (-[WebImageRendererFactory supportedMIMETypes]): hard code image/pjpeg to the list of image mime types that we can handle
2763 2004-08-03 Darin Adler <darin@apple.com>
2767 - fixed <rdar://problem/3740937> ER: A way to turn a DOMRange into text (equivalent of -innerText)
2769 * DOM.subproj/DOMPrivate.h: Added.
2770 * WebKit.pbproj/project.pbxproj: Added DOMPrivate.h.
2771 * copy-webcore-files-to-webkit: Added DOMPrivate.h.
2773 2004-08-02 John Sullivan <sullivan@apple.com>
2777 WebKit part of fix for <rdar://problem/3631868> NSToolbar adoption:
2778 Tab key should cycle around toolbar and page content
2780 * WebView.subproj/WebHTMLView.m:
2781 removed overrides of nextKeyView and previousKeyView
2782 (-[WebHTMLView nextValidKeyView]):
2783 call super only if we can't move the focus within the frame hierarchy
2784 (-[WebHTMLView previousValidKeyView]):
2786 * WebView.subproj/WebHTMLViewInternal.h:
2787 removed nextKeyViewAccessShouldMoveFocus ivar
2789 2004-08-02 Ken Kocienda <kocienda@apple.com>
2793 Update name of firstResponderIsSelfOrDescendantView, adding _web_ prefix to this SPI call.
2795 Do some work to make caret blinking in newly-created editable WebView's that are
2796 similar in structure to Blot more "automatic".
2798 * Misc.subproj/WebNSViewExtras.h: Change name of firstResponderIsSelfOrDescendantView. Add _web_ prefix.
2799 * Misc.subproj/WebNSViewExtras.m:
2800 (-[NSView _web_firstResponderIsSelfOrDescendantView]): Name change.
2801 (-[NSView _web_firstResponderCausesFocusDisplay]): Adds an additional check for whether the view's
2802 is first responder. This helps to make the focus setting in viewDidMoveToWindow work right.
2803 * WebView.subproj/WebHTMLView.m:
2804 (-[WebHTMLView updateFocusDisplay]): Use _web_firstResponderCausesFocusDisplay now instead of
2805 firstResponderIsSelfOrDescendantView.
2806 (-[WebHTMLView viewDidMoveToWindow]): Schedule call to updateFocusDisplay for the next crank of the
2807 run loop. The reason is that placing the caret in the just-installed view requires the HTML/XML
2808 document to be available on the WebCore side, but it is not at the time this code is running.
2809 However, it will be there on the next crank of the run loop. Doing this helps to make a
2810 blinking caret appear in a new, empty window "automatic".
2811 (-[WebHTMLView performKeyEquivalent:]): _web_firstResponderIsSelfOrDescendantView name change.
2812 * WebView.subproj/WebView.m:
2813 (-[WebView _performResponderOperation:with:]): _web_firstResponderIsSelfOrDescendantView name change.
2815 2004-07-29 Maciej Stachowiak <mjs@apple.com>
2819 Added stubbed-out versions of all the NSTextInput protocol
2820 methods, and put comments in places where we will need to call the
2821 input manager to make input methods work 100%.
2823 * WebCoreSupport.subproj/WebBridge.m:
2824 (-[WebBridge respondToChangedSelection]):
2825 * WebView.subproj/WebHTMLView.m:
2826 (-[WebHTMLView mouseDown:]):
2827 (-[WebHTMLView mouseDragged:]):
2828 (-[WebHTMLView mouseUp:]):
2829 (-[WebHTMLView _interceptEditingKeyEvent:]):
2830 (-[WebHTMLView keyDown:]):
2831 (-[WebHTMLView _selectionChanged]):
2832 (-[WebHTMLView _delegateDragSourceActionMask]):
2833 (-[WebHTMLView validAttributesForMarkedText]):
2834 (-[WebHTMLView characterIndexForPoint:]):
2835 (-[WebHTMLView firstRectForCharacterRange:]):
2836 (-[WebHTMLView selectedRange]):
2837 (-[WebHTMLView markedRange]):
2838 (-[WebHTMLView attributedSubstringFromRange:]):
2839 (-[WebHTMLView conversationIdentifier]):
2840 (-[WebHTMLView hasMarkedText]):
2841 (-[WebHTMLView unmarkText]):
2842 (-[WebHTMLView setMarkedText:selectedRange:]):
2843 (-[WebHTMLView doCommandBySelector:]):
2844 (-[WebHTMLView insertText:]):
2845 * WebView.subproj/WebHTMLViewInternal.h:
2846 * WebView.subproj/WebView.m:
2850 2004-07-29 Darin Adler <darin@apple.com>
2854 - fill in some unimplemented methods
2856 * WebView.subproj/WebHTMLView.m:
2857 (-[WebHTMLView moveToBeginningOfDocument:]): Implement, using new document granularity.
2858 (-[WebHTMLView moveToBeginningOfDocumentAndModifySelection:]): Ditto.
2859 (-[WebHTMLView moveToBeginningOfParagraph:]): Implement, even though the underlying WebCore
2860 code is not yet implemented.
2861 (-[WebHTMLView moveToBeginningOfParagraphAndModifySelection:]): Ditto.
2862 (-[WebHTMLView moveToEndOfDocument:]): More of the same.
2863 (-[WebHTMLView moveToEndOfDocumentAndModifySelection:]): Ditto.
2864 (-[WebHTMLView moveToEndOfParagraph:]): More of the same.
2865 (-[WebHTMLView moveToEndOfParagraphAndModifySelection:]): Ditto.
2866 (-[WebHTMLView pageDown:]): Added comment describing desired behavior.
2867 (-[WebHTMLView pageUp:]): Ditto.
2868 (-[WebHTMLView copyFont:]): Ditto.
2869 (-[WebHTMLView pasteFont:]): Ditto.
2870 (-[WebHTMLView changeAttributes:]): Ditto.
2871 (-[WebHTMLView indent:]): Ditto.
2873 2004-07-28 Chris Blumenberg <cblu@apple.com>
2875 Fixed: <rdar://problem/3737864> Can not download image from web by using drag and drop
2879 * Misc.subproj/WebNSPasteboardExtras.m:
2880 (-[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
2882 2004-07-28 Maciej Stachowiak <mjs@apple.com>
2886 - avoid triggering an assertion when using dead keys (like option-e)
2888 * WebView.subproj/WebHTMLView.m:
2889 (-[WebHTMLView insertText:]): Don't pass zero-length strings to
2890 WebCore. Dead-key input seems to insert empty strings as a side
2893 2004-07-28 Trey Matteson <trey@apple.com>
2895 Spellchecking, Part I. Basic spellcheck is working. Spelling panel is hooked up.
2897 At this point, no special marking of misspellings, no grammar check, no context
2898 menu integration, no "check continually" mode.
2902 * WebCoreSupport.subproj/WebBridge.m:
2903 (-[WebBridge spellCheckerDocumentTag]): Typical bridge glue.
2904 * WebView.subproj/WebHTMLView.m:
2905 (-[WebHTMLView validateUserInterfaceItem:]): Validate various spelling actions.
2906 (-[WebHTMLView checkSpelling:]): Call WC for real work, update panel.
2907 (-[WebHTMLView showGuessPanel:]): Show panel, call WC for real work.
2908 (-[WebHTMLView _changeSpellingToWord:]): Apply correction to our doc.
2909 (-[WebHTMLView changeSpelling:]): Simple pass through to above method.
2910 (-[WebHTMLView ignoreSpelling:]): Tell checker to ignore the word.
2911 * WebView.subproj/WebView.m:
2912 (-[WebView _close]): Call AK's closeSpellDocumentWithTag: for proper cleanup.
2914 2004-07-27 John Sullivan <sullivan@apple.com>
2918 WebKit part of fix for <rdar://problem/3622268> Reload failed pages when a
2919 network problem is corrected, inc. using Network Diagnostics
2921 * WebView.subproj/WebFrame.m:
2922 (-[WebFrame reload]):
2923 This method did not handle unreachableURLs at all. The reason Safari's Reload
2924 did work with unreachableURLs was that Safari does "reloadObeyingLocationField"
2925 which never actually calls -[WebFrame reload]. Fixed by creating a fresh
2926 request for the previously-unreachable URL.
2928 2004-07-26 Richard Williamson <rjw@apple.com>
2930 Fixed 3739737. When setting the focus to a NSView, set the focus
2931 carbon focus to kControlIndicatorPart. kControlIndicatorPart is a
2932 placeholder value for use to indicate that Cocoa has the focus.
2936 * Carbon.subproj/CarbonWindowAdapter.m:
2937 (-[CarbonWindowAdapter makeFirstResponder:]):
2938 * Carbon.subproj/HIWebView.m:
2942 2004-07-26 Chris Blumenberg <cblu@apple.com>
2944 Fixed: <rdar://problem/3689734> dragging to an editable WebView does not scroll document
2948 * WebView.subproj/WebView.m:
2949 (-[WebView documentViewAtWindowPoint:]): new, factored from draggingDocumentViewAtWindowPoint:
2950 (-[WebView _draggingDocumentViewAtWindowPoint:]): call documentViewAtWindowPoint:
2951 (-[WebView _autoscrollForDraggingInfo:timeDelta:]): forward call to the document view
2952 (-[WebView _shouldAutoscrollForDraggingInfo:]): ditto
2956 2004-07-23 Ken Kocienda <kocienda@apple.com>
2962 <rdar://problem/3738920> Caret blinks in inactive window
2964 As part of the fix, I cleaned up the way we handle special drawing that needs
2965 to be done in the HTML view that is first responder in the key window (e.g the
2966 drawing of text selection highlight and caret blinking).
2968 * WebView.subproj/WebHTMLView.m:
2969 (-[WebHTMLView updateFocusDisplay]): New method that centralizes the changes
2970 we need to make when the first responder-ness of the view or key-ness of the
2972 (-[WebHTMLView viewDidMoveToWindow]): Call new updateFocusDisplay helper.
2973 (-[WebHTMLView windowDidBecomeKey:]): Ditto.
2974 (-[WebHTMLView windowDidResignKey:]): Ditto.
2975 (-[WebHTMLView becomeFirstResponder]): Ditto.
2976 (-[WebHTMLView resignFirstResponder]): Ditto.
2978 2004-07-22 Darin Adler <darin@apple.com>
2980 * Plugins.subproj/npruntime.h: Update with new version from newer JavaScriptCore.
2982 2004-07-21 Ken Kocienda <kocienda@apple.com>
2986 * WebCoreSupport.subproj/WebBridge.m: Remove interceptEditingKeyEvent
2987 bridge call over. This method of handling editing key events is now
2989 * WebView.subproj/WebHTMLView.m:
2990 (-[WebHTMLView performKeyEquivalent:]): Send key event over to the
2991 DOM if this view is or contains the first responder. This now
2992 happens unconditionally.
2993 (-[WebHTMLView keyDown:]): Send key event to the DOM, then see if
2994 the web view wants to interpret it an an editing key event. This
2995 is the new place to intercept key events for editing.
2997 2004-07-21 Ken Kocienda <kocienda@apple.com>
3001 Add implementations for these methods. Formerly, they logged an error.
3003 * WebView.subproj/WebHTMLView.m:
3004 (-[WebHTMLView moveToBeginningOfLine:]):
3005 (-[WebHTMLView moveToBeginningOfLineAndModifySelection:]):
3006 (-[WebHTMLView moveToEndOfLine:]):
3007 (-[WebHTMLView moveToEndOfLineAndModifySelection:]):
3009 2004-07-21 Ken Kocienda <kocienda@apple.com>
3013 Added some more handlers for standard Cocoa key bindings.
3014 These are "secrets" of NSText, meaning they are not public API, but we choose to mimic.
3016 * WebView.subproj/WebHTMLView.m:
3017 (-[WebHTMLView moveToBeginningOfDocumentAndModifySelection:]):
3018 (-[WebHTMLView moveToBeginningOfLineAndModifySelection:]):
3019 (-[WebHTMLView moveToBeginningOfParagraphAndModifySelection:]):
3020 (-[WebHTMLView moveToEndOfDocumentAndModifySelection:]):
3021 (-[WebHTMLView moveToEndOfLineAndModifySelection:]):
3022 (-[WebHTMLView moveToEndOfParagraph:]):
3023 (-[WebHTMLView moveToEndOfParagraphAndModifySelection:]):
3024 * WebView.subproj/WebView.h: Add these declarations to the comment in the header listing
3025 the responder-like methods we support.
3026 * WebView.subproj/WebView.m:
3027 (-[WebView moveToBeginningOfParagraphAndModifySelection:]):
3028 (-[WebView moveToEndOfParagraphAndModifySelection:]):
3029 (-[WebView moveToBeginningOfLineAndModifySelection:]):
3030 (-[WebView moveToEndOfLineAndModifySelection:]):
3031 (-[WebView moveToBeginningOfDocumentAndModifySelection:]):
3032 (-[WebView moveToEndOfDocumentAndModifySelection:]):
3034 2004-07-20 Ken Kocienda <kocienda@apple.com>
3038 * Misc.subproj/WebNSEventExtras.h: Added helper that returns whether
3039 a key event has a binding in the key binding manager.
3040 * Misc.subproj/WebNSEventExtras.m:
3041 (-[NSEvent _web_keyBindingManagerHasBinding]): New helper mentioned above.
3042 * Plugins.subproj/npruntime.h:
3043 * WebView.subproj/WebHTMLView.m:
3044 (-[WebHTMLView performKeyEquivalent:]): Add a check of whether the key event
3045 has a binding in the key binding manager. This works around the fact that
3046 NSResponder's interpretKeyEvents does not return a value telling whether
3047 or not the key was handled. This now makes it possible for us to trap
3048 modified key events we know we can handle (like those command-key + arrow events
3049 used for text navigation), while letting all others pass.
3051 2004-07-20 Chris Blumenberg <cblu@apple.com>
3054 <rdar://problem/3580589> REGRESSION (1.1-1.2): can't open a new window for an image that has not loaded
3055 <rdar://problem/3612691> Missing image icons (blue ?) lack context menu
3059 * WebView.subproj/WebDefaultContextMenuDelegate.m:
3060 (-[WebDefaultUIDelegate webView:contextMenuItemsForElement:defaultMenuItems:]): if there is no image, but there is an image URL, provide image context menu items besides "Copy Image"
3061 * WebView.subproj/WebHTMLView.m:
3062 (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]): don't drag an image with an actual image
3063 (-[WebHTMLView _mayStartDragAtEventLocation:]): ditto
3065 2004-07-20 Maciej Stachowiak <mjs@apple.com>
3069 <rdar://problem/3721690> REGRESSION (125.7-148u) clicking on links at macosx.apple.com/Builds does not load new page in frame
3071 * Plugins.subproj/npruntime.h:
3072 * WebCoreSupport.subproj/WebBridge.m:
3073 (-[WebBridge canTargetLoadInFrame:]): Don't apply the restrictions to frames
3074 that are in the same window (Mozilla does this too).
3076 2004-07-20 Richard Williamson <rjw@apple.com>
3078 Fix for 3728558. Fixed the key event handling in the carbon/cocoa
3079 integration code. This does not fix the arrow keys not working on
3080 initial focus problem also mentioned in the bug.
3082 Bumped the version of the NP function structures.
3086 * Carbon.subproj/CarbonUtils.m:
3089 * Carbon.subproj/HIWebView.m:
3090 (OwningWindowChanged):
3092 * Plugins.subproj/npapi.h:
3094 2004-07-20 Trey Matteson <trey@apple.com>
3096 3733698 REGRESSION: sometimes dragging photos on homepage.mac.com leads to an assertion
3098 Relax an assertion, as we ran into a valid case where it's not true.
3102 * WebView.subproj/WebHTMLView.m:
3103 (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
3104 Removing this assert allows for the oddball case of a drag gesture that
3105 starts on one element, but then the element is no longer there when
3106 the drag is about to start.
3108 2004-07-20 Ken Kocienda <kocienda@apple.com>
3114 <rdar://problem/3707505> HTMLCompose: blinking cursor in both an address text field and the message body
3116 * WebView.subproj/WebHTMLView.m:
3117 (-[WebHTMLView setCaretVisible:]): New helper. Calls over bridge to do the work.
3118 (-[WebHTMLView windowDidBecomeKey:]): This function cannot just assume that self is first responder
3119 (and do things like adjusting text background color and restoring focus rings).
3120 First-responder-ness needs to be checked first. Now it is.
3121 (-[WebHTMLView windowDidResignKey:]): Ditto.
3122 (-[WebHTMLView becomeFirstResponder]): Call new helper to make caret visible.
3123 (-[WebHTMLView resignFirstResponder]): Call new helper to make caret invisible.
3125 2004-07-12 Richard Williamson <rjw@apple.com>
3127 Fixed 3721917. The RealPlayer plugin doesn't support the new
3128 NPPVpluginScriptableNPObject variable passed to NPP_GetValue and
3129 incorrectly returns NPERR_NO_ERROR. We interpret this to the
3130 mean the variable has been set. The variable has not been set
3131 and will consequently be uninitialized.
3133 Reviewed by NOBODY (OOPS!).
3135 * Plugins.subproj/WebBaseNetscapePluginView.m:
3136 (-[WebBaseNetscapePluginView pluginScriptableObject]):
3138 2004-07-19 Ken Kocienda <kocienda@apple.com>
3144 <rdar://problem/3707504> HTMLCompose: key events are stolen by Web(HTML)View
3146 * Misc.subproj/WebNSViewExtras.h:
3147 * Misc.subproj/WebNSViewExtras.m:
3148 (-[NSView firstResponderIsSelfOrDescendantView]): New helper to
3149 (-[WebHTMLView performKeyEquivalent:]): Do not pass key events through to the editing
3150 key handler unless the WebHTMLView is first responder or contains the first responder.
3151 This prevents the "stealing" of key events mentioned in the bug.
3152 * WebView.subproj/WebView.m:
3153 (-[WebView _performResponderOperation:with:]): Uses the new firstResponderIsSelfOrDescendantView
3154 helper. The code I replaced used the same logic as the new helper.
3158 2004-07-12 Maciej Stachowiak <mjs@apple.com>
3162 <rdar://problem/3673988>: (REGRESSION(141-144): connection assertion failure at http://traffic.511.org/sfgate)
3164 * WebView.subproj/WebBaseResourceHandleDelegate.m:
3165 (-[WebBaseResourceHandleDelegate connectionDidFinishLoading:]):
3166 Don't check connection consistency if this load got cancelled
3167 while finishing, because in this case we have cleared the
3168 connection field already. This can happen when a redirect fires
3169 from an onload handler.
3171 2004-07-12 Maciej Stachowiak <mjs@apple.com>
3175 <rdar://problem/3632570>: (REGRESSION: SocialText.net wiki keeps asking for auth, even though pages load)
3177 * Misc.subproj/WebIconLoader.m:
3178 (-[WebIconLoader didReceiveAuthenticationChallenge:]): Ignore the challenge - we don't
3179 want an auth panel for favicons.
3180 (-[WebIconLoader didCancelAuthenticationChallenge:]): Ignore cancel, since we are ignoring
3183 2004-07-09 Chris Blumenberg <cblu@apple.com>
3185 Allowed my change for 3715785 to compile on Jaguar.
3187 Reviewed by kocienda.
3189 * WebCoreSupport.subproj/WebBridge.m:
3190 (-[WebBridge canTargetLoadInFrame:]): don't use the DOM API since it doesn't exist on Jaguar, instead call the new domain method on the bridge
3192 2004-07-09 Ken Kocienda <kocienda@apple.com>
3196 * Plugins.subproj/npruntime.h: Updated license to lawyer-approved
3197 joint Apple-Mozilla BSD-style license.
3199 2004-07-08 Chris Blumenberg <cblu@apple.com>
3201 Fixed: <rdar://problem/3720728> REGRESSION (125.8-146): Crash moving mouse over plugin at manray-photo.com
3205 * Plugins.subproj/WebBaseNetscapePluginView.m:
3206 (-[WebBaseNetscapePluginView pluginScriptableObject]): don't call NPP_GetValue unless the plug-in implements it
3208 2004-07-08 Chris Blumenberg <cblu@apple.com>
3210 Fixed: <rdar://problem/3706296> VIP: ifilm.com crashing reproducibly with Safari
3212 Reviewed by kocienda.
3214 * Plugins.subproj/WebNetscapePluginPackage.m:
3215 (-[WebNetscapePluginPackage launchRealPlayer]): don't release a NULL appURL
3217 2004-07-08 Chris Blumenberg <cblu@apple.com>
3219 Fixed: <rdar://problem/3650140> reproducible assertion failure going to plugin page with JavaScript disabled
3223 * Plugins.subproj/WebBaseNetscapePluginView.m:
3224 (-[WebBaseNetscapePluginView evaluateJavaScriptPluginRequest:]): don't call NPP_NewStream and other stream methods if there is no JS result to deliver. This is what Mozilla does.
3225 (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:]): Return NPERR_GENERIC_ERROR if JS is disabled. This is what Mozilla does.
3229 2004-07-07 Trey Matteson <trey@apple.com>
3231 3719051 - Safari doesn't update form inputs when a page was refreshed by javascript window.location
3232 ... and at least 5 other cases in Radar
3234 Very similar problem to the Harvard PIN bug. We need to be sure
3235 to not carry any state over when we are processing a client
3236 redirect, which reuses the same WebHistoryItem.
3240 * WebView.subproj/WebFrame.m:
3241 (-[WebFrame _transitionToCommitted:]): Comment
3242 (-[WebFrame _opened]): Clear form and scroll state on client redirect.
3244 2004-07-06 Chris Blumenberg <cblu@apple.com>
3246 Fixed: <rdar://problem/3715785> multiple frame injection vulnerability reported by Secunia, affects almost all browsers
3248 Reviewed by john, trey, kocienda.
3250 * WebCoreSupport.subproj/WebBridge.m:
3251 (-[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
3252 (-[WebBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]): call canTargetLoadInFrame: to make sure we can load the request
3253 (-[WebBridge postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]): ditto
3255 2004-07-06 John Sullivan <sullivan@apple.com>
3259 - fixed <rdar://problem/3717147> folder icon used for error page in back/forward
3260 menu when iTunes is not installed
3262 * WebView.subproj/WebFrame.m:
3263 (-[WebFrame _transitionToCommitted:]):
3264 When displaying the error page for an unreachable URL, leave the requested URL
3265 in the WebHistoryItem; don't clobber it with a bogus one that represents the
3266 error page. This not only avoids the wrong-icon problem, but should also help
3267 in cases where an unreachable URL becomes reachable later on.
3269 2004-07-06 Trey Matteson <trey@apple.com>
3271 3716053 - www.theage.com.au has extra back/forward items due to ads
3273 The real change was in WebKit. Here was are just renaming a method and folding
3274 all the WebFrameLoadTypeOnLoadEvent uses to be WebFrameLoadTypeInternal, since there
3275 was never any difference anyway.
3279 * WebCoreSupport.subproj/WebBridge.m:
3280 (-[WebBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]): rename part of the method.
3281 * WebView.subproj/WebFrame.m: Nuke WebFrameLoadTypeOnLoadEvent.
3282 (-[WebFrame _transitionToCommitted:]):
3283 (-[WebFrame _checkLoadCompleteForThisFrame]):
3284 (-[WebFrame _loadItem:withLoadType:]):
3285 (-[WebFrame _itemForRestoringDocState]):
3286 * WebView.subproj/WebFramePrivate.h:
3288 2004-07-06 Ken Kocienda <kocienda@apple.com>
3292 Only register the editing delegate for those notifications for which it implements the callbacks.
3294 * WebView.subproj/WebView.m:
3295 (-[WebView registerForEditingDelegateNotification:selector:]):
3296 (-[WebView setEditingDelegate:]):
3298 2004-07-06 Trey Matteson <trey@apple.com>
3300 3294652 - Failed drag of links doesn't slide back
3302 The only reason for this is that because of some hacks, we lie to
3303 AK about the drag image offset, which means we slide back to
3304 slightly the wrong place. But it's very minor, so we should
3309 * WebView.subproj/WebHTMLView.m:
3310 (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
3313 2004-07-02 Darin Adler <darin@apple.com>
3317 - fixed problem where tabsToLinks and privateBrowsingEnabled did not work with non-
3318 standard WebPreferences objects
3320 * WebView.subproj/WebPreferences.m:
3321 (-[WebPreferences _valueForKey:]): New helper.
3322 (-[WebPreferences _stringValueForKey:]): Use _valueForKey.
3323 (-[WebPreferences _integerValueForKey:]): Use _valueForKey.
3324 (-[WebPreferences _boolValueForKey:]): Use _valueForKey.
3325 (-[WebPreferences tabsToLinks]): Use _boolValueForKey; this is the bug fix.
3326 (-[WebPreferences privateBrowsingEnabled]): Ditto.
3327 (+[WebPreferences _setIBCreatorID:]): Use copy instead of retain for keeping an NSString.
3329 2004-07-01 Trey Matteson <trey@apple.com>
3331 3556159 - Crashes in -[WebFrame(WebPrivate) _transitionToCommitted:] at www.mastercardbusiness.com
3333 We know from the line number of the crash that it is due to [self parentFrame]==nil.
3335 Looking at the HTML and that of the related bugs, they do special stuff with onload
3336 handlers. It is no longer repro, presumably because the includes JS files changed,
3337 as the bugs only included the top level HTML. I suspect that the problem is that the
3338 WebFrameLoadTypeOnLoadEvent case was added, and in some weird sequence specific to
3339 MasterCard, they hit a case where we would be in WebFrameLoadTypeOnLoadEvent mode but
3340 not have a parent frame.
3342 So we guard in the code against hitting a nil parentFrame, and log an error just in
3343 case this ever crops up again and we can learn more about it.
3345 Reviewed by Richard.
3347 * WebView.subproj/WebFrame.m:
3348 (-[WebFrame _transitionToCommitted:]): Guard against nil parentFrame.
3350 2004-07-01 John Sullivan <sullivan@apple.com>
3355 <rdar://problem/3709110> REGRESSION (Tiger): Pressing Tab key to move focus
3356 onto links skips every other link
3357 <rdar://problem/3692576> focus ring is in odd place after clicking RSS button
3358 with "Tab to links" enabled
3360 WebHTMLView has some trickery by which we advance the focused link when nextKeyView
3361 or previousKeyView is called within nextValidKeyView or previousValidKeyView. This
3362 broke in Tiger because AppKit now (sometimes at least) calls nextKeyView more than
3363 once within nextValidKeyView. Fixed 3709110 by making sure we only advance the focus
3364 once within a call to nextValidKeyView or previousValidKeyView.
3366 Also, this same trickery didn't work right with hidden views. Fixed 3692576 by checking
3367 whether the view is hidden and bypassing the focus-moving trickery in that case.
3369 * WebView.subproj/WebHTMLViewInternal.h:
3370 renamed inNextValidKeyView -> nextKeyViewAccessShouldMoveFocus
3372 * WebView.subproj/WebHTMLView.m:
3373 (-[WebHTMLView nextKeyView]):
3374 now clears nextKeyViewAccessShouldMoveFocus
3375 (-[WebHTMLView previousKeyView]):
3377 (-[WebHTMLView nextValidKeyView]):
3378 now doesn't set focus-moving trigger ivar if view is hidden or has hidden ancestor
3379 (-[WebHTMLView previousValidKeyView]):
3382 2004-06-30 Trey Matteson <trey@apple.com>
3384 Dragging within a web view should be allowed to start when the window isn't key.
3386 A few months ago, Chris made this work, but it relied on the fact that all dragging
3387 was done in WebKit. When WebCore got involved in dragging, it was broken. Now we
3388 have a new scheme that gets it working again that properly involves WebCore.
3390 The general idea is that when AK asks us whether to accept the first mouse and do
3391 "delayed window ordering", we must consult WC to see if we might start a drag. In
3392 addition, instead of these drags in non-active windows being started as a special
3393 case in WK, they go through the normal WK-WC drag machinery. Finally to work in
3394 frames we have to drill to the deepest hit view in acceptsFirstMouse, because previous
3395 hacks to hitTest make the top-most WebHTMLView field all events for its view tree
3396 (which leads to it fielding all acceptFirstMouse messages too).
3400 * WebCoreSupport.subproj/WebBridge.m:
3401 (-[WebBridge mayStartDragAtEventLocation:]): Glue change for new arg type.
3402 * WebView.subproj/WebHTMLView.m:
3403 (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
3404 firstMouseDownEvent ivar is no longer needed.
3405 (-[WebHTMLView _mayStartDragAtEventLocation:]): Receives a location instead of a drag
3406 event, since we need to do this work when we have no drag event. This means the
3407 check of the delay for text dragging is moved down to WebCore.
3408 (-[WebHTMLView acceptsFirstMouse:]): Respond based on whether we might do a drag.
3409 This includes drilling to the deepest view the event hits, whereas we used to only
3410 respond considering the topmost WebHTMLView.
3411 (-[WebHTMLView shouldDelayWindowOrderingForEvent:]): Ditto.
3412 (-[WebHTMLView mouseDown:]): Get rid of special case where some activating
3413 mouseDown events weren't sent to WC. We need to go through the whole pipeline
3414 now to get a drag started properly.
3415 (-[WebHTMLView mouseDragged:]): Ditto, let WC start the drag.
3416 (-[WebHTMLView mouseUp:]): firstMouseDownEvent ivar is no longer needed.
3417 * WebView.subproj/WebHTMLViewInternal.h:
3418 * WebView.subproj/WebHTMLViewPrivate.h:
3420 2004-06-25 Trey Matteson <trey@apple.com>
3422 Added new utility method.
3426 * WebView.subproj/WebFrame.m:
3427 (-[WebFrame _isDescendantOfFrame:]): New code.
3428 * WebView.subproj/WebFramePrivate.h:
3430 2004-06-24 Richard Williamson <rjw@apple.com>
3432 Fixed <rdar://problem/3710313>: CGContext not zeroed when WebImageRenderer is copied
3433 The context ivar of WebImageRenderer wasn't being nil when the object was copied.
3437 * WebCoreSupport.subproj/WebImageRenderer.m:
3438 (-[WebImageRenderer copyWithZone:]):
3439 (-[WebImageRenderer dealloc]):
3440 (-[WebImageRenderer drawImageInRect:fromRect:compositeOperator:context:]):
3442 2004-06-24 Trey Matteson <trey@apple.com>
3444 3672725 - Assertion failure in URLCompletion code with particular set of bookmarks
3446 Problem was caused by a URL with unescaped unicodes getting into
3447 the Bookmarks file, presumably from import from IE. We now test
3448 for this case and convert the data on the way in as if it were
3451 Reviewed by John and Darin.
3453 * History.subproj/WebHistoryItem.m:
3454 (-[WebHistoryItem initFromDictionaryRepresentation:]):
3456 2004-06-24 Trey Matteson <trey@apple.com>
3458 3704950 drag image in DB ConfigBar has horizontal graphics turd WebCore JavaScript
3460 When we generate a drag image (or a selection image too, for that matter) we
3461 translate the CTM using a CG call. Later, WebImageRenderer adjusts the pattern
3462 phase based on the CTM of the focused view, which doesn't include our translate.
3463 So we must inform WebKit about the additional phase adjustment.
3467 * WebCoreSupport.subproj/WebGraphicsBridge.h:
3468 * WebCoreSupport.subproj/WebGraphicsBridge.m:
3469 (-[WebGraphicsBridge setAdditionalPatternPhase:]): New trivial setter.
3470 (-[WebGraphicsBridge additionalPatternPhase]): ...and getter.
3471 * WebCoreSupport.subproj/WebImageRenderer.m:
3472 (-[WebImageRenderer tileInRect:fromPoint:context:]): Take any additional phase
3473 adjustment into account when setting phase.
3475 2004-06-24 Trey Matteson <trey@apple.com>
3477 3693420 - onbeforecut and onbeforepaste need real implementaion
3481 * WebView.subproj/WebHTMLView.m:
3482 (-[WebHTMLView validateUserInterfaceItem:]): Check with WebCore
3483 to see if cut, copy, paste should be enabled.
3485 2004-06-24 John Sullivan <sullivan@apple.com>