1 2006-10-06 Darin Adler <darin@apple.com>
5 - moved firstLayoutDone BOOL from WebFrame to WebFrameLoader
7 * Loader/WebFrameLoader.h:
8 * Loader/WebFrameLoader.m:
9 (-[WebFrameLoader didFirstLayout]):
10 (-[WebFrameLoader provisionalLoadStarted]):
11 (-[WebFrameLoader frameLoadCompleted]):
12 (-[WebFrameLoader firstLayoutDone]):
13 * WebCoreSupport/WebFrameBridge.m: (-[WebFrameBridge didFirstLayout]):
15 (-[WebFrame _firstLayoutDone]):
16 (-[WebFrame _provisionalLoadStarted]):
17 (-[WebFrame _frameLoadCompleted]):
18 (-[WebFrame _restoreScrollPositionAndViewState]):
19 * WebView/WebFrameInternal.h:
21 2006-10-06 Darin Adler <darin@apple.com>
25 - moved more data and the corresponding code from WebFrame to WebFrameLoader
27 * Loader/WebFrameLoader.h:
28 * Loader/WebFrameLoader.m:
29 (-[WebFrameLoader cannotShowMIMETypeForURL:]):
30 (-[WebFrameLoader _checkNavigationPolicyForRequest:andCall:withSelector:]):
31 (-[WebFrameLoader shouldReloadToHandleUnreachableURLFromRequest:]):
32 (-[WebFrameLoader _loadRequest:archive:]):
33 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
34 (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
35 (-[WebFrameLoader reload]):
36 (-[WebFrameLoader invalidatePendingPolicyDecisionCallingDefaultAction:]):
37 (-[WebFrameLoader checkNewWindowPolicyForRequest:action:frameName:formState:andCall:withSelector:]):
38 (-[WebFrameLoader _continueAfterNewWindowPolicy:]):
39 (-[WebFrameLoader checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
40 (-[WebFrameLoader continueAfterNavigationPolicy:]):
41 (-[WebFrameLoader continueAfterWillSubmitForm:]):
42 (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
43 (-[WebFrameLoader loadDataSource:withLoadType:formState:]):
44 (-[WebFrameLoader handleUnimplementablePolicyWithErrorCode:forURL:]):
45 (-[WebFrameLoader delegateIsHandlingProvisionalLoadError]):
46 (-[WebFrameLoader setDelegateIsHandlingProvisionalLoadError:]):
47 * Loader/WebFrameLoaderClient.h:
49 (-[NSView setWebFrame::]):
50 (-[WebFramePrivate dealloc]):
51 (-[WebFrame _checkLoadCompleteForThisFrame]):
52 (-[WebFrame _loadItem:withLoadType:]):
53 (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
54 (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
55 (-[WebFrame _loadRequest:inFrameNamed:]):
56 (-[WebFrame stopLoading]):
57 (-[WebFrame _resetBackForwardList]):
58 (-[WebFrame _quickRedirectComing]):
59 (-[WebFrame _provisionalItemIsTarget]):
60 (-[WebFrame _loadProvisionalItemFromPageCache]):
61 * WebView/WebFrameInternal.h:
62 * WebView/WebFramePrivate.h:
64 * WebKit.xcodeproj/project.pbxproj:
66 2006-10-06 Maciej Stachowiak <mjs@apple.com>
68 Rubber stamped by Darin.
70 - removed includes of unused headers.
72 * WebView/WebDataSource.m:
74 2006-10-06 Maciej Stachowiak <mjs@apple.com>
80 * Loader/WebFrameLoader.m:
81 (-[WebFrameLoader willChangeTitleForDocumentLoadState:]):
82 (-[WebFrameLoader didChangeTitleForDocumentLoadState:]):
84 2006-10-06 Maciej Stachowiak <mjs@apple.com>
88 - move remaining movable WebDataSource fields to WebDocumentLoadState
90 * Loader/WebDocumentLoadState.h:
91 * Loader/WebDocumentLoadState.m:
92 (-[WebDocumentLoadState dealloc]):
93 (-[WebDocumentLoadState isLoadingInAPISense]):
94 (-[WebDocumentLoadState addResponse:]):
95 (-[WebDocumentLoadState stopRecordingResponses]):
96 (-[WebDocumentLoadState title]):
97 (-[WebDocumentLoadState setLastCheckedRequest:]):
98 (-[WebDocumentLoadState lastCheckedRequest]):
99 (-[WebDocumentLoadState triggeringAction]):
100 (-[WebDocumentLoadState setTriggeringAction:]):
101 (-[WebDocumentLoadState responses]):
102 (-[WebDocumentLoadState setOverrideEncoding:]):
103 (-[WebDocumentLoadState overrideEncoding]):
104 (-[WebDocumentLoadState setTitle:]):
105 * Loader/WebFrameLoader.h:
106 * Loader/WebFrameLoader.m:
107 (-[WebFrameLoader _setState:]):
108 (-[WebFrameLoader _loadRequest:archive:]):
109 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
110 (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
111 (-[WebFrameLoader reload]):
112 (-[WebFrameLoader willChangeTitleForDocumentLoadState:]):
113 (-[WebFrameLoader didChangeTitleForDocumentLoadState:]):
114 * WebCoreSupport/WebFrameBridge.m:
115 (-[WebFrameBridge setTitle:]):
116 (-[WebFrameBridge receivedData:textEncodingName:]):
117 * WebView/WebDataSource.m:
118 (-[WebDataSourcePrivate dealloc]):
119 (-[WebDataSource _didReceiveResponse:forResource:]):
120 (-[WebDataSource textEncodingName]):
121 * WebView/WebDataSourceInternal.h:
122 * WebView/WebFrame.m:
123 (-[WebFrame _opened]):
124 (-[WebFrame _checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
125 (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
126 (-[WebFrame _addChild:]):
127 (-[WebFrame _loadDataSource:withLoadType:formState:]):
128 * WebView/WebHTMLRepresentation.m:
129 (-[WebHTMLRepresentation title]):
131 (-[WebView _mainFrameOverrideEncoding]):
133 2006-10-06 Darin Adler <darin@apple.com>
137 - moved loadType into WebFrameLoader
139 * WebView/WebFramePrivate.h: Removed _setLoadType, but not _loadType because it's
140 currently used by Safari.
142 * Loader/WebFrameLoader.h:
143 * Loader/WebFrameLoader.m:
144 (-[WebFrameLoader _loadRequest:archive:]):
145 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
146 (-[WebFrameLoader isReplacing]):
147 (-[WebFrameLoader setReplacing]):
148 (-[WebFrameLoader loadType]):
149 (-[WebFrameLoader setLoadType:]):
150 * WebCoreSupport/WebFrameBridge.m:
151 (-[WebFrameBridge isLoadTypeReload]):
152 * WebView/WebFrame.m:
153 (-[WebFrame _loadType]):
154 (-[WebFrame _transitionToCommitted:]):
155 (-[WebFrame _commitProvisionalLoad:]):
156 (-[WebFrame _opened]):
157 (-[WebFrame _checkLoadCompleteForThisFrame]):
158 (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
159 (-[WebFrame _loadURL:referrer:intoChild:]):
160 (-[WebFrame _currentBackForwardListItemToResetTo]):
161 (-[WebFrame _itemForRestoringDocState]):
162 (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
163 (-[WebFrame _didFirstLayout]):
164 (-[WebFrame _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
165 (-[WebFrame _provisionalLoadStarted]):
166 (-[WebFrame loadRequest:]):
168 2006-10-06 Darin Adler <darin@apple.com>
172 - added WebFrameLoaderClient protocol -- to be used to make WebFrameLoader forget all about WebFrame
174 * Loader/WebDocumentLoadState.h: Added comment about Maciej's planned renaming here.
175 * Loader/WebFrameLoader.h:
176 * Loader/WebFrameLoader.m: Renamed webFrame to client and added the new protocol.
177 Eventually we'll be removing the dependency on WebFrame entirely.
178 * WebView/WebFrame.m: (-[WebFrame _initWithWebFrameView:webView:bridge:]): Update to call the method
181 * Loader/WebFrameLoaderClient.h: Added.
182 * WebKit.xcodeproj/project.pbxproj: Updated for new file, sorted things.
184 2006-10-06 Maciej Stachowiak <mjs@apple.com>
188 - segregate WebFrame methods into ones that should be moved into WebFrameLoader and ones that don't need to
190 Also removed useless WebFrameLoader part
192 * WebView/WebFrame.m:
193 (-[WebFramePrivate dealloc]):
195 2006-10-06 Maciej Stachowiak <mjs@apple.com>
199 - moved more data from WebDataSource to WebDocumentLoadState
201 * Loader/WebDocumentLoadState.h:
202 * Loader/WebDocumentLoadState.m:
203 (-[WebDocumentLoadState commitLoadWithData:]):
204 (-[WebDocumentLoadState prepareForLoadStart]):
205 (-[WebDocumentLoadState loadingStartedTime]):
206 (-[WebDocumentLoadState setIsClientRedirect:]):
207 (-[WebDocumentLoadState isClientRedirect]):
208 (-[WebDocumentLoadState setPrimaryLoadComplete:]):
209 (-[WebDocumentLoadState isLoadingInAPISense]):
210 * Loader/WebFrameLoader.h:
211 * Loader/WebFrameLoader.m:
212 (-[WebFrameLoader _setState:]):
213 (-[WebFrameLoader _finishedLoading]):
214 (-[WebFrameLoader documentLoadState:mainReceivedCompleteError:]):
215 (-[WebFrameLoader prepareForLoadStart]):
216 (-[WebFrameLoader subframeIsLoading]):
217 * WebView/WebDataSource.m:
218 (-[WebDataSource _fileWrapperForURL:]):
219 (-[WebDataSource _startLoading]):
220 (-[WebDataSource _loadFromPageCache:]):
221 (-[WebDataSource isLoading]):
222 * WebView/WebDataSourceInternal.h:
223 * WebView/WebFrame.m:
224 (-[WebFrame _transitionToCommitted:]):
225 (-[WebFrame _opened]):
226 (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
228 2006-10-06 Alexey Proskuryakov <ap@nypop.com>
232 http://bugs.webkit.org/show_bug.cgi?id=11183
233 REGRESSION: Safari loads error pages unstyled
235 * WebView/WebFrame.m:
236 (-[WebFrame _loadHTMLString:baseURL:unreachableURL:]):
237 Use utf-8 encoding instead of the string's "fastest" encoding.
239 2006-10-06 Maciej Stachowiak <mjs@apple.com>
243 - fixed the following bugs:
245 http://bugs.webkit.org/show_bug.cgi?id=11136
246 "REGRESSION: Safari snippet editor doesn't work"
247 http://bugs.webkit.org/show_bug.cgi?id=11140
248 "REGRESSION: view source window blank"
249 http://bugs.webkit.org/show_bug.cgi?id=11146
250 "REGRESSION: Instead of showing the error page, Safari opens its Resources folder in the Finder"
254 * Loader/WebDocumentLoadState.h:
255 * Loader/WebDocumentLoadState.m:
256 (-[WebDocumentLoadState actualRequest]): New method.
257 * WebView/WebDataSource.m:
258 (-[WebDataSource _startLoading]): We need to make sure not to start loading the main
259 resource with the fake external request for an applewebdata: request.
261 2006-10-05 Adele Peterson <adele@apple.com>
263 Reviewed by the letter 'B'.
267 * WebKit.xcodeproj/project.pbxproj:
268 * WebView/WebDynamicScrollBarsView.h:
269 * WebView/WebDynamicScrollBarsView.m:
270 (-[WebDynamicScrollBarsView updateScrollers]):
271 (-[WebDynamicScrollBarsView setAllowsScrolling:]):
272 (-[WebDynamicScrollBarsView allowsScrolling]):
273 (-[WebDynamicScrollBarsView setAllowsHorizontalScrolling:]):
274 (-[WebDynamicScrollBarsView setAllowsVerticalScrolling:]):
275 (-[WebDynamicScrollBarsView allowsHorizontalScrolling]):
276 (-[WebDynamicScrollBarsView allowsVerticalScrolling]):
277 (-[WebDynamicScrollBarsView horizontalScrollingMode]):
278 (-[WebDynamicScrollBarsView verticalScrollingMode]):
279 (-[WebDynamicScrollBarsView setHorizontalScrollingMode:]):
280 (-[WebDynamicScrollBarsView setVerticalScrollingMode:]):
281 (-[WebDynamicScrollBarsView setScrollingMode:]):
283 (-[WebView setAlwaysShowVerticalScroller:]):
284 (-[WebView alwaysShowVerticalScroller]):
285 (-[WebView setAlwaysShowHorizontalScroller:]):
286 (-[WebView alwaysShowHorizontalScroller]):
288 2006-10-05 Vladimir Olexa <vladimir.olexa@gmail.com>
292 Bug: http://bugs.webkit.org/show_bug.cgi?id=9887
293 Continuous spell checking now remembers user's setting. The change is applied globally,
294 meaning, both TextArea and TextField are affected when either of them enables/disables
297 * WebView/WebPreferenceKeysPrivate.h: added a define for WebContinuousSpellCheckingEnabled
299 (-[WebViewPrivate init]): reads WebContinuousSpellCheckingEnabled from NSUserDefaults
300 (-[WebView setContinuousSpellCheckingEnabled:]):
301 (-[WebView isContinuousSpellCheckingEnabled]):
303 2006-10-05 MorganL <morganl.webkit@yahoo.com>
307 Fixes http://bugs.webkit.org/show_bug.cgi?id=11162
310 (WebFrame::loadDataSource):
311 (WebFrame::receivedResponse):
313 2006-10-05 Don Gibson <dgibson77@gmail.com>
315 Reviewed by Darin, landed by Adam.
317 http://bugs.webkit.org/show_bug.cgi?id=11176
318 Fix win32 build, adapt to Maciej's ResourceLoader changes.
321 (WebFrame::loadDataSource):
323 2006-10-05 Marvin Decker <marv.decker@gmail.com>
327 http://bugs.webkit.org/show_bug.cgi?id=10989
328 Provide a way for embedders to implement BrowserExtensionWin
330 * COM/Interfaces/IWebUIDelegate.idl:
332 (WebFrame::createNewWindow):
335 2006-10-04 Mark Rowe <bdash@webkit.org>
337 Reviewed by NOBODY (build fix).
340 (-[WebView scrollDOMRangeToVisible:]): Move scrollDOMRangeToVisible: into the correct category.
342 2006-09-26 David Smith <catfish.man@gmail.com>
346 http://bugs.webkit.org/show_bug.cgi?id=3723
347 Add -scrollDOMRangeToVisible:
350 (-[WebView scrollDOMRangeToVisible:]):
351 * WebView/WebViewPrivate.h:
353 2006-10-03 Graham Dennis <graham.dennis@gmail.com>
357 <http://bugs.webkit.org/show_bug.cgi?id=10338>
358 When contentEditable, cursor doesn't change to hand
360 Allow the behaviour of editable links to be specified by a WebPreference
361 The preference WebKitEditableLinkBehavior has four options:
362 - AlwaysLive: Safari 2.0 behaviour
363 - OnlyLiveWithShiftKey: Firefox/WinIE behaviour (and prior WebKit-ToT behaviour)
364 - LiveWhenNotFocused: Editable links are live only when their editable block is not
365 focused, or when the shift key is pressed
366 - DefaultBehavior: This is the same as OnlyLiveWithShiftKey.
368 No layout tests, just a modification of a manual-test as it isn't possible to test
371 * WebView/WebPreferenceKeysPrivate.h:
372 * WebView/WebPreferences.m:
373 (+[WebPreferences initialize]):
374 (-[WebPreferences editableLinkBehavior]):
375 (-[WebPreferences setEditableLinkBehavior:]):
376 * WebView/WebPreferencesPrivate.h:
378 (-[WebView _updateWebCoreSettingsFromPreferences:]):
380 2006-10-03 Justin Garcia <justin.garcia@apple.com>
384 execCommand("Cut"/"Copy"/"Paste") broken in editable subframes.
386 * WebCoreSupport/WebFrameBridge.m:
387 (-[WebFrameBridge issueCutCommand]): Issue the command on the WebHTMLView, not the WebView.
388 (-[WebFrameBridge issueCopyCommand]): Ditto.
389 (-[WebFrameBridge issuePasteCommand]): Ditto.
390 (-[WebFrameBridge issuePasteAndMatchStyleCommand]): Ditto.
391 (-[WebFrameBridge issueTransposeCommand]): Fixed formatting.
392 (-[WebFrameBridge canPaste]): Ask the WebHTMLView, not the WebView.
393 * WebView/WebHTMLView.m:
394 (-[WebHTMLView copy:]): Moved to WebInternal
395 (-[WebHTMLView cut:]): Ditto.
396 (-[WebHTMLView paste:]): Ditto.
397 (-[WebHTMLView pasteAsPlainText:]): Ditto.
398 * WebView/WebHTMLViewInternal.h:
399 * WebView/WebView.m: Removed the now unused _canPaste.
400 * WebView/WebViewInternal.h: Ditto.
402 2006-10-03 Justin Garcia <justin.garcia@apple.com>
406 <rdar://problem/4763519> REGRESSION: Multipart/x-mixed-replace sub-resources fail to load
408 * Loader/WebSubresourceLoader.m:
409 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
410 Enable multipart/x-mixed-replace support on the request. This line was accidently removed during
411 some loader refactoring.
413 2006-10-02 Adam Roben <aroben@apple.com>
417 Add message paramter to WebView::mouse* methods to pass down to
421 (WebView::mouseMoved):
422 (WebView::mouseDown):
424 (WebView::mouseDoubleClick):
428 2006-10-02 Maciej Stachowiak <mjs@apple.com>
432 - take away direct knowledge of WebFrame from WebDataSource
434 * Loader/WebDocumentLoadState.h:
435 * Loader/WebDocumentLoadState.m:
436 (-[WebDocumentLoadState setFrameLoader:]):
437 (-[WebDocumentLoadState detachFromFrameLoader]):
438 * Loader/WebFrameLoader.m:
439 (-[WebFrameLoader _setDocumentLoadState:]):
440 (-[WebFrameLoader _setProvisionalDocumentLoadState:]):
441 * WebView/WebDataSource.m:
442 * WebView/WebDataSourceInternal.h:
443 * WebView/WebDocumentLoadStateMac.m:
444 (-[WebDocumentLoadStateMac detachFromFrameLoader]):
445 * WebView/WebFrame.m:
446 (-[WebFrame _loadDataSource:withLoadType:formState:]):
448 2006-10-02 Maciej Stachowiak <mjs@apple.com>
452 - move a big slice of data and logic from WebDataSource to WebDocumentLoadState
454 * Loader/WebDocumentLoadState.h:
455 * Loader/WebDocumentLoadState.m:
456 (-[WebDocumentLoadState initWithRequest:]):
457 (-[WebDocumentLoadState dealloc]):
458 (-[WebDocumentLoadState originalRequestCopy]):
459 (-[WebDocumentLoadState request]):
460 (-[WebDocumentLoadState replaceRequestURLForAnchorScrollWithURL:]):
461 (-[WebDocumentLoadState setRequest:]):
462 (-[WebDocumentLoadState setResponse:]):
463 (-[WebDocumentLoadState isStopping]):
464 (-[WebDocumentLoadState bridge]):
465 (-[WebDocumentLoadState setMainDocumentError:]):
466 (-[WebDocumentLoadState mainDocumentError]):
467 (-[WebDocumentLoadState clearErrors]):
468 (-[WebDocumentLoadState mainReceivedError:complete:]):
469 (-[WebDocumentLoadState stopLoading]):
470 (-[WebDocumentLoadState setupForReplace]):
471 (-[WebDocumentLoadState commitIfReady]):
472 (-[WebDocumentLoadState finishedLoading]):
473 (-[WebDocumentLoadState setCommitted:]):
474 (-[WebDocumentLoadState isCommitted]):
475 (-[WebDocumentLoadState setLoading:]):
476 (-[WebDocumentLoadState isLoading]):
477 (-[WebDocumentLoadState commitLoadWithData:]):
478 (-[WebDocumentLoadState doesProgressiveLoadWithMIMEType:]):
479 (-[WebDocumentLoadState receivedData:]):
480 (-[WebDocumentLoadState setupForReplaceByMIMEType:]):
481 (-[WebDocumentLoadState updateLoading]):
482 (-[WebDocumentLoadState response]):
483 * Loader/WebFrameLoader.h:
484 * Loader/WebFrameLoader.m:
485 (-[WebFrameLoader activeDocumentLoadState]):
486 (-[WebFrameLoader activeDataSource]):
487 (-[WebFrameLoader _archivedSubresourceForURL:]):
488 (-[WebFrameLoader addPlugInStreamLoader:]):
489 (-[WebFrameLoader removePlugInStreamLoader:]):
490 (-[WebFrameLoader addSubresourceLoader:]):
491 (-[WebFrameLoader removeSubresourceLoader:]):
492 (-[WebFrameLoader documentLoadState]):
493 (-[WebFrameLoader provisionalDocumentLoadState]):
494 (-[WebFrameLoader stopLoading]):
495 (-[WebFrameLoader _originalRequest]):
496 (-[WebFrameLoader _receivedData:]):
497 (-[WebFrameLoader _setRequest:]):
498 (-[WebFrameLoader bridge]):
499 (-[WebFrameLoader _handleFallbackContent]):
500 (-[WebFrameLoader _isStopping]):
501 (-[WebFrameLoader _setupForReplaceByMIMEType:]):
502 (-[WebFrameLoader _setResponse:]):
503 (-[WebFrameLoader _mainReceivedError:complete:]):
504 (-[WebFrameLoader _finishedLoading]):
505 (-[WebFrameLoader didReceiveServerRedirectForProvisionalLoadForFrame]):
506 (-[WebFrameLoader finishedLoadingDocumentLoadState:]):
507 (-[WebFrameLoader commitProvisitionalLoad]):
508 (-[WebFrameLoader committedLoadWithDocumentLoadState:data:]):
509 (-[WebFrameLoader isReplacing]):
510 (-[WebFrameLoader setReplacing]):
511 (-[WebFrameLoader revertToProvisionalWithDocumentLoadState:]):
512 (-[WebFrameLoader documentLoadState:setMainDocumentError:]):
513 (-[WebFrameLoader documentLoadState:mainReceivedCompleteError:]):
514 (-[WebFrameLoader finalSetupForReplaceWithDocumentLoadState:]):
515 * WebView/WebDataSource.m:
516 (-[WebDataSourcePrivate dealloc]):
517 (-[WebDataSource _prepareForLoadStart]):
518 (-[WebDataSource _mainDocumentError]):
519 (-[WebDataSource _finishedLoading]):
520 (-[WebDataSource _receivedData:]):
521 (-[WebDataSource _setMainDocumentError:]):
522 (-[WebDataSource _clearUnarchivingState]):
523 (-[WebDataSource _revertToProvisionalState]):
524 (-[WebDataSource _receivedMainResourceError:complete:]):
525 (-[WebDataSource _startLoading]):
526 (-[WebDataSource _loadFromPageCache:]):
527 (-[WebDataSource _bridge]):
528 (-[WebDataSource _setPrimaryLoadComplete:]):
529 (-[WebDataSource _URLForHistory]):
530 (-[WebDataSource _setTitle:]):
531 (-[WebDataSource _initWithDocumentLoadState:]):
532 (-[WebDataSource request]):
533 (-[WebDataSource response]):
534 (-[WebDataSource isLoading]):
535 (-[WebDataSource webArchive]):
536 * WebView/WebDataSourceInternal.h:
537 * WebView/WebDocumentLoadStateMac.m:
538 (-[WebDocumentLoadStateMac initWithRequest:]):
539 * WebView/WebFrame.m:
540 (-[WebFrame _createItem:]):
541 (-[WebFrame _receivedMainResourceError:]):
542 (-[WebFrame _transitionToCommitted:]):
543 (-[WebFrame _commitProvisionalLoad:]):
544 (-[WebFrame _checkLoadCompleteForThisFrame]):
545 (-[WebFrame _loadItem:withLoadType:]):
546 (-[WebFrame _continueFragmentScrollAfterNavigationPolicy:formState:]):
547 (-[WebFrame _didReceiveServerRedirectForProvisionalLoadForFrame]):
548 (-[WebFrame _provisionalLoadStarted]):
549 * WebView/WebFrameInternal.h:
551 2006-10-02 Justin Garcia <justin.garcia@apple.com>
555 <rdar://problem/4757583>
556 REGRESSION: tabbing into page focuses wrong control on 2nd pass
557 <rdar://problem/4757594>
558 REGRESSION: Form field is left with secondary selection after tabbing out of WebView
560 * WebView/WebHTMLView.m:
561 (-[NSArray maintainsInactiveSelection]): Replace code that I removed in error in the patch
562 for 9642. Only leave inactive editable selections in the WebHTMLView if the nextResponder
563 is in the same WebView.
565 2006-10-02 Maciej Stachowiak <mjs@apple.com>
569 - remove webFrame field from WebDataSourcePrivate, it can get it from WebDocumentLoadState now
571 * Loader/WebDocumentLoadState.h:
572 * Loader/WebDocumentLoadState.m:
573 (-[WebDocumentLoadState frameLoader]):
574 * WebView/WebDataSource.m:
575 (-[WebDataSourcePrivate dealloc]):
576 (-[WebDataSource _revertToProvisionalState]):
577 (-[WebDataSource _setupForReplaceByMIMEType:]):
578 (-[WebDataSource _updateLoading]):
579 (-[WebDataSource _startLoading]):
580 (-[WebDataSource _setWebFrame:]):
581 (-[WebDataSource _defersCallbacksChanged]):
582 (-[WebDataSource _stopLoading]):
583 (-[WebDataSource _webView]):
584 (-[WebDataSource _stopLoadingWithError:]):
585 (-[WebDataSource _setPrimaryLoadComplete:]):
586 (-[WebDataSource dealloc]):
587 (-[WebDataSource webFrame]):
588 (-[WebDataSource isLoading]):
590 2006-10-02 Maciej Stachowiak <mjs@apple.com>
594 - fix crash on back/forward - reattach WebDocumentLoadState to data source when needed
596 * WebView/WebDataSource.m:
597 (-[WebDataSource _setWebFrame:]):
598 (-[WebDataSource _initWithDocumentLoadState:]):
599 * WebView/WebDataSourceInternal.h:
601 2006-10-02 Maciej Stachowiak <mjs@apple.com>
603 Build fix, not reviewed.
605 - Added missing files to fix build.
607 * WebView/WebDocumentLoadStateMac.h: Added.
608 * WebView/WebDocumentLoadStateMac.m: Added.
609 (-[WebDocumentLoadStateMac initWithRequest:]):
610 (-[WebDocumentLoadStateMac dealloc]):
611 (-[WebDocumentLoadStateMac setDataSource:]):
612 (-[WebDocumentLoadStateMac dataSource]):
613 (-[WebDocumentLoadStateMac setFrameLoader:]):
615 2006-10-01 Maciej Stachowiak <mjs@apple.com>
617 Reviewed by Brady and Oliver.
619 - move things around so that WebDataSource and WebDocumentLoadState know about each other in
620 the right way. This lines things up to move nearly all functionality down to WebDocumentLoadState.
622 * Loader/WebDocumentLoadState.h:
623 * Loader/WebDocumentLoadState.m:
624 (-[WebDocumentLoadState initWithRequest:]):
625 (-[WebDocumentLoadState dealloc]):
626 (-[WebDocumentLoadState originalRequest]):
627 * Loader/WebFrameLoader.h:
628 * Loader/WebFrameLoader.m:
629 (-[WebFrameLoader dealloc]):
630 (-[WebFrameLoader addSubresourceLoader:]):
631 (-[WebFrameLoader startLoadingMainResourceWithRequest:identifier:]):
632 (-[WebFrameLoader dataSource]):
633 (-[WebFrameLoader _setDocumentLoadState:]):
634 (-[WebFrameLoader policyDataSource]):
635 (-[WebFrameLoader _setPolicyDocumentLoadState:]):
636 (-[WebFrameLoader clearDataSource]):
637 (-[WebFrameLoader provisionalDataSource]):
638 (-[WebFrameLoader _setProvisionalDocumentLoadState:]):
639 (-[WebFrameLoader _clearProvisionalDataSource]):
640 (-[WebFrameLoader _setState:]):
641 (-[WebFrameLoader clearProvisionalLoad]):
642 (-[WebFrameLoader commitProvisionalLoad]):
643 (-[WebFrameLoader stopLoading]):
644 (-[WebFrameLoader startLoading]):
645 (-[WebFrameLoader startProvisionalLoad:]):
646 (-[WebFrameLoader setupForReplace]):
647 (-[WebFrameLoader activeDocumentLoadState]):
648 (-[WebFrameLoader activeDataSource]):
649 (-[WebFrameLoader _loadRequest:archive:]):
650 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
651 (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
652 (-[WebFrameLoader reload]):
653 * WebKit.xcodeproj/project.pbxproj:
654 * WebView/WebDataSource.m:
655 (-[WebDataSourcePrivate dealloc]):
656 (-[WebDataSource _startLoading]):
657 (-[WebDataSource _setWebFrame:]):
658 (-[WebDataSource _documentLoadState]):
659 (-[WebDataSource _initWithDocumentLoadState:]):
660 (-[WebDataSource initWithRequest:]):
661 (-[WebDataSource initialRequest]):
662 (-[WebDataSource unreachableURL]):
663 * WebView/WebDataSourceInternal.h:
664 * WebView/WebFrame.m:
665 (-[WebFramePrivate dealloc]):
666 (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
667 (-[WebFrame _loadDataSource:withLoadType:formState:]):
668 (-[WebFrame _policyDataSource]):
669 (-[WebFrame _shouldReloadToHandleUnreachableURLFromRequest:]):
670 (-[WebFrame _dataSourceForDocumentLoadState:]):
671 (-[WebFrame _createDocumentLoadStateWithRequest:]):
672 * WebView/WebFrameInternal.h:
674 2006-09-29 David Hyatt <hyatt@apple.com>
676 Change the default minimum font size pref to 0 in order to allow
679 * WebView/WebPreferences.m:
680 (+[WebPreferences initialize]):
682 2006-09-28 Timothy Hatcher <timothy@apple.com>
686 Switch the inspector over to use border-image with styled buttons and selects.
688 * WebInspector/WebInspector.m:
689 (-[NSWindow window]):
690 (-[NSWindow setWebFrame:]):
691 (-[WebInspector _updateRoot]):
692 * WebInspector/webInspector/Images/button.png: Added.
693 * WebInspector/webInspector/Images/buttonDivider.png: Added.
694 * WebInspector/webInspector/Images/buttonPressed.png: Added.
695 * WebInspector/webInspector/Images/popup.png: Added.
696 * WebInspector/webInspector/Images/popupFill.png: Removed.
697 * WebInspector/webInspector/Images/popupFillPressed.png: Removed.
698 * WebInspector/webInspector/Images/popupLeft.png: Removed.
699 * WebInspector/webInspector/Images/popupLeftPressed.png: Removed.
700 * WebInspector/webInspector/Images/popupPressed.png: Added.
701 * WebInspector/webInspector/Images/popupRight.png: Removed.
702 * WebInspector/webInspector/Images/popupRightPressed.png: Removed.
703 * WebInspector/webInspector/Images/squareButtonRight.png: Removed.
704 * WebInspector/webInspector/Images/squareButtonRightPressed.png: Removed.
705 * WebInspector/webInspector/inspector.css:
706 * WebInspector/webInspector/inspector.html:
707 * WebInspector/webInspector/inspector.js:
709 2006-09-28 Alice Liu <alice.liu@apple.com>
711 fixing the windows build
714 (WebView::mouseMoved):
715 (WebView::mouseDown):
717 (WebView::mouseDoubleClick):
719 2006-09-27 Justin Garcia <justin.garcia@apple.com>
723 <rdar://problem/4044271>
724 Writing Direction menu doesn't reflect the current writing direction (9773)
726 * English.lproj/Localizable.strings: Added "Right to Left" and "Left to Right"
727 * WebView/WebHTMLView.m:
728 (-[NSArray validateUserInterfaceItem:]): Validate menu items that perform
729 toggleBaseWritingDirection and changeBaseWritingDirection.
730 Disable the menu item that changes the writing direction to NSWritingDirectionNautral
731 because NSWritingDirectionNatural's behavior can't be implemented with CSS.
732 Take control of the title of the menu item that performs toggleBaseWritingDirection:
733 instead of checking/unchecking it, otherwise we wouldn't know what a check means.
734 (-[NSArray changeBaseWritingDirection:]): ASSERT that the requested writing
735 direction is not NSWritingDirectionNatural, since we've disabled the
736 menu item that performs it.
738 2006-09-27 MorganL <morganl.webkit@yahoo.com>
740 Reviewed by Maciej, landed by Brady
742 Update URL request associated with provisional data source on redirect.
743 Notify IWebFrameLoadDelegate of redirects for the provisional load.
744 Notify IWebFrameLoadDelegate of a provisional load being commited.
746 * COM/WebDataSource.cpp:
747 (WebDataSource::replaceRequest):
748 * COM/WebDataSource.h:
750 (WebFrame::receivedRedirect):
751 (WebFrame::receivedResponse):
752 (WebFrame::receivedData):
754 2006-09-26 John Sullivan <sullivan@apple.com>
758 * WebView/WebHTMLViewPrivate.h:
759 * WebView/WebHTMLView.m:
760 (-[WebHTMLView markAllMatchesForText:caseSensitive:limit:]):
761 Added limit parameter, passed over the bridge. Stop the search if it hits limit.
763 * WebView/WebViewPrivate.h:
765 (-[WebView markAllMatchesForText:caseSensitive:highlight:limit:]):
766 Added limit parameter, passed to WebHTMLView.
768 2006-09-26 David Harrison <harrison@apple.com>
770 Reviewed by John and TimH.
772 <rdar://problem/4743256> Seed: Ctrl-Y key binding does nothing when kill ring is empty
774 Use deleteBackward: when the killring string is empty. Was always using insertText:,
775 but that ends up early-returning if the string to insert is empty.
777 * WebView/WebHTMLView.m:
779 (-[NSArray yankAndSelect:]):
781 2006-09-25 Timothy Hatcher <timothy@apple.com>
785 Use the non-deprecated method names for getComputedStyle, setEnd and setStart.
787 * WebInspector/WebInspector.m:
788 (-[WebInspector _highlightNode:]):
789 * WebView/WebHTMLView.m:
791 (-[WebHTMLView _selectRangeInMarkedText:]):
792 (-[WebTextCompleteController doCompletion]):
794 (-[WebView computedStyleForElement:pseudoElement:]):
796 2006-09-22 Timothy Hatcher <timothy@apple.com>
800 Pass all headers through unifdef to filter out BUILDING_ON_TIGER blocks
801 if MACOSX_DEPLOYMENT_TARGET is 10.4.
803 * MigrateHeaders.make:
805 2006-09-20 Justin Garcia <justin.garcia@apple.com>
809 <http://bugs.webkit.org/show_bug.cgi?id=7165>
810 TinyMCE: Dragging & dropping content always leaves a copy when editing inside a subframe
812 The top level WebHTMLView is responsible for performing dragging operations, but
813 the inner view, the view that holds the drag caret, should be consulted to determine
814 if the drag is a move drag.
816 * WebCoreSupport/WebFrameBridge.m:
817 (-[WebFrameBridge startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
818 * WebKit.xcodeproj/project.pbxproj:
819 * WebView/WebHTMLView.m:
820 (-[NSArray dragImage:at:offset:event:pasteboard:source:slideBack:]): Don't set initatedDrag here, because
821 it's only the top level WebHTMLView that performs this operation.
822 (-[WebHTMLView _setInitiatedDrag:]): Added.
823 (-[WebHTMLView _initiatedDrag]): Ditto.
824 (-[WebHTMLView _canProcessDragWithDraggingInfo:]): Ask the innerView if it initiated the drag,
825 not the top level view.
826 (-[WebHTMLView _isMoveDrag]): The top level view asks the innerView if it should perform
827 a move drag, so don't ASSERT _isTopHTMLView.
828 (-[WebHTMLView draggingUpdatedWithDraggingInfo:actionMask:]): Ask the innerView if _isMoveDrag.
829 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): Ditto.
830 * WebView/WebHTMLViewInternal.h: Added two private SPI so that
831 the top level WebHTMLView can set and get the initiatedDrag BOOL.
833 === Safari-521.27 ===
835 2006-09-20 Brady Eidson <beidson@apple.com>
837 Reviewed by Tim Omernick
839 Fixing part of a crash Tim O showed me. [WebIconDatabase init] should finish
840 gracefully even if we can't open the database
842 * Misc/WebIconDatabase.m:
843 (-[WebIconDatabase init]):
845 2006-09-20 Timothy Hatcher <timothy@apple.com>
849 <rdar://problem/4741392> Develop a system to find what version of WebKit an app was linked with
851 * Misc/WebKitVersionChecks.h: Added.
852 * Misc/WebKitVersionChecks.m: Added.
853 (WebKitLinkedOnOrAfter): Added.
854 (WebKitLinkTimeVersion): Added.
855 (WebKitRunTimeVersion): Added.
856 * WebKit.xcodeproj/project.pbxproj:
858 2006-09-20 Tim Omernick <timo@apple.com>
862 * Misc/WebIconDatabase.m:
863 (-[WebIconDatabase init]):
866 2006-09-20 Brady Eidson <beidson@apple.com>
870 Preparing to make the WebIconDatabase disabled by default - this patch tells the bridge whether its enabled or not
872 * Misc/WebIconDatabase.m:
873 (-[WebIconDatabase init]):
875 2006-09-19 Brady Eidson <beidson@apple.com>
877 Reviewed by Sarge Decker
879 <rdar://problem/4739892> and <rdar://problem/4729797>
880 - WebCore::IconDatabase needs to have and respect an enabled() flag
881 - Mail on ToT WebKit crashes in IconDatabase code when mailing a page from Safari
883 * Misc/WebIconDatabase.m:
884 (-[WebIconDatabase init]): If preference says icons are disabled, tell the bridge
885 (-[WebIconDatabase _isEnabled]): Ask the bridge if the database is enabled
887 2006-09-19 Alexey Proskuryakov <ap@nypop.com>
891 http://bugs.webkit.org/show_bug.cgi?id=10661
892 REGRESSION: CFM plug-ins (Shockwave, SVG) are not loaded
894 * Plugins/WebBasePluginPackage.m:
895 (-[WebBasePluginPackage initWithPath:]): On 32-bit PowerPC, don't bail out if
896 the bundle is nil - it can be a CFM plugin.
898 2006-09-18 Brady Eidson <beidson@apple.com>
902 Implement a bridge method so WebCore can find the reload type of a frame load
904 * WebCoreSupport/WebFrameBridge.m:
905 (-[WebFrameBridge isLoadTypeReload]):
907 2006-09-18 Sam Weinig <sam.weinig@gmail.com>
911 Patch for http://bugs.webkit.org/show_bug.cgi?id=10903
912 Yet Another Objective-C Bindings Patch
914 * MigrateHeaders.make:
916 2006-09-17 David Harrison <harrison@apple.com>
918 Reviewed by John Sullivan.
920 <rdar://problem/4494340> REGRESSION: Making the font size bigger/smaller in an HTML message doesn't affect the body until you reopen it
922 Problem was the public API -[WebView setTextSizeMultiplier] did not notify anyone that the value changed.
924 * WebView/WebDocumentInternal.h:
925 Add _textSizeMultiplierChanged to the _WebDocumentTextSizing protocol.
927 * WebView/WebHTMLView.m:
928 (-[WebHTMLView _textSizeMultiplierChanged]):
929 Send [self _updateTextSizeMultiplier].
931 * WebView/WebPDFView.m:
932 (-[WebPDFView _textSizeMultiplierChanged]):
933 ASSERT_NOT_REACHED() because WebPDFView does not track the common multiplier.
936 (-[WebView setTextSizeMultiplier:]):
937 Send [self _notifyTextSizeMultiplierChanged];
939 (-[WebView _performTextSizingSelector:withObject:onTrackingDocs:selForNonTrackingDocs:newScaleFactor:]):
940 Alter the _textSizeMultiplier directly so that notification is not sent.
943 (-[WebView _notifyTextSizeMultiplierChanged]):
944 New. Send _textSizeMultiplierChanged to all document views that track the common multiplier.
946 2006-09-16 Brady Eidson <beidson@apple.com>
950 WebIconLoader is dead, long live WebCore::IconLoader
953 * Loader/WebFrameLoader.h:
954 * Loader/WebFrameLoader.m:
955 (-[WebFrameLoader dealloc]):
956 (-[WebFrameLoader commitProvisionalLoad]):
957 * Loader/WebIconLoader.h: Removed.
958 * Loader/WebIconLoader.m: Removed.
959 * Misc/WebIconDatabase.h:
960 * Misc/WebIconDatabase.m:
961 * Misc/WebIconDatabasePrivate.h:
962 * WebCoreSupport/WebFrameBridge.m:
963 (-[WebFrameBridge notifyIconChanged:]):
964 * WebCoreSupport/WebIconDatabaseBridge.h:
965 * WebCoreSupport/WebIconDatabaseBridge.m:
966 (-[WebIconDatabaseBridge _init]):
967 (-[WebIconDatabaseBridge _setIconData:forIconURL:]):
968 (-[WebIconDatabaseBridge _setHaveNoIconForIconURL:]):
970 * WebKit.xcodeproj/project.pbxproj:
971 * WebView/WebDataSource.m:
972 (-[WebDataSourcePrivate dealloc]):
973 (-[WebDataSource _stopLoading]):
974 (-[WebDataSource _setPrimaryLoadComplete:]):
975 * WebView/WebDataSourceInternal.h:
977 2006-09-16 Mark Rowe <opendarwin.org@bdash.net.nz>
981 http://bugs.webkit.org/show_bug.cgi?id=10887
984 * MigrateHeaders.make: Remove reference to DOMEventPrivate.h.
986 2006-09-15 Timothy Hatcher <timothy@apple.com>
990 Make new style ObjC methods public API.
992 * MigrateHeaders.make:
994 2006-09-15 Sam Weinig <sam.weinig@gmail.com>
998 Patch for http://bugs.webkit.org/show_bug.cgi?id=10870
999 Auto-generate DOMNode for the Objective-C bindings
1001 * MigrateHeaders.make:
1003 2006-09-15 Timothy Hatcher <timothy@apple.com>
1007 Call the bridge directly for alter selection calls. All of this logic is now
1008 in WebCore's SelectionController.
1010 * WebView/WebHTMLView.m:
1011 (-[NSArray moveBackward:]):
1012 (-[NSArray moveBackwardAndModifySelection:]):
1013 (-[NSArray moveDown:]):
1014 (-[NSArray moveDownAndModifySelection:]):
1015 (-[NSArray moveForward:]):
1016 (-[NSArray moveForwardAndModifySelection:]):
1017 (-[NSArray moveLeft:]):
1018 (-[NSArray moveLeftAndModifySelection:]):
1019 (-[NSArray moveRight:]):
1020 (-[NSArray moveRightAndModifySelection:]):
1021 (-[NSArray moveToBeginningOfDocument:]):
1022 (-[NSArray moveToBeginningOfDocumentAndModifySelection:]):
1023 (-[NSArray moveToBeginningOfSentence:]):
1024 (-[NSArray moveToBeginningOfSentenceAndModifySelection:]):
1025 (-[NSArray moveToBeginningOfLine:]):
1026 (-[NSArray moveToBeginningOfLineAndModifySelection:]):
1027 (-[NSArray moveToBeginningOfParagraph:]):
1028 (-[NSArray moveToBeginningOfParagraphAndModifySelection:]):
1029 (-[NSArray moveToEndOfDocument:]):
1030 (-[NSArray moveToEndOfDocumentAndModifySelection:]):
1031 (-[NSArray moveToEndOfSentence:]):
1032 (-[NSArray moveToEndOfSentenceAndModifySelection:]):
1033 (-[NSArray moveToEndOfLine:]):
1034 (-[NSArray moveToEndOfLineAndModifySelection:]):
1035 (-[NSArray moveToEndOfParagraph:]):
1036 (-[NSArray moveToEndOfParagraphAndModifySelection:]):
1037 (-[NSArray moveParagraphBackwardAndModifySelection:]):
1038 (-[NSArray moveParagraphForwardAndModifySelection:]):
1039 (-[NSArray moveUp:]):
1040 (-[NSArray moveUpAndModifySelection:]):
1041 (-[NSArray moveWordBackward:]):
1042 (-[NSArray moveWordBackwardAndModifySelection:]):
1043 (-[NSArray moveWordForward:]):
1044 (-[NSArray moveWordForwardAndModifySelection:]):
1045 (-[NSArray moveWordLeft:]):
1046 (-[NSArray moveWordLeftAndModifySelection:]):
1047 (-[NSArray moveWordRight:]):
1048 (-[NSArray moveWordRightAndModifySelection:]):
1049 (-[NSArray pageUp:]):
1050 (-[NSArray pageDown:]):
1051 (-[NSArray pageUpAndModifySelection:]):
1052 (-[NSArray pageDownAndModifySelection:]):
1054 2006-09-15 Adam Roben <aroben@apple.com>
1056 Reviewed by eseidel.
1058 Fixes http://bugs.webkit.org/show_bug.cgi?id=10876
1059 containsItemForURLUnicode uses matchLetter instead of
1062 Small fixes for _WebCoreHistoryProvider.
1064 * History/WebHistory.m: Consistently use BUFFER_SIZE #define
1065 (-[_WebCoreHistoryProvider containsItemForURLLatin1:length:]):
1066 (-[_WebCoreHistoryProvider containsItemForURLUnicode:length:]):
1067 Replace incorrect call to matchLetter to matchUnicodeLetter
1069 2006-09-13 Brady Eidson <beidson@apple.com>
1073 Add infrastructure to support icon loads taking place in WebCore
1074 Will remove WebKit icon loaders in a later patch
1076 * WebCoreSupport/WebFrameBridge.m:
1077 (-[WebFrameBridge notifyIconChanged:]):
1078 (-[WebFrameBridge originalRequestURL]):
1079 - Nuked two old, obsolete methods
1080 - Added bridge for notifying of an icon change
1081 - Added bridge for getting the "original request URL" which is still needed
1082 until that info is available in the WebCore loaders
1084 * WebView/WebDataSource.m:
1085 (-[WebDataSource _loadIcon]):
1086 - Empty body just for now, as it still gets called - next patch will prune all the old impl out
1088 2006-09-13 Timothy Hatcher <timothy@apple.com>
1092 <rdar://problem/4726416> obsolete confusing "ADVISORY NOTE" comment in WebHistory.h
1094 Removed the "ADVISORY NOTE: This method may change for the 1.0 SDK" comments.
1096 * History/WebHistory.h:
1098 === Safari-521.26 ===
1100 2006-09-11 MorganL <morlmor@yahoo.com>
1102 Reviewed/landed by aroben.
1104 Fixes http://bugs.webkit.org/show_bug.cgi?id=10765
1105 Windows build busted due to std::copy usage in Vector.h
1107 * WebKit.vcproj/WebKit.vcproj: Define _SCL_SECURE_NO_DEPRECATE to get
1108 rid of deprecation warnings on std::copy
1110 2006-09-11 Brady Eidson <beidson@apple.com>
1112 Despite the fact that some people built okay without this change, it sure was biting me,
1113 probably because I just wiped my build directory for a fresh build -
1114 Today's earlier removal of DOMList.h needed to occur in MigrateHeaders.make, as well
1116 * MigrateHeaders.make: removed DOMList.h
1118 2006-09-10 Darin Adler <darin@apple.com>
1122 - fix http://bugs.webkit.org/show_bug.cgi?id=10547
1123 REGRESSION: Links that should open in a new window open in the same window,
1124 while opening another blank window
1126 * WebView/WebFrame.m:
1127 (-[WebFrame _continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
1128 Changed a mistaken "self" to "frame", which was the cause of the bug. Also
1129 fixed the method so that it won't crash if createWebViewWithRequest does
1130 something that has a side effect of releasing this WebView or this frame
1131 by retaining "self" and "frame" as needed. Also fixed a problem where the
1132 code to set "opener" was backwards, and would set the opener of the old
1133 frame to point to the new frame instead of vice versa.
1135 2006-09-09 Sam Weinig <sam.weinig@gmail.com>
1139 Patch for http://bugs.webkit.org/show_bug.cgi?id=10795
1140 Auto-generate the Objective-C DOM XPath bindings
1142 * MigrateHeaders.make:
1144 2006-09-09 Sam Weinig <sam.weinig@gmail.com>
1148 Patch for http://bugs.webkit.org/show_bug.cgi?id=10791
1149 Even More Objective-C DOM auto-generation cleanup
1151 * MigrateHeaders.make:
1153 2006-09-08 Tim Omernick <timo@apple.com>
1155 Reviewed by Brady Eidson.
1157 Rolled out Maciej's code cleanup from 8/22. It turns out that keeping the "loading" flag
1158 is a useful optimization, as it avoids many Objective-C method calls while polling resources
1159 for their load state.
1161 This fixes a 3-4% PLT performance regression (as measured on my MacBook Pro).
1163 * Loader/WebFrameLoader.m:
1164 (-[WebFrameLoader addPlugInStreamLoader:]):
1165 (-[WebFrameLoader removePlugInStreamLoader:]):
1166 (-[WebFrameLoader addSubresourceLoader:]):
1167 (-[WebFrameLoader removeSubresourceLoader:]):
1168 * WebView/WebDataSource.m:
1169 (-[WebDataSourcePrivate dealloc]):
1170 (-[WebDataSource _prepareForLoadStart]):
1171 (-[WebDataSource _setLoading:]):
1172 (-[WebDataSource _updateLoading]):
1173 (-[WebDataSource _startLoading]):
1174 (-[WebDataSource _stopLoading]):
1175 (-[WebDataSource _setPrimaryLoadComplete:]):
1176 (-[WebDataSource isLoading]):
1177 * WebView/WebDataSourceInternal.h:
1179 2006-09-07 Sam Weinig <sam.weinig@gmail.com>
1181 Reviewed by Darin and Tim H.
1183 Patch for http://bugs.webkit.org/show_bug.cgi?id=10774
1184 Auto-generate the Objective-C DOM Traversal bindings
1186 * MigrateHeaders.make:
1188 2006-09-07 Sam Weinig <sam.weinig@gmail.com>
1192 Patch for http://bugs.webkit.org/show_bug.cgi?id=10766
1193 Auto-generate the Objective-C DOM Events bindings
1195 * MigrateHeaders.make:
1196 * WebKit.xcodeproj/project.pbxproj:
1198 2006-09-06 Alexey Proskuryakov <ap@nypop.com>
1200 * MigrateHeaders.make: Fixed a double slash in
1201 "$(PRIVATE_HEADERS_DIR)//DOMCharacterDataPrivate.h" (this was reported
1202 to cause a build failure under certain circumstances).
1204 2006-09-05 MorganL <morlmor@yahoocom>
1206 Reviewed/landed by aroben.
1208 Fixes bug 10743: Windows build is busted.
1211 (WebView::keyPress):
1213 2006-09-05 Timothy Hatcher <timothy@apple.com>
1217 Drastically simplified the makefile for migrating headers from
1218 WebCore and JavaScriptCore. The old version was always copying the files.
1220 * MigrateHeaders.make:
1222 2006-09-05 Darin Adler <darin@apple.com>
1226 - WebKit side of changes to encoding
1228 * WebView/WebHTMLRepresentation.m: (-[WebHTMLRepresentation documentSource]):
1229 Changed to call new -[WebCoreFrameBridge stringWithData:] instead of the calling
1230 the old methods that used a CFStringEncoding: -[WebCoreFrameBridge textEncoding]
1231 and +[WebCoreFrameBridge stringWithData:textEncoding:].
1233 * WebView/WebResource.m: (-[WebResource _stringValue]): Removed special case for
1234 nil encoding name. The bridge itself now has the rule that "nil encoding name
1235 means Latin-1", so we don't need to check for nil.
1237 * WebView/WebFrame.m: (-[WebFrame _checkLoadComplete]): Retain the frame until
1238 we get the parent frame while walking up parent frames, because it's possible
1239 for _checkLoadCompleteForThisFrame to release the last reference to the frame.
1240 (Not reviewed; needed to run performance tests successfully.)
1242 2006-09-05 Timothy Hatcher <timothy@apple.com>
1246 <rdar://problem/4682225> conflicting typedefs in Netscape plug-in headers
1248 * Plugins/npfunctions.h: fix the return type for NPN_IntFromIdentifierProcPtr to be int32_t
1250 2006-09-04 Timothy Hatcher <timothy@apple.com>
1254 Bug 10714: ObjC autogeneration needs safe-guards against easily modifying the public API
1255 http://bugs.webkit.org/show_bug.cgi?id=10714
1257 - Added the new private DOM headers.
1258 - Factored out the common commands into variables.
1259 - Made WebDashboardRegion.h private again.
1260 - Rename DOMDOMImplementation.h to DOMImplementation.h when files
1261 are migrated. Also fixes up #imports.
1263 * MigrateHeaders.make:
1265 2006-09-03 Sam Weinig <sam.weinig@gmail.com>
1267 Reviewed by Darin and Tim H.
1269 - patch for http://bugs.webkit.org/show_bug.cgi?id=10711
1270 Auto-generate the Objective-C DOM Stylesheet bindings
1272 * MigrateHeaders.make:
1274 2006-09-02 Sam Weinig <sam.weinig@gmail.com>
1278 - patch for http://bugs.webkit.org/show_bug.cgi?id=10684
1279 Auto-generate the Objective-C DOM CSS bindings
1281 * MigrateHeaders.make:
1283 2006-09-01 MorganL <morlmor@yahoo.com>
1285 Reviewed by Darin. Updated/landed by Adam.
1287 Fixes http://bugs.webkit.org/show_bug.cgi?id=10553
1291 (WebFrame::initWithName):
1293 2006-09-01 Brady Eidson <beidson@apple.com>
1297 A "never should be reached" method was reached - lets not release the shared database bridge, esp
1298 since we never retain it!
1300 * Misc/WebIconDatabase.m:
1301 (-[WebIconDatabase _applicationWillTerminate:]): Don't release the bridge
1303 2006-09-01 Darin Adler <darin@apple.com>
1307 - a few small tweaks to the icon database bridge
1309 * Misc/WebIconDatabase.m: (-[WebIconDatabase init]): Updated for name change.
1311 * WebCoreSupport/WebIconDatabaseBridge.h: Removed unneeded declarations.
1312 * WebCoreSupport/WebIconDatabaseBridge.m:
1313 (-[WebIconDatabaseBridge init]): Added. Always returns nil since you're not supposed
1314 to allocate one of these.
1315 (-[WebIconDatabaseBridge _init]): Renamed from init. Used internally to make the
1316 shared instance. Added the "self = [super init]" idiom even though it's not important
1317 in this case just to be consistent.
1318 (-[WebIconDatabaseBridge releaseCachedLoaderForIconURL:]): Moved this up in the file
1319 so it can be called without declaring it in the header.
1320 (+[WebIconDatabaseBridge sharedInstance]): Renamed. Calls the new _init. Also use
1321 CFRetain for compatibility.
1322 (-[WebIconDatabaseBridge dealloc]): Emptied this out and made it just assert (false).
1323 (-[WebIconDatabaseBridge finalize]): Added and made it assert (false) too.
1325 2006-09-01 Timothy Hatcher <timothy@apple.com>
1329 Bug 10677: Omit "-webkit-text-security: none;" from the computed style list
1330 http://bugs.webkit.org/show_bug.cgi?id=10677
1332 * WebInspector/webInspector/inspector.js:
1334 2006-08-31 Sam Weinig <sam.weinig@gmail.com>
1338 - patch for http://bugs.webkit.org/show_bug.cgi?id=10669
1339 Auto-generate the remaining Objective-C HTML DOM bindings
1341 * MigrateHeaders.make:
1343 2006-08-31 Adele Peterson <adele@apple.com>
1347 WebKit part of fix for http://bugs.webkit.org/show_bug.cgi?id=10666
1348 Password: Disallow Spelling, Font, Speech, and Writing Direction context menu
1350 * DefaultDelegates/WebDefaultContextMenuDelegate.m: (-[WebDefaultUIDelegate editingContextMenuItemsForElement:defaultMenuItems:]):
1351 Check that the selection isn't in a password field before adding these items to the default editing context menu.
1352 Search In Google, Search In Spotlight, Look up in Dictionary, Spelling, Font, Speech, Writing Direction
1353 * WebView/WebHTMLView.m: (-[WebHTMLView _isSelectionInPasswordField]): Added.
1354 * WebView/WebHTMLViewPrivate.h:
1356 2006-08-31 Sam Weinig <sam.weinig@gmail.com>
1360 - patch for http://bugs.webkit.org/show_bug.cgi?id=10653
1361 Auto-generate another 20 Objective-C DOM HTML bindings
1363 * MigrateHeaders.make:
1364 * WebKit.xcodeproj/project.pbxproj:
1366 2006-08-31 Adele Peterson <adele@apple.com>
1368 Reviewed by John Sullivan.
1370 Removed wkSecureEventInput and wkSetSecureEventInput, since this can be done with API.
1372 * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface):
1374 2006-08-31 John Sullivan <sullivan@apple.com>
1376 Reviewed by Tim Omernick
1378 - fixed <rdar://problem/4711200> Loading history would be faster if it bypassed
1379 NSURL API for local files
1381 * History/WebHistory.m:
1382 (-[WebHistoryPrivate _loadHistoryGutsFromURL:savedItemsCount:collectDiscardedItemsInto:error:]):
1383 Load file URLs using [NSDictionary dictionaryWithContentsOfFile:]. I also cleaned up some minor
1384 style issues in this method, and I removed the support for old NSArray-style history files (which we
1385 stopped using before Safari 1.0).
1387 2006-08-30 Adele Peterson <adele@apple.com>
1391 WebKit part of fix for http://bugs.webkit.org/show_bug.cgi?id=10575
1392 Enable secure input mode for new password fields
1394 * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface):
1396 2006-08-30 Brady Eidson <beidson@apple.com>
1400 <rdar://problem/4707718> Change behavior so if the WebCore::IconDatabase can't open, WebKit releases the bridge and
1401 continues on as if the IconDatabase is disabled.
1403 * Misc/WebIconDatabase.m:
1404 (-[WebIconDatabase init]): Release the bridge on failure to open
1405 * WebCoreSupport/WebIconDatabaseBridge.m:
1406 (+[WebIconDatabaseBridge sharedBridgeInstance]): Moved static shared instance out as a global
1407 (-[WebIconDatabaseBridge dealloc]): Clear pointer to the shared instance
1409 2006-08-30 Timothy Hatcher <timothy@apple.com>
1413 Simplify the header copies from WebCore and JavaScriptCore.
1414 Headers that need to be migrated from the other projects need
1415 to be added to MigrateHeaders.make.
1417 * MigrateHeaders.make: Added.
1418 * WebKit.xcodeproj/project.pbxproj:
1420 2006-08-30 Sam Weinig <sam.weinig@gmail.com>
1424 - patch for http://bugs.webkit.org/show_bug.cgi?id=10640
1425 Auto-generate 10 more Objective-C DOM HTML bindings
1427 * WebKit.xcodeproj/project.pbxproj:
1429 2006-08-30 Adele Peterson <adele@apple.com>
1433 WebKit part of fix for:
1434 http://bugs.webkit.org/show_bug.cgi?id=10576
1435 Disallow copy from new password fields
1437 * WebView/WebHTMLView.m:
1438 (-[WebHTMLView _canCopy]): Now also calls across the bridge to ask if it mayCopy.
1439 (-[WebHTMLView _canCut]): Calls _canCopy now.
1440 (-[NSArray validateUserInterfaceItem:]): Calls _canCut when validating the "Cut" menu item.
1441 This used to call _canDelete (which used to be the same as _canCut), but now _canCut also checks _canCopy.
1443 2006-08-30 Karl Adam <karladam@yahoo-inc.com>
1445 Reviewed by Eric and Tim H.
1447 Bug 10634: -webView:dragDestinationActionMaskForDraggingInfo: is ignored
1448 http://bugs.webkit.org/show_bug.cgi?id=10634
1450 Remove the check for canShowFile: from _web_bestURL: since
1451 it shouldn't be concerned with whether or not the view
1452 can show the URL, merely return the most appropriate URL.
1454 * Misc/WebNSPasteboardExtras.m:
1455 (-[NSPasteboard _web_bestURL]):
1456 * Misc/WebNSViewExtras.m:
1457 (-[NSView _web_dragOperationForDraggingInfo:]):
1459 2006-08-29 Brady Eidson <beidson@apple.com>
1461 Reviewed by Kevin Decker (Sarge)
1463 <rdar://problem/4678414> - New IconDB needs to delete icons when asked
1465 * Misc/WebIconDatabase.m:
1466 (-[WebIconDatabase removeAllIcons]): Call through to WebCore to remove icons, then send notification
1468 2006-08-29 Brady Eidson <beidson@apple.com>
1472 Added a truth value check for to setIconURL:forURL so WebKit can avoid sending a notification
1473 This is a win on the iBench
1475 * Misc/WebIconDatabase.m:
1476 (-[WebIconDatabase _setIconURL:forURL:]):
1478 2006-08-29 Brady Eidson <beidson@apple.com>
1480 Reviewed by Tim Hatchers rubber stamp
1482 Removed some accidentally left-in console spew during the conversion to the new DB
1484 * Misc/WebIconDatabase.m:
1485 (objectFromPathForKey): Nuked some NSLogs
1487 2006-08-29 Tim Omernick <timo@apple.com>
1489 Reviewed by Darin Adler.
1491 <rdar://problem/4688618> REGRESSION(10.4.7-9A241): JMol java applet fails in Safari not Firefox
1493 No layout test for now because Java doesn't work in DumpRenderTree.
1495 * Plugins/WebPluginDatabase.m:
1496 (-[WebPluginDatabase refresh]):
1497 Add each plug-in MIME type to registeredMIMETypes, even if we don't register a document view class for the
1498 MIME type. This fixes -[WebPluginDatabase isMIMETypeRegistered:] and thus fallback content for Java applets
1499 (we were always rendering fallback content, if any, for Java applets).
1501 2006-08-29 Sam Weinig <sam.weinig@gmail.com>
1505 - patch for http://bugs.webkit.org/show_bug.cgi?id=10628
1506 Auto-generate the remaining Objective-C DOM bindings
1508 Auto-generates DOMHTMLCollection, DOMHTMLElement, DOMHTMLFormElement,
1509 and DOMHTMLOptionsCollection.
1511 * WebKit.xcodeproj/project.pbxproj:
1513 2006-08-28 Brady Eidson <beidson@apple.com>
1517 Short of a few small snippets that still need to be pushed to WebCore, this
1518 is a final prune of WebIconDatabase. WebFileDatabase and WebLRUFileList are gone
1519 and the small remaining snippets of WebFileDatabase code that were still important
1520 are now in static functions in WebIconDatabase.m
1522 * Loader/WebIconLoader.m:
1523 (-[WebIconLoader didFinishLoading]): Removed the flag
1524 * Misc/WebFileDatabase.h: Removed.
1525 * Misc/WebFileDatabase.m: Removed.
1526 * Misc/WebIconDatabase.m:
1527 (+[WebIconDatabase sharedIconDatabase]):
1528 (-[WebIconDatabase init]):
1529 (-[WebIconDatabase iconForURL:withSize:cache:]):
1530 (-[WebIconDatabase iconURLForURL:]):
1531 (-[WebIconDatabase defaultIconWithSize:]):
1532 (-[WebIconDatabase retainIconForURL:]):
1533 (-[WebIconDatabase releaseIconForURL:]):
1534 (-[WebIconDatabase _isEnabled]):
1535 (-[WebIconDatabase _setIconData:forIconURL:]):
1536 (-[WebIconDatabase _setHaveNoIconForIconURL:]):
1537 (-[WebIconDatabase _setIconURL:forURL:]):
1538 (-[WebIconDatabase _hasEntryForIconURL:]):
1539 (-[WebIconDatabase _applicationWillTerminate:]):
1540 (-[WebIconDatabase _resetCachedWebPreferences:]):
1541 (uniqueFilePathForKey): Added from WebFileDatabase
1542 (objectFromPathForKey): Added from WebFileDatabase
1543 (iconDataFromPathForIconURL):
1544 (-[WebIconDatabase _convertToWebCoreFormat]): Make use of static functions and local variables
1545 instead of using WebFileDatabase and WebIconDatabase variables that are now obsolete
1546 * Misc/WebIconDatabasePrivate.h: Removed alot of obsoleted members
1547 * Misc/WebLRUFileList.h: Removed.
1548 * Misc/WebLRUFileList.m: Removed.
1549 * WebKit.xcodeproj/project.pbxproj: Deleted 4 files
1550 * WebKitPrefix.h: Removed ICONDEBUG
1552 2006-08-28 Tim Omernick <timo@apple.com>
1554 Reviewed by Darin Adler.
1556 * Plugins/WebBaseNetscapePluginView.m:
1557 (-[WebBaseNetscapePluginView createPluginScriptableObject]):
1558 Removed a bogus typecast.
1560 2006-08-28 Tim Omernick <timo@apple.com>
1562 Reviewed by John Sullivan.
1564 Part of <rdar://problem/4481553> NetscapeMoviePlugIn example code scripting doesn't work in Firefox (4319)
1565 <http://bugs.webkit.org/show_bug.cgi?id=4319>: NetscapeMoviePlugIn example code scripting doesn't work
1568 * Plugins/WebBaseNetscapePluginView.h:
1569 * Plugins/WebBaseNetscapePluginView.m:
1570 (-[WebBaseNetscapePluginView createPluginScriptableObject]):
1571 Renamed this method (see corresponding WebCore ChangeLog entry for an explanation).
1574 2006-08-28 Brady Eidson <beidson@apple.com>
1576 Reviewed by Tim Hatcher's rubberstamp
1578 Rolled out my last change (16070 - pruning WebFileDatabase code) as it caused a difficult-to-track down
1579 failure in layout tests on a release build.
1581 * Misc/WebFileDatabase.h:
1582 * Misc/WebFileDatabase.m:
1583 (+[WebFileDatabaseOp opWithCode:key:object:]):
1584 (-[WebFileDatabaseOp initWithCode:key:object:]):
1585 (-[WebFileDatabaseOp opcode]):
1586 (-[WebFileDatabaseOp key]):
1587 (-[WebFileDatabaseOp object]):
1588 (-[WebFileDatabaseOp perform:]):
1589 (-[WebFileDatabaseOp dealloc]):
1590 (SetThreadPriority):
1591 (-[WebFileDatabase _createLRUList:]):
1592 (-[WebFileDatabase _truncateToSizeLimit:]):
1593 (+[WebFileDatabase _syncLoop:]):
1595 (-[WebFileDatabase setTimer]):
1596 (-[WebFileDatabase setObject:forKey:]):
1597 (-[WebFileDatabase removeObjectForKey:]):
1598 (-[WebFileDatabase removeAllObjects]):
1599 (-[WebFileDatabase objectForKey:]):
1600 (-[WebFileDatabase performSetObject:forKey:]):
1601 (-[WebFileDatabase performRemoveObjectForKey:]):
1602 (-[WebFileDatabase open]):
1603 (-[WebFileDatabase close]):
1604 (-[WebFileDatabase lazySync:]):
1605 (-[WebFileDatabase sync]):
1606 (-[WebFileDatabase sizeLimit]):
1607 (-[WebFileDatabase count]):
1608 (-[WebFileDatabase usage]):
1609 (-[WebFileDatabase setSizeLimit:]):
1610 * Misc/WebIconDatabase.m:
1611 (-[WebIconDatabase _createFileDatabase]):
1612 (-[WebIconDatabase _loadIconDictionaries]):
1613 * WebKit.xcodeproj/project.pbxproj:
1615 2006-08-28 Darin Adler <darin@apple.com>
1617 Reviewed by Tim Hatcher.
1619 * WebInspector/webInspector/inspector.js: Add "resize: none" to the list of
1620 default values for CSS properties so it will be omitted from most displays
1623 2006-08-28 Brady Eidson <beidson@apple.com>
1627 Major prune of unnecessary WebFileDatabase code. In the end, what
1628 useful code that remains in WebFileDatabase will likely be moved directly
1629 into WebIconDatabase
1631 * Misc/WebFileDatabase.h:
1632 * Misc/WebFileDatabase.m:
1633 (-[WebFileDatabase initWithPath:]):
1634 (-[WebFileDatabase objectForKey:]):
1635 (-[WebFileDatabase open]):
1636 (-[WebFileDatabase close]):
1637 * Misc/WebIconDatabase.m:
1638 (-[WebIconDatabase _createFileDatabase]):
1639 (-[WebIconDatabase _loadIconDictionaries]):
1640 * Misc/WebLRUFileList.h: Removed.
1641 * Misc/WebLRUFileList.m: Removed.
1642 * WebKit.xcodeproj/project.pbxproj:
1644 2006-08-27 Sam Weinig <sam.weinig@gmail.com>
1648 - patch for http://bugs.webkit.org/show_bug.cgi?id=4624
1649 WebCore needs autogenerated Obj-C DOM bindings
1651 First round of auto-generated Objective C DOM bindings, starting
1654 * WebKit.xcodeproj/project.pbxproj:
1656 2006-08-25 Brady Eidson <beidson@apple.com>
1658 Reviewed by Tim Hatcher
1660 Fixed up some leaks on [WebIconDatabase init]
1662 * Misc/WebIconDatabase.m:
1663 (-[WebIconDatabase init]):
1665 2006-08-24 Timothy Hatcher <timothy@apple.com>
1669 * WebView/WebFrame.m:
1670 (-[WebFrame _updateBackground]): reworded the comment about scroll view and setDrawsBackground:YES
1671 * WebView/WebView.m:
1672 (-[WebViewPrivate dealloc]): release the background color
1674 2006-08-24 Timothy Hatcher <timothy@apple.com>
1678 WebView API to allow changing the background color that draws under transparent page backgrounds.
1680 * WebView/WebFrame.m:
1681 (-[WebFrame _makeDocumentView]):
1682 (-[WebFrame _updateBackground]):
1683 * WebView/WebFrameInternal.h:
1684 * WebView/WebFrameView.m:
1685 (-[WebFrameView drawRect:]):
1686 * WebView/WebView.m:
1687 (-[WebView setBackgroundColor:]):
1688 (-[WebView backgroundColor]):
1689 (-[WebView _commonInitializationWithFrameName:groupName:]):
1690 (-[WebView setDrawsBackground:]):
1691 * WebView/WebViewPrivate.h:
1693 2006-08-24 Timothy Hatcher <timothy@apple.com>
1697 Fix for Mail stationary. Selecting a stationary item would cause this exception.
1698 *** -[WebSubresourceLoader copyWithZone:]: selector not recognized
1699 Uncaught exception - *** -[WebSubresourceLoader copyWithZone:]: selector not recognized
1701 * Loader/WebFrameLoader.m:
1702 (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
1703 Use _webkit_setObject:forUncopiedKey: when addign the resource to pendingArchivedResources.
1705 2006-08-23 Maciej Stachowiak <mjs@apple.com>
1709 - fix assertion which I accidentally changed to one that sometimes fails
1710 http://bugs.webkit.org/show_bug.cgi?id=10531
1712 * Loader/WebDocumentLoadState.m:
1713 (-[WebDocumentLoadState dealloc]):
1714 * WebView/WebDataSource.m:
1715 (-[WebDataSourcePrivate dealloc]):
1716 (-[WebDataSource dealloc]):
1718 2006-08-23 Maciej Stachowiak <mjs@apple.com>
1722 - move WebFrame code that creates WebDataSources down to WebFrameLoader, in preparation
1723 for WebFrameLoader just holding on to WebDocumentLoadState
1725 * Loader/WebFrameLoader.h:
1726 * Loader/WebFrameLoader.m:
1727 (-[WebFrameLoader _loadRequest:archive:]):
1728 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
1729 (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
1730 (-[WebFrameLoader reload]):
1731 * WebView/WebFrame.m:
1732 (-[WebFrame _loadItem:withLoadType:]):
1733 (-[WebFrame _continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
1734 (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
1735 (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
1736 (-[WebFrame _shouldReloadToHandleUnreachableURLFromRequest:]):
1737 (-[WebFrame loadRequest:]):
1738 (-[WebFrame loadArchive:]):
1739 (-[WebFrame reload]):
1740 * WebView/WebFrameInternal.h:
1741 * WebView/WebFramePrivate.h:
1742 * WebView/WebView.m:
1743 (-[WebView setCustomTextEncodingName:]):
1745 2006-08-23 Brady Eidson <beidson@apple.com>
1749 First pass at pruning unused WebIconDatabase code. Focus on removing methods that simply
1750 have no place in the new DB at all. A few renames and a few important FIXMEs result, but no
1751 functionality changes.
1753 * Loader/WebIconLoader.m:
1754 (-[WebIconLoader didFinishLoading]): Call to WebIconDatabase instead of directly to the bridge
1755 * Misc/WebIconDatabase.h:
1756 * Misc/WebIconDatabase.m:
1757 (-[WebIconDatabase init]):
1758 (-[WebIconDatabase iconForURL:withSize:cache:]):
1759 (-[WebIconDatabase iconURLForURL:]):
1760 (-[WebIconDatabase defaultIconWithSize:]):
1761 (-[WebIconDatabase retainIconForURL:]):
1762 (-[WebIconDatabase releaseIconForURL:]):
1763 (-[WebIconDatabase removeAllIcons]):
1764 (-[WebIconDatabase _setIconData:forIconURL:]):
1765 (-[WebIconDatabase _setHaveNoIconForIconURL:]):
1766 (-[WebIconDatabase _setIconURL:forURL:]):
1767 (-[WebIconDatabase _hasEntryForIconURL:]):
1768 (-[WebIconDatabase _applicationWillTerminate:]):
1769 (-[WebIconDatabase _resetCachedWebPreferences:]):
1770 * Misc/WebIconDatabasePrivate.h: Changed setIcon: to setIconData:
1772 2006-08-23 Maciej Stachowiak <mjs@apple.com>
1776 - started factoring most of the guts of WebDataSource into a new class
1778 WebDocumentLoadState is decoupled from the rest of WebKit and will
1779 be moved down to WebCore. I only moved one of the data fields of
1780 WebDataSource for now.
1782 * Loader/WebDocumentLoadState.h: Added.
1783 * Loader/WebDocumentLoadState.m: Added.
1784 (-[WebDocumentLoadState initWithRequest:]): New class.
1785 (-[WebDocumentLoadState dealloc]):
1786 (-[WebDocumentLoadState setFrameLoader:]):
1787 (-[WebDocumentLoadState setMainResourceData:]):
1788 (-[WebDocumentLoadState mainResourceData]):
1789 * Loader/WebFrameLoader.m:
1790 (-[WebFrameLoader _setDataSource:]): Remove redundant _setWebFrame: call,
1791 it would have been called already by this point.
1792 (-[WebFrameLoader _setProvisionalDataSource:]): ditto.
1793 * WebKit.xcodeproj/project.pbxproj:
1794 * WebView/WebDataSource.m:
1795 (-[WebDataSourcePrivate dealloc]):
1796 (-[WebDataSource _setWebFrame:]):
1797 (-[WebDataSource _setPrimaryLoadComplete:]):
1798 (-[WebDataSource initWithRequest:]):
1799 (-[WebDataSource data]):
1801 2006-08-23 Maciej Stachowiak <mjs@apple.com>
1805 - refactoring of WebDataSource in preparation for moving a bunch of it to a new class
1807 - minimize WebDataSourceInternal.h to be only methods called from outside WebDataSource
1808 - reduce Private category implementation to be only the SPI methods
1809 - make new Internal and FileInternal categories which contain the
1810 remainder (depending on whether they are called from outside of
1813 * WebView/WebDataSource.m:
1814 (-[WebDataSource _setMainDocumentError:]):
1815 (addTypesFromClass):
1816 (+[WebDataSource _representationClassForMIMEType:]):
1817 (-[WebDataSource _commitIfReady]):
1818 (-[WebDataSource _commitLoadWithData:]):
1819 (-[WebDataSource _doesProgressiveLoadWithMIMEType:]):
1820 (-[WebDataSource _addResponse:]):
1821 (-[WebDataSource _revertToProvisionalState]):
1822 (-[WebDataSource _mainDocumentError]):
1823 (-[WebDataSource _addSubframeArchives:]):
1824 (-[WebDataSource _fileWrapperForURL:]):
1825 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
1826 (-[WebDataSource _decidePolicyForMIMEType:decisionListener:]):
1827 (-[WebDataSource _finishedLoading]):
1828 (-[WebDataSource _setResponse:]):
1829 (-[WebDataSource _setRequest:]):
1830 (-[WebDataSource _setupForReplaceByMIMEType:]):
1831 (-[WebDataSource _receivedMainResourceError:complete:]):
1832 (-[WebDataSource _mainReceivedError:complete:]):
1833 (-[WebDataSource _defersCallbacks]):
1834 (-[WebDataSource _downloadWithLoadingConnection:request:response:proxy:]):
1835 (-[WebDataSource _didFailLoadingWithError:forResource:]):
1836 (-[WebDataSource _didFinishLoadingForResource:]):
1837 (-[WebDataSource _didReceiveData:contentLength:forResource:]):
1838 (-[WebDataSource _didReceiveResponse:forResource:]):
1839 (-[WebDataSource _didCancelAuthenticationChallenge:forResource:]):
1840 (-[WebDataSource _didReceiveAuthenticationChallenge:forResource:]):
1841 (-[WebDataSource _willSendRequest:forResource:redirectResponse:]):
1842 (-[WebDataSource _identifierForInitialRequest:]):
1843 (-[WebDataSource _archivedSubresourceForURL:]):
1844 (-[WebDataSource _startLoading]):
1845 (-[WebDataSource _stopRecordingResponses]):
1846 (-[WebDataSource _loadingStartedTime]):
1847 (-[WebDataSource _replaceSelectionWithArchive:selectReplacement:]):
1848 (-[WebDataSource _documentFragmentWithArchive:]):
1849 (-[WebDataSource _documentFragmentWithImageResource:]):
1850 (-[WebDataSource _imageElementWithImageResource:]):
1851 (-[WebDataSource _title]):
1852 (-[WebDataSource _isStopping]):
1853 (-[WebDataSource _setWebFrame:]):
1854 (-[WebDataSource _URL]):
1855 (-[WebDataSource _loadFromPageCache:]):
1856 (-[WebDataSource _popSubframeArchiveWithName:]):
1857 (-[WebDataSource _setIsClientRedirect:]):
1858 (-[WebDataSource _setURL:]):
1859 (-[WebDataSource _setLastCheckedRequest:]):
1860 (-[WebDataSource _defersCallbacksChanged]):
1861 (-[WebDataSource _lastCheckedRequest]):
1862 (-[WebDataSource _stopLoading]):
1863 (-[WebDataSource _bridge]):
1864 (-[WebDataSource _webView]):
1865 (-[WebDataSource _triggeringAction]):
1866 (-[WebDataSource _setTriggeringAction:]):
1867 (-[WebDataSource __adoptRequest:]):
1868 (-[WebDataSource _isDocumentHTML]):
1869 (-[WebDataSource _stopLoadingWithError:]):
1870 (-[WebDataSource _setPrimaryLoadComplete:]):
1871 (-[WebDataSource _responses]):
1872 (-[WebDataSource _makeRepresentation]):
1873 (-[WebDataSource _isClientRedirect]):
1874 (-[WebDataSource _originalRequest]):
1875 (-[WebDataSource _URLForHistory]):
1876 (-[WebDataSource _addToUnarchiveState:]):
1877 (-[WebDataSource _setOverrideEncoding:]):
1878 (-[WebDataSource _setIconURL:]):
1879 (-[WebDataSource _setIconURL:withType:]):
1880 (-[WebDataSource _overrideEncoding]):
1881 (-[WebDataSource _setTitle:]):
1882 * WebView/WebDataSourceInternal.h:
1884 2006-08-23 Brady Eidson <beidson@apple.com>
1886 Reviewed by John Sullivan
1889 Flip the switch to the new Icon Database
1890 Massive code pruning is coming up
1892 * WebKitPrefix.h: Flipped the switch
1894 2006-08-23 Brady Eidson <beidson@apple.com>
1897 Since I just pushed the default URL icon from WebKit to WebCore, but
1898 WebKit was still using its version of the default icon, this patch makes it
1899 use the WebCore version
1901 * Misc/WebIconDatabase.m:
1902 (-[WebIconDatabase defaultIconWithSize:]):
1904 2006-08-22 Maciej Stachowiak <mjs@apple.com>
1908 - remove "loading" flag from WebDataSource and code that manages it; it is redundat.
1910 * Loader/WebFrameLoader.m:
1911 (-[WebFrameLoader addPlugInStreamLoader:]):
1912 (-[WebFrameLoader removePlugInStreamLoader:]):
1913 (-[WebFrameLoader addSubresourceLoader:]):
1914 (-[WebFrameLoader removeSubresourceLoader:]):
1915 * WebView/WebDataSource.m:
1916 (-[WebDataSourcePrivate dealloc]):
1917 (-[WebDataSource _setPrimaryLoadComplete:]):
1918 (-[WebDataSource _stopLoading]):
1919 (-[WebDataSource _prepareForLoadStart]):
1920 (-[WebDataSource _startLoading]):
1921 (-[WebDataSource isLoading]):
1922 * WebView/WebDataSourceInternal.h:
1924 2006-08-22 Maciej Stachowiak <mjs@apple.com>
1928 <rdar://problem/4683948> REGRESSION: Assertion failure in [FrameProgressEntry addChild:forDataSource:] (fandango.com)
1930 * Loader/WebFrameLoader.m:
1931 (-[WebFrameLoader addSubresourceLoader:]): Add a WebKit-level assertion that should fire when this bad
1933 * Loader/WebSubresourceLoader.m:
1934 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]): Prevent
1935 the situation from occuring.
1937 2006-08-22 Maciej Stachowiak <mjs@apple.com>
1941 - pull more WebDataSource code into WebFrameLoader
1942 - make WebMainResourceLoader not depend on WebKit or on SPI
1944 * Loader/WebFrameLoader.h:
1945 * Loader/WebFrameLoader.m:
1946 (-[WebFrameLoader _downloadWithLoadingConnection:request:response:proxy:]):
1947 (-[WebFrameLoader _updateIconDatabaseWithURL:]):
1948 (-[WebFrameLoader _notifyIconChanged:]):
1949 (-[WebFrameLoader _iconLoaderReceivedPageIcon:]):
1950 (-[WebFrameLoader _checkNavigationPolicyForRequest:andCall:withSelector:]):
1951 (-[WebFrameLoader _checkContentPolicyForMIMEType:andCall:withSelector:]):
1952 (-[WebFrameLoader cancelContentPolicy]):
1953 * Loader/WebIconLoader.m:
1954 (-[WebIconLoader didFinishLoading]):
1955 * Loader/WebLoader.m:
1956 (-[NSURLProtocol loadWithRequest:]):
1957 (-[NSURLProtocol setDefersCallbacks:]):
1958 * Loader/WebMainResourceLoader.h:
1959 * Loader/WebMainResourceLoader.m:
1960 (-[WebMainResourceLoader initWithFrameLoader:]):
1961 (-[WebMainResourceLoader dealloc]):
1962 (-[WebMainResourceLoader cancelWithError:]):
1963 (-[WebMainResourceLoader continueAfterNavigationPolicy:formState:]):
1964 (-[WebMainResourceLoader willSendRequest:redirectResponse:]):
1965 (-[WebMainResourceLoader continueAfterContentPolicy:]):
1966 (-[WebMainResourceLoader checkContentPolicy]):
1967 (-[WebMainResourceLoader didReceiveResponse:]):
1968 * Plugins/WebPluginContainerCheck.m:
1969 * WebCoreSupport/WebSystemInterface.m:
1970 (InitWebCoreSystemInterface):
1971 * WebView/WebDataSource.m:
1972 (-[WebDataSource _loadIcon]):
1973 (-[WebDataSource _cancelledError]):
1974 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
1975 (+[WebDataSource _representationClassForMIMEType:]):
1976 (-[WebDataSource _commitLoadWithData:]):
1977 (-[WebDataSource _isDocumentHTML]):
1978 * WebView/WebDataSourceInternal.h:
1979 * WebView/WebFramePrivate.h:
1980 * WebView/WebPolicyDelegate.m:
1981 * WebView/WebPolicyDelegatePrivate.h:
1983 2006-08-21 Maciej Stachowiak <mjs@apple.com>
1987 - move more code from WebDataSource to WebFrameLoader
1989 Also marked a few more methods in WebDataSource as likely MOVABLE in a future round, since they do not
1990 use any of WebDataSource's private data.
1992 * Loader/WebFrameLoader.h:
1993 * Loader/WebFrameLoader.m:
1994 (-[WebFrameLoader addPlugInStreamLoader:]):
1995 (-[WebFrameLoader removePlugInStreamLoader:]):
1996 (-[WebFrameLoader addSubresourceLoader:]):
1997 (-[WebFrameLoader removeSubresourceLoader:]):
1998 (-[WebFrameLoader _didReceiveAuthenticationChallenge:forResource:]):
1999 (-[WebFrameLoader _didCancelAuthenticationChallenge:forResource:]):
2000 (-[WebFrameLoader _didReceiveResponse:forResource:]):
2001 (-[WebFrameLoader _didReceiveData:contentLength:forResource:]):
2002 (-[WebFrameLoader _didFinishLoadingForResource:]):
2003 (-[WebFrameLoader _didFailLoadingWithError:forResource:]):
2004 (-[WebFrameLoader _privateBrowsingEnabled]):
2005 (-[WebFrameLoader _finishedLoadingResource]):
2006 (-[WebFrameLoader _receivedError:]):
2007 (-[WebFrameLoader _finishedLoading]):
2008 * Loader/WebMainResourceLoader.m:
2009 (-[WebMainResourceLoader didReceiveData:lengthReceived:allAtOnce:]):
2010 (-[WebMainResourceLoader didFinishLoading]):
2011 * Loader/WebNetscapePlugInStreamLoader.m:
2012 (-[WebNetscapePlugInStreamLoader didFinishLoading]):
2013 (-[WebNetscapePlugInStreamLoader didFailWithError:]):
2014 (-[WebNetscapePlugInStreamLoader cancelWithError:]):
2015 * Loader/WebSubresourceLoader.m:
2016 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
2017 (-[WebSubresourceLoader signalFinish]):
2018 (-[WebSubresourceLoader didFailWithError:]):
2019 (-[WebSubresourceLoader cancel]):
2020 * Plugins/WebNetscapePluginStream.m:
2021 (-[WebNetscapePluginStream start]):
2022 * WebView/WebDataSource.m:
2023 (-[WebDataSource _replaceSelectionWithArchive:selectReplacement:]):
2024 (-[WebDataSource _updateIconDatabaseWithURL:]):
2025 (-[WebDataSource _loadIcon]):
2026 (-[WebDataSource _setPrimaryLoadComplete:]):
2027 (-[WebDataSource _cancelledError]):
2028 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
2029 (+[WebDataSource _representationClassForMIMEType:]):
2030 (-[WebDataSource _commitLoadWithData:]):
2031 (-[WebDataSource _receivedMainResourceError:complete:]):
2032 (-[WebDataSource _iconLoaderReceivedPageIcon:]):
2033 (-[WebDataSource _isDocumentHTML]):
2034 * WebView/WebDataSourceInternal.h:
2036 2006-08-21 Brady Eidson <beidson@apple.com>
2040 Quick ICONDEBUG flag fix
2042 * Misc/WebIconDatabase.m:
2043 (-[WebIconDatabase _applicationWillTerminate:]):
2045 2006-08-21 Brady Eidson <beidson@apple.com>
2049 -Renamed an internal only method for clarity
2050 -Tweaked WebDataSource for notification purposes with the new expiring icons
2051 -Fixed a bug with the ICONDEBUG flag
2053 * Misc/WebIconDatabase.m:
2054 (-[WebIconDatabase init]):
2055 (-[WebIconDatabase iconForURL:withSize:cache:]): #ifdef bug fixed
2056 (-[WebIconDatabase _hasEntryForIconURL:]): Renamed for clarity
2057 * Misc/WebIconDatabasePrivate.h:
2058 * WebView/WebDataSource.m:
2059 (-[WebDataSource _updateIconDatabaseWithURL:]):
2060 (-[WebDataSource _notifyIconChanged:]):
2061 (-[WebDataSource _loadIcon]):
2062 (-[WebDataSource _iconLoaderReceivedPageIcon:]):
2064 2006-08-17 Maciej Stachowiak <mjs@apple.com>
2068 - pull a bit of WebDataSource code into WebFrameLoader
2070 * Loader/WebFrameLoader.m:
2071 (-[WebFrameLoader _receivedError:]):
2072 (-[WebFrameLoader webFrame]):
2073 (-[WebFrameLoader _handleFallbackContent]):
2074 (+[WebFrameLoader _canShowMIMEType:]):
2075 (+[WebFrameLoader _representationExistsForURLScheme:]):
2076 (+[WebFrameLoader _generatedMIMETypeForURLScheme:]):
2077 * WebView/WebDataSource.m:
2078 * WebView/WebDataSourceInternal.h:
2080 2006-08-17 Timothy Hatcher <timothy@apple.com>
2082 Reviewed by Kevin Decker.
2084 <rdar://problem/4606857> WebKit: WebPreferencesChangedNotification not exported in 64-bit
2088 2006-08-17 Timothy Hatcher <timothy@apple.com>
2090 Reviewed by Kevin Decker.
2092 <rdar://problem/4633896> -[WebView close] should clear all delegates and call setHostWindow:nil
2093 <rdar://problem/4649759> Crash when selecting View Source menu using Chinese (-[WebView _close])
2095 Check to make sure _private is not null. A WebView can be dealloced before _private is setup.
2096 Set the _private->closed flag at the beginning of _close to prevent reentry.
2097 Set the host window and all the delegates to nil in _close.
2099 * WebView/WebView.m:
2100 (-[WebView _close]):
2102 2006-08-16 Brady Eidson <beidson@apple.com>
2106 * Misc/WebIconDatabase.m: Pruned unused method
2107 * Misc/WebIconDatabasePrivate.h: Ditto
2110 2006-08-15 Maciej Stachowiak <mjs@apple.com>
2112 Reviewed by Adele (preliminary version) and later by Kevin.
2114 - remove most WebKit dependencies from WebMainResourceLoader.
2116 * Loader/WebFrameLoader.h:
2117 * Loader/WebFrameLoader.m:
2118 (-[WebFrameLoader cannotShowMIMETypeForURL:]):
2119 (-[WebFrameLoader interruptForPolicyChangeErrorWithRequest:]):
2120 (-[WebFrameLoader isHostedByObjectElement]):
2121 (-[WebFrameLoader isLoadingMainFrame]):
2122 (+[WebFrameLoader _canShowMIMEType:]):
2123 (+[WebFrameLoader _representationExistsForURLScheme:]):
2124 (+[WebFrameLoader _generatedMIMETypeForURLScheme:]):
2125 * Loader/WebMainResourceLoader.h:
2126 * Loader/WebMainResourceLoader.m:
2127 (-[WebMainResourceLoader interruptForPolicyChangeError]):
2128 (-[WebMainResourceLoader willSendRequest:redirectResponse:]):
2129 (isCaseInsensitiveEqual):
2130 (shouldLoadAsEmptyDocument):
2131 (-[WebMainResourceLoader continueAfterContentPolicy:response:]):
2132 (-[WebMainResourceLoader didReceiveResponse:]):
2133 (-[WebMainResourceLoader didReceiveData:lengthReceived:allAtOnce:]):
2134 (-[WebMainResourceLoader didFinishLoading]):
2135 (-[WebMainResourceLoader loadWithRequestNow:]):
2136 (-[WebMainResourceLoader loadWithRequest:]):
2138 2006-08-15 Tim Omernick <timo@apple.com>
2140 Reviewed by Kevin Decker.
2142 * Plugins/WebNetscapePluginPackage.m:
2143 (-[WebNetscapePluginPackage _unloadWithShutdown:]):
2144 Fixed a subtle problem with the 64-bit debug build -- as written, this would LOG() on 64-bit and do nothing on
2146 * Plugins/WebPluginDatabase.m:
2147 (-[WebPluginDatabase _scanForNewPlugins]):
2148 Use +[NSMutableSet set] here.
2150 2006-08-15 Tim Omernick <timo@apple.com>
2152 Reviewed by Darin Adler.
2154 <http://bugs.webkit.org/show_bug.cgi?id=8980>
2155 ASSERTION FAILED: !isLoaded (WebKit/WebKit/Plugins/WebBasePluginPackage.m:228 -[WebBasePluginPackage dealloc])
2157 <rdar://problem/4526052> intermittent assertion failure in -[WebBasePluginPackage dealloc] running layout tests (8980)
2159 * Plugins/WebPluginDatabase.h:
2160 * Plugins/WebPluginDatabase.m:
2161 (+[WebPluginDatabase installedPlugins]):
2162 Observe NSApplicationWillTerminateNotification so we can unload plug-ins on quit.
2163 (-[WebPluginDatabase plugins]):
2164 'plugins' is now a dictionary.
2165 (-[WebPluginDatabase close]):
2166 Call new -_removePlugin: method.
2167 (-[WebPluginDatabase refresh]):
2168 Moved parts of this method out into other methods: -_addPlugin:, -_removePlugin:, and -_scanForNewPlugins.
2169 (-[WebPluginDatabase _plugInPaths]):
2170 No changes; just moved in file.
2171 (-[WebPluginDatabase _addPlugin:]):
2172 New method. Refactored from -refresh. Adds a plug-in to the database.
2173 (-[WebPluginDatabase _removePlugin:]):
2174 New method. Refactored from -refresh. Remove a plug-in from the database.
2175 (-[WebPluginDatabase _scanForNewPlugins]):
2176 New method. Refactored from -refresh. Returns the list of plug-in packages on disk.
2177 (-[WebPluginDatabase _applicationWillTerminate]):
2178 New method. Called when the application terminates. Closes the plug-in database so that all plug-ins are
2179 removed from the DB (and unloaded if necessary).
2181 * Plugins/WebBasePluginPackage.h:
2182 * Plugins/WebBasePluginPackage.m:
2183 (-[WebBasePluginPackage initWithPath:]):
2184 Try to create the NSBundle first, so if the file is not a valid bundle we bail out early. This
2185 avoids some stat()s and allocations during the plug-in refresh process.
2186 (-[WebBasePluginPackage isLoaded]):
2188 (-[WebBasePluginPackage load]):
2189 Base class for plug-in packages now always loads "successfully".
2190 (-[WebBasePluginPackage dealloc]):
2191 Removed this assertion. The base plug-in package class has no concept of
2193 (-[WebBasePluginPackage finalize]):
2195 (-[WebBasePluginPackage wasRemovedFromPluginDatabase:]):
2196 Moved code to unload plug-in package to WebNetscapePluginPackage. Not all plug-in
2197 packages can be "unloaded".
2199 * Plugins/WebNetscapePluginPackage.h:
2200 * Plugins/WebNetscapePluginPackage.m:
2201 (-[WebNetscapePluginPackage _unloadWithShutdown:]):
2202 Combined old -unload and -unloadWithoutShutdown methods into this new one.
2203 (-[WebNetscapePluginPackage initWithPath:]):
2204 Call new unload method.
2205 (-[WebNetscapePluginPackage load]):
2207 (-[WebNetscapePluginPackage wasRemovedFromPluginDatabase:]):
2209 (-[WebNetscapePluginPackage open]):
2210 New method. Called when a plug-in instance starts running.
2211 (-[WebNetscapePluginPackage close]):
2212 New method. Called when a plug-in instance stops running. When all plug-in instances
2213 close the plug-in package, and the plug-in package is removed from the database, the plug-in
2216 * Plugins/WebPluginPackage.m:
2217 (-[WebPluginPackage initWithPath:]):
2218 (-[WebPluginPackage load]):
2219 Made this a bit more efficient by checking if the bundle is already loaded.
2220 (-[WebBasePluginPackage unload]):
2222 (-[WebBasePluginPackage isLoaded]):
2225 * Plugins/WebBaseNetscapePluginView.m:
2226 (-[WebBaseNetscapePluginView start]):
2227 Open the plug-in package so it remains loaded while this instance uses it.
2228 (-[WebBaseNetscapePluginView stop]):
2229 Close the plug-in package when the plug-in instance is stopped.
2231 * Plugins/WebBaseNetscapePluginStream.m:
2232 (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:]):
2233 This check is not necessary. Netscape plug-in packages are never unloaded until all their instances have
2234 been stopped, and a Netscape plug-in instance will stop its streams when it is stopped.
2235 (-[WebBaseNetscapePluginStream _destroyStream]):
2237 (-[WebBaseNetscapePluginStream finishedLoadingWithData:]):
2239 (-[WebBaseNetscapePluginStream _deliverData]):
2242 2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
2246 Build fix: DWARF and -gfull are incompatible with symbol separation.
2248 * WebKit.xcodeproj/project.pbxproj:
2250 2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
2254 http://bugs.webkit.org/show_bug.cgi?id=10394
2255 Bug 10394: WebKit Release and Production configurations should enable dead code stripping
2257 * WebKit.xcodeproj/project.pbxproj:
2259 2006-08-15 Maciej Stachowiak <mjs@apple.com>
2263 - remove WebKit dependencies from WebPlugInStreamLoader via a protocol veil of ignorance
2265 * Loader/WebNetscapePlugInStreamLoader.h:
2266 * Loader/WebNetscapePlugInStreamLoader.m:
2267 (-[WebNetscapePlugInStreamLoader initWithDelegate:frameLoader:]):
2268 * Loader/WebPlugInStreamLoaderDelegate.h: Added.
2269 * Plugins/WebBaseNetscapePluginStream.h:
2270 * Plugins/WebNetscapePluginStream.m:
2271 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
2272 * WebKit.xcodeproj/project.pbxproj:
2274 2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
2278 http://bugs.webkit.org/show_bug.cgi?id=10384
2279 Bug 10384: Switch to DWARF for Release configuration
2281 * WebKit.xcodeproj/project.pbxproj:
2283 2006-08-15 Graham Dennis <graham.dennis@gmail.com>
2287 - patch for http://bugs.webkit.org/show_bug.cgi?id=10314
2288 WebUnarchivingState archivedResourceForURL: doesn't work
2290 * WebView/WebUnarchivingState.m:
2291 (-[WebUnarchivingState archivedResourceForURL:]):
2292 Fixed to get objects from the archived resources dictionary using
2293 the URL as a string instead of as the URL itself (as this is how
2294 the data is put into the dictionary).
2296 2006-08-14 Maciej Stachowiak <mjs@apple.com>
2300 - remove many (but not all) WebKit dependencies from WebNetscapePlugInStreamLoader (it still
2301 depends on WebNetscapePluginStream).
2303 * Loader/WebFrameLoader.h:
2304 * Loader/WebFrameLoader.m:
2305 (-[WebFrameLoader fileDoesNotExistErrorWithResponse:]):
2306 * Loader/WebNetscapePlugInStreamLoader.h:
2307 * Loader/WebNetscapePlugInStreamLoader.m:
2308 (-[WebNetscapePlugInStreamLoader initWithStream:frameLoader:]):
2309 (-[WebNetscapePlugInStreamLoader releaseResources]):
2310 (-[WebNetscapePlugInStreamLoader didReceiveResponse:]):
2311 * Plugins/WebNetscapePluginStream.m:
2312 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
2314 2006-08-14 Maciej Stachowiak <mjs@apple.com>
2316 Reviewed by Tim Omernick.
2318 - fixed REGRESSION: crash when leaving youtube page while movie is still loading
2319 http://bugs.webkit.org/show_bug.cgi?id=10398
2321 * Loader/WebNetscapePlugInStreamLoader.m:
2322 (-[WebNetscapePlugInStreamLoader initWithStream:view:]): Set the frame loader for this stream.
2323 (-[WebNetscapePlugInStreamLoader cancelWithError:]): Make sure to destroy the stream as well;
2324 otherwise, when we try to clean up later, we won't have the right context.
2326 2006-08-14 David Hyatt <hyatt@apple.com>
2328 Fix for Radar bug 4478840, Safari should not reduce null events sent to
2329 plug-ins in windows that are inactive but visible.
2331 With this fix you can view videos in visible background windows on YouTube
2332 (for example) and not see any drop in frame rate.
2336 * Plugins/WebBaseNetscapePluginView.m:
2337 (-[WebBaseNetscapePluginView restartNullEvents]):
2339 2006-08-14 Maciej Stachowiak <mjs@apple.com>
2343 - removed WebKit-level dependencies from WebFormDataStream. Use WebCore version of system interface
2345 * Loader/WebFormDataStream.m:
2347 (formEventCallback):
2349 * WebCoreSupport/WebSystemInterface.m:
2350 (InitWebCoreSystemInterface):
2352 2006-08-14 Maciej Stachowiak <mjs@apple.com>
2354 Rubber stamped by Brady.
2356 - move WebFormDataStream from WebView to Loader
2358 * WebKit.xcodeproj/project.pbxproj:
2359 * WebView/WebFormDataStream.h: Removed.
2360 * WebView/WebFormDataStream.m: Removed.
2362 2006-08-13 Maciej Stachowiak <mjs@apple.com>
2366 - remove WebKit dependencies from WebSubresourceLoader, except WebFormDataStream
2368 (WebFormDataStream will be moved into the Loader directory soon)
2370 * Loader/WebFrameLoader.h:
2371 * Loader/WebFrameLoader.m:
2372 (-[WebFrameLoader _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
2373 * Loader/WebSubresourceLoader.m:
2374 (isConditionalRequest):
2375 (hasCaseInsensitivePrefix):
2378 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
2380 2006-08-13 Brady Eidson <beidson@apple.com>
2384 Relocated the WebIconLoaders
2386 * Misc/WebIconLoader.h: Moved to Loader/
2387 * Misc/WebIconLoader.m: Moved to Loader/
2388 * WebKit.xcodeproj/project.pbxproj:
2390 2006-08-13 Maciej Stachowiak <mjs@apple.com>
2394 - removed non-Loader WebKit dependencies from WebDataProtocol for
2395 real (whoops) and fix some typos.
2397 * Loader/WebDataProtocol.m:
2398 (isCaseInsensitiveEqual): Added.
2399 (+[WebDataProtocol _webIsDataProtocolURL:]): Avoid WebKit calls.
2400 (-[WebDataProtocol startLoading]): ditto
2401 * Loader/WebFrameLoader.m:
2402 (isCaseInsensitiveEqual): Fixed spelling from isCaseSensitiveEqual.
2403 (-[WebFrameLoader _canUseResourceForRequest:]): Use proper call.
2405 2006-08-13 Brady Eidson <beidson@apple.com>
2409 The way of detecting a failed icon load before was to try and construct
2410 an image from the icon and if that image construction failed, mark the icon
2412 A much more efficient way is to check for an error response. We'll still
2413 check for invalid image data, but most servers will correctly return an HTTP
2414 error on a missing icon.
2416 * Misc/WebIconLoader.m:
2417 (-[WebIconLoader didFinishLoading]): Added check for http error response
2419 2006-08-13 Maciej Stachowiak <mjs@apple.com>
2423 - remove all non-Loader dependencies from WebLoader
2425 As part of this I moved WebDataProtocol to the loader directory
2426 and removed dependencies on the rest of WebKit from that too.
2428 * Loader/WebFrameLoader.h:
2429 * Loader/WebFrameLoader.m:
2430 (-[WebFrameLoader setDefersCallbacks:]):
2431 (-[WebFrameLoader stopLoading]):
2432 (-[WebFrameLoader cancelledErrorWithRequest:]):
2433 (-[WebFrameLoader clearArchivedResources]):
2434 (-[WebFrameLoader deliverArchivedResources]):
2435 (-[WebFrameLoader deliverArchivedResourcesAfterDelay]):
2436 (isCaseSensitiveEqual):
2437 (-[WebFrameLoader _canUseResourceForRequest:]):
2438 (-[WebFrameLoader _canUseResourceWithResponse:]):
2439 (-[WebFrameLoader pendingArchivedResources]):
2440 (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
2441 (-[WebFrameLoader archiveLoadPendingForLoader:]):
2442 (-[WebFrameLoader cancelPendingArchiveLoadForLoader:]):
2443 * Loader/WebLoader.h:
2444 * Loader/WebLoader.m:
2445 (-[NSURLProtocol releaseResources]):
2446 (-[NSURLProtocol loadWithRequest:]):
2447 (-[NSURLProtocol setDefersCallbacks:]):
2448 (-[NSURLProtocol addData:allAtOnce:]):
2449 (-[NSURLProtocol resourceData]):
2450 (-[NSURLProtocol didReceiveData:lengthReceived:allAtOnce:]):
2451 (-[NSURLProtocol connection:didReceiveData:lengthReceived:]):
2452 (-[NSURLProtocol cancelWithError:]):
2453 (-[NSURLProtocol cancelledError]):
2454 * Loader/WebMainResourceLoader.m:
2455 (-[WebMainResourceLoader addData:allAtOnce:]):
2456 (-[WebMainResourceLoader didReceiveData:lengthReceived:allAtOnce:]):
2457 * Loader/WebNetscapePlugInStreamLoader.m:
2458 (-[WebNetscapePlugInStreamLoader didReceiveData:lengthReceived:allAtOnce:]):
2459 * Loader/WebSubresourceLoader.m:
2460 (-[WebSubresourceLoader didReceiveData:lengthReceived:allAtOnce:]):
2461 * WebKit.xcodeproj/project.pbxproj:
2462 * WebView/WebDataProtocol.h: Removed.
2463 * WebView/WebDataProtocol.m: Removed.
2465 2006-08-11 Tim Omernick <timo@apple.com>
2469 <http://bugs.webkit.org/show_bug.cgi?id=10111> - Menu flickers over Flash content
2470 <rdar://problem/3052546> Plugins don't work with z-index (overlapping elements, etc.)
2472 * Plugins/WebBaseNetscapePluginView.m:
2473 (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
2474 Don't just clip to the dirty region for "transparent" plug-ins -- do it for all plug-ins. This is a
2475 generally useful thing to do, as it prevents the plug-in from drawing over parts of the window that
2476 have already been drawn and are not expected to be redrawn in the same update.
2478 2006-08-11 Brady Eidson <beidson@apple.com>
2480 Reviewed by John, Timo, Adele, and Darin
2482 In addition to a few style/good-practice cleanups, this patch will convert the old icon database
2483 format to the WebCore format if the WebCore db is empty (implying this conversion has yet to take
2484 place). After the conversion, it will delete all traces of the old format to free the unneeded space
2486 * Misc/WebIconDatabase.m:
2487 (-[WebIconDatabase init]):
2488 (-[WebIconDatabase _setIconURL:forURL:]): Changed the bridge's name for this method to be more clear
2489 (-[WebIconDatabase _createFileDatabase]):
2490 (-[WebIconDatabase _iconDataForIconURL:]): This grabs the raw data for use in the conversion function
2491 (-[WebIconDatabase _convertToWebCoreFormat]): This does the actual conversion
2493 2006-08-11 Tim Omernick <timo@apple.com>
2495 Reviewed by John Sullivan.
2497 Needed for <rdar://problem/4678070>.
2499 * Plugins/WebBaseNetscapePluginView.m:
2500 (-[WebBaseNetscapePluginView sendEvent:]):
2501 Changed an assertion to an early return. It should be possible to send events, especially updateEvt (for image capturing
2502 purposes), to off-screen plug-ins. It just doesn't work right now. See <rdar://problem/4318269>.
2504 2006-08-11 John Sullivan <sullivan@apple.com>
2508 - fixed <rdar://problem/4522894> Would be nice if Safari shrank pages a little if necessary
2509 to avoid printing an almost-empty page
2511 * WebView/WebHTMLView.m:
2512 (-[NSArray knowsPageRange:]):
2513 If the last page has a short-enough orphan (< 1/10 of the page height is the number I pulled
2514 out of ... the air), then we adjust the scale factor slightly and check whether this reduces
2515 the page count and thus eliminates the orphan.
2517 2006-08-07 Brady Eidson <beidson@apple.com>
2519 Reviewed by Anders and John
2521 * Misc/WebIconDatabase.m:
2522 (-[WebIconDatabase init]):
2523 (-[WebIconDatabase isIconExpiredForIconURL:]): Get if an icon expired
2524 (-[WebIconDatabase isIconExpiredForPageURL:]): Ditto
2525 (-[WebIconDatabase _setIconURL:forURL:]):
2526 (-[WebIconDatabase _sendNotificationForURL:]): Moved to WebKitPendingPublic for use outside of WebIconDatabase
2527 (-[WebIconDatabase loadIconFromURL:]): Allow a load outside the context of a page load
2528 * Misc/WebIconDatabasePrivate.h:
2530 * Misc/WebIconLoader.m:
2531 (-[WebIconLoader didFinishLoading]): fixed up the "flipping the switch" #defs a bit
2532 (-[WebIconLoader willSendRequest:redirectResponse:]): override to allow a load
2533 outside of the context of a page load
2535 * WebCoreSupport/WebIconDatabaseBridge.h: Added.
2536 * WebCoreSupport/WebIconDatabaseBridge.m: Added.
2537 (-[WebIconDatabaseBridge init]):
2538 (-[WebIconDatabaseBridge dealloc]):
2539 (-[WebIconDatabaseBridge loadIconFromURL:]): Kick off a load on an icon outside
2540 of the context of any page load
2541 (-[WebIconDatabaseBridge _setIconData:forIconURL:]): WebKit side of bridge method
2542 (-[WebIconDatabaseBridge _setHaveNoIconForIconURL:]): WebKit side of bridge method
2543 (-[WebIconDatabaseBridge releaseCachedLoaderForIconURL:]):
2544 (+[WebIconDatabaseBridge sharedBridgeInstance]): Moved this from WebCore to WebKit
2545 so both sides of the bridge get the WebKit version
2546 * WebKit.xcodeproj/project.pbxproj: Added some files
2547 * WebView/WebDataSource.m:
2548 (-[WebDataSource _loadIcon]): Added check for reload/expired icon to force
2549 a load even if we already have it
2551 2006-08-04 Sam Weinig <sam.weinig@gmail.com>
2555 - patch for http://bugs.webkit.org/show_bug.cgi?id=10192
2556 Make WebCore (and friends) compile with -Wshorten-64-to-32
2558 * Adds 'f' to float literals where expecting a float.
2559 * Use ceilf() instead of ceil() when assigning to a float.
2560 * Adds explicit casts where OK.
2562 NOTE: The -Wshorten-64-to-32 flag was not added for WebKit
2563 because there are still a few places where no error handling
2564 is in place. The flag can be added as soon as those are worked
2567 * Misc/WebNSControlExtras.m:
2568 (-[NSControl sizeToFitAndAdjustWindowHeight]):
2569 * Misc/WebNSImageExtras.m:
2570 (-[NSImage _web_scaleToMaxSize:]):
2571 * Misc/WebNSViewExtras.h:
2572 * Misc/WebNSViewExtras.m:
2573 * Plugins/WebBaseNetscapePluginView.m:
2574 (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
2575 (-[WebBaseNetscapePluginView drawRect:]):
2576 * WebCoreSupport/WebFrameBridge.m:
2577 (-[WebFrameBridge expiresTimeForResponse:]):
2578 * WebInspector/WebInspector.m:
2579 (-[NSWindow window]):
2580 (-[WebInspector treeViewScrollTo:]):
2581 (-[WebInspector _updateSystemColors]):
2582 (-[WebInspector webView:plugInViewWithArguments:]):
2583 (-[WebInspector outlineView:objectValueForTableColumn:byItem:]):
2584 * WebInspector/WebInspectorOutlineView.m:
2585 (-[WebInspectorOutlineView _highlightRow:clipRect:]):
2586 * WebInspector/WebNodeHighlight.m:
2587 (-[WebNodeHighlight initWithBounds:andRects:forView:]):
2588 * WebInspector/WebNodeHighlightView.m:
2589 (-[WebNodeHighlightView roundedRect:withRadius:]):
2590 (-[WebNodeHighlightView initWithHighlight:andRects:forView:]):
2591 (-[WebNodeHighlightView drawRect:]):
2592 * WebView/WebFrame.m:
2593 (-[WebFrame _opened]):
2594 * WebView/WebFrameView.m:
2595 (-[WebFrameView initWithFrame:]):
2596 * WebView/WebHTMLView.m:
2597 (-[WebHTMLView _dragImageForLinkElement:]):
2598 (-[WebHTMLView _web_setPrintingModeRecursive]):
2599 (-[WebHTMLView _web_clearPrintingModeRecursive]):
2600 (-[NSArray layout]):
2601 (-[NSArray _setPrinting:minimumPageWidth:maximumPageWidth:adjustViewSize:]):
2602 (-[NSArray adjustPageHeightNew:top:bottom:limit:]):
2603 (-[NSArray _scaleFactorForPrintOperation:]):
2604 (-[NSArray setPageWidthForPrinting:]):
2605 (-[NSArray _endPrintMode]):
2606 (-[NSArray knowsPageRange:]):
2607 (-[NSArray _originalFontA]):
2608 (-[NSArray _originalFontB]):
2609 (-[WebTextCompleteController _buildUI]):
2610 (-[WebTextCompleteController _placePopupWindow:]):
2611 * WebView/WebPDFView.m:
2612 (-[WebPDFView _makeTextStandardSize:]):
2613 (-[WebPDFView selectionImageForcingWhiteText:]):
2614 (-[PDFPrefUpdatingProxy forwardInvocation:]):
2615 * WebView/WebPreferences.m:
2616 (-[WebPreferences _floatValueForKey:]):
2617 * WebView/WebView.m:
2618 (-[WebView makeTextSmaller:]):
2619 (-[WebView canMakeTextStandardSize]):
2620 (-[WebView makeTextStandardSize:]):
2622 2006-08-04 David Kilzer <ddkilzer@kilzer.net>
2624 Reviewed by NOBODY (build fix).
2626 * WebCoreSupport/WebSubresourceLoader.m: REALLY moved to Loader/
2627 * WebView/WebFrameLoader.h: REALLY moved to Loader/
2628 * WebView/WebFrameLoader.m: REALLY moved to Loader/
2629 * WebView/WebLoader.h: REALLY moved to Loader/
2630 * WebView/WebLoader.m: REALLY moved to Loader/
2631 * WebView/WebMainResourceLoader.m: REALLY moved to Loader/
2633 2006-08-03 Maciej Stachowiak <mjs@apple.com>
2637 - moved all loader code that is slated to be moved down to WebCore to a new Loader directory
2639 (next step is to remove dependencies on the rest of WebKit from this directory)
2641 * Loader/WebNetscapePlugInStreamLoader.h: Added.
2642 * Loader/WebNetscapePlugInStreamLoader.m: Added. Cut out of WebNetscapePluginStream.m
2643 (-[WebNetscapePlugInStreamLoader initWithStream:view:]):
2644 (-[WebNetscapePlugInStreamLoader isDone]):
2645 (-[WebNetscapePlugInStreamLoader releaseResources]):
2646 (-[WebNetscapePlugInStreamLoader didReceiveResponse:]):
2647 (-[WebNetscapePlugInStreamLoader didReceiveData:lengthReceived:]):
2648 (-[WebNetscapePlugInStreamLoader didFinishLoading]):
2649 (-[WebNetscapePlugInStreamLoader didFailWithError:]):
2650 (-[WebNetscapePlugInStreamLoader cancelWithError:]):
2651 * Plugins/WebNetscapePluginStream.m:
2652 * WebKit.xcodeproj/project.pbxproj:
2653 * WebCoreSupport/WebSubresourceLoader.h: Moved to Loader/
2654 * WebCoreSupport/WebSubresourceLoader.m: Moved to Loader/
2655 * WebView/WebFrameLoader.h: Moved to Loader/
2656 * WebView/WebFrameLoader.m: Moved to Loader/
2657 * WebView/WebLoader.h: Moved to Loader/
2658 * WebView/WebLoader.m: Moved to Loader/
2659 * WebView/WebMainResourceLoader.h: Moved to Loader/
2660 * WebView/WebMainResourceLoader.m: Moved to Loader/
2662 2006-08-03 Tim Omernick <timo@apple.com>
2664 Reviewed by Kevin Decker.
2666 <rdar://problem/4667460> Windowless OpenGL plug-ins render incorrectly on PowerPC
2668 * Plugins/WebBaseNetscapePluginView.m:
2669 (-[WebBaseNetscapePluginView _aglOffscreenImageForDrawingInRect:]):
2670 Fixed color component swapping so that it works on both x86 and PPC. See comments.
2672 2006-08-03 Brady Eidson <beidson@apple.com>
2674 Reviewed by Tim Hatcher's rubber stamp
2675 Fixed Intel build break caused by weinig's -W change in r15781
2677 * WebView/WebView.m: wrapped cpu-dependent defs with defined() macro
2679 2006-08-03 Maciej Stachowiak <mjs@apple.com>
2683 - fixed problem that could cause assertion failures in Safari
2685 * Plugins/WebBaseNetscapePluginView.m:
2686 (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]): Don't
2687 allow a plugin to start new loads once its document is no longer the one actively loading.
2689 2006-08-03 Maciej Stachowiak <mjs@apple.com>
2693 - remove use of WebDataSource from WebLoader and subclasses, just have them talk to the
2694 WebFrameLoader instead.
2696 For now this is done by forarding all the calls.
2698 * Misc/WebIconLoader.m:
2699 (-[WebIconLoader didFinishLoading]):
2700 * Plugins/WebNetscapePluginStream.m:
2701 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
2702 (-[WebNetscapePluginStream start]):
2703 (-[WebNetscapePlugInStreamLoader didFinishLoading]):
2704 (-[WebNetscapePlugInStreamLoader didFailWithError:]):
2705 (-[WebNetscapePlugInStreamLoader cancelWithError:]):
2706 * WebCoreSupport/WebFrameBridge.m:
2707 (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
2708 (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
2709 * WebCoreSupport/WebSubresourceLoader.h:
2710 * WebCoreSupport/WebSubresourceLoader.m:
2711 (-[WebSubresourceLoader initWithLoader:frameLoader:]):
2712 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
2713 (+[WebSubresourceLoader startLoadingResource:withMethod:URL:customHeaders:referrer:forFrameLoader:]):
2714 (+[WebSubresourceLoader startLoadingResource:withMethod:URL:customHeaders:postData:referrer:forFrameLoader:]):
2715 (-[WebSubresourceLoader receivedError:]):
2716 (-[WebSubresourceLoader signalFinish]):
2717 (-[WebSubresourceLoader didFailWithError:]):
2718 (-[WebSubresourceLoader cancel]):
2719 * WebKit.xcodeproj/project.pbxproj:
2720 * WebView/WebDataSource.m:
2721 (-[WebDataSource _updateLoading]):
2722 (-[WebDataSource textEncodingName]):
2723 (-[WebDataSource _mainReceivedBytesSoFar:complete:]):
2724 * WebView/WebFrameLoader.h:
2725 * WebView/WebFrameLoader.m:
2726 (-[WebFrameLoader loadIconWithRequest:]):
2727 (-[WebFrameLoader startLoadingMainResourceWithRequest:identifier:]):
2728 (-[WebFrameLoader clearIconLoader]):
2729 (-[WebFrameLoader commitProvisionalLoad]):
2730 (-[WebFrameLoader activeDataSource]):
2731 (-[WebFrameLoader _archivedSubresourceForURL:]):
2732 (-[WebFrameLoader _defersCallbacks]):
2733 (-[WebFrameLoader _identifierForInitialRequest:]):
2734 (-[WebFrameLoader _willSendRequest:forResource:redirectResponse:]):
2735 (-[WebFrameLoader _didReceiveAuthenticationChallenge:forResource:]):
2736 (-[WebFrameLoader _didCancelAuthenticationChallenge:forResource:]):
2737 (-[WebFrameLoader _didReceiveResponse:forResource:]):
2738 (-[WebFrameLoader _didReceiveData:contentLength:forResource:]):
2739 (-[WebFrameLoader _didFinishLoadingForResource:]):
2740 (-[WebFrameLoader _didFailLoadingWithError:forResource:]):
2741 (-[WebFrameLoader _privateBrowsingEnabled]):
2742 (-[WebFrameLoader _addPlugInStreamLoader:]):
2743 (-[WebFrameLoader _removePlugInStreamLoader:]):
2744 (-[WebFrameLoader _finishedLoadingResource]):
2745 (-[WebFrameLoader _receivedError:]):
2746 (-[WebFrameLoader _addSubresourceLoader:]):
2747 (-[WebFrameLoader _removeSubresourceLoader:]):
2748 (-[WebFrameLoader _originalRequest]):
2749 (-[WebFrameLoader webFrame]):
2750 (-[WebFrameLoader _receivedMainResourceError:complete:]):
2751 (-[WebFrameLoader initialRequest]):
2752 (-[WebFrameLoader _receivedData:]):
2753 (-[WebFrameLoader _setRequest:]):
2754 (-[WebFrameLoader _downloadWithLoadingConnection:request:response:proxy:]):
2755 (-[WebFrameLoader _handleFallbackContent]):
2756 (-[WebFrameLoader _isStopping]):
2757 (-[WebFrameLoader _decidePolicyForMIMEType:decisionListener:]):
2758 (-[WebFrameLoader _setupForReplaceByMIMEType:]):
2759 (-[WebFrameLoader _setResponse:]):
2760 (-[WebFrameLoader _mainReceivedError:complete:]):
2761 (-[WebFrameLoader _finishedLoading]):
2762 (-[WebFrameLoader _mainReceivedBytesSoFar:complete:]):
2763 (-[WebFrameLoader _iconLoaderReceivedPageIcon:]):
2764 (-[WebFrameLoader _URL]):
2765 * WebView/WebLoader.h:
2766 * WebView/WebLoader.m:
2767 (-[NSURLProtocol releaseResources]):
2768 (-[NSURLProtocol loadWithRequest:]):
2769 (-[NSURLProtocol setFrameLoader:]):
2770 (-[NSURLProtocol frameLoader]):
2771 (-[NSURLProtocol willSendRequest:redirectResponse:]):
2772 (-[NSURLProtocol didReceiveAuthenticationChallenge:]):
2773 (-[NSURLProtocol didCancelAuthenticationChallenge:]):
2774 (-[NSURLProtocol didReceiveResponse:]):
2775 (-[NSURLProtocol didReceiveData:lengthReceived:]):
2776 (-[NSURLProtocol signalFinish]):
2777 (-[NSURLProtocol didFailWithError:]):
2778 (-[NSURLProtocol willCacheResponse:]):
2779 (-[NSURLProtocol cancelWithError:]):
2780 * WebView/WebMainResourceLoader.h:
2781 * WebView/WebMainResourceLoader.m:
2782 (-[WebMainResourceLoader initWithFrameLoader:]):
2783 (-[WebMainResourceLoader receivedError:]):
2784 (-[WebMainResourceLoader cancelWithError:]):
2785 (-[WebMainResourceLoader _isPostOrRedirectAfterPost:redirectResponse:]):
2786 (-[WebMainResourceLoader addData:]):
2787 (-[WebMainResourceLoader willSendRequest:redirectResponse:]):
2788 (-[WebMainResourceLoader continueAfterContentPolicy:response:]):
2789 (-[WebMainResourceLoader continueAfterContentPolicy:]):
2790 (-[WebMainResourceLoader checkContentPolicyForResponse:]):
2791 (-[WebMainResourceLoader didReceiveResponse:]):
2792 (-[WebMainResourceLoader didReceiveData:lengthReceived:]):
2793 (-[WebMainResourceLoader didFinishLoading]):
2794 (-[WebMainResourceLoader didFailWithError:]):
2795 (-[WebMainResourceLoader loadWithRequestNow:]):
2797 2006-08-03 Sam Weinig <sam.weinig@gmail.com>
2801 - patch for http://bugs.webkit.org/show_bug.cgi?id=10176
2802 Make WebCore compile with -Wundef
2804 * Adds -Wundef flag to Xcode project
2805 * Converts #ifs to #ifdef and #ifndefs where needed.
2807 * Carbon/CarbonUtils.m:
2808 * Carbon/CarbonWindowAdapter.m:
2809 * Carbon/HIViewAdapter.m:
2810 (+[NSView bindHIViewToNSView:nsView:]):
2811 * Carbon/HIWebView.m:
2812 (HIWebViewEventHandler):
2813 * Misc/WebFileDatabase.m:
2814 (UniqueFilePathForKey):
2815 * Misc/WebNSWindowExtras.m:
2816 (swizzleInstanceMethod):
2817 * Misc/WebTypesInternal.h:
2818 * Plugins/WebNetscapeDeprecatedFunctions.c:
2819 * Plugins/WebNetscapeDeprecatedFunctions.h:
2820 * Plugins/WebNetscapePluginPackage.h:
2821 * Plugins/WebNetscapePluginPackage.m:
2822 (-[WebNetscapePluginPackage unloadWithoutShutdown]):
2823 (-[WebNetscapePluginPackage load]):
2824 * WebKit.xcodeproj/project.pbxproj:
2826 2006-08-03 Darin Adler <darin@apple.com>
2828 Reviewed by Eric Seidel.
2832 * WebView/WebFrame.m: (-[WebFramePrivate dealloc]): Release the frame loader.
2834 2006-08-02 Timothy Hatcher <timothy@apple.com>
2836 Rubber stamped by Maciej.
2838 Adding back resultsWithXpathQuery, removed by Darin's earlier change.
2839 This function is called from ObjC, but not used from JavaScript.
2841 * WebInspector/webInspector/inspector.js:
2843 2006-08-02 Timothy Hatcher <timothy@apple.com>
2847 Bug 10200: [Drosera] Deadlock between Drosera and Safari while loading page
2848 http://bugs.webkit.org/show_bug.cgi?id=10200
2850 Prevent reentrancy in our debugger callbacks. This was causing a deadlock in Drosera because
2851 suspendProcessIfPaused was being called during a DO call into Safari.
2853 Preventing reentrancy also prevents scripts that Drosera injects and evaluates from showing
2854 up in rare cases (such as a iframe loading about:blank). I thought this would prevent cases
2855 where you call a function from the console and expect it to break on a breakpoint in them, but
2856 this appears to never have worked even without this change. When that is figured out we can
2857 reconsider a better solution to reentrancy. I have filed that as bug 10214.
2859 I also removed the NSRunLoop runMode:beforeDate: calls since DO handles this for us since
2860 we don't use "onway void" as the return type for the callbacks. Note: using onway void for
2861 the listener callbacks causes bad synchronization issues and obscure crashes.
2863 * DefaultDelegates/WebScriptDebugServer.m:
2864 (-[WebScriptDebugServer webView:didLoadMainResourceForDataSource:]):
2865 (-[WebScriptDebugServer webView:didParseSource:baseLineNumber:fromURL:sourceId:forWebFrame:]):
2866 (-[WebScriptDebugServer webView:failedToParseSource:baseLineNumber:fromURL:withError:forWebFrame:]):
2867 (-[WebScriptDebugServer webView:didEnterCallFrame:sourceId:line:forWebFrame:]):
2868 (-[WebScriptDebugServer webView:willExecuteStatement:sourceId:line:forWebFrame:]):
2869 (-[WebScriptDebugServer webView:willLeaveCallFrame:sourceId:line:forWebFrame:]):
2870 (-[WebScriptDebugServer webView:exceptionWasRaised:sourceId:line:forWebFrame:]):
2871 * DefaultDelegates/WebScriptDebugServerPrivate.h:
2873 2006-08-02 Maciej Stachowiak <mjs@apple.com>
2877 - fix assertion failure on layout tests by stopping plugins from loading at a clearly defined time
2878 - add more assertions for safety
2880 * WebView/WebDataSource.m:
2881 (-[WebDataSourcePrivate dealloc]): Removed obsolete comment.
2882 (-[WebDataSource _updateLoading]): Add assertion ensuring this method is only called
2883 at a time when this data source is the one that might be loading for a frame.
2884 (-[WebDataSource _stopLoading]): Stop loading plugins as a FIXME suggests we should.
2885 * WebView/WebFrameLoader.m:
2886 (-[WebFrameLoader isLoadingPlugIns]): New helper method.
2887 (-[WebFrameLoader isLoading]): Consider plugin loads too - otherwise we won't stop them
2888 at stopLoading time.
2890 2006-08-02 Adam Roben <aroben@apple.com>
2894 - Rename TransferJob to ResourceLoader (this file was forgotten in an
2895 earlier change by Maciej)
2899 2006-08-01 Maciej Stachowiak <mjs@apple.com>
2903 - Change things around so WebFrameLoader tracks the main and provisional data source,
2904 as well as the frame load state, pulling much code out of WebFrame along the way.
2906 The most significant aspects of this change are:
2908 - management of WebDataSources and WebFrameState was moved into WebFrameLoader
2909 - there is now just one WebFrameLoader shared between the primary and provisional data source
2911 * WebKit.xcodeproj/project.pbxproj:
2912 * WebView/WebDataSource.m:
2913 (-[WebDataSourcePrivate dealloc]):
2914 (-[WebDataSource _updateLoading]):
2915 (-[WebDataSource _loadIcon]):
2916 (-[WebDataSource _setPrimaryLoadComplete:]):
2917 (-[WebDataSource _stopLoading]):
2918 (-[WebDataSource _startLoading]):
2919 (-[WebDataSource _addSubresourceLoader:]):
2920 (-[WebDataSource _removeSubresourceLoader:]):
2921 (-[WebDataSource _addPlugInStreamLoader:]):
2922 (-[WebDataSource _removePlugInStreamLoader:]):
2923 (-[WebDataSource _defersCallbacksChanged]):
2924 (-[WebDataSource _stopLoadingWithError:]):
2925 (-[WebDataSource _revertToProvisionalState]):
2926 (-[WebDataSource _setupForReplaceByMIMEType:]):
2927 (-[WebDataSource initWithRequest:]):
2928 (-[WebDataSource data]):
2929 (-[WebDataSource isLoading]):
2930 * WebView/WebFrame.m:
2931 (-[WebFramePrivate init]):
2932 (-[WebFramePrivate dealloc]):
2933 (-[WebFrame _closeOldDataSources]):
2934 (-[WebFrame _detachFromParent]):
2935 (-[WebFrame _makeDocumentView]):
2936 (-[WebFrame _receivedMainResourceError:]):
2937 (-[WebFrame _transitionToCommitted:]):
2938 (+[WebFrame _timeOfLastCompletedLoad]):
2939 (-[WebFrame _checkLoadCompleteForThisFrame]):
2940 (-[WebFrame _loadItem:withLoadType:]):
2941 (-[WebFrame _continueAfterWillSubmitForm:]):
2942 (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
2943 (-[WebFrame _initWithWebFrameView:webView:bridge:]):
2944 (-[WebFrame _frameLoader]):
2945 (-[WebFrame _provisionalLoadStarted]):
2946 (-[WebFrame _prepareForDataSourceReplacement]):
2947 (-[WebFrame _frameLoadCompleted]):
2948 (-[WebFrame provisionalDataSource]):
2949 (-[WebFrame dataSource]):
2950 (-[WebFrame stopLoading]):
2951 * WebView/WebFrameInternal.h:
2952 * WebView/WebFrameLoader.h:
2953 * WebView/WebFrameLoader.m:
2954 (-[WebFrameLoader initWithWebFrame:]):
2955 (-[WebFrameLoader dealloc]):
2956 (-[WebFrameLoader dataSource]):
2957 (-[WebFrameLoader _setDataSource:]):
2958 (-[WebFrameLoader clearDataSource]):
2959 (-[WebFrameLoader provisionalDataSource]):
2960 (-[WebFrameLoader _setProvisionalDataSource:]):
2961 (-[WebFrameLoader _clearProvisionalDataSource]):
2962 (-[WebFrameLoader state]):
2963 (+[WebFrameLoader timeOfLastCompletedLoad]):
2964 (-[WebFrameLoader _setState:]):
2965 (-[WebFrameLoader clearProvisionalLoad]):
2966 (-[WebFrameLoader markLoadComplete]):
2967 (-[WebFrameLoader commitProvisionalLoad]):
2968 (-[WebFrameLoader stopLoading]):
2969 (-[WebFrameLoader startLoading]):
2970 (-[WebFrameLoader startProvisionalLoad:]):
2971 (-[WebFrameLoader setupForReplace]):
2972 * WebView/WebFramePrivate.h:
2974 2006-08-01 Tim Omernick <timo@apple.com>
2976 Reviewed by John Sullivan.
2978 <rdar://problem/4480737> Flash crashes after it replaces itself via a document.write()
2980 I kind of hate to do this, but this is the best way to work around buggy plug-ins like Flash that assume that
2981 NPP_Destroy() cannot be called while the browser is calling one of its other plug-in functions. The classic
2982 situation is a plug-in that replaces itself via an NPN_Invoke() that executes a document.write().
2984 * Plugins/WebBaseNetscapePluginView.h:
2985 * Plugins/WebBaseNetscapePluginView.m:
2986 (-[WebBaseNetscapePluginView sendEvent:]):
2987 Call -willCallPlugInFunction and -didCallPlugInFunction around calls to the NPP_* functions.
2988 (-[WebBaseNetscapePluginView setWindowIfNecessary]):
2990 (-[WebBaseNetscapePluginView start]):
2991 It should not be possible to start a plug-in instance while we are calling into it (one of those chicken/egg
2992 problems). Added a sanity-checking assertion.
2993 (-[WebBaseNetscapePluginView stop]):
2994 If we're already calling a plug-in function, do not call NPP_Destroy(). The plug-in function we are calling
2995 may assume that its instance->pdata, or other memory freed by NPP_Destroy(), is valid and unchanged until said
2996 plugin-function returns.
2997 (-[WebBaseNetscapePluginView pluginScriptableObject]):
2998 Call -willCallPlugInFunction and -didCallPlugInFunction around calls to the NPP_* functions.
2999 (-[WebBaseNetscapePluginView willCallPlugInFunction]):
3000 Increment plug-in function call depth.
3001 (-[WebBaseNetscapePluginView didCallPlugInFunction]):
3002 Decrement plug-in function call depth. Stop if we're supposed to stop.
3003 (-[WebBaseNetscapePluginView evaluateJavaScriptPluginRequest:]):
3004 Call -willCallPlugInFunction and -didCallPlugInFunction around calls to the NPP_* functions.
3005 (-[WebBaseNetscapePluginView webFrame:didFinishLoadWithReason:]):
3007 (-[WebBaseNetscapePluginView _printedPluginBitmap]):
3010 * Plugins/WebBaseNetscapePluginStream.m:
3011 (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:]):
3012 Call -willCallPlugInFunction and -didCallPlugInFunction around calls to the NPP_* functions.
3013 (-[WebBaseNetscapePluginStream _destroyStream]):
3015 (-[WebBaseNetscapePluginStream _deliverData]):
3018 2006-08-01 Maciej Stachowiak <mjs@apple.com>
3020 - fix build after last change
3022 * WebView/WebFrame.m:
3023 (-[WebFrame _checkLoadCompleteForThisFrame]):
3025 2006-08-01 Maciej Stachowiak <mjs@apple.com>
3029 - revert part of my last fix that broke the Safari bookmarks view
3031 * WebView/WebFrame.m:
3032 (-[WebFrame _checkLoadCompleteForThisFrame]): still send layout message for non-HTML views
3034 2006-08-01 Tim Omernick <timo@apple.com>
3038 Fixed an assertion failure I ran into while debugging <rdar://problem/4652683>.
3040 * Plugins/WebNetscapePluginEmbeddedView.m:
3041 (-[WebNetscapePluginEmbeddedView redeliverStream]):
3042 Don't clear the "instance" ivar here. This code was refactored here from the old WebNetscapePluginRepresentation,
3043 which also had an "instance" ivar. It is never appropriate to clear a plug-in view's instance. That is done when
3044 the plug-in is destroyed.
3046 2006-08-01 Maciej Stachowiak <mjs@apple.com>
3050 - some refactoring in preparation for moving more stuff to WebFrameLoader.
3052 * WebView/WebFrame.m:
3053 (-[WebFrame _clearDataSource]):
3054 (-[WebFrame _detachFromParent]):
3055 (-[WebFrame _commitProvisionalLoad]):
3056 (-[WebFrame _transitionToCommitted:]):
3057 (-[WebFrame _clearProvisionalLoad]):
3058 (-[WebFrame _markLoadComplete]):
3059 (-[WebFrame _checkLoadCompleteForThisFrame]):
3060 (-[WebFrame _startProvisionalLoad:]):
3061 (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
3062 (-[WebFrame stopLoading]):
3064 2006-07-31 Maciej Stachowiak <mjs@apple.com>
3066 Reviewed by Tim Hatcher.
3068 - renamed TransferJob to ResourceLoader in WebCore
3071 (WebFrame::loadDataSource):
3072 (WebFrame::receivedRedirect):
3073 (WebFrame::receivedResponse):
3074 (WebFrame::receivedData):
3075 (WebFrame::receivedAllData):
3076 (WebFrame::setStatusText):
3079 2006-07-31 Darin Adler <darin@apple.com>
3083 - omit the margin and padding boxes for display types where they are ignored
3084 - use CSS instead of properties for table spacing and padding as suggested by Tim H.
3086 * WebInspector/webInspector/inspector.css: Added rules for spacing and padding.
3087 Added rules that hide the margin and padding boxes (borders and all but the center cell)
3088 when the hide attribute is present.
3089 * WebInspector/webInspector/inspector.html: Added classes for the rules above.
3090 Removed cellpadding and cellspacing attributes.
3091 * WebInspector/webInspector/inspector.js: Added code to hide/show the margin and
3092 padding boxes based on the display type.
3094 2006-07-31 Duncan Wilcox <duncan@mclink.it>
3098 Fixes <http://bugs.webkit.org/show_bug.cgi?id=10159>
3099 "REGRESSION: delegate returning no menu elements crashes webkit"
3101 No automated test, because there's no way to programmatically open a context menu,
3102 no manual test because there's no way to customize the context menu delegate.
3104 * WebView/WebView.m:
3105 (-[WebView _menuForElement:defaultItems:]): Make sure the context menu returned
3106 some menu items before accessing the first one.
3108 2006-07-31 Timothy Hatcher <timothy@apple.com>
3112 <rdar://problem/4658194> REGRESSION: "Search in Google"
3113 and "Search in Spotlight" fail to work on text selected in a frame
3115 Use selectedFrame to get the frame with the text selection.
3117 * WebView/WebView.m:
3118 (-[WebView _searchWithGoogleFromMenu:]):
3119 (-[WebView _searchWithSpotlightFromMenu:]):
3121 2006-07-31 Darin Adler <darin@apple.com>
3123 Reviewed by Tim Hatcher.
3125 - http://bugs.webkit.org/show_bug.cgi?id=10168
3126 add a first cut at a Metrics pane to the inspector
3128 * WebInspector/webInspector/inspector.css: Add styles for the new metrics pane.
3129 * WebInspector/webInspector/inspector.html: Add the new metrics pane, starting with
3130 the table to show the box model.
3131 * WebInspector/webInspector/inspector.js: Add the new metrics pane. Add back some
3132 "title" attributes so we have more tooltips. Removed the optional parameter to
3135 2006-07-31 Anders Carlsson <acarlsson@apple.com>
3139 * Plugins/WebPluginDatabase.m:
3140 (-[WebPluginDatabase refresh]):
3141 Create a mutable set instead of a mutable array.
3143 2006-07-30 Darin Adler <darin@apple.com>
3145 Reviewed by Tim Hatcher.
3147 * WebInspector/webInspector/inspector.js: Fix bug where a null property value
3148 leads to an empty style pane.
3150 2006-07-30 Darin Adler <darin@apple.com>
3152 Reviewed by Tim Hatcher.
3154 - http://bugs.webkit.org/show_bug.cgi?id=10163
3155 some improvements for the inspector
3157 * WebInspector/WebInspector.m:
3158 (+[WebInspector sharedWebInspector:]): Fixed bug that could cause the inspector
3159 to be garbage collected if used in an application with GC enabled.
3160 (-[WebInspector dealloc]): Removed a call to a non-existent close method.
3161 (-[WebInspector window]): Added a custom WebPreferences object and called
3162 setPrivateBrowsingEnabled:YES so the inspector won't appear in the history menu.
3163 Also call setProhibitsMainFrameScrolling:YES to try to get rid of trouble where
3164 the inspector scrolls when dragging.
3166 * WebInspector/webInspector/inspector.css: Added style for the new color swatch,
3167 and JavaScript properties. More of the style should be shared between the panes,
3168 but this should be OK for now.
3170 * WebInspector/webInspector/inspector.html: Added a first cut at a JavaScript
3171 properties pane. Needs work, but better than nothing.
3173 * WebInspector/webInspector/inspector.js: Lots of improvements:
3174 - Omit "typical" property values from computed style display, making it much shorter.
3175 - Use the words "black", "white", and "transparent" when appropriate for color values.
3176 - Refactored the loaded() function to get rid of repetitive scrollbar setup.
3177 - Added a new scrollarea for the JavaScript properties pane.
3178 - Simplified refreshScrollbars() -- we now refresh all scrollbars every time, which does no harm.
3179 - Removed unused resultsWithXpathQuery().
3180 - Use [] instead of "new Array()" and {} instead of "new Object()".
3181 - Removed unused xpathForNode().
3182 - Changed style pane to display the style for a text node's parent instead of saying
3183 it can't display the style for text.
3184 - Fixed regression I caused a while back by checking the length of a computed style
3185 and not trying to display anything if its length is 0. Before this change and the
3186 corresponding change in WebCore, we'd see a complete list of all styles with the
3187 empty string as the value for each one.
3188 - Changed the name of the computedStyle flag on the style rules array to isComputedStyle
3189 to make it easier to understand it's a boolean.
3190 - Fixed an error in the code that does !important scanning where it was trying to
3191 do a special case for computed style, but was checking the computed style flag on
3193 - Added populateStyleListItem() function to factor out things in common between the
3194 items in the top level list and the expanded tree for shorthand properties.
3195 - Added code to make a color swatch next to the textual representation for any
3196 property that contains a color.
3197 - Implemented a first cut at a simple JavaScript properties pane.
3199 2006-07-29 Darin Adler <darin@apple.com>
3201 - Removed tabs from these source files that still had them.
3202 We don't use them; that way source files look fine in editors
3203 that have tabs set to 8 spaces or to 4 spaces.
3204 - Removed allow-tabs Subversion property from the files too.
3206 * DefaultDelegates/WebDefaultPolicyDelegate.m:
3207 * History/WebHistory.m:
3208 * Misc/WebDownload.m:
3209 * Misc/WebIconDatabase.m:
3210 * Misc/WebKitErrors.m:
3211 * Misc/WebKitLogging.m:
3212 * Misc/WebNSDataExtras.m:
3213 * Misc/WebNSFileManagerExtras.m:
3214 * Panels/WebPanelAuthenticationHandler.m:
3215 * Plugins/WebBaseNetscapePluginView.m:
3216 * Plugins/npfunctions.h:
3217 * WebCoreSupport/WebSubresourceLoader.m:
3218 * WebView/WebMainResourceLoader.m:
3219 * WebView/WebView.h:
3220 * WebView/WebView.m:
3222 2006-07-29 Sam Weinig <sam.weinig@gmail.com>
3226 - patch for http://bugs.webkit.org/show_bug.cgi?id=10080
3227 Adopt pedantic changes from the Unity project to improve
3228 cross-compiler compatibility
3231 * Adding missing newline to the end of the file.
3232 * Turning on gcc warning for missing newline at the end of a source file
3233 (GCC_WARN_ABOUT_MISSING_NEWLINE in Xcode, -Wnewline in gcc).
3235 * WebKit.xcodeproj/project.pbxproj:
3236 * WebView/WebResourcePrivate.h:
3238 2006-07-29 Mitz Pettel <opendarwin.org@mitzpettel.com>
3240 Reviewed by John Sullivan.
3242 - fix http://bugs.webkit.org/show_bug.cgi?id=9984
3243 ASSERTION FAILURE: _private->mouseDownEvent != nil
3244 (WebKit/WebView/WebHTMLView.m:4863 -[WebHTMLView(WebInternal) _delegateDragSourceActionMask])
3246 * WebView/WebHTMLView.m:
3247 (-[WebHTMLView _setMouseDownEvent:]): Moved into the WebHTMLViewFileInternal category and changed
3249 (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
3250 Copy the hit HTMLView's mouse down event to the top HTMLView.
3251 (-[WebHTMLView acceptsFirstMouse:]): Added a call to _setMouseDownEvent:nil before returning.
3252 (-[WebHTMLView shouldDelayWindowOrderingForEvent:]): Added a call to _setMouseDownEvent:nil
3254 (-[WebHTMLView mouseUp:]): Added a call to _setMouseDownEvent:nil to clear the event set in
3255 mouseDown: (and used during dragging).
3256 (-[WebHTMLView _delegateDragSourceActionMask]): Copy the hit HTMLView's mouse down event to
3259 2006-07-28 Timothy Hatcher <timothy@apple.com>
3263 <rdar://problem/4657473> REGRESSION: Spell check not available from contextual menu in Mail
3265 The context menu code should be checking isContentEditable
3266 on DOMNode not just DOMElement. This is needed because DOMText
3267 will be the node class of any text that is clicked.
3269 * DefaultDelegates/WebDefaultContextMenuDelegate.m:
3270 (-[WebDefaultUIDelegate webView:contextMenuItemsForElement:defaultMenuItems:]):
3272 2006-07-25 Geoffrey Garen <ggaren@apple.com>
3274 Reviewed by Maciej, inspired by John.
3276 - Fixed <rdar://problem/4651931> 1% REGRESSION on iBench HTML due to
3277 repeated requests for non-existent favicon
3279 An optimization to avoid serializing favicon data for missing icons had stomped an
3280 optimization to avoid GETing a missing favicon more than once. The solution
3281 is a happy marriage of optimizations, ensuring that we *retain* the missing
3282 favicon's "i am missing" data without posting a notification or saving it to disk.
3284 * Misc/WebIconDatabase.m:
3285 (-[WebIconDatabase _setIconURL:forURL:]):
3287 2006-07-25 David Harrison <harrison@apple.com>
3289 Reviewed by timo and Darin.
3291 <rdar://problem/4618584> "Paste and Match Style" is not working in Mail (add SPI)
3293 * WebKit.xcodeproj/project.pbxproj:
3294 * WebView/WebView.m:
3295 (-[WebView replaceSelectionWithNode:]):
3296 (-[WebView _replaceSelectionWithNode:matchStyle:]):
3297 * WebView/WebViewPrivate.h:
3298 (-[WebView _replaceSelectionWithNode:matchStyle::]):
3299 New SPI that is same as replaceSelectionWithNode: with added parameter whether to match existing style.
3301 2006-07-24 Darin Adler <darin@apple.com>
3303 Reviewed by Adele and Justin.
3305 - update for change to require context when creating fragments from text
3306 (needed to handle whitespace properly)
3308 * WebView/WebHTMLView.m:
3309 (-[WebHTMLView _documentFragmentFromPasteboard:inContext:allowPlainText:chosePlainText:]):
3310 Added context parameter, pass through to bridge.
3311 (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]): Pass selection range as context
3312 when calling above method.
3313 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): Pass drag caret as context when
3314 calling above method.
3316 2006-07-24 Maciej Stachowiak <mjs@apple.com>
3320 - fix <rdar://problem/4609195> Help Viewer loads empty window (not getting didFailLoadingWithError: callback)
3321 (without re-introducing http://bugs.webkit.org/show_bug.cgi?id=10062 )
3323 * WebView/WebLoader.h:
3324 * WebView/WebMainResourceLoader.m:
3325 (-[WebMainResourceLoader receivedError:]): Copy in some code from the base class to do it in the proper
3326 order, surrounding the call to [ds _receivedMainResourceError:error complete:YES].
3328 2006-07-24 Anders Carlsson <acarlsson@apple.com>
3332 * Misc/WebIconDatabase.m:
3333 (-[WebIconDatabase removeAllIcons]):
3334 Make an array of the keys and iterate through it to avoid modifying the
3335 dictionary while enumerating it.
3337 2006-07-24 Timothy Hatcher <timothy@apple.com>
3339 Reviewed by John and Darin.
3341 <rdar://problem/4634290> Cannot selectively install a custom
3342 scroller that differs from the default Aqua frame size.
3344 Adds two new private methods to WebFrameView that allows
3345 an application to set a custom scroll view class. This is needed
3346 if the application wants to install a custom scroller that is wider
3347 than the typical scroller, because NSScrollView does the content
3348 rect calculations in a class method (ignoring custom scrollers.)
3349 The _setScrollViewClass method requires the class to be a subclass
3350 of WebDynamicScrollBarView, or nil can be passed to reset to the default class.
3351 A new scroll view of the specified class will then replace the previous
3352 one without the need to reload content of the frame.
3354 * WebView/WebFrameView.m:
3355 (-[WebFrameView _customScrollViewClass]):
3356 (-[WebFrameView _setCustomScrollViewClass:]):
3357 * WebView/WebFrameViewPrivate.h:
3359 2006-07-24 Alexey Proskuryakov <ap@nypop.com>
3363 Fix http://bugs.webkit.org/show_bug.cgi?id=10009
3364 REGRESSION: Schubert-IT PDF Plug-in not working for full page (works in frames)
3366 * WebView/WebView.m:
3367 (+[WebView _viewClass:andRepresentationClass:forMIMEType:]): If we've got a type supported by WebPDFView,
3368 make sure to initialize the plugin database, in case a plugin wants to handle it.
3370 2006-07-23 Mark Rowe <opendarwin.org@bdash.net.nz>
3374 Bug 9686: [Drosera] Need the ability to break into Drosera on Javascript exceptions
3375 http://bugs.webkit.org/show_bug.cgi?id=9686
3377 WebKit portion of the fix.
3379 * DefaultDelegates/WebDefaultScriptDebugDelegate.m:
3380 (-[WebDefaultScriptDebugDelegate webView:exceptionWasRaised:sourceId:line:forWebFrame:]):
3381 * DefaultDelegates/WebScriptDebugServer.h:
3382 * DefaultDelegates/WebScriptDebugServer.m:
3383 (-[WebScriptDebugServer webView:exceptionWasRaised:sourceId:line:forWebFrame:]): Notify
3384 listeners that an exception has been raised.
3385 * WebView/WebScriptDebugDelegate.h:
3386 * WebView/WebScriptDebugDelegate.m:
3387 (-[WebScriptCallFrame exceptionRaised:sourceId:line:]): Dispatch through to delegate and
3388 WebScriptDebugServer.
3390 2006-07-23 Adele Peterson <adele@apple.com>
3394 - Fix for <rdar://problem/4646276> CrashTracer: 7 crashes in Safari at com.apple.WebCore: WebCore::RenderTableSection::paint + 155
3396 * WebView/WebHTMLView.m: (-[WebHTMLView _web_layoutIfNeededRecursive:testDirtyRect:]):
3397 needsDisplay was returning NO even though the view has a dirty rect (see <rdar://problem/4647062>). Since we know about
3398 the dirty rect, we don't actually need to check needsDisplay.
3400 2006-07-22 Timothy Hatcher <timothy@apple.com>
3404 Bug 10062: REGRESSION: dom/xhtml/level2/html/HTMLIFrameElement11.xhtml asserts/crashes
3405 http://bugs.webkit.org/show_bug.cgi?id=10062
3407 2006-07-21 Timothy Hatcher <timothy@apple.com>
3411 <rdar://problem/4609195> Help Viewer loads empty window
3412 (not getting didFailLoadingWithError: callback)
3414 Call super's didFailWithError before _receivedMainResourceError
3415 because _receivedMainResourceError will cause the datasource's
3416 frame to be set to nil before the didFailLoadingWithError delegate
3417 callback is sent. (This order is needed now that WebDataSource does
3418 not hold on to the WebView; it uses the WebFrame to get to the WebView.
3419 If the WebFrame is nil we can't get to the WebView's resource load delegate.)
3421 * WebView/WebMainResourceLoader.m:
3422 (-[WebMainResourceLoader receivedError:]):
3425 2006-07-22 Timothy Hatcher <timothy@apple.com>
3429 <rdar://problem/4646318> REGRESSION: Ctrl-clicking on a selection containing a word doesn't display a complete contextual menu
3431 Show the editing context menu if the WebView is editible.
3432 The original change only checked if the DOM element was editable,
3433 and isContentEditable returns NO if entire WebView is editable.
3435 * DefaultDelegates/WebDefaultContextMenuDelegate.m:
3436 (-[WebDefaultUIDelegate webView:contextMenuItemsForElement:defaultMenuItems:]):
3438 2006-07-21 Timothy Hatcher <timothy@apple.com>
3442 <rdar://problem/4609195> Help Viewer loads empty window
3443 (not getting didFailLoadingWithError: callback)
3445 Call super's didFailWithError before _receivedMainResourceError
3446 because _receivedMainResourceError will cause the datasource's
3447 frame to be set to nil before the didFailLoadingWithError delegate
3448 callback is sent. (This order is needed now that WebDataSource does
3449 not hold on to the WebView; it uses the WebFrame to get to the WebView.
3450 If the WebFrame is nil we can't get to the WebView's resource load delegate.)
3452 * WebView/WebMainResourceLoader.m:
3453 (-[WebMainResourceLoader receivedError:]):
3455 === Safari-521.20 ===
3457 2006-07-21 Timothy Hatcher <timothy@apple.com>
3461 <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)
3463 Do not use _isEditable call since that only checks if the current
3464 selection or frame is editible. We now check if the currently clicked element
3465 is a content editible area, a textarea, an isindex or an input element that
3466 return YES to _isTextField.
3468 * DefaultDelegates/WebDefaultContextMenuDelegate.m:
3469 (-[WebDefaultUIDelegate webView:contextMenuItemsForElement:defaultMenuItems:]):
3471 2006-07-20 John Sullivan <sullivan@apple.com>
3475 - WebKit part of fix for:
3476 <rdar://problem/4557386> REGRESSION (419.3-521.19): repro Safari world leak involving
3477 closing tabs after clicking in a web page
3479 * WebCoreSupport/WebFrameBridge.m:
3480 (-[WebFrameBridge textViewWasFirstResponderAtMouseDownTime:]):
3481 renamed to be more specific (formerly wasFirstResponderAtMouseDownTime:)
3483 * WebView/WebHTMLViewInternal.h:
3484 * WebView/WebHTMLView.m:
3485 (-[WebTextCompleteController dealloc]):
3486 updated for name change
3487 (-[NSArray _setMouseDownEvent:]):
3488 Now only retains the first responder if it's a textView, since that's the only case that the only client
3489 actually cares about. This avoids a reference cycle caused by retaining self. This is the only substantive
3490 part of the patch; all the rest is just renaming for clarity, and comments.
3491 (-[NSArray mouseDown:]):
3492 updated for name change
3493 (-[WebHTMLView _textViewWasFirstResponderAtMouseDownTime:]):
3494 renamed to be more specific (formerly _wasFirstResponderAtMouseDownTime:)
3496 2006-07-19 Tim Omernick <timo@apple.com>
3500 <rdar://problem/4523432> safari crashed right after disabling "block pop up windows" (or other WebPreferences changes)
3502 * Plugins/WebBaseNetscapePluginView.m:
3503 (-[WebBaseNetscapePluginView viewWillMoveToSuperview:]):
3504 Stop the plug-in when it is removed from its superview. It is not sufficient to do this in -viewWillMoveToWindow:nil, because
3505 the WebView might still has a hostWindow at that point, which prevents the plug-in from being destroyed.
3506 There is no need to start the plug-in when moving into a superview. -viewDidMoveToWindow takes care of that.
3508 === Safari-521.19 ===
3510 2006-07-17 Tim Omernick <timo@apple.com>
3514 <rdar://problem/4612079> need a way to prevent pages from scrolling to reveal elements that are focused
3517 * WebView/WebViewPrivate.h:
3518 * WebView/WebView.m:
3519 (-[WebView setProhibitsMainFrameScrolling:]):
3520 New method. Prohibits scrolling in the WebView's main frame. Used to "lock" a WebView to a specific
3523 2006-07-17 Timothy Hatcher <timothy@apple.com>
3527 <rdar://problem/4635311> REGRESSION: WebKit should call windowScriptObjectAvailable before attaching the script debugger
3529 * WebCoreSupport/WebFrameBridge.m:
3530 (-[WebFrameBridge windowObjectCleared]):
3532 2006-07-17 Timothy Hatcher <timothy@apple.com>
3536 <rdar://problem/4634874> WebScriptObject and WebUndefined are no longer defined by WebKit
3538 Copy WebScriptObject.h from WebCore's private headers, not JavaScriptCore.
3540 * WebKit.xcodeproj/project.pbxproj:
3542 2006-07-17 John Sullivan <sullivan@apple.com>
3544 Reviewed by Tim Omernick.
3546 - fixed <rdar://problem/4604366> Orange Find highlight displays text in wrong size on PDF pages
3547 if they're not at "actual size"
3549 To match WebHTMLView, I made the methods that return attributed strings take the view's scale
3550 factor into account.
3552 * WebView/WebPDFView.m:
3553 (-[WebPDFView _scaledAttributedString:]):
3554 new helper method, takes an attributed string and returns one that's scaled by the view's
3555 current scale factor
3556 (-[WebPDFView attributedString]):
3557 pass result through _scaledAttributedString:
3558 (-[WebPDFView selectedAttributedString]):
3561 2006-07-17 Justin Garcia <justin.garcia@apple.com>
3565 Rolled the first fix for:
3566 <http://bugs.webkit.org/show_bug.cgi?id=9642>
3567 GMail Editor: Operations