1 2006-10-02 Maciej Stachowiak <mjs@apple.com>
5 - take away direct knowledge of WebFrame from WebDataSource
7 * Loader/WebDocumentLoadState.h:
8 * Loader/WebDocumentLoadState.m:
9 (-[WebDocumentLoadState setFrameLoader:]):
10 (-[WebDocumentLoadState detachFromFrameLoader]):
11 * Loader/WebFrameLoader.m:
12 (-[WebFrameLoader _setDocumentLoadState:]):
13 (-[WebFrameLoader _setProvisionalDocumentLoadState:]):
14 * WebView/WebDataSource.m:
15 * WebView/WebDataSourceInternal.h:
16 * WebView/WebDocumentLoadStateMac.m:
17 (-[WebDocumentLoadStateMac detachFromFrameLoader]):
19 (-[WebFrame _loadDataSource:withLoadType:formState:]):
21 2006-10-02 Maciej Stachowiak <mjs@apple.com>
25 - move a big slice of data and logic from WebDataSource to WebDocumentLoadState
27 * Loader/WebDocumentLoadState.h:
28 * Loader/WebDocumentLoadState.m:
29 (-[WebDocumentLoadState initWithRequest:]):
30 (-[WebDocumentLoadState dealloc]):
31 (-[WebDocumentLoadState originalRequestCopy]):
32 (-[WebDocumentLoadState request]):
33 (-[WebDocumentLoadState replaceRequestURLForAnchorScrollWithURL:]):
34 (-[WebDocumentLoadState setRequest:]):
35 (-[WebDocumentLoadState setResponse:]):
36 (-[WebDocumentLoadState isStopping]):
37 (-[WebDocumentLoadState bridge]):
38 (-[WebDocumentLoadState setMainDocumentError:]):
39 (-[WebDocumentLoadState mainDocumentError]):
40 (-[WebDocumentLoadState clearErrors]):
41 (-[WebDocumentLoadState mainReceivedError:complete:]):
42 (-[WebDocumentLoadState stopLoading]):
43 (-[WebDocumentLoadState setupForReplace]):
44 (-[WebDocumentLoadState commitIfReady]):
45 (-[WebDocumentLoadState finishedLoading]):
46 (-[WebDocumentLoadState setCommitted:]):
47 (-[WebDocumentLoadState isCommitted]):
48 (-[WebDocumentLoadState setLoading:]):
49 (-[WebDocumentLoadState isLoading]):
50 (-[WebDocumentLoadState commitLoadWithData:]):
51 (-[WebDocumentLoadState doesProgressiveLoadWithMIMEType:]):
52 (-[WebDocumentLoadState receivedData:]):
53 (-[WebDocumentLoadState setupForReplaceByMIMEType:]):
54 (-[WebDocumentLoadState updateLoading]):
55 (-[WebDocumentLoadState response]):
56 * Loader/WebFrameLoader.h:
57 * Loader/WebFrameLoader.m:
58 (-[WebFrameLoader activeDocumentLoadState]):
59 (-[WebFrameLoader activeDataSource]):
60 (-[WebFrameLoader _archivedSubresourceForURL:]):
61 (-[WebFrameLoader addPlugInStreamLoader:]):
62 (-[WebFrameLoader removePlugInStreamLoader:]):
63 (-[WebFrameLoader addSubresourceLoader:]):
64 (-[WebFrameLoader removeSubresourceLoader:]):
65 (-[WebFrameLoader documentLoadState]):
66 (-[WebFrameLoader provisionalDocumentLoadState]):
67 (-[WebFrameLoader stopLoading]):
68 (-[WebFrameLoader _originalRequest]):
69 (-[WebFrameLoader _receivedData:]):
70 (-[WebFrameLoader _setRequest:]):
71 (-[WebFrameLoader bridge]):
72 (-[WebFrameLoader _handleFallbackContent]):
73 (-[WebFrameLoader _isStopping]):
74 (-[WebFrameLoader _setupForReplaceByMIMEType:]):
75 (-[WebFrameLoader _setResponse:]):
76 (-[WebFrameLoader _mainReceivedError:complete:]):
77 (-[WebFrameLoader _finishedLoading]):
78 (-[WebFrameLoader didReceiveServerRedirectForProvisionalLoadForFrame]):
79 (-[WebFrameLoader finishedLoadingDocumentLoadState:]):
80 (-[WebFrameLoader commitProvisitionalLoad]):
81 (-[WebFrameLoader committedLoadWithDocumentLoadState:data:]):
82 (-[WebFrameLoader isReplacing]):
83 (-[WebFrameLoader setReplacing]):
84 (-[WebFrameLoader revertToProvisionalWithDocumentLoadState:]):
85 (-[WebFrameLoader documentLoadState:setMainDocumentError:]):
86 (-[WebFrameLoader documentLoadState:mainReceivedCompleteError:]):
87 (-[WebFrameLoader finalSetupForReplaceWithDocumentLoadState:]):
88 * WebView/WebDataSource.m:
89 (-[WebDataSourcePrivate dealloc]):
90 (-[WebDataSource _prepareForLoadStart]):
91 (-[WebDataSource _mainDocumentError]):
92 (-[WebDataSource _finishedLoading]):
93 (-[WebDataSource _receivedData:]):
94 (-[WebDataSource _setMainDocumentError:]):
95 (-[WebDataSource _clearUnarchivingState]):
96 (-[WebDataSource _revertToProvisionalState]):
97 (-[WebDataSource _receivedMainResourceError:complete:]):
98 (-[WebDataSource _startLoading]):
99 (-[WebDataSource _loadFromPageCache:]):
100 (-[WebDataSource _bridge]):
101 (-[WebDataSource _setPrimaryLoadComplete:]):
102 (-[WebDataSource _URLForHistory]):
103 (-[WebDataSource _setTitle:]):
104 (-[WebDataSource _initWithDocumentLoadState:]):
105 (-[WebDataSource request]):
106 (-[WebDataSource response]):
107 (-[WebDataSource isLoading]):
108 (-[WebDataSource webArchive]):
109 * WebView/WebDataSourceInternal.h:
110 * WebView/WebDocumentLoadStateMac.m:
111 (-[WebDocumentLoadStateMac initWithRequest:]):
112 * WebView/WebFrame.m:
113 (-[WebFrame _createItem:]):
114 (-[WebFrame _receivedMainResourceError:]):
115 (-[WebFrame _transitionToCommitted:]):
116 (-[WebFrame _commitProvisionalLoad:]):
117 (-[WebFrame _checkLoadCompleteForThisFrame]):
118 (-[WebFrame _loadItem:withLoadType:]):
119 (-[WebFrame _continueFragmentScrollAfterNavigationPolicy:formState:]):
120 (-[WebFrame _didReceiveServerRedirectForProvisionalLoadForFrame]):
121 (-[WebFrame _provisionalLoadStarted]):
122 * WebView/WebFrameInternal.h:
124 2006-10-02 Justin Garcia <justin.garcia@apple.com>
128 <rdar://problem/4757583>
129 REGRESSION: tabbing into page focuses wrong control on 2nd pass
130 <rdar://problem/4757594>
131 REGRESSION: Form field is left with secondary selection after tabbing out of WebView
133 * WebView/WebHTMLView.m:
134 (-[NSArray maintainsInactiveSelection]): Replace code that I removed in error in the patch
135 for 9642. Only leave inactive editable selections in the WebHTMLView if the nextResponder
136 is in the same WebView.
138 2006-10-02 Maciej Stachowiak <mjs@apple.com>
142 - remove webFrame field from WebDataSourcePrivate, it can get it from WebDocumentLoadState now
144 * Loader/WebDocumentLoadState.h:
145 * Loader/WebDocumentLoadState.m:
146 (-[WebDocumentLoadState frameLoader]):
147 * WebView/WebDataSource.m:
148 (-[WebDataSourcePrivate dealloc]):
149 (-[WebDataSource _revertToProvisionalState]):
150 (-[WebDataSource _setupForReplaceByMIMEType:]):
151 (-[WebDataSource _updateLoading]):
152 (-[WebDataSource _startLoading]):
153 (-[WebDataSource _setWebFrame:]):
154 (-[WebDataSource _defersCallbacksChanged]):
155 (-[WebDataSource _stopLoading]):
156 (-[WebDataSource _webView]):
157 (-[WebDataSource _stopLoadingWithError:]):
158 (-[WebDataSource _setPrimaryLoadComplete:]):
159 (-[WebDataSource dealloc]):
160 (-[WebDataSource webFrame]):
161 (-[WebDataSource isLoading]):
163 2006-10-02 Maciej Stachowiak <mjs@apple.com>
167 - fix crash on back/forward - reattach WebDocumentLoadState to data source when needed
169 * WebView/WebDataSource.m:
170 (-[WebDataSource _setWebFrame:]):
171 (-[WebDataSource _initWithDocumentLoadState:]):
172 * WebView/WebDataSourceInternal.h:
174 2006-10-02 Maciej Stachowiak <mjs@apple.com>
176 Build fix, not reviewed.
178 - Added missing files to fix build.
180 * WebView/WebDocumentLoadStateMac.h: Added.
181 * WebView/WebDocumentLoadStateMac.m: Added.
182 (-[WebDocumentLoadStateMac initWithRequest:]):
183 (-[WebDocumentLoadStateMac dealloc]):
184 (-[WebDocumentLoadStateMac setDataSource:]):
185 (-[WebDocumentLoadStateMac dataSource]):
186 (-[WebDocumentLoadStateMac setFrameLoader:]):
188 2006-10-01 Maciej Stachowiak <mjs@apple.com>
190 Reviewed by Brady and Oliver.
192 - move things around so that WebDataSource and WebDocumentLoadState know about each other in
193 the right way. This lines things up to move nearly all functionality down to WebDocumentLoadState.
195 * Loader/WebDocumentLoadState.h:
196 * Loader/WebDocumentLoadState.m:
197 (-[WebDocumentLoadState initWithRequest:]):
198 (-[WebDocumentLoadState dealloc]):
199 (-[WebDocumentLoadState originalRequest]):
200 * Loader/WebFrameLoader.h:
201 * Loader/WebFrameLoader.m:
202 (-[WebFrameLoader dealloc]):
203 (-[WebFrameLoader addSubresourceLoader:]):
204 (-[WebFrameLoader startLoadingMainResourceWithRequest:identifier:]):
205 (-[WebFrameLoader dataSource]):
206 (-[WebFrameLoader _setDocumentLoadState:]):
207 (-[WebFrameLoader policyDataSource]):
208 (-[WebFrameLoader _setPolicyDocumentLoadState:]):
209 (-[WebFrameLoader clearDataSource]):
210 (-[WebFrameLoader provisionalDataSource]):
211 (-[WebFrameLoader _setProvisionalDocumentLoadState:]):
212 (-[WebFrameLoader _clearProvisionalDataSource]):
213 (-[WebFrameLoader _setState:]):
214 (-[WebFrameLoader clearProvisionalLoad]):
215 (-[WebFrameLoader commitProvisionalLoad]):
216 (-[WebFrameLoader stopLoading]):
217 (-[WebFrameLoader startLoading]):
218 (-[WebFrameLoader startProvisionalLoad:]):
219 (-[WebFrameLoader setupForReplace]):
220 (-[WebFrameLoader activeDocumentLoadState]):
221 (-[WebFrameLoader activeDataSource]):
222 (-[WebFrameLoader _loadRequest:archive:]):
223 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
224 (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
225 (-[WebFrameLoader reload]):
226 * WebKit.xcodeproj/project.pbxproj:
227 * WebView/WebDataSource.m:
228 (-[WebDataSourcePrivate dealloc]):
229 (-[WebDataSource _startLoading]):
230 (-[WebDataSource _setWebFrame:]):
231 (-[WebDataSource _documentLoadState]):
232 (-[WebDataSource _initWithDocumentLoadState:]):
233 (-[WebDataSource initWithRequest:]):
234 (-[WebDataSource initialRequest]):
235 (-[WebDataSource unreachableURL]):
236 * WebView/WebDataSourceInternal.h:
237 * WebView/WebFrame.m:
238 (-[WebFramePrivate dealloc]):
239 (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
240 (-[WebFrame _loadDataSource:withLoadType:formState:]):
241 (-[WebFrame _policyDataSource]):
242 (-[WebFrame _shouldReloadToHandleUnreachableURLFromRequest:]):
243 (-[WebFrame _dataSourceForDocumentLoadState:]):
244 (-[WebFrame _createDocumentLoadStateWithRequest:]):
245 * WebView/WebFrameInternal.h:
247 2006-09-29 David Hyatt <hyatt@apple.com>
249 Change the default minimum font size pref to 0 in order to allow
252 * WebView/WebPreferences.m:
253 (+[WebPreferences initialize]):
255 2006-09-28 Timothy Hatcher <timothy@apple.com>
259 Switch the inspector over to use border-image with styled buttons and selects.
261 * WebInspector/WebInspector.m:
262 (-[NSWindow window]):
263 (-[NSWindow setWebFrame:]):
264 (-[WebInspector _updateRoot]):
265 * WebInspector/webInspector/Images/button.png: Added.
266 * WebInspector/webInspector/Images/buttonDivider.png: Added.
267 * WebInspector/webInspector/Images/buttonPressed.png: Added.
268 * WebInspector/webInspector/Images/popup.png: Added.
269 * WebInspector/webInspector/Images/popupFill.png: Removed.
270 * WebInspector/webInspector/Images/popupFillPressed.png: Removed.
271 * WebInspector/webInspector/Images/popupLeft.png: Removed.
272 * WebInspector/webInspector/Images/popupLeftPressed.png: Removed.
273 * WebInspector/webInspector/Images/popupPressed.png: Added.
274 * WebInspector/webInspector/Images/popupRight.png: Removed.
275 * WebInspector/webInspector/Images/popupRightPressed.png: Removed.
276 * WebInspector/webInspector/Images/squareButtonRight.png: Removed.
277 * WebInspector/webInspector/Images/squareButtonRightPressed.png: Removed.
278 * WebInspector/webInspector/inspector.css:
279 * WebInspector/webInspector/inspector.html:
280 * WebInspector/webInspector/inspector.js:
282 2006-09-28 Alice Liu <alice.liu@apple.com>
284 fixing the windows build
287 (WebView::mouseMoved):
288 (WebView::mouseDown):
290 (WebView::mouseDoubleClick):
292 2006-09-27 Justin Garcia <justin.garcia@apple.com>
296 <rdar://problem/4044271>
297 Writing Direction menu doesn't reflect the current writing direction (9773)
299 * English.lproj/Localizable.strings: Added "Right to Left" and "Left to Right"
300 * WebView/WebHTMLView.m:
301 (-[NSArray validateUserInterfaceItem:]): Validate menu items that perform
302 toggleBaseWritingDirection and changeBaseWritingDirection.
303 Disable the menu item that changes the writing direction to NSWritingDirectionNautral
304 because NSWritingDirectionNatural's behavior can't be implemented with CSS.
305 Take control of the title of the menu item that performs toggleBaseWritingDirection:
306 instead of checking/unchecking it, otherwise we wouldn't know what a check means.
307 (-[NSArray changeBaseWritingDirection:]): ASSERT that the requested writing
308 direction is not NSWritingDirectionNatural, since we've disabled the
309 menu item that performs it.
311 2006-09-27 MorganL <morganl.webkit@yahoo.com>
313 Reviewed by Maciej, landed by Brady
315 Update URL request associated with provisional data source on redirect.
316 Notify IWebFrameLoadDelegate of redirects for the provisional load.
317 Notify IWebFrameLoadDelegate of a provisional load being commited.
319 * COM/WebDataSource.cpp:
320 (WebDataSource::replaceRequest):
321 * COM/WebDataSource.h:
323 (WebFrame::receivedRedirect):
324 (WebFrame::receivedResponse):
325 (WebFrame::receivedData):
327 2006-09-26 John Sullivan <sullivan@apple.com>
331 * WebView/WebHTMLViewPrivate.h:
332 * WebView/WebHTMLView.m:
333 (-[WebHTMLView markAllMatchesForText:caseSensitive:limit:]):
334 Added limit parameter, passed over the bridge. Stop the search if it hits limit.
336 * WebView/WebViewPrivate.h:
338 (-[WebView markAllMatchesForText:caseSensitive:highlight:limit:]):
339 Added limit parameter, passed to WebHTMLView.
341 2006-09-26 David Harrison <harrison@apple.com>
343 Reviewed by John and TimH.
345 <rdar://problem/4743256> Seed: Ctrl-Y key binding does nothing when kill ring is empty
347 Use deleteBackward: when the killring string is empty. Was always using insertText:,
348 but that ends up early-returning if the string to insert is empty.
350 * WebView/WebHTMLView.m:
352 (-[NSArray yankAndSelect:]):
354 2006-09-25 Timothy Hatcher <timothy@apple.com>
358 Use the non-deprecated method names for getComputedStyle, setEnd and setStart.
360 * WebInspector/WebInspector.m:
361 (-[WebInspector _highlightNode:]):
362 * WebView/WebHTMLView.m:
364 (-[WebHTMLView _selectRangeInMarkedText:]):
365 (-[WebTextCompleteController doCompletion]):
367 (-[WebView computedStyleForElement:pseudoElement:]):
369 2006-09-22 Timothy Hatcher <timothy@apple.com>
373 Pass all headers through unifdef to filter out BUILDING_ON_TIGER blocks
374 if MACOSX_DEPLOYMENT_TARGET is 10.4.
376 * MigrateHeaders.make:
378 2006-09-20 Justin Garcia <justin.garcia@apple.com>
382 <http://bugs.webkit.org/show_bug.cgi?id=7165>
383 TinyMCE: Dragging & dropping content always leaves a copy when editing inside a subframe
385 The top level WebHTMLView is responsible for performing dragging operations, but
386 the inner view, the view that holds the drag caret, should be consulted to determine
387 if the drag is a move drag.
389 * WebCoreSupport/WebFrameBridge.m:
390 (-[WebFrameBridge startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
391 * WebKit.xcodeproj/project.pbxproj:
392 * WebView/WebHTMLView.m:
393 (-[NSArray dragImage:at:offset:event:pasteboard:source:slideBack:]): Don't set initatedDrag here, because
394 it's only the top level WebHTMLView that performs this operation.
395 (-[WebHTMLView _setInitiatedDrag:]): Added.
396 (-[WebHTMLView _initiatedDrag]): Ditto.
397 (-[WebHTMLView _canProcessDragWithDraggingInfo:]): Ask the innerView if it initiated the drag,
398 not the top level view.
399 (-[WebHTMLView _isMoveDrag]): The top level view asks the innerView if it should perform
400 a move drag, so don't ASSERT _isTopHTMLView.
401 (-[WebHTMLView draggingUpdatedWithDraggingInfo:actionMask:]): Ask the innerView if _isMoveDrag.
402 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): Ditto.
403 * WebView/WebHTMLViewInternal.h: Added two private SPI so that
404 the top level WebHTMLView can set and get the initiatedDrag BOOL.
406 === Safari-521.27 ===
408 2006-09-20 Brady Eidson <beidson@apple.com>
410 Reviewed by Tim Omernick
412 Fixing part of a crash Tim O showed me. [WebIconDatabase init] should finish
413 gracefully even if we can't open the database
415 * Misc/WebIconDatabase.m:
416 (-[WebIconDatabase init]):
418 2006-09-20 Timothy Hatcher <timothy@apple.com>
422 <rdar://problem/4741392> Develop a system to find what version of WebKit an app was linked with
424 * Misc/WebKitVersionChecks.h: Added.
425 * Misc/WebKitVersionChecks.m: Added.
426 (WebKitLinkedOnOrAfter): Added.
427 (WebKitLinkTimeVersion): Added.
428 (WebKitRunTimeVersion): Added.
429 * WebKit.xcodeproj/project.pbxproj:
431 2006-09-20 Tim Omernick <timo@apple.com>
435 * Misc/WebIconDatabase.m:
436 (-[WebIconDatabase init]):
439 2006-09-20 Brady Eidson <beidson@apple.com>
443 Preparing to make the WebIconDatabase disabled by default - this patch tells the bridge whether its enabled or not
445 * Misc/WebIconDatabase.m:
446 (-[WebIconDatabase init]):
448 2006-09-19 Brady Eidson <beidson@apple.com>
450 Reviewed by Sarge Decker
452 <rdar://problem/4739892> and <rdar://problem/4729797>
453 - WebCore::IconDatabase needs to have and respect an enabled() flag
454 - Mail on ToT WebKit crashes in IconDatabase code when mailing a page from Safari
456 * Misc/WebIconDatabase.m:
457 (-[WebIconDatabase init]): If preference says icons are disabled, tell the bridge
458 (-[WebIconDatabase _isEnabled]): Ask the bridge if the database is enabled
460 2006-09-19 Alexey Proskuryakov <ap@nypop.com>
464 http://bugs.webkit.org/show_bug.cgi?id=10661
465 REGRESSION: CFM plug-ins (Shockwave, SVG) are not loaded
467 * Plugins/WebBasePluginPackage.m:
468 (-[WebBasePluginPackage initWithPath:]): On 32-bit PowerPC, don't bail out if
469 the bundle is nil - it can be a CFM plugin.
471 2006-09-18 Brady Eidson <beidson@apple.com>
475 Implement a bridge method so WebCore can find the reload type of a frame load
477 * WebCoreSupport/WebFrameBridge.m:
478 (-[WebFrameBridge isLoadTypeReload]):
480 2006-09-18 Sam Weinig <sam.weinig@gmail.com>
484 Patch for http://bugs.webkit.org/show_bug.cgi?id=10903
485 Yet Another Objective-C Bindings Patch
487 * MigrateHeaders.make:
489 2006-09-17 David Harrison <harrison@apple.com>
491 Reviewed by John Sullivan.
493 <rdar://problem/4494340> REGRESSION: Making the font size bigger/smaller in an HTML message doesn't affect the body until you reopen it
495 Problem was the public API -[WebView setTextSizeMultiplier] did not notify anyone that the value changed.
497 * WebView/WebDocumentInternal.h:
498 Add _textSizeMultiplierChanged to the _WebDocumentTextSizing protocol.
500 * WebView/WebHTMLView.m:
501 (-[WebHTMLView _textSizeMultiplierChanged]):
502 Send [self _updateTextSizeMultiplier].
504 * WebView/WebPDFView.m:
505 (-[WebPDFView _textSizeMultiplierChanged]):
506 ASSERT_NOT_REACHED() because WebPDFView does not track the common multiplier.
509 (-[WebView setTextSizeMultiplier:]):
510 Send [self _notifyTextSizeMultiplierChanged];
512 (-[WebView _performTextSizingSelector:withObject:onTrackingDocs:selForNonTrackingDocs:newScaleFactor:]):
513 Alter the _textSizeMultiplier directly so that notification is not sent.
516 (-[WebView _notifyTextSizeMultiplierChanged]):
517 New. Send _textSizeMultiplierChanged to all document views that track the common multiplier.
519 2006-09-16 Brady Eidson <beidson@apple.com>
523 WebIconLoader is dead, long live WebCore::IconLoader
526 * Loader/WebFrameLoader.h:
527 * Loader/WebFrameLoader.m:
528 (-[WebFrameLoader dealloc]):
529 (-[WebFrameLoader commitProvisionalLoad]):
530 * Loader/WebIconLoader.h: Removed.
531 * Loader/WebIconLoader.m: Removed.
532 * Misc/WebIconDatabase.h:
533 * Misc/WebIconDatabase.m:
534 * Misc/WebIconDatabasePrivate.h:
535 * WebCoreSupport/WebFrameBridge.m:
536 (-[WebFrameBridge notifyIconChanged:]):
537 * WebCoreSupport/WebIconDatabaseBridge.h:
538 * WebCoreSupport/WebIconDatabaseBridge.m:
539 (-[WebIconDatabaseBridge _init]):
540 (-[WebIconDatabaseBridge _setIconData:forIconURL:]):
541 (-[WebIconDatabaseBridge _setHaveNoIconForIconURL:]):
543 * WebKit.xcodeproj/project.pbxproj:
544 * WebView/WebDataSource.m:
545 (-[WebDataSourcePrivate dealloc]):
546 (-[WebDataSource _stopLoading]):
547 (-[WebDataSource _setPrimaryLoadComplete:]):
548 * WebView/WebDataSourceInternal.h:
550 2006-09-16 Mark Rowe <opendarwin.org@bdash.net.nz>
554 http://bugs.webkit.org/show_bug.cgi?id=10887
557 * MigrateHeaders.make: Remove reference to DOMEventPrivate.h.
559 2006-09-15 Timothy Hatcher <timothy@apple.com>
563 Make new style ObjC methods public API.
565 * MigrateHeaders.make:
567 2006-09-15 Sam Weinig <sam.weinig@gmail.com>
571 Patch for http://bugs.webkit.org/show_bug.cgi?id=10870
572 Auto-generate DOMNode for the Objective-C bindings
574 * MigrateHeaders.make:
576 2006-09-15 Timothy Hatcher <timothy@apple.com>
580 Call the bridge directly for alter selection calls. All of this logic is now
581 in WebCore's SelectionController.
583 * WebView/WebHTMLView.m:
584 (-[NSArray moveBackward:]):
585 (-[NSArray moveBackwardAndModifySelection:]):
586 (-[NSArray moveDown:]):
587 (-[NSArray moveDownAndModifySelection:]):
588 (-[NSArray moveForward:]):
589 (-[NSArray moveForwardAndModifySelection:]):
590 (-[NSArray moveLeft:]):
591 (-[NSArray moveLeftAndModifySelection:]):
592 (-[NSArray moveRight:]):
593 (-[NSArray moveRightAndModifySelection:]):
594 (-[NSArray moveToBeginningOfDocument:]):
595 (-[NSArray moveToBeginningOfDocumentAndModifySelection:]):
596 (-[NSArray moveToBeginningOfSentence:]):
597 (-[NSArray moveToBeginningOfSentenceAndModifySelection:]):
598 (-[NSArray moveToBeginningOfLine:]):
599 (-[NSArray moveToBeginningOfLineAndModifySelection:]):
600 (-[NSArray moveToBeginningOfParagraph:]):
601 (-[NSArray moveToBeginningOfParagraphAndModifySelection:]):
602 (-[NSArray moveToEndOfDocument:]):
603 (-[NSArray moveToEndOfDocumentAndModifySelection:]):
604 (-[NSArray moveToEndOfSentence:]):
605 (-[NSArray moveToEndOfSentenceAndModifySelection:]):
606 (-[NSArray moveToEndOfLine:]):
607 (-[NSArray moveToEndOfLineAndModifySelection:]):
608 (-[NSArray moveToEndOfParagraph:]):
609 (-[NSArray moveToEndOfParagraphAndModifySelection:]):
610 (-[NSArray moveParagraphBackwardAndModifySelection:]):
611 (-[NSArray moveParagraphForwardAndModifySelection:]):
612 (-[NSArray moveUp:]):
613 (-[NSArray moveUpAndModifySelection:]):
614 (-[NSArray moveWordBackward:]):
615 (-[NSArray moveWordBackwardAndModifySelection:]):
616 (-[NSArray moveWordForward:]):
617 (-[NSArray moveWordForwardAndModifySelection:]):
618 (-[NSArray moveWordLeft:]):
619 (-[NSArray moveWordLeftAndModifySelection:]):
620 (-[NSArray moveWordRight:]):
621 (-[NSArray moveWordRightAndModifySelection:]):
622 (-[NSArray pageUp:]):
623 (-[NSArray pageDown:]):
624 (-[NSArray pageUpAndModifySelection:]):
625 (-[NSArray pageDownAndModifySelection:]):
627 2006-09-15 Adam Roben <aroben@apple.com>
631 Fixes http://bugs.webkit.org/show_bug.cgi?id=10876
632 containsItemForURLUnicode uses matchLetter instead of
635 Small fixes for _WebCoreHistoryProvider.
637 * History/WebHistory.m: Consistently use BUFFER_SIZE #define
638 (-[_WebCoreHistoryProvider containsItemForURLLatin1:length:]):
639 (-[_WebCoreHistoryProvider containsItemForURLUnicode:length:]):
640 Replace incorrect call to matchLetter to matchUnicodeLetter
642 2006-09-13 Brady Eidson <beidson@apple.com>
646 Add infrastructure to support icon loads taking place in WebCore
647 Will remove WebKit icon loaders in a later patch
649 * WebCoreSupport/WebFrameBridge.m:
650 (-[WebFrameBridge notifyIconChanged:]):
651 (-[WebFrameBridge originalRequestURL]):
652 - Nuked two old, obsolete methods
653 - Added bridge for notifying of an icon change
654 - Added bridge for getting the "original request URL" which is still needed
655 until that info is available in the WebCore loaders
657 * WebView/WebDataSource.m:
658 (-[WebDataSource _loadIcon]):
659 - Empty body just for now, as it still gets called - next patch will prune all the old impl out
661 2006-09-13 Timothy Hatcher <timothy@apple.com>
665 <rdar://problem/4726416> obsolete confusing "ADVISORY NOTE" comment in WebHistory.h
667 Removed the "ADVISORY NOTE: This method may change for the 1.0 SDK" comments.
669 * History/WebHistory.h:
671 === Safari-521.26 ===
673 2006-09-11 MorganL <morlmor@yahoo.com>
675 Reviewed/landed by aroben.
677 Fixes http://bugs.webkit.org/show_bug.cgi?id=10765
678 Windows build busted due to std::copy usage in Vector.h
680 * WebKit.vcproj/WebKit.vcproj: Define _SCL_SECURE_NO_DEPRECATE to get
681 rid of deprecation warnings on std::copy
683 2006-09-11 Brady Eidson <beidson@apple.com>
685 Despite the fact that some people built okay without this change, it sure was biting me,
686 probably because I just wiped my build directory for a fresh build -
687 Today's earlier removal of DOMList.h needed to occur in MigrateHeaders.make, as well
689 * MigrateHeaders.make: removed DOMList.h
691 2006-09-10 Darin Adler <darin@apple.com>
695 - fix http://bugs.webkit.org/show_bug.cgi?id=10547
696 REGRESSION: Links that should open in a new window open in the same window,
697 while opening another blank window
699 * WebView/WebFrame.m:
700 (-[WebFrame _continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
701 Changed a mistaken "self" to "frame", which was the cause of the bug. Also
702 fixed the method so that it won't crash if createWebViewWithRequest does
703 something that has a side effect of releasing this WebView or this frame
704 by retaining "self" and "frame" as needed. Also fixed a problem where the
705 code to set "opener" was backwards, and would set the opener of the old
706 frame to point to the new frame instead of vice versa.
708 2006-09-09 Sam Weinig <sam.weinig@gmail.com>
712 Patch for http://bugs.webkit.org/show_bug.cgi?id=10795
713 Auto-generate the Objective-C DOM XPath bindings
715 * MigrateHeaders.make:
717 2006-09-09 Sam Weinig <sam.weinig@gmail.com>
721 Patch for http://bugs.webkit.org/show_bug.cgi?id=10791
722 Even More Objective-C DOM auto-generation cleanup
724 * MigrateHeaders.make:
726 2006-09-08 Tim Omernick <timo@apple.com>
728 Reviewed by Brady Eidson.
730 Rolled out Maciej's code cleanup from 8/22. It turns out that keeping the "loading" flag
731 is a useful optimization, as it avoids many Objective-C method calls while polling resources
732 for their load state.
734 This fixes a 3-4% PLT performance regression (as measured on my MacBook Pro).
736 * Loader/WebFrameLoader.m:
737 (-[WebFrameLoader addPlugInStreamLoader:]):
738 (-[WebFrameLoader removePlugInStreamLoader:]):
739 (-[WebFrameLoader addSubresourceLoader:]):
740 (-[WebFrameLoader removeSubresourceLoader:]):
741 * WebView/WebDataSource.m:
742 (-[WebDataSourcePrivate dealloc]):
743 (-[WebDataSource _prepareForLoadStart]):
744 (-[WebDataSource _setLoading:]):
745 (-[WebDataSource _updateLoading]):
746 (-[WebDataSource _startLoading]):
747 (-[WebDataSource _stopLoading]):
748 (-[WebDataSource _setPrimaryLoadComplete:]):
749 (-[WebDataSource isLoading]):
750 * WebView/WebDataSourceInternal.h:
752 2006-09-07 Sam Weinig <sam.weinig@gmail.com>
754 Reviewed by Darin and Tim H.
756 Patch for http://bugs.webkit.org/show_bug.cgi?id=10774
757 Auto-generate the Objective-C DOM Traversal bindings
759 * MigrateHeaders.make:
761 2006-09-07 Sam Weinig <sam.weinig@gmail.com>
765 Patch for http://bugs.webkit.org/show_bug.cgi?id=10766
766 Auto-generate the Objective-C DOM Events bindings
768 * MigrateHeaders.make:
769 * WebKit.xcodeproj/project.pbxproj:
771 2006-09-06 Alexey Proskuryakov <ap@nypop.com>
773 * MigrateHeaders.make: Fixed a double slash in
774 "$(PRIVATE_HEADERS_DIR)//DOMCharacterDataPrivate.h" (this was reported
775 to cause a build failure under certain circumstances).
777 2006-09-05 MorganL <morlmor@yahoocom>
779 Reviewed/landed by aroben.
781 Fixes bug 10743: Windows build is busted.
786 2006-09-05 Timothy Hatcher <timothy@apple.com>
790 Drastically simplified the makefile for migrating headers from
791 WebCore and JavaScriptCore. The old version was always copying the files.
793 * MigrateHeaders.make:
795 2006-09-05 Darin Adler <darin@apple.com>
799 - WebKit side of changes to encoding
801 * WebView/WebHTMLRepresentation.m: (-[WebHTMLRepresentation documentSource]):
802 Changed to call new -[WebCoreFrameBridge stringWithData:] instead of the calling
803 the old methods that used a CFStringEncoding: -[WebCoreFrameBridge textEncoding]
804 and +[WebCoreFrameBridge stringWithData:textEncoding:].
806 * WebView/WebResource.m: (-[WebResource _stringValue]): Removed special case for
807 nil encoding name. The bridge itself now has the rule that "nil encoding name
808 means Latin-1", so we don't need to check for nil.
810 * WebView/WebFrame.m: (-[WebFrame _checkLoadComplete]): Retain the frame until
811 we get the parent frame while walking up parent frames, because it's possible
812 for _checkLoadCompleteForThisFrame to release the last reference to the frame.
813 (Not reviewed; needed to run performance tests successfully.)
815 2006-09-05 Timothy Hatcher <timothy@apple.com>
819 <rdar://problem/4682225> conflicting typedefs in Netscape plug-in headers
821 * Plugins/npfunctions.h: fix the return type for NPN_IntFromIdentifierProcPtr to be int32_t
823 2006-09-04 Timothy Hatcher <timothy@apple.com>
827 Bug 10714: ObjC autogeneration needs safe-guards against easily modifying the public API
828 http://bugs.webkit.org/show_bug.cgi?id=10714
830 - Added the new private DOM headers.
831 - Factored out the common commands into variables.
832 - Made WebDashboardRegion.h private again.
833 - Rename DOMDOMImplementation.h to DOMImplementation.h when files
834 are migrated. Also fixes up #imports.
836 * MigrateHeaders.make:
838 2006-09-03 Sam Weinig <sam.weinig@gmail.com>
840 Reviewed by Darin and Tim H.
842 - patch for http://bugs.webkit.org/show_bug.cgi?id=10711
843 Auto-generate the Objective-C DOM Stylesheet bindings
845 * MigrateHeaders.make:
847 2006-09-02 Sam Weinig <sam.weinig@gmail.com>
851 - patch for http://bugs.webkit.org/show_bug.cgi?id=10684
852 Auto-generate the Objective-C DOM CSS bindings
854 * MigrateHeaders.make:
856 2006-09-01 MorganL <morlmor@yahoo.com>
858 Reviewed by Darin. Updated/landed by Adam.
860 Fixes http://bugs.webkit.org/show_bug.cgi?id=10553
864 (WebFrame::initWithName):
866 2006-09-01 Brady Eidson <beidson@apple.com>
870 A "never should be reached" method was reached - lets not release the shared database bridge, esp
871 since we never retain it!
873 * Misc/WebIconDatabase.m:
874 (-[WebIconDatabase _applicationWillTerminate:]): Don't release the bridge
876 2006-09-01 Darin Adler <darin@apple.com>
880 - a few small tweaks to the icon database bridge
882 * Misc/WebIconDatabase.m: (-[WebIconDatabase init]): Updated for name change.
884 * WebCoreSupport/WebIconDatabaseBridge.h: Removed unneeded declarations.
885 * WebCoreSupport/WebIconDatabaseBridge.m:
886 (-[WebIconDatabaseBridge init]): Added. Always returns nil since you're not supposed
887 to allocate one of these.
888 (-[WebIconDatabaseBridge _init]): Renamed from init. Used internally to make the
889 shared instance. Added the "self = [super init]" idiom even though it's not important
890 in this case just to be consistent.
891 (-[WebIconDatabaseBridge releaseCachedLoaderForIconURL:]): Moved this up in the file
892 so it can be called without declaring it in the header.
893 (+[WebIconDatabaseBridge sharedInstance]): Renamed. Calls the new _init. Also use
894 CFRetain for compatibility.
895 (-[WebIconDatabaseBridge dealloc]): Emptied this out and made it just assert (false).
896 (-[WebIconDatabaseBridge finalize]): Added and made it assert (false) too.
898 2006-09-01 Timothy Hatcher <timothy@apple.com>
902 Bug 10677: Omit "-webkit-text-security: none;" from the computed style list
903 http://bugs.webkit.org/show_bug.cgi?id=10677
905 * WebInspector/webInspector/inspector.js:
907 2006-08-31 Sam Weinig <sam.weinig@gmail.com>
911 - patch for http://bugs.webkit.org/show_bug.cgi?id=10669
912 Auto-generate the remaining Objective-C HTML DOM bindings
914 * MigrateHeaders.make:
916 2006-08-31 Adele Peterson <adele@apple.com>
920 WebKit part of fix for http://bugs.webkit.org/show_bug.cgi?id=10666
921 Password: Disallow Spelling, Font, Speech, and Writing Direction context menu
923 * DefaultDelegates/WebDefaultContextMenuDelegate.m: (-[WebDefaultUIDelegate editingContextMenuItemsForElement:defaultMenuItems:]):
924 Check that the selection isn't in a password field before adding these items to the default editing context menu.
925 Search In Google, Search In Spotlight, Look up in Dictionary, Spelling, Font, Speech, Writing Direction
926 * WebView/WebHTMLView.m: (-[WebHTMLView _isSelectionInPasswordField]): Added.
927 * WebView/WebHTMLViewPrivate.h:
929 2006-08-31 Sam Weinig <sam.weinig@gmail.com>
933 - patch for http://bugs.webkit.org/show_bug.cgi?id=10653
934 Auto-generate another 20 Objective-C DOM HTML bindings
936 * MigrateHeaders.make:
937 * WebKit.xcodeproj/project.pbxproj:
939 2006-08-31 Adele Peterson <adele@apple.com>
941 Reviewed by John Sullivan.
943 Removed wkSecureEventInput and wkSetSecureEventInput, since this can be done with API.
945 * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface):
947 2006-08-31 John Sullivan <sullivan@apple.com>
949 Reviewed by Tim Omernick
951 - fixed <rdar://problem/4711200> Loading history would be faster if it bypassed
952 NSURL API for local files
954 * History/WebHistory.m:
955 (-[WebHistoryPrivate _loadHistoryGutsFromURL:savedItemsCount:collectDiscardedItemsInto:error:]):
956 Load file URLs using [NSDictionary dictionaryWithContentsOfFile:]. I also cleaned up some minor
957 style issues in this method, and I removed the support for old NSArray-style history files (which we
958 stopped using before Safari 1.0).
960 2006-08-30 Adele Peterson <adele@apple.com>
964 WebKit part of fix for http://bugs.webkit.org/show_bug.cgi?id=10575
965 Enable secure input mode for new password fields
967 * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface):
969 2006-08-30 Brady Eidson <beidson@apple.com>
973 <rdar://problem/4707718> Change behavior so if the WebCore::IconDatabase can't open, WebKit releases the bridge and
974 continues on as if the IconDatabase is disabled.
976 * Misc/WebIconDatabase.m:
977 (-[WebIconDatabase init]): Release the bridge on failure to open
978 * WebCoreSupport/WebIconDatabaseBridge.m:
979 (+[WebIconDatabaseBridge sharedBridgeInstance]): Moved static shared instance out as a global
980 (-[WebIconDatabaseBridge dealloc]): Clear pointer to the shared instance
982 2006-08-30 Timothy Hatcher <timothy@apple.com>
986 Simplify the header copies from WebCore and JavaScriptCore.
987 Headers that need to be migrated from the other projects need
988 to be added to MigrateHeaders.make.
990 * MigrateHeaders.make: Added.
991 * WebKit.xcodeproj/project.pbxproj:
993 2006-08-30 Sam Weinig <sam.weinig@gmail.com>
997 - patch for http://bugs.webkit.org/show_bug.cgi?id=10640
998 Auto-generate 10 more Objective-C DOM HTML bindings
1000 * WebKit.xcodeproj/project.pbxproj:
1002 2006-08-30 Adele Peterson <adele@apple.com>
1006 WebKit part of fix for:
1007 http://bugs.webkit.org/show_bug.cgi?id=10576
1008 Disallow copy from new password fields
1010 * WebView/WebHTMLView.m:
1011 (-[WebHTMLView _canCopy]): Now also calls across the bridge to ask if it mayCopy.
1012 (-[WebHTMLView _canCut]): Calls _canCopy now.
1013 (-[NSArray validateUserInterfaceItem:]): Calls _canCut when validating the "Cut" menu item.
1014 This used to call _canDelete (which used to be the same as _canCut), but now _canCut also checks _canCopy.
1016 2006-08-30 Karl Adam <karladam@yahoo-inc.com>
1018 Reviewed by Eric and Tim H.
1020 Bug 10634: -webView:dragDestinationActionMaskForDraggingInfo: is ignored
1021 http://bugs.webkit.org/show_bug.cgi?id=10634
1023 Remove the check for canShowFile: from _web_bestURL: since
1024 it shouldn't be concerned with whether or not the view
1025 can show the URL, merely return the most appropriate URL.
1027 * Misc/WebNSPasteboardExtras.m:
1028 (-[NSPasteboard _web_bestURL]):
1029 * Misc/WebNSViewExtras.m:
1030 (-[NSView _web_dragOperationForDraggingInfo:]):
1032 2006-08-29 Brady Eidson <beidson@apple.com>
1034 Reviewed by Kevin Decker (Sarge)
1036 <rdar://problem/4678414> - New IconDB needs to delete icons when asked
1038 * Misc/WebIconDatabase.m:
1039 (-[WebIconDatabase removeAllIcons]): Call through to WebCore to remove icons, then send notification
1041 2006-08-29 Brady Eidson <beidson@apple.com>
1045 Added a truth value check for to setIconURL:forURL so WebKit can avoid sending a notification
1046 This is a win on the iBench
1048 * Misc/WebIconDatabase.m:
1049 (-[WebIconDatabase _setIconURL:forURL:]):
1051 2006-08-29 Brady Eidson <beidson@apple.com>
1053 Reviewed by Tim Hatchers rubber stamp
1055 Removed some accidentally left-in console spew during the conversion to the new DB
1057 * Misc/WebIconDatabase.m:
1058 (objectFromPathForKey): Nuked some NSLogs
1060 2006-08-29 Tim Omernick <timo@apple.com>
1062 Reviewed by Darin Adler.
1064 <rdar://problem/4688618> REGRESSION(10.4.7-9A241): JMol java applet fails in Safari not Firefox
1066 No layout test for now because Java doesn't work in DumpRenderTree.
1068 * Plugins/WebPluginDatabase.m:
1069 (-[WebPluginDatabase refresh]):
1070 Add each plug-in MIME type to registeredMIMETypes, even if we don't register a document view class for the
1071 MIME type. This fixes -[WebPluginDatabase isMIMETypeRegistered:] and thus fallback content for Java applets
1072 (we were always rendering fallback content, if any, for Java applets).
1074 2006-08-29 Sam Weinig <sam.weinig@gmail.com>
1078 - patch for http://bugs.webkit.org/show_bug.cgi?id=10628
1079 Auto-generate the remaining Objective-C DOM bindings
1081 Auto-generates DOMHTMLCollection, DOMHTMLElement, DOMHTMLFormElement,
1082 and DOMHTMLOptionsCollection.
1084 * WebKit.xcodeproj/project.pbxproj:
1086 2006-08-28 Brady Eidson <beidson@apple.com>
1090 Short of a few small snippets that still need to be pushed to WebCore, this
1091 is a final prune of WebIconDatabase. WebFileDatabase and WebLRUFileList are gone
1092 and the small remaining snippets of WebFileDatabase code that were still important
1093 are now in static functions in WebIconDatabase.m
1095 * Loader/WebIconLoader.m:
1096 (-[WebIconLoader didFinishLoading]): Removed the flag
1097 * Misc/WebFileDatabase.h: Removed.
1098 * Misc/WebFileDatabase.m: Removed.
1099 * Misc/WebIconDatabase.m:
1100 (+[WebIconDatabase sharedIconDatabase]):
1101 (-[WebIconDatabase init]):
1102 (-[WebIconDatabase iconForURL:withSize:cache:]):
1103 (-[WebIconDatabase iconURLForURL:]):
1104 (-[WebIconDatabase defaultIconWithSize:]):
1105 (-[WebIconDatabase retainIconForURL:]):
1106 (-[WebIconDatabase releaseIconForURL:]):
1107 (-[WebIconDatabase _isEnabled]):
1108 (-[WebIconDatabase _setIconData:forIconURL:]):
1109 (-[WebIconDatabase _setHaveNoIconForIconURL:]):
1110 (-[WebIconDatabase _setIconURL:forURL:]):
1111 (-[WebIconDatabase _hasEntryForIconURL:]):
1112 (-[WebIconDatabase _applicationWillTerminate:]):
1113 (-[WebIconDatabase _resetCachedWebPreferences:]):
1114 (uniqueFilePathForKey): Added from WebFileDatabase
1115 (objectFromPathForKey): Added from WebFileDatabase
1116 (iconDataFromPathForIconURL):
1117 (-[WebIconDatabase _convertToWebCoreFormat]): Make use of static functions and local variables
1118 instead of using WebFileDatabase and WebIconDatabase variables that are now obsolete
1119 * Misc/WebIconDatabasePrivate.h: Removed alot of obsoleted members
1120 * Misc/WebLRUFileList.h: Removed.
1121 * Misc/WebLRUFileList.m: Removed.
1122 * WebKit.xcodeproj/project.pbxproj: Deleted 4 files
1123 * WebKitPrefix.h: Removed ICONDEBUG
1125 2006-08-28 Tim Omernick <timo@apple.com>
1127 Reviewed by Darin Adler.
1129 * Plugins/WebBaseNetscapePluginView.m:
1130 (-[WebBaseNetscapePluginView createPluginScriptableObject]):
1131 Removed a bogus typecast.
1133 2006-08-28 Tim Omernick <timo@apple.com>
1135 Reviewed by John Sullivan.
1137 Part of <rdar://problem/4481553> NetscapeMoviePlugIn example code scripting doesn't work in Firefox (4319)
1138 <http://bugs.webkit.org/show_bug.cgi?id=4319>: NetscapeMoviePlugIn example code scripting doesn't work
1141 * Plugins/WebBaseNetscapePluginView.h:
1142 * Plugins/WebBaseNetscapePluginView.m:
1143 (-[WebBaseNetscapePluginView createPluginScriptableObject]):
1144 Renamed this method (see corresponding WebCore ChangeLog entry for an explanation).
1147 2006-08-28 Brady Eidson <beidson@apple.com>
1149 Reviewed by Tim Hatcher's rubberstamp
1151 Rolled out my last change (16070 - pruning WebFileDatabase code) as it caused a difficult-to-track down
1152 failure in layout tests on a release build.
1154 * Misc/WebFileDatabase.h:
1155 * Misc/WebFileDatabase.m:
1156 (+[WebFileDatabaseOp opWithCode:key:object:]):
1157 (-[WebFileDatabaseOp initWithCode:key:object:]):
1158 (-[WebFileDatabaseOp opcode]):
1159 (-[WebFileDatabaseOp key]):
1160 (-[WebFileDatabaseOp object]):
1161 (-[WebFileDatabaseOp perform:]):
1162 (-[WebFileDatabaseOp dealloc]):
1163 (SetThreadPriority):
1164 (-[WebFileDatabase _createLRUList:]):
1165 (-[WebFileDatabase _truncateToSizeLimit:]):
1166 (+[WebFileDatabase _syncLoop:]):
1168 (-[WebFileDatabase setTimer]):
1169 (-[WebFileDatabase setObject:forKey:]):
1170 (-[WebFileDatabase removeObjectForKey:]):
1171 (-[WebFileDatabase removeAllObjects]):
1172 (-[WebFileDatabase objectForKey:]):
1173 (-[WebFileDatabase performSetObject:forKey:]):
1174 (-[WebFileDatabase performRemoveObjectForKey:]):
1175 (-[WebFileDatabase open]):
1176 (-[WebFileDatabase close]):
1177 (-[WebFileDatabase lazySync:]):
1178 (-[WebFileDatabase sync]):
1179 (-[WebFileDatabase sizeLimit]):
1180 (-[WebFileDatabase count]):
1181 (-[WebFileDatabase usage]):
1182 (-[WebFileDatabase setSizeLimit:]):
1183 * Misc/WebIconDatabase.m:
1184 (-[WebIconDatabase _createFileDatabase]):
1185 (-[WebIconDatabase _loadIconDictionaries]):
1186 * WebKit.xcodeproj/project.pbxproj:
1188 2006-08-28 Darin Adler <darin@apple.com>
1190 Reviewed by Tim Hatcher.
1192 * WebInspector/webInspector/inspector.js: Add "resize: none" to the list of
1193 default values for CSS properties so it will be omitted from most displays
1196 2006-08-28 Brady Eidson <beidson@apple.com>
1200 Major prune of unnecessary WebFileDatabase code. In the end, what
1201 useful code that remains in WebFileDatabase will likely be moved directly
1202 into WebIconDatabase
1204 * Misc/WebFileDatabase.h:
1205 * Misc/WebFileDatabase.m:
1206 (-[WebFileDatabase initWithPath:]):
1207 (-[WebFileDatabase objectForKey:]):
1208 (-[WebFileDatabase open]):
1209 (-[WebFileDatabase close]):
1210 * Misc/WebIconDatabase.m:
1211 (-[WebIconDatabase _createFileDatabase]):
1212 (-[WebIconDatabase _loadIconDictionaries]):
1213 * Misc/WebLRUFileList.h: Removed.
1214 * Misc/WebLRUFileList.m: Removed.
1215 * WebKit.xcodeproj/project.pbxproj:
1217 2006-08-27 Sam Weinig <sam.weinig@gmail.com>
1221 - patch for http://bugs.webkit.org/show_bug.cgi?id=4624
1222 WebCore needs autogenerated Obj-C DOM bindings
1224 First round of auto-generated Objective C DOM bindings, starting
1227 * WebKit.xcodeproj/project.pbxproj:
1229 2006-08-25 Brady Eidson <beidson@apple.com>
1231 Reviewed by Tim Hatcher
1233 Fixed up some leaks on [WebIconDatabase init]
1235 * Misc/WebIconDatabase.m:
1236 (-[WebIconDatabase init]):
1238 2006-08-24 Timothy Hatcher <timothy@apple.com>
1242 * WebView/WebFrame.m:
1243 (-[WebFrame _updateBackground]): reworded the comment about scroll view and setDrawsBackground:YES
1244 * WebView/WebView.m:
1245 (-[WebViewPrivate dealloc]): release the background color
1247 2006-08-24 Timothy Hatcher <timothy@apple.com>
1251 WebView API to allow changing the background color that draws under transparent page backgrounds.
1253 * WebView/WebFrame.m:
1254 (-[WebFrame _makeDocumentView]):
1255 (-[WebFrame _updateBackground]):
1256 * WebView/WebFrameInternal.h:
1257 * WebView/WebFrameView.m:
1258 (-[WebFrameView drawRect:]):
1259 * WebView/WebView.m:
1260 (-[WebView setBackgroundColor:]):
1261 (-[WebView backgroundColor]):
1262 (-[WebView _commonInitializationWithFrameName:groupName:]):
1263 (-[WebView setDrawsBackground:]):
1264 * WebView/WebViewPrivate.h:
1266 2006-08-24 Timothy Hatcher <timothy@apple.com>
1270 Fix for Mail stationary. Selecting a stationary item would cause this exception.
1271 *** -[WebSubresourceLoader copyWithZone:]: selector not recognized
1272 Uncaught exception - *** -[WebSubresourceLoader copyWithZone:]: selector not recognized
1274 * Loader/WebFrameLoader.m:
1275 (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
1276 Use _webkit_setObject:forUncopiedKey: when addign the resource to pendingArchivedResources.
1278 2006-08-23 Maciej Stachowiak <mjs@apple.com>
1282 - fix assertion which I accidentally changed to one that sometimes fails
1283 http://bugs.webkit.org/show_bug.cgi?id=10531
1285 * Loader/WebDocumentLoadState.m:
1286 (-[WebDocumentLoadState dealloc]):
1287 * WebView/WebDataSource.m:
1288 (-[WebDataSourcePrivate dealloc]):
1289 (-[WebDataSource dealloc]):
1291 2006-08-23 Maciej Stachowiak <mjs@apple.com>
1295 - move WebFrame code that creates WebDataSources down to WebFrameLoader, in preparation
1296 for WebFrameLoader just holding on to WebDocumentLoadState
1298 * Loader/WebFrameLoader.h:
1299 * Loader/WebFrameLoader.m:
1300 (-[WebFrameLoader _loadRequest:archive:]):
1301 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
1302 (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
1303 (-[WebFrameLoader reload]):
1304 * WebView/WebFrame.m:
1305 (-[WebFrame _loadItem:withLoadType:]):
1306 (-[WebFrame _continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
1307 (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
1308 (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
1309 (-[WebFrame _shouldReloadToHandleUnreachableURLFromRequest:]):
1310 (-[WebFrame loadRequest:]):
1311 (-[WebFrame loadArchive:]):
1312 (-[WebFrame reload]):
1313 * WebView/WebFrameInternal.h:
1314 * WebView/WebFramePrivate.h:
1315 * WebView/WebView.m:
1316 (-[WebView setCustomTextEncodingName:]):
1318 2006-08-23 Brady Eidson <beidson@apple.com>
1322 First pass at pruning unused WebIconDatabase code. Focus on removing methods that simply
1323 have no place in the new DB at all. A few renames and a few important FIXMEs result, but no
1324 functionality changes.
1326 * Loader/WebIconLoader.m:
1327 (-[WebIconLoader didFinishLoading]): Call to WebIconDatabase instead of directly to the bridge
1328 * Misc/WebIconDatabase.h:
1329 * Misc/WebIconDatabase.m:
1330 (-[WebIconDatabase init]):
1331 (-[WebIconDatabase iconForURL:withSize:cache:]):
1332 (-[WebIconDatabase iconURLForURL:]):
1333 (-[WebIconDatabase defaultIconWithSize:]):
1334 (-[WebIconDatabase retainIconForURL:]):
1335 (-[WebIconDatabase releaseIconForURL:]):
1336 (-[WebIconDatabase removeAllIcons]):
1337 (-[WebIconDatabase _setIconData:forIconURL:]):
1338 (-[WebIconDatabase _setHaveNoIconForIconURL:]):
1339 (-[WebIconDatabase _setIconURL:forURL:]):
1340 (-[WebIconDatabase _hasEntryForIconURL:]):
1341 (-[WebIconDatabase _applicationWillTerminate:]):
1342 (-[WebIconDatabase _resetCachedWebPreferences:]):
1343 * Misc/WebIconDatabasePrivate.h: Changed setIcon: to setIconData:
1345 2006-08-23 Maciej Stachowiak <mjs@apple.com>
1349 - started factoring most of the guts of WebDataSource into a new class
1351 WebDocumentLoadState is decoupled from the rest of WebKit and will
1352 be moved down to WebCore. I only moved one of the data fields of
1353 WebDataSource for now.
1355 * Loader/WebDocumentLoadState.h: Added.
1356 * Loader/WebDocumentLoadState.m: Added.
1357 (-[WebDocumentLoadState initWithRequest:]): New class.
1358 (-[WebDocumentLoadState dealloc]):
1359 (-[WebDocumentLoadState setFrameLoader:]):
1360 (-[WebDocumentLoadState setMainResourceData:]):
1361 (-[WebDocumentLoadState mainResourceData]):
1362 * Loader/WebFrameLoader.m:
1363 (-[WebFrameLoader _setDataSource:]): Remove redundant _setWebFrame: call,
1364 it would have been called already by this point.
1365 (-[WebFrameLoader _setProvisionalDataSource:]): ditto.
1366 * WebKit.xcodeproj/project.pbxproj:
1367 * WebView/WebDataSource.m:
1368 (-[WebDataSourcePrivate dealloc]):
1369 (-[WebDataSource _setWebFrame:]):
1370 (-[WebDataSource _setPrimaryLoadComplete:]):
1371 (-[WebDataSource initWithRequest:]):
1372 (-[WebDataSource data]):
1374 2006-08-23 Maciej Stachowiak <mjs@apple.com>
1378 - refactoring of WebDataSource in preparation for moving a bunch of it to a new class
1380 - minimize WebDataSourceInternal.h to be only methods called from outside WebDataSource
1381 - reduce Private category implementation to be only the SPI methods
1382 - make new Internal and FileInternal categories which contain the
1383 remainder (depending on whether they are called from outside of
1386 * WebView/WebDataSource.m:
1387 (-[WebDataSource _setMainDocumentError:]):
1388 (addTypesFromClass):
1389 (+[WebDataSource _representationClassForMIMEType:]):
1390 (-[WebDataSource _commitIfReady]):
1391 (-[WebDataSource _commitLoadWithData:]):
1392 (-[WebDataSource _doesProgressiveLoadWithMIMEType:]):
1393 (-[WebDataSource _addResponse:]):
1394 (-[WebDataSource _revertToProvisionalState]):
1395 (-[WebDataSource _mainDocumentError]):
1396 (-[WebDataSource _addSubframeArchives:]):
1397 (-[WebDataSource _fileWrapperForURL:]):
1398 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
1399 (-[WebDataSource _decidePolicyForMIMEType:decisionListener:]):
1400 (-[WebDataSource _finishedLoading]):
1401 (-[WebDataSource _setResponse:]):
1402 (-[WebDataSource _setRequest:]):
1403 (-[WebDataSource _setupForReplaceByMIMEType:]):
1404 (-[WebDataSource _receivedMainResourceError:complete:]):
1405 (-[WebDataSource _mainReceivedError:complete:]):
1406 (-[WebDataSource _defersCallbacks]):
1407 (-[WebDataSource _downloadWithLoadingConnection:request:response:proxy:]):
1408 (-[WebDataSource _didFailLoadingWithError:forResource:]):
1409 (-[WebDataSource _didFinishLoadingForResource:]):
1410 (-[WebDataSource _didReceiveData:contentLength:forResource:]):
1411 (-[WebDataSource _didReceiveResponse:forResource:]):
1412 (-[WebDataSource _didCancelAuthenticationChallenge:forResource:]):
1413 (-[WebDataSource _didReceiveAuthenticationChallenge:forResource:]):
1414 (-[WebDataSource _willSendRequest:forResource:redirectResponse:]):
1415 (-[WebDataSource _identifierForInitialRequest:]):
1416 (-[WebDataSource _archivedSubresourceForURL:]):
1417 (-[WebDataSource _startLoading]):
1418 (-[WebDataSource _stopRecordingResponses]):
1419 (-[WebDataSource _loadingStartedTime]):
1420 (-[WebDataSource _replaceSelectionWithArchive:selectReplacement:]):
1421 (-[WebDataSource _documentFragmentWithArchive:]):
1422 (-[WebDataSource _documentFragmentWithImageResource:]):
1423 (-[WebDataSource _imageElementWithImageResource:]):
1424 (-[WebDataSource _title]):
1425 (-[WebDataSource _isStopping]):
1426 (-[WebDataSource _setWebFrame:]):
1427 (-[WebDataSource _URL]):
1428 (-[WebDataSource _loadFromPageCache:]):
1429 (-[WebDataSource _popSubframeArchiveWithName:]):
1430 (-[WebDataSource _setIsClientRedirect:]):
1431 (-[WebDataSource _setURL:]):
1432 (-[WebDataSource _setLastCheckedRequest:]):
1433 (-[WebDataSource _defersCallbacksChanged]):
1434 (-[WebDataSource _lastCheckedRequest]):
1435 (-[WebDataSource _stopLoading]):
1436 (-[WebDataSource _bridge]):
1437 (-[WebDataSource _webView]):
1438 (-[WebDataSource _triggeringAction]):
1439 (-[WebDataSource _setTriggeringAction:]):
1440 (-[WebDataSource __adoptRequest:]):
1441 (-[WebDataSource _isDocumentHTML]):
1442 (-[WebDataSource _stopLoadingWithError:]):
1443 (-[WebDataSource _setPrimaryLoadComplete:]):
1444 (-[WebDataSource _responses]):
1445 (-[WebDataSource _makeRepresentation]):
1446 (-[WebDataSource _isClientRedirect]):
1447 (-[WebDataSource _originalRequest]):
1448 (-[WebDataSource _URLForHistory]):
1449 (-[WebDataSource _addToUnarchiveState:]):
1450 (-[WebDataSource _setOverrideEncoding:]):
1451 (-[WebDataSource _setIconURL:]):
1452 (-[WebDataSource _setIconURL:withType:]):
1453 (-[WebDataSource _overrideEncoding]):
1454 (-[WebDataSource _setTitle:]):
1455 * WebView/WebDataSourceInternal.h:
1457 2006-08-23 Brady Eidson <beidson@apple.com>
1459 Reviewed by John Sullivan
1462 Flip the switch to the new Icon Database
1463 Massive code pruning is coming up
1465 * WebKitPrefix.h: Flipped the switch
1467 2006-08-23 Brady Eidson <beidson@apple.com>
1470 Since I just pushed the default URL icon from WebKit to WebCore, but
1471 WebKit was still using its version of the default icon, this patch makes it
1472 use the WebCore version
1474 * Misc/WebIconDatabase.m:
1475 (-[WebIconDatabase defaultIconWithSize:]):
1477 2006-08-22 Maciej Stachowiak <mjs@apple.com>
1481 - remove "loading" flag from WebDataSource and code that manages it; it is redundat.
1483 * Loader/WebFrameLoader.m:
1484 (-[WebFrameLoader addPlugInStreamLoader:]):
1485 (-[WebFrameLoader removePlugInStreamLoader:]):
1486 (-[WebFrameLoader addSubresourceLoader:]):
1487 (-[WebFrameLoader removeSubresourceLoader:]):
1488 * WebView/WebDataSource.m:
1489 (-[WebDataSourcePrivate dealloc]):
1490 (-[WebDataSource _setPrimaryLoadComplete:]):
1491 (-[WebDataSource _stopLoading]):
1492 (-[WebDataSource _prepareForLoadStart]):
1493 (-[WebDataSource _startLoading]):
1494 (-[WebDataSource isLoading]):
1495 * WebView/WebDataSourceInternal.h:
1497 2006-08-22 Maciej Stachowiak <mjs@apple.com>
1501 <rdar://problem/4683948> REGRESSION: Assertion failure in [FrameProgressEntry addChild:forDataSource:] (fandango.com)
1503 * Loader/WebFrameLoader.m:
1504 (-[WebFrameLoader addSubresourceLoader:]): Add a WebKit-level assertion that should fire when this bad
1506 * Loader/WebSubresourceLoader.m:
1507 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]): Prevent
1508 the situation from occuring.
1510 2006-08-22 Maciej Stachowiak <mjs@apple.com>
1514 - pull more WebDataSource code into WebFrameLoader
1515 - make WebMainResourceLoader not depend on WebKit or on SPI
1517 * Loader/WebFrameLoader.h:
1518 * Loader/WebFrameLoader.m:
1519 (-[WebFrameLoader _downloadWithLoadingConnection:request:response:proxy:]):
1520 (-[WebFrameLoader _updateIconDatabaseWithURL:]):
1521 (-[WebFrameLoader _notifyIconChanged:]):
1522 (-[WebFrameLoader _iconLoaderReceivedPageIcon:]):
1523 (-[WebFrameLoader _checkNavigationPolicyForRequest:andCall:withSelector:]):
1524 (-[WebFrameLoader _checkContentPolicyForMIMEType:andCall:withSelector:]):
1525 (-[WebFrameLoader cancelContentPolicy]):
1526 * Loader/WebIconLoader.m:
1527 (-[WebIconLoader didFinishLoading]):
1528 * Loader/WebLoader.m:
1529 (-[NSURLProtocol loadWithRequest:]):
1530 (-[NSURLProtocol setDefersCallbacks:]):
1531 * Loader/WebMainResourceLoader.h:
1532 * Loader/WebMainResourceLoader.m:
1533 (-[WebMainResourceLoader initWithFrameLoader:]):
1534 (-[WebMainResourceLoader dealloc]):
1535 (-[WebMainResourceLoader cancelWithError:]):
1536 (-[WebMainResourceLoader continueAfterNavigationPolicy:formState:]):
1537 (-[WebMainResourceLoader willSendRequest:redirectResponse:]):
1538 (-[WebMainResourceLoader continueAfterContentPolicy:]):
1539 (-[WebMainResourceLoader checkContentPolicy]):
1540 (-[WebMainResourceLoader didReceiveResponse:]):
1541 * Plugins/WebPluginContainerCheck.m:
1542 * WebCoreSupport/WebSystemInterface.m:
1543 (InitWebCoreSystemInterface):
1544 * WebView/WebDataSource.m:
1545 (-[WebDataSource _loadIcon]):
1546 (-[WebDataSource _cancelledError]):
1547 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
1548 (+[WebDataSource _representationClassForMIMEType:]):
1549 (-[WebDataSource _commitLoadWithData:]):
1550 (-[WebDataSource _isDocumentHTML]):
1551 * WebView/WebDataSourceInternal.h:
1552 * WebView/WebFramePrivate.h:
1553 * WebView/WebPolicyDelegate.m:
1554 * WebView/WebPolicyDelegatePrivate.h:
1556 2006-08-21 Maciej Stachowiak <mjs@apple.com>
1560 - move more code from WebDataSource to WebFrameLoader
1562 Also marked a few more methods in WebDataSource as likely MOVABLE in a future round, since they do not
1563 use any of WebDataSource's private data.
1565 * Loader/WebFrameLoader.h:
1566 * Loader/WebFrameLoader.m:
1567 (-[WebFrameLoader addPlugInStreamLoader:]):
1568 (-[WebFrameLoader removePlugInStreamLoader:]):
1569 (-[WebFrameLoader addSubresourceLoader:]):
1570 (-[WebFrameLoader removeSubresourceLoader:]):
1571 (-[WebFrameLoader _didReceiveAuthenticationChallenge:forResource:]):
1572 (-[WebFrameLoader _didCancelAuthenticationChallenge:forResource:]):
1573 (-[WebFrameLoader _didReceiveResponse:forResource:]):
1574 (-[WebFrameLoader _didReceiveData:contentLength:forResource:]):
1575 (-[WebFrameLoader _didFinishLoadingForResource:]):
1576 (-[WebFrameLoader _didFailLoadingWithError:forResource:]):
1577 (-[WebFrameLoader _privateBrowsingEnabled]):
1578 (-[WebFrameLoader _finishedLoadingResource]):
1579 (-[WebFrameLoader _receivedError:]):
1580 (-[WebFrameLoader _finishedLoading]):
1581 * Loader/WebMainResourceLoader.m:
1582 (-[WebMainResourceLoader didReceiveData:lengthReceived:allAtOnce:]):
1583 (-[WebMainResourceLoader didFinishLoading]):
1584 * Loader/WebNetscapePlugInStreamLoader.m:
1585 (-[WebNetscapePlugInStreamLoader didFinishLoading]):
1586 (-[WebNetscapePlugInStreamLoader didFailWithError:]):
1587 (-[WebNetscapePlugInStreamLoader cancelWithError:]):
1588 * Loader/WebSubresourceLoader.m:
1589 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
1590 (-[WebSubresourceLoader signalFinish]):
1591 (-[WebSubresourceLoader didFailWithError:]):
1592 (-[WebSubresourceLoader cancel]):
1593 * Plugins/WebNetscapePluginStream.m:
1594 (-[WebNetscapePluginStream start]):
1595 * WebView/WebDataSource.m:
1596 (-[WebDataSource _replaceSelectionWithArchive:selectReplacement:]):
1597 (-[WebDataSource _updateIconDatabaseWithURL:]):
1598 (-[WebDataSource _loadIcon]):
1599 (-[WebDataSource _setPrimaryLoadComplete:]):
1600 (-[WebDataSource _cancelledError]):
1601 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
1602 (+[WebDataSource _representationClassForMIMEType:]):
1603 (-[WebDataSource _commitLoadWithData:]):
1604 (-[WebDataSource _receivedMainResourceError:complete:]):
1605 (-[WebDataSource _iconLoaderReceivedPageIcon:]):
1606 (-[WebDataSource _isDocumentHTML]):
1607 * WebView/WebDataSourceInternal.h:
1609 2006-08-21 Brady Eidson <beidson@apple.com>
1613 Quick ICONDEBUG flag fix
1615 * Misc/WebIconDatabase.m:
1616 (-[WebIconDatabase _applicationWillTerminate:]):
1618 2006-08-21 Brady Eidson <beidson@apple.com>
1622 -Renamed an internal only method for clarity
1623 -Tweaked WebDataSource for notification purposes with the new expiring icons
1624 -Fixed a bug with the ICONDEBUG flag
1626 * Misc/WebIconDatabase.m:
1627 (-[WebIconDatabase init]):
1628 (-[WebIconDatabase iconForURL:withSize:cache:]): #ifdef bug fixed
1629 (-[WebIconDatabase _hasEntryForIconURL:]): Renamed for clarity
1630 * Misc/WebIconDatabasePrivate.h:
1631 * WebView/WebDataSource.m:
1632 (-[WebDataSource _updateIconDatabaseWithURL:]):
1633 (-[WebDataSource _notifyIconChanged:]):
1634 (-[WebDataSource _loadIcon]):
1635 (-[WebDataSource _iconLoaderReceivedPageIcon:]):
1637 2006-08-17 Maciej Stachowiak <mjs@apple.com>
1641 - pull a bit of WebDataSource code into WebFrameLoader
1643 * Loader/WebFrameLoader.m:
1644 (-[WebFrameLoader _receivedError:]):
1645 (-[WebFrameLoader webFrame]):
1646 (-[WebFrameLoader _handleFallbackContent]):
1647 (+[WebFrameLoader _canShowMIMEType:]):
1648 (+[WebFrameLoader _representationExistsForURLScheme:]):
1649 (+[WebFrameLoader _generatedMIMETypeForURLScheme:]):
1650 * WebView/WebDataSource.m:
1651 * WebView/WebDataSourceInternal.h:
1653 2006-08-17 Timothy Hatcher <timothy@apple.com>
1655 Reviewed by Kevin Decker.
1657 <rdar://problem/4606857> WebKit: WebPreferencesChangedNotification not exported in 64-bit
1661 2006-08-17 Timothy Hatcher <timothy@apple.com>
1663 Reviewed by Kevin Decker.
1665 <rdar://problem/4633896> -[WebView close] should clear all delegates and call setHostWindow:nil
1666 <rdar://problem/4649759> Crash when selecting View Source menu using Chinese (-[WebView _close])
1668 Check to make sure _private is not null. A WebView can be dealloced before _private is setup.
1669 Set the _private->closed flag at the beginning of _close to prevent reentry.
1670 Set the host window and all the delegates to nil in _close.
1672 * WebView/WebView.m:
1673 (-[WebView _close]):
1675 2006-08-16 Brady Eidson <beidson@apple.com>
1679 * Misc/WebIconDatabase.m: Pruned unused method
1680 * Misc/WebIconDatabasePrivate.h: Ditto
1683 2006-08-15 Maciej Stachowiak <mjs@apple.com>
1685 Reviewed by Adele (preliminary version) and later by Kevin.
1687 - remove most WebKit dependencies from WebMainResourceLoader.
1689 * Loader/WebFrameLoader.h:
1690 * Loader/WebFrameLoader.m:
1691 (-[WebFrameLoader cannotShowMIMETypeForURL:]):
1692 (-[WebFrameLoader interruptForPolicyChangeErrorWithRequest:]):
1693 (-[WebFrameLoader isHostedByObjectElement]):
1694 (-[WebFrameLoader isLoadingMainFrame]):
1695 (+[WebFrameLoader _canShowMIMEType:]):
1696 (+[WebFrameLoader _representationExistsForURLScheme:]):
1697 (+[WebFrameLoader _generatedMIMETypeForURLScheme:]):
1698 * Loader/WebMainResourceLoader.h:
1699 * Loader/WebMainResourceLoader.m:
1700 (-[WebMainResourceLoader interruptForPolicyChangeError]):
1701 (-[WebMainResourceLoader willSendRequest:redirectResponse:]):
1702 (isCaseInsensitiveEqual):
1703 (shouldLoadAsEmptyDocument):
1704 (-[WebMainResourceLoader continueAfterContentPolicy:response:]):
1705 (-[WebMainResourceLoader didReceiveResponse:]):
1706 (-[WebMainResourceLoader didReceiveData:lengthReceived:allAtOnce:]):
1707 (-[WebMainResourceLoader didFinishLoading]):
1708 (-[WebMainResourceLoader loadWithRequestNow:]):
1709 (-[WebMainResourceLoader loadWithRequest:]):
1711 2006-08-15 Tim Omernick <timo@apple.com>
1713 Reviewed by Kevin Decker.
1715 * Plugins/WebNetscapePluginPackage.m:
1716 (-[WebNetscapePluginPackage _unloadWithShutdown:]):
1717 Fixed a subtle problem with the 64-bit debug build -- as written, this would LOG() on 64-bit and do nothing on
1719 * Plugins/WebPluginDatabase.m:
1720 (-[WebPluginDatabase _scanForNewPlugins]):
1721 Use +[NSMutableSet set] here.
1723 2006-08-15 Tim Omernick <timo@apple.com>
1725 Reviewed by Darin Adler.
1727 <http://bugs.webkit.org/show_bug.cgi?id=8980>
1728 ASSERTION FAILED: !isLoaded (WebKit/WebKit/Plugins/WebBasePluginPackage.m:228 -[WebBasePluginPackage dealloc])
1730 <rdar://problem/4526052> intermittent assertion failure in -[WebBasePluginPackage dealloc] running layout tests (8980)
1732 * Plugins/WebPluginDatabase.h:
1733 * Plugins/WebPluginDatabase.m:
1734 (+[WebPluginDatabase installedPlugins]):
1735 Observe NSApplicationWillTerminateNotification so we can unload plug-ins on quit.
1736 (-[WebPluginDatabase plugins]):
1737 'plugins' is now a dictionary.
1738 (-[WebPluginDatabase close]):
1739 Call new -_removePlugin: method.
1740 (-[WebPluginDatabase refresh]):
1741 Moved parts of this method out into other methods: -_addPlugin:, -_removePlugin:, and -_scanForNewPlugins.
1742 (-[WebPluginDatabase _plugInPaths]):
1743 No changes; just moved in file.
1744 (-[WebPluginDatabase _addPlugin:]):
1745 New method. Refactored from -refresh. Adds a plug-in to the database.
1746 (-[WebPluginDatabase _removePlugin:]):
1747 New method. Refactored from -refresh. Remove a plug-in from the database.
1748 (-[WebPluginDatabase _scanForNewPlugins]):
1749 New method. Refactored from -refresh. Returns the list of plug-in packages on disk.
1750 (-[WebPluginDatabase _applicationWillTerminate]):
1751 New method. Called when the application terminates. Closes the plug-in database so that all plug-ins are
1752 removed from the DB (and unloaded if necessary).
1754 * Plugins/WebBasePluginPackage.h:
1755 * Plugins/WebBasePluginPackage.m:
1756 (-[WebBasePluginPackage initWithPath:]):
1757 Try to create the NSBundle first, so if the file is not a valid bundle we bail out early. This
1758 avoids some stat()s and allocations during the plug-in refresh process.
1759 (-[WebBasePluginPackage isLoaded]):
1761 (-[WebBasePluginPackage load]):
1762 Base class for plug-in packages now always loads "successfully".
1763 (-[WebBasePluginPackage dealloc]):
1764 Removed this assertion. The base plug-in package class has no concept of
1766 (-[WebBasePluginPackage finalize]):
1768 (-[WebBasePluginPackage wasRemovedFromPluginDatabase:]):
1769 Moved code to unload plug-in package to WebNetscapePluginPackage. Not all plug-in
1770 packages can be "unloaded".
1772 * Plugins/WebNetscapePluginPackage.h:
1773 * Plugins/WebNetscapePluginPackage.m:
1774 (-[WebNetscapePluginPackage _unloadWithShutdown:]):
1775 Combined old -unload and -unloadWithoutShutdown methods into this new one.
1776 (-[WebNetscapePluginPackage initWithPath:]):
1777 Call new unload method.
1778 (-[WebNetscapePluginPackage load]):
1780 (-[WebNetscapePluginPackage wasRemovedFromPluginDatabase:]):
1782 (-[WebNetscapePluginPackage open]):
1783 New method. Called when a plug-in instance starts running.
1784 (-[WebNetscapePluginPackage close]):
1785 New method. Called when a plug-in instance stops running. When all plug-in instances
1786 close the plug-in package, and the plug-in package is removed from the database, the plug-in
1789 * Plugins/WebPluginPackage.m:
1790 (-[WebPluginPackage initWithPath:]):
1791 (-[WebPluginPackage load]):
1792 Made this a bit more efficient by checking if the bundle is already loaded.
1793 (-[WebBasePluginPackage unload]):
1795 (-[WebBasePluginPackage isLoaded]):
1798 * Plugins/WebBaseNetscapePluginView.m:
1799 (-[WebBaseNetscapePluginView start]):
1800 Open the plug-in package so it remains loaded while this instance uses it.
1801 (-[WebBaseNetscapePluginView stop]):
1802 Close the plug-in package when the plug-in instance is stopped.
1804 * Plugins/WebBaseNetscapePluginStream.m:
1805 (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:]):
1806 This check is not necessary. Netscape plug-in packages are never unloaded until all their instances have
1807 been stopped, and a Netscape plug-in instance will stop its streams when it is stopped.
1808 (-[WebBaseNetscapePluginStream _destroyStream]):
1810 (-[WebBaseNetscapePluginStream finishedLoadingWithData:]):
1812 (-[WebBaseNetscapePluginStream _deliverData]):
1815 2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
1819 Build fix: DWARF and -gfull are incompatible with symbol separation.
1821 * WebKit.xcodeproj/project.pbxproj:
1823 2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
1827 http://bugs.webkit.org/show_bug.cgi?id=10394
1828 Bug 10394: WebKit Release and Production configurations should enable dead code stripping
1830 * WebKit.xcodeproj/project.pbxproj:
1832 2006-08-15 Maciej Stachowiak <mjs@apple.com>
1836 - remove WebKit dependencies from WebPlugInStreamLoader via a protocol veil of ignorance
1838 * Loader/WebNetscapePlugInStreamLoader.h:
1839 * Loader/WebNetscapePlugInStreamLoader.m:
1840 (-[WebNetscapePlugInStreamLoader initWithDelegate:frameLoader:]):
1841 * Loader/WebPlugInStreamLoaderDelegate.h: Added.
1842 * Plugins/WebBaseNetscapePluginStream.h:
1843 * Plugins/WebNetscapePluginStream.m:
1844 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
1845 * WebKit.xcodeproj/project.pbxproj:
1847 2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
1851 http://bugs.webkit.org/show_bug.cgi?id=10384
1852 Bug 10384: Switch to DWARF for Release configuration
1854 * WebKit.xcodeproj/project.pbxproj:
1856 2006-08-15 Graham Dennis <graham.dennis@gmail.com>
1860 - patch for http://bugs.webkit.org/show_bug.cgi?id=10314
1861 WebUnarchivingState archivedResourceForURL: doesn't work
1863 * WebView/WebUnarchivingState.m:
1864 (-[WebUnarchivingState archivedResourceForURL:]):
1865 Fixed to get objects from the archived resources dictionary using
1866 the URL as a string instead of as the URL itself (as this is how
1867 the data is put into the dictionary).
1869 2006-08-14 Maciej Stachowiak <mjs@apple.com>
1873 - remove many (but not all) WebKit dependencies from WebNetscapePlugInStreamLoader (it still
1874 depends on WebNetscapePluginStream).
1876 * Loader/WebFrameLoader.h:
1877 * Loader/WebFrameLoader.m:
1878 (-[WebFrameLoader fileDoesNotExistErrorWithResponse:]):
1879 * Loader/WebNetscapePlugInStreamLoader.h:
1880 * Loader/WebNetscapePlugInStreamLoader.m:
1881 (-[WebNetscapePlugInStreamLoader initWithStream:frameLoader:]):
1882 (-[WebNetscapePlugInStreamLoader releaseResources]):
1883 (-[WebNetscapePlugInStreamLoader didReceiveResponse:]):
1884 * Plugins/WebNetscapePluginStream.m:
1885 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
1887 2006-08-14 Maciej Stachowiak <mjs@apple.com>
1889 Reviewed by Tim Omernick.
1891 - fixed REGRESSION: crash when leaving youtube page while movie is still loading
1892 http://bugs.webkit.org/show_bug.cgi?id=10398
1894 * Loader/WebNetscapePlugInStreamLoader.m:
1895 (-[WebNetscapePlugInStreamLoader initWithStream:view:]): Set the frame loader for this stream.
1896 (-[WebNetscapePlugInStreamLoader cancelWithError:]): Make sure to destroy the stream as well;
1897 otherwise, when we try to clean up later, we won't have the right context.
1899 2006-08-14 David Hyatt <hyatt@apple.com>
1901 Fix for Radar bug 4478840, Safari should not reduce null events sent to
1902 plug-ins in windows that are inactive but visible.
1904 With this fix you can view videos in visible background windows on YouTube
1905 (for example) and not see any drop in frame rate.
1909 * Plugins/WebBaseNetscapePluginView.m:
1910 (-[WebBaseNetscapePluginView restartNullEvents]):
1912 2006-08-14 Maciej Stachowiak <mjs@apple.com>
1916 - removed WebKit-level dependencies from WebFormDataStream. Use WebCore version of system interface
1918 * Loader/WebFormDataStream.m:
1920 (formEventCallback):
1922 * WebCoreSupport/WebSystemInterface.m:
1923 (InitWebCoreSystemInterface):
1925 2006-08-14 Maciej Stachowiak <mjs@apple.com>
1927 Rubber stamped by Brady.
1929 - move WebFormDataStream from WebView to Loader
1931 * WebKit.xcodeproj/project.pbxproj:
1932 * WebView/WebFormDataStream.h: Removed.
1933 * WebView/WebFormDataStream.m: Removed.
1935 2006-08-13 Maciej Stachowiak <mjs@apple.com>
1939 - remove WebKit dependencies from WebSubresourceLoader, except WebFormDataStream
1941 (WebFormDataStream will be moved into the Loader directory soon)
1943 * Loader/WebFrameLoader.h:
1944 * Loader/WebFrameLoader.m:
1945 (-[WebFrameLoader _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
1946 * Loader/WebSubresourceLoader.m:
1947 (isConditionalRequest):
1948 (hasCaseInsensitivePrefix):
1951 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
1953 2006-08-13 Brady Eidson <beidson@apple.com>
1957 Relocated the WebIconLoaders
1959 * Misc/WebIconLoader.h: Moved to Loader/
1960 * Misc/WebIconLoader.m: Moved to Loader/
1961 * WebKit.xcodeproj/project.pbxproj:
1963 2006-08-13 Maciej Stachowiak <mjs@apple.com>
1967 - removed non-Loader WebKit dependencies from WebDataProtocol for
1968 real (whoops) and fix some typos.
1970 * Loader/WebDataProtocol.m:
1971 (isCaseInsensitiveEqual): Added.
1972 (+[WebDataProtocol _webIsDataProtocolURL:]): Avoid WebKit calls.
1973 (-[WebDataProtocol startLoading]): ditto
1974 * Loader/WebFrameLoader.m:
1975 (isCaseInsensitiveEqual): Fixed spelling from isCaseSensitiveEqual.
1976 (-[WebFrameLoader _canUseResourceForRequest:]): Use proper call.
1978 2006-08-13 Brady Eidson <beidson@apple.com>
1982 The way of detecting a failed icon load before was to try and construct
1983 an image from the icon and if that image construction failed, mark the icon
1985 A much more efficient way is to check for an error response. We'll still
1986 check for invalid image data, but most servers will correctly return an HTTP
1987 error on a missing icon.
1989 * Misc/WebIconLoader.m:
1990 (-[WebIconLoader didFinishLoading]): Added check for http error response
1992 2006-08-13 Maciej Stachowiak <mjs@apple.com>
1996 - remove all non-Loader dependencies from WebLoader
1998 As part of this I moved WebDataProtocol to the loader directory
1999 and removed dependencies on the rest of WebKit from that too.
2001 * Loader/WebFrameLoader.h:
2002 * Loader/WebFrameLoader.m:
2003 (-[WebFrameLoader setDefersCallbacks:]):
2004 (-[WebFrameLoader stopLoading]):
2005 (-[WebFrameLoader cancelledErrorWithRequest:]):
2006 (-[WebFrameLoader clearArchivedResources]):
2007 (-[WebFrameLoader deliverArchivedResources]):
2008 (-[WebFrameLoader deliverArchivedResourcesAfterDelay]):
2009 (isCaseSensitiveEqual):
2010 (-[WebFrameLoader _canUseResourceForRequest:]):
2011 (-[WebFrameLoader _canUseResourceWithResponse:]):
2012 (-[WebFrameLoader pendingArchivedResources]):
2013 (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
2014 (-[WebFrameLoader archiveLoadPendingForLoader:]):
2015 (-[WebFrameLoader cancelPendingArchiveLoadForLoader:]):
2016 * Loader/WebLoader.h:
2017 * Loader/WebLoader.m:
2018 (-[NSURLProtocol releaseResources]):
2019 (-[NSURLProtocol loadWithRequest:]):
2020 (-[NSURLProtocol setDefersCallbacks:]):
2021 (-[NSURLProtocol addData:allAtOnce:]):
2022 (-[NSURLProtocol resourceData]):
2023 (-[NSURLProtocol didReceiveData:lengthReceived:allAtOnce:]):
2024 (-[NSURLProtocol connection:didReceiveData:lengthReceived:]):
2025 (-[NSURLProtocol cancelWithError:]):
2026 (-[NSURLProtocol cancelledError]):
2027 * Loader/WebMainResourceLoader.m:
2028 (-[WebMainResourceLoader addData:allAtOnce:]):
2029 (-[WebMainResourceLoader didReceiveData:lengthReceived:allAtOnce:]):
2030 * Loader/WebNetscapePlugInStreamLoader.m:
2031 (-[WebNetscapePlugInStreamLoader didReceiveData:lengthReceived:allAtOnce:]):
2032 * Loader/WebSubresourceLoader.m:
2033 (-[WebSubresourceLoader didReceiveData:lengthReceived:allAtOnce:]):
2034 * WebKit.xcodeproj/project.pbxproj:
2035 * WebView/WebDataProtocol.h: Removed.
2036 * WebView/WebDataProtocol.m: Removed.
2038 2006-08-11 Tim Omernick <timo@apple.com>
2042 <http://bugs.webkit.org/show_bug.cgi?id=10111> - Menu flickers over Flash content
2043 <rdar://problem/3052546> Plugins don't work with z-index (overlapping elements, etc.)
2045 * Plugins/WebBaseNetscapePluginView.m:
2046 (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
2047 Don't just clip to the dirty region for "transparent" plug-ins -- do it for all plug-ins. This is a
2048 generally useful thing to do, as it prevents the plug-in from drawing over parts of the window that
2049 have already been drawn and are not expected to be redrawn in the same update.
2051 2006-08-11 Brady Eidson <beidson@apple.com>
2053 Reviewed by John, Timo, Adele, and Darin
2055 In addition to a few style/good-practice cleanups, this patch will convert the old icon database
2056 format to the WebCore format if the WebCore db is empty (implying this conversion has yet to take
2057 place). After the conversion, it will delete all traces of the old format to free the unneeded space
2059 * Misc/WebIconDatabase.m:
2060 (-[WebIconDatabase init]):
2061 (-[WebIconDatabase _setIconURL:forURL:]): Changed the bridge's name for this method to be more clear
2062 (-[WebIconDatabase _createFileDatabase]):
2063 (-[WebIconDatabase _iconDataForIconURL:]): This grabs the raw data for use in the conversion function
2064 (-[WebIconDatabase _convertToWebCoreFormat]): This does the actual conversion
2066 2006-08-11 Tim Omernick <timo@apple.com>
2068 Reviewed by John Sullivan.
2070 Needed for <rdar://problem/4678070>.
2072 * Plugins/WebBaseNetscapePluginView.m:
2073 (-[WebBaseNetscapePluginView sendEvent:]):
2074 Changed an assertion to an early return. It should be possible to send events, especially updateEvt (for image capturing
2075 purposes), to off-screen plug-ins. It just doesn't work right now. See <rdar://problem/4318269>.
2077 2006-08-11 John Sullivan <sullivan@apple.com>
2081 - fixed <rdar://problem/4522894> Would be nice if Safari shrank pages a little if necessary
2082 to avoid printing an almost-empty page
2084 * WebView/WebHTMLView.m:
2085 (-[NSArray knowsPageRange:]):
2086 If the last page has a short-enough orphan (< 1/10 of the page height is the number I pulled
2087 out of ... the air), then we adjust the scale factor slightly and check whether this reduces
2088 the page count and thus eliminates the orphan.
2090 2006-08-07 Brady Eidson <beidson@apple.com>
2092 Reviewed by Anders and John
2094 * Misc/WebIconDatabase.m:
2095 (-[WebIconDatabase init]):
2096 (-[WebIconDatabase isIconExpiredForIconURL:]): Get if an icon expired
2097 (-[WebIconDatabase isIconExpiredForPageURL:]): Ditto
2098 (-[WebIconDatabase _setIconURL:forURL:]):
2099 (-[WebIconDatabase _sendNotificationForURL:]): Moved to WebKitPendingPublic for use outside of WebIconDatabase
2100 (-[WebIconDatabase loadIconFromURL:]): Allow a load outside the context of a page load
2101 * Misc/WebIconDatabasePrivate.h:
2103 * Misc/WebIconLoader.m:
2104 (-[WebIconLoader didFinishLoading]): fixed up the "flipping the switch" #defs a bit
2105 (-[WebIconLoader willSendRequest:redirectResponse:]): override to allow a load
2106 outside of the context of a page load
2108 * WebCoreSupport/WebIconDatabaseBridge.h: Added.
2109 * WebCoreSupport/WebIconDatabaseBridge.m: Added.
2110 (-[WebIconDatabaseBridge init]):
2111 (-[WebIconDatabaseBridge dealloc]):
2112 (-[WebIconDatabaseBridge loadIconFromURL:]): Kick off a load on an icon outside
2113 of the context of any page load
2114 (-[WebIconDatabaseBridge _setIconData:forIconURL:]): WebKit side of bridge method
2115 (-[WebIconDatabaseBridge _setHaveNoIconForIconURL:]): WebKit side of bridge method
2116 (-[WebIconDatabaseBridge releaseCachedLoaderForIconURL:]):
2117 (+[WebIconDatabaseBridge sharedBridgeInstance]): Moved this from WebCore to WebKit
2118 so both sides of the bridge get the WebKit version
2119 * WebKit.xcodeproj/project.pbxproj: Added some files
2120 * WebView/WebDataSource.m:
2121 (-[WebDataSource _loadIcon]): Added check for reload/expired icon to force
2122 a load even if we already have it
2124 2006-08-04 Sam Weinig <sam.weinig@gmail.com>
2128 - patch for http://bugs.webkit.org/show_bug.cgi?id=10192
2129 Make WebCore (and friends) compile with -Wshorten-64-to-32
2131 * Adds 'f' to float literals where expecting a float.
2132 * Use ceilf() instead of ceil() when assigning to a float.
2133 * Adds explicit casts where OK.
2135 NOTE: The -Wshorten-64-to-32 flag was not added for WebKit
2136 because there are still a few places where no error handling
2137 is in place. The flag can be added as soon as those are worked
2140 * Misc/WebNSControlExtras.m:
2141 (-[NSControl sizeToFitAndAdjustWindowHeight]):
2142 * Misc/WebNSImageExtras.m:
2143 (-[NSImage _web_scaleToMaxSize:]):
2144 * Misc/WebNSViewExtras.h:
2145 * Misc/WebNSViewExtras.m:
2146 * Plugins/WebBaseNetscapePluginView.m:
2147 (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
2148 (-[WebBaseNetscapePluginView drawRect:]):
2149 * WebCoreSupport/WebFrameBridge.m:
2150 (-[WebFrameBridge expiresTimeForResponse:]):
2151 * WebInspector/WebInspector.m:
2152 (-[NSWindow window]):
2153 (-[WebInspector treeViewScrollTo:]):
2154 (-[WebInspector _updateSystemColors]):
2155 (-[WebInspector webView:plugInViewWithArguments:]):
2156 (-[WebInspector outlineView:objectValueForTableColumn:byItem:]):
2157 * WebInspector/WebInspectorOutlineView.m:
2158 (-[WebInspectorOutlineView _highlightRow:clipRect:]):
2159 * WebInspector/WebNodeHighlight.m:
2160 (-[WebNodeHighlight initWithBounds:andRects:forView:]):
2161 * WebInspector/WebNodeHighlightView.m:
2162 (-[WebNodeHighlightView roundedRect:withRadius:]):
2163 (-[WebNodeHighlightView initWithHighlight:andRects:forView:]):
2164 (-[WebNodeHighlightView drawRect:]):
2165 * WebView/WebFrame.m:
2166 (-[WebFrame _opened]):
2167 * WebView/WebFrameView.m:
2168 (-[WebFrameView initWithFrame:]):
2169 * WebView/WebHTMLView.m:
2170 (-[WebHTMLView _dragImageForLinkElement:]):
2171 (-[WebHTMLView _web_setPrintingModeRecursive]):
2172 (-[WebHTMLView _web_clearPrintingModeRecursive]):
2173 (-[NSArray layout]):
2174 (-[NSArray _setPrinting:minimumPageWidth:maximumPageWidth:adjustViewSize:]):
2175 (-[NSArray adjustPageHeightNew:top:bottom:limit:]):
2176 (-[NSArray _scaleFactorForPrintOperation:]):
2177 (-[NSArray setPageWidthForPrinting:]):
2178 (-[NSArray _endPrintMode]):
2179 (-[NSArray knowsPageRange:]):
2180 (-[NSArray _originalFontA]):
2181 (-[NSArray _originalFontB]):
2182 (-[WebTextCompleteController _buildUI]):
2183 (-[WebTextCompleteController _placePopupWindow:]):
2184 * WebView/WebPDFView.m:
2185 (-[WebPDFView _makeTextStandardSize:]):
2186 (-[WebPDFView selectionImageForcingWhiteText:]):
2187 (-[PDFPrefUpdatingProxy forwardInvocation:]):
2188 * WebView/WebPreferences.m:
2189 (-[WebPreferences _floatValueForKey:]):
2190 * WebView/WebView.m:
2191 (-[WebView makeTextSmaller:]):
2192 (-[WebView canMakeTextStandardSize]):
2193 (-[WebView makeTextStandardSize:]):
2195 2006-08-04 David Kilzer <ddkilzer@kilzer.net>
2197 Reviewed by NOBODY (build fix).
2199 * WebCoreSupport/WebSubresourceLoader.m: REALLY moved to Loader/
2200 * WebView/WebFrameLoader.h: REALLY moved to Loader/
2201 * WebView/WebFrameLoader.m: REALLY moved to Loader/
2202 * WebView/WebLoader.h: REALLY moved to Loader/
2203 * WebView/WebLoader.m: REALLY moved to Loader/
2204 * WebView/WebMainResourceLoader.m: REALLY moved to Loader/
2206 2006-08-03 Maciej Stachowiak <mjs@apple.com>
2210 - moved all loader code that is slated to be moved down to WebCore to a new Loader directory
2212 (next step is to remove dependencies on the rest of WebKit from this directory)
2214 * Loader/WebNetscapePlugInStreamLoader.h: Added.
2215 * Loader/WebNetscapePlugInStreamLoader.m: Added. Cut out of WebNetscapePluginStream.m
2216 (-[WebNetscapePlugInStreamLoader initWithStream:view:]):
2217 (-[WebNetscapePlugInStreamLoader isDone]):
2218 (-[WebNetscapePlugInStreamLoader releaseResources]):
2219 (-[WebNetscapePlugInStreamLoader didReceiveResponse:]):
2220 (-[WebNetscapePlugInStreamLoader didReceiveData:lengthReceived:]):
2221 (-[WebNetscapePlugInStreamLoader didFinishLoading]):
2222 (-[WebNetscapePlugInStreamLoader didFailWithError:]):
2223 (-[WebNetscapePlugInStreamLoader cancelWithError:]):
2224 * Plugins/WebNetscapePluginStream.m:
2225 * WebKit.xcodeproj/project.pbxproj:
2226 * WebCoreSupport/WebSubresourceLoader.h: Moved to Loader/
2227 * WebCoreSupport/WebSubresourceLoader.m: Moved to Loader/
2228 * WebView/WebFrameLoader.h: Moved to Loader/
2229 * WebView/WebFrameLoader.m: Moved to Loader/
2230 * WebView/WebLoader.h: Moved to Loader/
2231 * WebView/WebLoader.m: Moved to Loader/
2232 * WebView/WebMainResourceLoader.h: Moved to Loader/
2233 * WebView/WebMainResourceLoader.m: Moved to Loader/
2235 2006-08-03 Tim Omernick <timo@apple.com>
2237 Reviewed by Kevin Decker.
2239 <rdar://problem/4667460> Windowless OpenGL plug-ins render incorrectly on PowerPC
2241 * Plugins/WebBaseNetscapePluginView.m:
2242 (-[WebBaseNetscapePluginView _aglOffscreenImageForDrawingInRect:]):
2243 Fixed color component swapping so that it works on both x86 and PPC. See comments.
2245 2006-08-03 Brady Eidson <beidson@apple.com>
2247 Reviewed by Tim Hatcher's rubber stamp
2248 Fixed Intel build break caused by weinig's -W change in r15781
2250 * WebView/WebView.m: wrapped cpu-dependent defs with defined() macro
2252 2006-08-03 Maciej Stachowiak <mjs@apple.com>
2256 - fixed problem that could cause assertion failures in Safari
2258 * Plugins/WebBaseNetscapePluginView.m:
2259 (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]): Don't
2260 allow a plugin to start new loads once its document is no longer the one actively loading.
2262 2006-08-03 Maciej Stachowiak <mjs@apple.com>
2266 - remove use of WebDataSource from WebLoader and subclasses, just have them talk to the
2267 WebFrameLoader instead.
2269 For now this is done by forarding all the calls.
2271 * Misc/WebIconLoader.m:
2272 (-[WebIconLoader didFinishLoading]):
2273 * Plugins/WebNetscapePluginStream.m:
2274 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
2275 (-[WebNetscapePluginStream start]):
2276 (-[WebNetscapePlugInStreamLoader didFinishLoading]):
2277 (-[WebNetscapePlugInStreamLoader didFailWithError:]):
2278 (-[WebNetscapePlugInStreamLoader cancelWithError:]):
2279 * WebCoreSupport/WebFrameBridge.m:
2280 (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
2281 (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
2282 * WebCoreSupport/WebSubresourceLoader.h:
2283 * WebCoreSupport/WebSubresourceLoader.m:
2284 (-[WebSubresourceLoader initWithLoader:frameLoader:]):
2285 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
2286 (+[WebSubresourceLoader startLoadingResource:withMethod:URL:customHeaders:referrer:forFrameLoader:]):
2287 (+[WebSubresourceLoader startLoadingResource:withMethod:URL:customHeaders:postData:referrer:forFrameLoader:]):
2288 (-[WebSubresourceLoader receivedError:]):
2289 (-[WebSubresourceLoader signalFinish]):
2290 (-[WebSubresourceLoader didFailWithError:]):
2291 (-[WebSubresourceLoader cancel]):
2292 * WebKit.xcodeproj/project.pbxproj:
2293 * WebView/WebDataSource.m:
2294 (-[WebDataSource _updateLoading]):
2295 (-[WebDataSource textEncodingName]):
2296 (-[WebDataSource _mainReceivedBytesSoFar:complete:]):
2297 * WebView/WebFrameLoader.h:
2298 * WebView/WebFrameLoader.m:
2299 (-[WebFrameLoader loadIconWithRequest:]):
2300 (-[WebFrameLoader startLoadingMainResourceWithRequest:identifier:]):
2301 (-[WebFrameLoader clearIconLoader]):
2302 (-[WebFrameLoader commitProvisionalLoad]):
2303 (-[WebFrameLoader activeDataSource]):
2304 (-[WebFrameLoader _archivedSubresourceForURL:]):
2305 (-[WebFrameLoader _defersCallbacks]):
2306 (-[WebFrameLoader _identifierForInitialRequest:]):
2307 (-[WebFrameLoader _willSendRequest:forResource:redirectResponse:]):
2308 (-[WebFrameLoader _didReceiveAuthenticationChallenge:forResource:]):
2309 (-[WebFrameLoader _didCancelAuthenticationChallenge:forResource:]):
2310 (-[WebFrameLoader _didReceiveResponse:forResource:]):
2311 (-[WebFrameLoader _didReceiveData:contentLength:forResource:]):
2312 (-[WebFrameLoader _didFinishLoadingForResource:]):
2313 (-[WebFrameLoader _didFailLoadingWithError:forResource:]):
2314 (-[WebFrameLoader _privateBrowsingEnabled]):
2315 (-[WebFrameLoader _addPlugInStreamLoader:]):
2316 (-[WebFrameLoader _removePlugInStreamLoader:]):
2317 (-[WebFrameLoader _finishedLoadingResource]):
2318 (-[WebFrameLoader _receivedError:]):
2319 (-[WebFrameLoader _addSubresourceLoader:]):
2320 (-[WebFrameLoader _removeSubresourceLoader:]):
2321 (-[WebFrameLoader _originalRequest]):
2322 (-[WebFrameLoader webFrame]):
2323 (-[WebFrameLoader _receivedMainResourceError:complete:]):
2324 (-[WebFrameLoader initialRequest]):
2325 (-[WebFrameLoader _receivedData:]):
2326 (-[WebFrameLoader _setRequest:]):
2327 (-[WebFrameLoader _downloadWithLoadingConnection:request:response:proxy:]):
2328 (-[WebFrameLoader _handleFallbackContent]):
2329 (-[WebFrameLoader _isStopping]):
2330 (-[WebFrameLoader _decidePolicyForMIMEType:decisionListener:]):
2331 (-[WebFrameLoader _setupForReplaceByMIMEType:]):
2332 (-[WebFrameLoader _setResponse:]):
2333 (-[WebFrameLoader _mainReceivedError:complete:]):
2334 (-[WebFrameLoader _finishedLoading]):
2335 (-[WebFrameLoader _mainReceivedBytesSoFar:complete:]):
2336 (-[WebFrameLoader _iconLoaderReceivedPageIcon:]):
2337 (-[WebFrameLoader _URL]):
2338 * WebView/WebLoader.h:
2339 * WebView/WebLoader.m:
2340 (-[NSURLProtocol releaseResources]):
2341 (-[NSURLProtocol loadWithRequest:]):
2342 (-[NSURLProtocol setFrameLoader:]):
2343 (-[NSURLProtocol frameLoader]):
2344 (-[NSURLProtocol willSendRequest:redirectResponse:]):
2345 (-[NSURLProtocol didReceiveAuthenticationChallenge:]):
2346 (-[NSURLProtocol didCancelAuthenticationChallenge:]):
2347 (-[NSURLProtocol didReceiveResponse:]):
2348 (-[NSURLProtocol didReceiveData:lengthReceived:]):
2349 (-[NSURLProtocol signalFinish]):
2350 (-[NSURLProtocol didFailWithError:]):
2351 (-[NSURLProtocol willCacheResponse:]):
2352 (-[NSURLProtocol cancelWithError:]):
2353 * WebView/WebMainResourceLoader.h:
2354 * WebView/WebMainResourceLoader.m:
2355 (-[WebMainResourceLoader initWithFrameLoader:]):
2356 (-[WebMainResourceLoader receivedError:]):
2357 (-[WebMainResourceLoader cancelWithError:]):
2358 (-[WebMainResourceLoader _isPostOrRedirectAfterPost:redirectResponse:]):
2359 (-[WebMainResourceLoader addData:]):
2360 (-[WebMainResourceLoader willSendRequest:redirectResponse:]):
2361 (-[WebMainResourceLoader continueAfterContentPolicy:response:]):
2362 (-[WebMainResourceLoader continueAfterContentPolicy:]):
2363 (-[WebMainResourceLoader checkContentPolicyForResponse:]):
2364 (-[WebMainResourceLoader didReceiveResponse:]):
2365 (-[WebMainResourceLoader didReceiveData:lengthReceived:]):
2366 (-[WebMainResourceLoader didFinishLoading]):
2367 (-[WebMainResourceLoader didFailWithError:]):
2368 (-[WebMainResourceLoader loadWithRequestNow:]):
2370 2006-08-03 Sam Weinig <sam.weinig@gmail.com>
2374 - patch for http://bugs.webkit.org/show_bug.cgi?id=10176
2375 Make WebCore compile with -Wundef
2377 * Adds -Wundef flag to Xcode project
2378 * Converts #ifs to #ifdef and #ifndefs where needed.
2380 * Carbon/CarbonUtils.m:
2381 * Carbon/CarbonWindowAdapter.m:
2382 * Carbon/HIViewAdapter.m:
2383 (+[NSView bindHIViewToNSView:nsView:]):
2384 * Carbon/HIWebView.m:
2385 (HIWebViewEventHandler):
2386 * Misc/WebFileDatabase.m:
2387 (UniqueFilePathForKey):
2388 * Misc/WebNSWindowExtras.m:
2389 (swizzleInstanceMethod):
2390 * Misc/WebTypesInternal.h:
2391 * Plugins/WebNetscapeDeprecatedFunctions.c:
2392 * Plugins/WebNetscapeDeprecatedFunctions.h:
2393 * Plugins/WebNetscapePluginPackage.h:
2394 * Plugins/WebNetscapePluginPackage.m:
2395 (-[WebNetscapePluginPackage unloadWithoutShutdown]):
2396 (-[WebNetscapePluginPackage load]):
2397 * WebKit.xcodeproj/project.pbxproj:
2399 2006-08-03 Darin Adler <darin@apple.com>
2401 Reviewed by Eric Seidel.
2405 * WebView/WebFrame.m: (-[WebFramePrivate dealloc]): Release the frame loader.
2407 2006-08-02 Timothy Hatcher <timothy@apple.com>
2409 Rubber stamped by Maciej.
2411 Adding back resultsWithXpathQuery, removed by Darin's earlier change.
2412 This function is called from ObjC, but not used from JavaScript.
2414 * WebInspector/webInspector/inspector.js:
2416 2006-08-02 Timothy Hatcher <timothy@apple.com>
2420 Bug 10200: [Drosera] Deadlock between Drosera and Safari while loading page
2421 http://bugs.webkit.org/show_bug.cgi?id=10200
2423 Prevent reentrancy in our debugger callbacks. This was causing a deadlock in Drosera because
2424 suspendProcessIfPaused was being called during a DO call into Safari.
2426 Preventing reentrancy also prevents scripts that Drosera injects and evaluates from showing
2427 up in rare cases (such as a iframe loading about:blank). I thought this would prevent cases
2428 where you call a function from the console and expect it to break on a breakpoint in them, but
2429 this appears to never have worked even without this change. When that is figured out we can
2430 reconsider a better solution to reentrancy. I have filed that as bug 10214.
2432 I also removed the NSRunLoop runMode:beforeDate: calls since DO handles this for us since
2433 we don't use "onway void" as the return type for the callbacks. Note: using onway void for
2434 the listener callbacks causes bad synchronization issues and obscure crashes.
2436 * DefaultDelegates/WebScriptDebugServer.m:
2437 (-[WebScriptDebugServer webView:didLoadMainResourceForDataSource:]):
2438 (-[WebScriptDebugServer webView:didParseSource:baseLineNumber:fromURL:sourceId:forWebFrame:]):
2439 (-[WebScriptDebugServer webView:failedToParseSource:baseLineNumber:fromURL:withError:forWebFrame:]):
2440 (-[WebScriptDebugServer webView:didEnterCallFrame:sourceId:line:forWebFrame:]):
2441 (-[WebScriptDebugServer webView:willExecuteStatement:sourceId:line:forWebFrame:]):
2442 (-[WebScriptDebugServer webView:willLeaveCallFrame:sourceId:line:forWebFrame:]):
2443 (-[WebScriptDebugServer webView:exceptionWasRaised:sourceId:line:forWebFrame:]):
2444 * DefaultDelegates/WebScriptDebugServerPrivate.h:
2446 2006-08-02 Maciej Stachowiak <mjs@apple.com>
2450 - fix assertion failure on layout tests by stopping plugins from loading at a clearly defined time
2451 - add more assertions for safety
2453 * WebView/WebDataSource.m:
2454 (-[WebDataSourcePrivate dealloc]): Removed obsolete comment.
2455 (-[WebDataSource _updateLoading]): Add assertion ensuring this method is only called
2456 at a time when this data source is the one that might be loading for a frame.
2457 (-[WebDataSource _stopLoading]): Stop loading plugins as a FIXME suggests we should.
2458 * WebView/WebFrameLoader.m:
2459 (-[WebFrameLoader isLoadingPlugIns]): New helper method.
2460 (-[WebFrameLoader isLoading]): Consider plugin loads too - otherwise we won't stop them
2461 at stopLoading time.
2463 2006-08-02 Adam Roben <aroben@apple.com>
2467 - Rename TransferJob to ResourceLoader (this file was forgotten in an
2468 earlier change by Maciej)
2472 2006-08-01 Maciej Stachowiak <mjs@apple.com>
2476 - Change things around so WebFrameLoader tracks the main and provisional data source,
2477 as well as the frame load state, pulling much code out of WebFrame along the way.
2479 The most significant aspects of this change are:
2481 - management of WebDataSources and WebFrameState was moved into WebFrameLoader
2482 - there is now just one WebFrameLoader shared between the primary and provisional data source
2484 * WebKit.xcodeproj/project.pbxproj:
2485 * WebView/WebDataSource.m:
2486 (-[WebDataSourcePrivate dealloc]):
2487 (-[WebDataSource _updateLoading]):
2488 (-[WebDataSource _loadIcon]):
2489 (-[WebDataSource _setPrimaryLoadComplete:]):
2490 (-[WebDataSource _stopLoading]):
2491 (-[WebDataSource _startLoading]):
2492 (-[WebDataSource _addSubresourceLoader:]):
2493 (-[WebDataSource _removeSubresourceLoader:]):
2494 (-[WebDataSource _addPlugInStreamLoader:]):
2495 (-[WebDataSource _removePlugInStreamLoader:]):
2496 (-[WebDataSource _defersCallbacksChanged]):
2497 (-[WebDataSource _stopLoadingWithError:]):
2498 (-[WebDataSource _revertToProvisionalState]):
2499 (-[WebDataSource _setupForReplaceByMIMEType:]):
2500 (-[WebDataSource initWithRequest:]):
2501 (-[WebDataSource data]):
2502 (-[WebDataSource isLoading]):
2503 * WebView/WebFrame.m:
2504 (-[WebFramePrivate init]):
2505 (-[WebFramePrivate dealloc]):
2506 (-[WebFrame _closeOldDataSources]):
2507 (-[WebFrame _detachFromParent]):
2508 (-[WebFrame _makeDocumentView]):
2509 (-[WebFrame _receivedMainResourceError:]):
2510 (-[WebFrame _transitionToCommitted:]):
2511 (+[WebFrame _timeOfLastCompletedLoad]):
2512 (-[WebFrame _checkLoadCompleteForThisFrame]):
2513 (-[WebFrame _loadItem:withLoadType:]):
2514 (-[WebFrame _continueAfterWillSubmitForm:]):
2515 (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
2516 (-[WebFrame _initWithWebFrameView:webView:bridge:]):
2517 (-[WebFrame _frameLoader]):
2518 (-[WebFrame _provisionalLoadStarted]):
2519 (-[WebFrame _prepareForDataSourceReplacement]):
2520 (-[WebFrame _frameLoadCompleted]):
2521 (-[WebFrame provisionalDataSource]):
2522 (-[WebFrame dataSource]):
2523 (-[WebFrame stopLoading]):
2524 * WebView/WebFrameInternal.h:
2525 * WebView/WebFrameLoader.h:
2526 * WebView/WebFrameLoader.m:
2527 (-[WebFrameLoader initWithWebFrame:]):
2528 (-[WebFrameLoader dealloc]):
2529 (-[WebFrameLoader dataSource]):
2530 (-[WebFrameLoader _setDataSource:]):
2531 (-[WebFrameLoader clearDataSource]):
2532 (-[WebFrameLoader provisionalDataSource]):
2533 (-[WebFrameLoader _setProvisionalDataSource:]):
2534 (-[WebFrameLoader _clearProvisionalDataSource]):
2535 (-[WebFrameLoader state]):
2536 (+[WebFrameLoader timeOfLastCompletedLoad]):
2537 (-[WebFrameLoader _setState:]):
2538 (-[WebFrameLoader clearProvisionalLoad]):
2539 (-[WebFrameLoader markLoadComplete]):
2540 (-[WebFrameLoader commitProvisionalLoad]):
2541 (-[WebFrameLoader stopLoading]):
2542 (-[WebFrameLoader startLoading]):
2543 (-[WebFrameLoader startProvisionalLoad:]):
2544 (-[WebFrameLoader setupForReplace]):
2545 * WebView/WebFramePrivate.h:
2547 2006-08-01 Tim Omernick <timo@apple.com>
2549 Reviewed by John Sullivan.
2551 <rdar://problem/4480737> Flash crashes after it replaces itself via a document.write()
2553 I kind of hate to do this, but this is the best way to work around buggy plug-ins like Flash that assume that
2554 NPP_Destroy() cannot be called while the browser is calling one of its other plug-in functions. The classic
2555 situation is a plug-in that replaces itself via an NPN_Invoke() that executes a document.write().
2557 * Plugins/WebBaseNetscapePluginView.h:
2558 * Plugins/WebBaseNetscapePluginView.m:
2559 (-[WebBaseNetscapePluginView sendEvent:]):
2560 Call -willCallPlugInFunction and -didCallPlugInFunction around calls to the NPP_* functions.
2561 (-[WebBaseNetscapePluginView setWindowIfNecessary]):
2563 (-[WebBaseNetscapePluginView start]):
2564 It should not be possible to start a plug-in instance while we are calling into it (one of those chicken/egg
2565 problems). Added a sanity-checking assertion.
2566 (-[WebBaseNetscapePluginView stop]):
2567 If we're already calling a plug-in function, do not call NPP_Destroy(). The plug-in function we are calling
2568 may assume that its instance->pdata, or other memory freed by NPP_Destroy(), is valid and unchanged until said
2569 plugin-function returns.
2570 (-[WebBaseNetscapePluginView pluginScriptableObject]):
2571 Call -willCallPlugInFunction and -didCallPlugInFunction around calls to the NPP_* functions.
2572 (-[WebBaseNetscapePluginView willCallPlugInFunction]):
2573 Increment plug-in function call depth.
2574 (-[WebBaseNetscapePluginView didCallPlugInFunction]):
2575 Decrement plug-in function call depth. Stop if we're supposed to stop.
2576 (-[WebBaseNetscapePluginView evaluateJavaScriptPluginRequest:]):
2577 Call -willCallPlugInFunction and -didCallPlugInFunction around calls to the NPP_* functions.
2578 (-[WebBaseNetscapePluginView webFrame:didFinishLoadWithReason:]):
2580 (-[WebBaseNetscapePluginView _printedPluginBitmap]):
2583 * Plugins/WebBaseNetscapePluginStream.m:
2584 (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:]):
2585 Call -willCallPlugInFunction and -didCallPlugInFunction around calls to the NPP_* functions.
2586 (-[WebBaseNetscapePluginStream _destroyStream]):
2588 (-[WebBaseNetscapePluginStream _deliverData]):
2591 2006-08-01 Maciej Stachowiak <mjs@apple.com>
2593 - fix build after last change
2595 * WebView/WebFrame.m:
2596 (-[WebFrame _checkLoadCompleteForThisFrame]):
2598 2006-08-01 Maciej Stachowiak <mjs@apple.com>
2602 - revert part of my last fix that broke the Safari bookmarks view
2604 * WebView/WebFrame.m:
2605 (-[WebFrame _checkLoadCompleteForThisFrame]): still send layout message for non-HTML views
2607 2006-08-01 Tim Omernick <timo@apple.com>
2611 Fixed an assertion failure I ran into while debugging <rdar://problem/4652683>.
2613 * Plugins/WebNetscapePluginEmbeddedView.m:
2614 (-[WebNetscapePluginEmbeddedView redeliverStream]):
2615 Don't clear the "instance" ivar here. This code was refactored here from the old WebNetscapePluginRepresentation,
2616 which also had an "instance" ivar. It is never appropriate to clear a plug-in view's instance. That is done when
2617 the plug-in is destroyed.
2619 2006-08-01 Maciej Stachowiak <mjs@apple.com>
2623 - some refactoring in preparation for moving more stuff to WebFrameLoader.
2625 * WebView/WebFrame.m:
2626 (-[WebFrame _clearDataSource]):
2627 (-[WebFrame _detachFromParent]):
2628 (-[WebFrame _commitProvisionalLoad]):
2629 (-[WebFrame _transitionToCommitted:]):
2630 (-[WebFrame _clearProvisionalLoad]):
2631 (-[WebFrame _markLoadComplete]):
2632 (-[WebFrame _checkLoadCompleteForThisFrame]):
2633 (-[WebFrame _startProvisionalLoad:]):
2634 (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
2635 (-[WebFrame stopLoading]):
2637 2006-07-31 Maciej Stachowiak <mjs@apple.com>
2639 Reviewed by Tim Hatcher.
2641 - renamed TransferJob to ResourceLoader in WebCore
2644 (WebFrame::loadDataSource):
2645 (WebFrame::receivedRedirect):
2646 (WebFrame::receivedResponse):
2647 (WebFrame::receivedData):
2648 (WebFrame::receivedAllData):
2649 (WebFrame::setStatusText):
2652 2006-07-31 Darin Adler <darin@apple.com>
2656 - omit the margin and padding boxes for display types where they are ignored
2657 - use CSS instead of properties for table spacing and padding as suggested by Tim H.
2659 * WebInspector/webInspector/inspector.css: Added rules for spacing and padding.
2660 Added rules that hide the margin and padding boxes (borders and all but the center cell)
2661 when the hide attribute is present.
2662 * WebInspector/webInspector/inspector.html: Added classes for the rules above.
2663 Removed cellpadding and cellspacing attributes.
2664 * WebInspector/webInspector/inspector.js: Added code to hide/show the margin and
2665 padding boxes based on the display type.
2667 2006-07-31 Duncan Wilcox <duncan@mclink.it>
2671 Fixes <http://bugs.webkit.org/show_bug.cgi?id=10159>
2672 "REGRESSION: delegate returning no menu elements crashes webkit"
2674 No automated test, because there's no way to programmatically open a context menu,
2675 no manual test because there's no way to customize the context menu delegate.
2677 * WebView/WebView.m:
2678 (-[WebView _menuForElement:defaultItems:]): Make sure the context menu returned
2679 some menu items before accessing the first one.
2681 2006-07-31 Timothy Hatcher <timothy@apple.com>
2685 <rdar://problem/4658194> REGRESSION: "Search in Google"
2686 and "Search in Spotlight" fail to work on text selected in a frame
2688 Use selectedFrame to get the frame with the text selection.
2690 * WebView/WebView.m:
2691 (-[WebView _searchWithGoogleFromMenu:]):
2692 (-[WebView _searchWithSpotlightFromMenu:]):
2694 2006-07-31 Darin Adler <darin@apple.com>
2696 Reviewed by Tim Hatcher.
2698 - http://bugs.webkit.org/show_bug.cgi?id=10168
2699 add a first cut at a Metrics pane to the inspector
2701 * WebInspector/webInspector/inspector.css: Add styles for the new metrics pane.
2702 * WebInspector/webInspector/inspector.html: Add the new metrics pane, starting with
2703 the table to show the box model.
2704 * WebInspector/webInspector/inspector.js: Add the new metrics pane. Add back some
2705 "title" attributes so we have more tooltips. Removed the optional parameter to
2708 2006-07-31 Anders Carlsson <acarlsson@apple.com>
2712 * Plugins/WebPluginDatabase.m:
2713 (-[WebPluginDatabase refresh]):
2714 Create a mutable set instead of a mutable array.
2716 2006-07-30 Darin Adler <darin@apple.com>
2718 Reviewed by Tim Hatcher.
2720 * WebInspector/webInspector/inspector.js: Fix bug where a null property value
2721 leads to an empty style pane.
2723 2006-07-30 Darin Adler <darin@apple.com>
2725 Reviewed by Tim Hatcher.
2727 - http://bugs.webkit.org/show_bug.cgi?id=10163
2728 some improvements for the inspector
2730 * WebInspector/WebInspector.m:
2731 (+[WebInspector sharedWebInspector:]): Fixed bug that could cause the inspector
2732 to be garbage collected if used in an application with GC enabled.
2733 (-[WebInspector dealloc]): Removed a call to a non-existent close method.
2734 (-[WebInspector window]): Added a custom WebPreferences object and called
2735 setPrivateBrowsingEnabled:YES so the inspector won't appear in the history menu.
2736 Also call setProhibitsMainFrameScrolling:YES to try to get rid of trouble where
2737 the inspector scrolls when dragging.
2739 * WebInspector/webInspector/inspector.css: Added style for the new color swatch,
2740 and JavaScript properties. More of the style should be shared between the panes,
2741 but this should be OK for now.
2743 * WebInspector/webInspector/inspector.html: Added a first cut at a JavaScript
2744 properties pane. Needs work, but better than nothing.
2746 * WebInspector/webInspector/inspector.js: Lots of improvements:
2747 - Omit "typical" property values from computed style display, making it much shorter.
2748 - Use the words "black", "white", and "transparent" when appropriate for color values.
2749 - Refactored the loaded() function to get rid of repetitive scrollbar setup.
2750 - Added a new scrollarea for the JavaScript properties pane.
2751 - Simplified refreshScrollbars() -- we now refresh all scrollbars every time, which does no harm.
2752 - Removed unused resultsWithXpathQuery().
2753 - Use [] instead of "new Array()" and {} instead of "new Object()".
2754 - Removed unused xpathForNode().
2755 - Changed style pane to display the style for a text node's parent instead of saying
2756 it can't display the style for text.
2757 - Fixed regression I caused a while back by checking the length of a computed style
2758 and not trying to display anything if its length is 0. Before this change and the
2759 corresponding change in WebCore, we'd see a complete list of all styles with the
2760 empty string as the value for each one.
2761 - Changed the name of the computedStyle flag on the style rules array to isComputedStyle
2762 to make it easier to understand it's a boolean.
2763 - Fixed an error in the code that does !important scanning where it was trying to
2764 do a special case for computed style, but was checking the computed style flag on
2766 - Added populateStyleListItem() function to factor out things in common between the
2767 items in the top level list and the expanded tree for shorthand properties.
2768 - Added code to make a color swatch next to the textual representation for any
2769 property that contains a color.
2770 - Implemented a first cut at a simple JavaScript properties pane.
2772 2006-07-29 Darin Adler <darin@apple.com>
2774 - Removed tabs from these source files that still had them.
2775 We don't use them; that way source files look fine in editors
2776 that have tabs set to 8 spaces or to 4 spaces.
2777 - Removed allow-tabs Subversion property from the files too.
2779 * DefaultDelegates/WebDefaultPolicyDelegate.m:
2780 * History/WebHistory.m:
2781 * Misc/WebDownload.m:
2782 * Misc/WebIconDatabase.m:
2783 * Misc/WebKitErrors.m:
2784 * Misc/WebKitLogging.m:
2785 * Misc/WebNSDataExtras.m:
2786 * Misc/WebNSFileManagerExtras.m:
2787 * Panels/WebPanelAuthenticationHandler.m:
2788 * Plugins/WebBaseNetscapePluginView.m:
2789 * Plugins/npfunctions.h:
2790 * WebCoreSupport/WebSubresourceLoader.m:
2791 * WebView/WebMainResourceLoader.m:
2792 * WebView/WebView.h:
2793 * WebView/WebView.m:
2795 2006-07-29 Sam Weinig <sam.weinig@gmail.com>
2799 - patch for http://bugs.webkit.org/show_bug.cgi?id=10080
2800 Adopt pedantic changes from the Unity project to improve
2801 cross-compiler compatibility
2804 * Adding missing newline to the end of the file.
2805 * Turning on gcc warning for missing newline at the end of a source file
2806 (GCC_WARN_ABOUT_MISSING_NEWLINE in Xcode, -Wnewline in gcc).
2808 * WebKit.xcodeproj/project.pbxproj:
2809 * WebView/WebResourcePrivate.h:
2811 2006-07-29 Mitz Pettel <opendarwin.org@mitzpettel.com>
2813 Reviewed by John Sullivan.
2815 - fix http://bugs.webkit.org/show_bug.cgi?id=9984
2816 ASSERTION FAILURE: _private->mouseDownEvent != nil
2817 (WebKit/WebView/WebHTMLView.m:4863 -[WebHTMLView(WebInternal) _delegateDragSourceActionMask])
2819 * WebView/WebHTMLView.m:
2820 (-[WebHTMLView _setMouseDownEvent:]): Moved into the WebHTMLViewFileInternal category and changed
2822 (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
2823 Copy the hit HTMLView's mouse down event to the top HTMLView.
2824 (-[WebHTMLView acceptsFirstMouse:]): Added a call to _setMouseDownEvent:nil before returning.
2825 (-[WebHTMLView shouldDelayWindowOrderingForEvent:]): Added a call to _setMouseDownEvent:nil
2827 (-[WebHTMLView mouseUp:]): Added a call to _setMouseDownEvent:nil to clear the event set in
2828 mouseDown: (and used during dragging).
2829 (-[WebHTMLView _delegateDragSourceActionMask]): Copy the hit HTMLView's mouse down event to
2832 2006-07-28 Timothy Hatcher <timothy@apple.com>
2836 <rdar://problem/4657473> REGRESSION: Spell check not available from contextual menu in Mail
2838 The context menu code should be checking isContentEditable
2839 on DOMNode not just DOMElement. This is needed because DOMText
2840 will be the node class of any text that is clicked.
2842 * DefaultDelegates/WebDefaultContextMenuDelegate.m:
2843 (-[WebDefaultUIDelegate webView:contextMenuItemsForElement:defaultMenuItems:]):
2845 2006-07-25 Geoffrey Garen <ggaren@apple.com>
2847 Reviewed by Maciej, inspired by John.
2849 - Fixed <rdar://problem/4651931> 1% REGRESSION on iBench HTML due to
2850 repeated requests for non-existent favicon
2852 An optimization to avoid serializing favicon data for missing icons had stomped an
2853 optimization to avoid GETing a missing favicon more than once. The solution
2854 is a happy marriage of optimizations, ensuring that we *retain* the missing
2855 favicon's "i am missing" data without posting a notification or saving it to disk.
2857 * Misc/WebIconDatabase.m:
2858 (-[WebIconDatabase _setIconURL:forURL:]):
2860 2006-07-25 David Harrison <harrison@apple.com>
2862 Reviewed by timo and Darin.
2864 <rdar://problem/4618584> "Paste and Match Style" is not working in Mail (add SPI)
2866 * WebKit.xcodeproj/project.pbxproj:
2867 * WebView/WebView.m:
2868 (-[WebView replaceSelectionWithNode:]):
2869 (-[WebView _replaceSelectionWithNode:matchStyle:]):
2870 * WebView/WebViewPrivate.h:
2871 (-[WebView _replaceSelectionWithNode:matchStyle::]):
2872 New SPI that is same as replaceSelectionWithNode: with added parameter whether to match existing style.
2874 2006-07-24 Darin Adler <darin@apple.com>
2876 Reviewed by Adele and Justin.
2878 - update for change to require context when creating fragments from text
2879 (needed to handle whitespace properly)
2881 * WebView/WebHTMLView.m:
2882 (-[WebHTMLView _documentFragmentFromPasteboard:inContext:allowPlainText:chosePlainText:]):
2883 Added context parameter, pass through to bridge.
2884 (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]): Pass selection range as context
2885 when calling above method.
2886 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): Pass drag caret as context when
2887 calling above method.
2889 2006-07-24 Maciej Stachowiak <mjs@apple.com>
2893 - fix <rdar://problem/4609195> Help Viewer loads empty window (not getting didFailLoadingWithError: callback)
2894 (without re-introducing http://bugs.webkit.org/show_bug.cgi?id=10062 )
2896 * WebView/WebLoader.h:
2897 * WebView/WebMainResourceLoader.m:
2898 (-[WebMainResourceLoader receivedError:]): Copy in some code from the base class to do it in the proper
2899 order, surrounding the call to [ds _receivedMainResourceError:error complete:YES].
2901 2006-07-24 Anders Carlsson <acarlsson@apple.com>
2905 * Misc/WebIconDatabase.m:
2906 (-[WebIconDatabase removeAllIcons]):
2907 Make an array of the keys and iterate through it to avoid modifying the
2908 dictionary while enumerating it.
2910 2006-07-24 Timothy Hatcher <timothy@apple.com>
2912 Reviewed by John and Darin.
2914 <rdar://problem/4634290> Cannot selectively install a custom
2915 scroller that differs from the default Aqua frame size.
2917 Adds two new private methods to WebFrameView that allows
2918 an application to set a custom scroll view class. This is needed
2919 if the application wants to install a custom scroller that is wider
2920 than the typical scroller, because NSScrollView does the content
2921 rect calculations in a class method (ignoring custom scrollers.)
2922 The _setScrollViewClass method requires the class to be a subclass
2923 of WebDynamicScrollBarView, or nil can be passed to reset to the default class.
2924 A new scroll view of the specified class will then replace the previous
2925 one without the need to reload content of the frame.
2927 * WebView/WebFrameView.m:
2928 (-[WebFrameView _customScrollViewClass]):
2929 (-[WebFrameView _setCustomScrollViewClass:]):
2930 * WebView/WebFrameViewPrivate.h:
2932 2006-07-24 Alexey Proskuryakov <ap@nypop.com>
2936 Fix http://bugs.webkit.org/show_bug.cgi?id=10009
2937 REGRESSION: Schubert-IT PDF Plug-in not working for full page (works in frames)
2939 * WebView/WebView.m:
2940 (+[WebView _viewClass:andRepresentationClass:forMIMEType:]): If we've got a type supported by WebPDFView,
2941 make sure to initialize the plugin database, in case a plugin wants to handle it.
2943 2006-07-23 Mark Rowe <opendarwin.org@bdash.net.nz>
2947 Bug 9686: [Drosera] Need the ability to break into Drosera on Javascript exceptions
2948 http://bugs.webkit.org/show_bug.cgi?id=9686
2950 WebKit portion of the fix.
2952 * DefaultDelegates/WebDefaultScriptDebugDelegate.m:
2953 (-[WebDefaultScriptDebugDelegate webView:exceptionWasRaised:sourceId:line:forWebFrame:]):
2954 * DefaultDelegates/WebScriptDebugServer.h:
2955 * DefaultDelegates/WebScriptDebugServer.m:
2956 (-[WebScriptDebugServer webView:exceptionWasRaised:sourceId:line:forWebFrame:]): Notify
2957 listeners that an exception has been raised.
2958 * WebView/WebScriptDebugDelegate.h:
2959 * WebView/WebScriptDebugDelegate.m:
2960 (-[WebScriptCallFrame exceptionRaised:sourceId:line:]): Dispatch through to delegate and
2961 WebScriptDebugServer.
2963 2006-07-23 Adele Peterson <adele@apple.com>
2967 - Fix for <rdar://problem/4646276> CrashTracer: 7 crashes in Safari at com.apple.WebCore: WebCore::RenderTableSection::paint + 155
2969 * WebView/WebHTMLView.m: (-[WebHTMLView _web_layoutIfNeededRecursive:testDirtyRect:]):
2970 needsDisplay was returning NO even though the view has a dirty rect (see <rdar://problem/4647062>). Since we know about
2971 the dirty rect, we don't actually need to check needsDisplay.
2973 2006-07-22 Timothy Hatcher <timothy@apple.com>
2977 Bug 10062: REGRESSION: dom/xhtml/level2/html/HTMLIFrameElement11.xhtml asserts/crashes
2978 http://bugs.webkit.org/show_bug.cgi?id=10062
2980 2006-07-21 Timothy Hatcher <timothy@apple.com>
2984 <rdar://problem/4609195> Help Viewer loads empty window
2985 (not getting didFailLoadingWithError: callback)
2987 Call super's didFailWithError before _receivedMainResourceError
2988 because _receivedMainResourceError will cause the datasource's
2989 frame to be set to nil before the didFailLoadingWithError delegate
2990 callback is sent. (This order is needed now that WebDataSource does
2991 not hold on to the WebView; it uses the WebFrame to get to the WebView.
2992 If the WebFrame is nil we can't get to the WebView's resource load delegate.)
2994 * WebView/WebMainResourceLoader.m:
2995 (-[WebMainResourceLoader receivedError:]):
2998 2006-07-22 Timothy Hatcher <timothy@apple.com>
3002 <rdar://problem/4646318> REGRESSION: Ctrl-clicking on a selection containing a word doesn't display a complete contextual menu
3004 Show the editing context menu if the WebView is editible.
3005 The original change only checked if the DOM element was editable,
3006 and isContentEditable returns NO if entire WebView is editable.
3008 * DefaultDelegates/WebDefaultContextMenuDelegate.m:
3009 (-[WebDefaultUIDelegate webView:contextMenuItemsForElement:defaultMenuItems:]):
3011 2006-07-21 Timothy Hatcher <timothy@apple.com>
3015 <rdar://problem/4609195> Help Viewer loads empty window
3016 (not getting didFailLoadingWithError: callback)
3018 Call super's didFailWithError before _receivedMainResourceError
3019 because _receivedMainResourceError will cause the datasource's
3020 frame to be set to nil before the didFailLoadingWithError delegate
3021 callback is sent. (This order is needed now that WebDataSource does
3022 not hold on to the WebView; it uses the WebFrame to get to the WebView.
3023 If the WebFrame is nil we can't get to the WebView's resource load delegate.)
3025 * WebView/WebMainResourceLoader.m:
3026 (-[WebMainResourceLoader receivedError:]):
3028 === Safari-521.20 ===
3030 2006-07-21 Timothy Hatcher <timothy@apple.com>
3034 <rdar://problem/4607572> REGRESSION (521.10.1 - 521.13): most context menu items missing when a form field is focused (common on google.com) (9680)
3036 Do not use _isEditable call since that only checks if the current
3037 selection or frame is editible. We now check if the currently clicked element
3038 is a content editible area, a textarea, an isindex or an input element that
3039 return YES to _isTextField.
3041 * DefaultDelegates/WebDefaultContextMenuDelegate.m:
3042 (-[WebDefaultUIDelegate webView:contextMenuItemsForElement:defaultMenuItems:]):
3044 2006-07-20 John Sullivan <sullivan@apple.com>
3048 - WebKit part of fix for:
3049 <rdar://problem/4557386> REGRESSION (419.3-521.19): repro Safari world leak involving
3050 closing tabs after clicking in a web page
3052 * WebCoreSupport/WebFrameBridge.m:
3053 (-[WebFrameBridge textViewWasFirstResponderAtMouseDownTime:]):
3054 renamed to be more specific (formerly wasFirstResponderAtMouseDownTime:)
3056 * WebView/WebHTMLViewInternal.h:
3057 * WebView/WebHTMLView.m:
3058 (-[WebTextCompleteController dealloc]):
3059 updated for name change
3060 (-[NSArray _setMouseDownEvent:]):
3061 Now only retains the first responder if it's a textView, since that's the only case that the only client
3062 actually cares about. This avoids a reference cycle caused by retaining self. This is the only substantive
3063 part of the patch; all the rest is just renaming for clarity, and comments.
3064 (-[NSArray mouseDown:]):
3065 updated for name change
3066 (-[WebHTMLView _textViewWasFirstResponderAtMouseDownTime:]):
3067 renamed to be more specific (formerly _wasFirstResponderAtMouseDownTime:)
3069 2006-07-19 Tim Omernick <timo@apple.com>
3073 <rdar://problem/4523432> safari crashed right after disabling "block pop up windows" (or other WebPreferences changes)
3075 * Plugins/WebBaseNetscapePluginView.m:
3076 (-[WebBaseNetscapePluginView viewWillMoveToSuperview:]):
3077 Stop the plug-in when it is removed from its superview. It is not sufficient to do this in -viewWillMoveToWindow:nil, because
3078 the WebView might still has a hostWindow at that point, which prevents the plug-in from being destroyed.
3079 There is no need to start the plug-in when moving into a superview. -viewDidMoveToWindow takes care of that.
3081 === Safari-521.19 ===
3083 2006-07-17 Tim Omernick <timo@apple.com>
3087 <rdar://problem/4612079> need a way to prevent pages from scrolling to reveal elements that are focused
3090 * WebView/WebViewPrivate.h:
3091 * WebView/WebView.m:
3092 (-[WebView setProhibitsMainFrameScrolling:]):
3093 New method. Prohibits scrolling in the WebView's main frame. Used to "lock" a WebView to a specific
3096 2006-07-17 Timothy Hatcher <timothy@apple.com>
3100 <rdar://problem/4635311> REGRESSION: WebKit should call windowScriptObjectAvailable before attaching the script debugger
3102 * WebCoreSupport/WebFrameBridge.m:
3103 (-[WebFrameBridge windowObjectCleared]):
3105 2006-07-17 Timothy Hatcher <timothy@apple.com>
3109 <rdar://problem/4634874> WebScriptObject and WebUndefined are no longer defined by WebKit
3111 Copy WebScriptObject.h from WebCore's private headers, not JavaScriptCore.
3113 * WebKit.xcodeproj/project.pbxproj:
3115 2006-07-17 John Sullivan <sullivan@apple.com>
3117 Reviewed by Tim Omernick.
3119 - fixed <rdar://problem/4604366> Orange Find highlight displays text in wrong size on PDF pages
3120 if they're not at "actual size"
3122 To match WebHTMLView, I made the methods that return attributed strings take the view's scale
3123 factor into account.
3125 * WebView/WebPDFView.m:
3126 (-[WebPDFView _scaledAttributedString:]):
3127 new helper method, takes an attributed string and returns one that's scaled by the view's
3128 current scale factor
3129 (-[WebPDFView attributedString]):
3130 pass result through _scaledAttributedString:
3131 (-[WebPDFView selectedAttributedString]):
3134 2006-07-17 Justin Garcia <justin.garcia@apple.com>
3138 Rolled the first fix for:
3139 <http://bugs.webkit.org/show_bug.cgi?id=9642>
3140 GMail Editor: Operations that use drop down menus blow away the selection
3141 back in and removed the call to _clearSelectionInOtherFrames from
3142 -[WebHTMLView becomeFirstResponder] to fix the bug.
3144 * WebView/WebHTMLView.m:
3145 (-[NSArray maintainsInactiveSelection]):
3146 (-[NSArray becomeFirstResponder]):
3147 * WebView/WebView.m:
3148 (-[WebView maintainsInactiveSelection]):
3150 2006-07-15 Darin Adler <darin@apple.com>
3152 Reviewed by John Sullivan.
3154 - fix http://bugs.webkit.org/show_bug.cgi?id=9928
3155 REGRESSION: Text Encoding menu inoperative (after gcc protocol build fix)
3157 * WebView/WebHTMLView.m:
3158 (-[WebHTMLView _documentRange]): Moved into WebHTMLViewFileInternal category.
3159 (-[WebHTMLView selectionRect]): Moved into WebDocumentPrivateProtocols category.
3160 (-[WebHTMLView selectionView]): Ditto.
3161 (-[WebHTMLView selectionImageForcingWhiteText:]): Ditto.
3162 (-[WebHTMLView selectionImageRect]): Ditto.
3163 (-[WebHTMLView pasteboardTypesForSelection]): Ditto.
3164 (-[WebHTMLView selectAll]): Ditto.
3165 (-[WebHTMLView deselectAll]): Ditto.
3166 (-[WebHTMLView string]): Ditto.
3167 (-[WebHTMLView _attributeStringFromDOMRange:]): Ditto.
3168 (-[WebHTMLView attributedString]): Ditto.
3169 (-[WebHTMLView selectedString]): Ditto.
3170 (-[WebHTMLView selectedAttributedString]): Ditto.
3171 (-[WebHTMLView supportsTextEncoding]): Ditto.
3172 (-[WebHTMLView _canProcessDragWithDraggingInfo:]): Moved into WebDocumentInternalProtocols.
3173 (-[WebHTMLView _isMoveDrag]): Ditto.
3174 (-[WebHTMLView _isNSColorDrag:]): Ditto.
3175 (-[WebHTMLView draggingUpdatedWithDraggingInfo:actionMask:]): Ditto.
3176 (-[WebHTMLView draggingCancelledWithDraggingInfo:]): Ditto.
3177 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): Ditto.
3178 (-[WebHTMLView elementAtPoint:]): Ditto.
3179 (-[WebHTMLView elementAtPoint:allowShadowContent:]): Ditto.
3181 * WebKit.xcodeproj/project.pbxproj: Let Xcode 2.3 do its thing.
3183 === Safari-521.17 ===
3185 2006-07-14 Timothy Hatcher <timothy@apple.com>
3187 Rolling out this fix from r15358 since it isn't resolved.
3189 2006-07-11 Justin Garcia <justin.garcia@apple.com>
3191 Reviewed by levi & thatcher
3193 <http://bugs.webkit.org/show_bug.cgi?id=9642>
3194 GMail Editor: Operations that use drop down menus blow away the selection
3196 * WebView/WebHTMLView.m:
3197 (-[WebHTMLView maintainsInactiveSelection]): Maintain an inactive selection
3198 when resigning as first responder if the selection is editable
3199 or if the WebView tells us to.
3200 * WebView/WebView.m:
3201 (-[WebView maintainsInactiveSelection]): Just because a WebView is
3202 editable doesn't mean selections inside subframes will be. Return
3205 2006-07-14 Timothy Hatcher <timothy@apple.com>
3207 <rdar://problem/4623957> SWB: gcc-5412 (new?) objc warning causes WebCore project failure
3209 Build fix with the new GCC. Removes forward declarations of protocols.
3211 * Misc/WebSearchableTextView.h:
3212 * WebCoreSupport/WebSubresourceLoader.h:
3213 * WebKit.xcodeproj/project.pbxproj:
3214 * WebView/WebDocumentInternal.h:
3215 * WebView/WebDocumentPrivate.h:
3216 * WebView/WebHTMLView.h:
3217 * WebView/WebPDFView.h:
3218 * WebView/WebScriptDebugDelegatePrivate.h:
3220 2006-06-28 Darin Adler <darin@apple.com>
3224 - fix http://bugs.webkit.org/show_bug.cgi?id=9625
3225 <rdar://problem/4604703>
3226 REGRESSION: Focus not removed from password field after ctrl-click in text field
3228 * WebView/WebHTMLView.m: (-[WebHTMLView menuForEvent:]): Set handlingMouseDownEvent to
3229 YES while calling sendContextMenuEvent: on the bridge.
3231 2006-07-14 Timothy Hatcher <timothy@apple.com>
3235 Moved JavaScriptCore to be a public framework.
3237 * WebKit.xcodeproj/project.pbxproj:
3239 2006-07-13 Mitz Pettel <opendarwin.org@mitzpettel.com>
3243 - fix http://bugs.webkit.org/show_bug.cgi?id=9795
3244 REGRESSION: Crash in [WebHTMLView(WebPrivate)
3245 _updateMouseoverWithEvent:]
3246 and http://bugs.webkit.org/show_bug.cgi?id=9850
3247 REGRESSION: Assertion failure (SHOULD NEVER BE REACHED) in -
3248 [WebHTMLView(WebPrivate) removeTrackingRect:]
3250 * WebView/WebHTMLView.m:
3251 (-[WebHTMLView _updateMouseoverWithEvent:]): Return immediately if
3252 the view has already been closed.
3254 2006-07-13 David Harrison <harrison@apple.com>
3256 Reviewed by Justin and Levi.
3258 <rdar://problem/4620743> REGRESSION: Option-Delete doesn't delete words during typing
3261 editing/deleting/delete-by-word-001.html
3262 editing/deleting/delete-by-word-002.html
3264 * WebView/WebHTMLView.m:
3265 (-[WebHTMLView _deleteRange:killRing:prepend:smartDeleteOK:deletionAction:granularity:]):
3267 2006-07-13 Timothy Hatcher <timothy@apple.com>
3269 Rolling out this earlier change (r15378) now that it is fixed on AGL's end.
3270 Fixes <rdar://problem/4624865> Restore 64-bit OpenGL plug-in support once AGL is 64-bit
3272 <rdar://problem/4624858> AGL isn't 64-bit yet; temporarily remove it from WebKit 64-bit build
3274 * Plugins/WebBaseNetscapePluginView.h:
3275 * Plugins/WebBaseNetscapePluginView.m:
3277 2006-07-13 Timothy Hatcher <timothy@apple.com>
3281 <rdar://problem/4616920> REGRESSION: tabbing in mail moves focus
3282 to next control instead of inserting a tab space.
3284 Change editible WebView's tabKeyCyclesThroughElements to NO only
3285 if the setTabKeyCyclesThroughElements SPI wasn't called.
3287 * WebView/WebView.m:
3288 (-[WebView setEditable:]):
3290 2006-07-12 Anders Carlsson <acarlsson@apple.com>
3294 http://bugs.webkit.org/show_bug.cgi?id=9624
3295 REGRESSION: After ctrl-clicking in a EMPTY input or textarea field, the contextual menu shows "Search in Google" and "Search in Spotlight" as active menu items
3297 * DefaultDelegates/WebDefaultContextMenuDelegate.m:
3298 (-[WebDefaultUIDelegate editingContextMenuItemsForElement:defaultMenuItems:]):
3299 Don't create Dictionary, Spotlight or Google lookup items if there's no selection.
3301 2006-07-12 Mark Rowe <opendarwin.org@bdash.net.nz>
3303 Reviewed by Timothy.
3305 http://bugs.webkit.org/show_bug.cgi?id=9868
3306 Applications shown in Drosera's "Attach" window remain after exit
3308 * DefaultDelegates/WebScriptDebugServer.m:
3309 (-[WebScriptDebugServer init]): Register for NSApplicationWillTerminateNotification so we will
3310 know when the application is being exited.
3311 (-[WebScriptDebugServer dealloc]): Unregister notification before we are deallocated.
3312 (-[WebScriptDebugServer applicationTerminating:]): Inform anyone listening that we are going away.
3314 2006-07-12 Tim Omernick <timo@apple.com>
3316 Reviewed by Tim Hatcher.
3318 <rdar://problem/4624858> AGL isn't 64-bit yet; temporarily remove it from WebKit 64-bit build
3320 Also, fixed a LOG_ERROR() so that it uses the CGL error instead of the AGL error; Tim H missed this in his build fix
3323 * Plugins/WebBaseNetscapePluginView.h:
3324 * Plugins/WebBaseNetscapePluginView.m:
3326 2006-07-11 John Sullivan <sullivan@apple.com>
3328 Reviewed by Kevin and Tim O
3330 - added support for creating a selection image with white text
3332 * WebView/WebDocumentPrivate.h:
3333 added -selectionImageForcingWhiteText: and -selectionImageRect to the private
3334 <WebDocumentSelection> protocol
3336 * Misc/WebSearchableTextView.m:
3337 (-[NSString selectionImageForcingWhiteText:]):
3338 added stub for this new method to this obsolete class to satisfy the compiler
3339 (-[NSString selectionImageRect]):
3342 * WebView/WebHTMLView.m:
3343 (-[WebHTMLView _selectionDraggingImage]):
3344 now calls -selectionImageForcingWhiteText:NO instead of just -selectionImage
3345 (-[WebHTMLView _selectionDraggingRect]):
3346 now calls selectionImageRect, to which the implementation moved
3347 (-[WebHTMLView selectionImageForcingWhiteText:]):
3348 implemented this new method by calling through to new bridge method selectionImageForcingWhiteText:
3349 (-[WebHTMLView selectionImageRect]):
3350 implemented this new method by using existing _selectionDraggingRect implementation
3352 * WebView/WebPDFView.m:
3353 (-[WebPDFView selectionImageForcingWhiteText:]):
3354 implemented by using code that was formerly in Safari
3355 (-[WebPDFView selectionImageRect]):
3356 implemented by returning selectionRect
3358 2006-07-11 Tim Omernick <timo@apple.com>
3362 <http://bugs.webkit.org/show_bug.cgi?id=9843>:
3363 Give Netscape plug-ins access to their own DOM element
3365 * Plugins/WebBaseNetscapePluginView.h:
3366 * Plugins/WebBaseNetscapePluginView.m:
3367 (-[WebBaseNetscapePluginView dealloc]):
3368 Release DOM element.
3369 (-[WebBaseNetscapePluginView getVariable:value:]):
3370 Return NPObject for plugin DOM element.
3372 * Plugins/WebNetscapePluginEmbeddedView.h:
3373 * Plugins/WebNetscapePluginEmbeddedView.m:
3374 (-[WebNetscapePluginEmbeddedView initWithFrame:plugin:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:DOMElement:]):
3375 Now takes a DOMElement, in much the same way that WebKit plug-in views take a DOMElement.
3377 * WebCoreSupport/WebFrameBridge.m:
3378 (-[WebFrameBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:DOMElement:loadManually:]):
3379 Pass DOMElement to Netscape plug-ins.
3380 (-[WebFrameBridge viewForJavaAppletWithFrame:attributeNames:attributeValues:baseURL:DOMElement:]):
3383 2006-07-11 Justin Garcia <justin.garcia@apple.com>
3385 Reviewed by levi & thatcher
3387 <http://bugs.webkit.org/show_bug.cgi?id=9642>
3388 GMail Editor: Operations that use drop down menus blow away the selection
3390 * WebView/WebHTMLView.m:
3391 (-[WebHTMLView maintainsInactiveSelection]): Maintain an inactive selection
3392 when resigning as first responder if the selection is editable
3393 or if the WebView tells us to.
3394 * WebView/WebView.m:
3395 (-[WebView maintainsInactiveSelection]): Just because a WebView is
3396 editable doesn't mean selections inside subframes will be. Return
3399 2006-07-11 Tim Omernick <timo@apple.com>
3401 Reviewed by Tim Hatcher.
3403 <rdar://problem/4622748> WebKit now uses deprecated AGL functions
3405 * Plugins/WebBaseNetscapePluginView.m:
3406 (-[WebBaseNetscapePluginView _createWindowedAGLContext]):
3407 aglSetDrawable() is deprecated in AGL 3.0. Use aglSetWindowRef() instead.
3408 (-[WebBaseNetscapePluginView _createWindowlessAGLContext]):
3409 aglSetOffScreen() is deprecated in AGL 3.0. Use CGLSetOffScreen(), which does the same thing.
3411 2006-07-11 Alexey Proskuryakov <ap@nypop.com>
3415 - http://bugs.webkit.org/show_bug.cgi?id=7808
3416 Assertion failure in -[WebBaseNetscapePluginStream dealloc] when requesting an invalid URL
3418 * Plugins/WebNetscapePluginStream.m:
3419 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
3420 Remove the early return when requesting an invalid (unsupported) URL.
3422 === Safari-521.16 ===
3424 2006-07-10 Mitz Pettel <opendarwin.org@mitzpettel.com>
3426 Reviewed by John Sullivan.
3428 - fix <rdar://problem/4621541>, aka <http://bugs.webkit.org/show_bug.cgi?id=9838>
3429 REGRESSION (r14968-r14977): View Source doesn't work for pages from the back/forward cache
3431 * WebView/WebDataSource.m:
3432 (-[WebDataSource _setPrimaryLoadComplete:]): Set our data only if the frame loader is
3433 has just loaded it (when coming from the back/forward cache, it hasn't).
3435 2006-07-10 Brady Eidson <beidson@apple.com>
3439 Resolved the console error messages people got from the new DB even if they didn't have it enabled
3441 * Misc/WebIconDatabase.m:
3442 (-[WebIconDatabase init]):
3443 Disabled initializing the IconDatabaseBridge if user is living on the old DB
3445 2006-07-10 Darin Adler <darin@apple.com>
3447 - try to fix Windows build
3449 * COM/WebFrame.h: Qualify DeprecatedString and KURL with WebCore:: prefixes.
3451 2006-07-09 Darin Adler <darin@apple.com>
3453 - try to fix Windows build
3455 * COM/WebFrame.cpp: Rename QChar to DeprecatedChar.
3457 2006-07-09 Darin Adler <darin@apple.com>
3459 - fix newlines to be consistent for all files in the COM directory
3460 (many had mixed style) and set the EOL style to "native" on them.
3462 * COM/*: Set properties and changed files.
3464 2006-07-09 Tim Omernick <timo@apple.com>
3468 <rdar://problem/4404652> Netscape plug-in mouse events broken in HiDPI
3470 Multiply global mouse coordinates by the window scale factor so that plug-ins can use GlobalToLocal() in HiDPI.
3471 This fixes many bugs involving plug-in mouse event handling in HiDPI. Most notably, the Flash player will now
3472 correctly respond to clicks.
3474 * Plugins/WebBaseNetscapePluginView.m:
3475 (+[WebBaseNetscapePluginView getCarbonEvent:]):
3476 (-[WebBaseNetscapePluginView getCarbonEvent:withEvent:]):
3478 2006-07-09 Darin Adler <darin@apple.com>
3480 Reviewed by Tim Hatcher.
3482 - fix assertion firing in plug-in layout tests
3484 * Plugins/WebBaseNetscapePluginView.m:
3485 (-[WebBaseNetscapePluginView restartNullEvents]):
3486 Don't start null events if the plug-in is not in the
3487 started state. This happens when the plug-in moves within
3488 its view hierarchy after it has been stopped.
3490 2006-07-09 Timothy Hatcher <timothy@apple.com>
3494 Bug 9820: Move new DOM API that has been through API review to public headers
3495 http://bugs.webkit.org/show_bug.cgi?id=9820
3497 * Misc/WebElementDictionary.m: include DOMExtensions.h
3498 * Misc/WebNSViewExtras.m: include DOMExtensions.h
3499 * WebKit.xcodeproj/project.pbxproj: make DOMXPath.h public
3501 2006-07-09 Timothy Hatcher <timothy@apple.com>
3505 Bug 9818: move new UIDelegate API that has been through API review to public headers
3506 http://bugs.webkit.org/show_bug.cgi?id=9818
3508 <rdar://problem/4387541> API: Remove webView:setContentRect: & webViewContentRect: delegate methods?
3509 The fix for 4310363 removed the only use of webViewContentRect: in our code. webView:setContentRect:
3510 was never used to begin with. There's no harm in leaving these around in the API, but they'll cruft it up.
3512 Also removes the never used webViewPrint: SPI that was replaced by webView:printFrameView:.
3514 * DefaultDelegates/WebDefaultUIDelegate.m:
3515 * WebCoreSupport/WebFrameBridge.m:
3516 (-[WebFrameBridge print]):
3517 * WebView/WebFrameView.h:
3518 * WebView/WebFrameView.m:
3519 * WebView/WebFrameViewPrivate.h:
3520 * WebView/WebUIDelegate.h:
3521 * WebView/WebUIDelegatePrivate.h:
3523 2006-07-09 Timothy Hatcher <timothy@apple.com>
3527 Bug 9814: Move new WebView API that has been through API review to public headers
3528 http://bugs.webkit.org/show_bug.cgi?id=9814
3530 * WebView/WebView.h:
3531 * WebView/WebView.m:
3533 (-[WebView setShouldCloseWithWindow:]):
3534 (-[WebView shouldCloseWithWindow]):
3535 (-[WebView selectedFrame]):
3536 (-[WebView setMainFrameURL:]):
3537 (-[WebView mainFrameURL]):
3538 (-[WebView isLoading]):
3539 (-[WebView mainFrameTitle]):
3540 (-[WebView mainFrameIcon]):
3541 (-[WebView mainFrameDocument]):
3542 (-[WebView setDrawsBackground:]):
3543 (-[WebView drawsBackground]):
3544 (-[WebView toggleSmartInsertDelete:]):
3545 (-[WebView toggleContinuousSpellChecking:]):
3546 (-[WebView canMakeTextStandardSize]):
3547 (-[WebView makeTextStandardSize:]):
3548 (-[WebView maintainsInactiveSelection]):
3549 * WebView/WebViewPrivate.h:
3551 2006-07-09 Timothy Hatcher <timothy@apple.com>
3555 Bug 9487: The XPath section should be removed and/or moved.
3556 http://bugs.webkit.org/show_bug.cgi?id=9487
3558 * WebInspector/webInspector/inspector.css:
3559 * WebInspector/webInspector/inspector.html:
3560 * WebInspector/webInspector/inspector.js:
3562 2006-07-09 Anders Carlsson <acarlsson@apple.com>
3566 * WebCoreSupport/WebSystemInterface.m:
3567 (InitWebCoreSystemInterface):