1 2006-10-02 Maciej Stachowiak <mjs@apple.com>
5 - move a big slice of data and logic from WebDataSource to WebDocumentLoadState
7 * Loader/WebDocumentLoadState.h:
8 * Loader/WebDocumentLoadState.m:
9 (-[WebDocumentLoadState initWithRequest:]):
10 (-[WebDocumentLoadState dealloc]):
11 (-[WebDocumentLoadState originalRequestCopy]):
12 (-[WebDocumentLoadState request]):
13 (-[WebDocumentLoadState replaceRequestURLForAnchorScrollWithURL:]):
14 (-[WebDocumentLoadState setRequest:]):
15 (-[WebDocumentLoadState setResponse:]):
16 (-[WebDocumentLoadState isStopping]):
17 (-[WebDocumentLoadState bridge]):
18 (-[WebDocumentLoadState setMainDocumentError:]):
19 (-[WebDocumentLoadState mainDocumentError]):
20 (-[WebDocumentLoadState clearErrors]):
21 (-[WebDocumentLoadState mainReceivedError:complete:]):
22 (-[WebDocumentLoadState stopLoading]):
23 (-[WebDocumentLoadState setupForReplace]):
24 (-[WebDocumentLoadState commitIfReady]):
25 (-[WebDocumentLoadState finishedLoading]):
26 (-[WebDocumentLoadState setCommitted:]):
27 (-[WebDocumentLoadState isCommitted]):
28 (-[WebDocumentLoadState setLoading:]):
29 (-[WebDocumentLoadState isLoading]):
30 (-[WebDocumentLoadState commitLoadWithData:]):
31 (-[WebDocumentLoadState doesProgressiveLoadWithMIMEType:]):
32 (-[WebDocumentLoadState receivedData:]):
33 (-[WebDocumentLoadState setupForReplaceByMIMEType:]):
34 (-[WebDocumentLoadState updateLoading]):
35 (-[WebDocumentLoadState response]):
36 * Loader/WebFrameLoader.h:
37 * Loader/WebFrameLoader.m:
38 (-[WebFrameLoader activeDocumentLoadState]):
39 (-[WebFrameLoader activeDataSource]):
40 (-[WebFrameLoader _archivedSubresourceForURL:]):
41 (-[WebFrameLoader addPlugInStreamLoader:]):
42 (-[WebFrameLoader removePlugInStreamLoader:]):
43 (-[WebFrameLoader addSubresourceLoader:]):
44 (-[WebFrameLoader removeSubresourceLoader:]):
45 (-[WebFrameLoader documentLoadState]):
46 (-[WebFrameLoader provisionalDocumentLoadState]):
47 (-[WebFrameLoader stopLoading]):
48 (-[WebFrameLoader _originalRequest]):
49 (-[WebFrameLoader _receivedData:]):
50 (-[WebFrameLoader _setRequest:]):
51 (-[WebFrameLoader bridge]):
52 (-[WebFrameLoader _handleFallbackContent]):
53 (-[WebFrameLoader _isStopping]):
54 (-[WebFrameLoader _setupForReplaceByMIMEType:]):
55 (-[WebFrameLoader _setResponse:]):
56 (-[WebFrameLoader _mainReceivedError:complete:]):
57 (-[WebFrameLoader _finishedLoading]):
58 (-[WebFrameLoader didReceiveServerRedirectForProvisionalLoadForFrame]):
59 (-[WebFrameLoader finishedLoadingDocumentLoadState:]):
60 (-[WebFrameLoader commitProvisitionalLoad]):
61 (-[WebFrameLoader committedLoadWithDocumentLoadState:data:]):
62 (-[WebFrameLoader isReplacing]):
63 (-[WebFrameLoader setReplacing]):
64 (-[WebFrameLoader revertToProvisionalWithDocumentLoadState:]):
65 (-[WebFrameLoader documentLoadState:setMainDocumentError:]):
66 (-[WebFrameLoader documentLoadState:mainReceivedCompleteError:]):
67 (-[WebFrameLoader finalSetupForReplaceWithDocumentLoadState:]):
68 * WebView/WebDataSource.m:
69 (-[WebDataSourcePrivate dealloc]):
70 (-[WebDataSource _prepareForLoadStart]):
71 (-[WebDataSource _mainDocumentError]):
72 (-[WebDataSource _finishedLoading]):
73 (-[WebDataSource _receivedData:]):
74 (-[WebDataSource _setMainDocumentError:]):
75 (-[WebDataSource _clearUnarchivingState]):
76 (-[WebDataSource _revertToProvisionalState]):
77 (-[WebDataSource _receivedMainResourceError:complete:]):
78 (-[WebDataSource _startLoading]):
79 (-[WebDataSource _loadFromPageCache:]):
80 (-[WebDataSource _bridge]):
81 (-[WebDataSource _setPrimaryLoadComplete:]):
82 (-[WebDataSource _URLForHistory]):
83 (-[WebDataSource _setTitle:]):
84 (-[WebDataSource _initWithDocumentLoadState:]):
85 (-[WebDataSource request]):
86 (-[WebDataSource response]):
87 (-[WebDataSource isLoading]):
88 (-[WebDataSource webArchive]):
89 * WebView/WebDataSourceInternal.h:
90 * WebView/WebDocumentLoadStateMac.m:
91 (-[WebDocumentLoadStateMac initWithRequest:]):
93 (-[WebFrame _createItem:]):
94 (-[WebFrame _receivedMainResourceError:]):
95 (-[WebFrame _transitionToCommitted:]):
96 (-[WebFrame _commitProvisionalLoad:]):
97 (-[WebFrame _checkLoadCompleteForThisFrame]):
98 (-[WebFrame _loadItem:withLoadType:]):
99 (-[WebFrame _continueFragmentScrollAfterNavigationPolicy:formState:]):
100 (-[WebFrame _didReceiveServerRedirectForProvisionalLoadForFrame]):
101 (-[WebFrame _provisionalLoadStarted]):
102 * WebView/WebFrameInternal.h:
104 2006-10-02 Justin Garcia <justin.garcia@apple.com>
108 <rdar://problem/4757583>
109 REGRESSION: tabbing into page focuses wrong control on 2nd pass
110 <rdar://problem/4757594>
111 REGRESSION: Form field is left with secondary selection after tabbing out of WebView
113 * WebView/WebHTMLView.m:
114 (-[NSArray maintainsInactiveSelection]): Replace code that I removed in error in the patch
115 for 9642. Only leave inactive editable selections in the WebHTMLView if the nextResponder
116 is in the same WebView.
118 2006-10-02 Maciej Stachowiak <mjs@apple.com>
122 - remove webFrame field from WebDataSourcePrivate, it can get it from WebDocumentLoadState now
124 * Loader/WebDocumentLoadState.h:
125 * Loader/WebDocumentLoadState.m:
126 (-[WebDocumentLoadState frameLoader]):
127 * WebView/WebDataSource.m:
128 (-[WebDataSourcePrivate dealloc]):
129 (-[WebDataSource _revertToProvisionalState]):
130 (-[WebDataSource _setupForReplaceByMIMEType:]):
131 (-[WebDataSource _updateLoading]):
132 (-[WebDataSource _startLoading]):
133 (-[WebDataSource _setWebFrame:]):
134 (-[WebDataSource _defersCallbacksChanged]):
135 (-[WebDataSource _stopLoading]):
136 (-[WebDataSource _webView]):
137 (-[WebDataSource _stopLoadingWithError:]):
138 (-[WebDataSource _setPrimaryLoadComplete:]):
139 (-[WebDataSource dealloc]):
140 (-[WebDataSource webFrame]):
141 (-[WebDataSource isLoading]):
143 2006-10-02 Maciej Stachowiak <mjs@apple.com>
147 - fix crash on back/forward - reattach WebDocumentLoadState to data source when needed
149 * WebView/WebDataSource.m:
150 (-[WebDataSource _setWebFrame:]):
151 (-[WebDataSource _initWithDocumentLoadState:]):
152 * WebView/WebDataSourceInternal.h:
154 2006-10-02 Maciej Stachowiak <mjs@apple.com>
156 Build fix, not reviewed.
158 - Added missing files to fix build.
160 * WebView/WebDocumentLoadStateMac.h: Added.
161 * WebView/WebDocumentLoadStateMac.m: Added.
162 (-[WebDocumentLoadStateMac initWithRequest:]):
163 (-[WebDocumentLoadStateMac dealloc]):
164 (-[WebDocumentLoadStateMac setDataSource:]):
165 (-[WebDocumentLoadStateMac dataSource]):
166 (-[WebDocumentLoadStateMac setFrameLoader:]):
168 2006-10-01 Maciej Stachowiak <mjs@apple.com>
170 Reviewed by Brady and Oliver.
172 - move things around so that WebDataSource and WebDocumentLoadState know about each other in
173 the right way. This lines things up to move nearly all functionality down to WebDocumentLoadState.
175 * Loader/WebDocumentLoadState.h:
176 * Loader/WebDocumentLoadState.m:
177 (-[WebDocumentLoadState initWithRequest:]):
178 (-[WebDocumentLoadState dealloc]):
179 (-[WebDocumentLoadState originalRequest]):
180 * Loader/WebFrameLoader.h:
181 * Loader/WebFrameLoader.m:
182 (-[WebFrameLoader dealloc]):
183 (-[WebFrameLoader addSubresourceLoader:]):
184 (-[WebFrameLoader startLoadingMainResourceWithRequest:identifier:]):
185 (-[WebFrameLoader dataSource]):
186 (-[WebFrameLoader _setDocumentLoadState:]):
187 (-[WebFrameLoader policyDataSource]):
188 (-[WebFrameLoader _setPolicyDocumentLoadState:]):
189 (-[WebFrameLoader clearDataSource]):
190 (-[WebFrameLoader provisionalDataSource]):
191 (-[WebFrameLoader _setProvisionalDocumentLoadState:]):
192 (-[WebFrameLoader _clearProvisionalDataSource]):
193 (-[WebFrameLoader _setState:]):
194 (-[WebFrameLoader clearProvisionalLoad]):
195 (-[WebFrameLoader commitProvisionalLoad]):
196 (-[WebFrameLoader stopLoading]):
197 (-[WebFrameLoader startLoading]):
198 (-[WebFrameLoader startProvisionalLoad:]):
199 (-[WebFrameLoader setupForReplace]):
200 (-[WebFrameLoader activeDocumentLoadState]):
201 (-[WebFrameLoader activeDataSource]):
202 (-[WebFrameLoader _loadRequest:archive:]):
203 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
204 (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
205 (-[WebFrameLoader reload]):
206 * WebKit.xcodeproj/project.pbxproj:
207 * WebView/WebDataSource.m:
208 (-[WebDataSourcePrivate dealloc]):
209 (-[WebDataSource _startLoading]):
210 (-[WebDataSource _setWebFrame:]):
211 (-[WebDataSource _documentLoadState]):
212 (-[WebDataSource _initWithDocumentLoadState:]):
213 (-[WebDataSource initWithRequest:]):
214 (-[WebDataSource initialRequest]):
215 (-[WebDataSource unreachableURL]):
216 * WebView/WebDataSourceInternal.h:
217 * WebView/WebFrame.m:
218 (-[WebFramePrivate dealloc]):
219 (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
220 (-[WebFrame _loadDataSource:withLoadType:formState:]):
221 (-[WebFrame _policyDataSource]):
222 (-[WebFrame _shouldReloadToHandleUnreachableURLFromRequest:]):
223 (-[WebFrame _dataSourceForDocumentLoadState:]):
224 (-[WebFrame _createDocumentLoadStateWithRequest:]):
225 * WebView/WebFrameInternal.h:
227 2006-09-29 David Hyatt <hyatt@apple.com>
229 Change the default minimum font size pref to 0 in order to allow
232 * WebView/WebPreferences.m:
233 (+[WebPreferences initialize]):
235 2006-09-28 Timothy Hatcher <timothy@apple.com>
239 Switch the inspector over to use border-image with styled buttons and selects.
241 * WebInspector/WebInspector.m:
242 (-[NSWindow window]):
243 (-[NSWindow setWebFrame:]):
244 (-[WebInspector _updateRoot]):
245 * WebInspector/webInspector/Images/button.png: Added.
246 * WebInspector/webInspector/Images/buttonDivider.png: Added.
247 * WebInspector/webInspector/Images/buttonPressed.png: Added.
248 * WebInspector/webInspector/Images/popup.png: Added.
249 * WebInspector/webInspector/Images/popupFill.png: Removed.
250 * WebInspector/webInspector/Images/popupFillPressed.png: Removed.
251 * WebInspector/webInspector/Images/popupLeft.png: Removed.
252 * WebInspector/webInspector/Images/popupLeftPressed.png: Removed.
253 * WebInspector/webInspector/Images/popupPressed.png: Added.
254 * WebInspector/webInspector/Images/popupRight.png: Removed.
255 * WebInspector/webInspector/Images/popupRightPressed.png: Removed.
256 * WebInspector/webInspector/Images/squareButtonRight.png: Removed.
257 * WebInspector/webInspector/Images/squareButtonRightPressed.png: Removed.
258 * WebInspector/webInspector/inspector.css:
259 * WebInspector/webInspector/inspector.html:
260 * WebInspector/webInspector/inspector.js:
262 2006-09-28 Alice Liu <alice.liu@apple.com>
264 fixing the windows build
267 (WebView::mouseMoved):
268 (WebView::mouseDown):
270 (WebView::mouseDoubleClick):
272 2006-09-27 Justin Garcia <justin.garcia@apple.com>
276 <rdar://problem/4044271>
277 Writing Direction menu doesn't reflect the current writing direction (9773)
279 * English.lproj/Localizable.strings: Added "Right to Left" and "Left to Right"
280 * WebView/WebHTMLView.m:
281 (-[NSArray validateUserInterfaceItem:]): Validate menu items that perform
282 toggleBaseWritingDirection and changeBaseWritingDirection.
283 Disable the menu item that changes the writing direction to NSWritingDirectionNautral
284 because NSWritingDirectionNatural's behavior can't be implemented with CSS.
285 Take control of the title of the menu item that performs toggleBaseWritingDirection:
286 instead of checking/unchecking it, otherwise we wouldn't know what a check means.
287 (-[NSArray changeBaseWritingDirection:]): ASSERT that the requested writing
288 direction is not NSWritingDirectionNatural, since we've disabled the
289 menu item that performs it.
291 2006-09-27 MorganL <morganl.webkit@yahoo.com>
293 Reviewed by Maciej, landed by Brady
295 Update URL request associated with provisional data source on redirect.
296 Notify IWebFrameLoadDelegate of redirects for the provisional load.
297 Notify IWebFrameLoadDelegate of a provisional load being commited.
299 * COM/WebDataSource.cpp:
300 (WebDataSource::replaceRequest):
301 * COM/WebDataSource.h:
303 (WebFrame::receivedRedirect):
304 (WebFrame::receivedResponse):
305 (WebFrame::receivedData):
307 2006-09-26 John Sullivan <sullivan@apple.com>
311 * WebView/WebHTMLViewPrivate.h:
312 * WebView/WebHTMLView.m:
313 (-[WebHTMLView markAllMatchesForText:caseSensitive:limit:]):
314 Added limit parameter, passed over the bridge. Stop the search if it hits limit.
316 * WebView/WebViewPrivate.h:
318 (-[WebView markAllMatchesForText:caseSensitive:highlight:limit:]):
319 Added limit parameter, passed to WebHTMLView.
321 2006-09-26 David Harrison <harrison@apple.com>
323 Reviewed by John and TimH.
325 <rdar://problem/4743256> Seed: Ctrl-Y key binding does nothing when kill ring is empty
327 Use deleteBackward: when the killring string is empty. Was always using insertText:,
328 but that ends up early-returning if the string to insert is empty.
330 * WebView/WebHTMLView.m:
332 (-[NSArray yankAndSelect:]):
334 2006-09-25 Timothy Hatcher <timothy@apple.com>
338 Use the non-deprecated method names for getComputedStyle, setEnd and setStart.
340 * WebInspector/WebInspector.m:
341 (-[WebInspector _highlightNode:]):
342 * WebView/WebHTMLView.m:
344 (-[WebHTMLView _selectRangeInMarkedText:]):
345 (-[WebTextCompleteController doCompletion]):
347 (-[WebView computedStyleForElement:pseudoElement:]):
349 2006-09-22 Timothy Hatcher <timothy@apple.com>
353 Pass all headers through unifdef to filter out BUILDING_ON_TIGER blocks
354 if MACOSX_DEPLOYMENT_TARGET is 10.4.
356 * MigrateHeaders.make:
358 2006-09-20 Justin Garcia <justin.garcia@apple.com>
362 <http://bugs.webkit.org/show_bug.cgi?id=7165>
363 TinyMCE: Dragging & dropping content always leaves a copy when editing inside a subframe
365 The top level WebHTMLView is responsible for performing dragging operations, but
366 the inner view, the view that holds the drag caret, should be consulted to determine
367 if the drag is a move drag.
369 * WebCoreSupport/WebFrameBridge.m:
370 (-[WebFrameBridge startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
371 * WebKit.xcodeproj/project.pbxproj:
372 * WebView/WebHTMLView.m:
373 (-[NSArray dragImage:at:offset:event:pasteboard:source:slideBack:]): Don't set initatedDrag here, because
374 it's only the top level WebHTMLView that performs this operation.
375 (-[WebHTMLView _setInitiatedDrag:]): Added.
376 (-[WebHTMLView _initiatedDrag]): Ditto.
377 (-[WebHTMLView _canProcessDragWithDraggingInfo:]): Ask the innerView if it initiated the drag,
378 not the top level view.
379 (-[WebHTMLView _isMoveDrag]): The top level view asks the innerView if it should perform
380 a move drag, so don't ASSERT _isTopHTMLView.
381 (-[WebHTMLView draggingUpdatedWithDraggingInfo:actionMask:]): Ask the innerView if _isMoveDrag.
382 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): Ditto.
383 * WebView/WebHTMLViewInternal.h: Added two private SPI so that
384 the top level WebHTMLView can set and get the initiatedDrag BOOL.
386 === Safari-521.27 ===
388 2006-09-20 Brady Eidson <beidson@apple.com>
390 Reviewed by Tim Omernick
392 Fixing part of a crash Tim O showed me. [WebIconDatabase init] should finish
393 gracefully even if we can't open the database
395 * Misc/WebIconDatabase.m:
396 (-[WebIconDatabase init]):
398 2006-09-20 Timothy Hatcher <timothy@apple.com>
402 <rdar://problem/4741392> Develop a system to find what version of WebKit an app was linked with
404 * Misc/WebKitVersionChecks.h: Added.
405 * Misc/WebKitVersionChecks.m: Added.
406 (WebKitLinkedOnOrAfter): Added.
407 (WebKitLinkTimeVersion): Added.
408 (WebKitRunTimeVersion): Added.
409 * WebKit.xcodeproj/project.pbxproj:
411 2006-09-20 Tim Omernick <timo@apple.com>
415 * Misc/WebIconDatabase.m:
416 (-[WebIconDatabase init]):
419 2006-09-20 Brady Eidson <beidson@apple.com>
423 Preparing to make the WebIconDatabase disabled by default - this patch tells the bridge whether its enabled or not
425 * Misc/WebIconDatabase.m:
426 (-[WebIconDatabase init]):
428 2006-09-19 Brady Eidson <beidson@apple.com>
430 Reviewed by Sarge Decker
432 <rdar://problem/4739892> and <rdar://problem/4729797>
433 - WebCore::IconDatabase needs to have and respect an enabled() flag
434 - Mail on ToT WebKit crashes in IconDatabase code when mailing a page from Safari
436 * Misc/WebIconDatabase.m:
437 (-[WebIconDatabase init]): If preference says icons are disabled, tell the bridge
438 (-[WebIconDatabase _isEnabled]): Ask the bridge if the database is enabled
440 2006-09-19 Alexey Proskuryakov <ap@nypop.com>
444 http://bugs.webkit.org/show_bug.cgi?id=10661
445 REGRESSION: CFM plug-ins (Shockwave, SVG) are not loaded
447 * Plugins/WebBasePluginPackage.m:
448 (-[WebBasePluginPackage initWithPath:]): On 32-bit PowerPC, don't bail out if
449 the bundle is nil - it can be a CFM plugin.
451 2006-09-18 Brady Eidson <beidson@apple.com>
455 Implement a bridge method so WebCore can find the reload type of a frame load
457 * WebCoreSupport/WebFrameBridge.m:
458 (-[WebFrameBridge isLoadTypeReload]):
460 2006-09-18 Sam Weinig <sam.weinig@gmail.com>
464 Patch for http://bugs.webkit.org/show_bug.cgi?id=10903
465 Yet Another Objective-C Bindings Patch
467 * MigrateHeaders.make:
469 2006-09-17 David Harrison <harrison@apple.com>
471 Reviewed by John Sullivan.
473 <rdar://problem/4494340> REGRESSION: Making the font size bigger/smaller in an HTML message doesn't affect the body until you reopen it
475 Problem was the public API -[WebView setTextSizeMultiplier] did not notify anyone that the value changed.
477 * WebView/WebDocumentInternal.h:
478 Add _textSizeMultiplierChanged to the _WebDocumentTextSizing protocol.
480 * WebView/WebHTMLView.m:
481 (-[WebHTMLView _textSizeMultiplierChanged]):
482 Send [self _updateTextSizeMultiplier].
484 * WebView/WebPDFView.m:
485 (-[WebPDFView _textSizeMultiplierChanged]):
486 ASSERT_NOT_REACHED() because WebPDFView does not track the common multiplier.
489 (-[WebView setTextSizeMultiplier:]):
490 Send [self _notifyTextSizeMultiplierChanged];
492 (-[WebView _performTextSizingSelector:withObject:onTrackingDocs:selForNonTrackingDocs:newScaleFactor:]):
493 Alter the _textSizeMultiplier directly so that notification is not sent.
496 (-[WebView _notifyTextSizeMultiplierChanged]):
497 New. Send _textSizeMultiplierChanged to all document views that track the common multiplier.
499 2006-09-16 Brady Eidson <beidson@apple.com>
503 WebIconLoader is dead, long live WebCore::IconLoader
506 * Loader/WebFrameLoader.h:
507 * Loader/WebFrameLoader.m:
508 (-[WebFrameLoader dealloc]):
509 (-[WebFrameLoader commitProvisionalLoad]):
510 * Loader/WebIconLoader.h: Removed.
511 * Loader/WebIconLoader.m: Removed.
512 * Misc/WebIconDatabase.h:
513 * Misc/WebIconDatabase.m:
514 * Misc/WebIconDatabasePrivate.h:
515 * WebCoreSupport/WebFrameBridge.m:
516 (-[WebFrameBridge notifyIconChanged:]):
517 * WebCoreSupport/WebIconDatabaseBridge.h:
518 * WebCoreSupport/WebIconDatabaseBridge.m:
519 (-[WebIconDatabaseBridge _init]):
520 (-[WebIconDatabaseBridge _setIconData:forIconURL:]):
521 (-[WebIconDatabaseBridge _setHaveNoIconForIconURL:]):
523 * WebKit.xcodeproj/project.pbxproj:
524 * WebView/WebDataSource.m:
525 (-[WebDataSourcePrivate dealloc]):
526 (-[WebDataSource _stopLoading]):
527 (-[WebDataSource _setPrimaryLoadComplete:]):
528 * WebView/WebDataSourceInternal.h:
530 2006-09-16 Mark Rowe <opendarwin.org@bdash.net.nz>
534 http://bugs.webkit.org/show_bug.cgi?id=10887
537 * MigrateHeaders.make: Remove reference to DOMEventPrivate.h.
539 2006-09-15 Timothy Hatcher <timothy@apple.com>
543 Make new style ObjC methods public API.
545 * MigrateHeaders.make:
547 2006-09-15 Sam Weinig <sam.weinig@gmail.com>
551 Patch for http://bugs.webkit.org/show_bug.cgi?id=10870
552 Auto-generate DOMNode for the Objective-C bindings
554 * MigrateHeaders.make:
556 2006-09-15 Timothy Hatcher <timothy@apple.com>
560 Call the bridge directly for alter selection calls. All of this logic is now
561 in WebCore's SelectionController.
563 * WebView/WebHTMLView.m:
564 (-[NSArray moveBackward:]):
565 (-[NSArray moveBackwardAndModifySelection:]):
566 (-[NSArray moveDown:]):
567 (-[NSArray moveDownAndModifySelection:]):
568 (-[NSArray moveForward:]):
569 (-[NSArray moveForwardAndModifySelection:]):
570 (-[NSArray moveLeft:]):
571 (-[NSArray moveLeftAndModifySelection:]):
572 (-[NSArray moveRight:]):
573 (-[NSArray moveRightAndModifySelection:]):
574 (-[NSArray moveToBeginningOfDocument:]):
575 (-[NSArray moveToBeginningOfDocumentAndModifySelection:]):
576 (-[NSArray moveToBeginningOfSentence:]):
577 (-[NSArray moveToBeginningOfSentenceAndModifySelection:]):
578 (-[NSArray moveToBeginningOfLine:]):
579 (-[NSArray moveToBeginningOfLineAndModifySelection:]):
580 (-[NSArray moveToBeginningOfParagraph:]):
581 (-[NSArray moveToBeginningOfParagraphAndModifySelection:]):
582 (-[NSArray moveToEndOfDocument:]):
583 (-[NSArray moveToEndOfDocumentAndModifySelection:]):
584 (-[NSArray moveToEndOfSentence:]):
585 (-[NSArray moveToEndOfSentenceAndModifySelection:]):
586 (-[NSArray moveToEndOfLine:]):
587 (-[NSArray moveToEndOfLineAndModifySelection:]):
588 (-[NSArray moveToEndOfParagraph:]):
589 (-[NSArray moveToEndOfParagraphAndModifySelection:]):
590 (-[NSArray moveParagraphBackwardAndModifySelection:]):
591 (-[NSArray moveParagraphForwardAndModifySelection:]):
592 (-[NSArray moveUp:]):
593 (-[NSArray moveUpAndModifySelection:]):
594 (-[NSArray moveWordBackward:]):
595 (-[NSArray moveWordBackwardAndModifySelection:]):
596 (-[NSArray moveWordForward:]):
597 (-[NSArray moveWordForwardAndModifySelection:]):
598 (-[NSArray moveWordLeft:]):
599 (-[NSArray moveWordLeftAndModifySelection:]):
600 (-[NSArray moveWordRight:]):
601 (-[NSArray moveWordRightAndModifySelection:]):
602 (-[NSArray pageUp:]):
603 (-[NSArray pageDown:]):
604 (-[NSArray pageUpAndModifySelection:]):
605 (-[NSArray pageDownAndModifySelection:]):
607 2006-09-15 Adam Roben <aroben@apple.com>
611 Fixes http://bugs.webkit.org/show_bug.cgi?id=10876
612 containsItemForURLUnicode uses matchLetter instead of
615 Small fixes for _WebCoreHistoryProvider.
617 * History/WebHistory.m: Consistently use BUFFER_SIZE #define
618 (-[_WebCoreHistoryProvider containsItemForURLLatin1:length:]):
619 (-[_WebCoreHistoryProvider containsItemForURLUnicode:length:]):
620 Replace incorrect call to matchLetter to matchUnicodeLetter
622 2006-09-13 Brady Eidson <beidson@apple.com>
626 Add infrastructure to support icon loads taking place in WebCore
627 Will remove WebKit icon loaders in a later patch
629 * WebCoreSupport/WebFrameBridge.m:
630 (-[WebFrameBridge notifyIconChanged:]):
631 (-[WebFrameBridge originalRequestURL]):
632 - Nuked two old, obsolete methods
633 - Added bridge for notifying of an icon change
634 - Added bridge for getting the "original request URL" which is still needed
635 until that info is available in the WebCore loaders
637 * WebView/WebDataSource.m:
638 (-[WebDataSource _loadIcon]):
639 - Empty body just for now, as it still gets called - next patch will prune all the old impl out
641 2006-09-13 Timothy Hatcher <timothy@apple.com>
645 <rdar://problem/4726416> obsolete confusing "ADVISORY NOTE" comment in WebHistory.h
647 Removed the "ADVISORY NOTE: This method may change for the 1.0 SDK" comments.
649 * History/WebHistory.h:
651 === Safari-521.26 ===
653 2006-09-11 MorganL <morlmor@yahoo.com>
655 Reviewed/landed by aroben.
657 Fixes http://bugs.webkit.org/show_bug.cgi?id=10765
658 Windows build busted due to std::copy usage in Vector.h
660 * WebKit.vcproj/WebKit.vcproj: Define _SCL_SECURE_NO_DEPRECATE to get
661 rid of deprecation warnings on std::copy
663 2006-09-11 Brady Eidson <beidson@apple.com>
665 Despite the fact that some people built okay without this change, it sure was biting me,
666 probably because I just wiped my build directory for a fresh build -
667 Today's earlier removal of DOMList.h needed to occur in MigrateHeaders.make, as well
669 * MigrateHeaders.make: removed DOMList.h
671 2006-09-10 Darin Adler <darin@apple.com>
675 - fix http://bugs.webkit.org/show_bug.cgi?id=10547
676 REGRESSION: Links that should open in a new window open in the same window,
677 while opening another blank window
679 * WebView/WebFrame.m:
680 (-[WebFrame _continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
681 Changed a mistaken "self" to "frame", which was the cause of the bug. Also
682 fixed the method so that it won't crash if createWebViewWithRequest does
683 something that has a side effect of releasing this WebView or this frame
684 by retaining "self" and "frame" as needed. Also fixed a problem where the
685 code to set "opener" was backwards, and would set the opener of the old
686 frame to point to the new frame instead of vice versa.
688 2006-09-09 Sam Weinig <sam.weinig@gmail.com>
692 Patch for http://bugs.webkit.org/show_bug.cgi?id=10795
693 Auto-generate the Objective-C DOM XPath bindings
695 * MigrateHeaders.make:
697 2006-09-09 Sam Weinig <sam.weinig@gmail.com>
701 Patch for http://bugs.webkit.org/show_bug.cgi?id=10791
702 Even More Objective-C DOM auto-generation cleanup
704 * MigrateHeaders.make:
706 2006-09-08 Tim Omernick <timo@apple.com>
708 Reviewed by Brady Eidson.
710 Rolled out Maciej's code cleanup from 8/22. It turns out that keeping the "loading" flag
711 is a useful optimization, as it avoids many Objective-C method calls while polling resources
712 for their load state.
714 This fixes a 3-4% PLT performance regression (as measured on my MacBook Pro).
716 * Loader/WebFrameLoader.m:
717 (-[WebFrameLoader addPlugInStreamLoader:]):
718 (-[WebFrameLoader removePlugInStreamLoader:]):
719 (-[WebFrameLoader addSubresourceLoader:]):
720 (-[WebFrameLoader removeSubresourceLoader:]):
721 * WebView/WebDataSource.m:
722 (-[WebDataSourcePrivate dealloc]):
723 (-[WebDataSource _prepareForLoadStart]):
724 (-[WebDataSource _setLoading:]):
725 (-[WebDataSource _updateLoading]):
726 (-[WebDataSource _startLoading]):
727 (-[WebDataSource _stopLoading]):
728 (-[WebDataSource _setPrimaryLoadComplete:]):
729 (-[WebDataSource isLoading]):
730 * WebView/WebDataSourceInternal.h:
732 2006-09-07 Sam Weinig <sam.weinig@gmail.com>
734 Reviewed by Darin and Tim H.
736 Patch for http://bugs.webkit.org/show_bug.cgi?id=10774
737 Auto-generate the Objective-C DOM Traversal bindings
739 * MigrateHeaders.make:
741 2006-09-07 Sam Weinig <sam.weinig@gmail.com>
745 Patch for http://bugs.webkit.org/show_bug.cgi?id=10766
746 Auto-generate the Objective-C DOM Events bindings
748 * MigrateHeaders.make:
749 * WebKit.xcodeproj/project.pbxproj:
751 2006-09-06 Alexey Proskuryakov <ap@nypop.com>
753 * MigrateHeaders.make: Fixed a double slash in
754 "$(PRIVATE_HEADERS_DIR)//DOMCharacterDataPrivate.h" (this was reported
755 to cause a build failure under certain circumstances).
757 2006-09-05 MorganL <morlmor@yahoocom>
759 Reviewed/landed by aroben.
761 Fixes bug 10743: Windows build is busted.
766 2006-09-05 Timothy Hatcher <timothy@apple.com>
770 Drastically simplified the makefile for migrating headers from
771 WebCore and JavaScriptCore. The old version was always copying the files.
773 * MigrateHeaders.make:
775 2006-09-05 Darin Adler <darin@apple.com>
779 - WebKit side of changes to encoding
781 * WebView/WebHTMLRepresentation.m: (-[WebHTMLRepresentation documentSource]):
782 Changed to call new -[WebCoreFrameBridge stringWithData:] instead of the calling
783 the old methods that used a CFStringEncoding: -[WebCoreFrameBridge textEncoding]
784 and +[WebCoreFrameBridge stringWithData:textEncoding:].
786 * WebView/WebResource.m: (-[WebResource _stringValue]): Removed special case for
787 nil encoding name. The bridge itself now has the rule that "nil encoding name
788 means Latin-1", so we don't need to check for nil.
790 * WebView/WebFrame.m: (-[WebFrame _checkLoadComplete]): Retain the frame until
791 we get the parent frame while walking up parent frames, because it's possible
792 for _checkLoadCompleteForThisFrame to release the last reference to the frame.
793 (Not reviewed; needed to run performance tests successfully.)
795 2006-09-05 Timothy Hatcher <timothy@apple.com>
799 <rdar://problem/4682225> conflicting typedefs in Netscape plug-in headers
801 * Plugins/npfunctions.h: fix the return type for NPN_IntFromIdentifierProcPtr to be int32_t
803 2006-09-04 Timothy Hatcher <timothy@apple.com>
807 Bug 10714: ObjC autogeneration needs safe-guards against easily modifying the public API
808 http://bugs.webkit.org/show_bug.cgi?id=10714
810 - Added the new private DOM headers.
811 - Factored out the common commands into variables.
812 - Made WebDashboardRegion.h private again.
813 - Rename DOMDOMImplementation.h to DOMImplementation.h when files
814 are migrated. Also fixes up #imports.
816 * MigrateHeaders.make:
818 2006-09-03 Sam Weinig <sam.weinig@gmail.com>
820 Reviewed by Darin and Tim H.
822 - patch for http://bugs.webkit.org/show_bug.cgi?id=10711
823 Auto-generate the Objective-C DOM Stylesheet bindings
825 * MigrateHeaders.make:
827 2006-09-02 Sam Weinig <sam.weinig@gmail.com>
831 - patch for http://bugs.webkit.org/show_bug.cgi?id=10684
832 Auto-generate the Objective-C DOM CSS bindings
834 * MigrateHeaders.make:
836 2006-09-01 MorganL <morlmor@yahoo.com>
838 Reviewed by Darin. Updated/landed by Adam.
840 Fixes http://bugs.webkit.org/show_bug.cgi?id=10553
844 (WebFrame::initWithName):
846 2006-09-01 Brady Eidson <beidson@apple.com>
850 A "never should be reached" method was reached - lets not release the shared database bridge, esp
851 since we never retain it!
853 * Misc/WebIconDatabase.m:
854 (-[WebIconDatabase _applicationWillTerminate:]): Don't release the bridge
856 2006-09-01 Darin Adler <darin@apple.com>
860 - a few small tweaks to the icon database bridge
862 * Misc/WebIconDatabase.m: (-[WebIconDatabase init]): Updated for name change.
864 * WebCoreSupport/WebIconDatabaseBridge.h: Removed unneeded declarations.
865 * WebCoreSupport/WebIconDatabaseBridge.m:
866 (-[WebIconDatabaseBridge init]): Added. Always returns nil since you're not supposed
867 to allocate one of these.
868 (-[WebIconDatabaseBridge _init]): Renamed from init. Used internally to make the
869 shared instance. Added the "self = [super init]" idiom even though it's not important
870 in this case just to be consistent.
871 (-[WebIconDatabaseBridge releaseCachedLoaderForIconURL:]): Moved this up in the file
872 so it can be called without declaring it in the header.
873 (+[WebIconDatabaseBridge sharedInstance]): Renamed. Calls the new _init. Also use
874 CFRetain for compatibility.
875 (-[WebIconDatabaseBridge dealloc]): Emptied this out and made it just assert (false).
876 (-[WebIconDatabaseBridge finalize]): Added and made it assert (false) too.
878 2006-09-01 Timothy Hatcher <timothy@apple.com>
882 Bug 10677: Omit "-webkit-text-security: none;" from the computed style list
883 http://bugs.webkit.org/show_bug.cgi?id=10677
885 * WebInspector/webInspector/inspector.js:
887 2006-08-31 Sam Weinig <sam.weinig@gmail.com>
891 - patch for http://bugs.webkit.org/show_bug.cgi?id=10669
892 Auto-generate the remaining Objective-C HTML DOM bindings
894 * MigrateHeaders.make:
896 2006-08-31 Adele Peterson <adele@apple.com>
900 WebKit part of fix for http://bugs.webkit.org/show_bug.cgi?id=10666
901 Password: Disallow Spelling, Font, Speech, and Writing Direction context menu
903 * DefaultDelegates/WebDefaultContextMenuDelegate.m: (-[WebDefaultUIDelegate editingContextMenuItemsForElement:defaultMenuItems:]):
904 Check that the selection isn't in a password field before adding these items to the default editing context menu.
905 Search In Google, Search In Spotlight, Look up in Dictionary, Spelling, Font, Speech, Writing Direction
906 * WebView/WebHTMLView.m: (-[WebHTMLView _isSelectionInPasswordField]): Added.
907 * WebView/WebHTMLViewPrivate.h:
909 2006-08-31 Sam Weinig <sam.weinig@gmail.com>
913 - patch for http://bugs.webkit.org/show_bug.cgi?id=10653
914 Auto-generate another 20 Objective-C DOM HTML bindings
916 * MigrateHeaders.make:
917 * WebKit.xcodeproj/project.pbxproj:
919 2006-08-31 Adele Peterson <adele@apple.com>
921 Reviewed by John Sullivan.
923 Removed wkSecureEventInput and wkSetSecureEventInput, since this can be done with API.
925 * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface):
927 2006-08-31 John Sullivan <sullivan@apple.com>
929 Reviewed by Tim Omernick
931 - fixed <rdar://problem/4711200> Loading history would be faster if it bypassed
932 NSURL API for local files
934 * History/WebHistory.m:
935 (-[WebHistoryPrivate _loadHistoryGutsFromURL:savedItemsCount:collectDiscardedItemsInto:error:]):
936 Load file URLs using [NSDictionary dictionaryWithContentsOfFile:]. I also cleaned up some minor
937 style issues in this method, and I removed the support for old NSArray-style history files (which we
938 stopped using before Safari 1.0).
940 2006-08-30 Adele Peterson <adele@apple.com>
944 WebKit part of fix for http://bugs.webkit.org/show_bug.cgi?id=10575
945 Enable secure input mode for new password fields
947 * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface):
949 2006-08-30 Brady Eidson <beidson@apple.com>
953 <rdar://problem/4707718> Change behavior so if the WebCore::IconDatabase can't open, WebKit releases the bridge and
954 continues on as if the IconDatabase is disabled.
956 * Misc/WebIconDatabase.m:
957 (-[WebIconDatabase init]): Release the bridge on failure to open
958 * WebCoreSupport/WebIconDatabaseBridge.m:
959 (+[WebIconDatabaseBridge sharedBridgeInstance]): Moved static shared instance out as a global
960 (-[WebIconDatabaseBridge dealloc]): Clear pointer to the shared instance
962 2006-08-30 Timothy Hatcher <timothy@apple.com>
966 Simplify the header copies from WebCore and JavaScriptCore.
967 Headers that need to be migrated from the other projects need
968 to be added to MigrateHeaders.make.
970 * MigrateHeaders.make: Added.
971 * WebKit.xcodeproj/project.pbxproj:
973 2006-08-30 Sam Weinig <sam.weinig@gmail.com>
977 - patch for http://bugs.webkit.org/show_bug.cgi?id=10640
978 Auto-generate 10 more Objective-C DOM HTML bindings
980 * WebKit.xcodeproj/project.pbxproj:
982 2006-08-30 Adele Peterson <adele@apple.com>
986 WebKit part of fix for:
987 http://bugs.webkit.org/show_bug.cgi?id=10576
988 Disallow copy from new password fields
990 * WebView/WebHTMLView.m:
991 (-[WebHTMLView _canCopy]): Now also calls across the bridge to ask if it mayCopy.
992 (-[WebHTMLView _canCut]): Calls _canCopy now.
993 (-[NSArray validateUserInterfaceItem:]): Calls _canCut when validating the "Cut" menu item.
994 This used to call _canDelete (which used to be the same as _canCut), but now _canCut also checks _canCopy.
996 2006-08-30 Karl Adam <karladam@yahoo-inc.com>
998 Reviewed by Eric and Tim H.
1000 Bug 10634: -webView:dragDestinationActionMaskForDraggingInfo: is ignored
1001 http://bugs.webkit.org/show_bug.cgi?id=10634
1003 Remove the check for canShowFile: from _web_bestURL: since
1004 it shouldn't be concerned with whether or not the view
1005 can show the URL, merely return the most appropriate URL.
1007 * Misc/WebNSPasteboardExtras.m:
1008 (-[NSPasteboard _web_bestURL]):
1009 * Misc/WebNSViewExtras.m:
1010 (-[NSView _web_dragOperationForDraggingInfo:]):
1012 2006-08-29 Brady Eidson <beidson@apple.com>
1014 Reviewed by Kevin Decker (Sarge)
1016 <rdar://problem/4678414> - New IconDB needs to delete icons when asked
1018 * Misc/WebIconDatabase.m:
1019 (-[WebIconDatabase removeAllIcons]): Call through to WebCore to remove icons, then send notification
1021 2006-08-29 Brady Eidson <beidson@apple.com>
1025 Added a truth value check for to setIconURL:forURL so WebKit can avoid sending a notification
1026 This is a win on the iBench
1028 * Misc/WebIconDatabase.m:
1029 (-[WebIconDatabase _setIconURL:forURL:]):
1031 2006-08-29 Brady Eidson <beidson@apple.com>
1033 Reviewed by Tim Hatchers rubber stamp
1035 Removed some accidentally left-in console spew during the conversion to the new DB
1037 * Misc/WebIconDatabase.m:
1038 (objectFromPathForKey): Nuked some NSLogs
1040 2006-08-29 Tim Omernick <timo@apple.com>
1042 Reviewed by Darin Adler.
1044 <rdar://problem/4688618> REGRESSION(10.4.7-9A241): JMol java applet fails in Safari not Firefox
1046 No layout test for now because Java doesn't work in DumpRenderTree.
1048 * Plugins/WebPluginDatabase.m:
1049 (-[WebPluginDatabase refresh]):
1050 Add each plug-in MIME type to registeredMIMETypes, even if we don't register a document view class for the
1051 MIME type. This fixes -[WebPluginDatabase isMIMETypeRegistered:] and thus fallback content for Java applets
1052 (we were always rendering fallback content, if any, for Java applets).
1054 2006-08-29 Sam Weinig <sam.weinig@gmail.com>
1058 - patch for http://bugs.webkit.org/show_bug.cgi?id=10628
1059 Auto-generate the remaining Objective-C DOM bindings
1061 Auto-generates DOMHTMLCollection, DOMHTMLElement, DOMHTMLFormElement,
1062 and DOMHTMLOptionsCollection.
1064 * WebKit.xcodeproj/project.pbxproj:
1066 2006-08-28 Brady Eidson <beidson@apple.com>
1070 Short of a few small snippets that still need to be pushed to WebCore, this
1071 is a final prune of WebIconDatabase. WebFileDatabase and WebLRUFileList are gone
1072 and the small remaining snippets of WebFileDatabase code that were still important
1073 are now in static functions in WebIconDatabase.m
1075 * Loader/WebIconLoader.m:
1076 (-[WebIconLoader didFinishLoading]): Removed the flag
1077 * Misc/WebFileDatabase.h: Removed.
1078 * Misc/WebFileDatabase.m: Removed.
1079 * Misc/WebIconDatabase.m:
1080 (+[WebIconDatabase sharedIconDatabase]):
1081 (-[WebIconDatabase init]):
1082 (-[WebIconDatabase iconForURL:withSize:cache:]):
1083 (-[WebIconDatabase iconURLForURL:]):
1084 (-[WebIconDatabase defaultIconWithSize:]):
1085 (-[WebIconDatabase retainIconForURL:]):
1086 (-[WebIconDatabase releaseIconForURL:]):
1087 (-[WebIconDatabase _isEnabled]):
1088 (-[WebIconDatabase _setIconData:forIconURL:]):
1089 (-[WebIconDatabase _setHaveNoIconForIconURL:]):
1090 (-[WebIconDatabase _setIconURL:forURL:]):
1091 (-[WebIconDatabase _hasEntryForIconURL:]):
1092 (-[WebIconDatabase _applicationWillTerminate:]):
1093 (-[WebIconDatabase _resetCachedWebPreferences:]):
1094 (uniqueFilePathForKey): Added from WebFileDatabase
1095 (objectFromPathForKey): Added from WebFileDatabase
1096 (iconDataFromPathForIconURL):
1097 (-[WebIconDatabase _convertToWebCoreFormat]): Make use of static functions and local variables
1098 instead of using WebFileDatabase and WebIconDatabase variables that are now obsolete
1099 * Misc/WebIconDatabasePrivate.h: Removed alot of obsoleted members
1100 * Misc/WebLRUFileList.h: Removed.
1101 * Misc/WebLRUFileList.m: Removed.
1102 * WebKit.xcodeproj/project.pbxproj: Deleted 4 files
1103 * WebKitPrefix.h: Removed ICONDEBUG
1105 2006-08-28 Tim Omernick <timo@apple.com>
1107 Reviewed by Darin Adler.
1109 * Plugins/WebBaseNetscapePluginView.m:
1110 (-[WebBaseNetscapePluginView createPluginScriptableObject]):
1111 Removed a bogus typecast.
1113 2006-08-28 Tim Omernick <timo@apple.com>
1115 Reviewed by John Sullivan.
1117 Part of <rdar://problem/4481553> NetscapeMoviePlugIn example code scripting doesn't work in Firefox (4319)
1118 <http://bugs.webkit.org/show_bug.cgi?id=4319>: NetscapeMoviePlugIn example code scripting doesn't work
1121 * Plugins/WebBaseNetscapePluginView.h:
1122 * Plugins/WebBaseNetscapePluginView.m:
1123 (-[WebBaseNetscapePluginView createPluginScriptableObject]):
1124 Renamed this method (see corresponding WebCore ChangeLog entry for an explanation).
1127 2006-08-28 Brady Eidson <beidson@apple.com>
1129 Reviewed by Tim Hatcher's rubberstamp
1131 Rolled out my last change (16070 - pruning WebFileDatabase code) as it caused a difficult-to-track down
1132 failure in layout tests on a release build.
1134 * Misc/WebFileDatabase.h:
1135 * Misc/WebFileDatabase.m:
1136 (+[WebFileDatabaseOp opWithCode:key:object:]):
1137 (-[WebFileDatabaseOp initWithCode:key:object:]):
1138 (-[WebFileDatabaseOp opcode]):
1139 (-[WebFileDatabaseOp key]):
1140 (-[WebFileDatabaseOp object]):
1141 (-[WebFileDatabaseOp perform:]):
1142 (-[WebFileDatabaseOp dealloc]):
1143 (SetThreadPriority):
1144 (-[WebFileDatabase _createLRUList:]):
1145 (-[WebFileDatabase _truncateToSizeLimit:]):
1146 (+[WebFileDatabase _syncLoop:]):
1148 (-[WebFileDatabase setTimer]):
1149 (-[WebFileDatabase setObject:forKey:]):
1150 (-[WebFileDatabase removeObjectForKey:]):
1151 (-[WebFileDatabase removeAllObjects]):
1152 (-[WebFileDatabase objectForKey:]):
1153 (-[WebFileDatabase performSetObject:forKey:]):
1154 (-[WebFileDatabase performRemoveObjectForKey:]):
1155 (-[WebFileDatabase open]):
1156 (-[WebFileDatabase close]):
1157 (-[WebFileDatabase lazySync:]):
1158 (-[WebFileDatabase sync]):
1159 (-[WebFileDatabase sizeLimit]):
1160 (-[WebFileDatabase count]):
1161 (-[WebFileDatabase usage]):
1162 (-[WebFileDatabase setSizeLimit:]):
1163 * Misc/WebIconDatabase.m:
1164 (-[WebIconDatabase _createFileDatabase]):
1165 (-[WebIconDatabase _loadIconDictionaries]):
1166 * WebKit.xcodeproj/project.pbxproj:
1168 2006-08-28 Darin Adler <darin@apple.com>
1170 Reviewed by Tim Hatcher.
1172 * WebInspector/webInspector/inspector.js: Add "resize: none" to the list of
1173 default values for CSS properties so it will be omitted from most displays
1176 2006-08-28 Brady Eidson <beidson@apple.com>
1180 Major prune of unnecessary WebFileDatabase code. In the end, what
1181 useful code that remains in WebFileDatabase will likely be moved directly
1182 into WebIconDatabase
1184 * Misc/WebFileDatabase.h:
1185 * Misc/WebFileDatabase.m:
1186 (-[WebFileDatabase initWithPath:]):
1187 (-[WebFileDatabase objectForKey:]):
1188 (-[WebFileDatabase open]):
1189 (-[WebFileDatabase close]):
1190 * Misc/WebIconDatabase.m:
1191 (-[WebIconDatabase _createFileDatabase]):
1192 (-[WebIconDatabase _loadIconDictionaries]):
1193 * Misc/WebLRUFileList.h: Removed.
1194 * Misc/WebLRUFileList.m: Removed.
1195 * WebKit.xcodeproj/project.pbxproj:
1197 2006-08-27 Sam Weinig <sam.weinig@gmail.com>
1201 - patch for http://bugs.webkit.org/show_bug.cgi?id=4624
1202 WebCore needs autogenerated Obj-C DOM bindings
1204 First round of auto-generated Objective C DOM bindings, starting
1207 * WebKit.xcodeproj/project.pbxproj:
1209 2006-08-25 Brady Eidson <beidson@apple.com>
1211 Reviewed by Tim Hatcher
1213 Fixed up some leaks on [WebIconDatabase init]
1215 * Misc/WebIconDatabase.m:
1216 (-[WebIconDatabase init]):
1218 2006-08-24 Timothy Hatcher <timothy@apple.com>
1222 * WebView/WebFrame.m:
1223 (-[WebFrame _updateBackground]): reworded the comment about scroll view and setDrawsBackground:YES
1224 * WebView/WebView.m:
1225 (-[WebViewPrivate dealloc]): release the background color
1227 2006-08-24 Timothy Hatcher <timothy@apple.com>
1231 WebView API to allow changing the background color that draws under transparent page backgrounds.
1233 * WebView/WebFrame.m:
1234 (-[WebFrame _makeDocumentView]):
1235 (-[WebFrame _updateBackground]):
1236 * WebView/WebFrameInternal.h:
1237 * WebView/WebFrameView.m:
1238 (-[WebFrameView drawRect:]):
1239 * WebView/WebView.m:
1240 (-[WebView setBackgroundColor:]):
1241 (-[WebView backgroundColor]):
1242 (-[WebView _commonInitializationWithFrameName:groupName:]):
1243 (-[WebView setDrawsBackground:]):
1244 * WebView/WebViewPrivate.h:
1246 2006-08-24 Timothy Hatcher <timothy@apple.com>
1250 Fix for Mail stationary. Selecting a stationary item would cause this exception.
1251 *** -[WebSubresourceLoader copyWithZone:]: selector not recognized
1252 Uncaught exception - *** -[WebSubresourceLoader copyWithZone:]: selector not recognized
1254 * Loader/WebFrameLoader.m:
1255 (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
1256 Use _webkit_setObject:forUncopiedKey: when addign the resource to pendingArchivedResources.
1258 2006-08-23 Maciej Stachowiak <mjs@apple.com>
1262 - fix assertion which I accidentally changed to one that sometimes fails
1263 http://bugs.webkit.org/show_bug.cgi?id=10531
1265 * Loader/WebDocumentLoadState.m:
1266 (-[WebDocumentLoadState dealloc]):
1267 * WebView/WebDataSource.m:
1268 (-[WebDataSourcePrivate dealloc]):
1269 (-[WebDataSource dealloc]):
1271 2006-08-23 Maciej Stachowiak <mjs@apple.com>
1275 - move WebFrame code that creates WebDataSources down to WebFrameLoader, in preparation
1276 for WebFrameLoader just holding on to WebDocumentLoadState
1278 * Loader/WebFrameLoader.h:
1279 * Loader/WebFrameLoader.m:
1280 (-[WebFrameLoader _loadRequest:archive:]):
1281 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
1282 (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
1283 (-[WebFrameLoader reload]):
1284 * WebView/WebFrame.m:
1285 (-[WebFrame _loadItem:withLoadType:]):
1286 (-[WebFrame _continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
1287 (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
1288 (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
1289 (-[WebFrame _shouldReloadToHandleUnreachableURLFromRequest:]):
1290 (-[WebFrame loadRequest:]):
1291 (-[WebFrame loadArchive:]):
1292 (-[WebFrame reload]):
1293 * WebView/WebFrameInternal.h:
1294 * WebView/WebFramePrivate.h:
1295 * WebView/WebView.m:
1296 (-[WebView setCustomTextEncodingName:]):
1298 2006-08-23 Brady Eidson <beidson@apple.com>
1302 First pass at pruning unused WebIconDatabase code. Focus on removing methods that simply
1303 have no place in the new DB at all. A few renames and a few important FIXMEs result, but no
1304 functionality changes.
1306 * Loader/WebIconLoader.m:
1307 (-[WebIconLoader didFinishLoading]): Call to WebIconDatabase instead of directly to the bridge
1308 * Misc/WebIconDatabase.h:
1309 * Misc/WebIconDatabase.m:
1310 (-[WebIconDatabase init]):
1311 (-[WebIconDatabase iconForURL:withSize:cache:]):
1312 (-[WebIconDatabase iconURLForURL:]):
1313 (-[WebIconDatabase defaultIconWithSize:]):
1314 (-[WebIconDatabase retainIconForURL:]):
1315 (-[WebIconDatabase releaseIconForURL:]):
1316 (-[WebIconDatabase removeAllIcons]):
1317 (-[WebIconDatabase _setIconData:forIconURL:]):
1318 (-[WebIconDatabase _setHaveNoIconForIconURL:]):
1319 (-[WebIconDatabase _setIconURL:forURL:]):
1320 (-[WebIconDatabase _hasEntryForIconURL:]):
1321 (-[WebIconDatabase _applicationWillTerminate:]):
1322 (-[WebIconDatabase _resetCachedWebPreferences:]):
1323 * Misc/WebIconDatabasePrivate.h: Changed setIcon: to setIconData:
1325 2006-08-23 Maciej Stachowiak <mjs@apple.com>
1329 - started factoring most of the guts of WebDataSource into a new class
1331 WebDocumentLoadState is decoupled from the rest of WebKit and will
1332 be moved down to WebCore. I only moved one of the data fields of
1333 WebDataSource for now.
1335 * Loader/WebDocumentLoadState.h: Added.
1336 * Loader/WebDocumentLoadState.m: Added.
1337 (-[WebDocumentLoadState initWithRequest:]): New class.
1338 (-[WebDocumentLoadState dealloc]):
1339 (-[WebDocumentLoadState setFrameLoader:]):
1340 (-[WebDocumentLoadState setMainResourceData:]):
1341 (-[WebDocumentLoadState mainResourceData]):
1342 * Loader/WebFrameLoader.m:
1343 (-[WebFrameLoader _setDataSource:]): Remove redundant _setWebFrame: call,
1344 it would have been called already by this point.
1345 (-[WebFrameLoader _setProvisionalDataSource:]): ditto.
1346 * WebKit.xcodeproj/project.pbxproj:
1347 * WebView/WebDataSource.m:
1348 (-[WebDataSourcePrivate dealloc]):
1349 (-[WebDataSource _setWebFrame:]):
1350 (-[WebDataSource _setPrimaryLoadComplete:]):
1351 (-[WebDataSource initWithRequest:]):
1352 (-[WebDataSource data]):
1354 2006-08-23 Maciej Stachowiak <mjs@apple.com>
1358 - refactoring of WebDataSource in preparation for moving a bunch of it to a new class
1360 - minimize WebDataSourceInternal.h to be only methods called from outside WebDataSource
1361 - reduce Private category implementation to be only the SPI methods
1362 - make new Internal and FileInternal categories which contain the
1363 remainder (depending on whether they are called from outside of
1366 * WebView/WebDataSource.m:
1367 (-[WebDataSource _setMainDocumentError:]):
1368 (addTypesFromClass):
1369 (+[WebDataSource _representationClassForMIMEType:]):
1370 (-[WebDataSource _commitIfReady]):
1371 (-[WebDataSource _commitLoadWithData:]):
1372 (-[WebDataSource _doesProgressiveLoadWithMIMEType:]):
1373 (-[WebDataSource _addResponse:]):
1374 (-[WebDataSource _revertToProvisionalState]):
1375 (-[WebDataSource _mainDocumentError]):
1376 (-[WebDataSource _addSubframeArchives:]):
1377 (-[WebDataSource _fileWrapperForURL:]):
1378 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
1379 (-[WebDataSource _decidePolicyForMIMEType:decisionListener:]):
1380 (-[WebDataSource _finishedLoading]):
1381 (-[WebDataSource _setResponse:]):
1382 (-[WebDataSource _setRequest:]):
1383 (-[WebDataSource _setupForReplaceByMIMEType:]):
1384 (-[WebDataSource _receivedMainResourceError:complete:]):
1385 (-[WebDataSource _mainReceivedError:complete:]):
1386 (-[WebDataSource _defersCallbacks]):
1387 (-[WebDataSource _downloadWithLoadingConnection:request:response:proxy:]):
1388 (-[WebDataSource _didFailLoadingWithError:forResource:]):
1389 (-[WebDataSource _didFinishLoadingForResource:]):
1390 (-[WebDataSource _didReceiveData:contentLength:forResource:]):
1391 (-[WebDataSource _didReceiveResponse:forResource:]):
1392 (-[WebDataSource _didCancelAuthenticationChallenge:forResource:]):
1393 (-[WebDataSource _didReceiveAuthenticationChallenge:forResource:]):
1394 (-[WebDataSource _willSendRequest:forResource:redirectResponse:]):
1395 (-[WebDataSource _identifierForInitialRequest:]):
1396 (-[WebDataSource _archivedSubresourceForURL:]):
1397 (-[WebDataSource _startLoading]):
1398 (-[WebDataSource _stopRecordingResponses]):
1399 (-[WebDataSource _loadingStartedTime]):
1400 (-[WebDataSource _replaceSelectionWithArchive:selectReplacement:]):
1401 (-[WebDataSource _documentFragmentWithArchive:]):
1402 (-[WebDataSource _documentFragmentWithImageResource:]):
1403 (-[WebDataSource _imageElementWithImageResource:]):
1404 (-[WebDataSource _title]):
1405 (-[WebDataSource _isStopping]):
1406 (-[WebDataSource _setWebFrame:]):
1407 (-[WebDataSource _URL]):
1408 (-[WebDataSource _loadFromPageCache:]):
1409 (-[WebDataSource _popSubframeArchiveWithName:]):
1410 (-[WebDataSource _setIsClientRedirect:]):
1411 (-[WebDataSource _setURL:]):
1412 (-[WebDataSource _setLastCheckedRequest:]):
1413 (-[WebDataSource _defersCallbacksChanged]):
1414 (-[WebDataSource _lastCheckedRequest]):
1415 (-[WebDataSource _stopLoading]):
1416 (-[WebDataSource _bridge]):
1417 (-[WebDataSource _webView]):
1418 (-[WebDataSource _triggeringAction]):
1419 (-[WebDataSource _setTriggeringAction:]):
1420 (-[WebDataSource __adoptRequest:]):
1421 (-[WebDataSource _isDocumentHTML]):
1422 (-[WebDataSource _stopLoadingWithError:]):
1423 (-[WebDataSource _setPrimaryLoadComplete:]):
1424 (-[WebDataSource _responses]):
1425 (-[WebDataSource _makeRepresentation]):
1426 (-[WebDataSource _isClientRedirect]):
1427 (-[WebDataSource _originalRequest]):
1428 (-[WebDataSource _URLForHistory]):
1429 (-[WebDataSource _addToUnarchiveState:]):
1430 (-[WebDataSource _setOverrideEncoding:]):
1431 (-[WebDataSource _setIconURL:]):
1432 (-[WebDataSource _setIconURL:withType:]):
1433 (-[WebDataSource _overrideEncoding]):
1434 (-[WebDataSource _setTitle:]):
1435 * WebView/WebDataSourceInternal.h:
1437 2006-08-23 Brady Eidson <beidson@apple.com>
1439 Reviewed by John Sullivan
1442 Flip the switch to the new Icon Database
1443 Massive code pruning is coming up
1445 * WebKitPrefix.h: Flipped the switch
1447 2006-08-23 Brady Eidson <beidson@apple.com>
1450 Since I just pushed the default URL icon from WebKit to WebCore, but
1451 WebKit was still using its version of the default icon, this patch makes it
1452 use the WebCore version
1454 * Misc/WebIconDatabase.m:
1455 (-[WebIconDatabase defaultIconWithSize:]):
1457 2006-08-22 Maciej Stachowiak <mjs@apple.com>
1461 - remove "loading" flag from WebDataSource and code that manages it; it is redundat.
1463 * Loader/WebFrameLoader.m:
1464 (-[WebFrameLoader addPlugInStreamLoader:]):
1465 (-[WebFrameLoader removePlugInStreamLoader:]):
1466 (-[WebFrameLoader addSubresourceLoader:]):
1467 (-[WebFrameLoader removeSubresourceLoader:]):
1468 * WebView/WebDataSource.m:
1469 (-[WebDataSourcePrivate dealloc]):
1470 (-[WebDataSource _setPrimaryLoadComplete:]):
1471 (-[WebDataSource _stopLoading]):
1472 (-[WebDataSource _prepareForLoadStart]):
1473 (-[WebDataSource _startLoading]):
1474 (-[WebDataSource isLoading]):
1475 * WebView/WebDataSourceInternal.h:
1477 2006-08-22 Maciej Stachowiak <mjs@apple.com>
1481 <rdar://problem/4683948> REGRESSION: Assertion failure in [FrameProgressEntry addChild:forDataSource:] (fandango.com)
1483 * Loader/WebFrameLoader.m:
1484 (-[WebFrameLoader addSubresourceLoader:]): Add a WebKit-level assertion that should fire when this bad
1486 * Loader/WebSubresourceLoader.m:
1487 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]): Prevent
1488 the situation from occuring.
1490 2006-08-22 Maciej Stachowiak <mjs@apple.com>
1494 - pull more WebDataSource code into WebFrameLoader
1495 - make WebMainResourceLoader not depend on WebKit or on SPI
1497 * Loader/WebFrameLoader.h:
1498 * Loader/WebFrameLoader.m:
1499 (-[WebFrameLoader _downloadWithLoadingConnection:request:response:proxy:]):
1500 (-[WebFrameLoader _updateIconDatabaseWithURL:]):
1501 (-[WebFrameLoader _notifyIconChanged:]):
1502 (-[WebFrameLoader _iconLoaderReceivedPageIcon:]):
1503 (-[WebFrameLoader _checkNavigationPolicyForRequest:andCall:withSelector:]):
1504 (-[WebFrameLoader _checkContentPolicyForMIMEType:andCall:withSelector:]):
1505 (-[WebFrameLoader cancelContentPolicy]):
1506 * Loader/WebIconLoader.m:
1507 (-[WebIconLoader didFinishLoading]):
1508 * Loader/WebLoader.m:
1509 (-[NSURLProtocol loadWithRequest:]):
1510 (-[NSURLProtocol setDefersCallbacks:]):
1511 * Loader/WebMainResourceLoader.h:
1512 * Loader/WebMainResourceLoader.m:
1513 (-[WebMainResourceLoader initWithFrameLoader:]):
1514 (-[WebMainResourceLoader dealloc]):
1515 (-[WebMainResourceLoader cancelWithError:]):
1516 (-[WebMainResourceLoader continueAfterNavigationPolicy:formState:]):
1517 (-[WebMainResourceLoader willSendRequest:redirectResponse:]):
1518 (-[WebMainResourceLoader continueAfterContentPolicy:]):
1519 (-[WebMainResourceLoader checkContentPolicy]):
1520 (-[WebMainResourceLoader didReceiveResponse:]):
1521 * Plugins/WebPluginContainerCheck.m:
1522 * WebCoreSupport/WebSystemInterface.m:
1523 (InitWebCoreSystemInterface):
1524 * WebView/WebDataSource.m:
1525 (-[WebDataSource _loadIcon]):
1526 (-[WebDataSource _cancelledError]):
1527 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
1528 (+[WebDataSource _representationClassForMIMEType:]):
1529 (-[WebDataSource _commitLoadWithData:]):
1530 (-[WebDataSource _isDocumentHTML]):
1531 * WebView/WebDataSourceInternal.h:
1532 * WebView/WebFramePrivate.h:
1533 * WebView/WebPolicyDelegate.m:
1534 * WebView/WebPolicyDelegatePrivate.h:
1536 2006-08-21 Maciej Stachowiak <mjs@apple.com>
1540 - move more code from WebDataSource to WebFrameLoader
1542 Also marked a few more methods in WebDataSource as likely MOVABLE in a future round, since they do not
1543 use any of WebDataSource's private data.
1545 * Loader/WebFrameLoader.h:
1546 * Loader/WebFrameLoader.m:
1547 (-[WebFrameLoader addPlugInStreamLoader:]):
1548 (-[WebFrameLoader removePlugInStreamLoader:]):
1549 (-[WebFrameLoader addSubresourceLoader:]):
1550 (-[WebFrameLoader removeSubresourceLoader:]):
1551 (-[WebFrameLoader _didReceiveAuthenticationChallenge:forResource:]):
1552 (-[WebFrameLoader _didCancelAuthenticationChallenge:forResource:]):
1553 (-[WebFrameLoader _didReceiveResponse:forResource:]):
1554 (-[WebFrameLoader _didReceiveData:contentLength:forResource:]):
1555 (-[WebFrameLoader _didFinishLoadingForResource:]):
1556 (-[WebFrameLoader _didFailLoadingWithError:forResource:]):
1557 (-[WebFrameLoader _privateBrowsingEnabled]):
1558 (-[WebFrameLoader _finishedLoadingResource]):
1559 (-[WebFrameLoader _receivedError:]):
1560 (-[WebFrameLoader _finishedLoading]):
1561 * Loader/WebMainResourceLoader.m:
1562 (-[WebMainResourceLoader didReceiveData:lengthReceived:allAtOnce:]):
1563 (-[WebMainResourceLoader didFinishLoading]):
1564 * Loader/WebNetscapePlugInStreamLoader.m:
1565 (-[WebNetscapePlugInStreamLoader didFinishLoading]):
1566 (-[WebNetscapePlugInStreamLoader didFailWithError:]):
1567 (-[WebNetscapePlugInStreamLoader cancelWithError:]):
1568 * Loader/WebSubresourceLoader.m:
1569 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
1570 (-[WebSubresourceLoader signalFinish]):
1571 (-[WebSubresourceLoader didFailWithError:]):
1572 (-[WebSubresourceLoader cancel]):
1573 * Plugins/WebNetscapePluginStream.m:
1574 (-[WebNetscapePluginStream start]):
1575 * WebView/WebDataSource.m:
1576 (-[WebDataSource _replaceSelectionWithArchive:selectReplacement:]):
1577 (-[WebDataSource _updateIconDatabaseWithURL:]):
1578 (-[WebDataSource _loadIcon]):
1579 (-[WebDataSource _setPrimaryLoadComplete:]):
1580 (-[WebDataSource _cancelledError]):
1581 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
1582 (+[WebDataSource _representationClassForMIMEType:]):
1583 (-[WebDataSource _commitLoadWithData:]):
1584 (-[WebDataSource _receivedMainResourceError:complete:]):
1585 (-[WebDataSource _iconLoaderReceivedPageIcon:]):
1586 (-[WebDataSource _isDocumentHTML]):
1587 * WebView/WebDataSourceInternal.h:
1589 2006-08-21 Brady Eidson <beidson@apple.com>
1593 Quick ICONDEBUG flag fix
1595 * Misc/WebIconDatabase.m:
1596 (-[WebIconDatabase _applicationWillTerminate:]):
1598 2006-08-21 Brady Eidson <beidson@apple.com>
1602 -Renamed an internal only method for clarity
1603 -Tweaked WebDataSource for notification purposes with the new expiring icons
1604 -Fixed a bug with the ICONDEBUG flag
1606 * Misc/WebIconDatabase.m:
1607 (-[WebIconDatabase init]):
1608 (-[WebIconDatabase iconForURL:withSize:cache:]): #ifdef bug fixed
1609 (-[WebIconDatabase _hasEntryForIconURL:]): Renamed for clarity
1610 * Misc/WebIconDatabasePrivate.h:
1611 * WebView/WebDataSource.m:
1612 (-[WebDataSource _updateIconDatabaseWithURL:]):
1613 (-[WebDataSource _notifyIconChanged:]):
1614 (-[WebDataSource _loadIcon]):
1615 (-[WebDataSource _iconLoaderReceivedPageIcon:]):
1617 2006-08-17 Maciej Stachowiak <mjs@apple.com>
1621 - pull a bit of WebDataSource code into WebFrameLoader
1623 * Loader/WebFrameLoader.m:
1624 (-[WebFrameLoader _receivedError:]):
1625 (-[WebFrameLoader webFrame]):
1626 (-[WebFrameLoader _handleFallbackContent]):
1627 (+[WebFrameLoader _canShowMIMEType:]):
1628 (+[WebFrameLoader _representationExistsForURLScheme:]):
1629 (+[WebFrameLoader _generatedMIMETypeForURLScheme:]):
1630 * WebView/WebDataSource.m:
1631 * WebView/WebDataSourceInternal.h:
1633 2006-08-17 Timothy Hatcher <timothy@apple.com>
1635 Reviewed by Kevin Decker.
1637 <rdar://problem/4606857> WebKit: WebPreferencesChangedNotification not exported in 64-bit
1641 2006-08-17 Timothy Hatcher <timothy@apple.com>
1643 Reviewed by Kevin Decker.
1645 <rdar://problem/4633896> -[WebView close] should clear all delegates and call setHostWindow:nil
1646 <rdar://problem/4649759> Crash when selecting View Source menu using Chinese (-[WebView _close])
1648 Check to make sure _private is not null. A WebView can be dealloced before _private is setup.
1649 Set the _private->closed flag at the beginning of _close to prevent reentry.
1650 Set the host window and all the delegates to nil in _close.
1652 * WebView/WebView.m:
1653 (-[WebView _close]):
1655 2006-08-16 Brady Eidson <beidson@apple.com>
1659 * Misc/WebIconDatabase.m: Pruned unused method
1660 * Misc/WebIconDatabasePrivate.h: Ditto
1663 2006-08-15 Maciej Stachowiak <mjs@apple.com>
1665 Reviewed by Adele (preliminary version) and later by Kevin.
1667 - remove most WebKit dependencies from WebMainResourceLoader.
1669 * Loader/WebFrameLoader.h:
1670 * Loader/WebFrameLoader.m:
1671 (-[WebFrameLoader cannotShowMIMETypeForURL:]):
1672 (-[WebFrameLoader interruptForPolicyChangeErrorWithRequest:]):
1673 (-[WebFrameLoader isHostedByObjectElement]):
1674 (-[WebFrameLoader isLoadingMainFrame]):
1675 (+[WebFrameLoader _canShowMIMEType:]):
1676 (+[WebFrameLoader _representationExistsForURLScheme:]):
1677 (+[WebFrameLoader _generatedMIMETypeForURLScheme:]):
1678 * Loader/WebMainResourceLoader.h:
1679 * Loader/WebMainResourceLoader.m:
1680 (-[WebMainResourceLoader interruptForPolicyChangeError]):
1681 (-[WebMainResourceLoader willSendRequest:redirectResponse:]):
1682 (isCaseInsensitiveEqual):
1683 (shouldLoadAsEmptyDocument):
1684 (-[WebMainResourceLoader continueAfterContentPolicy:response:]):
1685 (-[WebMainResourceLoader didReceiveResponse:]):
1686 (-[WebMainResourceLoader didReceiveData:lengthReceived:allAtOnce:]):
1687 (-[WebMainResourceLoader didFinishLoading]):
1688 (-[WebMainResourceLoader loadWithRequestNow:]):
1689 (-[WebMainResourceLoader loadWithRequest:]):
1691 2006-08-15 Tim Omernick <timo@apple.com>
1693 Reviewed by Kevin Decker.
1695 * Plugins/WebNetscapePluginPackage.m:
1696 (-[WebNetscapePluginPackage _unloadWithShutdown:]):
1697 Fixed a subtle problem with the 64-bit debug build -- as written, this would LOG() on 64-bit and do nothing on
1699 * Plugins/WebPluginDatabase.m:
1700 (-[WebPluginDatabase _scanForNewPlugins]):
1701 Use +[NSMutableSet set] here.
1703 2006-08-15 Tim Omernick <timo@apple.com>
1705 Reviewed by Darin Adler.
1707 <http://bugs.webkit.org/show_bug.cgi?id=8980>
1708 ASSERTION FAILED: !isLoaded (WebKit/WebKit/Plugins/WebBasePluginPackage.m:228 -[WebBasePluginPackage dealloc])
1710 <rdar://problem/4526052> intermittent assertion failure in -[WebBasePluginPackage dealloc] running layout tests (8980)
1712 * Plugins/WebPluginDatabase.h:
1713 * Plugins/WebPluginDatabase.m:
1714 (+[WebPluginDatabase installedPlugins]):
1715 Observe NSApplicationWillTerminateNotification so we can unload plug-ins on quit.
1716 (-[WebPluginDatabase plugins]):
1717 'plugins' is now a dictionary.
1718 (-[WebPluginDatabase close]):
1719 Call new -_removePlugin: method.
1720 (-[WebPluginDatabase refresh]):
1721 Moved parts of this method out into other methods: -_addPlugin:, -_removePlugin:, and -_scanForNewPlugins.
1722 (-[WebPluginDatabase _plugInPaths]):
1723 No changes; just moved in file.
1724 (-[WebPluginDatabase _addPlugin:]):
1725 New method. Refactored from -refresh. Adds a plug-in to the database.
1726 (-[WebPluginDatabase _removePlugin:]):
1727 New method. Refactored from -refresh. Remove a plug-in from the database.
1728 (-[WebPluginDatabase _scanForNewPlugins]):
1729 New method. Refactored from -refresh. Returns the list of plug-in packages on disk.
1730 (-[WebPluginDatabase _applicationWillTerminate]):
1731 New method. Called when the application terminates. Closes the plug-in database so that all plug-ins are
1732 removed from the DB (and unloaded if necessary).
1734 * Plugins/WebBasePluginPackage.h:
1735 * Plugins/WebBasePluginPackage.m:
1736 (-[WebBasePluginPackage initWithPath:]):
1737 Try to create the NSBundle first, so if the file is not a valid bundle we bail out early. This
1738 avoids some stat()s and allocations during the plug-in refresh process.
1739 (-[WebBasePluginPackage isLoaded]):
1741 (-[WebBasePluginPackage load]):
1742 Base class for plug-in packages now always loads "successfully".
1743 (-[WebBasePluginPackage dealloc]):
1744 Removed this assertion. The base plug-in package class has no concept of
1746 (-[WebBasePluginPackage finalize]):
1748 (-[WebBasePluginPackage wasRemovedFromPluginDatabase:]):
1749 Moved code to unload plug-in package to WebNetscapePluginPackage. Not all plug-in
1750 packages can be "unloaded".
1752 * Plugins/WebNetscapePluginPackage.h:
1753 * Plugins/WebNetscapePluginPackage.m:
1754 (-[WebNetscapePluginPackage _unloadWithShutdown:]):
1755 Combined old -unload and -unloadWithoutShutdown methods into this new one.
1756 (-[WebNetscapePluginPackage initWithPath:]):
1757 Call new unload method.
1758 (-[WebNetscapePluginPackage load]):
1760 (-[WebNetscapePluginPackage wasRemovedFromPluginDatabase:]):
1762 (-[WebNetscapePluginPackage open]):
1763 New method. Called when a plug-in instance starts running.
1764 (-[WebNetscapePluginPackage close]):
1765 New method. Called when a plug-in instance stops running. When all plug-in instances
1766 close the plug-in package, and the plug-in package is removed from the database, the plug-in
1769 * Plugins/WebPluginPackage.m:
1770 (-[WebPluginPackage initWithPath:]):
1771 (-[WebPluginPackage load]):
1772 Made this a bit more efficient by checking if the bundle is already loaded.
1773 (-[WebBasePluginPackage unload]):
1775 (-[WebBasePluginPackage isLoaded]):
1778 * Plugins/WebBaseNetscapePluginView.m:
1779 (-[WebBaseNetscapePluginView start]):
1780 Open the plug-in package so it remains loaded while this instance uses it.
1781 (-[WebBaseNetscapePluginView stop]):
1782 Close the plug-in package when the plug-in instance is stopped.
1784 * Plugins/WebBaseNetscapePluginStream.m:
1785 (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:]):
1786 This check is not necessary. Netscape plug-in packages are never unloaded until all their instances have
1787 been stopped, and a Netscape plug-in instance will stop its streams when it is stopped.
1788 (-[WebBaseNetscapePluginStream _destroyStream]):
1790 (-[WebBaseNetscapePluginStream finishedLoadingWithData:]):
1792 (-[WebBaseNetscapePluginStream _deliverData]):
1795 2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
1799 Build fix: DWARF and -gfull are incompatible with symbol separation.
1801 * WebKit.xcodeproj/project.pbxproj:
1803 2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
1807 http://bugs.webkit.org/show_bug.cgi?id=10394
1808 Bug 10394: WebKit Release and Production configurations should enable dead code stripping
1810 * WebKit.xcodeproj/project.pbxproj:
1812 2006-08-15 Maciej Stachowiak <mjs@apple.com>
1816 - remove WebKit dependencies from WebPlugInStreamLoader via a protocol veil of ignorance
1818 * Loader/WebNetscapePlugInStreamLoader.h:
1819 * Loader/WebNetscapePlugInStreamLoader.m:
1820 (-[WebNetscapePlugInStreamLoader initWithDelegate:frameLoader:]):
1821 * Loader/WebPlugInStreamLoaderDelegate.h: Added.
1822 * Plugins/WebBaseNetscapePluginStream.h:
1823 * Plugins/WebNetscapePluginStream.m:
1824 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
1825 * WebKit.xcodeproj/project.pbxproj:
1827 2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
1831 http://bugs.webkit.org/show_bug.cgi?id=10384
1832 Bug 10384: Switch to DWARF for Release configuration
1834 * WebKit.xcodeproj/project.pbxproj:
1836 2006-08-15 Graham Dennis <graham.dennis@gmail.com>
1840 - patch for http://bugs.webkit.org/show_bug.cgi?id=10314
1841 WebUnarchivingState archivedResourceForURL: doesn't work
1843 * WebView/WebUnarchivingState.m:
1844 (-[WebUnarchivingState archivedResourceForURL:]):
1845 Fixed to get objects from the archived resources dictionary using
1846 the URL as a string instead of as the URL itself (as this is how
1847 the data is put into the dictionary).
1849 2006-08-14 Maciej Stachowiak <mjs@apple.com>
1853 - remove many (but not all) WebKit dependencies from WebNetscapePlugInStreamLoader (it still
1854 depends on WebNetscapePluginStream).
1856 * Loader/WebFrameLoader.h:
1857 * Loader/WebFrameLoader.m:
1858 (-[WebFrameLoader fileDoesNotExistErrorWithResponse:]):
1859 * Loader/WebNetscapePlugInStreamLoader.h:
1860 * Loader/WebNetscapePlugInStreamLoader.m:
1861 (-[WebNetscapePlugInStreamLoader initWithStream:frameLoader:]):
1862 (-[WebNetscapePlugInStreamLoader releaseResources]):
1863 (-[WebNetscapePlugInStreamLoader didReceiveResponse:]):
1864 * Plugins/WebNetscapePluginStream.m:
1865 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
1867 2006-08-14 Maciej Stachowiak <mjs@apple.com>
1869 Reviewed by Tim Omernick.
1871 - fixed REGRESSION: crash when leaving youtube page while movie is still loading
1872 http://bugs.webkit.org/show_bug.cgi?id=10398
1874 * Loader/WebNetscapePlugInStreamLoader.m:
1875 (-[WebNetscapePlugInStreamLoader initWithStream:view:]): Set the frame loader for this stream.
1876 (-[WebNetscapePlugInStreamLoader cancelWithError:]): Make sure to destroy the stream as well;
1877 otherwise, when we try to clean up later, we won't have the right context.
1879 2006-08-14 David Hyatt <hyatt@apple.com>
1881 Fix for Radar bug 4478840, Safari should not reduce null events sent to
1882 plug-ins in windows that are inactive but visible.
1884 With this fix you can view videos in visible background windows on YouTube
1885 (for example) and not see any drop in frame rate.
1889 * Plugins/WebBaseNetscapePluginView.m:
1890 (-[WebBaseNetscapePluginView restartNullEvents]):
1892 2006-08-14 Maciej Stachowiak <mjs@apple.com>
1896 - removed WebKit-level dependencies from WebFormDataStream. Use WebCore version of system interface
1898 * Loader/WebFormDataStream.m:
1900 (formEventCallback):
1902 * WebCoreSupport/WebSystemInterface.m:
1903 (InitWebCoreSystemInterface):
1905 2006-08-14 Maciej Stachowiak <mjs@apple.com>
1907 Rubber stamped by Brady.
1909 - move WebFormDataStream from WebView to Loader
1911 * WebKit.xcodeproj/project.pbxproj:
1912 * WebView/WebFormDataStream.h: Removed.
1913 * WebView/WebFormDataStream.m: Removed.
1915 2006-08-13 Maciej Stachowiak <mjs@apple.com>
1919 - remove WebKit dependencies from WebSubresourceLoader, except WebFormDataStream
1921 (WebFormDataStream will be moved into the Loader directory soon)
1923 * Loader/WebFrameLoader.h:
1924 * Loader/WebFrameLoader.m:
1925 (-[WebFrameLoader _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
1926 * Loader/WebSubresourceLoader.m:
1927 (isConditionalRequest):
1928 (hasCaseInsensitivePrefix):
1931 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
1933 2006-08-13 Brady Eidson <beidson@apple.com>
1937 Relocated the WebIconLoaders
1939 * Misc/WebIconLoader.h: Moved to Loader/
1940 * Misc/WebIconLoader.m: Moved to Loader/
1941 * WebKit.xcodeproj/project.pbxproj:
1943 2006-08-13 Maciej Stachowiak <mjs@apple.com>
1947 - removed non-Loader WebKit dependencies from WebDataProtocol for
1948 real (whoops) and fix some typos.
1950 * Loader/WebDataProtocol.m:
1951 (isCaseInsensitiveEqual): Added.
1952 (+[WebDataProtocol _webIsDataProtocolURL:]): Avoid WebKit calls.
1953 (-[WebDataProtocol startLoading]): ditto
1954 * Loader/WebFrameLoader.m:
1955 (isCaseInsensitiveEqual): Fixed spelling from isCaseSensitiveEqual.
1956 (-[WebFrameLoader _canUseResourceForRequest:]): Use proper call.
1958 2006-08-13 Brady Eidson <beidson@apple.com>
1962 The way of detecting a failed icon load before was to try and construct
1963 an image from the icon and if that image construction failed, mark the icon
1965 A much more efficient way is to check for an error response. We'll still
1966 check for invalid image data, but most servers will correctly return an HTTP
1967 error on a missing icon.
1969 * Misc/WebIconLoader.m:
1970 (-[WebIconLoader didFinishLoading]): Added check for http error response
1972 2006-08-13 Maciej Stachowiak <mjs@apple.com>
1976 - remove all non-Loader dependencies from WebLoader
1978 As part of this I moved WebDataProtocol to the loader directory
1979 and removed dependencies on the rest of WebKit from that too.
1981 * Loader/WebFrameLoader.h:
1982 * Loader/WebFrameLoader.m:
1983 (-[WebFrameLoader setDefersCallbacks:]):
1984 (-[WebFrameLoader stopLoading]):
1985 (-[WebFrameLoader cancelledErrorWithRequest:]):
1986 (-[WebFrameLoader clearArchivedResources]):
1987 (-[WebFrameLoader deliverArchivedResources]):
1988 (-[WebFrameLoader deliverArchivedResourcesAfterDelay]):
1989 (isCaseSensitiveEqual):
1990 (-[WebFrameLoader _canUseResourceForRequest:]):
1991 (-[WebFrameLoader _canUseResourceWithResponse:]):
1992 (-[WebFrameLoader pendingArchivedResources]):
1993 (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
1994 (-[WebFrameLoader archiveLoadPendingForLoader:]):
1995 (-[WebFrameLoader cancelPendingArchiveLoadForLoader:]):
1996 * Loader/WebLoader.h:
1997 * Loader/WebLoader.m:
1998 (-[NSURLProtocol releaseResources]):
1999 (-[NSURLProtocol loadWithRequest:]):
2000 (-[NSURLProtocol setDefersCallbacks:]):
2001 (-[NSURLProtocol addData:allAtOnce:]):
2002 (-[NSURLProtocol resourceData]):
2003 (-[NSURLProtocol didReceiveData:lengthReceived:allAtOnce:]):
2004 (-[NSURLProtocol connection:didReceiveData:lengthReceived:]):
2005 (-[NSURLProtocol cancelWithError:]):
2006 (-[NSURLProtocol cancelledError]):
2007 * Loader/WebMainResourceLoader.m:
2008 (-[WebMainResourceLoader addData:allAtOnce:]):
2009 (-[WebMainResourceLoader didReceiveData:lengthReceived:allAtOnce:]):
2010 * Loader/WebNetscapePlugInStreamLoader.m:
2011 (-[WebNetscapePlugInStreamLoader didReceiveData:lengthReceived:allAtOnce:]):
2012 * Loader/WebSubresourceLoader.m:
2013 (-[WebSubresourceLoader didReceiveData:lengthReceived:allAtOnce:]):
2014 * WebKit.xcodeproj/project.pbxproj:
2015 * WebView/WebDataProtocol.h: Removed.
2016 * WebView/WebDataProtocol.m: Removed.
2018 2006-08-11 Tim Omernick <timo@apple.com>
2022 <http://bugs.webkit.org/show_bug.cgi?id=10111> - Menu flickers over Flash content
2023 <rdar://problem/3052546> Plugins don't work with z-index (overlapping elements, etc.)
2025 * Plugins/WebBaseNetscapePluginView.m:
2026 (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
2027 Don't just clip to the dirty region for "transparent" plug-ins -- do it for all plug-ins. This is a
2028 generally useful thing to do, as it prevents the plug-in from drawing over parts of the window that
2029 have already been drawn and are not expected to be redrawn in the same update.
2031 2006-08-11 Brady Eidson <beidson@apple.com>
2033 Reviewed by John, Timo, Adele, and Darin
2035 In addition to a few style/good-practice cleanups, this patch will convert the old icon database
2036 format to the WebCore format if the WebCore db is empty (implying this conversion has yet to take
2037 place). After the conversion, it will delete all traces of the old format to free the unneeded space
2039 * Misc/WebIconDatabase.m:
2040 (-[WebIconDatabase init]):
2041 (-[WebIconDatabase _setIconURL:forURL:]): Changed the bridge's name for this method to be more clear
2042 (-[WebIconDatabase _createFileDatabase]):
2043 (-[WebIconDatabase _iconDataForIconURL:]): This grabs the raw data for use in the conversion function
2044 (-[WebIconDatabase _convertToWebCoreFormat]): This does the actual conversion
2046 2006-08-11 Tim Omernick <timo@apple.com>
2048 Reviewed by John Sullivan.
2050 Needed for <rdar://problem/4678070>.
2052 * Plugins/WebBaseNetscapePluginView.m:
2053 (-[WebBaseNetscapePluginView sendEvent:]):
2054 Changed an assertion to an early return. It should be possible to send events, especially updateEvt (for image capturing
2055 purposes), to off-screen plug-ins. It just doesn't work right now. See <rdar://problem/4318269>.
2057 2006-08-11 John Sullivan <sullivan@apple.com>
2061 - fixed <rdar://problem/4522894> Would be nice if Safari shrank pages a little if necessary
2062 to avoid printing an almost-empty page
2064 * WebView/WebHTMLView.m:
2065 (-[NSArray knowsPageRange:]):
2066 If the last page has a short-enough orphan (< 1/10 of the page height is the number I pulled
2067 out of ... the air), then we adjust the scale factor slightly and check whether this reduces
2068 the page count and thus eliminates the orphan.
2070 2006-08-07 Brady Eidson <beidson@apple.com>
2072 Reviewed by Anders and John
2074 * Misc/WebIconDatabase.m:
2075 (-[WebIconDatabase init]):
2076 (-[WebIconDatabase isIconExpiredForIconURL:]): Get if an icon expired
2077 (-[WebIconDatabase isIconExpiredForPageURL:]): Ditto
2078 (-[WebIconDatabase _setIconURL:forURL:]):
2079 (-[WebIconDatabase _sendNotificationForURL:]): Moved to WebKitPendingPublic for use outside of WebIconDatabase
2080 (-[WebIconDatabase loadIconFromURL:]): Allow a load outside the context of a page load
2081 * Misc/WebIconDatabasePrivate.h:
2083 * Misc/WebIconLoader.m:
2084 (-[WebIconLoader didFinishLoading]): fixed up the "flipping the switch" #defs a bit
2085 (-[WebIconLoader willSendRequest:redirectResponse:]): override to allow a load
2086 outside of the context of a page load
2088 * WebCoreSupport/WebIconDatabaseBridge.h: Added.
2089 * WebCoreSupport/WebIconDatabaseBridge.m: Added.
2090 (-[WebIconDatabaseBridge init]):
2091 (-[WebIconDatabaseBridge dealloc]):
2092 (-[WebIconDatabaseBridge loadIconFromURL:]): Kick off a load on an icon outside
2093 of the context of any page load
2094 (-[WebIconDatabaseBridge _setIconData:forIconURL:]): WebKit side of bridge method
2095 (-[WebIconDatabaseBridge _setHaveNoIconForIconURL:]): WebKit side of bridge method
2096 (-[WebIconDatabaseBridge releaseCachedLoaderForIconURL:]):
2097 (+[WebIconDatabaseBridge sharedBridgeInstance]): Moved this from WebCore to WebKit
2098 so both sides of the bridge get the WebKit version
2099 * WebKit.xcodeproj/project.pbxproj: Added some files
2100 * WebView/WebDataSource.m:
2101 (-[WebDataSource _loadIcon]): Added check for reload/expired icon to force
2102 a load even if we already have it
2104 2006-08-04 Sam Weinig <sam.weinig@gmail.com>
2108 - patch for http://bugs.webkit.org/show_bug.cgi?id=10192
2109 Make WebCore (and friends) compile with -Wshorten-64-to-32
2111 * Adds 'f' to float literals where expecting a float.
2112 * Use ceilf() instead of ceil() when assigning to a float.
2113 * Adds explicit casts where OK.
2115 NOTE: The -Wshorten-64-to-32 flag was not added for WebKit
2116 because there are still a few places where no error handling
2117 is in place. The flag can be added as soon as those are worked
2120 * Misc/WebNSControlExtras.m:
2121 (-[NSControl sizeToFitAndAdjustWindowHeight]):
2122 * Misc/WebNSImageExtras.m:
2123 (-[NSImage _web_scaleToMaxSize:]):
2124 * Misc/WebNSViewExtras.h:
2125 * Misc/WebNSViewExtras.m:
2126 * Plugins/WebBaseNetscapePluginView.m:
2127 (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
2128 (-[WebBaseNetscapePluginView drawRect:]):
2129 * WebCoreSupport/WebFrameBridge.m:
2130 (-[WebFrameBridge expiresTimeForResponse:]):
2131 * WebInspector/WebInspector.m:
2132 (-[NSWindow window]):
2133 (-[WebInspector treeViewScrollTo:]):
2134 (-[WebInspector _updateSystemColors]):
2135 (-[WebInspector webView:plugInViewWithArguments:]):
2136 (-[WebInspector outlineView:objectValueForTableColumn:byItem:]):
2137 * WebInspector/WebInspectorOutlineView.m:
2138 (-[WebInspectorOutlineView _highlightRow:clipRect:]):
2139 * WebInspector/WebNodeHighlight.m:
2140 (-[WebNodeHighlight initWithBounds:andRects:forView:]):
2141 * WebInspector/WebNodeHighlightView.m:
2142 (-[WebNodeHighlightView roundedRect:withRadius:]):
2143 (-[WebNodeHighlightView initWithHighlight:andRects:forView:]):
2144 (-[WebNodeHighlightView drawRect:]):
2145 * WebView/WebFrame.m:
2146 (-[WebFrame _opened]):
2147 * WebView/WebFrameView.m:
2148 (-[WebFrameView initWithFrame:]):
2149 * WebView/WebHTMLView.m:
2150 (-[WebHTMLView _dragImageForLinkElement:]):
2151 (-[WebHTMLView _web_setPrintingModeRecursive]):
2152 (-[WebHTMLView _web_clearPrintingModeRecursive]):
2153 (-[NSArray layout]):
2154 (-[NSArray _setPrinting:minimumPageWidth:maximumPageWidth:adjustViewSize:]):
2155 (-[NSArray adjustPageHeightNew:top:bottom:limit:]):
2156 (-[NSArray _scaleFactorForPrintOperation:]):
2157 (-[NSArray setPageWidthForPrinting:]):
2158 (-[NSArray _endPrintMode]):
2159 (-[NSArray knowsPageRange:]):
2160 (-[NSArray _originalFontA]):
2161 (-[NSArray _originalFontB]):
2162 (-[WebTextCompleteController _buildUI]):
2163 (-[WebTextCompleteController _placePopupWindow:]):
2164 * WebView/WebPDFView.m:
2165 (-[WebPDFView _makeTextStandardSize:]):
2166 (-[WebPDFView selectionImageForcingWhiteText:]):
2167 (-[PDFPrefUpdatingProxy forwardInvocation:]):
2168 * WebView/WebPreferences.m:
2169 (-[WebPreferences _floatValueForKey:]):
2170 * WebView/WebView.m:
2171 (-[WebView makeTextSmaller:]):
2172 (-[WebView canMakeTextStandardSize]):
2173 (-[WebView makeTextStandardSize:]):
2175 2006-08-04 David Kilzer <ddkilzer@kilzer.net>
2177 Reviewed by NOBODY (build fix).
2179 * WebCoreSupport/WebSubresourceLoader.m: REALLY moved to Loader/
2180 * WebView/WebFrameLoader.h: REALLY moved to Loader/
2181 * WebView/WebFrameLoader.m: REALLY moved to Loader/
2182 * WebView/WebLoader.h: REALLY moved to Loader/
2183 * WebView/WebLoader.m: REALLY moved to Loader/
2184 * WebView/WebMainResourceLoader.m: REALLY moved to Loader/
2186 2006-08-03 Maciej Stachowiak <mjs@apple.com>
2190 - moved all loader code that is slated to be moved down to WebCore to a new Loader directory
2192 (next step is to remove dependencies on the rest of WebKit from this directory)
2194 * Loader/WebNetscapePlugInStreamLoader.h: Added.
2195 * Loader/WebNetscapePlugInStreamLoader.m: Added. Cut out of WebNetscapePluginStream.m
2196 (-[WebNetscapePlugInStreamLoader initWithStream:view:]):
2197 (-[WebNetscapePlugInStreamLoader isDone]):
2198 (-[WebNetscapePlugInStreamLoader releaseResources]):
2199 (-[WebNetscapePlugInStreamLoader didReceiveResponse:]):
2200 (-[WebNetscapePlugInStreamLoader didReceiveData:lengthReceived:]):
2201 (-[WebNetscapePlugInStreamLoader didFinishLoading]):
2202 (-[WebNetscapePlugInStreamLoader didFailWithError:]):
2203 (-[WebNetscapePlugInStreamLoader cancelWithError:]):
2204 * Plugins/WebNetscapePluginStream.m:
2205 * WebKit.xcodeproj/project.pbxproj:
2206 * WebCoreSupport/WebSubresourceLoader.h: Moved to Loader/
2207 * WebCoreSupport/WebSubresourceLoader.m: Moved to Loader/
2208 * WebView/WebFrameLoader.h: Moved to Loader/
2209 * WebView/WebFrameLoader.m: Moved to Loader/
2210 * WebView/WebLoader.h: Moved to Loader/
2211 * WebView/WebLoader.m: Moved to Loader/
2212 * WebView/WebMainResourceLoader.h: Moved to Loader/
2213 * WebView/WebMainResourceLoader.m: Moved to Loader/
2215 2006-08-03 Tim Omernick <timo@apple.com>
2217 Reviewed by Kevin Decker.
2219 <rdar://problem/4667460> Windowless OpenGL plug-ins render incorrectly on PowerPC
2221 * Plugins/WebBaseNetscapePluginView.m:
2222 (-[WebBaseNetscapePluginView _aglOffscreenImageForDrawingInRect:]):
2223 Fixed color component swapping so that it works on both x86 and PPC. See comments.
2225 2006-08-03 Brady Eidson <beidson@apple.com>
2227 Reviewed by Tim Hatcher's rubber stamp
2228 Fixed Intel build break caused by weinig's -W change in r15781
2230 * WebView/WebView.m: wrapped cpu-dependent defs with defined() macro
2232 2006-08-03 Maciej Stachowiak <mjs@apple.com>
2236 - fixed problem that could cause assertion failures in Safari
2238 * Plugins/WebBaseNetscapePluginView.m:
2239 (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]): Don't
2240 allow a plugin to start new loads once its document is no longer the one actively loading.
2242 2006-08-03 Maciej Stachowiak <mjs@apple.com>
2246 - remove use of WebDataSource from WebLoader and subclasses, just have them talk to the
2247 WebFrameLoader instead.
2249 For now this is done by forarding all the calls.
2251 * Misc/WebIconLoader.m:
2252 (-[WebIconLoader didFinishLoading]):
2253 * Plugins/WebNetscapePluginStream.m:
2254 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
2255 (-[WebNetscapePluginStream start]):
2256 (-[WebNetscapePlugInStreamLoader didFinishLoading]):
2257 (-[WebNetscapePlugInStreamLoader didFailWithError:]):
2258 (-[WebNetscapePlugInStreamLoader cancelWithError:]):
2259 * WebCoreSupport/WebFrameBridge.m:
2260 (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
2261 (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
2262 * WebCoreSupport/WebSubresourceLoader.h:
2263 * WebCoreSupport/WebSubresourceLoader.m:
2264 (-[WebSubresourceLoader initWithLoader:frameLoader:]):
2265 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
2266 (+[WebSubresourceLoader startLoadingResource:withMethod:URL:customHeaders:referrer:forFrameLoader:]):
2267 (+[WebSubresourceLoader startLoadingResource:withMethod:URL:customHeaders:postData:referrer:forFrameLoader:]):
2268 (-[WebSubresourceLoader receivedError:]):
2269 (-[WebSubresourceLoader signalFinish]):
2270 (-[WebSubresourceLoader didFailWithError:]):
2271 (-[WebSubresourceLoader cancel]):
2272 * WebKit.xcodeproj/project.pbxproj:
2273 * WebView/WebDataSource.m:
2274 (-[WebDataSource _updateLoading]):
2275 (-[WebDataSource textEncodingName]):
2276 (-[WebDataSource _mainReceivedBytesSoFar:complete:]):
2277 * WebView/WebFrameLoader.h:
2278 * WebView/WebFrameLoader.m:
2279 (-[WebFrameLoader loadIconWithRequest:]):
2280 (-[WebFrameLoader startLoadingMainResourceWithRequest:identifier:]):
2281 (-[WebFrameLoader clearIconLoader]):
2282 (-[WebFrameLoader commitProvisionalLoad]):
2283 (-[WebFrameLoader activeDataSource]):
2284 (-[WebFrameLoader _archivedSubresourceForURL:]):
2285 (-[WebFrameLoader _defersCallbacks]):
2286 (-[WebFrameLoader _identifierForInitialRequest:]):
2287 (-[WebFrameLoader _willSendRequest:forResource:redirectResponse:]):
2288 (-[WebFrameLoader _didReceiveAuthenticationChallenge:forResource:]):
2289 (-[WebFrameLoader _didCancelAuthenticationChallenge:forResource:]):
2290 (-[WebFrameLoader _didReceiveResponse:forResource:]):
2291 (-[WebFrameLoader _didReceiveData:contentLength:forResource:]):
2292 (-[WebFrameLoader _didFinishLoadingForResource:]):
2293 (-[WebFrameLoader _didFailLoadingWithError:forResource:]):
2294 (-[WebFrameLoader _privateBrowsingEnabled]):
2295 (-[WebFrameLoader _addPlugInStreamLoader:]):
2296 (-[WebFrameLoader _removePlugInStreamLoader:]):
2297 (-[WebFrameLoader _finishedLoadingResource]):
2298 (-[WebFrameLoader _receivedError:]):
2299 (-[WebFrameLoader _addSubresourceLoader:]):
2300 (-[WebFrameLoader _removeSubresourceLoader:]):
2301 (-[WebFrameLoader _originalRequest]):
2302 (-[WebFrameLoader webFrame]):
2303 (-[WebFrameLoader _receivedMainResourceError:complete:]):
2304 (-[WebFrameLoader initialRequest]):
2305 (-[WebFrameLoader _receivedData:]):
2306 (-[WebFrameLoader _setRequest:]):
2307 (-[WebFrameLoader _downloadWithLoadingConnection:request:response:proxy:]):
2308 (-[WebFrameLoader _handleFallbackContent]):
2309 (-[WebFrameLoader _isStopping]):
2310 (-[WebFrameLoader _decidePolicyForMIMEType:decisionListener:]):
2311 (-[WebFrameLoader _setupForReplaceByMIMEType:]):
2312 (-[WebFrameLoader _setResponse:]):
2313 (-[WebFrameLoader _mainReceivedError:complete:]):
2314 (-[WebFrameLoader _finishedLoading]):
2315 (-[WebFrameLoader _mainReceivedBytesSoFar:complete:]):
2316 (-[WebFrameLoader _iconLoaderReceivedPageIcon:]):
2317 (-[WebFrameLoader _URL]):
2318 * WebView/WebLoader.h:
2319 * WebView/WebLoader.m:
2320 (-[NSURLProtocol releaseResources]):
2321 (-[NSURLProtocol loadWithRequest:]):
2322 (-[NSURLProtocol setFrameLoader:]):
2323 (-[NSURLProtocol frameLoader]):
2324 (-[NSURLProtocol willSendRequest:redirectResponse:]):
2325 (-[NSURLProtocol didReceiveAuthenticationChallenge:]):
2326 (-[NSURLProtocol didCancelAuthenticationChallenge:]):
2327 (-[NSURLProtocol didReceiveResponse:]):
2328 (-[NSURLProtocol didReceiveData:lengthReceived:]):
2329 (-[NSURLProtocol signalFinish]):
2330 (-[NSURLProtocol didFailWithError:]):
2331 (-[NSURLProtocol willCacheResponse:]):
2332 (-[NSURLProtocol cancelWithError:]):
2333 * WebView/WebMainResourceLoader.h:
2334 * WebView/WebMainResourceLoader.m:
2335 (-[WebMainResourceLoader initWithFrameLoader:]):
2336 (-[WebMainResourceLoader receivedError:]):
2337 (-[WebMainResourceLoader cancelWithError:]):
2338 (-[WebMainResourceLoader _isPostOrRedirectAfterPost:redirectResponse:]):
2339 (-[WebMainResourceLoader addData:]):
2340 (-[WebMainResourceLoader willSendRequest:redirectResponse:]):
2341 (-[WebMainResourceLoader continueAfterContentPolicy:response:]):
2342 (-[WebMainResourceLoader continueAfterContentPolicy:]):
2343 (-[WebMainResourceLoader checkContentPolicyForResponse:]):
2344 (-[WebMainResourceLoader didReceiveResponse:]):
2345 (-[WebMainResourceLoader didReceiveData:lengthReceived:]):
2346 (-[WebMainResourceLoader didFinishLoading]):
2347 (-[WebMainResourceLoader didFailWithError:]):
2348 (-[WebMainResourceLoader loadWithRequestNow:]):
2350 2006-08-03 Sam Weinig <sam.weinig@gmail.com>
2354 - patch for http://bugs.webkit.org/show_bug.cgi?id=10176
2355 Make WebCore compile with -Wundef
2357 * Adds -Wundef flag to Xcode project
2358 * Converts #ifs to #ifdef and #ifndefs where needed.
2360 * Carbon/CarbonUtils.m:
2361 * Carbon/CarbonWindowAdapter.m:
2362 * Carbon/HIViewAdapter.m:
2363 (+[NSView bindHIViewToNSView:nsView:]):
2364 * Carbon/HIWebView.m:
2365 (HIWebViewEventHandler):
2366 * Misc/WebFileDatabase.m:
2367 (UniqueFilePathForKey):
2368 * Misc/WebNSWindowExtras.m:
2369 (swizzleInstanceMethod):
2370 * Misc/WebTypesInternal.h:
2371 * Plugins/WebNetscapeDeprecatedFunctions.c:
2372 * Plugins/WebNetscapeDeprecatedFunctions.h:
2373 * Plugins/WebNetscapePluginPackage.h:
2374 * Plugins/WebNetscapePluginPackage.m:
2375 (-[WebNetscapePluginPackage unloadWithoutShutdown]):
2376 (-[WebNetscapePluginPackage load]):
2377 * WebKit.xcodeproj/project.pbxproj:
2379 2006-08-03 Darin Adler <darin@apple.com>
2381 Reviewed by Eric Seidel.
2385 * WebView/WebFrame.m: (-[WebFramePrivate dealloc]): Release the frame loader.
2387 2006-08-02 Timothy Hatcher <timothy@apple.com>
2389 Rubber stamped by Maciej.
2391 Adding back resultsWithXpathQuery, removed by Darin's earlier change.
2392 This function is called from ObjC, but not used from JavaScript.
2394 * WebInspector/webInspector/inspector.js:
2396 2006-08-02 Timothy Hatcher <timothy@apple.com>
2400 Bug 10200: [Drosera] Deadlock between Drosera and Safari while loading page
2401 http://bugs.webkit.org/show_bug.cgi?id=10200
2403 Prevent reentrancy in our debugger callbacks. This was causing a deadlock in Drosera because
2404 suspendProcessIfPaused was being called during a DO call into Safari.
2406 Preventing reentrancy also prevents scripts that Drosera injects and evaluates from showing
2407 up in rare cases (such as a iframe loading about:blank). I thought this would prevent cases
2408 where you call a function from the console and expect it to break on a breakpoint in them, but
2409 this appears to never have worked even without this change. When that is figured out we can
2410 reconsider a better solution to reentrancy. I have filed that as bug 10214.
2412 I also removed the NSRunLoop runMode:beforeDate: calls since DO handles this for us since
2413 we don't use "onway void" as the return type for the callbacks. Note: using onway void for
2414 the listener callbacks causes bad synchronization issues and obscure crashes.
2416 * DefaultDelegates/WebScriptDebugServer.m:
2417 (-[WebScriptDebugServer webView:didLoadMainResourceForDataSource:]):
2418 (-[WebScriptDebugServer webView:didParseSource:baseLineNumber:fromURL:sourceId:forWebFrame:]):
2419 (-[WebScriptDebugServer webView:failedToParseSource:baseLineNumber:fromURL:withError:forWebFrame:]):
2420 (-[WebScriptDebugServer webView:didEnterCallFrame:sourceId:line:forWebFrame:]):
2421 (-[WebScriptDebugServer webView:willExecuteStatement:sourceId:line:forWebFrame:]):
2422 (-[WebScriptDebugServer webView:willLeaveCallFrame:sourceId:line:forWebFrame:]):
2423 (-[WebScriptDebugServer webView:exceptionWasRaised:sourceId:line:forWebFrame:]):
2424 * DefaultDelegates/WebScriptDebugServerPrivate.h:
2426 2006-08-02 Maciej Stachowiak <mjs@apple.com>
2430 - fix assertion failure on layout tests by stopping plugins from loading at a clearly defined time
2431 - add more assertions for safety
2433 * WebView/WebDataSource.m:
2434 (-[WebDataSourcePrivate dealloc]): Removed obsolete comment.
2435 (-[WebDataSource _updateLoading]): Add assertion ensuring this method is only called
2436 at a time when this data source is the one that might be loading for a frame.
2437 (-[WebDataSource _stopLoading]): Stop loading plugins as a FIXME suggests we should.
2438 * WebView/WebFrameLoader.m:
2439 (-[WebFrameLoader isLoadingPlugIns]): New helper method.
2440 (-[WebFrameLoader isLoading]): Consider plugin loads too - otherwise we won't stop them
2441 at stopLoading time.
2443 2006-08-02 Adam Roben <aroben@apple.com>
2447 - Rename TransferJob to ResourceLoader (this file was forgotten in an
2448 earlier change by Maciej)
2452 2006-08-01 Maciej Stachowiak <mjs@apple.com>
2456 - Change things around so WebFrameLoader tracks the main and provisional data source,
2457 as well as the frame load state, pulling much code out of WebFrame along the way.
2459 The most significant aspects of this change are:
2461 - management of WebDataSources and WebFrameState was moved into WebFrameLoader
2462 - there is now just one WebFrameLoader shared between the primary and provisional data source
2464 * WebKit.xcodeproj/project.pbxproj:
2465 * WebView/WebDataSource.m:
2466 (-[WebDataSourcePrivate dealloc]):
2467 (-[WebDataSource _updateLoading]):
2468 (-[WebDataSource _loadIcon]):
2469 (-[WebDataSource _setPrimaryLoadComplete:]):
2470 (-[WebDataSource _stopLoading]):
2471 (-[WebDataSource _startLoading]):
2472 (-[WebDataSource _addSubresourceLoader:]):
2473 (-[WebDataSource _removeSubresourceLoader:]):
2474 (-[WebDataSource _addPlugInStreamLoader:]):
2475 (-[WebDataSource _removePlugInStreamLoader:]):
2476 (-[WebDataSource _defersCallbacksChanged]):
2477 (-[WebDataSource _stopLoadingWithError:]):
2478 (-[WebDataSource _revertToProvisionalState]):
2479 (-[WebDataSource _setupForReplaceByMIMEType:]):
2480 (-[WebDataSource initWithRequest:]):
2481 (-[WebDataSource data]):
2482 (-[WebDataSource isLoading]):
2483 * WebView/WebFrame.m:
2484 (-[WebFramePrivate init]):
2485 (-[WebFramePrivate dealloc]):
2486 (-[WebFrame _closeOldDataSources]):
2487 (-[WebFrame _detachFromParent]):
2488 (-[WebFrame _makeDocumentView]):
2489 (-[WebFrame _receivedMainResourceError:]):
2490 (-[WebFrame _transitionToCommitted:]):
2491 (+[WebFrame _timeOfLastCompletedLoad]):
2492 (-[WebFrame _checkLoadCompleteForThisFrame]):
2493 (-[WebFrame _loadItem:withLoadType:]):
2494 (-[WebFrame _continueAfterWillSubmitForm:]):
2495 (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
2496 (-[WebFrame _initWithWebFrameView:webView:bridge:]):
2497 (-[WebFrame _frameLoader]):
2498 (-[WebFrame _provisionalLoadStarted]):
2499 (-[WebFrame _prepareForDataSourceReplacement]):
2500 (-[WebFrame _frameLoadCompleted]):
2501 (-[WebFrame provisionalDataSource]):
2502 (-[WebFrame dataSource]):
2503 (-[WebFrame stopLoading]):
2504 * WebView/WebFrameInternal.h:
2505 * WebView/WebFrameLoader.h:
2506 * WebView/WebFrameLoader.m:
2507 (-[WebFrameLoader initWithWebFrame:]):
2508 (-[WebFrameLoader dealloc]):
2509 (-[WebFrameLoader dataSource]):
2510 (-[WebFrameLoader _setDataSource:]):
2511 (-[WebFrameLoader clearDataSource]):
2512 (-[WebFrameLoader provisionalDataSource]):
2513 (-[WebFrameLoader _setProvisionalDataSource:]):
2514 (-[WebFrameLoader _clearProvisionalDataSource]):
2515 (-[WebFrameLoader state]):
2516 (+[WebFrameLoader timeOfLastCompletedLoad]):
2517 (-[WebFrameLoader _setState:]):
2518 (-[WebFrameLoader clearProvisionalLoad]):
2519 (-[WebFrameLoader markLoadComplete]):
2520 (-[WebFrameLoader commitProvisionalLoad]):
2521 (-[WebFrameLoader stopLoading]):
2522 (-[WebFrameLoader startLoading]):
2523 (-[WebFrameLoader startProvisionalLoad:]):
2524 (-[WebFrameLoader setupForReplace]):
2525 * WebView/WebFramePrivate.h:
2527 2006-08-01 Tim Omernick <timo@apple.com>
2529 Reviewed by John Sullivan.
2531 <rdar://problem/4480737> Flash crashes after it replaces itself via a document.write()
2533 I kind of hate to do this, but this is the best way to work around buggy plug-ins like Flash that assume that
2534 NPP_Destroy() cannot be called while the browser is calling one of its other plug-in functions. The classic
2535 situation is a plug-in that replaces itself via an NPN_Invoke() that executes a document.write().
2537 * Plugins/WebBaseNetscapePluginView.h:
2538 * Plugins/WebBaseNetscapePluginView.m:
2539 (-[WebBaseNetscapePluginView sendEvent:]):
2540 Call -willCallPlugInFunction and -didCallPlugInFunction around calls to the NPP_* functions.
2541 (-[WebBaseNetscapePluginView setWindowIfNecessary]):
2543 (-[WebBaseNetscapePluginView start]):
2544 It should not be possible to start a plug-in instance while we are calling into it (one of those chicken/egg
2545 problems). Added a sanity-checking assertion.
2546 (-[WebBaseNetscapePluginView stop]):
2547 If we're already calling a plug-in function, do not call NPP_Destroy(). The plug-in function we are calling
2548 may assume that its instance->pdata, or other memory freed by NPP_Destroy(), is valid and unchanged until said
2549 plugin-function returns.
2550 (-[WebBaseNetscapePluginView pluginScriptableObject]):
2551 Call -willCallPlugInFunction and -didCallPlugInFunction around calls to the NPP_* functions.
2552 (-[WebBaseNetscapePluginView willCallPlugInFunction]):
2553 Increment plug-in function call depth.
2554 (-[WebBaseNetscapePluginView didCallPlugInFunction]):
2555 Decrement plug-in function call depth. Stop if we're supposed to stop.
2556 (-[WebBaseNetscapePluginView evaluateJavaScriptPluginRequest:]):
2557 Call -willCallPlugInFunction and -didCallPlugInFunction around calls to the NPP_* functions.
2558 (-[WebBaseNetscapePluginView webFrame:didFinishLoadWithReason:]):
2560 (-[WebBaseNetscapePluginView _printedPluginBitmap]):
2563 * Plugins/WebBaseNetscapePluginStream.m:
2564 (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:]):
2565 Call -willCallPlugInFunction and -didCallPlugInFunction around calls to the NPP_* functions.
2566 (-[WebBaseNetscapePluginStream _destroyStream]):
2568 (-[WebBaseNetscapePluginStream _deliverData]):
2571 2006-08-01 Maciej Stachowiak <mjs@apple.com>
2573 - fix build after last change
2575 * WebView/WebFrame.m:
2576 (-[WebFrame _checkLoadCompleteForThisFrame]):
2578 2006-08-01 Maciej Stachowiak <mjs@apple.com>
2582 - revert part of my last fix that broke the Safari bookmarks view
2584 * WebView/WebFrame.m:
2585 (-[WebFrame _checkLoadCompleteForThisFrame]): still send layout message for non-HTML views
2587 2006-08-01 Tim Omernick <timo@apple.com>
2591 Fixed an assertion failure I ran into while debugging <rdar://problem/4652683>.
2593 * Plugins/WebNetscapePluginEmbeddedView.m:
2594 (-[WebNetscapePluginEmbeddedView redeliverStream]):
2595 Don't clear the "instance" ivar here. This code was refactored here from the old WebNetscapePluginRepresentation,
2596 which also had an "instance" ivar. It is never appropriate to clear a plug-in view's instance. That is done when
2597 the plug-in is destroyed.
2599 2006-08-01 Maciej Stachowiak <mjs@apple.com>
2603 - some refactoring in preparation for moving more stuff to WebFrameLoader.
2605 * WebView/WebFrame.m:
2606 (-[WebFrame _clearDataSource]):
2607 (-[WebFrame _detachFromParent]):
2608 (-[WebFrame _commitProvisionalLoad]):
2609 (-[WebFrame _transitionToCommitted:]):
2610 (-[WebFrame _clearProvisionalLoad]):
2611 (-[WebFrame _markLoadComplete]):
2612 (-[WebFrame _checkLoadCompleteForThisFrame]):
2613 (-[WebFrame _startProvisionalLoad:]):
2614 (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
2615 (-[WebFrame stopLoading]):
2617 2006-07-31 Maciej Stachowiak <mjs@apple.com>
2619 Reviewed by Tim Hatcher.
2621 - renamed TransferJob to ResourceLoader in WebCore
2624 (WebFrame::loadDataSource):
2625 (WebFrame::receivedRedirect):
2626 (WebFrame::receivedResponse):
2627 (WebFrame::receivedData):
2628 (WebFrame::receivedAllData):
2629 (WebFrame::setStatusText):
2632 2006-07-31 Darin Adler <darin@apple.com>
2636 - omit the margin and padding boxes for display types where they are ignored
2637 - use CSS instead of properties for table spacing and padding as suggested by Tim H.
2639 * WebInspector/webInspector/inspector.css: Added rules for spacing and padding.
2640 Added rules that hide the margin and padding boxes (borders and all but the center cell)
2641 when the hide attribute is present.
2642 * WebInspector/webInspector/inspector.html: Added classes for the rules above.
2643 Removed cellpadding and cellspacing attributes.
2644 * WebInspector/webInspector/inspector.js: Added code to hide/show the margin and
2645 padding boxes based on the display type.
2647 2006-07-31 Duncan Wilcox <duncan@mclink.it>
2651 Fixes <http://bugs.webkit.org/show_bug.cgi?id=10159>
2652 "REGRESSION: delegate returning no menu elements crashes webkit"
2654 No automated test, because there's no way to programmatically open a context menu,
2655 no manual test because there's no way to customize the context menu delegate.
2657 * WebView/WebView.m:
2658 (-[WebView _menuForElement:defaultItems:]): Make sure the context menu returned
2659 some menu items before accessing the first one.
2661 2006-07-31 Timothy Hatcher <timothy@apple.com>
2665 <rdar://problem/4658194> REGRESSION: "Search in Google"
2666 and "Search in Spotlight" fail to work on text selected in a frame
2668 Use selectedFrame to get the frame with the text selection.
2670 * WebView/WebView.m:
2671 (-[WebView _searchWithGoogleFromMenu:]):
2672 (-[WebView _searchWithSpotlightFromMenu:]):
2674 2006-07-31 Darin Adler <darin@apple.com>
2676 Reviewed by Tim Hatcher.
2678 - http://bugs.webkit.org/show_bug.cgi?id=10168
2679 add a first cut at a Metrics pane to the inspector
2681 * WebInspector/webInspector/inspector.css: Add styles for the new metrics pane.
2682 * WebInspector/webInspector/inspector.html: Add the new metrics pane, starting with
2683 the table to show the box model.
2684 * WebInspector/webInspector/inspector.js: Add the new metrics pane. Add back some
2685 "title" attributes so we have more tooltips. Removed the optional parameter to
2688 2006-07-31 Anders Carlsson <acarlsson@apple.com>
2692 * Plugins/WebPluginDatabase.m:
2693 (-[WebPluginDatabase refresh]):
2694 Create a mutable set instead of a mutable array.
2696 2006-07-30 Darin Adler <darin@apple.com>
2698 Reviewed by Tim Hatcher.
2700 * WebInspector/webInspector/inspector.js: Fix bug where a null property value
2701 leads to an empty style pane.
2703 2006-07-30 Darin Adler <darin@apple.com>
2705 Reviewed by Tim Hatcher.
2707 - http://bugs.webkit.org/show_bug.cgi?id=10163
2708 some improvements for the inspector
2710 * WebInspector/WebInspector.m:
2711 (+[WebInspector sharedWebInspector:]): Fixed bug that could cause the inspector
2712 to be garbage collected if used in an application with GC enabled.
2713 (-[WebInspector dealloc]): Removed a call to a non-existent close method.
2714 (-[WebInspector window]): Added a custom WebPreferences object and called
2715 setPrivateBrowsingEnabled:YES so the inspector won't appear in the history menu.
2716 Also call setProhibitsMainFrameScrolling:YES to try to get rid of trouble where
2717 the inspector scrolls when dragging.
2719 * WebInspector/webInspector/inspector.css: Added style for the new color swatch,
2720 and JavaScript properties. More of the style should be shared between the panes,
2721 but this should be OK for now.
2723 * WebInspector/webInspector/inspector.html: Added a first cut at a JavaScript
2724 properties pane. Needs work, but better than nothing.
2726 * WebInspector/webInspector/inspector.js: Lots of improvements:
2727 - Omit "typical" property values from computed style display, making it much shorter.
2728 - Use the words "black", "white", and "transparent" when appropriate for color values.
2729 - Refactored the loaded() function to get rid of repetitive scrollbar setup.
2730 - Added a new scrollarea for the JavaScript properties pane.
2731 - Simplified refreshScrollbars() -- we now refresh all scrollbars every time, which does no harm.
2732 - Removed unused resultsWithXpathQuery().
2733 - Use [] instead of "new Array()" and {} instead of "new Object()".
2734 - Removed unused xpathForNode().
2735 - Changed style pane to display the style for a text node's parent instead of saying
2736 it can't display the style for text.
2737 - Fixed regression I caused a while back by checking the length of a computed style
2738 and not trying to display anything if its length is 0. Before this change and the
2739 corresponding change in WebCore, we'd see a complete list of all styles with the
2740 empty string as the value for each one.
2741 - Changed the name of the computedStyle flag on the style rules array to isComputedStyle
2742 to make it easier to understand it's a boolean.
2743 - Fixed an error in the code that does !important scanning where it was trying to
2744 do a special case for computed style, but was checking the computed style flag on
2746 - Added populateStyleListItem() function to factor out things in common between the
2747 items in the top level list and the expanded tree for shorthand properties.
2748 - Added code to make a color swatch next to the textual representation for any
2749 property that contains a color.
2750 - Implemented a first cut at a simple JavaScript properties pane.
2752 2006-07-29 Darin Adler <darin@apple.com>
2754 - Removed tabs from these source files that still had them.
2755 We don't use them; that way source files look fine in editors
2756 that have tabs set to 8 spaces or to 4 spaces.
2757 - Removed allow-tabs Subversion property from the files too.
2759 * DefaultDelegates/WebDefaultPolicyDelegate.m:
2760 * History/WebHistory.m:
2761 * Misc/WebDownload.m:
2762 * Misc/WebIconDatabase.m:
2763 * Misc/WebKitErrors.m:
2764 * Misc/WebKitLogging.m:
2765 * Misc/WebNSDataExtras.m:
2766 * Misc/WebNSFileManagerExtras.m:
2767 * Panels/WebPanelAuthenticationHandler.m:
2768 * Plugins/WebBaseNetscapePluginView.m:
2769 * Plugins/npfunctions.h:
2770 * WebCoreSupport/WebSubresourceLoader.m:
2771 * WebView/WebMainResourceLoader.m:
2772 * WebView/WebView.h:
2773 * WebView/WebView.m:
2775 2006-07-29 Sam Weinig <sam.weinig@gmail.com>
2779 - patch for http://bugs.webkit.org/show_bug.cgi?id=10080
2780 Adopt pedantic changes from the Unity project to improve
2781 cross-compiler compatibility
2784 * Adding missing newline to the end of the file.
2785 * Turning on gcc warning for missing newline at the end of a source file
2786 (GCC_WARN_ABOUT_MISSING_NEWLINE in Xcode, -Wnewline in gcc).
2788 * WebKit.xcodeproj/project.pbxproj:
2789 * WebView/WebResourcePrivate.h:
2791 2006-07-29 Mitz Pettel <opendarwin.org@mitzpettel.com>
2793 Reviewed by John Sullivan.
2795 - fix http://bugs.webkit.org/show_bug.cgi?id=9984
2796 ASSERTION FAILURE: _private->mouseDownEvent != nil
2797 (WebKit/WebView/WebHTMLView.m:4863 -[WebHTMLView(WebInternal) _delegateDragSourceActionMask])
2799 * WebView/WebHTMLView.m:
2800 (-[WebHTMLView _setMouseDownEvent:]): Moved into the WebHTMLViewFileInternal category and changed
2802 (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
2803 Copy the hit HTMLView's mouse down event to the top HTMLView.
2804 (-[WebHTMLView acceptsFirstMouse:]): Added a call to _setMouseDownEvent:nil before returning.
2805 (-[WebHTMLView shouldDelayWindowOrderingForEvent:]): Added a call to _setMouseDownEvent:nil
2807 (-[WebHTMLView mouseUp:]): Added a call to _setMouseDownEvent:nil to clear the event set in
2808 mouseDown: (and used during dragging).
2809 (-[WebHTMLView _delegateDragSourceActionMask]): Copy the hit HTMLView's mouse down event to
2812 2006-07-28 Timothy Hatcher <timothy@apple.com>
2816 <rdar://problem/4657473> REGRESSION: Spell check not available from contextual menu in Mail
2818 The context menu code should be checking isContentEditable
2819 on DOMNode not just DOMElement. This is needed because DOMText
2820 will be the node class of any text that is clicked.
2822 * DefaultDelegates/WebDefaultContextMenuDelegate.m:
2823 (-[WebDefaultUIDelegate webView:contextMenuItemsForElement:defaultMenuItems:]):
2825 2006-07-25 Geoffrey Garen <ggaren@apple.com>
2827 Reviewed by Maciej, inspired by John.
2829 - Fixed <rdar://problem/4651931> 1% REGRESSION on iBench HTML due to
2830 repeated requests for non-existent favicon
2832 An optimization to avoid serializing favicon data for missing icons had stomped an
2833 optimization to avoid GETing a missing favicon more than once. The solution
2834 is a happy marriage of optimizations, ensuring that we *retain* the missing
2835 favicon's "i am missing" data without posting a notification or saving it to disk.
2837 * Misc/WebIconDatabase.m:
2838 (-[WebIconDatabase _setIconURL:forURL:]):
2840 2006-07-25 David Harrison <harrison@apple.com>
2842 Reviewed by timo and Darin.
2844 <rdar://problem/4618584> "Paste and Match Style" is not working in Mail (add SPI)
2846 * WebKit.xcodeproj/project.pbxproj:
2847 * WebView/WebView.m:
2848 (-[WebView replaceSelectionWithNode:]):
2849 (-[WebView _replaceSelectionWithNode:matchStyle:]):
2850 * WebView/WebViewPrivate.h:
2851 (-[WebView _replaceSelectionWithNode:matchStyle::]):
2852 New SPI that is same as replaceSelectionWithNode: with added parameter whether to match existing style.
2854 2006-07-24 Darin Adler <darin@apple.com>
2856 Reviewed by Adele and Justin.
2858 - update for change to require context when creating fragments from text
2859 (needed to handle whitespace properly)
2861 * WebView/WebHTMLView.m:
2862 (-[WebHTMLView _documentFragmentFromPasteboard:inContext:allowPlainText:chosePlainText:]):
2863 Added context parameter, pass through to bridge.
2864 (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]): Pass selection range as context
2865 when calling above method.
2866 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): Pass drag caret as context when
2867 calling above method.
2869 2006-07-24 Maciej Stachowiak <mjs@apple.com>
2873 - fix <rdar://problem/4609195> Help Viewer loads empty window (not getting didFailLoadingWithError: callback)
2874 (without re-introducing http://bugs.webkit.org/show_bug.cgi?id=10062 )
2876 * WebView/WebLoader.h:
2877 * WebView/WebMainResourceLoader.m:
2878 (-[WebMainResourceLoader receivedError:]): Copy in some code from the base class to do it in the proper
2879 order, surrounding the call to [ds _receivedMainResourceError:error complete:YES].
2881 2006-07-24 Anders Carlsson <acarlsson@apple.com>
2885 * Misc/WebIconDatabase.m:
2886 (-[WebIconDatabase removeAllIcons]):
2887 Make an array of the keys and iterate through it to avoid modifying the
2888 dictionary while enumerating it.
2890 2006-07-24 Timothy Hatcher <timothy@apple.com>
2892 Reviewed by John and Darin.
2894 <rdar://problem/4634290> Cannot selectively install a custom
2895 scroller that differs from the default Aqua frame size.
2897 Adds two new private methods to WebFrameView that allows
2898 an application to set a custom scroll view class. This is needed
2899 if the application wants to install a custom scroller that is wider
2900 than the typical scroller, because NSScrollView does the content
2901 rect calculations in a class method (ignoring custom scrollers.)
2902 The _setScrollViewClass method requires the class to be a subclass
2903 of WebDynamicScrollBarView, or nil can be passed to reset to the default class.
2904 A new scroll view of the specified class will then replace the previous
2905 one without the need to reload content of the frame.
2907 * WebView/WebFrameView.m:
2908 (-[WebFrameView _customScrollViewClass]):
2909 (-[WebFrameView _setCustomScrollViewClass:]):
2910 * WebView/WebFrameViewPrivate.h:
2912 2006-07-24 Alexey Proskuryakov <ap@nypop.com>
2916 Fix http://bugs.webkit.org/show_bug.cgi?id=10009
2917 REGRESSION: Schubert-IT PDF Plug-in not working for full page (works in frames)
2919 * WebView/WebView.m:
2920 (+[WebView _viewClass:andRepresentationClass:forMIMEType:]): If we've got a type supported by WebPDFView,
2921 make sure to initialize the plugin database, in case a plugin wants to handle it.
2923 2006-07-23 Mark Rowe <opendarwin.org@bdash.net.nz>
2927 Bug 9686: [Drosera] Need the ability to break into Drosera on Javascript exceptions
2928 http://bugs.webkit.org/show_bug.cgi?id=9686
2930 WebKit portion of the fix.
2932 * DefaultDelegates/WebDefaultScriptDebugDelegate.m:
2933 (-[WebDefaultScriptDebugDelegate webView:exceptionWasRaised:sourceId:line:forWebFrame:]):
2934 * DefaultDelegates/WebScriptDebugServer.h:
2935 * DefaultDelegates/WebScriptDebugServer.m:
2936 (-[WebScriptDebugServer webView:exceptionWasRaised:sourceId:line:forWebFrame:]): Notify
2937 listeners that an exception has been raised.
2938 * WebView/WebScriptDebugDelegate.h:
2939 * WebView/WebScriptDebugDelegate.m:
2940 (-[WebScriptCallFrame exceptionRaised:sourceId:line:]): Dispatch through to delegate and
2941 WebScriptDebugServer.
2943 2006-07-23 Adele Peterson <adele@apple.com>
2947 - Fix for <rdar://problem/4646276> CrashTracer: 7 crashes in Safari at com.apple.WebCore: WebCore::RenderTableSection::paint + 155
2949 * WebView/WebHTMLView.m: (-[WebHTMLView _web_layoutIfNeededRecursive:testDirtyRect:]):
2950 needsDisplay was returning NO even though the view has a dirty rect (see <rdar://problem/4647062>). Since we know about
2951 the dirty rect, we don't actually need to check needsDisplay.
2953 2006-07-22 Timothy Hatcher <timothy@apple.com>
2957 Bug 10062: REGRESSION: dom/xhtml/level2/html/HTMLIFrameElement11.xhtml asserts/crashes
2958 http://bugs.webkit.org/show_bug.cgi?id=10062
2960 2006-07-21 Timothy Hatcher <timothy@apple.com>
2964 <rdar://problem/4609195> Help Viewer loads empty window
2965 (not getting didFailLoadingWithError: callback)
2967 Call super's didFailWithError before _receivedMainResourceError
2968 because _receivedMainResourceError will cause the datasource's
2969 frame to be set to nil before the didFailLoadingWithError delegate
2970 callback is sent. (This order is needed now that WebDataSource does
2971 not hold on to the WebView; it uses the WebFrame to get to the WebView.
2972 If the WebFrame is nil we can't get to the WebView's resource load delegate.)
2974 * WebView/WebMainResourceLoader.m:
2975 (-[WebMainResourceLoader receivedError:]):
2978 2006-07-22 Timothy Hatcher <timothy@apple.com>
2982 <rdar://problem/4646318> REGRESSION: Ctrl-clicking on a selection containing a word doesn't display a complete contextual menu
2984 Show the editing context menu if the WebView is editible.
2985 The original change only checked if the DOM element was editable,
2986 and isContentEditable returns NO if entire WebView is editable.
2988 * DefaultDelegates/WebDefaultContextMenuDelegate.m:
2989 (-[WebDefaultUIDelegate webView:contextMenuItemsForElement:defaultMenuItems:]):
2991 2006-07-21 Timothy Hatcher <timothy@apple.com>
2995 <rdar://problem/4609195> Help Viewer loads empty window
2996 (not getting didFailLoadingWithError: callback)
2998 Call super's didFailWithError before _receivedMainResourceError
2999 because _receivedMainResourceError will cause the datasource's
3000 frame to be set to nil before the didFailLoadingWithError delegate
3001 callback is sent. (This order is needed now that WebDataSource does
3002 not hold on to the WebView; it uses the WebFrame to get to the WebView.
3003 If the WebFrame is nil we can't get to the WebView's resource load delegate.)
3005 * WebView/WebMainResourceLoader.m:
3006 (-[WebMainResourceLoader receivedError:]):
3008 === Safari-521.20 ===
3010 2006-07-21 Timothy Hatcher <timothy@apple.com>
3014 <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)
3016 Do not use _isEditable call since that only checks if the current
3017 selection or frame is editible. We now check if the currently clicked element
3018 is a content editible area, a textarea, an isindex or an input element that
3019 return YES to _isTextField.
3021 * DefaultDelegates/WebDefaultContextMenuDelegate.m:
3022 (-[WebDefaultUIDelegate webView:contextMenuItemsForElement:defaultMenuItems:]):
3024 2006-07-20 John Sullivan <sullivan@apple.com>
3028 - WebKit part of fix for:
3029 <rdar://problem/4557386> REGRESSION (419.3-521.19): repro Safari world leak involving
3030 closing tabs after clicking in a web page
3032 * WebCoreSupport/WebFrameBridge.m:
3033 (-[WebFrameBridge textViewWasFirstResponderAtMouseDownTime:]):
3034 renamed to be more specific (formerly wasFirstResponderAtMouseDownTime:)
3036 * WebView/WebHTMLViewInternal.h:
3037 * WebView/WebHTMLView.m:
3038 (-[WebTextCompleteController dealloc]):
3039 updated for name change
3040 (-[NSArray _setMouseDownEvent:]):
3041 Now only retains the first responder if it's a textView, since that's the only case that the only client
3042 actually cares about. This avoids a reference cycle caused by retaining self. This is the only substantive
3043 part of the patch; all the rest is just renaming for clarity, and comments.
3044 (-[NSArray mouseDown:]):
3045 updated for name change
3046 (-[WebHTMLView _textViewWasFirstResponderAtMouseDownTime:]):
3047 renamed to be more specific (formerly _wasFirstResponderAtMouseDownTime:)
3049 2006-07-19 Tim Omernick <timo@apple.com>
3053 <rdar://problem/4523432> safari crashed right after disabling "block pop up windows" (or other WebPreferences changes)
3055 * Plugins/WebBaseNetscapePluginView.m:
3056 (-[WebBaseNetscapePluginView viewWillMoveToSuperview:]):
3057 Stop the plug-in when it is removed from its superview. It is not sufficient to do this in -viewWillMoveToWindow:nil, because
3058 the WebView might still has a hostWindow at that point, which prevents the plug-in from being destroyed.
3059 There is no need to start the plug-in when moving into a superview. -viewDidMoveToWindow takes care of that.
3061 === Safari-521.19 ===
3063 2006-07-17 Tim Omernick <timo@apple.com>
3067 <rdar://problem/4612079> need a way to prevent pages from scrolling to reveal elements that are focused
3070 * WebView/WebViewPrivate.h:
3071 * WebView/WebView.m:
3072 (-[WebView setProhibitsMainFrameScrolling:]):
3073 New method. Prohibits scrolling in the WebView's main frame. Used to "lock" a WebView to a specific
3076 2006-07-17 Timothy Hatcher <timothy@apple.com>
3080 <rdar://problem/4635311> REGRESSION: WebKit should call windowScriptObjectAvailable before attaching the script debugger
3082 * WebCoreSupport/WebFrameBridge.m:
3083 (-[WebFrameBridge windowObjectCleared]):
3085 2006-07-17 Timothy Hatcher <timothy@apple.com>
3089 <rdar://problem/4634874> WebScriptObject and WebUndefined are no longer defined by WebKit
3091 Copy WebScriptObject.h from WebCore's private headers, not JavaScriptCore.
3093 * WebKit.xcodeproj/project.pbxproj:
3095 2006-07-17 John Sullivan <sullivan@apple.com>
3097 Reviewed by Tim Omernick.
3099 - fixed <rdar://problem/4604366> Orange Find highlight displays text in wrong size on PDF pages
3100 if they're not at "actual size"
3102 To match WebHTMLView, I made the methods that return attributed strings take the view's scale
3103 factor into account.
3105 * WebView/WebPDFView.m:
3106 (-[WebPDFView _scaledAttributedString:]):
3107 new helper method, takes an attributed string and returns one that's scaled by the view's
3108 current scale factor
3109 (-[WebPDFView attributedString]):
3110 pass result through _scaledAttributedString:
3111 (-[WebPDFView selectedAttributedString]):
3114 2006-07-17 Justin Garcia <justin.garcia@apple.com>
3118 Rolled the first fix for:
3119 <http://bugs.webkit.org/show_bug.cgi?id=9642>
3120 GMail Editor: Operations that use drop down menus blow away the selection
3121 back in and removed the call to _clearSelectionInOtherFrames from
3122 -[WebHTMLView becomeFirstResponder] to fix the bug.
3124 * WebView/WebHTMLView.m:
3125 (-[NSArray maintainsInactiveSelection]):
3126 (-[NSArray becomeFirstResponder]):
3127 * WebView/WebView.m:
3128 (-[WebView maintainsInactiveSelection]):
3130 2006-07-15 Darin Adler <darin@apple.com>
3132 Reviewed by John Sullivan.
3134 - fix http://bugs.webkit.org/show_bug.cgi?id=9928
3135 REGRESSION: Text Encoding menu inoperative (after gcc protocol build fix)
3137 * WebView/WebHTMLView.m:
3138 (-[WebHTMLView _documentRange]): Moved into WebHTMLViewFileInternal category.
3139 (-[WebHTMLView selectionRect]): Moved into WebDocumentPrivateProtocols category.
3140 (-[WebHTMLView selectionView]): Ditto.
3141 (-[WebHTMLView selectionImageForcingWhiteText:]): Ditto.
3142 (-[WebHTMLView selectionImageRect]): Ditto.
3143 (-[WebHTMLView pasteboardTypesForSelection]): Ditto.
3144 (-[WebHTMLView selectAll]): Ditto.
3145 (-[WebHTMLView deselectAll]): Ditto.
3146 (-[WebHTMLView string]): Ditto.
3147 (-[WebHTMLView _attributeStringFromDOMRange:]): Ditto.
3148 (-[WebHTMLView attributedString]): Ditto.
3149 (-[WebHTMLView selectedString]): Ditto.
3150 (-[WebHTMLView selectedAttributedString]): Ditto.
3151 (-[WebHTMLView supportsTextEncoding]): Ditto.
3152 (-[WebHTMLView _canProcessDragWithDraggingInfo:]): Moved into WebDocumentInternalProtocols.
3153 (-[WebHTMLView _isMoveDrag]): Ditto.
3154 (-[WebHTMLView _isNSColorDrag:]): Ditto.
3155 (-[WebHTMLView draggingUpdatedWithDraggingInfo:actionMask:]): Ditto.
3156 (-[WebHTMLView draggingCancelledWithDraggingInfo:]): Ditto.
3157 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): Ditto.
3158 (-[WebHTMLView elementAtPoint:]): Ditto.
3159 (-[WebHTMLView elementAtPoint:allowShadowContent:]): Ditto.
3161 * WebKit.xcodeproj/project.pbxproj: Let Xcode 2.3 do its thing.
3163 === Safari-521.17 ===
3165 2006-07-14 Timothy Hatcher <timothy@apple.com>
3167 Rolling out this fix from r15358 since it isn't resolved.
3169 2006-07-11 Justin Garcia <justin.garcia@apple.com>
3171 Reviewed by levi & thatcher
3173 <http://bugs.webkit.org/show_bug.cgi?id=9642>
3174 GMail Editor: Operations that use drop down menus blow away the selection
3176 * WebView/WebHTMLView.m:
3177 (-[WebHTMLView maintainsInactiveSelection]): Maintain an inactive selection
3178 when resigning as first responder if the selection is editable
3179 or if the WebView tells us to.
3180 * WebView/WebView.m:
3181 (-[WebView maintainsInactiveSelection]): Just because a WebView is
3182 editable doesn't mean selections inside subframes will be. Return
3185 2006-07-14 Timothy Hatcher <timothy@apple.com>
3187 <rdar://problem/4623957> SWB: gcc-5412 (new?) objc warning causes WebCore project failure
3189 Build fix with the new GCC. Removes forward declarations of protocols.
3191 * Misc/WebSearchableTextView.h:
3192 * WebCoreSupport/WebSubresourceLoader.h:
3193 * WebKit.xcodeproj/project.pbxproj:
3194 * WebView/WebDocumentInternal.h:
3195 * WebView/WebDocumentPrivate.h:
3196 * WebView/WebHTMLView.h:
3197 * WebView/WebPDFView.h:
3198 * WebView/WebScriptDebugDelegatePrivate.h:
3200 2006-06-28 Darin Adler <darin@apple.com>
3204 - fix http://bugs.webkit.org/show_bug.cgi?id=9625
3205 <rdar://problem/4604703>
3206 REGRESSION: Focus not removed from password field after ctrl-click in text field
3208 * WebView/WebHTMLView.m: (-[WebHTMLView menuForEvent:]): Set handlingMouseDownEvent to
3209 YES while calling sendContextMenuEvent: on the bridge.
3211 2006-07-14 Timothy Hatcher <timothy@apple.com>
3215 Moved JavaScriptCore to be a public framework.
3217 * WebKit.xcodeproj/project.pbxproj:
3219 2006-07-13 Mitz Pettel <opendarwin.org@mitzpettel.com>
3223 - fix http://bugs.webkit.org/show_bug.cgi?id=9795
3224 REGRESSION: Crash in [WebHTMLView(WebPrivate)
3225 _updateMouseoverWithEvent:]
3226 and http://bugs.webkit.org/show_bug.cgi?id=9850
3227 REGRESSION: Assertion failure (SHOULD NEVER BE REACHED) in -
3228 [WebHTMLView(WebPrivate) removeTrackingRect:]
3230 * WebView/WebHTMLView.m:
3231 (-[WebHTMLView _updateMouseoverWithEvent:]): Return immediately if
3232 the view has already been closed.
3234 2006-07-13 David Harrison <harrison@apple.com>
3236 Reviewed by Justin and Levi.
3238 <rdar://problem/4620743> REGRESSION: Option-Delete doesn't delete words during typing
3241 editing/deleting/delete-by-word-001.html
3242 editing/deleting/delete-by-word-002.html
3244 * WebView/WebHTMLView.m:
3245 (-[WebHTMLView _deleteRange:killRing:prepend:smartDeleteOK:deletionAction:granularity:]):
3247 2006-07-13 Timothy Hatcher <timothy@apple.com>
3249 Rolling out this earlier change (r15378) now that it is fixed on AGL's end.
3250 Fixes <rdar://problem/4624865> Restore 64-bit OpenGL plug-in support once AGL is 64-bit
3252 <rdar://problem/4624858> AGL isn't 64-bit yet; temporarily remove it from WebKit 64-bit build
3254 * Plugins/WebBaseNetscapePluginView.h:
3255 * Plugins/WebBaseNetscapePluginView.m:
3257 2006-07-13 Timothy Hatcher <timothy@apple.com>
3261 <rdar://problem/4616920> REGRESSION: tabbing in mail moves focus
3262 to next control instead of inserting a tab space.
3264 Change editible WebView's tabKeyCyclesThroughElements to NO only
3265 if the setTabKeyCyclesThroughElements SPI wasn't called.
3267 * WebView/WebView.m:
3268 (-[WebView setEditable:]):
3270 2006-07-12 Anders Carlsson <acarlsson@apple.com>
3274 http://bugs.webkit.org/show_bug.cgi?id=9624
3275 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
3277 * DefaultDelegates/WebDefaultContextMenuDelegate.m:
3278 (-[WebDefaultUIDelegate editingContextMenuItemsForElement:defaultMenuItems:]):
3279 Don't create Dictionary, Spotlight or Google lookup items if there's no selection.
3281 2006-07-12 Mark Rowe <opendarwin.org@bdash.net.nz>
3283 Reviewed by Timothy.
3285 http://bugs.webkit.org/show_bug.cgi?id=9868
3286 Applications shown in Drosera's "Attach" window remain after exit
3288 * DefaultDelegates/WebScriptDebugServer.m:
3289 (-[WebScriptDebugServer init]): Register for NSApplicationWillTerminateNotification so we will
3290 know when the application is being exited.
3291 (-[WebScriptDebugServer dealloc]): Unregister notification before we are deallocated.
3292 (-[WebScriptDebugServer applicationTerminating:]): Inform anyone listening that we are going away.
3294 2006-07-12 Tim Omernick <timo@apple.com>
3296 Reviewed by Tim Hatcher.
3298 <rdar://problem/4624858> AGL isn't 64-bit yet; temporarily remove it from WebKit 64-bit build
3300 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
3303 * Plugins/WebBaseNetscapePluginView.h:
3304 * Plugins/WebBaseNetscapePluginView.m:
3306 2006-07-11 John Sullivan <sullivan@apple.com>
3308 Reviewed by Kevin and Tim O
3310 - added support for creating a selection image with white text
3312 * WebView/WebDocumentPrivate.h:
3313 added -selectionImageForcingWhiteText: and -selectionImageRect to the private
3314 <WebDocumentSelection> protocol
3316 * Misc/WebSearchableTextView.m:
3317 (-[NSString selectionImageForcingWhiteText:]):
3318 added stub for this new method to this obsolete class to satisfy the compiler
3319 (-[NSString selectionImageRect]):
3322 * WebView/WebHTMLView.m:
3323 (-[WebHTMLView _selectionDraggingImage]):
3324 now calls -selectionImageForcingWhiteText:NO instead of just -selectionImage
3325 (-[WebHTMLView _selectionDraggingRect]):
3326 now calls selectionImageRect, to which the implementation moved
3327 (-[WebHTMLView selectionImageForcingWhiteText:]):
3328 implemented this new method by calling through to new bridge method selectionImageForcingWhiteText:
3329 (-[WebHTMLView selectionImageRect]):
3330 implemented this new method by using existing _selectionDraggingRect implementation
3332 * WebView/WebPDFView.m:
3333 (-[WebPDFView selectionImageForcingWhiteText:]):
3334 implemented by using code that was formerly in Safari
3335 (-[WebPDFView selectionImageRect]):
3336 implemented by returning selectionRect
3338 2006-07-11 Tim Omernick <timo@apple.com>
3342 <http://bugs.webkit.org/show_bug.cgi?id=9843>:
3343 Give Netscape plug-ins access to their own DOM element
3345 * Plugins/WebBaseNetscapePluginView.h:
3346 * Plugins/WebBaseNetscapePluginView.m:
3347 (-[WebBaseNetscapePluginView dealloc]):
3348 Release DOM element.
3349 (-[WebBaseNetscapePluginView getVariable:value:]):
3350 Return NPObject for plugin DOM element.
3352 * Plugins/WebNetscapePluginEmbeddedView.h:
3353 * Plugins/WebNetscapePluginEmbeddedView.m:
3354 (-[WebNetscapePluginEmbeddedView initWithFrame:plugin:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:DOMElement:]):
3355 Now takes a DOMElement, in much the same way that WebKit plug-in views take a DOMElement.
3357 * WebCoreSupport/WebFrameBridge.m:
3358 (-[WebFrameBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:DOMElement:loadManually:]):
3359 Pass DOMElement to Netscape plug-ins.
3360 (-[WebFrameBridge viewForJavaAppletWithFrame:attributeNames:attributeValues:baseURL:DOMElement:]):
3363 2006-07-11 Justin Garcia <justin.garcia@apple.com>
3365 Reviewed by levi & thatcher
3367 <http://bugs.webkit.org/show_bug.cgi?id=9642>
3368 GMail Editor: Operations that use drop down menus blow away the selection
3370 * WebView/WebHTMLView.m:
3371 (-[WebHTMLView maintainsInactiveSelection]): Maintain an inactive selection
3372 when resigning as first responder if the selection is editable
3373 or if the WebView tells us to.
3374 * WebView/WebView.m:
3375 (-[WebView maintainsInactiveSelection]): Just because a WebView is
3376 editable doesn't mean selections inside subframes will be. Return
3379 2006-07-11 Tim Omernick <timo@apple.com>
3381 Reviewed by Tim Hatcher.
3383 <rdar://problem/4622748> WebKit now uses deprecated AGL functions
3385 * Plugins/WebBaseNetscapePluginView.m:
3386 (-[WebBaseNetscapePluginView _createWindowedAGLContext]):
3387 aglSetDrawable() is deprecated in AGL 3.0. Use aglSetWindowRef() instead.
3388 (-[WebBaseNetscapePluginView _createWindowlessAGLContext]):
3389 aglSetOffScreen() is deprecated in AGL 3.0. Use CGLSetOffScreen(), which does the same thing.
3391 2006-07-11 Alexey Proskuryakov <ap@nypop.com>
3395 - http://bugs.webkit.org/show_bug.cgi?id=7808
3396 Assertion failure in -[WebBaseNetscapePluginStream dealloc] when requesting an invalid URL
3398 * Plugins/WebNetscapePluginStream.m:
3399 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
3400 Remove the early return when requesting an invalid (unsupported) URL.
3402 === Safari-521.16 ===
3404 2006-07-10 Mitz Pettel <opendarwin.org@mitzpettel.com>
3406 Reviewed by John Sullivan.
3408 - fix <rdar://problem/4621541>, aka <http://bugs.webkit.org/show_bug.cgi?id=9838>
3409 REGRESSION (r14968-r14977): View Source doesn't work for pages from the back/forward cache
3411 * WebView/WebDataSource.m:
3412 (-[WebDataSource _setPrimaryLoadComplete:]): Set our data only if the frame loader is
3413 has just loaded it (when coming from the back/forward cache, it hasn't).
3415 2006-07-10 Brady Eidson <beidson@apple.com>
3419 Resolved the console error messages people got from the new DB even if they didn't have it enabled
3421 * Misc/WebIconDatabase.m:
3422 (-[WebIconDatabase init]):
3423 Disabled initializing the IconDatabaseBridge if user is living on the old DB
3425 2006-07-10 Darin Adler <darin@apple.com>
3427 - try to fix Windows build
3429 * COM/WebFrame.h: Qualify DeprecatedString and KURL with WebCore:: prefixes.
3431 2006-07-09 Darin Adler <darin@apple.com>
3433 - try to fix Windows build
3435 * COM/WebFrame.cpp: Rename QChar to DeprecatedChar.
3437 2006-07-09 Darin Adler <darin@apple.com>
3439 - fix newlines to be consistent for all files in the COM directory
3440 (many had mixed style) and set the EOL style to "native" on them.
3442 * COM/*: Set properties and changed files.
3444 2006-07-09 Tim Omernick <timo@apple.com>
3448 <rdar://problem/4404652> Netscape plug-in mouse events broken in HiDPI
3450 Multiply global mouse coordinates by the window scale factor so that plug-ins can use GlobalToLocal() in HiDPI.
3451 This fixes many bugs involving plug-in mouse event handling in HiDPI. Most notably, the Flash player will now
3452 correctly respond to clicks.
3454 * Plugins/WebBaseNetscapePluginView.m:
3455 (+[WebBaseNetscapePluginView getCarbonEvent:]):
3456 (-[WebBaseNetscapePluginView getCarbonEvent:withEvent:]):
3458 2006-07-09 Darin Adler <darin@apple.com>
3460 Reviewed by Tim Hatcher.
3462 - fix assertion firing in plug-in layout tests
3464 * Plugins/WebBaseNetscapePluginView.m:
3465 (-[WebBaseNetscapePluginView restartNullEvents]):
3466 Don't start null events if the plug-in is not in the
3467 started state. This happens when the plug-in moves within
3468 its view hierarchy after it has been stopped.
3470 2006-07-09 Timothy Hatcher <timothy@apple.com>
3474 Bug 9820: Move new DOM API that has been through API review to public headers
3475 http://bugs.webkit.org/show_bug.cgi?id=9820
3477 * Misc/WebElementDictionary.m: include DOMExtensions.h
3478 * Misc/WebNSViewExtras.m: include DOMExtensions.h
3479 * WebKit.xcodeproj/project.pbxproj: make DOMXPath.h public
3481 2006-07-09 Timothy Hatcher <timothy@apple.com>
3485 Bug 9818: move new UIDelegate API that has been through API review to public headers
3486 http://bugs.webkit.org/show_bug.cgi?id=9818
3488 <rdar://problem/4387541> API: Remove webView:setContentRect: & webViewContentRect: delegate methods?
3489 The fix for 4310363 removed the only use of webViewContentRect: in our code. webView:setContentRect:
3490 was never used to begin with. There's no harm in leaving these around in the API, but they'll cruft it up.
3492 Also removes the never used webViewPrint: SPI that was replaced by webView:printFrameView:.
3494 * DefaultDelegates/WebDefaultUIDelegate.m:
3495 * WebCoreSupport/WebFrameBridge.m:
3496 (-[WebFrameBridge print]):
3497 * WebView/WebFrameView.h:
3498 * WebView/WebFrameView.m:
3499 * WebView/WebFrameViewPrivate.h:
3500 * WebView/WebUIDelegate.h:
3501 * WebView/WebUIDelegatePrivate.h:
3503 2006-07-09 Timothy Hatcher <timothy@apple.com>
3507 Bug 9814: Move new WebView API that has been through API review to public headers
3508 http://bugs.webkit.org/show_bug.cgi?id=9814
3510 * WebView/WebView.h:
3511 * WebView/WebView.m:
3513 (-[WebView setShouldCloseWithWindow:]):
3514 (-[WebView shouldCloseWithWindow]):
3515 (-[WebView selectedFrame]):
3516 (-[WebView setMainFrameURL:]):
3517 (-[WebView mainFrameURL]):
3518 (-[WebView isLoading]):
3519 (-[WebView mainFrameTitle]):
3520 (-[WebView mainFrameIcon]):
3521 (-[WebView mainFrameDocument]):
3522 (-[WebView setDrawsBackground:]):
3523 (-[WebView drawsBackground]):
3524 (-[WebView toggleSmartInsertDelete:]):
3525 (-[WebView toggleContinuousSpellChecking:]):
3526 (-[WebView canMakeTextStandardSize]):
3527 (-[WebView makeTextStandardSize:]):
3528 (-[WebView maintainsInactiveSelection]):
3529 * WebView/WebViewPrivate.h:
3531 2006-07-09 Timothy Hatcher <timothy@apple.com>
3535 Bug 9487: The XPath section should be removed and/or moved.
3536 http://bugs.webkit.org/show_bug.cgi?id=9487
3538 * WebInspector/webInspector/inspector.css:
3539 * WebInspector/webInspector/inspector.html:
3540 * WebInspector/webInspector/inspector.js:
3542 2006-07-09 Anders Carlsson <acarlsson@apple.com>
3546 * WebCoreSupport/WebSystemInterface.m:
3547 (InitWebCoreSystemInterface):
3548 Initialize wkPathFromFont.
3550 2006-07-09 Darin Adler <darin@apple.com>
3554 * Plugins/WebBaseNetscapePluginView.m:
3555 (-[WebBaseNetscapePluginView restorePortState:]): Cast inside the assertion so
3556 that we don't have an unused variable in versions with assertions disabled.
3557 The alternative would be to wrap the whole thing in an #if statement.
3559 2006-07-08 Tim Omernick <timo@apple.com>
3561 Reviewed by John Sullivan.
3563 * Plugins/WebBaseNetscapePluginView.h:
3564 - Added ivars for OpenGL support. Someday it would be nice to refactor this class so
3565 that each drawing model is encapsulated in a class; this would allow
3566 WebBaseNetscapePluginView to make more efficient use of space, for example by not
3567 keeping OpenGL-related ivars for Quickdraw plug-ins.
3569 * Plugins/WebBaseNetscapePluginView.m:
3570 - Declared a bunch of internal methods for OpenGL support (see below).
3571 - Removed "forUpdate" from CoreGraphics port state struct; it was always set to "YES",
3572 so I just cleaned up the silly code that used it.
3573 - Declared OpenGL port state struct.
3574 (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
3575 - Moved a CoreGraphics-related assertion down to the big "switch" statement.
3576 - Don't set window.type here -- according to the Netscape Plug-in API docs, the plug-in
3577 should default to "windowed" mode, and may call NPN_SetValue() during its NPN_New() to
3578 request that the browser use a "windowless" (offscreen) context instead.
3579 - Moved the assertion from the top of this method here; removed a less restrictive
3580 assertion that is now obsolete.
3581 - Removed "forUpdate" flag from CoreGraphics port state struct.
3582 - Fill in OpenGL port state struct. Set up the viewport appropriately for both windowed
3583 and windowless OpenGL plug-ins. Windowed plug-ins need to have their GL viewport
3584 transformed by the amount the plug-in is clipped; windowless plug-ins are drawn off-screen
3585 into a surface whose geometry is never changed or clipped, so they may always draw with
3586 a viewport origin of (0, 0).
3587 (-[WebBaseNetscapePluginView restorePortState:]):
3588 - Removed "forUpdate" flag from CoreGraphics port state struct.
3589 - Restore the old OpenGL context saved by -saveAndSetNewPortStateForUpdate:.
3590 (-[WebBaseNetscapePluginView sendEvent:]):
3591 - Updated an assertion to also include OpenGL. To ensure that attached plug-in window movements
3592 happen atomically with web page redisplays, we assert that the plug-in's window is set only while
3593 the plug-in view is redrawing.
3594 - Same deal as with the assertion; only save/set port state when redrawing the plug-in view. Plug-ins
3595 that use the new drawing models are only allowed to draw when the web page draws. I might consider
3596 changing this for windowed OpenGL plug-ins, since they always obscure the page content anyway.
3597 (-[WebBaseNetscapePluginView isNewWindowEqualToOldWindow]):
3598 - Compare new NP_GLContext structs.
3599 (-[WebBaseNetscapePluginView updateAndSetWindow]):
3600 - In OpenGL mode, can only set window when updating plug-in view.
3601 (-[WebBaseNetscapePluginView setWindowIfNecessary]):
3603 - Updated logging for OpenGL drawing mode.
3604 (-[WebBaseNetscapePluginView addWindowObservers]):
3605 - No need to observe frame/bounds change notifications for this and all parent views. See -renewGState
3607 (-[WebBaseNetscapePluginView removeWindowObservers]):
3608 - Don't need to remove frame/bounds observers anymore.
3609 (-[WebBaseNetscapePluginView start]):
3610 - Plug-ins are "windowed" by default. This is not a change from our previous behavior, but this is a
3611 better place to set the default value as it allows the plug-in to override it later.
3612 (-[WebBaseNetscapePluginView stop]):
3613 - Destroy AGL context when the plug-in stops.
3614 (-[WebBaseNetscapePluginView dealloc]):
3615 - Assert that the AGL stuff has been cleaned up.
3616 (-[WebBaseNetscapePluginView drawRect:]):
3617 - If this is a windowless OpenGL plugin, blit its contents back into this view.
3618 (-[WebBaseNetscapePluginView renewGState]):
3619 - This method is called when the view or one of its parents is moved or resized (see comments).
3620 (-[WebBaseNetscapePluginView viewWillMoveToWindow:]):
3621 - Hide the AGL window if the plug-in view is about to be removed from its window.
3622 (-[WebBaseNetscapePluginView viewHasMoved:]):
3623 - Renamed and moved to the "Internal" category.
3624 (-[WebBaseNetscapePluginView invalidateRegion:]):
3626 - Add support for OpenGL (uses the same region type as CoreGraphics).
3627 (-[WebBaseNetscapePluginView getVariable:value:]):
3629 - Implemented NPNVsupportsOpenGLBool; returns YES since we now support the OpenGL drawing model.
3630 (-[WebBaseNetscapePluginView setVariable:value:]):
3631 - Implemented NPPVpluginWindowBool, which allows plug-ins to specify whether they should be rendered in
3632 "windowed" or "windowless" mode. This is an older part of the Netscape Plug-in API that was never
3633 implemented in WebKit. "Windowed" Quickdraw plug-ins do not actually reside in a separate window, and
3634 can already do many of the same things (such as transparency) that only "windowless" plug-ins can do on
3635 other platforms. However, we need the "windowed" vs. "windowless" distinction for OpenGL plug-ins so
3636 that they have some way of specifying whether they should be rendered on an accelerated overlay surface,
3637 composited into the browser window.
3638 - Support for setting the drawing model to OpenGL.
3639 (-[WebBaseNetscapePluginView _viewHasMoved]):
3640 - Renamed from -viewHasMoved:, and moved down in the file.
3641 - None of this work is necessary when the plug-in is not in a window; the plug-in's state will be properly
3642 restored when it is moved back into a window.
3643 - Reshape OpenGL surface window here.
3644 (-[WebBaseNetscapePluginView _createAGLContextIfNeeded]):
3645 - Creates the AGL context of the appropriate type (windowed/windowless).
3646 (-[WebBaseNetscapePluginView _createWindowedAGLContext]):
3647 - Creates a windowed AGL context, which is an AGL context attached to a child window. This is the only way
3648 to get true hardware acceleration.
3649 (-[WebBaseNetscapePluginView _createWindowlessAGLContext]):
3650 - Creates a windowless AGL context, which is an AGL context attached to an offscreen buffer. This buffer can
3651 then be blitted back into the browser window with a different alpha, or scaled, or whatever.
3652 (-[WebBaseNetscapePluginView _cglContext]):
3653 - Returns the underlying CGL context from the AGL context. We give the plug-in access to the CGL context because
3654 CGL is the more primitive of the GL drawable APIs and allows for finer control over the context.
3655 (-[WebBaseNetscapePluginView _getAGLOffscreenBuffer:width:height:]):
3656 - Returns the buffer allocated for the offscreen AGL context, if there is one.
3657 (-[WebBaseNetscapePluginView _destroyAGLContext]):
3658 - Destroys the AGL context, as well as the associated offscreen buffer or child window.
3659 (-[WebBaseNetscapePluginView _reshapeAGLWindow]):
3660 - Positions the AGL window over the browser window.
3661 (-[WebBaseNetscapePluginView _hideAGLWindow]):
3662 - Hides the AGL window.
3663 (-[WebBaseNetscapePluginView _aglOffscreenImageForDrawingInRect:]):
3664 - Returns an NSImage representation of the offscreen AGL context's framebuffer. This is used to draw the offscreen
3665 bits back into the plug-in view. This is kind of tricky because it has to convert the offscreen buffer in-place
3666 from BGRA to RGBA so that it can be wrapped in an NSBitmapImageRep. See comments.
3668 * WebKit.xcodeproj/project.pbxproj:
3669 Link OpenGL and AGL.
3671 2006-07-09 Brady Eidson <beidson@apple.com>
3675 The ICONDEBUG flag now chooses either the new icon database or the old one
3676 No longer any need to live side by side to compare results
3678 * Misc/WebIconDatabase.m:
3679 (-[NSMutableDictionary iconURLForURL:]):
3680 (-[NSMutableDictionary retainIconForURL:]):
3681 (-[NSMutableDictionary releaseIconForURL:]):
3682 (-[WebIconDatabase _setHaveNoIconForIconURL:]):
3683 (-[WebIconDatabase _setIconURL:forURL:]):
3684 (-[WebIconDatabase _resetCachedWebPreferences:]):
3686 2006-07-08 Timothy Hatcher <timothy@apple.com>
3690 Bug 5312: comments aren't available via DOM
3691 http://bugs.webkit.org/show_bug.cgi?id=5312
3693 Makes the Web Inspector show comment node contents.
3695 * WebInspector/WebInspector.m:
3696 (-[DOMNode _displayName]): return the contents of the comment
3697 * WebInspector/webInspector/inspector.js: check for comment nodes
3699 2006-07-09 Alexey Proskuryakov <ap@nypop.com>
3703 - http://bugs.webkit.org/show_bug.cgi?id=9572
3704 Add application/xhtml+xml to the Accept header
3706 * WebView/WebFrame.m:
3707 (-[WebFrame _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]): Add an Accept header
3708 to main resource requests.
3709 * English.lproj/StringsNotToBeLocalized.txt: Added new strings.
3711 2006-07-08 Darin Adler <darin@apple.com>
3713 * DefaultDelegates/WebDefaultContextMenuDelegate.m:
3714 (-[WebDefaultUIDelegate contextMenuItemsForElement:defaultMenuItems:]):
3715 Removed misleading old comment.
3717 === Safari-521.15 ===
3719 2006-07-07 Levi Weintraub <lweintraub@apple.com>
3723 Finished moving deletion selection expansion across the bridge... say that 3 times fast.
3725 * WebView/WebHTMLView.m: Pass granularity to WebCore to handle expansion
3726 (-[WebHTMLView _deleteRange:killRing:prepend:smartDeleteOK:deletionAction:granularity:]):
3727 (-[WebHTMLView _deleteSelection]):
3728 (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]):
3729 (-[WebHTMLView deleteToMark:]):
3731 2006-07-07 Brady Eidson <beidson@apple.com>
3735 Changed an ASSERT to a LOG_ERROR for an error that could be handled gracefully, but
3736 whose assertion was reproducibly causing a build bot failure
3738 * Misc/WebIconDatabase.m:
3739 (-[WebIconDatabase _releaseIconForIconURLString:]):
3741 2006-07-06 Levi Weintraub <lweintraub@apple.com>
3745 Improved table editing
3747 * WebCoreSupport/WebFrameBridge.m: Added method to allow WebCore to trigger
3748 deletion editing delegate
3749 (-[WebFrameBridge shouldDeleteSelectedDOMRange:]):
3750 * WebView/WebHTMLView.m: Moved code that expanded a selection when the delete
3751 key is pressed over to WebCore so we can be more intelligent about how to handle it
3752 (-[WebHTMLView _deleteRange:killRing:prepend:smartDeleteOK:deletionAction:]):
3753 (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]):
3755 2006-07-07 John Sullivan <sullivan@apple.com>
3757 Reviewed by Tim Hatcher
3759 - fixed <rdar://problem/4606857> WebKit: WebPreferencesChangedNotification not exported
3762 added surprisingly missing _WebPreferencesChangedNotification, defined in
3765 2006-07-06 Brady Eidson <beidson@apple.com>
3769 Small fix to my previous small fix that only lets the ASSERT off the hook if the DB
3772 * Misc/WebIconDatabase.m:
3773 (-[WebIconDatabase _releaseIconForIconURLString:]):
3775 2006-07-05 Brady Eidson <beidson@apple.com>
3779 Small fix that prevents an assertion from triggering if the DB is being cleaned up
3780 (ie, the app being shut down)
3782 * Misc/WebIconDatabase.h:
3783 * Misc/WebIconDatabase.m:
3784 (-[NSMutableDictionary init]):
3785 (-[WebIconDatabase _applicationWillTerminate:]):
3786 (-[WebIconDatabase _releaseIconForIconURLString:]):
3788 2006-07-05 Adele Peterson <adele@apple.com>
3790 Reviewed by Maciej and Hyatt.
3792 WebKit part of initial popup menu implementation.
3794 * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface):
3795 Initialize WKPopupMenu.
3797 2006-07-05 Anders Carlsson <acarlsson@apple.com>
3801 http://bugs.webkit.org/show_bug.cgi?id=3581
3802 iFrames set to display:none are Missing from frames array
3804 * WebCoreSupport/WebFrameBridge.m:
3805 (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]):
3806 (-[WebFrameBridge createChildFrameNamed:withURL:referrer:ownerElement:allowsScrolling:marginWidth:marginHeight:]):
3807 Modify to pass the owner element instead of the owner renderer.
3809 * WebView/WebHTMLView.m:
3810 (-[WebHTMLView _topHTMLView]):
3811 Remove assertion, it's not valid anymore.
3813 2006-07-05 Timothy Hatcher <timothy@apple.com>
3815 Reviewed by Harrison.
3817 <rdar://problem/4608423> HIViewAdapter used but not defined
3818 Adds a new export file to fix the build.
3820 * WebKit.LP64.exp: Added.
3821 * WebKit.xcodeproj/project.pbxproj:
3823 2006-07-04 Timothy Hatcher <timothy@apple.com>
3827 Bug 9731: [Drosera] crash when trying to access the scope chain
3828 http://bugs.webkit.org/show_bug.cgi?id=9731
3830 Because of <rdar://problem/4608404> the WebScriptObject, _globalObj, that
3831 WebCoreScriptDebugger holds is unprotected each time the page changes.
3832 This causes Drosera to crash Safari when trying to access the scope chain.
3833 We simply need to detach and re-attach the debugger when the window script
3834 object is cleared until 4608404 is fixed. This change also attaches the
3835 debugger before we call the windowScriptObjectAvailable: delegate method,
3836 so the debugger is ready before anyone might use the window object.
3838 * WebCoreSupport/WebFrameBridge.m:
3839 (-[WebFrameBridge windowObjectCleared]):
3841 2006-07-04 Timothy Hatcher <timothy@apple.com>
3845 Bug 9732: [Drosera] calling removeListener to many times will cause
3846 WebKit's listener count to underflow/wraparound
3847 http://bugs.webkit.org/show_bug.cgi?id=9732
3849 Adds a check to make sure the listener was in our listeners set before
3850 decrementing the global listener count. Also checks for nil in addListner
3851 to prevent a possible exception when adding the object to the set.
3853 * DefaultDelegates/WebScriptDebugServer.m:
3854 (-[WebScriptDebugServer addListener:]):
3855 (-[WebScriptDebugServer removeListener:]):
3857 2006-07-04 Alexey Proskuryakov <ap@nypop.com>
3861 - http://bugs.webkit.org/show_bug.cgi?id=8210
3862 Conditional XMLHttpRequest gets should pass 304 responses unchanged
3864 Test: http/tests/xmlhttprequest/cache-override.html
3866 * Misc/WebNSURLRequestExtras.h: Added _web_isConditionalRequest
3867 * Misc/WebNSURLRequestExtras.m:
3868 (-[NSURLRequest _web_isConditionalRequest]):
3869 * WebCoreSupport/WebFrameBridge.m:
3870 (-[WebFrameBridge syncLoadResourceWithMethod:URL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
3871 Bypass the cache for conditional requests.
3872 * WebCoreSupport/WebSubresourceLoader.m:
3873 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forDataSource:]): Ditto.
3875 2006-07-01 David Kilzer <ddkilzer@kilzer.net>
3877 Reviewed by NOBODY (fixed Tim's build fix).
3879 * WebView/WebView.m: Added back missing '/' at the beginning of the file.
3881 2006-07-01 Tim Omernick <timo@apple.com>
3883 Reviewed by NOBODY (build fix)
3885 * WebView/WebView.m:
3886 (-[WebView _isMIMETypeRegisteredAsPlugin:]):
3887 Changed nil to NO (typo).
3889 === Safari-521.14 ===
3891 2006-06-30 Timothy Hatcher <timothy@apple.com>
3895 Only enable shouldCloseWithWindow when ObjC GC is enabled.
3896 This maintains backwards compatibility with applications
3897 that expect a WebView to be usable after the window closes.
3899 * WebView/WebView.m:
3900 (-[WebViewPrivate init]):
3902 2006-06-30 Timothy Hatcher <timothy@apple.com>
3906 Call _close in dealloc to ensure we cleanup for backwards
3907 compatibility. This will safeguard and cleanup even if the
3908 application doesn't use the new close API yet, like Mail.
3910 * WebView/WebView.m:
3911 (-[WebView dealloc]):
3913 2006-06-29 Timothy Hatcher <timothy@apple.com>
3917 <rdar://problem/4484405> WebKit leaks, improper tear-down
3918 <rdar://problem/3694059> -[WebBackForwardList finalize] is incorrect; design change needed
3919 <rdar://problem/3694103> -[WebFrame finalize] is incorrect; design change needed
3920 <rdar://problem/3694104> -[WebHTMLView finalize] is incorrect; design change needed
3922 Adds a close method to WebView, this needs to be called when the
3923 WebView is no longer needed. To make this easier for the common cases
3924 there is now an "auto close" on WebView that listens to the view's
3925 parent window. If the parent window closes and the WebView has no
3926 hostWindow then the WebView is automatically closed if autoClose is YES.
3927 To manage WebView closing yourself call setAutoClose: and pass NO.
3929 When a WebView closes it will tear-down and not be usable anymore.
3930 Close will will called on various other internal objects as a part
3931 of this, to ensure proper tear-down in GC without relying on finalize.
3933 * History/WebBackForwardList.m:
3934 (-[WebBackForwardList dealloc]):
3935 (-[WebBackForwardList finalize]):
3936 (-[WebBackForwardList _close]):
3937 * History/WebHistoryItem.m:
3938 (+[WebHistoryItem _closeObjectsInPendingPageCaches]):
3939 (+[WebHistoryItem _releaseAllPendingPageCaches]):
3940 * History/WebHistoryItemPrivate.h:
3941 * WebCoreSupport/WebFrameBridge.m:
3942 (-[WebFrameBridge close]):
3943 (-[WebFrameBridge saveDocumentToPageCache:]):
3944 (-[WebFrameBridge canGoBackOrForward:]):
3945 * WebView/WebFrame.m:
3946 (-[WebFrame _detachFromParent]):
3947 (-[WebFrame dealloc]):
3948 (-[WebFrame finalize]):
3949 * WebView/WebFrameView.m:
3950 (-[WebFrameView _setWebFrame:]):
3951 (-[WebFrameView finalize]):
3952 * WebView/WebHTMLView.m:
3953 (-[WebHTMLView close]):
3954 (-[WebHTMLView dealloc]):
3955 (-[WebHTMLView finalize]):
3956 * WebView/WebHTMLViewInternal.h:
3957 * WebView/WebHTMLViewPrivate.h:
3958 * WebView/WebScriptDebugDelegate.m:
3959 (-[WebScriptCallFrame _initWithFrame:initWithWebFrame:]):
3960 (-[WebScriptCallFrame parsedSource:fromURL:sourceId:startLine:errorLine:errorMessage:]):
3961 (-[WebScriptCallFrame enteredFrame:sourceId:line:]):
3962 (-[WebScriptCallFrame hitStatement:sourceId:line:]):
3963 (-[WebScriptCallFrame leavingFrame:sourceId:line:]):
3964 * WebView/WebScriptDebugDelegatePrivate.h:
3965 * WebView/WebView.m:
3966 (-[WebViewPrivate init]):
3967 (-[WebView _close]):
3968 (-[WebView dealloc]):
3969 (-[WebView finalize]):
3970 (-[WebView viewWillMoveToWindow:]):
3971 (-[WebView _windowWillClose:]):
3972 (-[WebView setPreferencesIdentifier:]):
3973 (-[WebView mainFrame]):
3974 (-[WebView setHostWindow:]):
3975 (-[WebView searchFor:direction:caseSensitive:wrap:]):
3976 (-[WebView writeSelectionWithPasteboardTypes:toPasteboard:]):
3978 (-[WebView setAutoClose:]):
3979 (-[WebView autoClose]):
3980 (-[WebView _frameViewAtWindowPoint:]):
3981 * WebView/WebViewPrivate.h:
3983 2006-06-29 Kevin Decker <kdecker@apple.com>
3985 Reviewed by mjs and timo.
3987 Fixed: <rdar://problem/4609119> handleAuthenticationFromResource was removed; needed by the Dashboard
3989 * WebView/WebViewPrivate.h: Added handleAuthenticationFromResource back into the header. Needed by the
3990 Dashboard, but was removed in r.14028 on 2006-04-23.
3992 2006-06-29 Tim Omernick <timo@apple.com>
3994 Reviewed by Kevin Decker.
3996 <rdar://problem/4608487> REGRESSION: reproducible crash in +[WebCoreFrameBridge supportedImageMIMETypes]
3998 * Plugins/WebPluginDatabase.m:
3999 (+[WebPluginDatabase setAdditionalWebPlugInPaths:]):
4000 One might be tempted to add additionalWebPlugInPaths to the global WebPluginDatabase here.
4001 For backward compatibility with earlier versions of the +setAdditionalWebPlugInPaths: SPI,
4002 we need to save a copy of the additional paths and not cause a refresh of the plugin DB
4004 (-[WebPluginDatabase _plugInPaths]):
4005 Include additionalWebPlugInPaths if this is the global DB.
4006 (-[WebPluginDatabase refresh]):
4007 Call -_plugInPaths to get the modified array of paths. This is similar to what the old code
4008 (before we had per-WebView plugin search paths).
4010 2006-06-29 Tim Omernick <timo@apple.com>
4012 Reviewed by John Sullivan.
4014 WebHistoryItem now supports getting and setting arbitrary properties via _transientPropertyForKey: and
4015 -_setTransientProperty:forKey:.
4016 For now, these properties do not persist with the rest of the history data. They are intended to hold transient
4017 per-history-item state, which is something that was until now difficult for a WebKit client app to do.
4019 * History/WebHistoryItemPrivate.h:
4020 * History/WebHistoryItem.m:
4021 (-[WebHistoryItemPrivate dealloc]):
4022 (-[WebHistoryItem _transientPropertyForKey:]):
4023 (-[WebHistoryItem _setTransientProperty:forKey:]):
4025 2006-06-29 Timothy Hatcher <timothy@apple.com>
4027 Reviewed by Harrison.
4029 Smart insert and delete, continuous spell checking and autoscroll
4030 can now be used for any WebView, not just editable ones. All of
4031 these make sense for documents that might contain content editable
4032 areas or our new text fields. Autoscroll is usefull for dragging
4033 for file input controls also.
4035 Added a SPI to toggle WebViews tab key behavior, tabKeyCyclesThroughElements.
4036 WebHTMLView's _interceptEditingKeyEvent now uses WebView's
4037 tabKeyCyclesThroughElements state to determine whether or not
4038 to process tab key events. The idea here is that tabKeyCyclesThroughElements
4039 will be YES when this WebView is being used in a browser, and we
4040 desire the behavior where tab moves to the next element in tab order.
4041 If tabKeyCyclesThroughElements is NO, it is likely that the WebView
4042 is being embedded as the whole view, as in Mail, and tabs should input
4043 tabs as expected in a text editor. Using Option-Tab always cycles
4046 * WebView/WebHTMLRepresentation.m:
4047 (-[WebHTMLRepresentation finishedLoadingWithDataSource:]):
4048 * WebView/WebHTMLView.m:
4049 (-[WebHTMLView _interceptEditingKeyEvent:]):
4050 * WebView/WebView.m:
4051 (-[WebViewPrivate init]):
4052 (-[WebView _autoscrollForDraggingInfo:timeDelta:]):
4053 (-[WebView _shouldAutoscrollForDraggingInfo:]):
4054 (-[WebView validateUserInterfaceItem:]):
4055 (-[WebView toggleSmartInsertDelete:]):
4056 (-[WebView toggleContinuousSpellChecking:]):
4057 (-[WebView setTabKeyCyclesThroughElements:]):
4058 (-[WebView tabKeyCyclesThroughElements]):
4059 * WebView/WebViewPrivate.h:
4061 2006-06-29 Anders Carlsson <acarlsson@apple.com>
4065 * WebKit.xcodeproj/project.pbxproj:
4066 Add DOMXPath.h header.
4068 2006-06-28 David Hyatt <hyatt@apple.com>
4070 Fix custom highlighting so that you can paint the entire line (and go
4071 outside the bounds of the line).
4073 Reviewed by harrison
4075 * WebCoreSupport/WebFrameBridge.m:
4076 (-[WebFrameBridge customHighlightRect:forLine:]):
4077 (-[WebFrameBridge paintCustomHighlight:forBox:onLine:behindText:entireLine:]):
4078 * WebKit.xcodeproj/project.pbxproj:
4079 * WebView/WebHTMLViewPrivate.h:
4081 2006-06-28 Maciej Stachowiak <mjs@apple.com>
4085 - fix Frame leak on layout tests
4087 * WebCoreSupport/WebPageBridge.m:
4088 (-[WebPageBridge outerView]): Return WebFrameView for main frame instead
4089 of WebView to avoid reference cycle between WebView and Page.
4091 2006-06-28 Timothy Hatcher <timothy@apple.com>
4093 Prefer the Stabs debugging symbols format until DWARF bugs are fixed.
4095 * WebKit.xcodeproj/project.pbxproj:
4097 2006-06-28 Levi Weintraub <lweintraub@apple.com>
4101 http://bugs.webkit.org/show_bug.cgi?id=7568
4102 Bug 7568: Implement Indent/Outdent
4103 Added undo action strings and enum values
4105 * English.lproj/Localizable.strings:
4106 * WebCoreSupport/WebFrameBridge.m:
4107 (-[WebFrameBridge nameForUndoAction:]):
4109 2006-06-27 Brady Eidson <beidson@apple.com>
4113 Hookup the new semi-functional SQLite icon database.
4114 For now, it is living side-by-side with the old DB so one can compare the
4115 two for debugging purposes. Also, it is disabled (in WebKit) by default unless you
4116 compile with ICONDEBUG #defined.
4117 Note: To repeat that, if you want to try the new DB, #define ICONDEBUG (WebKitPrefix.h is a good place to do it)
4119 * Misc/WebIconDatabase.m:
4120 (-[NSMutableDictionary iconForURL:withSize:cache:]):
4121 (-[NSMutableDictionary iconURLForURL:]):
4122 (-[NSMutableDictionary retainIconForURL:]):
4123 (-[NSMutableDictionary releaseIconForURL:]):
4124 (-[WebIconDatabase _setHaveNoIconForIconURL:]):
4125 (-[WebIconDatabase _setIconURL:forURL:]):
4126 (-[WebIconDatabase _hasIconForIconURL:]):
4127 (-[WebIconDatabase _resetCachedWebPreferences:]):
4128 * Misc/WebIconLoader.m:
4129 (-[WebIconLoader didFinishLoading]):
4130 * WebKit.xcodeproj/project.pbxproj:
4132 2006-06-26 David Hyatt <hyatt@apple.com>
4134 Fix for 9538, support syntax highlighting for HTML source.
4138 * WebKit.xcodeproj/project.pbxproj:
4139 * WebView/WebView.m:
4140 (-[WebView _setInViewSourceMode:]):
4141 (-[WebView _inViewSourceMode]):
4142 * WebView/WebViewPrivate.h:
4144 2006-06-25 Timothy Hatcher <timothy@apple.com>
4148 Bug 9574: Drosera should show inline scripts within the original HTML
4149 http://bugs.webkit.org/show_bug.cgi?id=9574
4151 * Adds a new version of the didParseSource delegate callback with base line number.
4152 * Adds a new delegate callback for when a script fails to parse.
4153 * These new callbacks use NSURLs for the url parameter.
4154 * Adds a new script listener callback to notify when the main resource loads.
4155 * Adds a WebScriptErrorDomian and other keys for use with NSError.
4157 * DefaultDelegates/WebDefaultScriptDebugDelegate.m:
4158 (-[WebDefaultScriptDebugDelegate webView:didParseSource:baseLineNumber:fromURL:sourceId:forWebFrame:]):
4159 (-[WebDefaultScriptDebugDelegate webView:failedToParseSource:baseLineNumber:fromURL:withError:forWebFrame:]):
4160 * DefaultDelegates/WebScriptDebugServer.h:
4161 * DefaultDelegates/WebScriptDebugServer.m:
4162 (-[WebScriptDebugServer webView:didLoadMainResourceForDataSource:]):
4163 (-[WebScriptDebugServer webView:didParseSource:baseLineNumber:fromURL:sourceId:forWebFrame:]):
4164 (-[WebScriptDebugServer webView:failedToParseSource:baseLineNumber:fromURL:withError:forWebFrame:]):
4165 * DefaultDelegates/WebScriptDebugServerPrivate.h:
4167 * WebView/WebDataSource.m:
4168 (-[WebDataSource _setPrimaryLoadComplete:]):
4169 * WebView/WebScriptDebugDelegate.h:
4170 * WebView/WebScriptDebugDelegate.m:
4171 (-[WebScriptCallFrame parsedSource:fromURL:sourceId:startLine:errorLine:errorMessage:]):
4173 2006-06-24 David Kilzer <ddkilzer@kilzer.net>
4175 Reviewed by Timothy.
4177 * Info.plist: Fixed copyright to include 2003-2006.