1 2004-11-02 Maciej Stachowiak <mjs@apple.com>
3 Reviewed by Dave Hyatt (when I originally coded it).
5 Redid WebKit part of fix for:
7 <rdar://problem/3759187> REGRESSION (Mail): implement firstRectForCharacterRange:
9 * WebView.subproj/WebHTMLView.m:
10 (-[WebHTMLView firstRectForCharacterRange:]): Call the appropriate new bridge method,
11 and translate to screen coordinates.
13 2004-11-02 John Sullivan <sullivan@apple.com>
17 - [NSFont menuFontOfSize:], called from WebStringTruncator, was taking > 9% of the time creating a
18 very large bookmarks menu, so I cached this one NSFont object.
20 * Misc.subproj/WebStringTruncator.m:
22 new function, caches the font used when no font is specified
23 (+[WebStringTruncator centerTruncateString:toWidth:]):
26 2004-11-02 Ken Kocienda <kocienda@apple.com>
30 WebCore now implements a command to insert a block in response to typing a return key, and
31 some names were improved in the course of this work.
33 * WebView.subproj/WebHTMLView.m:
34 (-[WebHTMLView insertNewline:]): Now calls insertLineBreak on bridge object.
35 (-[WebHTMLView insertLineBreak:]): New method.
36 (-[WebHTMLView insertParagraphSeparator:]): Now implemented.
37 * WebView.subproj/WebView.m:
41 2004-10-29 Chris Blumenberg <cblu@apple.com>
43 * WebKit.exp: added _WebPlugInModeKey, forgot to add it earlier
45 2004-10-29 Darin Adler <darin@apple.com>
47 - fixed <rdar://problem/3855573> Remove reference to "WebScriptMethods" from WebScriptObject.h comments
49 * Plugins.subproj/WebScriptObject.h: Removed unneeded #ifdef protection for multiple includes (since
50 this is an Objective-C header and we use #import for those). Fixed comments as requested in the bug
51 report to match the contents of the file.
53 2004-10-27 Ken Kocienda <kocienda@apple.com>
57 Added new SPI for Mail so it can get the behavior it needs when the user hits
58 the return key with the selection in quoted content.
60 * WebView.subproj/WebView.m
61 * WebView.subproj/WebViewPrivate.h
63 2004-10-26 Chris Blumenberg <cblu@apple.com>
65 Fixed exception that Darin encountered in Mail.
69 * Plugins.subproj/WebPluginController.m:
70 (+[WebPluginController plugInViewWithArguments:fromPluginPackage:]): if the plug-in returns a nil view, return nil
72 2004-10-25 Chris Blumenberg <cblu@apple.com>
74 Darin made an internal notification have the Web prefix.
78 * Plugins.subproj/WebBaseNetscapePluginView.m:
79 (-[WebBaseNetscapePluginView addWindowObservers]):
80 (-[WebBaseNetscapePluginView removeWindowObservers]):
81 (ConsoleConnectionChangeNotifyProc):
83 2004-10-25 John Sullivan <sullivan@apple.com>
87 - Cleanup from fix for <rdar://problem/3851676> bookmarks should not hold onto a WebHistoryItem object;
88 eliminated notificationsSuppressed mechanism, which was used only by WebBookmark
90 * History.subproj/WebHistoryItem.m:
91 removed notificationsSuppressed ivar from private data object
92 (-[WebHistoryItem setAlternateTitle:]):
93 remove notificationsSuppressed guard
94 (-[WebHistoryItem setURLString:]):
96 (-[WebHistoryItem setOriginalURLString:]):
98 (-[WebHistoryItem setTitle:]):
100 (-[WebHistoryItem _setLastVisitedTimeInterval:]):
102 (-[WebHistoryItem setNotificationsSuppressed:]):
104 (-[WebHistoryItem notificationsSuppressed]):
107 * History.subproj/WebHistoryItemPrivate.h:
108 removed notificationsSuppressed and setNotificationsSuppressed
110 2004-10-22 Chris Blumenberg <cblu@apple.com>
112 Fixed: <rdar://problem/3851491> installedPlugins being called for a page without plugins
116 * WebView.subproj/WebFrameView.m:
117 (+[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
121 2004-10-22 Ken Kocienda <kocienda@apple.com>
125 * WebKit.pbproj/project.pbxproj: Add GCC_ENABLE_OBJC_GC and GCC_FAST_OBJC_DISPATCH flags.
127 2004-10-21 Darin Adler <darin@apple.com>
131 - fixed <rdar://problem/3847994> REGRESSION: reproducible exception in WebImageRenderer releasePatternColor; afterwards get crash or no more browsing
133 * WebCoreSupport.subproj/WebImageRenderer.m:
134 (-[WebInternalImage createRendererIfNeeded]): Replaced retainOrCopyIfNeeded with this.
135 This returns nil if a copied renderer isn't needed, and returns a new renderer if a copy is.
136 The old version was sometimes returning a WebInternalImage and other times a WebImageRenderer.
137 (-[WebImageRenderer retainOrCopyIfNeeded]): Returns the result of createRendererIfNeeded
138 or retains self and returns self.
140 2004-10-20 Darin Adler <darin@apple.com>
144 - fixed <rdar://problem/3470715> Pattern cache can get huge with use of css background-image in Safari
146 * WebCoreSupport.subproj/WebImageRenderer.h: Change WebImageRenderer to be a subclass of NSObject
147 rather than NSImage and contain a pointer to a WebInternalImage.
148 * WebCoreSupport.subproj/WebImageRenderer.m:
149 (-[WebInternalImage releasePatternColor]): Added. Releases patternColor.
150 (-[WebImageRenderer initWithMIMEType:]): Added. Makes WebInternalImage and then self.
151 (-[WebImageRenderer initWithData:MIMEType:]): Ditto.
152 (-[WebImageRenderer initWithContentsOfFile:]): Ditto.
153 (-[WebImageRenderer dealloc]): Added. Calls releasePatternColor and then releases WebInternalImage.
154 (-[WebImageRenderer image]): Added. Returns pointer to image.
155 (-[WebImageRenderer MIMEType]): Added. Calls through to image.
156 (-[WebImageRenderer TIFFRepresentation]): Ditto.
157 (-[WebImageRenderer frameCount]): Ditto.
158 (-[WebImageRenderer setOriginalData:]): Added. Sets image data pointer.
159 (+[WebImageRenderer stopAnimationsInView:]): Added. Calls through to image.
160 (-[WebImageRenderer incrementalLoadWithBytes:length:complete:]): Ditto.
161 (-[WebImageRenderer size]): Ditto.
162 (-[WebImageRenderer resize:]): Ditto.
163 (-[WebImageRenderer drawImageInRect:fromRect:]): Ditto.
164 (-[WebImageRenderer drawImageInRect:fromRect:compositeOperator:context:]): Ditto.
165 (-[WebImageRenderer stopAnimation]): Ditto.
166 (-[WebImageRenderer tileInRect:fromPoint:context:]): Ditto.
167 (-[WebImageRenderer isNull]): Ditto.
168 (-[WebImageRenderer retainOrCopyIfNeeded]): Ditto.
169 (-[WebImageRenderer increaseUseCount]): Ditto.
170 (-[WebImageRenderer decreaseUseCount]): Ditto.
171 (-[WebImageRenderer flushRasterCache]): Ditto.
172 (-[WebImageRenderer imageRef]): Ditto.
173 (-[WebImageRenderer copyWithZone:]): Ditto.
175 * Misc.subproj/WebNSViewExtras.m: (-[NSView _web_dragImage:rect:event:pasteboard:source:offset:]):
176 Update for slight changes to WebImageRenderer API.
177 * WebCoreSupport.subproj/WebImageRendererFactory.m:
178 (-[WebImageRendererFactory imageRendererWithMIMEType:]): Ditto.
179 (-[WebImageRendererFactory imageRendererWithData:MIMEType:]): Ditto.
180 (-[WebImageRendererFactory imageRendererWithSize:]): Ditto.
181 (-[WebImageRendererFactory imageRendererWithName:]): Ditto.
182 * WebView.subproj/WebImageView.m: (-[WebImageView image]): Ditto.
184 2004-10-20 Chris Blumenberg <cblu@apple.com>
186 Fixed: <rdar://problem/3846943> REGRESSION: JNLP files are rendered instead of downloaded
190 * Plugins.subproj/WebBasePluginPackage.h:
191 * Plugins.subproj/WebBasePluginPackage.m:
192 (-[WebBasePluginPackage isJavaPlugIn]): new
193 * Plugins.subproj/WebPluginDatabase.m:
194 (-[WebPluginDatabase refresh]): don't register the Java plug-in for a document view since Java file should be downloaded when not embedded.
196 2004-10-20 Chris Blumenberg <cblu@apple.com>
199 <rdar://problem/3842030> WebKit needs to pass the mode (NP_FULL, NP_EMBED, etc) when calling plugInViewWithArguments
200 <rdar://problem/3792852> Safari is loading the new QuickTime Cocoa plugin on Panther
204 * Plugins.subproj/WebPluginDocumentView.m:
205 (-[WebPluginDocumentView setDataSource:]): pass "full" as the mode
206 * Plugins.subproj/WebPluginPackage.m:
207 (-[WebPluginPackage initWithPath:]): load plug-in with the "webplugin" extension
208 * WebCoreSupport.subproj/WebBridge.m:
209 (-[WebBridge pluginViewWithPackage:attributeNames:attributeValues:baseURL:]): pass "embed" as the mode
210 * WebKit.pbproj/project.pbxproj:
212 2004-10-19 Vicki Murley <vicki@apple.com>
214 - bump WebKit version to 167.1, so that we can do a quick dot submission for <rdar://problem/3843951>
216 * WebKit.pbproj/project.pbxproj:
218 2004-10-19 Darin Adler <darin@apple.com>
220 Change suggested by Maciej during code review.
222 * WebCoreSupport.subproj/WebTextRenderer.m: Changed rounding hack table to be const so it can be in shared instead
223 of private memory, and doesn't require an initialization function.
224 (+[WebTextRenderer initialize]): Removed initialization.
226 2004-10-19 Darin Adler <darin@apple.com>
230 - fixed <rdar://problem/3838934> Safari stops loading pages after rangeOfCharacterFromSet nil argument exception
231 - fixed <rdar://problem/3843951> REGRESSION (166-167): Safari crashes in widthForNextCharacter (belkin.com, at startup for others)
232 - fixed <rdar://problem/3841049> REGRESSION (109-110): control characters render as square boxes
234 * WebCoreSupport.subproj/WebTextRenderer.m:
235 (isSpace): Merged in isAlternateSpace, never used.
236 (setupRoundingHackCharacterTable): Fixed size of table, was 1 entry too short. Got rid of unneeded call to bzero,
237 since globals start out zeroed automatically.
238 (isRoundingHackCharacter): Fixed backwards logic causing the crash in widthForNextCharacter.
239 Also removed explicit compare with 1; check for non-zero is just fine.
240 (fontContainsString): Change code so we'll just skip the font if the covered character set returns nil rather than
241 throwing an exception like the old version did. This should make bug 3838934 go away, although perhaps covering up
242 the underlying problem.
243 (-[WebTextRenderer _convertCharacters:length:toGlyphs:]): Removed unused skipControlCharacters: parameter and also
244 the unnecessary code to copy the buffer to change newline characters and non-break spaces to spaces.
245 (-[WebTextRenderer _convertUnicodeCharacters:length:toGlyphs:]): Removed unused local.
246 (-[WebTextRenderer _extendCharacterToGlyphMapToInclude:]): Added code to set up special cases for control characters,
247 \n and non-break spaces.
248 (-[WebTextRenderer _createATSUTextLayoutForRun:]): Added comment about the cases this code does not handle that
249 are handled by the CG case.
250 (widthForNextCharacter): Call isSpace instead of checking specifically for the space character here. The old code
251 would not handle cases with '\n' coming across from WebCore properly.
253 2004-10-18 Chris Blumenberg <cblu@apple.com>
255 Fixed: <rdar://problem/3840916> GC: -[WebNetscapePluginPackage initWithPath:] leaks an NSURL
259 * Plugins.subproj/WebNetscapePluginPackage.m:
260 (-[WebNetscapePluginPackage initWithPath:]): use executablePath on NSBundle instead of CFBundleCopyExecutableURL
262 2004-10-18 Chris Blumenberg <cblu@apple.com>
264 * DOM.subproj/DOMPrivate.h: change to copied header that was never committed
266 2004-10-18 John Sullivan <sullivan@apple.com>
270 - fixed <rdar://problem/3810183> Make WebHTMLView respect return value of webView:doCommandBySelector:
272 * WebView.subproj/WebHTMLView.m:
273 (-[WebHTMLView doCommandBySelector:]):
274 only do default action if delegate returns NO; this works with Mail as of Tiger 8A275.
278 2004-10-14 Ken Kocienda <kocienda@apple.com>
282 Final fix for these bugs:
284 <rdar://problem/3806306> HTML editing puts spaces at start of line
285 <rdar://problem/3814252> HTML editing groups space with word causing wrapping
287 This change sets some new CSS properties that have been added to WebCore to
288 enable whitespace-handling and line-breaking features that make WebView work
289 more like a text editor.
291 * WebView.subproj/WebHTMLRepresentation.m:
292 (-[WebHTMLRepresentation finishedLoadingWithDataSource:]): Turn on special editing
293 CSS properties when loading an HTML document into a WebView that is editable.
294 * WebView.subproj/WebView.m:
295 (-[WebView setEditable:]): Add and remove special editing CSS properties in current
296 document being displayed.
298 2004-10-14 Richard Williamson <rjw@apple.com>
300 Fixed <rdar://problem/3823026> making isRoundingHackCharacter use -O3 and an 8-bit lookup-table will speed "XBS" test up by 3% (actually < 1%)
302 Careful testing shows a small performance gain on very large text files.
303 I saw large variations in timings, but taking the lowest PLT timing
304 with and without this change showed a 0.9% gain. Note the cvs-base showed
305 no improvement. The improvement was for the large page attached to the
310 * WebCoreSupport.subproj/WebTextRenderer.m:
311 (setupRoundingHackCharacterTable):
312 (isRoundingHackCharacter):
313 (+[WebTextRenderer initialize]):
315 2004-10-14 Ken Kocienda <kocienda@apple.com>
319 Fix build breakage. These three functions need to return the values from their
320 calls to WebCGColorSpaceCreateXXX.
322 * WebCoreSupport.subproj/WebGraphicsBridge.m:
323 (-[WebGraphicsBridge createRGBColorSpace])
324 (-[WebGraphicsBridge createGrayColorSpace])
325 (-[WebGraphicsBridge createCMYKColorSpace])
327 2004-10-13 Richard Williamson <rjw@apple.com>
329 Addressed concerns in <rdar://problem/3803117> RESP: High complexity in icu uidna_IDNToASCII called by [NSString(WebNSURLExtras) _web_mapHostNameWithRange:encode:makeString:]
331 In practice I saw NO improvement in performance. Although,
332 special-case tests could possibly show improvement. Anyway,
333 the changes don't hurt performance.
337 * Misc.subproj/WebNSURLExtras.m:
338 (-[NSString _web_mapHostNameWithRange:encode:makeString:]):
340 2004-10-13 Maciej Stachowiak <mjs@apple.com>
344 <rdar://problem/3824626> Change to do colormatching for DeviceRGB colorspace causes ~11% Safari slowdown
346 - I fixed this by turning off all colormatching for WebKit
347 content. We might turn it back on later. For now, it's possible to
348 turn it on temporarily by defining COLORMATCH_EVERYTHING.
350 * WebCoreSupport.subproj/WebGraphicsBridge.m:
351 (-[WebGraphicsBridge setFocusRingStyle:radius:color:]):
352 (-[WebGraphicsBridge additionalPatternPhase]):
353 (-[WebGraphicsBridge createRGBColorSpace]):
354 (-[WebGraphicsBridge createGrayColorSpace]):
355 (-[WebGraphicsBridge createCMYKColorSpace]):
356 * WebCoreSupport.subproj/WebImageData.m:
357 * WebCoreSupport.subproj/WebImageRenderer.h:
358 * WebCoreSupport.subproj/WebImageRenderer.m:
359 (-[WebImageRenderer _adjustSizeToPixelDimensions]):
360 (-[WebImageRenderer incrementalLoadWithBytes:length:complete:]):
361 (-[WebImageRenderer _adjustColorSpace]):
362 (-[WebImageRenderer drawClippedToValidInRect:fromRect:]):
363 (-[WebImageRenderer tileInRect:fromPoint:context:]):
365 (WebCGColorSpaceCreateRGB):
366 (WebCGColorSpaceCreateGray):
367 (WebCGColorSpaceCreateCMYK):
370 2004-10-13 Richard Williamson <rjw@apple.com>
372 Don't fill background with transparency unless debug flag
377 * WebView.subproj/WebHTMLView.m:
378 (-[WebHTMLView drawRect:]):
380 2004-10-12 Richard Williamson <rjw@apple.com>
382 Fixed <rdar://problem/3829705> Need to remove filling w/ transparency when not drawing backgroundy.
386 * WebView.subproj/WebHTMLView.m:
387 (-[WebHTMLView _transparentBackground]):
388 (-[WebHTMLView _setTransparentBackground:]):
389 (-[WebHTMLView drawRect:]):
390 * WebView.subproj/WebHTMLViewInternal.h:
391 * WebView.subproj/WebHTMLViewPrivate.h:
393 2004-10-11 Chris Blumenberg <cblu@apple.com>
395 Fixed: <rdar://problem/3802039> 8A259: Can't use Grab services to grab selection from screen
399 * WebView.subproj/WebHTMLView.m:
400 (+[WebHTMLView initialize]): register service "return types" which are types that can be inserted into a WebView
401 (-[WebHTMLView writeSelectionToPasteboard:types:]): service protocol method, be sure to only write specified types
402 (-[WebHTMLView readSelectionFromPasteboard:]): new, service protocol method, insert types
403 (-[WebHTMLView validRequestorForSendType:returnType:]): moved, handle return types
405 2004-10-11 Darin Adler <darin@apple.com>
409 - fixed <rdar://problem/3834130> nil-object-in-dictionary exception seen in -[WebView _elementAtWindowPoint:]
411 * WebView.subproj/WebView.m: (-[WebView _elementAtWindowPoint:]): Added a check for nil frame.
413 2004-10-11 Darin Adler <darin@apple.com>
417 - fixed <rdar://problem/3834166> <input type=file> sends onchange even when the same file is chosen twice
419 * WebCoreSupport.subproj/WebFileButton.m: (-[WebFileButton chooseFilename:]):
420 Do nothing if filename is the same as before.
422 2004-10-11 Ken Kocienda <kocienda@apple.com>
426 * WebView.subproj/WebHTMLView.m:
427 (-[WebTextCompleteController doCompletion]): bridge call to get caret rect at a node
428 now takes an affinity: caretRectAtNode:offset:affinity:.
430 2004-10-10 Ken Kocienda <kocienda@apple.com>
436 <rdar://problem/3814236> REGRESSION (Mail): Can't set the color of text in Mail compose window using drag/drag from color panel
438 * WebView.subproj/WebHTMLView.m:
439 (+[WebHTMLView _insertablePasteboardTypes]): Add NSColorPboardType to list.
440 (-[WebHTMLView _isNSColorDrag:]): New helper. Determines if drag is an NSColor drag.
441 (-[WebHTMLView draggingUpdatedWithDraggingInfo:actionMask:]): Add a case for NSColor drags,
442 else do what we did before.
443 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): Add a case for NSColor drags, which creates
444 a CSS style containing color info and calls the bridge to apply the style. Otherwise, do what we did before.
446 2004-10-11 Darin Adler <darin@apple.com>
450 - fixed <rdar://problem/3833848> REGRESSION (133-134): each keydown event is getting sent multiple times
452 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView performKeyEquivalent:]):
453 Don't send an event through WebCore if it has already been through once.
455 2004-10-10 John Sullivan <sullivan@apple.com>
459 - fixed <rdar://problem/3777253> Crash in redirect mechanism trying to display error page for bad scheme
461 * WebView.subproj/WebMainResourceClient.m:
462 (-[WebMainResourceClient connection:willSendRequest:redirectResponse:]):
463 add retain/autorelease to the request returned from call to super. In this case, the return value
464 was being dealloc'ed before being returned.
466 2004-10-09 Chris Blumenberg <cblu@apple.com>
469 <rdar://problem/3625352> up and down arrow and page up/down keys don't work to scroll overflow:auto/scroll/overlay areas
470 <rdar://problem/3397658> scroll wheel does not work to scroll overflow:auto/scroll/overlay areas (RSS)
474 * Plugins.subproj/WebBaseNetscapePluginStream.m:
475 (-[WebBaseNetscapePluginStream initWithRequestURL:pluginPointer:notifyData:sendNotification:]): fixed typo in comment
476 * Plugins.subproj/WebNetscapePluginStream.m:
477 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]): ditto
478 * WebView.subproj/WebFramePrivate.h:
479 * WebView.subproj/WebFrameView.m:
480 (-[WebFrameView _bridge]): new
481 (-[WebFrameView scrollToBeginningOfDocument:]): call the bridge to scroll, if that fails, scroll the document view
482 (-[WebFrameView scrollToEndOfDocument:]): ditto
483 (-[WebFrameView _pageVertically:]): ditto
484 (-[WebFrameView _pageHorizontally:]): ditto
485 (-[WebFrameView _scrollLineVertically:]): ditto
486 (-[WebFrameView _scrollLineHorizontally:]): ditto
487 * WebView.subproj/WebHTMLView.m:
488 (-[WebHTMLView scrollWheel:]): call the bridge to scroll, if that fails, pass to next responder
492 2004-10-05 Chris Blumenberg <cblu@apple.com>
494 Fixed: <rdar://problem/3827002> assertion failure in WebBaseNetscapePluginStream on abc.go.com
498 * Plugins.subproj/WebBaseNetscapePluginStream.m:
499 (-[WebBaseNetscapePluginStream initWithRequestURL:pluginPointer:notifyData:sendNotification:]): avoid assertion failure in dealloc by temporarily setting isTerminated to YES in case we are released in this method
500 * Plugins.subproj/WebNetscapePluginStream.m:
501 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]): ditto
503 2004-10-05 John Sullivan <sullivan@apple.com>
505 * WebCoreSupport.subproj/WebBridge.m:
506 (-[WebBridge pluginViewWithPackage:attributeNames:attributeValues:baseURL:]):
507 initialize "arguments" var to nil to satisfy compiler on deployment build.
509 2004-10-05 Richard Williamson <rjw@apple.com>
511 Fixed <rdar://problem/3825442> first click lost for Dashboard
512 Allow dashboard to force acceptsFirstMouse:
516 * WebView.subproj/WebHTMLView.m:
517 (-[WebHTMLView acceptsFirstMouse:]):
518 * WebView.subproj/WebView.m:
519 (-[WebView _dashboardBehavior:]):
520 * WebView.subproj/WebViewInternal.h:
521 * WebView.subproj/WebViewPrivate.h:
523 * WebCoreSupport.subproj/WebImageRenderer.h:
526 2004-10-05 Chris Blumenberg <cblu@apple.com>
528 Fixed: <rdar://problem/3760920> Need to record plugin view instances
532 * Plugins.subproj/WebPluginController.h:
533 * Plugins.subproj/WebPluginController.m:
534 (+[WebPluginController plugInViewWithArguments:fromPluginPackage:]): new, creates plug-in view and adds it to global list
535 (+[WebPluginController isPlugInView:]): new, checks if the plug-in view is in the global list
536 (-[WebPluginController destroyAllPlugins]): remove the plug-in from the global list
537 * Plugins.subproj/WebPluginDocumentView.m:
538 (-[WebPluginDocumentView setDataSource:]): call [WebPluginController plugInViewWithArguments:fromPluginPackage:]
539 * WebCoreSupport.subproj/WebBridge.m:
540 (-[WebBridge pluginViewWithPackage:attributeNames:attributeValues:baseURL:]): ditto
541 * WebView.subproj/WebFrame.m:
542 (-[WebFrame _reloadForPluginChanges]): call [WebPluginController isPlugInView:]
543 * WebView.subproj/WebHTMLView.m:
544 (-[WebHTMLView addSubview:]): ditto
546 2004-10-05 David Hyatt <hyatt@apple.com>
548 Fix to make selection more like NSTextView. All gap painting is now done by WebCore, so WebKit no longer
549 needs to try to fill gaps around text.
553 * WebCoreSupport.subproj/WebTextRenderer.m:
554 (-[WebTextRenderer _CG_drawHighlightForRun:style:geometry:]):
555 (-[WebTextRenderer _ATSU_drawHighlightForRun:style:geometry:]):
557 2004-10-05 Darin Adler <darin@apple.com>
561 - fixed <rdar://problem/3577255> custom file icon shows up upside down in <input type=file>
563 * WebCoreSupport.subproj/WebFileButton.m: (-[WebFileButton setFilename:]): Added a call to
564 setFlipped that fixes the problem, even though I don't know why.
566 2004-10-04 Darin Adler <darin@apple.com>
570 - fixed <rdar://problem/3814237> REGRESSION (Mail): Copy/paste style does not set color in Mail compose window
572 * WebView.subproj/WebHTMLView.m:
573 (-[WebHTMLView _selectionStartFontAttributesAsRTF]): Changed to call new bridge method
574 named fontAttributesForSelectionStart, deleted the method this used to use, and renamed
575 this to have the word "start" in it.
576 (-[WebHTMLView copyFont:]): Updated for name change.
578 * English.lproj/StringsNotToBeLocalized.txt: Updated for recent changes.
580 2004-10-04 Chris Blumenberg <cblu@apple.com>
582 * WebView.subproj/WebFrameInternal.h: removed constant declarations that I committed by mistake
584 2004-10-04 Chris Blumenberg <cblu@apple.com>
586 Fixed: <rdar://problem/3798948> NPP_URLNotify is not called if plug-in calls NPN_*URLNotfy
587 Fixed a number of FIXME's related to notifying plug-ins of loaded pages.
591 * Plugins.subproj/WebBaseNetscapePluginStream.h:
592 - replaced URL ivar with requestURL and responseURL ivars since we need to pass both to plug-ins
593 - added sendNotification boolean. Relying on notifyData not being NULL was not information to know whether to call NPP_URLNotify or not.
594 - added isTerminated boolean because determining whether or not stream.ndata is NULL is not enough to know if the stream has been cancelled.
595 * Plugins.subproj/WebBaseNetscapePluginStream.m:
596 (+[WebBaseNetscapePluginStream reasonForError:]): new, factored out from receivedError:
597 (-[WebBaseNetscapePluginStream initWithRequestURL:pluginPointer:notifyData:sendNotification:]): new
598 (-[WebBaseNetscapePluginStream dealloc]): release new ivars
599 (-[WebBaseNetscapePluginStream finalize]): added assert
600 (-[WebBaseNetscapePluginStream setRequestURL:]): new
601 (-[WebBaseNetscapePluginStream setResponseURL:]): new
602 (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:]): renamed, use responseURL as it basically did before
603 (-[WebBaseNetscapePluginStream startStreamWithResponse:]): call renamed method
604 (-[WebBaseNetscapePluginStream destroyStream]):
605 - do nothing if terminated
606 - call NPP_StreamAsFile and NPP_DestroyStream if stream.ndata is not NULL
607 - call NPP_URLNotify if sendNotification is YES regardless of value of notifyData
608 (-[WebBaseNetscapePluginStream receivedError:]): call reasonForError
609 (-[WebBaseNetscapePluginStream deliverData]): use renamed ivar
610 * Plugins.subproj/WebBaseNetscapePluginView.h:
611 - added observingFrameLoadNotification boolean
612 - renamed dictionary ivar to pendingFrameLoads which has WebFrame keys and WebPluginRequest values
613 * Plugins.subproj/WebBaseNetscapePluginView.m:
614 (-[WebBaseNetscapePluginView addFrameLoadObserver]): new
615 (-[WebBaseNetscapePluginView removeFrameLoadObserver]): new
616 (-[WebBaseNetscapePluginView stop]): call removeFrameLoadObserver
617 (-[WebBaseNetscapePluginView initWithFrame:]): use renamed pendingFrameLoads ivar
618 (-[WebBaseNetscapePluginView dealloc]): ditto
619 (-[WebBaseNetscapePluginView requestWithURLCString:]): set referrer on the request just as IE does
620 (-[WebBaseNetscapePluginView evaluateJavaScriptPluginRequest:]):
621 - call NPP_URLNotify depending of value of sendNotification
622 - call new init method on WebBaseNetscapePluginStream rather then setting variables individually
623 (-[WebBaseNetscapePluginView webFrame:didFinishLoadWithReason:]): new, calls NPP_URLNotify at the right time with the right value
624 (-[WebBaseNetscapePluginView webFrame:didFinishLoadWithError:]): new, delegate method called from WebFrame
625 (-[WebBaseNetscapePluginView loadPluginRequest:]): call addFrameLoadObserver
626 (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]): take new sendNotification parameter and pass it
627 (-[WebBaseNetscapePluginView getURLNotify:target:notifyData:]): pass YES for sendNotification
628 (-[WebBaseNetscapePluginView getURL:target:]): pass NO for sendNotification
629 (-[WebBaseNetscapePluginView _postURL:target:len:buf:file:notifyData:sendNotification:allowHeaders:]): take new sendNotification parameter and pass it
630 (-[WebBaseNetscapePluginView postURLNotify:target:len:buf:file:notifyData:]): pass YES for sendNotification
631 (-[WebBaseNetscapePluginView postURL:target:len:buf:file:]): pass NO for sendNotification
632 (-[WebPluginRequest initWithRequest:frameName:notifyData:sendNotification:]): take new sendNotification parameter
633 (-[WebPluginRequest sendNotification]): new
634 * Plugins.subproj/WebBaseNetscapePluginViewPrivate.h:
635 * Plugins.subproj/WebNetscapePluginEmbeddedView.m:
636 (-[WebNetscapePluginEmbeddedView didStart]): set referrer on the request just as IE does
637 * Plugins.subproj/WebNetscapePluginRepresentation.m:
638 (-[WebNetscapePluginRepresentation receivedData:withDataSource:]): set the request URL on the stream
639 * Plugins.subproj/WebNetscapePluginStream.h:
640 * Plugins.subproj/WebNetscapePluginStream.m:
641 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]): take new sendNotification parameter and pass it
642 (-[WebNetscapePluginStream dealloc]): use renamed ivar
643 (-[WebNetscapePluginStream start]): ditto
644 * WebView.subproj/WebFrame.m:
645 (-[WebFrame _setState:]): removed notification posting code. This was only used by WebBaseNetscapePluginView and it was the wrong notification to send.
646 (-[WebFrame _checkLoadCompleteForThisFrame]): call internal load delegate to tell it that the load has finished
647 (-[WebFrame _loadItem:withLoadType:]): ditto
648 (-[WebFrame _continueFragmentScrollAfterNavigationPolicy:formState:]): ditto
649 (-[WebFrame _setInternalLoadDelegate:]): new
650 (-[WebFrame _internalLoadDelegate]): new
651 * WebView.subproj/WebFrameInternal.h:
652 * WebView.subproj/WebFramePrivate.h:
654 2004-10-04 Chris Blumenberg <cblu@apple.com>
656 Fixed: <rdar://problem/3758113> REGRESSION: Macromedia ColdFusion page doesn't show main content
658 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.
662 * Plugins.subproj/WebBaseNetscapePluginView.m:
663 (-[NSData _web_locationAfterFirstBlankLine]): looks for 2 CRLF's, not for 2 LF's
665 2004-10-04 Darin Adler <darin@apple.com>
669 - fixed a potential storage leak when we turn on CGImageRef image rendering
671 * WebCoreSupport.subproj/WebImageRenderer.m: (-[WebImageRenderer dealloc]): Fix potential storage leak
672 by adding [super dealloc], but leak was not real yet because the code is commented out.
674 - make paste style work with color as part of fix to <rdar://problem/3814237> REGRESSION (Mail):
675 Copy/paste style does not set color in Mail compose window
677 * WebView.subproj/WebHTMLView.m:
678 (-[WebHTMLView _selectionFontAttributes]): Change structure so it's easy to add more attributes.
679 For now I haven't added any yet.
680 (-[WebHTMLView _colorAsString:]): Moved this earlier in the file.
681 (-[WebHTMLView _shadowAsString:]): Ditto.
682 (-[WebHTMLView _styleFromFontAttributes:]): Add background color, foreground color, and text shadow.
684 2004-09-30 Richard Williamson <rjw@apple.com>
686 Fixed <rdar://problem/3821215> NPN hasMethod and hasProperty functions should take NPObjects, not NPClass
688 Also changed dashboard regions dictionary to use "control"
689 for scroller region label, instead of "scroller, per
694 * Plugins.subproj/npruntime.h:
695 * WebView.subproj/WebView.m:
696 (-[WebView _addScrollerDashboardRegions:from:]):
698 2004-09-30 Chris Blumenberg <cblu@apple.com>
700 Fixed: <rdar://problem/3498680> switching back and forth between tabs stops calling anything in a plug-in
704 * Plugins.subproj/WebBaseNetscapePluginView.m:
705 (-[WebBaseNetscapePluginView sendEvent:]): call setWindowIfNecessary because the window may have changed
706 (-[WebBaseNetscapePluginView updateAndSetWindow]): new
707 (-[WebBaseNetscapePluginView setWindowIfNecessary]): was setWindow, this method now just sets the window
708 (-[WebBaseNetscapePluginView start]): call updateAndSetWindow
709 (-[WebBaseNetscapePluginView viewDidMoveToWindow]): ditto
710 (-[WebBaseNetscapePluginView viewHasMoved:]): ditto
712 2004-09-30 Chris Blumenberg <cblu@apple.com>
714 Fixed: <rdar://problem/3498668> switching out of tab doesn't send loseFocusEvent to plug-in
718 * Plugins.subproj/WebBaseNetscapePluginView.h:
719 * Plugins.subproj/WebBaseNetscapePluginView.m:
720 (-[WebBaseNetscapePluginView setHasFocus:]): new, sends events to plug-in
721 (-[WebBaseNetscapePluginView becomeFirstResponder]): call setHasFocus
722 (-[WebBaseNetscapePluginView resignFirstResponder]): ditto
723 (-[WebBaseNetscapePluginView viewWillMoveToWindow:]): ditto
725 2004-09-30 Chris Blumenberg <cblu@apple.com>
728 Assertion failure when loading standalone netscape plug-in content.
729 Document loads of WebKit plug-in content should be cancelled since the plug-in does its own loading.
733 * Misc.subproj/WebKitErrors.m: removed deprecated method
734 * Misc.subproj/WebKitErrorsPrivate.h:
735 * Plugins.subproj/WebNetscapePluginDocumentView.m:
736 (-[WebNetscapePluginDocumentView setDataSource:]): fixed the assertion statement
737 * Plugins.subproj/WebPluginDocumentView.h:
738 * Plugins.subproj/WebPluginDocumentView.m:
739 (-[WebPluginDocumentView dealloc]): remove retained plug-in
740 (-[WebPluginDocumentView setDataSource:]): retain the plug-in, cancel the laod
742 2004-09-29 Chris Blumenberg <cblu@apple.com>
745 <rdar://problem/3763832> Safari-155: Non-Embeded movies fail to open in Cocoa QT plug-in
746 <rdar://problem/3820517> "*** -[WebPluginPackage NPP_New]: selector not recognized [self = 0x5552c10]"
750 * History.subproj/WebHistoryItem.m:
751 * Misc.subproj/WebNSViewExtras.h:
752 * Misc.subproj/WebNSViewExtras.m:
753 (-[NSView _web_firstResponderCausesFocusDisplay]):
754 (-[NSView _webView]):
757 (-[NSView _dataSource]):
758 * Plugins.subproj/WebBasePluginPackage.h:
759 * Plugins.subproj/WebBasePluginPackage.m:
760 (-[WebBasePluginPackage hash]):
761 (-[WebBasePluginPackage isQuickTimePlugIn]):
762 * Plugins.subproj/WebNetscapePluginDocumentView.m:
763 (-[WebNetscapePluginDocumentView setDataSource:]):
764 * Plugins.subproj/WebNetscapePluginRepresentation.m:
765 * Plugins.subproj/WebPluginController.h:
766 * Plugins.subproj/WebPluginController.m:
767 (-[WebPluginController initWithDocumentView:]):
768 (-[WebPluginController addPlugin:]):
769 (-[WebPluginController destroyAllPlugins]):
770 (-[WebPluginController webPlugInContainerLoadRequest:inFrame:]):
771 (-[WebPluginController webPlugInContainerShowStatus:]):
772 (-[WebPluginController webPlugInContainerSelectionColor]):
773 (-[WebPluginController webFrame]):
774 * Plugins.subproj/WebPluginDatabase.h:
775 * Plugins.subproj/WebPluginDatabase.m:
776 (-[WebPluginDatabase pluginForKey:withEnumeratorSelector:]):
777 (-[WebPluginDatabase refresh]):
778 (WebPluginDocumentView::while):
779 * Plugins.subproj/WebPluginDocumentView.h: Added.
780 * Plugins.subproj/WebPluginDocumentView.m: Added.
781 (-[WebPluginDocumentView initWithFrame:]):
782 (-[WebPluginDocumentView dealloc]):
783 (-[WebPluginDocumentView drawRect:]):
784 (-[WebPluginDocumentView setDataSource:]):
785 (-[WebPluginDocumentView setNeedsLayout:]):
786 (-[WebPluginDocumentView layout]):
787 (-[WebPluginDocumentView currentWindow]):
788 (-[WebPluginDocumentView viewWillMoveToWindow:]):
789 (-[WebPluginDocumentView viewDidMoveToWindow]):
790 (-[WebPluginDocumentView viewWillMoveToHostWindow:]):
791 (-[WebPluginDocumentView viewDidMoveToHostWindow]):
792 (-[WebPluginDocumentView receivedData:withDataSource:]):
793 (-[WebPluginDocumentView receivedError:withDataSource:]):
794 (-[WebPluginDocumentView finishedLoadingWithDataSource:]):
795 (-[WebPluginDocumentView canProvideDocumentSource]):
796 (-[WebPluginDocumentView documentSource]):
797 (-[WebPluginDocumentView title]):
798 * Plugins.subproj/npapi.m:
799 (NPN_ReleaseVariantValue):
800 (NPN_GetStringIdentifier):
801 (NPN_GetStringIdentifiers):
802 (NPN_GetIntIdentifier):
803 (NPN_IdentifierIsString):
804 (NPN_UTF8FromIdentifier):
805 (NPN_IntFromIdentifier):
814 (NPN_RemoveProperty):
819 * WebCoreSupport.subproj/WebBridge.m:
820 (-[WebBridge frameRequiredForMIMEType:URL:]):
821 * WebCoreSupport.subproj/WebViewFactory.m:
823 * WebKit.pbproj/project.pbxproj:
824 * WebView.subproj/WebDebugDOMNode.m:
825 * WebView.subproj/WebDocumentInternal.h:
826 * WebView.subproj/WebHTMLView.m:
827 (-[WebHTMLView initWithFrame:]):
828 * WebView.subproj/WebHTMLViewPrivate.h:
829 * WebView.subproj/WebImageRepresentation.h:
830 * WebView.subproj/WebRenderNode.m:
831 * WebView.subproj/WebView.m:
833 2004-09-29 Richard Williamson <rjw@apple.com>
835 Fixed <rdar://problem/3779998> bringing window to front or sending to back does not send focus/blur events to JavaScript window object
837 The fix has two parts, 1) make onblur and onfocus work for windows,
838 and 2), allow the dashboard to override WebKit's special key/non-key
843 * Plugins.subproj/WebBaseNetscapePluginView.m:
844 (-[WebBaseNetscapePluginView restartNullEvents]):
845 * WebView.subproj/WebHTMLView.m:
846 (-[WebHTMLView addMouseMovedObserver]):
847 (-[WebHTMLView removeMouseMovedObserver]):
848 * WebView.subproj/WebView.m:
849 (-[WebView _dashboardBehavior:]):
850 * WebView.subproj/WebViewInternal.h:
851 * WebView.subproj/WebViewPrivate.h:
853 2004-09-29 Maciej Stachowiak <mjs@apple.com>
857 - consolidated OS version checks into prefix header
859 * Misc.subproj/WebFileDatabase.m:
860 (-[WebFileDatabase _createLRUList:]):
861 (+[WebFileDatabase _syncLoop:]):
862 * Misc.subproj/WebKitErrors.m:
864 * Misc.subproj/WebNSObjectExtras.h:
865 (WebNSRetainCFRelease):
866 * Misc.subproj/WebNSPasteboardExtras.m:
867 (-[NSPasteboard _web_declareAndWriteDragImage:URL:title:archive:source:]):
868 * Misc.subproj/WebUnicode.m:
870 * WebCoreSupport.subproj/WebImageData.h:
871 * WebCoreSupport.subproj/WebImageRenderer.h:
872 * WebCoreSupport.subproj/WebKeyGenerator.h:
873 * WebCoreSupport.subproj/WebNewKeyGeneration.c:
875 * WebView.subproj/WebDataSource.m:
876 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
877 (-[WebDataSource isLoading]):
878 * WebView.subproj/WebFrameView.m:
879 (+[WebFrameView _viewTypesAllowImageTypeOmission:]):
880 * WebView.subproj/WebHTMLView.m:
881 * WebView.subproj/WebPDFRepresentation.h:
882 * WebView.subproj/WebPDFRepresentation.m:
883 * WebView.subproj/WebPDFView.h:
884 * WebView.subproj/WebPDFView.m:
886 2004-09-29 Ken Kocienda <kocienda@apple.com>
892 <rdar://problem/3818296> REGRESSION (Mail): centerSelectionInVisibleArea does not work correctly
894 * WebView.subproj/WebHTMLView.m:
895 (-[WebHTMLView centerSelectionInVisibleArea:]): Now calls new centerSelectionInVisibleArea
896 bridge function instead of ensureCaretVisible. Now handles caret selections and range
897 selections correctly.
899 2004-09-28 Chris Blumenberg <cblu@apple.com>
901 Added timing code so that Doug can time RTF conversion.
903 * WebView.subproj/WebHTMLView.m:
904 (-[WebHTMLView writeSelectionWithPasteboardTypes:toPasteboard:]):
905 (-[WebHTMLView _attributeStringFromDOMRange:]):
907 2004-09-28 Richard Williamson <rjw@apple.com>
909 <rdar://problem/3817421> add getter for dashboard regions (debugging)
911 <rdar://problem/3817417> NSScrollView need autoregions for dashboard
916 * WebCoreSupport.subproj/WebBridge.m:
917 (-[WebBridge dashboardRegionsChanged:]):
918 * WebView.subproj/WebView.m:
919 (-[WebView _setInitiatedDrag:]):
920 (-[WebView _addScrollerDashboardRegions:from:]):
921 (-[WebView _addScrollerDashboardRegions:]):
922 (-[WebView _dashboardRegions]):
923 * WebView.subproj/WebViewPrivate.h:
925 2004-09-27 John Sullivan <sullivan@apple.com>
927 - fixed <rdar://problem/3814705> 8A266: Safari authentication dialog "remember password" text should match Mail
929 * Panels.subproj/English.lproj/WebAuthenticationPanel.nib:
930 changed "Remember this password" to "Remember this password in my keychain";
931 this will need to go through CCC for this week's build.
933 2004-09-27 Chris Blumenberg <cblu@apple.com>
935 Fixed: <rdar://problem/3594754> change null event interval from 20 ms to 10 ms to match speed on Windows
939 * Plugins.subproj/WebBaseNetscapePluginView.m:
941 2004-09-27 Chris Blumenberg <cblu@apple.com>
943 Fixed: <rdar://problem/3502138> text files don't remember scroll position when going back or reloading
947 * WebView.subproj/WebTextView.m:
948 (-[WebTextView layout]): implemented, call sizeToFit, without this scrollPoint: won't work
950 2004-09-27 John Sullivan <sullivan@apple.com>
954 - WebKit part of fix for <rdar://problem/3734466> ER: Support standard editing keystrokes
955 like Cmd-B while editing rich text
957 * WebView.subproj/WebHTMLView.m:
958 (-[WebHTMLView _toggleBold]):
959 new method, toggles font-weight from "bold" to "normal"
960 (-[WebHTMLView _toggleItalic]):
961 new method, toggles font-style from "italic" to "normal"
962 (-[WebHTMLView _handleStyleKeyEquivalent:]):
963 new method, if the new preference is set and we're in an editable state, check for standard
964 key equivalents for toggling styles (just command-B and command-I for now).
965 (-[WebHTMLView performKeyEquivalent:]):
966 Moved in file, now calls _handleStyleKeyEquivalent:
968 * WebView.subproj/WebPreferenceKeysPrivate.h:
969 new preference key WebKitRespectStandardStyleKeyEquivalentsPreferenceKey
970 * WebView.subproj/WebPreferences.m:
971 (+[WebPreferences initialize]):
972 initial value of WebKitRespectStandardStyleKeyEquivalentsPreferenceKey is NO (maybe we'll
973 change our minds about this, but this is more guaranteed to be backward-compatible)
974 (-[WebPreferences respectStandardStyleKeyEquivalents]):
975 read WebKitRespectStandardStyleKeyEquivalentsPreferenceKey
976 (-[WebPreferences setRespectStandardStyleKeyEquivalents:]):
977 write WebKitRespectStandardStyleKeyEquivalentsPreferenceKey
979 * WebView.subproj/WebPreferencesPrivate.h:
980 declare getter and setter
982 * English.lproj/StringsNotToBeLocalized.txt:
983 updated for these and other recent changes
985 2004-09-27 Chris Blumenberg <cblu@apple.com>
987 Fixed: <rdar://problem/3806649> assertion failure after control-click of webcam
991 * WebView.subproj/WebDefaultContextMenuDelegate.m:
992 (-[WebDefaultUIDelegate contextMenuItemsForElement:]): don't provide "Copy Image" if the image is not fully loaded
994 2004-09-27 Chris Blumenberg <cblu@apple.com>
996 Fixed: <rdar://problem/3814810> REGRESSION (125-164): Exception adding nil to dictionary in dragging code
1000 * WebView.subproj/WebHTMLView.m:
1001 (-[WebHTMLView _setMouseDownEvent:]): new
1002 (-[WebHTMLView acceptsFirstMouse:]): call _setMouseDownEvent
1003 (-[WebHTMLView shouldDelayWindowOrderingForEvent:]): ditto
1004 (-[WebHTMLView mouseDown:]): ditto
1005 (-[WebHTMLView _delegateDragSourceActionMask]): removed temp fix, assert that the mouse event is not nil
1007 2004-09-27 Darin Adler <darin@apple.com>
1009 * WebKit.pbproj/project.pbxproj: Added WebDashboardRegion.h as a private header.
1011 2004-09-24 Chris Blumenberg <cblu@apple.com>
1015 * WebView.subproj/WebHTMLView.m:
1016 (-[WebHTMLView _selectedArchive]): added timing code for copying markup
1020 2004-09-24 Chris Blumenberg <cblu@apple.com>
1022 Temp fix for: <rdar://problem/3814810> REGRESSION (125-164): Exception adding nil to dictionary in dragging code
1026 * WebView.subproj/WebHTMLView.m:
1027 (-[WebHTMLView _delegateDragSourceActionMask]): return none if the mouse down event is nil
1029 2004-09-24 Ken Kocienda <kocienda@apple.com>
1035 <rdar://problem/3813917> REGRESSION (125-163): The font panel will change the font of any web page
1037 We were doing a laughably bad job at preventing edits in documents that were not editable.
1038 This change fixes the specific case of the bug mentioned above, and makes an attempt to
1039 fix similar bugs by checking for whether the view is in editing mode before making edits.
1041 * WebView.subproj/WebHTMLView.m:
1042 (-[WebHTMLView _canEdit]): Renamed from _canType. Used in many more places in the code now.
1043 (-[WebHTMLView _isMoveDrag]): Change around code to make the meaning more clear. This one
1044 was actually performing a correct check before.
1045 (-[WebHTMLView keyDown:]): Renamed _canType to _canEdit.
1046 (-[WebHTMLView paste:]): Don't beep if can't paste. This matches AppKit. Any paste-related beeps
1047 will come from failure to handle key equivalent. Menu validation will kick in to dim menu.
1048 (-[WebHTMLView _applyStyleToSelection:]): Bail if !_canEdit.
1049 (-[WebHTMLView pasteAsPlainText:]): Ditto.
1050 (-[WebHTMLView _alignSelectionUsingCSSValue:]): Ditto.
1051 (-[WebHTMLView insertNewline:]): Ditto.
1052 (-[WebHTMLView insertParagraphSeparator:]): Ditto.
1053 (-[WebHTMLView _changeWordCaseWithSelector:]): Ditto.
1054 (-[WebHTMLView _deleteWithDirection:granularity:killRing:]): Ditto.
1055 (-[WebHTMLView complete:]): Ditto.
1056 (-[WebHTMLView _changeSpellingToWord:]): Ditto. Some code rearranging to eliminate bridge local variable.
1057 (-[WebHTMLView ignoreSpelling:]): Ditto.
1058 (-[WebHTMLView yank:]): Bail if !_canEdit.
1059 (-[WebHTMLView yankAndSelect:]): Ditto.
1060 (-[WebHTMLView deleteToMark:]): Ditto.
1061 (-[WebHTMLView swapWithMark:]): Ditto.
1062 (-[WebHTMLView transpose:]): Ditto.
1063 (-[WebHTMLView _updateFontPanel]): Ditto. Some code rearranging to eliminate bridge local variable.
1064 (-[WebHTMLView setMarkedText:selectedRange:]): Bail if !_canEdit.
1065 (-[WebHTMLView _insertText:selectInsertedText:]): Ditto. Some code rearranging to eliminate bridge local variable.
1066 * WebView.subproj/WebHTMLViewPrivate.h: Renamed _canType to _canEdit.
1068 2004-09-24 Ken Kocienda <kocienda@apple.com>
1072 * WebCoreSupport.subproj/WebDashboardRegion.h: Check in file copied from WebCore.
1074 2004-09-23 Maciej Stachowiak <mjs@apple.com>
1078 <rdar://problem/3685235> REGRESSION (Mail): links are not properly editable
1080 * WebView.subproj/WebDefaultUIDelegate.m: By default, don't allow
1081 link dragging if the element under the mouse pointer is
1082 editable. This way, you can drag-select starting inside a link.
1084 2004-09-23 John Sullivan <sullivan@apple.com>
1088 - WebKit part of fix for <rdar://problem/3415264>
1089 Default encoding should initially be set to current system encoding
1091 * WebView.subproj/WebPreferences.m:
1092 (-[WebPreferences _setInitialDefaultTextEncodingToSystemEncoding]):
1093 new SPI that sets the initial value of the default text encoding to
1094 be the system encoding, with a special-case conversion of MacRoman->Latin1.
1095 This is not done automatically for WebKit clients for fear of breaking them.
1097 * WebView.subproj/WebPreferencesPrivate.h:
1100 2004-09-23 Darin Adler <darin@apple.com>
1104 - fixed <rdar://problem/3811584> REGRESSION (85-125): iframe.document undefined in function called from button onclick; works from img onclick
1106 The fix is to not let "defers callbacks" have any effect on loading "about:blank".
1107 I also had to fix one bug in WebCore that could then be reproduced by going to "about:blank"
1108 while using a button.
1110 * WebView.subproj/WebMainResourceClient.m:
1111 (-[WebMainResourceClient connection:didReceiveResponse:]): Loosen asserts to allow this callback
1112 for the specific case of "about:blank" even if the defers callbacks flag is true.
1113 (-[WebMainResourceClient connectionDidFinishLoading:]): Ditto.
1114 (-[WebMainResourceClient loadWithRequestNow:]): Added NSURLRequest return value. Loosened asserts
1115 as above. Changed code to return a new request if we get a new request back that is not empty
1116 when the defers callbacks flag is true.
1117 (-[WebMainResourceClient loadWithRequest:]): If the defers callbacks flag is set, but the
1118 URL is one that gives us an empty document, then do the work right away, don't defer it.
1120 2004-09-23 Darin Adler <darin@apple.com>
1122 - fixed B&I builds by checking in generated file
1124 * WebCoreSupport.subproj/WebDashboardRegion.h: Added.
1126 2004-09-22 Richard Williamson <rjw@apple.com>
1128 Pass dashboard regions to UI delegate.
1132 * WebCoreSupport.subproj/WebBridge.m:
1133 (-[WebBridge dashboardRegionsChanged:]):
1134 * WebView.subproj/WebUIDelegatePrivate.h:
1135 * copy-webcore-files-to-webkit:
1137 2004-09-22 Chris Blumenberg <cblu@apple.com>
1139 Fixed build that I just broke.
1141 * WebView.subproj/WebHTMLView.m:
1142 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]):
1144 2004-09-22 Chris Blumenberg <cblu@apple.com>
1146 <rdar://problem/3812091> REGRESSION (Mail): double-clicked word is not smart inserted on drag
1150 * WebView.subproj/WebHTMLView.m:
1151 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): pass value for smartMove
1153 2004-09-22 Chris Blumenberg <cblu@apple.com>
1156 <rdar://problem/3667301> Frequent crashes in Mail when viewing HTML messages (CFURLGetByteRangeForComponent)
1157 <rdar://problem/3810354> WebResourceLoadDelegate can't refuse requests by returning nil; code asserts/crashes instead
1161 * WebCoreSupport.subproj/WebSubresourceClient.m:
1162 (+[WebSubresourceClient startLoadingResource:withRequest:customHeaders:referrer:forDataSource:]): removed broken code that handled loadWithRequest returning NO
1163 * WebView.subproj/WebBaseResourceHandleDelegate.m:
1164 (-[WebBaseResourceHandleDelegate loadWithRequest:]): if nil is returned from the client for willSendRequest, report the cancelled error and return
1166 2004-09-22 Ken Kocienda <kocienda@apple.com>
1170 * WebView.subproj/WebFrameView.m:
1171 (-[WebFrameView _webcore_effectiveFirstResponder]): New function to yield the correct responder
1172 to check for firstResponder-ness before calling makeFirstResonder. This helps to prevent
1173 unwanted firstResponder switching.
1174 * WebView.subproj/WebView.m:
1175 (-[WebView _webcore_effectiveFirstResponder]): Ditto.
1177 2004-09-21 Chris Blumenberg <cblu@apple.com
1180 <rdar://problem/3735071> REGRESSION (Mail): WebCore Editing must do smart paste
1181 <rdar://problem/3799163> REGRESSION (Mail): Deleting a word doesn't delete whitespace
1185 * WebView.subproj/WebDataSource.m:
1186 (-[WebDataSource _replaceSelectionWithArchive:selectReplacement:]): pass NO for smartReplace
1187 * WebView.subproj/WebHTMLView.m:
1188 (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]): pass parameter for smartReplace using _canSmartReplaceWithPasteboard
1189 (-[WebHTMLView _changeSpellingFromMenu:]): pass NO for smartReplace
1190 (-[WebHTMLView pasteboardTypesForSelection]): include WebSmartPastePboardType when _canSmartCopyOrDelete return YES
1191 (-[WebHTMLView writeSelectionWithPasteboardTypes:toPasteboard:]): ditto
1192 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): pass parameter for smartReplace using _canSmartReplaceWithPasteboard
1193 (-[WebHTMLView delete:]): call _deleteSelection
1194 (-[WebHTMLView cut:]): don't call delegate twice, call _deleteRange to delete
1195 (-[WebHTMLView pasteAsPlainText:]): pass parameter for smartReplace using _canSmartReplaceWithPasteboard
1196 (-[WebHTMLView _changeWordCaseWithSelector:]): pass NO for smartReplace
1197 (-[WebHTMLView deleteBackward:]): call _deleteSelection when there is a selected range
1198 (-[WebHTMLView _changeSpellingToWord:]): pass NO for smartReplace
1199 (-[WebHTMLView deleteToMark:]): pass NO for smartDeleteOK
1200 (-[WebHTMLView transpose:]): pass NO for smartReplace
1201 (-[WebHTMLView _shouldDeleteRange:]): moved
1202 (-[WebHTMLView _deleteRange:preflight:killRing:prepend:smartDeleteOK:]): moved, handle smartDelete
1203 (-[WebHTMLView _deleteWithDirection:granularity:killRing:]): moved
1204 (-[WebHTMLView _deleteSelection]): new
1205 (-[WebHTMLView _canSmartReplaceWithPasteboard]): new
1206 (-[WebHTMLView _canSmartCopyOrDelete]): new
1207 (-[WebHTMLView setMarkedText:selectedRange:]): pass NO for smartReplace
1208 (-[WebHTMLView _discardMarkedText]): call _deleteSelection
1209 (-[WebTextCompleteController _insertMatch:]): pass NO for smartReplace
1210 (-[WebTextCompleteController endRevertingChange:moveLeft:]): pass NO for smartReplace
1211 * WebView.subproj/WebHTMLViewInternal.h:
1212 * WebView.subproj/WebView.m:
1213 (-[WebView _commonInitializationWithFrameName:groupName:]): set smartInsertDeleteEnabled to YES
1214 (-[WebView replaceSelectionWithNode:]): pass NO for smartReplace
1215 (-[WebView replaceSelectionWithText:]): pass NO for smartReplace
1216 (-[WebView replaceSelectionWithMarkupString:]): pass NO for smartReplace
1217 (-[WebView deleteSelection]): call _deleteSelection on WebHTMLView
1219 2004-09-21 John Sullivan <sullivan@apple.com>
1223 - WebKit part of fix for <rdar://problem/3618274> REGRESSION (125-135):
1224 Option-tab doesn't always work as expected
1226 * WebCoreSupport.subproj/WebBridge.m:
1227 (-[WebBridge _retrieveKeyboardUIModeFromPreferences:]):
1228 Don't set WebCoreKeyboardAccessFull when setting WebCoreKeyboardAccessTabsToLinks
1229 after all; these need to be tested independently to get the option-tab behavior
1232 2004-09-21 John Sullivan <sullivan@apple.com>
1234 * WebView.subproj/WebHTMLView.m:
1235 (-[WebHTMLView doCommandBySelector:]):
1236 Commented out part of previous change; it breaks Mail editing until Mail
1239 2004-09-21 John Sullivan <sullivan@apple.com>
1243 * WebView.subproj/WebHTMLView.m:
1244 (-[WebHTMLView doCommandBySelector:]):
1245 Fix build failure from previous checkin, d'oh! Didn't set up webview variable.
1247 2004-09-21 John Sullivan <sullivan@apple.com>
1251 - fixed <rdar://problem/3809477> WebHTMLView needs to pass doCommandBySelector through delegate
1253 * WebView.subproj/WebHTMLView.m:
1254 (-[WebHTMLView doCommandBySelector:]):
1255 Call through to editing delegate. If editing delegate returns YES, don't call super.
1257 * WebView.subproj/WebDefaultEditingDelegate.m:
1258 (-[WebDefaultEditingDelegate webView:doCommandBySelector:]):
1259 default implementation (which was never called) was returning YES, but it should
1260 return NO to signal that it didn't handle the selector.
1262 2004-09-21 Chris Blumenberg <cblu@apple.com>
1264 Fixed: <rdar://problem/3647229> Safari does not play inline Windows Media Content on some sites (miggy.net and ministryofsound.com)
1268 * Plugins.subproj/WebBaseNetscapePluginView.m:
1269 * Plugins.subproj/WebNetscapePluginEmbeddedView.m:
1270 (-[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
1272 2004-09-20 Chris Blumenberg <cblu@apple.com>
1274 Fixed: <rdar://problem/3781290> REGRESSION (Mail): Crash in ReplaceSelectionCommandImpl attaching file to new message
1276 Reviewed by kocienda.
1278 * WebView.subproj/WebView.m:
1279 (-[WebView setEditable:]): call updateSelectionFromEmpty on the bridge if there is no selection
1281 2004-09-20 Chris Blumenberg <cblu@apple.com>
1283 Changes to implement renamed bridge methods.
1288 * DOM.subproj/WebDOMOperations.m:
1289 (-[DOMDocument URLWithAttributeString:]): call renamed bridge method
1290 * WebCoreSupport.subproj/WebBridge.m:
1291 (-[WebBridge pluginViewWithPackage:attributeNames:attributeValues:baseURL:]): take 2 parameter arrays rather than 1 which will have to be parsed
1292 (-[WebBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:]): ditto
1294 2004-09-20 Darin Adler <darin@apple.com>
1298 * WebView.subproj/WebFramePrivate.h: Added back.
1299 * WebView.subproj/WebFrameViewPrivate.h: Removed.
1301 2004-09-20 Darin Adler <darin@apple.com>
1305 - fixed <rdar://problem/3655360> REGRESSION (Mail): Ctrl-V emacs key binding, -pageDown: method, unimplemented (and pageUp, and selection-modifying versions)
1306 - fixed <rdar://problem/3792138> REGRESSION (Mail): Spell checker doesn't check current selected word
1308 * WebView.subproj/WebFrameViewInternal.h: Moved WebFrameViewPrivate inside the WebFrameView.m file.
1309 Removed a bunch of methods that don't need to be seen in other files, and added _verticalPageScrollDistance.
1310 * WebView.subproj/WebFrameViewPrivate.h: Removed. Renamed to WebFrameViewInternal.h.
1311 * WebView.subproj/WebFrameView.m:
1312 (-[WebFrameView _verticalKeyboardScrollDistance]): Move in the file because of internal vs. private.
1313 (-[WebFrameView _shouldDrawBorder]): Ditto.
1314 (-[WebFrameView _tile]): Ditto.
1315 (-[WebFrameView _verticalPageScrollDistance]): Added. Separate method so it can be called
1316 by the code to implement pageDown:.
1317 (-[WebFrameView _drawBorder]): Move in the file because of internal vs. private.
1318 (-[WebFrameView _goBack]): Ditto.
1319 (-[WebFrameView _goForward]): Ditto.
1320 (-[WebFrameView _scrollVerticallyBy:]): Ditto.
1321 (-[WebFrameView _scrollHorizontallyBy:]): Ditto.
1322 (-[WebFrameView _horizontalKeyboardScrollDistance]): Ditto.
1323 (-[WebFrameView _horizontalPageScrollDistance]): Added. Separate method for consistency with
1324 vertical method above.
1325 (-[WebFrameView _pageVertically:]): Moved and changed to use _verticalPageScrollDistance.
1326 (-[WebFrameView _pageHorizontally:]): Moved and changed to use _horizontalPageScrollDistance.
1327 (-[WebFrameView _scrollLineVertically:]): Move in the file because of internal vs. private.
1328 (-[WebFrameView _scrollLineHorizontally:]): Ditto.
1329 (-[WebFrameView scrollPageUp:]): Ditto.
1330 (-[WebFrameView scrollPageDown:]): Ditto.
1331 (-[WebFrameView scrollLineUp:]): Ditto.
1332 (-[WebFrameView scrollLineDown:]): Ditto.
1333 (-[WebFrameView _firstResponderIsControl]): Ditto.
1334 (-[WebFrameView keyDown:]): Changed to eliminate _pageLeft, _lineLeft, _pageRight, and _lineRight.
1336 * WebView.subproj/WebDataSource.m: Use WebFrameView.h instead of WebFrameViewPrivate.h.
1338 * WebView.subproj/WebHTMLView.m:
1339 (-[WebHTMLView _alterCurrentSelection:verticalDistance:]): Added.
1340 (-[WebHTMLView moveToBeginningOfDocument:]): Use WebSelectToDocumentBoundary.
1341 (-[WebHTMLView moveToBeginningOfDocumentAndModifySelection:]): Ditto.
1342 (-[WebHTMLView moveToEndOfDocument:]): Ditto.
1343 (-[WebHTMLView moveToEndOfDocumentAndModifySelection:]): Ditto.
1344 (-[WebHTMLView moveParagraphBackwardAndModifySelection:]): Added.
1345 (-[WebHTMLView moveParagraphForwardAndModifySelection:]): Added.
1346 (-[WebHTMLView pageUp:]): Added.
1347 (-[WebHTMLView pageDown:]): Added.
1348 (-[WebHTMLView pageUpAndModifySelection:]): Added.
1349 (-[WebHTMLView pageDownAndModifySelection:]): Added.
1350 (-[WebHTMLView showGuessPanel:]): Changed to call advanceToNextMisspellingStartingJustBeforeSelection.
1351 This fixes the problem with spell checking.
1353 * WebView.subproj/WebImageView.m:
1354 (-[WebImageView webView]): Changed to use _web_parentWebView.
1355 (-[WebImageView menuForEvent:]): Changed to use [self webView].
1356 (-[WebImageView mouseDown:]): Ditto.
1357 (-[WebImageView mouseDragged:]): Ditto.
1358 (-[WebImageView draggedImage:endedAt:operation:]): Ditto.
1360 * WebView.subproj/WebTextView.m:
1361 (-[WebTextView _textSizeMultiplierFromWebView]): Changed to use _web_parentWebView.
1362 (-[WebTextView menuForEvent:]): Ditto.
1363 (-[WebTextView drawPageBorderWithSize:]): Ditto.
1364 (-[WebTextView knowsPageRange:]): Ditto.
1366 * Plugins.subproj/WebPluginDatabase.m: Updated filename of WebFrameViewInternal.h.
1367 * WebCoreSupport.subproj/WebBridge.m: Ditto.
1368 * WebKit.pbproj/project.pbxproj: Ditto.
1369 * WebView.subproj/WebFrame.m: Ditto.
1370 * WebView.subproj/WebView.m: Ditto.
1371 * Misc.subproj/WebNSViewExtras.m: Ditto.
1373 2004-09-20 Darin Adler <darin@apple.com>
1377 - added helper method _web_parentWebView so fewer files need to get at WebFrame private methods
1379 * Misc.subproj/WebNSViewExtras.h: Added _web_parentWebView.
1380 * Misc.subproj/WebNSViewExtras.m: (-[NSView _web_parentWebView]): Added.
1384 2004-09-17 Chris Blumenberg <cblu@apple.com>
1387 <rdar://problem/3805757> don't unnecessarily put RTFD on the pasteboard
1388 <rdar://problem/3805756> strip attachments before generating RTF
1392 * WebView.subproj/WebHTMLView.m:
1393 (-[WebHTMLView writeSelectionWithPasteboardTypes:toPasteboard:]): only put RTFD on the pasteboard if it has attachments, strip attachments when writing RTF
1395 2004-09-16 Darin Adler <darin@apple.com>
1399 - fixed <rdar://problem/3804648> 8A262: Safari crashed in -[WebView(WebPrivate) _editingDelegateForwarder] inside QuickTime Cocoa Plug-in during WebView deallocation
1401 * WebView.subproj/WebView.m: (-[WebView _editingDelegateForwarder]):
1402 Check _private for nil before dereferencing it.
1404 2004-09-16 Chris Blumenberg <cblu@apple.com>
1406 Fixed: <rdar://problem/3779150> REGRESSION: images not copied when copying HTML in Safari and pasting into TextEdit
1410 * WebView.subproj/WebHTMLView.m:
1411 (-[WebHTMLView writeSelectionWithPasteboardTypes:toPasteboard:]): use RTFDFromRange:: for RTFD
1412 * WebView.subproj/WebHTMLViewPrivate.h:
1414 2004-09-15 Darin Adler <darin@apple.com>
1418 - fixed assertion I saw using the font panel
1420 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView _colorAsString:]):
1421 Convert color space before trying to get R, G, and B components.
1423 2004-09-15 Chris Blumenberg <cblu@apple.com>
1425 Fixed: <rdar://problem/3802232> REGRESSION (Mail): WebCore Editing must do smart copy
1427 Reviewed by kocienda.
1429 * WebView.subproj/WebHTMLView.m:
1430 (-[WebHTMLView _writeSelectionToPasteboard:]): call instance method not class method to get pasteboard types since the types depends on the current selection granularity
1431 (-[WebHTMLView pasteboardTypesForSelection]): if the selection granularity is "word" include the smart pasteboard type
1432 (-[WebHTMLView writeSelectionWithPasteboardTypes:toPasteboard:]): put nil on the pasteboard for smart copy
1434 2004-09-14 Darin Adler <darin@apple.com>
1438 - fixed <rdar://problem/3788894> REGRESSION (Mail): ctrl-t emacs key binding does not work (transpose)
1439 - fixed <rdar://problem/3798946> REGRESSION (Mail): Cursor does not disappear when typing
1441 * WebView.subproj/WebHTMLView.m:
1442 (-[WebHTMLView keyDown:]): Hide cursor by calling setHiddenUntilMouseMoves:YES.
1443 (-[WebHTMLView transpose:]): Added.
1445 2004-09-14 Richard Williamson <rjw@apple.com>
1447 1. Add class parameter to object allocation function. This is somewhat redundant, given that
1448 the allocation function is in the class function vector, but people wanted to use the same
1449 allocation function for different classes.
1451 2. Renamed NPN_Class to NPN_Invoke to match the name in the function vector.
1453 3. Add support for a default function on an object. This is a feature that ActiveX supports,
1454 and will allow JavaScript code to be written that will look exactly the same for both ActiveX
1455 plugins and Netscape or WebKit plugins. There are implementations included for the 'C' and
1456 'Objective-C' bindings.
1458 There bugs are covered by
1460 <rdar://problem/3776343> Support for default functions in the JavaScript bindings
1461 <rdar://problem/3779186> NPN_Call needs to be renamed to NPN_Invoke
1462 <rdar://problem/3674754> Need to implement latest npruntime.h
1466 * Plugins.subproj/WebNetscapePluginPackage.m:
1467 (-[WebNetscapePluginPackage load]):
1468 * Plugins.subproj/WebScriptObject.h:
1469 * Plugins.subproj/npfunctions.h:
1470 * Plugins.subproj/npruntime.h:
1472 2004-09-13 Richard Williamson <rjw@apple.com>
1474 D'oh. How many times can I screw up a simple fix!
1476 * WebCoreSupport.subproj/WebTextRenderer.m:
1477 (-[WebTextRenderer initWithFont:usingPrinterFont:]):
1479 2004-09-13 Richard Williamson <rjw@apple.com>
1481 Fixed snafu from 3782533 checkin.
1485 * WebCoreSupport.subproj/WebTextRenderer.m:
1486 (-[WebTextRenderer initWithFont:usingPrinterFont:]):
1488 2004-09-12 Chris Blumenberg <cblu@apple.com>
1490 Support for: <rdar://problem/3794790> drop rate or time remaining from download status when window is too small to fit it
1494 * Misc.subproj/WebStringTruncator.h:
1495 * Misc.subproj/WebStringTruncator.m:
1496 (+[WebStringTruncator widthOfString:font:]): new
1498 2004-09-10 Richard Williamson <rjw@apple.com>
1500 Fixed <rdar://problem/3782533> CrashTracer: .1459 crashes at com.apple.WebKit: -[WebTextRenderer initWithFont:usingPrinterFont:] + 0x138
1502 We were explicitly failing when we encountered deprecated fonts.
1503 (Those with unsupported glyph packings).
1504 Deprecated fonts should only appear on a system that have
1505 stuff migrated from OS 9. Ugh, thats probably why we've never seen
1510 * WebCoreSupport.subproj/WebTextRenderer.m:
1511 (-[WebTextRenderer initWithFont:usingPrinterFont:]):
1513 2004-09-10 John Sullivan <sullivan@apple.com>
1517 - added _isFrameSet as a private method, so it can be used in WebBrowser.
1518 This is needed to merge the fix for 3123987 to SUPanNavy.
1520 * WebView.subproj/WebFrame.m:
1521 (-[WebFrame _isFrameSet]):
1524 * WebView.subproj/WebFramePrivate.h:
1527 2004-09-09 Chris Blumenberg <cblu@apple.com>
1529 Support for: <rdar://problem/3795485> debug menu item to enable RSS animation on first layout
1533 * WebCoreSupport.subproj/WebBridge.m:
1534 (-[WebBridge didFirstLayout]): new
1535 * WebView.subproj/WebDefaultFrameLoadDelegate.m:
1536 (-[WebDefaultFrameLoadDelegate webView:didFirstLayoutInFrame:]): new
1537 * WebView.subproj/WebViewPrivate.h:
1539 2004-09-09 Richard Williamson <rjw@apple.com>
1541 Alternate implementation of image rendering. Use CGImageRefs instead
1544 Mostly works, but currently disabled because of issues w/ CG.
1549 * WebCoreSupport.subproj/WebImageData.h: Added.
1550 * WebCoreSupport.subproj/WebImageData.m: Added.
1551 (-[WebImageData _commonTermination]):
1552 (-[WebImageData dealloc]):
1553 (-[WebImageData finalize]):
1554 (-[WebImageData copyWithZone:]):
1555 (-[WebImageData numberOfImages]):
1556 (-[WebImageData currentFrame]):
1557 (-[WebImageData _invalidateImages]):
1558 (-[WebImageData imageAtIndex:]):
1559 (-[WebImageData incrementalLoadWithBytes:length:complete:]):
1561 (-[WebImageData tileInRect:fromPoint:context:]):
1562 (-[WebImageData isNull]):
1563 (-[WebImageData size]):
1564 (-[WebImageData _frameDuration]):
1565 (-[WebImageData _repetitionCount]):
1566 (-[WebImageData isAnimationFinished]):
1567 (+[WebImageData stopAnimationsInView:]):
1568 (-[WebImageData addAnimatingRenderer:inView:]):
1569 (-[WebImageData removeAnimatingRenderer:]):
1570 (-[WebImageData _stopAnimation]):
1571 (-[WebImageData _nextFrame:]):
1572 (-[WebImageData animate]):
1573 * WebCoreSupport.subproj/WebImageRenderer.h:
1574 * WebCoreSupport.subproj/WebImageRenderer.m:
1575 (-[WebImageRenderer initWithMIMEType:]):
1576 (-[WebImageRenderer initWithData:MIMEType:]):
1577 (-[WebImageRenderer initWithContentsOfFile:]):
1578 (-[WebImageRenderer dealloc]):
1579 (-[WebImageRenderer copyWithZone:]):
1580 (-[WebImageRenderer retainOrCopyIfNeeded]):
1581 (-[WebImageRenderer resize:]):
1582 (-[WebImageRenderer size]):
1583 (-[WebImageRenderer MIMEType]):
1584 (-[WebImageRenderer frameCount]):
1585 (-[WebImageRenderer isNull]):
1586 (-[WebImageRenderer incrementalLoadWithBytes:length:complete:]):
1587 (-[WebImageRenderer drawImageInRect:fromRect:]):
1588 (-[WebImageRenderer drawImageInRect:fromRect:compositeOperator:context:]):
1589 (-[WebImageRenderer tileInRect:fromPoint:context:]):
1590 (-[WebImageRenderer _startOrContinueAnimationIfNecessary]):
1591 (+[WebImageRenderer stopAnimationsInView:]):
1592 (-[WebImageRenderer stopAnimation]):
1593 (-[WebImageRenderer targetAnimationRect]):
1594 (-[WebImageRenderer increaseUseCount]):
1595 (-[WebImageRenderer decreaseUseCount]):
1596 (-[WebImageRenderer flushRasterCache]):
1597 (-[WebImageRenderer imageRef]):
1598 (-[WebImageRenderer TIFFRepresentation]):
1599 (-[WebImageRenderer image]):
1600 * WebCoreSupport.subproj/WebImageRendererFactory.m:
1601 (-[WebImageRendererFactory imageRendererWithMIMEType:]):
1602 (-[WebImageRendererFactory imageRendererWithData:MIMEType:]):
1603 (-[WebImageRendererFactory imageRendererWithSize:]):
1604 (-[WebImageRendererFactory imageRendererWithName:]):
1605 * WebKit.pbproj/project.pbxproj:
1606 * WebView.subproj/WebImageView.m:
1607 (-[WebImageView image]):
1611 2004-09-09 Maciej Stachowiak <mjs@apple.com>
1613 - rolled out last two changes, they seem to cause a performance regression
1615 * WebView.subproj/WebHTMLView.m:
1616 (-[WebHTMLView firstRectForCharacterRange:]):
1618 2004-09-09 Maciej Stachowiak <mjs@apple.com>
1622 * WebView.subproj/WebHTMLView.m:
1623 (-[WebHTMLView firstRectForCharacterRange:]):
1625 2004-09-08 Maciej Stachowiak <mjs@apple.com>
1629 WebKit part of fix for:
1631 <rdar://problem/3759187> REGRESSION (Mail): implement firstRectForCharacterRange:
1633 * WebView.subproj/WebHTMLView.m:
1634 (-[WebHTMLView firstRectForCharacterRange:]): Call the appropriate new bridge method,
1635 and translate to screen coordinates.
1637 2004-09-09 Darin Adler <darin@apple.com>
1641 - fixed <rdar://problem/3790526> mark-related methods not implemented (needed for people with them in their key bindings files)
1643 * WebKit.pbproj/project.pbxproj: Update MACOSX_DEPLOYMENT_TARGET to 10.3 and add -fobjc-exceptions
1644 so we can use new exceptions.
1646 * WebView.subproj/WebHTMLView.m:
1647 (-[WebHTMLView setMark:]): Added.
1648 (unionDOMRanges): Added.
1649 (-[WebHTMLView deleteToMark:]): Added.
1650 (-[WebHTMLView selectToMark:]): Added.
1651 (-[WebHTMLView swapWithMark:]): Added.
1652 (-[WebHTMLView markedRange]): Updated for change to bridge method names.
1653 (-[WebHTMLView hasMarkedText]): Ditto.
1654 (-[WebHTMLView unmarkText]): Ditto.
1655 (-[WebHTMLView _selectMarkedText]): Ditto.
1656 (-[WebHTMLView _selectRangeInMarkedText:]): Ditto.
1657 (-[WebHTMLView setMarkedText:selectedRange:]): Ditto.
1658 (-[WebHTMLView _insertText:selectInsertedText:]): Removed check for empty string. An empty string
1659 should not be filtered out here. We need to allow inserting an empty string.
1660 (-[WebHTMLView _selectionIsInsideMarkedText]): Updated for change to bridge method names.
1661 (-[WebHTMLView _updateSelectionForInputManager]): Ditto.
1663 * WebView.subproj/WebView.m: (-[WebView searchFor:direction:caseSensitive:wrap:]):
1664 Changed to use selectionDOMRange instead of selectionStart.
1666 * WebView.subproj/WebHTMLRepresentation.h: Removed unused setSelectionFrom method.
1667 * WebView.subproj/WebHTMLRepresentation.m: Ditto.
1669 2004-09-08 John Sullivan <sullivan@apple.com>
1673 - fixed the localization aspect of:
1674 <rdar://problem/3790011> undoable operations all say "Undo" in the menu, no specific action names
1676 We now have all the strings ready for localization; we just don't actually use them yet.
1678 * English.lproj/Localizable.strings:
1679 updated for this change
1681 * WebCoreSupport.subproj/WebBridge.m:
1682 (-[WebBridge setUndoActionNamePlaceholder]):
1683 added this placeholder method whose purpose is to hold localizable strings for all the Undo
1684 action names that NSTextView uses. Later we will use some or all of these, but we can do
1685 that part after the localization freeze.
1687 2004-09-08 Chris Blumenberg <cblu@apple.com>
1689 Fixed: <rdar://problem/3778785> REGRESSION (Mail): copying from MS word and pasting into editable region leaves internal clipboard data
1691 Reviewed by kocienda.
1693 * WebView.subproj/WebHTMLView.m:
1694 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]): ignore Microsoft's header meta data
1696 2004-09-08 Chris Blumenberg <cblu@apple.com>
1698 Fixed: <rdar://problem/3792893> WebBaseResourceHandleDelegate always returns cached data for subresource loads
1702 * WebView.subproj/WebBaseResourceHandleDelegate.m:
1703 (-[WebBaseResourceHandleDelegate _canUseResourceForRequest:]): new
1704 (-[WebBaseResourceHandleDelegate loadWithRequest:]): call _canUseResourceForRequest:
1706 2004-09-08 Chris Blumenberg <cblu@apple.com>
1708 Forgot to add this in previous check-in.
1710 * English.lproj/WebViewEditingContextMenu.nib: Added.
1712 2004-09-08 Chris Blumenberg <cblu@apple.com>
1714 Fixed: <rdar://problem/3791240> WebKit uses the NSTextViewContextMenu nib from inside AppKit
1718 * English.lproj/StringsNotToBeLocalized.txt:
1719 * WebKit.pbproj/project.pbxproj:
1720 * WebView.subproj/WebDefaultContextMenuDelegate.m:
1721 (-[WebDefaultUIDelegate editingContextMenuItemsForElement:]): use our copy of the nib
1723 2004-09-07 Darin Adler <darin@apple.com>
1725 * English.lproj/StringsNotToBeLocalized.txt: Update for recent changes.
1727 2004-09-07 Chris Blumenberg <cblu@apple.com>
1729 Fixed: <rdar://problem/3790143> exception raised when dragging a URL with 2-byte characters
1731 (checked in with last check-in)
1733 2004-09-07 Chris Blumenberg <cblu@apple.com>
1736 <rdar://problem/3080103> Need to pass cmd-modified keys to plug-ins
1737 <rdar://problem/3751509> can't use safari edit menu to copy and paste with Vantage Learning's My Access
1741 * Plugins.subproj/WebBaseNetscapePluginView.m: fake up command-key events for cut, copy, paste and select all so these menu items work for plug-ins
1742 (-[WebBaseNetscapePluginView sendModifierEventWithKeyCode:character:]):
1743 (-[WebBaseNetscapePluginView cut:]):
1744 (-[WebBaseNetscapePluginView copy:]):
1745 (-[WebBaseNetscapePluginView paste:]):
1746 (-[WebBaseNetscapePluginView selectAll:]):
1748 2004-09-07 Darin Adler <darin@apple.com>
1750 - fixed deployment build
1752 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView _deleteWithDirection:granularity:killRing:]):
1753 Initialize prepend variable.
1755 2004-09-06 Darin Adler <darin@apple.com>
1759 - fixed <rdar://problem/3696542> REGRESSION (Mail): Editable WebKit doesn't support underline yet (in the iChat profile window, at least)
1760 - fixed <rdar://problem/3780249> REGRESSION (Mail): copy style/paste style doesn't work in HTML editing in Mail
1761 - fixed <rdar://problem/3788857> REGRESSION (Mail): Home and End keys don't work in message composer
1762 - fixed <rdar://problem/3788884> REGRESSION (Mail): ctrl-d emacs key binding does not work (delete forward)
1763 - fixed <rdar://problem/3788890> REGRESSION (Mail): ctrl-k emacs key binding does not work (delete to end of paragraph)
1764 - fixed <rdar://problem/3788899> REGRESSION (Mail): ctrl-y emacs key binding does not work (yank)
1765 - fixed <rdar://problem/3788901> REGRESSION (Mail): ctrl-o emacs key binding does not work (insert newline in front of insertion point)
1766 - fixed <rdar://problem/3788908> REGRESSION (Mail): ctrl-left-arrow emacs key binding does not work (move to beginning of line)
1767 - fixed <rdar://problem/3788913> REGRESSION (Mail): ctrl-right-arrow emacs key binding does not work (move to end of line)
1768 - implemented a first cut at other attribute changes from Text Panel besides underline (bugs?)
1769 - dealt with a couple of FIXMEs in WebHTMLView.m
1770 - updated list of not-yet-implemented methods in WebHTMLView.m
1771 - fixed many deletion operations to call the correct editing delegate methods
1773 * WebView.subproj/WebFrameViewPrivate.h: Remove _scrollToTopLeft and _scrollToBottomLeft.
1774 No one was calling them anyway, so they should really have been marked internal and not private.
1775 * WebView.subproj/WebFrameView.m:
1776 (-[WebFrameView scrollToBeginningOfDocument:]): Renamed _scrollToTopLeft to this, so the home key
1777 would start working with the key bindings machinery.
1778 (-[WebFrameView scrollToEndOfDocument:]): Same thing, for end key.
1779 (-[WebFrameView keyDown:]): Update for name changes, and also make sure we don't try to grab
1780 control-arrow keys here (probably not necessary, but good anyway).
1782 * WebView.subproj/WebHTMLViewInternal.h: Added keyDownEvent field, and startNewKillRingSequence
1783 and nextResponderDisabledOnce flags.
1784 * WebView.subproj/WebHTMLView.m:
1785 Rearrange declarations at the top of the file so that external things are up with
1786 the #import directives and things inside this file are declared below.
1787 (-[WebHTMLView _shouldReplaceSelectionWithText:givenAction:]): Ditto.
1788 (-[WebHTMLView _calculatePrintHeight]): Moved up into the "internal to file" category.
1789 (-[WebHTMLView _updateTextSizeMultiplier]): Ditto.
1790 (-[WebHTMLView _selectedRange]): Added.
1791 (-[WebHTMLView _openLinkFromMenu:]): Left this method lying around even though I deleted the
1792 other APPKIT_CODE_FOR_REFERENCE in case this shows up in the context menu we are now sharing
1793 with the AppKit. Chris will look at this later, and he can delete it then.
1794 (+[WebHTMLView initialize]): Call _NSInitializeKillRing.
1795 (-[WebHTMLView _documentRange]): Added.
1796 (-[WebHTMLView string]): Call the bridge to get the plain text rather than making an attributed
1797 string and then getting the text from there.
1798 (-[WebHTMLView becomeFirstResponder]): Set startNewKillRingSequence flag, so that new deletions
1799 will create a new kill ring entry.
1800 (-[WebHTMLView moveToBeginningOfDocument:]): Use backward direction instead of left direction.
1801 (-[WebHTMLView moveToBeginningOfDocumentAndModifySelection:]): Ditto.
1802 (-[WebHTMLView moveToBeginningOfLine:]): Ditto.
1803 (-[WebHTMLView moveToBeginningOfLineAndModifySelection:]): Ditto.
1804 (-[WebHTMLView moveToBeginningOfParagraph:]): Ditto, also use WebSelectToParagraphBoundary.
1805 (-[WebHTMLView moveToBeginningOfParagraphAndModifySelection:]): Ditto.
1806 (-[WebHTMLView moveToEndOfDocument:]): Use forward direction instead of right direction.
1807 (-[WebHTMLView moveToEndOfDocumentAndModifySelection:]): Ditto.
1808 (-[WebHTMLView moveToEndOfLine:]): Ditto.
1809 (-[WebHTMLView moveToEndOfLineAndModifySelection:]): Ditto.
1810 (-[WebHTMLView moveToEndOfParagraph:]): Ditto, also use WebSelectToParagraphBoundary.
1811 (-[WebHTMLView moveToEndOfParagraphAndModifySelection:]): Ditto.
1812 (-[WebHTMLView _shouldDeleteRange:]): Added.
1813 (-[WebHTMLView _deleteRange:preflight:killRing:prepend:]): Added.
1814 (-[WebHTMLView delete:]): Changed to call new _deleteRange method.
1815 (-[WebHTMLView cut:]): Changed to preflight property and call new _deleteRange method.
1816 (-[WebHTMLView _selectionFontAttributes]): Added.
1817 (-[WebHTMLView _selectionFontAttributesAsRTF]): Added.
1818 (-[WebHTMLView _fontAttributesFromFontPasteboard]): Added.
1819 (-[WebHTMLView _emptyStyle]): Added.
1820 (-[WebHTMLView _styleFromFontAttributes:]): Added.
1821 (-[WebHTMLView _applyStyleToSelection:]): Added.
1822 (-[WebHTMLView copyFont:]): Implemented.
1823 (-[WebHTMLView pasteFont:]): Implemented.
1824 (-[WebHTMLView _originalFontA]): Added.
1825 (-[WebHTMLView _originalFontB]): Added.
1826 (-[WebHTMLView _addToStyle:fontA:fontB:]): Added. Has code from the method that figures out
1827 what the font manager is doing for changeFont:, now needed for changeAttribute: too.
1828 (-[WebHTMLView _styleFromFontManagerOperation]): Renamed and now calls shared methods.
1829 (-[WebHTMLView changeFont:]): Call shared method, still does the same thing.
1830 (-[WebHTMLView _colorAsString:]): Added. Has code from the method we were using with the
1832 (-[WebHTMLView _shadowAsString:]): Added.
1833 (-[WebHTMLView _styleForAttributeChange:]): Added.
1834 (-[WebHTMLView changeAttributes:]): Implemented.
1835 (-[WebHTMLView _styleFromColorPanelWithSelector:]): Renamed and now calls shared methods.
1836 (-[WebHTMLView _changeCSSColorUsingSelector:inRange:]): Call method by new name.
1837 (-[WebHTMLView changeDocumentBackgroundColor:]): Call method by new name.
1838 (-[WebHTMLView changeColor:]): Changed around a bit; still doesn't work yet.
1839 (-[WebHTMLView _alignSelectionUsingCSSValue:]): Call shared methods.
1840 (-[WebHTMLView indent:]): Removed, since NSTextView doesn't implement this method. Added to list
1841 of methods to possibly implement later in the file.
1842 (-[WebHTMLView insertTab:]): Call insertText: to save code and so we get WebViewInsertActionTyped
1843 instead of WebViewInsertActionPasted.
1844 (-[WebHTMLView changeCaseOfLetter:]): Removed, since NSTextView doesn't implement this method.
1845 Added to list of methods to possibly implement later in the file.
1846 (-[WebHTMLView _deleteWithDirection:granularity:killRing:]): Added.
1847 (-[WebHTMLView deleteForward:]): Implemented. This makes Control-D work.
1848 (-[WebHTMLView deleteBackwardByDecomposingPreviousCharacter:]): Implemented by just calling
1849 deleteBackward for now; probably better than doing nothing.
1850 (-[WebHTMLView deleteWordForward:]): Changed to call new _delete method above. Fixes things
1851 so that we delete the selection if there is one, get the appropriate delegate calls, handle
1852 the kill ring properly, and don't do any selection if we can't delete.
1853 (-[WebHTMLView deleteWordBackward:]): Ditto.
1854 (-[WebHTMLView deleteToBeginningOfLine:]): Ditto.
1855 (-[WebHTMLView deleteToEndOfLine:]): Ditto.
1856 (-[WebHTMLView deleteToBeginningOfParagraph:]): Ditto.
1857 (-[WebHTMLView deleteToEndOfParagraph:]): Ditto. Added additional behavior needed since this
1858 is bound to Control-K, so it's not really just delete to end of paragraph.
1859 (-[WebHTMLView insertNewlineIgnoringFieldEditor:]): Added. Calls insertNewline:.
1860 (-[WebHTMLView insertTabIgnoringFieldEditor:]): Added. Calls insertTab:.
1861 (-[WebHTMLView subscript:]): Added.
1862 (-[WebHTMLView superscript:]): Added.
1863 (-[WebHTMLView unscript:]): Added.
1864 (-[WebHTMLView underline:]): Added.
1865 (-[WebHTMLView yank:]): Added.
1866 (-[WebHTMLView yankAndSelect:]): Added. Calls _insertText.
1867 (-[WebHTMLView _arrowKeyDownEventSelectorIfPreprocessing:]): Added. Part of workaround for
1868 control-arrow key trouble.
1869 (-[WebHTMLView respondsToSelector:]): Added. More of workaround.
1870 (-[WebHTMLView nextResponder:]): Added. More of workaround.
1871 (-[WebHTMLView _selectionChanged]): Set startNewKillRingSequence flag, so that new deletions
1872 will create a new kill ring entry.
1873 (-[WebHTMLView _updateFontPanel]): Remove a bunch of code here that wasn't working very well
1874 because it walked a DOM range incorrectly, and instead use the new method that does all the
1875 right stuff on the other side of the bridge.
1876 (-[WebHTMLView _insertText:selectInsertedText:]): Added new helper method for use by both
1877 insertText and yankAndSelect, with most of the guts of insertText and one additional parameter.
1878 (-[WebHTMLView insertText:]): Call the new _insertText.
1880 * WebView.subproj/WebView.m: Use macros to make the forwarding from WebView more terse.
1881 Updated the list to include a few methods it didn't before.
1883 2004-09-06 John Sullivan <sullivan@apple.com>
1887 - put preference keys in a private header file so Safari can use them for Managed Preferences
1889 * WebView.subproj/WebPreferenceKeysPrivate.h:
1890 new Private header file, includes the #defines for NSUserDefaults preference keys
1892 * WebView.subproj/WebPreferences.m:
1893 moved the preference key #defines out of here; now imports WebPreferenceKeysPrivate.h
1895 * WebKit.pbproj/project.pbxproj:
1896 updated for new file
1898 2004-09-03 Chris Blumenberg <cblu@apple.com>
1900 Fixed: <rdar://problem/3782543> CrashTracer: ...87 crashes at com.apple.WebKit: -[WebNetscapePluginPackage initWithPath:] + 0x18c
1904 * Plugins.subproj/WebNetscapePluginPackage.m:
1905 (-[WebNetscapePluginPackage initWithPath:]): make sure the file is at least 8 bytes long before calling memcmp
1907 2004-09-03 Chris Blumenberg <cblu@apple.com>
1910 <rdar://problem/3788328> assertion failure when moving an image
1911 <rdar://problem/3783628> REGRESSION (Mail): when I try to reorder an image, the image is duplicated
1913 Reviewed by NOBODY (OOPS!).
1915 * DOM.subproj/WebDOMOperations.m:
1916 (-[DOMDocument _createRangeWithNode:]): new, convenience
1917 (-[DOMDocument _documentRange]): use _ createRangeWithNode:
1918 * DOM.subproj/WebDOMOperationsPrivate.h:
1919 * WebView.subproj/WebHTMLView.m:
1920 (-[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
1924 2004-09-02 Richard Williamson <rjw@apple.com>
1926 Support for patterns in <canvas>.
1927 (These changes attempt to create a CGImageRef from a WebImageRenderer that
1928 is used by the pattern drawing function.)
1932 * WebCoreSupport.subproj/WebImageRenderer.h:
1933 * WebCoreSupport.subproj/WebImageRenderer.m:
1934 (-[WebImageRenderer dealloc]):
1935 (-[WebImageRenderer finalize]):
1936 (-[WebImageRenderer imageRef]):
1938 * WebView.subproj/WebPDFView.h:
1939 * WebView.subproj/WebPDFView.m:
1941 2004-09-01 Chris Blumenberg <cblu@apple.com>
1943 Fixed deployment build failure.
1945 * WebView.subproj/WebDefaultContextMenuDelegate.m:
1946 (-[WebDefaultUIDelegate menuItemWithTag:]):
1948 2004-08-31 Chris Blumenberg <cblu@apple.com>
1951 <rdar://problem/3699498> Context menu for editable WebViews should provide items like Cut and Paste
1952 <rdar://problem/3781535> REGRESSION (Mail): no context menu after ctrl-clicking a misspelled word
1954 Reviewed by kocienda.
1956 * English.lproj/Localizable.strings:
1957 * WebView.subproj/WebDefaultContextMenuDelegate.m:
1958 (-[WebDefaultUIDelegate menuItemWithTag:]): updated to handle new menu items
1959 (-[WebDefaultUIDelegate contextMenuItemsForElement:]): renamed from webView:contextMenuItemsForElement:defaultMenuItems:
1960 (-[WebDefaultUIDelegate editingContextMenuItemsForElement:]): new
1961 (-[WebDefaultUIDelegate webView:contextMenuItemsForElement:defaultMenuItems:]): moved, now call contextMenuItemsForElement: or editingContextMenuItemsForElement:
1962 * WebView.subproj/WebDefaultUIDelegate.h:
1963 * WebView.subproj/WebHTMLView.m:
1964 (-[WebHTMLView _isSelectionMisspelled]): new
1965 (-[WebHTMLView _guessesForMisspelledSelection]): new
1966 (-[WebHTMLView _changeSpellingFromMenu:]): new
1967 (-[WebHTMLView _ignoreSpellingFromMenu:]): new
1968 (-[WebHTMLView _learnSpellingFromMenu:]): new
1969 * WebView.subproj/WebHTMLViewPrivate.h:
1970 * WebView.subproj/WebUIDelegate.h:
1972 2004-08-31 Darin Adler <darin@apple.com>
1974 - fixed B&I build failure
1976 * WebView.subproj/WebHTMLView.m: (-[WebTextCompleteController _buildUI]):
1977 Work around unwanted warning by adding a cast.
1979 2004-08-27 Maciej Stachowiak <mjs@apple.com>
1983 <rdar://problem/3778314> REGRESSION: Can't proceed to survey questions on Lominger's Apple website
1985 Because we will stop parsing when there is a pending redirection,
1986 avoid setting one if no navigation would actually take place
1987 because the number of steps is out of range.
1989 * WebCoreSupport.subproj/WebBridge.m:
1990 (-[WebBridge canGoBackOrForward:]):
1992 2004-08-30 Darin Adler <darin@apple.com>
1996 - part of fix for <rdar://problem/3637519> REGRESSION (125-128): unrepro crash in QListBox::sizeForNumberOfLines at istweb.apple.com
1998 * WebCoreSupport.subproj/WebTextRendererFactory.m: (-[WebTextRendererFactory clearCaches]):
1999 Call [super clearCaches].
2001 2004-08-30 Darin Adler <darin@apple.com>
2005 - did work to prepare for uploading files incrementally when submitting forms
2007 * History.subproj/WebHistoryItem.m:
2008 (-[WebHistoryItem _setFormInfoFromRequest:]): Use NSArray instead of NSData for form data.
2009 (-[WebHistoryItem formData]): Ditto.
2010 * History.subproj/WebHistoryItemPrivate.h: Ditto.
2011 * WebCoreSupport.subproj/WebBridge.m:
2012 (-[WebBridge startLoadingResource:withURL:customHeaders:postData:]): Ditto.
2013 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]): Ditto.
2014 (-[WebBridge postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]): Ditto.
2015 * WebCoreSupport.subproj/WebSubresourceClient.h: Ditto.
2016 * WebCoreSupport.subproj/WebSubresourceClient.m:
2017 (+[WebSubresourceClient startLoadingResource:withURL:customHeaders:postData:referrer:forDataSource:]): Ditto.
2018 * WebView.subproj/WebFrame.m:
2019 (-[WebFrame _loadItem:withLoadType:]): Ditto.
2020 (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]): Ditto.
2021 * WebView.subproj/WebFramePrivate.h: Ditto.
2023 * WebView.subproj/WebFormDataStream.h: Added.
2024 * WebView.subproj/WebFormDataStream.m:
2025 (-[WebFormDataStream initWithFormDataArray:]): Placeholder; not done yet.
2026 (-[WebFormDataStream formDataArray]): Ditto.
2027 * WebKit.pbproj/project.pbxproj: Added WebFormDataStream files.
2029 2004-08-30 John Sullivan <sullivan@apple.com>
2033 - WebKit part of fix for <rdar://problem/3607720> myFrame.print() prints the window
2034 but should only print the frame
2036 * WebView.subproj/WebUIDelegatePrivate.h:
2037 declare new delegate method that includes which frame to print
2039 * WebView.subproj/WebDefaultUIDelegate.m:
2040 (-[WebDefaultUIDelegate webView:printFrameView:]):
2041 implement default (no-op) version of new delegate method
2043 * WebCoreSupport.subproj/WebBridge.m:
2044 (-[WebBridge print]):
2045 call new delegate method if available, otherwise call old delegate method, for
2046 backward compatibility.
2048 2004-08-27 Maciej Stachowiak <mjs@apple.com>
2053 Ken comments: It looks like Maciej forgot to land this when he checked in the
2054 WebCore portion of this change.
2056 <rdar://problem/3778314> REGRESSION: Can't proceed to survey questions on Lominger's Apple website
2058 Because we will stop parsing when there is a pending redirection,
2059 avoid setting one if no navigation would actually take place
2060 because the number of steps is out of range.
2062 * WebCoreSupport.subproj/WebBridge.m:
2063 (-[WebBridge canGoBackOrForward:]):
2065 2004-08-27 Ken Kocienda <kocienda@apple.com>
2071 <rdar://problem/3756997> WebKit aggressive in making pasted text into a URL, even when it's not much like a URL
2073 * WebView.subproj/WebHTMLView.m:
2074 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]): Don't try so hard to coerce data
2075 on the pasteboard into a URL, and do not make an anchor with an href for any URLs that are
2076 explicitly present on the pasteboard. Also, move URL pasteboard type check beneath the RTF
2081 2004-08-26 Chris Blumenberg <cblu@apple.com>
2083 Fixed build failure on Panther.
2087 * WebView.subproj/WebHTMLView.m:
2088 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]): ifdef'd out call to AppKit SPI
2089 (-[WebHTMLView _attributeStringFromDOMRange:]): ditto
2091 2004-08-26 Chris Blumenberg <cblu@apple.com>
2093 Tweak to last check-in.
2095 * WebView.subproj/WebHTMLView.m:
2096 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]):
2098 2004-08-26 Chris Blumenberg <cblu@apple.com>
2101 <rdar://problem/3546412> support for pasting and drag and dropping of RTF and RTFD to editable WebViews
2102 <rdar://problem/3745345> use AppKit for converting from DOM to RTF
2106 * DOM.subproj/WebDOMOperations.m:
2107 (-[DOMDocument _documentRange]): new
2108 * DOM.subproj/WebDOMOperationsPrivate.h:
2109 * WebView.subproj/WebHTMLView.m:
2110 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]): call AppKit SPI to get a document fragment from an attributed string
2111 (-[WebHTMLView string]): added a FIXME
2112 (-[WebHTMLView _attributeStringFromDOMRange:]): new, calls AppKit SPI that creates an attributed string from a DOM Range
2113 (-[WebHTMLView attributedString]): call _attributeStringFromDOMRange:, fallback to old code if it returns nil
2114 (-[WebHTMLView selectedAttributedString]): ditto
2116 2004-08-26 Chris Blumenberg <cblu@apple.com>
2118 Fixed: <rdar://problem/3774178> Plugin hooks for selected state aren't being called
2122 * WebCoreSupport.subproj/WebBridge.m:
2123 (-[WebBridge setIsSelected:forView:]): don't forget colons in method names
2125 2004-08-26 Chris Blumenberg <cblu@apple.com>
2127 Fixed: <rdar://problem/3768439> can't click in WebView in Carbon WebKit apps (GetEventPlatformEventRecord returns false)
2131 * Carbon.subproj/HIWebView.m:
2132 (Click): use WebGetEventPlatformEventRecord not GetEventPlatformEventRecord
2135 (MouseDragged): ditto
2136 (MouseWheelMoved): ditto
2137 (WindowHandler): ditto
2138 (HIWebViewEventHandler): ditto
2139 (UpdateObserver): ditto
2140 (WebGetEventPlatformEventRecord): Call GetEventPlatformEventRecord, if that fails fallback to the current event. This is code Eric Schlegel to me to use.
2142 2004-08-24 Chris Blumenberg <cblu@apple.com>
2144 Fixed with help from Trey:
2145 <rdar://problem/3764856> REGRESSION !25-154): Safari accepts mouse clicks (follows links) when not key
2149 * WebView.subproj/WebHTMLView.m:
2150 (-[WebHTMLView _isSelectionEvent:]): brought back from CVS
2151 (-[WebHTMLView acceptsFirstMouse:]): only call eventMayStartDrag if _isSelectionEvent returns YES since we only want to allow selection dragging on the first mouse down
2152 (-[WebHTMLView shouldDelayWindowOrderingForEvent:]): ditto
2154 2004-08-24 Ken Kocienda <kocienda@apple.com>
2158 Improved the checks used to see if certain operations can be done based
2159 on the state of the selection and whether the selection is editable. I
2160 added some helpers and improved some others to assist in making these
2163 This helps to fix this bug:
2164 <rdar://problem/3764987> Crash after adding newline to quoted text
2166 Since some editing methods expect the the selection to be in a certain state
2167 in order to work, these checks help obviate crashes like 3764987.
2169 * WebView.subproj/WebHTMLView.m:
2170 (-[WebHTMLView _writeSelectionToPasteboard:]): _haveSelection name changed to _hasSelection.
2171 (-[WebHTMLView _canCopy]): Checks to see if state is appropriate to perform this operation.
2172 (-[WebHTMLView _canCut]): Ditto. Function added.
2173 (-[WebHTMLView _canDelete]): Ditto. Function refined.
2174 (-[WebHTMLView _canPaste]): Ditto. Function refined.
2175 (-[WebHTMLView _canType]): Ditto. Function added.
2176 (-[WebHTMLView _hasSelection]): Name changed from _haveSelection.
2177 (-[WebHTMLView _hasSelectionOrInsertionPoint]): Added.
2178 (-[WebHTMLView _isEditable]): Added.
2179 (-[WebHTMLView takeFindStringFromSelection:]): _haveSelection name changed to _hasSelection.
2180 (-[WebHTMLView validateUserInterfaceItem:]): Ditto
2181 (-[WebHTMLView validRequestorForSendType:returnType:]): Ditto
2182 (-[WebHTMLView keyDown:]):
2183 (-[WebHTMLView copy:]): Uses new _canCopy check.
2184 (-[WebHTMLView cut:]): Uses new _canCut check.
2185 (-[WebHTMLView delete:]): Now uses _canDelete check.
2186 (-[WebHTMLView paste:]): Now uses _canPaste check.
2187 (-[WebHTMLView _updateFontPanel]): _haveSelection name changed to _hasSelection.
2188 * WebView.subproj/WebHTMLViewPrivate.h:
2189 * WebView.subproj/WebView.m:
2190 (-[WebView writeSelectionWithPasteboardTypes:toPasteboard:]): Use selectionState check to
2191 determine whether or not operation can be done.
2193 2004-08-24 Richard Williamson <rjw@apple.com>
2195 Fixed <rdar://problem/3770469> Some PDFs open with line of previous page above PDF view
2197 Set height resize flags on WebPDFView.
2201 * WebView.subproj/WebPDFView.m:
2202 (-[WebPDFView initWithFrame:]):
2204 2004-08-24 David Hyatt <hyatt@apple.com>
2206 Add Atom and RSS MIME types to set of supported XML types.
2210 * WebView.subproj/WebDataSource.m:
2211 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
2212 * WebView.subproj/WebFrameView.m:
2213 (+[WebFrameView _viewTypesAllowImageTypeOmission:]):
2215 2004-08-23 Maciej Stachowiak <mjs@apple.com>
2219 - remove annoying ERROR spew and replace with comment
2221 * WebView.subproj/WebHTMLView.m:
2222 (-[WebHTMLView validAttributesForMarkedText]):
2224 2004-08-23 Maciej Stachowiak <mjs@apple.com>
2226 Reviewed by Richard.
2228 - a bit of code cleanup
2230 * WebView.subproj/WebDataSource.m:
2231 (-[WebDataSource _stringWithData:]): Call textEncodingName instead of
2233 (-[WebDataSource textEncodingName]): Tweak formatting.
2235 2004-08-23 Chris Blumenberg <cblu@apple.com>
2239 * WebKit.pbproj/project.pbxproj: make sure we're doing -f on a file, not a directory
2241 2004-08-23 Chris Blumenberg <cblu@apple.com>
2243 Fixed: <rdar://problem/3674867> use new Security framework SPI's to reenable cert acquisition
2247 * WebCoreSupport.subproj/WebKeyGeneration.cpp:
2248 * WebCoreSupport.subproj/WebKeyGeneration.h:
2249 * WebCoreSupport.subproj/WebKeyGenerator.h:
2250 * WebCoreSupport.subproj/WebKeyGenerator.m:
2251 (-[WebKeyGenerator signedPublicKeyAndChallengeStringWithStrengthIndex:challenge:pageURL:]): re-enabled cert code, call Panther version on Panther, Tiger version on Tiger
2252 (-[WebKeyGenerator addCertificatesToKeychainFromData:]): ditto
2253 * WebCoreSupport.subproj/WebNewKeyGeneration.c: Added.
2254 (gnrAddContextAttribute):
2260 (signedPublicKeyAndChallengeString):
2261 (addCertificateToKeychainFromData):
2262 (addCertificatesToKeychainFromData):
2263 * WebCoreSupport.subproj/WebNewKeyGeneration.h: Added.
2264 * WebKit.pbproj/project.pbxproj:
2266 2004-08-20 David Hyatt <hyatt@apple.com>
2268 Fix the directionality of the unicode hyphen so that on Panther it now matches Tiger.
2272 * Misc.subproj/WebUnicode.m:
2273 (_unicodeDirection):
2275 2004-08-20 Richard Williamson <rjw@apple.com>
2277 Implemented new JNI abstraction. We no longer invoke Java methods
2278 directly with JNI, rather we call into the plugin. This allows the
2279 plugin to dispatch the call to the appropriate VM thread. This
2280 change should (will?) fix a whole class of threading related problems with
2285 * WebCoreSupport.subproj/WebBridge.m:
2286 (-[WebBridge getAppletInView:]):
2288 2004-08-20 Trey Matteson <trey@apple.com>
2290 3655407 - Editing: -complete: method unimplemented (WebKit editing API)
2292 This feature is mostly implemented. The only loose ends I know of are:
2294 3769654 - text insertions done via complete: should preserve case of full replacement string
2295 3769652 - positioning of complete: popup window wrong for right-to-left languages
2299 * WebView.subproj/WebHTMLView.m:
2300 (-[WebHTMLViewPrivate dealloc]): Free new object.
2301 (-[WebHTMLView menuForEvent:]): Bail on completion session.
2302 (-[WebHTMLView windowDidResignKey:]): Ditto.
2303 (-[WebHTMLView windowWillClose:]): Ditto.
2304 (-[WebHTMLView mouseDown:]): Ditto.
2305 (-[WebHTMLView resignFirstResponder]): Ditto.
2306 (-[WebHTMLView keyDown:]): Bail on completion session if WebCore takes the event.
2307 Give the CompleteController a crack at the key event.
2308 (-[WebHTMLView _expandSelectionToGranularity:]): Adopt method rename
2309 (-[WebHTMLView complete:]): Make CompleteController, tell it to do its thing.
2310 (-[WebHTMLView checkSpelling:]): Add ERROR().
2311 (-[WebHTMLView showGuessPanel:]): Add ERROR().
2312 (-[WebHTMLView _changeSpellingToWord:]): Add ERROR().
2313 (-[WebHTMLView ignoreSpelling:]): Add ERROR().
2315 (-[WebTextCompleteController initWithHTMLView:]):
2316 (-[WebTextCompleteController dealloc]):
2317 (-[WebTextCompleteController _insertMatch:]): Stick the new string into the doc.
2318 (-[WebTextCompleteController _buildUI]): Make popup window.
2319 (-[WebTextCompleteController _placePopupWindow:]): Position popup window.
2320 (-[WebTextCompleteController doCompletion]): Lookup matches, display window.
2321 (-[WebTextCompleteController endRevertingChange:moveLeft:]): Bail on complete: session.
2322 (-[WebTextCompleteController filterKeyDown:]): Process keys while popup is up.
2323 (-[WebTextCompleteController _reflectSelection]): Handle choice in popup.
2324 (-[WebTextCompleteController tableAction:]): Handle double click in popup
2325 (-[WebTextCompleteController numberOfRowsInTableView:]): Fill table with matches.
2326 (-[WebTextCompleteController tableView:objectValueForTableColumn:row:]): Ditto.
2327 (-[WebTextCompleteController tableViewSelectionDidChange:]): Handle selection change.
2328 * WebView.subproj/WebHTMLViewInternal.h:
2330 2004-08-20 John Sullivan <sullivan@apple.com>
2332 * English.lproj/StringsNotToBeLocalized.txt:
2333 checked this in; the only difference is that
2334 the strings were out of order.
2336 2004-08-19 Richard Williamson <rjw@apple.com>
2338 Continue to call old pollForAppletInView: in Tiger until
2339 we get an plugin that supports the new API.
2343 * WebCoreSupport.subproj/WebBridge.m:
2344 (-[WebBridge getAppletInView:]):
2345 * WebKit.pbproj/project.pbxproj:
2349 2004-08-19 Chris Blumenberg <cblu@apple.com>
2351 Fixed typo in comment.
2353 * Misc.subproj/WebIconDatabase.m:
2354 (-[WebIconDatabase _updateFileDatabase]):
2356 2004-08-19 Chris Blumenberg <cblu@apple.com>
2358 Fixed: <rdar://problem/3566336> CrashTracer: .2403 crashes at com.apple.WebKit: -[WebFileDatabase performSetObject:forKey:] + 0x94
2362 * Misc.subproj/WebIconDatabase.m:
2363 (-[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
2365 2004-08-18 Richard Williamson <rjw@apple.com>
2367 Replace horrible pollForAppletInView: with new
2368 webPlugInGetApplet. The details of how the applet instance
2369 is provided now belong to the Java team. Yeh.
2373 * WebCoreSupport.subproj/WebBridge.m:
2374 (-[WebBridge getAppletInView:]):
2376 2004-08-17 Richard Williamson <rjw@apple.com>
2378 Fixed <rdar://problem/3759093> Need PDF context menu: "Open in Preview" or other external app
2380 Added support for "Open with ..." in PDF view.
2382 Reviewed by Chris and Trey.
2385 * English.lproj/Localizable.strings:
2386 * English.lproj/StringsNotToBeLocalized.txt:
2387 * WebView.subproj/WebPDFView.h:
2388 * WebView.subproj/WebPDFView.m:
2389 (-[WebPDFView initWithFrame:]):
2390 (-[WebPDFView dealloc]):
2391 (applicationInfoForMIMEType):
2392 (-[WebPDFView path]):
2393 (-[WebPDFView menuForEvent:]):
2394 (-[WebPDFView setDataSource:]):
2395 (-[WebPDFView layout]):
2396 (-[WebPDFView viewDidMoveToHostWindow]):
2397 (-[WebPDFView openWithFinder:]):
2399 2004-08-17 Richard Williamson <rjw@apple.com>
2401 JNI needs both the jmethodID and return type. Changed API to
2406 * Plugins.subproj/WebJavaPlugIn.h:
2408 2004-08-17 Trey Matteson <trey@apple.com>
2410 3764147 - failure of subframe to load leaves links in parent doc broken
2414 * WebView.subproj/WebDataSource.m:
2415 (-[WebDataSource _receivedMainResourceError:complete:]):
2416 Need to call [bridge end] in the case of an error, so WC can clean up.
2420 2004-08-15 Richard Williamson <rjw@apple.com>
2422 More changes to np headers.
2426 * Plugins.subproj/WebNetscapePluginPackage.m:
2427 (-[WebNetscapePluginPackage load]):
2428 * Plugins.subproj/npapi.h:
2429 * Plugins.subproj/npfunctions.h:
2430 * Plugins.subproj/npruntime.h:
2432 2004-08-13 Darin Adler <darin@apple.com>
2436 - fixed <rdar://problem/3760924> Carbon path passed in NPP_StreamAsFile must be in local character set, not UTF-8
2438 * Plugins.subproj/WebBaseNetscapePluginStream.m:
2439 (CarbonPathFromPOSIXPath): Added. New function that uses the path pieces from an FSSpec.
2440 This has many advantages; the big one that fixes the bug is that it gives the mangled names
2441 that work even for files that have names that can't otherwise be encoded in Carbon-style
2442 path names. I didn't write this from scratch: I started with the method in Foundation
2443 and just changed it to use FSSpec.
2444 (-[WebBaseNetscapePluginStream destroyStream]): Remove code that used NSString and just call
2445 CarbonPathFromPOSIXPath instead.
2447 * Plugins.subproj/npapi.h: The Revision tag wanted to touch this file.
2448 I think we are going to have some trouble with this; I'd like to take that out.
2450 * English.lproj/StringsNotToBeLocalized.txt: Updated.
2452 2004-08-12 Trey Matteson <trey@apple.com>
2454 3761329 - query result links all dead in ingrammicro.com (sometimes)
2455 3761328 - links in some docs dead when doc is loaded from WebArchive
2457 Nasty problem. It turns out that these result pages are a parent frame with two child
2458 frames. One of the child frames is a 1 or 2 byte text document. When the text child
2459 is the last doc to complete, because we use a Text rep instead of an HTMLRep, it turns
2460 out we never send [bridge end] from WebKit. That mistake results in checkCompleted not
2461 being called enough in the part, and we never realize the load is done. WebCore does
2462 not allow redirects to happen until the entire load is complete, and the links on this
2463 results page are actually little pieces of JS that set location to a generated URL. Since
2464 redirects are not allowed these links all silently fail to do anything, and the doc never
2465 achieves a completed state where they will work.
2467 Solution is to make sure we always call [bridge end] from the DataSource instead of only
2468 the HTML rep doing it.
2470 Reviewed by Richard and Darin.
2472 * WebView.subproj/WebDataSource.m:
2473 (-[WebDataSource _finishedLoading]): Call [bridge end] here for all kinds of docs.
2474 * WebView.subproj/WebHTMLRepresentation.m:
2475 (-[WebHTMLRepresentation finishedLoadingWithDataSource:]): Don't call is just for HTMLReps.
2477 2004-08-12 Richard Williamson <rjw@apple.com>
2479 Bring npruntime.h and friends closer to compliance with
2484 * Plugins.subproj/npapi.h:
2485 * Plugins.subproj/npfunctions.h:
2486 * Plugins.subproj/npruntime.h:
2488 (_NPString::_NPVariant::):
2489 * copy-webcore-files-to-webkit:
2491 2004-08-12 Chris Blumenberg <cblu@apple.com>
2493 Fixed: <rdar://problem/3761097> should be able to option-drag selection so HTML can be copied within a page
2497 * WebView.subproj/WebHTMLView.m:
2498 (-[WebHTMLView _isMoveDrag]): new, take into account the option key
2499 (-[WebHTMLView draggingUpdatedWithDraggingInfo:actionMask:]): call _isMoveDrag
2500 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): call _isMoveDrag
2502 2004-08-12 Richard Williamson <rjw@apple.com>
2504 Quick fix for 3760903. The real fix is described in 3760920. Needed
2505 by Java plugin guys so they can be unblocked for feature freeze.
2509 * WebView.subproj/WebFrame.m:
2510 (-[WebFrame _reloadForPluginChanges]):
2511 * WebView.subproj/WebHTMLView.m:
2512 (-[WebHTMLView addSubview:]):
2514 2004-08-12 Chris Blumenberg <cblu@apple.com>
2516 Fixed: <rdar://problem/3760898> error pages in subframes attempt to load appledata URLs when reloaded
2520 * WebView.subproj/WebFrame.m:
2521 (-[WebFrame _createItem:]): when setting the original URL of the history item, use the unreachable URL
2525 2004-08-11 Adele Amchan <adele@apple.com>
2527 Reviewed by me, bug fix by Darin.
2529 - fixed <rdar://problem/3736477> Pages don't load if hard drive is named with non-ASCII Symbol
2531 * Plugins.subproj/WebBaseNetscapePluginStream.m:
2532 (-[WebBaseNetscapePluginStream startStreamWithURL:expectedContentLength:lastModifiedDate:MIMEType:]):
2533 Use UTF8String instead of cString to convert the MIME type to a C string. Safer, since it can't
2534 ever fail due to encoding problems even though this string should always be ASCII.
2535 (-[WebBaseNetscapePluginStream destroyStream]): Use stringWithUTF8String to convert the path name
2536 to an NSString, since stringWithCString is deprecated (doesn't really matter since the path is always
2537 all ASCII). Fix the bug by calling fileSystemRepresentation on the NSString to turn it into a C
2538 string form. Even though the POSIX path can't have any non-ASCII characters in it, the Carbon path
2539 can, so we need to use this instead of cString which can fail depending on characters and encoding.
2541 2004-08-09 Maciej Stachowiak <mjs@apple.com>
2547 - made basic marked text highlighting work to complete basic level of <rdar://problem/3704359> input method support not yet implemented for HTML editing
2549 * WebView.subproj/WebHTMLView.m:
2550 (-[WebHTMLView markedRange]): Use new bridge calls instead of internal marked range storage.
2551 (-[WebHTMLView hasMarkedText]): Likewise.
2552 (-[WebHTMLView unmarkText]): Likewise.
2553 (-[WebHTMLView _selectMarkedText]): Likewise.
2554 (-[WebHTMLView _selectRangeInMarkedText:]): Likewise.
2555 (-[WebHTMLView _selectionIsInsideMarkedText]): Likewise.
2556 (-[WebHTMLView _updateSelectionForInputManager]): Likewise.
2557 (-[WebHTMLView setMarkedText:selectedRange:]): Use direct bridge call instead
2558 of private _selectMarkedDOMRange: method, which would now be trivial.
2559 * WebView.subproj/WebHTMLViewInternal.h: Remove unneeded
2561 2004-08-10 Darin Adler <darin@apple.com>
2565 - change name of WebMakeCollectable to WebNSRetainCFRelease so it fits into the
2566 "NS and CF retain counts are separate" mental model, rather than the "think about
2567 how garbage collection works" one
2569 * Misc.subproj/WebKitNSStringExtras.m: (+[NSString _web_encodingForResource:]): Rename.
2570 * Misc.subproj/WebNSObjectExtras.h: (WebNSRetainCFRelease): Ditto.
2571 * Misc.subproj/WebNSURLExtras.m:
2572 (+[NSURL _web_URLWithData:relativeToURL:]): Ditto.
2573 (-[NSURL _web_URLWithLowercasedScheme]): Ditto.
2575 2004-08-09 Trey Matteson <trey@apple.com>
2577 3756599 - REGRESSION: hit assertion in KWQPageState invalidate
2579 By inspection I found a flaw in the recently added logic, although
2580 I have no steps to repro. My theoretical explanation is that we would
2581 get two errors and go through _receivedMainResourceError: twice, which
2582 would cause the pageState to be invalidated twice, which is the only
2583 way I can see to hit the assert.
2587 * WebView.subproj/WebFrame.m:
2588 (-[WebFrame _receivedMainResourceError:]): Clear the pageState out
2589 of the history item after it's been invalidated by WebCore.
2591 2004-08-09 Richard Williamson <rjw@apple.com>
2593 Inspired by Trey we have a much better approach for conditionally
2594 linking Quart.framework. Instead of multiple targets we use
2595 `` to invoke some inline script to extend COMMON_LDFLAGS as
2596 necessary. Thanks Trey!
2600 * WebKit.pbproj/project.pbxproj:
2602 2004-08-09 Trey Matteson <trey@apple.com>
2604 Hookup UI for "Continuous Spelling" menu item.
2606 Reviewed by Richard.
2608 * WebView.subproj/WebView.m:
2609 (-[WebView validateUserInterfaceItem:]): Enable and check the
2610 menu item to reflect our state.
2611 (-[WebView toggleContinuousSpellChecking:]): Change type to
2612 IBAction, just cosmetic.
2613 * WebView.subproj/WebViewPrivate.h:
2615 2004-08-08 Trey Matteson <trey@apple.com>
2617 3745023 - Safari crashes trying to access anchor while downloading
2619 I bet this is behind a few other crashers as well. In this bug the start of the
2620 download leaves a KWQPageState hanging around, and when that is freed it damages
2621 the part and view. If you're still using that page, you're dead.
2623 The fix is to properly invalidate the PageState when we receive an error before
2624 reaching WebFrameCommitted state. Normally this happens when a page is reheated
2625 from the PageState, but in this case we never manage to leave the page to begin
2626 with, although we've already created the PageState.
2628 Other errors besides the synthetic one download generates would have caused similar
2629 crashing. Another example would be clicking on a second link before the load
2630 caused by clicking on the first link reached committed state.
2634 * WebView.subproj/WebDataSource.m:
2635 (-[WebDataSource _receivedMainResourceError:complete:]): Let the frame do the
2636 main work (since it has access to the pageCache state). Also renamed to make
2637 it clear that this is about an error for the main resource.
2638 * WebView.subproj/WebDataSourcePrivate.h:
2639 * WebView.subproj/WebFrame.m:
2640 (-[WebFrame _receivedMainResourceError:]): Let WC know about the failure, as
2641 the DataSource used to, but now pass the pageCache state along too.
2642 * WebView.subproj/WebFramePrivate.h:
2643 * WebView.subproj/WebMainResourceClient.m:
2644 (-[WebMainResourceClient receivedError:]): Call renamed method.
2645 (-[WebMainResourceClient cancelWithError:]): Ditto.
2647 2004-08-08 Vicki Murley <vicki@apple.com>
2649 Reviewed by vicki (changes by rjw)
2651 - make "weak" linking with Quartz work with buildit
2653 * WebKit.pbproj/project.pbxproj:
2655 2004-08-06 Ken Kocienda <kocienda@apple.com>
2659 Finish off spellchecking support to HTML editing. Includes work to
2660 enable continuous spellchecking.
2662 * WebCoreSupport.subproj/WebBridge.m:
2663 (-[WebBridge isContinuousSpellCheckingEnabled]): Simple bridge method.
2664 * WebCoreSupport.subproj/WebTextRenderer.m:
2665 (-[WebTextRenderer drawLineForMisspelling:withWidth:]): New method to add
2666 AppKit-style misspelling underline.
2670 2004-08-05 Darin Adler <darin@apple.com>
2672 * WebView.subproj/WebHTMLView.m: Added a list of methods that NSTextView implements that we don't.
2675 2004-08-05 Chris Blumenberg <cblu@apple.com>
2677 Fixed unnecessary import of NSURLFileTypeMappings.
2679 * WebView.subproj/WebMainResourceClient.m:
2681 2004-08-05 Richard Williamson <rjw@apple.com>
2683 Make builds conditionally include -framework Quartz.
2687 * WebKit.pbproj/project.pbxproj:
2689 2004-08-04 Darin Adler <darin@apple.com>
2691 - fixed broken Deployment build
2693 * Carbon.subproj/HIWebView.m: (Click):
2694 Remove code that checks err variable before setting it.
2696 2004-08-03 Richard Williamson <rjw@apple.com>
2698 First cut at dirt simple PDF support. This feature
2699 depends on Quartz.framework (parent of PDFKit), which only exists
2700 on Tiger. So, we "weak" link against Quartz.
2702 We do very basic PDF rendering. Coming up are support for
2703 "Find..." and linearized PDF (incremental). Linearized PDF
2704 support will require API changes in PDFKit.
2706 No UI is added to Safari, yet.
2710 * WebKit.pbproj/project.pbxproj:
2711 * WebView.subproj/WebDataSource.m:
2712 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
2713 * WebView.subproj/WebFrameView.m:
2714 (+[WebFrameView _viewTypesAllowImageTypeOmission:]):
2715 * WebView.subproj/WebPDFRepresentation.h: Added.
2716 * WebView.subproj/WebPDFRepresentation.m: Added.
2717 (-[WebPDFRepresentation finishedLoadingWithDataSource:]):
2718 (-[WebPDFRepresentation canProvideDocumentSource]):
2719 (-[WebPDFRepresentation documentSource]):
2720 (-[WebPDFRepresentation title]):
2721 * WebView.subproj/WebPDFView.h: Added.
2722 * WebView.subproj/WebPDFView.m: Added.
2723 (-[WebPDFView initWithFrame:]):
2724 (-[WebPDFView setDataSource:]):
2725 (-[WebPDFView dataSourceUpdated:]):
2726 (-[WebPDFView setNeedsLayout:]):
2727 (-[WebPDFView layout]):
2728 (-[WebPDFView viewWillMoveToHostWindow:]):
2729 (-[WebPDFView viewDidMoveToHostWindow]):
2731 Copied fix from Jaguar carbon/cocoa work.
2733 Reviewed by Darin (Jaguar version)
2735 * Carbon.subproj/CarbonWindowAdapter.h:
2736 * Carbon.subproj/CarbonWindowAdapter.m:
2737 (-[CarbonWindowAdapter relinquishFocus]):
2738 * Carbon.subproj/HIWebView.m:
2740 (OwningWindowChanged):
2743 2004-08-03 David Hyatt <hyatt@apple.com>
2745 Add the text/xsl MIME type as one that can be displayed.
2749 * WebView.subproj/WebDataSource.m:
2750 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
2751 * WebView.subproj/WebFrameView.m:
2752 (+[WebFrameView _viewTypesAllowImageTypeOmission:]):
2754 2004-08-03 Maciej Stachowiak <mjs@apple.com>
2758 - implemented enough of the NSTextInput protocol and added the
2759 proper calls to NSInputManager to allow input methods to
2760 work. However, the text is not marked yet.
2762 * WebView.subproj/WebHTMLViewInternal.h: Added new fields to track
2764 * WebView.subproj/WebHTMLView.m:
2765 (-[WebHTMLView markedRange]): Implemented
2766 (-[WebHTMLView conversationIdentifier]): Implemented
2767 (-[WebHTMLView hasMarkedText]): Implemented
2768 (-[WebHTMLView unmarkText]): Implemented
2769 (-[WebHTMLView setMarkedText:selectedRange:]): Implemented - does
2770 not yet handle attributes in attributed strings
2771 (-[WebHTMLView insertText:]): Modified to handle replacing or abandoning
2772 the marked text when set.
2773 (-[WebHTMLView _selectMarkedText]): new helper method, self-explanatory
2774 (-[WebHTMLView _setMarkedDOMRange:]): hitto.
2775 (-[WebHTMLView _selectRangeInMarkedText:]): ditto
2776 (-[WebHTMLView _discardMarkedText]): ditto
2777 (-[WebHTMLView _selectionIsInsideMarkedText]): ditto
2778 (-[WebHTMLView _updateSelectionForInputManager]): ditto
2780 - did a bit of refactoring while I was in here.
2782 * WebView.subproj/WebHTMLView.m:
2783 (-[WebHTMLView _shouldReplaceSelectionWithText:givenAction:]): added this new
2784 helper method to simplify the common case of calling the shouldInsertText: delegate
2785 (-[WebHTMLView pasteAsPlainText:]): use it
2786 (-[WebHTMLView insertTab:]): ditto
2787 (-[WebHTMLView insertNewline:]): ditto
2788 (-[WebHTMLView _changeWordCaseWithSelector:]): ditto
2789 (-[WebHTMLView _changeSpellingToWord:]): ditto
2790 (-[WebHTMLView _selectionChanged]): ditto
2792 2004-08-03 Chris Blumenberg <cblu@apple.com>
2794 Fixed: <rdar://problem/3572737> Images not resizing at www.bmx-test.com (spoof nofix)
2798 * WebCoreSupport.subproj/WebImageRendererFactory.m:
2799 (-[WebImageRendererFactory supportedMIMETypes]): hard code image/pjpeg to the list of image mime types that we can handle
2801 2004-08-03 Darin Adler <darin@apple.com>
2805 - fixed <rdar://problem/3740937> ER: A way to turn a DOMRange into text (equivalent of -innerText)
2807 * DOM.subproj/DOMPrivate.h: Added.
2808 * WebKit.pbproj/project.pbxproj: Added DOMPrivate.h.
2809 * copy-webcore-files-to-webkit: Added DOMPrivate.h.
2811 2004-08-02 John Sullivan <sullivan@apple.com>
2815 WebKit part of fix for <rdar://problem/3631868> NSToolbar adoption:
2816 Tab key should cycle around toolbar and page content
2818 * WebView.subproj/WebHTMLView.m:
2819 removed overrides of nextKeyView and previousKeyView
2820 (-[WebHTMLView nextValidKeyView]):
2821 call super only if we can't move the focus within the frame hierarchy
2822 (-[WebHTMLView previousValidKeyView]):
2824 * WebView.subproj/WebHTMLViewInternal.h:
2825 removed nextKeyViewAccessShouldMoveFocus ivar
2827 2004-08-02 Ken Kocienda <kocienda@apple.com>
2831 Update name of firstResponderIsSelfOrDescendantView, adding _web_ prefix to this SPI call.
2833 Do some work to make caret blinking in newly-created editable WebView's that are
2834 similar in structure to Blot more "automatic".
2836 * Misc.subproj/WebNSViewExtras.h: Change name of firstResponderIsSelfOrDescendantView. Add _web_ prefix.
2837 * Misc.subproj/WebNSViewExtras.m:
2838 (-[NSView _web_firstResponderIsSelfOrDescendantView]): Name change.
2839 (-[NSView _web_firstResponderCausesFocusDisplay]): Adds an additional check for whether the view's
2840 is first responder. This helps to make the focus setting in viewDidMoveToWindow work right.
2841 * WebView.subproj/WebHTMLView.m:
2842 (-[WebHTMLView updateFocusDisplay]): Use _web_firstResponderCausesFocusDisplay now instead of
2843 firstResponderIsSelfOrDescendantView.
2844 (-[WebHTMLView viewDidMoveToWindow]): Schedule call to updateFocusDisplay for the next crank of the
2845 run loop. The reason is that placing the caret in the just-installed view requires the HTML/XML
2846 document to be available on the WebCore side, but it is not at the time this code is running.
2847 However, it will be there on the next crank of the run loop. Doing this helps to make a
2848 blinking caret appear in a new, empty window "automatic".
2849 (-[WebHTMLView performKeyEquivalent:]): _web_firstResponderIsSelfOrDescendantView name change.
2850 * WebView.subproj/WebView.m:
2851 (-[WebView _performResponderOperation:with:]): _web_firstResponderIsSelfOrDescendantView name change.
2853 2004-07-29 Maciej Stachowiak <mjs@apple.com>
2857 Added stubbed-out versions of all the NSTextInput protocol
2858 methods, and put comments in places where we will need to call the
2859 input manager to make input methods work 100%.
2861 * WebCoreSupport.subproj/WebBridge.m:
2862 (-[WebBridge respondToChangedSelection]):
2863 * WebView.subproj/WebHTMLView.m:
2864 (-[WebHTMLView mouseDown:]):
2865 (-[WebHTMLView mouseDragged:]):
2866 (-[WebHTMLView mouseUp:]):
2867 (-[WebHTMLView _interceptEditingKeyEvent:]):
2868 (-[WebHTMLView keyDown:]):
2869 (-[WebHTMLView _selectionChanged]):
2870 (-[WebHTMLView _delegateDragSourceActionMask]):
2871 (-[WebHTMLView validAttributesForMarkedText]):
2872 (-[WebHTMLView characterIndexForPoint:]):
2873 (-[WebHTMLView firstRectForCharacterRange:]):
2874 (-[WebHTMLView selectedRange]):
2875 (-[WebHTMLView markedRange]):
2876 (-[WebHTMLView attributedSubstringFromRange:]):
2877 (-[WebHTMLView conversationIdentifier]):
2878 (-[WebHTMLView hasMarkedText]):
2879 (-[WebHTMLView unmarkText]):
2880 (-[WebHTMLView setMarkedText:selectedRange:]):
2881 (-[WebHTMLView doCommandBySelector:]):
2882 (-[WebHTMLView insertText:]):
2883 * WebView.subproj/WebHTMLViewInternal.h:
2884 * WebView.subproj/WebView.m:
2888 2004-07-29 Darin Adler <darin@apple.com>
2892 - fill in some unimplemented methods
2894 * WebView.subproj/WebHTMLView.m:
2895 (-[WebHTMLView moveToBeginningOfDocument:]): Implement, using new document granularity.
2896 (-[WebHTMLView moveToBeginningOfDocumentAndModifySelection:]): Ditto.
2897 (-[WebHTMLView moveToBeginningOfParagraph:]): Implement, even though the underlying WebCore
2898 code is not yet implemented.
2899 (-[WebHTMLView moveToBeginningOfParagraphAndModifySelection:]): Ditto.
2900 (-[WebHTMLView moveToEndOfDocument:]): More of the same.
2901 (-[WebHTMLView moveToEndOfDocumentAndModifySelection:]): Ditto.
2902 (-[WebHTMLView moveToEndOfParagraph:]): More of the same.
2903 (-[WebHTMLView moveToEndOfParagraphAndModifySelection:]): Ditto.
2904 (-[WebHTMLView pageDown:]): Added comment describing desired behavior.
2905 (-[WebHTMLView pageUp:]): Ditto.
2906 (-[WebHTMLView copyFont:]): Ditto.
2907 (-[WebHTMLView pasteFont:]): Ditto.
2908 (-[WebHTMLView changeAttributes:]): Ditto.
2909 (-[WebHTMLView indent:]): Ditto.
2911 2004-07-28 Chris Blumenberg <cblu@apple.com>
2913 Fixed: <rdar://problem/3737864> Can not download image from web by using drag and drop
2917 * Misc.subproj/WebNSPasteboardExtras.m:
2918 (-[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
2920 2004-07-28 Maciej Stachowiak <mjs@apple.com>
2924 - avoid triggering an assertion when using dead keys (like option-e)
2926 * WebView.subproj/WebHTMLView.m:
2927 (-[WebHTMLView insertText:]): Don't pass zero-length strings to
2928 WebCore. Dead-key input seems to insert empty strings as a side
2931 2004-07-28 Trey Matteson <trey@apple.com>
2933 Spellchecking, Part I. Basic spellcheck is working. Spelling panel is hooked up.
2935 At this point, no special marking of misspellings, no grammar check, no context
2936 menu integration, no "check continually" mode.
2940 * WebCoreSupport.subproj/WebBridge.m:
2941 (-[WebBridge spellCheckerDocumentTag]): Typical bridge glue.
2942 * WebView.subproj/WebHTMLView.m:
2943 (-[WebHTMLView validateUserInterfaceItem:]): Validate various spelling actions.
2944 (-[WebHTMLView checkSpelling:]): Call WC for real work, update panel.
2945 (-[WebHTMLView showGuessPanel:]): Show panel, call WC for real work.
2946 (-[WebHTMLView _changeSpellingToWord:]): Apply correction to our doc.
2947 (-[WebHTMLView changeSpelling:]): Simple pass through to above method.
2948 (-[WebHTMLView ignoreSpelling:]): Tell checker to ignore the word.
2949 * WebView.subproj/WebView.m:
2950 (-[WebView _close]): Call AK's closeSpellDocumentWithTag: for proper cleanup.
2952 2004-07-27 John Sullivan <sullivan@apple.com>
2956 WebKit part of fix for <rdar://problem/3622268> Reload failed pages when a
2957 network problem is corrected, inc. using Network Diagnostics
2959 * WebView.subproj/WebFrame.m:
2960 (-[WebFrame reload]):
2961 This method did not handle unreachableURLs at all. The reason Safari's Reload
2962 did work with unreachableURLs was that Safari does "reloadObeyingLocationField"
2963 which never actually calls -[WebFrame reload]. Fixed by creating a fresh
2964 request for the previously-unreachable URL.
2966 2004-07-26 Richard Williamson <rjw@apple.com>
2968 Fixed 3739737. When setting the focus to a NSView, set the focus
2969 carbon focus to kControlIndicatorPart. kControlIndicatorPart is a
2970 placeholder value for use to indicate that Cocoa has the focus.
2974 * Carbon.subproj/CarbonWindowAdapter.m:
2975 (-[CarbonWindowAdapter makeFirstResponder:]):
2976 * Carbon.subproj/HIWebView.m:
2980 2004-07-26 Chris Blumenberg <cblu@apple.com>
2982 Fixed: <rdar://problem/3689734> dragging to an editable WebView does not scroll document
2986 * WebView.subproj/WebView.m:
2987 (-[WebView documentViewAtWindowPoint:]): new, factored from draggingDocumentViewAtWindowPoint:
2988 (-[WebView _draggingDocumentViewAtWindowPoint:]): call documentViewAtWindowPoint:
2989 (-[WebView _autoscrollForDraggingInfo:timeDelta:]): forward call to the document view
2990 (-[WebView _shouldAutoscrollForDraggingInfo:]): ditto
2994 2004-07-23 Ken Kocienda <kocienda@apple.com>
3000 <rdar://problem/3738920> Caret blinks in inactive window
3002 As part of the fix, I cleaned up the way we handle special drawing that needs
3003 to be done in the HTML view that is first responder in the key window (e.g the
3004 drawing of text selection highlight and caret blinking).
3006 * WebView.subproj/WebHTMLView.m:
3007 (-[WebHTMLView updateFocusDisplay]): New method that centralizes the changes
3008 we need to make when the first responder-ness of the view or key-ness of the
3010 (-[WebHTMLView viewDidMoveToWindow]): Call new updateFocusDisplay helper.
3011 (-[WebHTMLView windowDidBecomeKey:]): Ditto.
3012 (-[WebHTMLView windowDidResignKey:]): Ditto.
3013 (-[WebHTMLView becomeFirstResponder]): Ditto.
3014 (-[WebHTMLView resignFirstResponder]): Ditto.
3016 2004-07-22 Darin Adler <darin@apple.com>
3018 * Plugins.subproj/npruntime.h: Update with new version from newer JavaScriptCore.
3020 2004-07-21 Ken Kocienda <kocienda@apple.com>
3024 * WebCoreSupport.subproj/WebBridge.m: Remove interceptEditingKeyEvent
3025 bridge call over. This method of handling editing key events is now
3027 * WebView.subproj/WebHTMLView.m:
3028 (-[WebHTMLView performKeyEquivalent:]): Send key event over to the
3029 DOM if this view is or contains the first responder. This now
3030 happens unconditionally.
3031 (-[WebHTMLView keyDown:]): Send key event to the DOM, then see if
3032 the web view wants to interpret it an an editing key event. This
3033 is the new place to intercept key events for editing.
3035 2004-07-21 Ken Kocienda <kocienda@apple.com>
3039 Add implementations for these methods. Formerly, they logged an error.
3041 * WebView.subproj/WebHTMLView.m:
3042 (-[WebHTMLView moveToBeginningOfLine:]):
3043 (-[WebHTMLView moveToBeginningOfLineAndModifySelection:]):
3044 (-[WebHTMLView moveToEndOfLine:]):
3045 (-[WebHTMLView moveToEndOfLineAndModifySelection:]):
3047 2004-07-21 Ken Kocienda <kocienda@apple.com>
3051 Added some more handlers for standard Cocoa key bindings.
3052 These are "secrets" of NSText, meaning they are not public API, but we choose to mimic.
3054 * WebView.subproj/WebHTMLView.m:
3055 (-[WebHTMLView moveToBeginningOfDocumentAndModifySelection:]):
3056 (-[WebHTMLView moveToBeginningOfLineAndModifySelection:]):
3057 (-[WebHTMLView moveToBeginningOfParagraphAndModifySelection:]):
3058 (-[WebHTMLView moveToEndOfDocumentAndModifySelection:]):
3059 (-[WebHTMLView moveToEndOfLineAndModifySelection:]):
3060 (-[WebHTMLView moveToEndOfParagraph:]):
3061 (-[WebHTMLView moveToEndOfParagraphAndModifySelection:]):
3062 * WebView.subproj/WebView.h: Add these declarations to the comment in the header listing
3063 the responder-like methods we support.
3064 * WebView.subproj/WebView.m:
3065 (-[WebView moveToBeginningOfParagraphAndModifySelection:]):
3066 (-[WebView moveToEndOfParagraphAndModifySelection:]):
3067 (-[WebView moveToBeginningOfLineAndModifySelection:]):
3068 (-[WebView moveToEndOfLineAndModifySelection:]):
3069 (-[WebView moveToBeginningOfDocumentAndModifySelection:]):
3070 (-[WebView moveToEndOfDocumentAndModifySelection:]):
3072 2004-07-20 Ken Kocienda <kocienda@apple.com>
3076 * Misc.subproj/WebNSEventExtras.h: Added helper that returns whether
3077 a key event has a binding in the key binding manager.
3078 * Misc.subproj/WebNSEventExtras.m:
3079 (-[NSEvent _web_keyBindingManagerHasBinding]): New helper mentioned above.
3080 * Plugins.subproj/npruntime.h:
3081 * WebView.subproj/WebHTMLView.m:
3082 (-[WebHTMLView performKeyEquivalent:]): Add a check of whether the key event
3083 has a binding in the key binding manager. This works around the fact that
3084 NSResponder's interpretKeyEvents does not return a value telling whether
3085 or not the key was handled. This now makes it possible for us to trap
3086 modified key events we know we can handle (like those command-key + arrow events
3087 used for text navigation), while letting all others pass.
3089 2004-07-20 Chris Blumenberg <cblu@apple.com>
3092 <rdar://problem/3580589> REGRESSION (1.1-1.2): can't open a new window for an image that has not loaded
3093 <rdar://problem/3612691> Missing image icons (blue ?) lack context menu
3097 * WebView.subproj/WebDefaultContextMenuDelegate.m:
3098 (-[WebDefaultUIDelegate webView:contextMenuItemsForElement:defaultMenuItems:]): if there is no image, but there is an image URL, provide image context menu items besides "Copy Image"
3099 * WebView.subproj/WebHTMLView.m:
3100 (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]): don't drag an image with an actual image
3101 (-[WebHTMLView _mayStartDragAtEventLocation:]): ditto
3103 2004-07-20 Maciej Stachowiak <mjs@apple.com>
3107 <rdar://problem/3721690> REGRESSION (125.7-148u) clicking on links at macosx.apple.com/Builds does not load new page in frame
3109 * Plugins.subproj/npruntime.h:
3110 * WebCoreSupport.subproj/WebBridge.m:
3111 (-[WebBridge canTargetLoadInFrame:]): Don't apply the restrictions to frames
3112 that are in the same window (Mozilla does this too).
3114 2004-07-20 Richard Williamson <rjw@apple.com>
3116 Fix for 3728558. Fixed the key event handling in the carbon/cocoa
3117 integration code. This does not fix the arrow keys not working on
3118 initial focus problem also mentioned in the bug.
3120 Bumped the version of the NP function structures.
3124 * Carbon.subproj/CarbonUtils.m:
3127 * Carbon.subproj/HIWebView.m:
3128 (OwningWindowChanged):
3130 * Plugins.subproj/npapi.h:
3132 2004-07-20 Trey Matteson <trey@apple.com>
3134 3733698 REGRESSION: sometimes dragging photos on homepage.mac.com leads to an assertion
3136 Relax an assertion, as we ran into a valid case where it's not true.
3140 * WebView.subproj/WebHTMLView.m:
3141 (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
3142 Removing this assert allows for the oddball case of a drag gesture that
3143 starts on one element, but then the element is no longer there when
3144 the drag is about to start.
3146 2004-07-20 Ken Kocienda <kocienda@apple.com>
3152 <rdar://problem/3707505> HTMLCompose: blinking cursor in both an address text field and the message body
3154 * WebView.subproj/WebHTMLView.m:
3155 (-[WebHTMLView setCaretVisible:]): New helper. Calls over bridge to do the work.
3156 (-[WebHTMLView windowDidBecomeKey:]): This function cannot just assume that self is first responder
3157 (and do things like adjusting text background color and restoring focus rings).
3158 First-responder-ness needs to be checked first. Now it is.
3159 (-[WebHTMLView windowDidResignKey:]): Ditto.
3160 (-[WebHTMLView becomeFirstResponder]): Call new helper to make caret visible.
3161 (-[WebHTMLView resignFirstResponder]): Call new helper to make caret invisible.
3163 2004-07-12 Richard Williamson <rjw@apple.com>
3165 Fixed 3721917. The RealPlayer plugin doesn't support the new
3166 NPPVpluginScriptableNPObject variable passed to NPP_GetValue and
3167 incorrectly returns NPERR_NO_ERROR. We interpret this to the
3168 mean the variable has been set. The variable has not been set
3169 and will consequently be uninitialized.
3171 Reviewed by NOBODY (OOPS!).
3173 * Plugins.subproj/WebBaseNetscapePluginView.m:
3174 (-[WebBaseNetscapePluginView pluginScriptableObject]):
3176 2004-07-19 Ken Kocienda <kocienda@apple.com>
3182 <rdar://problem/3707504> HTMLCompose: key events are stolen by Web(HTML)View
3184 * Misc.subproj/WebNSViewExtras.h:
3185 * Misc.subproj/WebNSViewExtras.m:
3186 (-[NSView firstResponderIsSelfOrDescendantView]): New helper to
3187 (-[WebHTMLView performKeyEquivalent:]): Do not pass key events through to the editing
3188 key handler unless the WebHTMLView is first responder or contains the first responder.
3189 This prevents the "stealing" of key events mentioned in the bug.
3190 * WebView.subproj/WebView.m:
3191 (-[WebView _performResponderOperation:with:]): Uses the new firstResponderIsSelfOrDescendantView
3192 helper. The code I replaced used the same logic as the new helper.
3196 2004-07-12 Maciej Stachowiak <mjs@apple.com>
3200 <rdar://problem/3673988>: (REGRESSION(141-144): connection assertion failure at http://traffic.511.org/sfgate)
3202 * WebView.subproj/WebBaseResourceHandleDelegate.m:
3203 (-[WebBaseResourceHandleDelegate connectionDidFinishLoading:]):
3204 Don't check connection consistency if this load got cancelled
3205 while finishing, because in this case we have cleared the
3206 connection field already. This can happen when a redirect fires
3207 from an onload handler.
3209 2004-07-12 Maciej Stachowiak <mjs@apple.com>
3213 <rdar://problem/3632570>: (REGRESSION: SocialText.net wiki keeps asking for auth, even though pages load)
3215 * Misc.subproj/WebIconLoader.m:
3216 (-[WebIconLoader didReceiveAuthenticationChallenge:]): Ignore the challenge - we don't
3217 want an auth panel for favicons.
3218 (-[WebIconLoader didCancelAuthenticationChallenge:]): Ignore cancel, since we are ignoring
3221 2004-07-09 Chris Blumenberg <cblu@apple.com>
3223 Allowed my change for 3715785 to compile on Jaguar.
3225 Reviewed by kocienda.
3227 * WebCoreSupport.subproj/WebBridge.m:
3228 (-[WebBridge canTargetLoadInFrame:]): don't use the DOM API since it doesn't exist on Jaguar, instead call the new domain method on the bridge
3230 2004-07-09 Ken Kocienda <kocienda@apple.com>
3234 * Plugins.subproj/npruntime.h: Updated license to lawyer-approved
3235 joint Apple-Mozilla BSD-style license.
3237 2004-07-08 Chris Blumenberg <cblu@apple.com>
3239 Fixed: <rdar://problem/3720728> REGRESSION (125.8-146): Crash moving mouse over plugin at manray-photo.com
3243 * Plugins.subproj/WebBaseNetscapePluginView.m:
3244 (-[WebBaseNetscapePluginView pluginScriptableObject]): don't call NPP_GetValue unless the plug-in implements it
3246 2004-07-08 Chris Blumenberg <cblu@apple.com>
3248 Fixed: <rdar://problem/3706296> VIP: ifilm.com crashing reproducibly with Safari
3250 Reviewed by kocienda.
3252 * Plugins.subproj/WebNetscapePluginPackage.m:
3253 (-[WebNetscapePluginPackage launchRealPlayer]): don't release a NULL appURL
3255 2004-07-08 Chris Blumenberg <cblu@apple.com>
3257 Fixed: <rdar://problem/3650140> reproducible assertion failure going to plugin page with JavaScript disabled
3261 * Plugins.subproj/WebBaseNetscapePluginView.m:
3262 (-[WebBaseNetscapePluginView evaluateJavaScriptPluginRequest:]): don't call NPP_NewStream and other stream methods if there is no JS result to deliver. This is what Mozilla does.
3263 (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:]): Return NPERR_GENERIC_ERROR if JS is disabled. This is what Mozilla does.
3267 2004-07-07 Trey Matteson <trey@apple.com>
3269 3719051 - Safari doesn't update form inputs when a page was refreshed by javascript window.location
3270 ... and at least 5 other cases in Radar
3272 Very similar problem to the Harvard PIN bug. We need to be sure
3273 to not carry any state over when we are processing a client
3274 redirect, which reuses the same WebHistoryItem.
3278 * WebView.subproj/WebFrame.m:
3279 (-[WebFrame _transitionToCommitted:]): Comment
3280 (-[WebFrame _opened]): Clear form and scroll state on client redirect.
3282 2004-07-06 Chris Blumenberg <cblu@apple.com>
3284 Fixed: <rdar://problem/3715785> multiple frame injection vulnerability reported by Secunia, affects almost all browsers
3286 Reviewed by john, trey, kocienda.
3288 * WebCoreSupport.subproj/WebBridge.m:
3289 (-[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
3290 (-[WebBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]): call canTargetLoadInFrame: to make sure we can load the request
3291 (-[WebBridge postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]): ditto
3293 2004-07-06 John Sullivan <sullivan@apple.com>
3297 - fixed <rdar://problem/3717147> folder icon used for error page in back/forward
3298 menu when iTunes is not installed
3300 * WebView.subproj/WebFrame.m:
3301 (-[WebFrame _transitionToCommitted:]):
3302 When displaying the error page for an unreachable URL, leave the requested URL
3303 in the WebHistoryItem; don't clobber it with a bogus one that represents the
3304 error page. This not only avoids the wrong-icon problem, but should also help
3305 in cases where an unreachable URL becomes reachable later on.
3307 2004-07-06 Trey Matteson <trey@apple.com>
3309 3716053 - www.theage.com.au has extra back/forward items due to ads
3311 The real change was in WebKit. Here was are just renaming a method and folding
3312 all the WebFrameLoadTypeOnLoadEvent uses to be WebFrameLoadTypeInternal, since there
3313 was never any difference anyway.
3317 * WebCoreSupport.subproj/WebBridge.m:
3318 (-[WebBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]): rename part of the method.
3319 * WebView.subproj/WebFrame.m: Nuke WebFrameLoadTypeOnLoadEvent.
3320 (-[WebFrame _transitionToCommitted:]):
3321 (-[WebFrame _checkLoadCompleteForThisFrame]):
3322 (-[WebFrame _loadItem:withLoadType:]):
3323 (-[WebFrame _itemForRestoringDocState]):
3324 * WebView.subproj/WebFramePrivate.h:
3326 2004-07-06 Ken Kocienda <kocienda@apple.com>
3330 Only register the editing delegate for those notifications for which it implements the callbacks.
3332 * WebView.subproj/WebView.m:
3333 (-[WebView registerForEditingDelegateNotification:selector:]):
3334 (-[WebView setEditingDelegate:]):
3336 2004-07-06 Trey Matteson <trey@apple.com>
3338 3294652 - Failed drag of links doesn't slide back
3340 The only reason for this is that because of some hacks, we lie to
3341 AK about the drag image offset, which means we slide back to
3342 slightly the wrong place. But it's very minor, so we should
3347 * WebView.subproj/WebHTMLView.m:
3348 (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
3351 2004-07-02 Darin Adler <darin@apple.com>
3355 - fixed problem where tabsToLinks and privateBrowsingEnabled did not work with non-
3356 standard WebPreferences objects
3358 * WebView.subproj/WebPreferences.m:
3359 (-[WebPreferences _valueForKey:]): New helper.
3360 (-[WebPreferences _stringValueForKey:]): Use _valueForKey.
3361 (-[WebPreferences _integerValueForKey:]): Use _valueForKey.
3362 (-[WebPreferences _boolValueForKey:]): Use _valueForKey.
3363 (-[WebPreferences tabsToLinks]): Use _boolValueForKey; this is the bug fix.
3364 (-[WebPreferences privateBrowsingEnabled]): Ditto.
3365 (+[WebPreferences _setIBCreatorID:]): Use copy instead of retain for keeping an NSString.
3367 2004-07-01 Trey Matteson <trey@apple.com>
3369 3556159 - Crashes in -[WebFrame(WebPrivate) _transitionToCommitted:] at www.mastercardbusiness.com
3371 We know from the line number of the crash that it is due to [self parentFrame]==nil.
3373 Looking at the HTML and that of the related bugs, they do special stuff with onload
3374 handlers. It is no longer repro, presumably because the includes JS files changed,
3375 as the bugs only included the top level HTML. I suspect that the problem is that the
3376 WebFrameLoadTypeOnLoadEvent case was added, and in some weird sequence specific to
3377 MasterCard, they hit a case where we would be in WebFrameLoadTypeOnLoadEvent mode but
3378 not have a parent frame.
3380 So we guard in the code against hitting a nil parentFrame, and log an error just in
3381 case this ever crops up again and we can learn more about it.
3383 Reviewed by Richard.
3385 * WebView.subproj/WebFrame.m:
3386 (-[WebFrame _transitionToCommitted:]): Guard against nil parentFrame.
3388 2004-07-01 John Sullivan <sullivan@apple.com>
3393 <rdar://problem/3709110> REGRESSION (Tiger): Pressing Tab key to move focus
3394 onto links skips every other link
3395 <rdar://problem/3692576> focus ring is in odd place after clicking RSS button
3396 with "Tab to links" enabled
3398 WebHTMLView has some trickery by which we advance the focused link when nextKeyView
3399 or previousKeyView is called within nextValidKeyView or previousValidKeyView. This
3400 broke in Tiger because AppKit now (sometimes at least) calls nextKeyView more than
3401 once within nextValidKeyView. Fixed 3709110 by making sure we only advance the focus
3402 once within a call to nextValidKeyView or previousValidKeyView.
3404 Also, this same trickery didn't work right with hidden views. Fixed 3692576 by checking
3405 whether the view is hidden and bypassing the focus-moving trickery in that case.
3407 * WebView.subproj/WebHTMLViewInternal.h:
3408 renamed inNextValidKeyView -> nextKeyViewAccessShouldMoveFocus
3410 * WebView.subproj/WebHTMLView.m:
3411 (-[WebHTMLView nextKeyView]):
3412 now clears nextKeyViewAccessShouldMoveFocus
3413 (-[WebHTMLView previousKeyView]):
3415 (-[WebHTMLView nextValidKeyView]):
3416 now doesn't set focus-moving trigger ivar if view is hidden or has hidden ancestor
3417 (-[WebHTMLView previousValidKeyView]):
3420 2004-06-30 Trey Matteson <trey@apple.com>
3422 Dragging within a web view should be allowed to start when the window isn't key.
3424 A few months ago, Chris made this work, but it relied on the fact that all dragging
3425 was done in WebKit. When WebCore got involved in dragging, it was broken. Now we
3426 have a new scheme that gets it working again that properly involves WebCore.
3428 The general idea is that when AK asks us whether to accept the first mouse and do
3429 "delayed window ordering", we must consult WC to see if we might start a drag. In
3430 addition, instead of these drags in non-active windows being started as a special
3431 case in WK, they go through the normal WK-WC drag machinery. Finally to work in
3432 frames we have to drill to the deepest hit view in acceptsFirstMouse, because previous
3433 hacks to hitTest make the top-most WebHTMLView field all events for its view tree
3434 (which leads to it fielding all acceptFirstMouse messages too).
3438 * WebCoreSupport.subproj/WebBridge.m:
3439 (-[WebBridge mayStartDragAtEventLocation:]): Glue change for new arg type.
3440 * WebView.subproj/WebHTMLView.m:
3441 (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
3442 firstMouseDownEvent ivar is no longer needed.
3443 (-[WebHTMLView _mayStartDragAtEventLocation:]): Receives a location instead of a drag
3444 event, since we need to do this work when we have no drag event. This means the
3445 check of the delay for text dragging is moved down to WebCore.
3446 (-[WebHTMLView acceptsFirstMouse:]): Respond based on whether we might do a drag.
3447 This includes drilling to the deepest view the event hits, whereas we used to only
3448 respond considering the topmost WebHTMLView.
3449 (-[WebHTMLView shouldDelayWindowOrderingForEvent:]): Ditto.
3450 (-[WebHTMLView mouseDown:]): Get rid of special case where some activating
3451 mouseDown events weren't sent to WC. We need to go through the whole pipeline
3452 now to get a drag started properly.
3453 (-[WebHTMLView mouseDragged:]): Ditto, let WC start the drag.
3454 (-[WebHTMLView mouseUp:]): firstMouseDownEvent ivar is no longer needed.
3455 * WebView.subproj/WebHTMLViewInternal.h:
3456 * WebView.subproj/WebHTMLViewPrivate.h:
3458 2004-06-25 Trey Matteson <trey@apple.com>
3460 Added new utility method.
3464 * WebView.subproj/WebFrame.m:
3465 (-[WebFrame _isDescendantOfFrame:]): New code.
3466 * WebView.subproj/WebFramePrivate.h:
3468 2004-06-24 Richard Williamson <rjw@apple.com>
3470 Fixed <rdar://problem/3710313>: CGContext not zeroed when WebImageRenderer is copied
3471 The context ivar of WebImageRenderer wasn't being nil when the object was copied.
3475 * WebCoreSupport.subproj/WebImageRenderer.m:
3476 (-[WebImageRenderer copyWithZone:]):
3477 (-[WebImageRenderer dealloc]):
3478 (-[WebImageRenderer drawImageInRect:fromRect:compositeOperator:context:]):
3480 2004-06-24 Trey Matteson <trey@apple.com>
3482 3672725 - Assertion failure in URLCompletion code with particular set of bookmarks
3484 Problem was caused by a URL with unescaped unicodes getting into
3485 the Bookmarks file, presumably from import from IE. We now test
3486 for this case and convert the data on the way in as if it were