1 2006-10-06 Maciej Stachowiak <mjs@apple.com>
7 * Loader/WebFrameLoader.m:
8 (-[WebFrameLoader willChangeTitleForDocumentLoadState:]):
9 (-[WebFrameLoader didChangeTitleForDocumentLoadState:]):
11 2006-10-06 Maciej Stachowiak <mjs@apple.com>
15 - move remaining movable WebDataSource fields to WebDocumentLoadState
17 * Loader/WebDocumentLoadState.h:
18 * Loader/WebDocumentLoadState.m:
19 (-[WebDocumentLoadState dealloc]):
20 (-[WebDocumentLoadState isLoadingInAPISense]):
21 (-[WebDocumentLoadState addResponse:]):
22 (-[WebDocumentLoadState stopRecordingResponses]):
23 (-[WebDocumentLoadState title]):
24 (-[WebDocumentLoadState setLastCheckedRequest:]):
25 (-[WebDocumentLoadState lastCheckedRequest]):
26 (-[WebDocumentLoadState triggeringAction]):
27 (-[WebDocumentLoadState setTriggeringAction:]):
28 (-[WebDocumentLoadState responses]):
29 (-[WebDocumentLoadState setOverrideEncoding:]):
30 (-[WebDocumentLoadState overrideEncoding]):
31 (-[WebDocumentLoadState setTitle:]):
32 * Loader/WebFrameLoader.h:
33 * Loader/WebFrameLoader.m:
34 (-[WebFrameLoader _setState:]):
35 (-[WebFrameLoader _loadRequest:archive:]):
36 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
37 (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
38 (-[WebFrameLoader reload]):
39 (-[WebFrameLoader willChangeTitleForDocumentLoadState:]):
40 (-[WebFrameLoader didChangeTitleForDocumentLoadState:]):
41 * WebCoreSupport/WebFrameBridge.m:
42 (-[WebFrameBridge setTitle:]):
43 (-[WebFrameBridge receivedData:textEncodingName:]):
44 * WebView/WebDataSource.m:
45 (-[WebDataSourcePrivate dealloc]):
46 (-[WebDataSource _didReceiveResponse:forResource:]):
47 (-[WebDataSource textEncodingName]):
48 * WebView/WebDataSourceInternal.h:
50 (-[WebFrame _opened]):
51 (-[WebFrame _checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
52 (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
53 (-[WebFrame _addChild:]):
54 (-[WebFrame _loadDataSource:withLoadType:formState:]):
55 * WebView/WebHTMLRepresentation.m:
56 (-[WebHTMLRepresentation title]):
58 (-[WebView _mainFrameOverrideEncoding]):
60 2006-10-06 Darin Adler <darin@apple.com>
64 - moved loadType into WebFrameLoader
66 * WebView/WebFramePrivate.h: Removed _setLoadType, but not _loadType because it's
67 currently used by Safari.
69 * Loader/WebFrameLoader.h:
70 * Loader/WebFrameLoader.m:
71 (-[WebFrameLoader _loadRequest:archive:]):
72 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
73 (-[WebFrameLoader isReplacing]):
74 (-[WebFrameLoader setReplacing]):
75 (-[WebFrameLoader loadType]):
76 (-[WebFrameLoader setLoadType:]):
77 * WebCoreSupport/WebFrameBridge.m:
78 (-[WebFrameBridge isLoadTypeReload]):
80 (-[WebFrame _loadType]):
81 (-[WebFrame _transitionToCommitted:]):
82 (-[WebFrame _commitProvisionalLoad:]):
83 (-[WebFrame _opened]):
84 (-[WebFrame _checkLoadCompleteForThisFrame]):
85 (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
86 (-[WebFrame _loadURL:referrer:intoChild:]):
87 (-[WebFrame _currentBackForwardListItemToResetTo]):
88 (-[WebFrame _itemForRestoringDocState]):
89 (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
90 (-[WebFrame _didFirstLayout]):
91 (-[WebFrame _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
92 (-[WebFrame _provisionalLoadStarted]):
93 (-[WebFrame loadRequest:]):
95 2006-10-06 Darin Adler <darin@apple.com>
99 - added WebFrameLoaderClient protocol -- to be used to make WebFrameLoader forget all about WebFrame
101 * Loader/WebDocumentLoadState.h: Added comment about Maciej's planned renaming here.
102 * Loader/WebFrameLoader.h:
103 * Loader/WebFrameLoader.m: Renamed webFrame to client and added the new protocol.
104 Eventually we'll be removing the dependency on WebFrame entirely.
105 * WebView/WebFrame.m: (-[WebFrame _initWithWebFrameView:webView:bridge:]): Update to call the method
108 * Loader/WebFrameLoaderClient.h: Added.
109 * WebKit.xcodeproj/project.pbxproj: Updated for new file, sorted things.
111 2006-10-06 Maciej Stachowiak <mjs@apple.com>
115 - segregate WebFrame methods into ones that should be moved into WebFrameLoader and ones that don't need to
117 Also removed useless WebFrameLoader part
119 * WebView/WebFrame.m:
120 (-[WebFramePrivate dealloc]):
122 2006-10-06 Maciej Stachowiak <mjs@apple.com>
126 - moved more data from WebDataSource to WebDocumentLoadState
128 * Loader/WebDocumentLoadState.h:
129 * Loader/WebDocumentLoadState.m:
130 (-[WebDocumentLoadState commitLoadWithData:]):
131 (-[WebDocumentLoadState prepareForLoadStart]):
132 (-[WebDocumentLoadState loadingStartedTime]):
133 (-[WebDocumentLoadState setIsClientRedirect:]):
134 (-[WebDocumentLoadState isClientRedirect]):
135 (-[WebDocumentLoadState setPrimaryLoadComplete:]):
136 (-[WebDocumentLoadState isLoadingInAPISense]):
137 * Loader/WebFrameLoader.h:
138 * Loader/WebFrameLoader.m:
139 (-[WebFrameLoader _setState:]):
140 (-[WebFrameLoader _finishedLoading]):
141 (-[WebFrameLoader documentLoadState:mainReceivedCompleteError:]):
142 (-[WebFrameLoader prepareForLoadStart]):
143 (-[WebFrameLoader subframeIsLoading]):
144 * WebView/WebDataSource.m:
145 (-[WebDataSource _fileWrapperForURL:]):
146 (-[WebDataSource _startLoading]):
147 (-[WebDataSource _loadFromPageCache:]):
148 (-[WebDataSource isLoading]):
149 * WebView/WebDataSourceInternal.h:
150 * WebView/WebFrame.m:
151 (-[WebFrame _transitionToCommitted:]):
152 (-[WebFrame _opened]):
153 (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
155 2006-10-06 Alexey Proskuryakov <ap@nypop.com>
159 http://bugs.webkit.org/show_bug.cgi?id=11183
160 REGRESSION: Safari loads error pages unstyled
162 * WebView/WebFrame.m:
163 (-[WebFrame _loadHTMLString:baseURL:unreachableURL:]):
164 Use utf-8 encoding instead of the string's "fastest" encoding.
166 2006-10-06 Maciej Stachowiak <mjs@apple.com>
170 - fixed the following bugs:
172 http://bugs.webkit.org/show_bug.cgi?id=11136
173 "REGRESSION: Safari snippet editor doesn't work"
174 http://bugs.webkit.org/show_bug.cgi?id=11140
175 "REGRESSION: view source window blank"
176 http://bugs.webkit.org/show_bug.cgi?id=11146
177 "REGRESSION: Instead of showing the error page, Safari opens its Resources folder in the Finder"
181 * Loader/WebDocumentLoadState.h:
182 * Loader/WebDocumentLoadState.m:
183 (-[WebDocumentLoadState actualRequest]): New method.
184 * WebView/WebDataSource.m:
185 (-[WebDataSource _startLoading]): We need to make sure not to start loading the main
186 resource with the fake external request for an applewebdata: request.
188 2006-10-05 Adele Peterson <adele@apple.com>
190 Reviewed by the letter 'B'.
194 * WebKit.xcodeproj/project.pbxproj:
195 * WebView/WebDynamicScrollBarsView.h:
196 * WebView/WebDynamicScrollBarsView.m:
197 (-[WebDynamicScrollBarsView updateScrollers]):
198 (-[WebDynamicScrollBarsView setAllowsScrolling:]):
199 (-[WebDynamicScrollBarsView allowsScrolling]):
200 (-[WebDynamicScrollBarsView setAllowsHorizontalScrolling:]):
201 (-[WebDynamicScrollBarsView setAllowsVerticalScrolling:]):
202 (-[WebDynamicScrollBarsView allowsHorizontalScrolling]):
203 (-[WebDynamicScrollBarsView allowsVerticalScrolling]):
204 (-[WebDynamicScrollBarsView horizontalScrollingMode]):
205 (-[WebDynamicScrollBarsView verticalScrollingMode]):
206 (-[WebDynamicScrollBarsView setHorizontalScrollingMode:]):
207 (-[WebDynamicScrollBarsView setVerticalScrollingMode:]):
208 (-[WebDynamicScrollBarsView setScrollingMode:]):
210 (-[WebView setAlwaysShowVerticalScroller:]):
211 (-[WebView alwaysShowVerticalScroller]):
212 (-[WebView setAlwaysShowHorizontalScroller:]):
213 (-[WebView alwaysShowHorizontalScroller]):
215 2006-10-05 Vladimir Olexa <vladimir.olexa@gmail.com>
219 Bug: http://bugs.webkit.org/show_bug.cgi?id=9887
220 Continuous spell checking now remembers user's setting. The change is applied globally,
221 meaning, both TextArea and TextField are affected when either of them enables/disables
224 * WebView/WebPreferenceKeysPrivate.h: added a define for WebContinuousSpellCheckingEnabled
226 (-[WebViewPrivate init]): reads WebContinuousSpellCheckingEnabled from NSUserDefaults
227 (-[WebView setContinuousSpellCheckingEnabled:]):
228 (-[WebView isContinuousSpellCheckingEnabled]):
230 2006-10-05 MorganL <morganl.webkit@yahoo.com>
234 Fixes http://bugs.webkit.org/show_bug.cgi?id=11162
237 (WebFrame::loadDataSource):
238 (WebFrame::receivedResponse):
240 2006-10-05 Don Gibson <dgibson77@gmail.com>
242 Reviewed by Darin, landed by Adam.
244 http://bugs.webkit.org/show_bug.cgi?id=11176
245 Fix win32 build, adapt to Maciej's ResourceLoader changes.
248 (WebFrame::loadDataSource):
250 2006-10-05 Marvin Decker <marv.decker@gmail.com>
254 http://bugs.webkit.org/show_bug.cgi?id=10989
255 Provide a way for embedders to implement BrowserExtensionWin
257 * COM/Interfaces/IWebUIDelegate.idl:
259 (WebFrame::createNewWindow):
262 2006-10-04 Mark Rowe <bdash@webkit.org>
264 Reviewed by NOBODY (build fix).
267 (-[WebView scrollDOMRangeToVisible:]): Move scrollDOMRangeToVisible: into the correct category.
269 2006-09-26 David Smith <catfish.man@gmail.com>
273 http://bugs.webkit.org/show_bug.cgi?id=3723
274 Add -scrollDOMRangeToVisible:
277 (-[WebView scrollDOMRangeToVisible:]):
278 * WebView/WebViewPrivate.h:
280 2006-10-03 Graham Dennis <graham.dennis@gmail.com>
284 <http://bugs.webkit.org/show_bug.cgi?id=10338>
285 When contentEditable, cursor doesn't change to hand
287 Allow the behaviour of editable links to be specified by a WebPreference
288 The preference WebKitEditableLinkBehavior has four options:
289 - AlwaysLive: Safari 2.0 behaviour
290 - OnlyLiveWithShiftKey: Firefox/WinIE behaviour (and prior WebKit-ToT behaviour)
291 - LiveWhenNotFocused: Editable links are live only when their editable block is not
292 focused, or when the shift key is pressed
293 - DefaultBehavior: This is the same as OnlyLiveWithShiftKey.
295 No layout tests, just a modification of a manual-test as it isn't possible to test
298 * WebView/WebPreferenceKeysPrivate.h:
299 * WebView/WebPreferences.m:
300 (+[WebPreferences initialize]):
301 (-[WebPreferences editableLinkBehavior]):
302 (-[WebPreferences setEditableLinkBehavior:]):
303 * WebView/WebPreferencesPrivate.h:
305 (-[WebView _updateWebCoreSettingsFromPreferences:]):
307 2006-10-03 Justin Garcia <justin.garcia@apple.com>
311 execCommand("Cut"/"Copy"/"Paste") broken in editable subframes.
313 * WebCoreSupport/WebFrameBridge.m:
314 (-[WebFrameBridge issueCutCommand]): Issue the command on the WebHTMLView, not the WebView.
315 (-[WebFrameBridge issueCopyCommand]): Ditto.
316 (-[WebFrameBridge issuePasteCommand]): Ditto.
317 (-[WebFrameBridge issuePasteAndMatchStyleCommand]): Ditto.
318 (-[WebFrameBridge issueTransposeCommand]): Fixed formatting.
319 (-[WebFrameBridge canPaste]): Ask the WebHTMLView, not the WebView.
320 * WebView/WebHTMLView.m:
321 (-[WebHTMLView copy:]): Moved to WebInternal
322 (-[WebHTMLView cut:]): Ditto.
323 (-[WebHTMLView paste:]): Ditto.
324 (-[WebHTMLView pasteAsPlainText:]): Ditto.
325 * WebView/WebHTMLViewInternal.h:
326 * WebView/WebView.m: Removed the now unused _canPaste.
327 * WebView/WebViewInternal.h: Ditto.
329 2006-10-03 Justin Garcia <justin.garcia@apple.com>
333 <rdar://problem/4763519> REGRESSION: Multipart/x-mixed-replace sub-resources fail to load
335 * Loader/WebSubresourceLoader.m:
336 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
337 Enable multipart/x-mixed-replace support on the request. This line was accidently removed during
338 some loader refactoring.
340 2006-10-02 Adam Roben <aroben@apple.com>
344 Add message paramter to WebView::mouse* methods to pass down to
348 (WebView::mouseMoved):
349 (WebView::mouseDown):
351 (WebView::mouseDoubleClick):
355 2006-10-02 Maciej Stachowiak <mjs@apple.com>
359 - take away direct knowledge of WebFrame from WebDataSource
361 * Loader/WebDocumentLoadState.h:
362 * Loader/WebDocumentLoadState.m:
363 (-[WebDocumentLoadState setFrameLoader:]):
364 (-[WebDocumentLoadState detachFromFrameLoader]):
365 * Loader/WebFrameLoader.m:
366 (-[WebFrameLoader _setDocumentLoadState:]):
367 (-[WebFrameLoader _setProvisionalDocumentLoadState:]):
368 * WebView/WebDataSource.m:
369 * WebView/WebDataSourceInternal.h:
370 * WebView/WebDocumentLoadStateMac.m:
371 (-[WebDocumentLoadStateMac detachFromFrameLoader]):
372 * WebView/WebFrame.m:
373 (-[WebFrame _loadDataSource:withLoadType:formState:]):
375 2006-10-02 Maciej Stachowiak <mjs@apple.com>
379 - move a big slice of data and logic from WebDataSource to WebDocumentLoadState
381 * Loader/WebDocumentLoadState.h:
382 * Loader/WebDocumentLoadState.m:
383 (-[WebDocumentLoadState initWithRequest:]):
384 (-[WebDocumentLoadState dealloc]):
385 (-[WebDocumentLoadState originalRequestCopy]):
386 (-[WebDocumentLoadState request]):
387 (-[WebDocumentLoadState replaceRequestURLForAnchorScrollWithURL:]):
388 (-[WebDocumentLoadState setRequest:]):
389 (-[WebDocumentLoadState setResponse:]):
390 (-[WebDocumentLoadState isStopping]):
391 (-[WebDocumentLoadState bridge]):
392 (-[WebDocumentLoadState setMainDocumentError:]):
393 (-[WebDocumentLoadState mainDocumentError]):
394 (-[WebDocumentLoadState clearErrors]):
395 (-[WebDocumentLoadState mainReceivedError:complete:]):
396 (-[WebDocumentLoadState stopLoading]):
397 (-[WebDocumentLoadState setupForReplace]):
398 (-[WebDocumentLoadState commitIfReady]):
399 (-[WebDocumentLoadState finishedLoading]):
400 (-[WebDocumentLoadState setCommitted:]):
401 (-[WebDocumentLoadState isCommitted]):
402 (-[WebDocumentLoadState setLoading:]):
403 (-[WebDocumentLoadState isLoading]):
404 (-[WebDocumentLoadState commitLoadWithData:]):
405 (-[WebDocumentLoadState doesProgressiveLoadWithMIMEType:]):
406 (-[WebDocumentLoadState receivedData:]):
407 (-[WebDocumentLoadState setupForReplaceByMIMEType:]):
408 (-[WebDocumentLoadState updateLoading]):
409 (-[WebDocumentLoadState response]):
410 * Loader/WebFrameLoader.h:
411 * Loader/WebFrameLoader.m:
412 (-[WebFrameLoader activeDocumentLoadState]):
413 (-[WebFrameLoader activeDataSource]):
414 (-[WebFrameLoader _archivedSubresourceForURL:]):
415 (-[WebFrameLoader addPlugInStreamLoader:]):
416 (-[WebFrameLoader removePlugInStreamLoader:]):
417 (-[WebFrameLoader addSubresourceLoader:]):
418 (-[WebFrameLoader removeSubresourceLoader:]):
419 (-[WebFrameLoader documentLoadState]):
420 (-[WebFrameLoader provisionalDocumentLoadState]):
421 (-[WebFrameLoader stopLoading]):
422 (-[WebFrameLoader _originalRequest]):
423 (-[WebFrameLoader _receivedData:]):
424 (-[WebFrameLoader _setRequest:]):
425 (-[WebFrameLoader bridge]):
426 (-[WebFrameLoader _handleFallbackContent]):
427 (-[WebFrameLoader _isStopping]):
428 (-[WebFrameLoader _setupForReplaceByMIMEType:]):
429 (-[WebFrameLoader _setResponse:]):
430 (-[WebFrameLoader _mainReceivedError:complete:]):
431 (-[WebFrameLoader _finishedLoading]):
432 (-[WebFrameLoader didReceiveServerRedirectForProvisionalLoadForFrame]):
433 (-[WebFrameLoader finishedLoadingDocumentLoadState:]):
434 (-[WebFrameLoader commitProvisitionalLoad]):
435 (-[WebFrameLoader committedLoadWithDocumentLoadState:data:]):
436 (-[WebFrameLoader isReplacing]):
437 (-[WebFrameLoader setReplacing]):
438 (-[WebFrameLoader revertToProvisionalWithDocumentLoadState:]):
439 (-[WebFrameLoader documentLoadState:setMainDocumentError:]):
440 (-[WebFrameLoader documentLoadState:mainReceivedCompleteError:]):
441 (-[WebFrameLoader finalSetupForReplaceWithDocumentLoadState:]):
442 * WebView/WebDataSource.m:
443 (-[WebDataSourcePrivate dealloc]):
444 (-[WebDataSource _prepareForLoadStart]):
445 (-[WebDataSource _mainDocumentError]):
446 (-[WebDataSource _finishedLoading]):
447 (-[WebDataSource _receivedData:]):
448 (-[WebDataSource _setMainDocumentError:]):
449 (-[WebDataSource _clearUnarchivingState]):
450 (-[WebDataSource _revertToProvisionalState]):
451 (-[WebDataSource _receivedMainResourceError:complete:]):
452 (-[WebDataSource _startLoading]):
453 (-[WebDataSource _loadFromPageCache:]):
454 (-[WebDataSource _bridge]):
455 (-[WebDataSource _setPrimaryLoadComplete:]):
456 (-[WebDataSource _URLForHistory]):
457 (-[WebDataSource _setTitle:]):
458 (-[WebDataSource _initWithDocumentLoadState:]):
459 (-[WebDataSource request]):
460 (-[WebDataSource response]):
461 (-[WebDataSource isLoading]):
462 (-[WebDataSource webArchive]):
463 * WebView/WebDataSourceInternal.h:
464 * WebView/WebDocumentLoadStateMac.m:
465 (-[WebDocumentLoadStateMac initWithRequest:]):
466 * WebView/WebFrame.m:
467 (-[WebFrame _createItem:]):
468 (-[WebFrame _receivedMainResourceError:]):
469 (-[WebFrame _transitionToCommitted:]):
470 (-[WebFrame _commitProvisionalLoad:]):
471 (-[WebFrame _checkLoadCompleteForThisFrame]):
472 (-[WebFrame _loadItem:withLoadType:]):
473 (-[WebFrame _continueFragmentScrollAfterNavigationPolicy:formState:]):
474 (-[WebFrame _didReceiveServerRedirectForProvisionalLoadForFrame]):
475 (-[WebFrame _provisionalLoadStarted]):
476 * WebView/WebFrameInternal.h:
478 2006-10-02 Justin Garcia <justin.garcia@apple.com>
482 <rdar://problem/4757583>
483 REGRESSION: tabbing into page focuses wrong control on 2nd pass
484 <rdar://problem/4757594>
485 REGRESSION: Form field is left with secondary selection after tabbing out of WebView
487 * WebView/WebHTMLView.m:
488 (-[NSArray maintainsInactiveSelection]): Replace code that I removed in error in the patch
489 for 9642. Only leave inactive editable selections in the WebHTMLView if the nextResponder
490 is in the same WebView.
492 2006-10-02 Maciej Stachowiak <mjs@apple.com>
496 - remove webFrame field from WebDataSourcePrivate, it can get it from WebDocumentLoadState now
498 * Loader/WebDocumentLoadState.h:
499 * Loader/WebDocumentLoadState.m:
500 (-[WebDocumentLoadState frameLoader]):
501 * WebView/WebDataSource.m:
502 (-[WebDataSourcePrivate dealloc]):
503 (-[WebDataSource _revertToProvisionalState]):
504 (-[WebDataSource _setupForReplaceByMIMEType:]):
505 (-[WebDataSource _updateLoading]):
506 (-[WebDataSource _startLoading]):
507 (-[WebDataSource _setWebFrame:]):
508 (-[WebDataSource _defersCallbacksChanged]):
509 (-[WebDataSource _stopLoading]):
510 (-[WebDataSource _webView]):
511 (-[WebDataSource _stopLoadingWithError:]):
512 (-[WebDataSource _setPrimaryLoadComplete:]):
513 (-[WebDataSource dealloc]):
514 (-[WebDataSource webFrame]):
515 (-[WebDataSource isLoading]):
517 2006-10-02 Maciej Stachowiak <mjs@apple.com>
521 - fix crash on back/forward - reattach WebDocumentLoadState to data source when needed
523 * WebView/WebDataSource.m:
524 (-[WebDataSource _setWebFrame:]):
525 (-[WebDataSource _initWithDocumentLoadState:]):
526 * WebView/WebDataSourceInternal.h:
528 2006-10-02 Maciej Stachowiak <mjs@apple.com>
530 Build fix, not reviewed.
532 - Added missing files to fix build.
534 * WebView/WebDocumentLoadStateMac.h: Added.
535 * WebView/WebDocumentLoadStateMac.m: Added.
536 (-[WebDocumentLoadStateMac initWithRequest:]):
537 (-[WebDocumentLoadStateMac dealloc]):
538 (-[WebDocumentLoadStateMac setDataSource:]):
539 (-[WebDocumentLoadStateMac dataSource]):
540 (-[WebDocumentLoadStateMac setFrameLoader:]):
542 2006-10-01 Maciej Stachowiak <mjs@apple.com>
544 Reviewed by Brady and Oliver.
546 - move things around so that WebDataSource and WebDocumentLoadState know about each other in
547 the right way. This lines things up to move nearly all functionality down to WebDocumentLoadState.
549 * Loader/WebDocumentLoadState.h:
550 * Loader/WebDocumentLoadState.m:
551 (-[WebDocumentLoadState initWithRequest:]):
552 (-[WebDocumentLoadState dealloc]):
553 (-[WebDocumentLoadState originalRequest]):
554 * Loader/WebFrameLoader.h:
555 * Loader/WebFrameLoader.m:
556 (-[WebFrameLoader dealloc]):
557 (-[WebFrameLoader addSubresourceLoader:]):
558 (-[WebFrameLoader startLoadingMainResourceWithRequest:identifier:]):
559 (-[WebFrameLoader dataSource]):
560 (-[WebFrameLoader _setDocumentLoadState:]):
561 (-[WebFrameLoader policyDataSource]):
562 (-[WebFrameLoader _setPolicyDocumentLoadState:]):
563 (-[WebFrameLoader clearDataSource]):
564 (-[WebFrameLoader provisionalDataSource]):
565 (-[WebFrameLoader _setProvisionalDocumentLoadState:]):
566 (-[WebFrameLoader _clearProvisionalDataSource]):
567 (-[WebFrameLoader _setState:]):
568 (-[WebFrameLoader clearProvisionalLoad]):
569 (-[WebFrameLoader commitProvisionalLoad]):
570 (-[WebFrameLoader stopLoading]):
571 (-[WebFrameLoader startLoading]):
572 (-[WebFrameLoader startProvisionalLoad:]):
573 (-[WebFrameLoader setupForReplace]):
574 (-[WebFrameLoader activeDocumentLoadState]):
575 (-[WebFrameLoader activeDataSource]):
576 (-[WebFrameLoader _loadRequest:archive:]):
577 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
578 (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
579 (-[WebFrameLoader reload]):
580 * WebKit.xcodeproj/project.pbxproj:
581 * WebView/WebDataSource.m:
582 (-[WebDataSourcePrivate dealloc]):
583 (-[WebDataSource _startLoading]):
584 (-[WebDataSource _setWebFrame:]):
585 (-[WebDataSource _documentLoadState]):
586 (-[WebDataSource _initWithDocumentLoadState:]):
587 (-[WebDataSource initWithRequest:]):
588 (-[WebDataSource initialRequest]):
589 (-[WebDataSource unreachableURL]):
590 * WebView/WebDataSourceInternal.h:
591 * WebView/WebFrame.m:
592 (-[WebFramePrivate dealloc]):
593 (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
594 (-[WebFrame _loadDataSource:withLoadType:formState:]):
595 (-[WebFrame _policyDataSource]):
596 (-[WebFrame _shouldReloadToHandleUnreachableURLFromRequest:]):
597 (-[WebFrame _dataSourceForDocumentLoadState:]):
598 (-[WebFrame _createDocumentLoadStateWithRequest:]):
599 * WebView/WebFrameInternal.h:
601 2006-09-29 David Hyatt <hyatt@apple.com>
603 Change the default minimum font size pref to 0 in order to allow
606 * WebView/WebPreferences.m:
607 (+[WebPreferences initialize]):
609 2006-09-28 Timothy Hatcher <timothy@apple.com>
613 Switch the inspector over to use border-image with styled buttons and selects.
615 * WebInspector/WebInspector.m:
616 (-[NSWindow window]):
617 (-[NSWindow setWebFrame:]):
618 (-[WebInspector _updateRoot]):
619 * WebInspector/webInspector/Images/button.png: Added.
620 * WebInspector/webInspector/Images/buttonDivider.png: Added.
621 * WebInspector/webInspector/Images/buttonPressed.png: Added.
622 * WebInspector/webInspector/Images/popup.png: Added.
623 * WebInspector/webInspector/Images/popupFill.png: Removed.
624 * WebInspector/webInspector/Images/popupFillPressed.png: Removed.
625 * WebInspector/webInspector/Images/popupLeft.png: Removed.
626 * WebInspector/webInspector/Images/popupLeftPressed.png: Removed.
627 * WebInspector/webInspector/Images/popupPressed.png: Added.
628 * WebInspector/webInspector/Images/popupRight.png: Removed.
629 * WebInspector/webInspector/Images/popupRightPressed.png: Removed.
630 * WebInspector/webInspector/Images/squareButtonRight.png: Removed.
631 * WebInspector/webInspector/Images/squareButtonRightPressed.png: Removed.
632 * WebInspector/webInspector/inspector.css:
633 * WebInspector/webInspector/inspector.html:
634 * WebInspector/webInspector/inspector.js:
636 2006-09-28 Alice Liu <alice.liu@apple.com>
638 fixing the windows build
641 (WebView::mouseMoved):
642 (WebView::mouseDown):
644 (WebView::mouseDoubleClick):
646 2006-09-27 Justin Garcia <justin.garcia@apple.com>
650 <rdar://problem/4044271>
651 Writing Direction menu doesn't reflect the current writing direction (9773)
653 * English.lproj/Localizable.strings: Added "Right to Left" and "Left to Right"
654 * WebView/WebHTMLView.m:
655 (-[NSArray validateUserInterfaceItem:]): Validate menu items that perform
656 toggleBaseWritingDirection and changeBaseWritingDirection.
657 Disable the menu item that changes the writing direction to NSWritingDirectionNautral
658 because NSWritingDirectionNatural's behavior can't be implemented with CSS.
659 Take control of the title of the menu item that performs toggleBaseWritingDirection:
660 instead of checking/unchecking it, otherwise we wouldn't know what a check means.
661 (-[NSArray changeBaseWritingDirection:]): ASSERT that the requested writing
662 direction is not NSWritingDirectionNatural, since we've disabled the
663 menu item that performs it.
665 2006-09-27 MorganL <morganl.webkit@yahoo.com>
667 Reviewed by Maciej, landed by Brady
669 Update URL request associated with provisional data source on redirect.
670 Notify IWebFrameLoadDelegate of redirects for the provisional load.
671 Notify IWebFrameLoadDelegate of a provisional load being commited.
673 * COM/WebDataSource.cpp:
674 (WebDataSource::replaceRequest):
675 * COM/WebDataSource.h:
677 (WebFrame::receivedRedirect):
678 (WebFrame::receivedResponse):
679 (WebFrame::receivedData):
681 2006-09-26 John Sullivan <sullivan@apple.com>
685 * WebView/WebHTMLViewPrivate.h:
686 * WebView/WebHTMLView.m:
687 (-[WebHTMLView markAllMatchesForText:caseSensitive:limit:]):
688 Added limit parameter, passed over the bridge. Stop the search if it hits limit.
690 * WebView/WebViewPrivate.h:
692 (-[WebView markAllMatchesForText:caseSensitive:highlight:limit:]):
693 Added limit parameter, passed to WebHTMLView.
695 2006-09-26 David Harrison <harrison@apple.com>
697 Reviewed by John and TimH.
699 <rdar://problem/4743256> Seed: Ctrl-Y key binding does nothing when kill ring is empty
701 Use deleteBackward: when the killring string is empty. Was always using insertText:,
702 but that ends up early-returning if the string to insert is empty.
704 * WebView/WebHTMLView.m:
706 (-[NSArray yankAndSelect:]):
708 2006-09-25 Timothy Hatcher <timothy@apple.com>
712 Use the non-deprecated method names for getComputedStyle, setEnd and setStart.
714 * WebInspector/WebInspector.m:
715 (-[WebInspector _highlightNode:]):
716 * WebView/WebHTMLView.m:
718 (-[WebHTMLView _selectRangeInMarkedText:]):
719 (-[WebTextCompleteController doCompletion]):
721 (-[WebView computedStyleForElement:pseudoElement:]):
723 2006-09-22 Timothy Hatcher <timothy@apple.com>
727 Pass all headers through unifdef to filter out BUILDING_ON_TIGER blocks
728 if MACOSX_DEPLOYMENT_TARGET is 10.4.
730 * MigrateHeaders.make:
732 2006-09-20 Justin Garcia <justin.garcia@apple.com>
736 <http://bugs.webkit.org/show_bug.cgi?id=7165>
737 TinyMCE: Dragging & dropping content always leaves a copy when editing inside a subframe
739 The top level WebHTMLView is responsible for performing dragging operations, but
740 the inner view, the view that holds the drag caret, should be consulted to determine
741 if the drag is a move drag.
743 * WebCoreSupport/WebFrameBridge.m:
744 (-[WebFrameBridge startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
745 * WebKit.xcodeproj/project.pbxproj:
746 * WebView/WebHTMLView.m:
747 (-[NSArray dragImage:at:offset:event:pasteboard:source:slideBack:]): Don't set initatedDrag here, because
748 it's only the top level WebHTMLView that performs this operation.
749 (-[WebHTMLView _setInitiatedDrag:]): Added.
750 (-[WebHTMLView _initiatedDrag]): Ditto.
751 (-[WebHTMLView _canProcessDragWithDraggingInfo:]): Ask the innerView if it initiated the drag,
752 not the top level view.
753 (-[WebHTMLView _isMoveDrag]): The top level view asks the innerView if it should perform
754 a move drag, so don't ASSERT _isTopHTMLView.
755 (-[WebHTMLView draggingUpdatedWithDraggingInfo:actionMask:]): Ask the innerView if _isMoveDrag.
756 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): Ditto.
757 * WebView/WebHTMLViewInternal.h: Added two private SPI so that
758 the top level WebHTMLView can set and get the initiatedDrag BOOL.
760 === Safari-521.27 ===
762 2006-09-20 Brady Eidson <beidson@apple.com>
764 Reviewed by Tim Omernick
766 Fixing part of a crash Tim O showed me. [WebIconDatabase init] should finish
767 gracefully even if we can't open the database
769 * Misc/WebIconDatabase.m:
770 (-[WebIconDatabase init]):
772 2006-09-20 Timothy Hatcher <timothy@apple.com>
776 <rdar://problem/4741392> Develop a system to find what version of WebKit an app was linked with
778 * Misc/WebKitVersionChecks.h: Added.
779 * Misc/WebKitVersionChecks.m: Added.
780 (WebKitLinkedOnOrAfter): Added.
781 (WebKitLinkTimeVersion): Added.
782 (WebKitRunTimeVersion): Added.
783 * WebKit.xcodeproj/project.pbxproj:
785 2006-09-20 Tim Omernick <timo@apple.com>
789 * Misc/WebIconDatabase.m:
790 (-[WebIconDatabase init]):
793 2006-09-20 Brady Eidson <beidson@apple.com>
797 Preparing to make the WebIconDatabase disabled by default - this patch tells the bridge whether its enabled or not
799 * Misc/WebIconDatabase.m:
800 (-[WebIconDatabase init]):
802 2006-09-19 Brady Eidson <beidson@apple.com>
804 Reviewed by Sarge Decker
806 <rdar://problem/4739892> and <rdar://problem/4729797>
807 - WebCore::IconDatabase needs to have and respect an enabled() flag
808 - Mail on ToT WebKit crashes in IconDatabase code when mailing a page from Safari
810 * Misc/WebIconDatabase.m:
811 (-[WebIconDatabase init]): If preference says icons are disabled, tell the bridge
812 (-[WebIconDatabase _isEnabled]): Ask the bridge if the database is enabled
814 2006-09-19 Alexey Proskuryakov <ap@nypop.com>
818 http://bugs.webkit.org/show_bug.cgi?id=10661
819 REGRESSION: CFM plug-ins (Shockwave, SVG) are not loaded
821 * Plugins/WebBasePluginPackage.m:
822 (-[WebBasePluginPackage initWithPath:]): On 32-bit PowerPC, don't bail out if
823 the bundle is nil - it can be a CFM plugin.
825 2006-09-18 Brady Eidson <beidson@apple.com>
829 Implement a bridge method so WebCore can find the reload type of a frame load
831 * WebCoreSupport/WebFrameBridge.m:
832 (-[WebFrameBridge isLoadTypeReload]):
834 2006-09-18 Sam Weinig <sam.weinig@gmail.com>
838 Patch for http://bugs.webkit.org/show_bug.cgi?id=10903
839 Yet Another Objective-C Bindings Patch
841 * MigrateHeaders.make:
843 2006-09-17 David Harrison <harrison@apple.com>
845 Reviewed by John Sullivan.
847 <rdar://problem/4494340> REGRESSION: Making the font size bigger/smaller in an HTML message doesn't affect the body until you reopen it
849 Problem was the public API -[WebView setTextSizeMultiplier] did not notify anyone that the value changed.
851 * WebView/WebDocumentInternal.h:
852 Add _textSizeMultiplierChanged to the _WebDocumentTextSizing protocol.
854 * WebView/WebHTMLView.m:
855 (-[WebHTMLView _textSizeMultiplierChanged]):
856 Send [self _updateTextSizeMultiplier].
858 * WebView/WebPDFView.m:
859 (-[WebPDFView _textSizeMultiplierChanged]):
860 ASSERT_NOT_REACHED() because WebPDFView does not track the common multiplier.
863 (-[WebView setTextSizeMultiplier:]):
864 Send [self _notifyTextSizeMultiplierChanged];
866 (-[WebView _performTextSizingSelector:withObject:onTrackingDocs:selForNonTrackingDocs:newScaleFactor:]):
867 Alter the _textSizeMultiplier directly so that notification is not sent.
870 (-[WebView _notifyTextSizeMultiplierChanged]):
871 New. Send _textSizeMultiplierChanged to all document views that track the common multiplier.
873 2006-09-16 Brady Eidson <beidson@apple.com>
877 WebIconLoader is dead, long live WebCore::IconLoader
880 * Loader/WebFrameLoader.h:
881 * Loader/WebFrameLoader.m:
882 (-[WebFrameLoader dealloc]):
883 (-[WebFrameLoader commitProvisionalLoad]):
884 * Loader/WebIconLoader.h: Removed.
885 * Loader/WebIconLoader.m: Removed.
886 * Misc/WebIconDatabase.h:
887 * Misc/WebIconDatabase.m:
888 * Misc/WebIconDatabasePrivate.h:
889 * WebCoreSupport/WebFrameBridge.m:
890 (-[WebFrameBridge notifyIconChanged:]):
891 * WebCoreSupport/WebIconDatabaseBridge.h:
892 * WebCoreSupport/WebIconDatabaseBridge.m:
893 (-[WebIconDatabaseBridge _init]):
894 (-[WebIconDatabaseBridge _setIconData:forIconURL:]):
895 (-[WebIconDatabaseBridge _setHaveNoIconForIconURL:]):
897 * WebKit.xcodeproj/project.pbxproj:
898 * WebView/WebDataSource.m:
899 (-[WebDataSourcePrivate dealloc]):
900 (-[WebDataSource _stopLoading]):
901 (-[WebDataSource _setPrimaryLoadComplete:]):
902 * WebView/WebDataSourceInternal.h:
904 2006-09-16 Mark Rowe <opendarwin.org@bdash.net.nz>
908 http://bugs.webkit.org/show_bug.cgi?id=10887
911 * MigrateHeaders.make: Remove reference to DOMEventPrivate.h.
913 2006-09-15 Timothy Hatcher <timothy@apple.com>
917 Make new style ObjC methods public API.
919 * MigrateHeaders.make:
921 2006-09-15 Sam Weinig <sam.weinig@gmail.com>
925 Patch for http://bugs.webkit.org/show_bug.cgi?id=10870
926 Auto-generate DOMNode for the Objective-C bindings
928 * MigrateHeaders.make:
930 2006-09-15 Timothy Hatcher <timothy@apple.com>
934 Call the bridge directly for alter selection calls. All of this logic is now
935 in WebCore's SelectionController.
937 * WebView/WebHTMLView.m:
938 (-[NSArray moveBackward:]):
939 (-[NSArray moveBackwardAndModifySelection:]):
940 (-[NSArray moveDown:]):
941 (-[NSArray moveDownAndModifySelection:]):
942 (-[NSArray moveForward:]):
943 (-[NSArray moveForwardAndModifySelection:]):
944 (-[NSArray moveLeft:]):
945 (-[NSArray moveLeftAndModifySelection:]):
946 (-[NSArray moveRight:]):
947 (-[NSArray moveRightAndModifySelection:]):
948 (-[NSArray moveToBeginningOfDocument:]):
949 (-[NSArray moveToBeginningOfDocumentAndModifySelection:]):
950 (-[NSArray moveToBeginningOfSentence:]):
951 (-[NSArray moveToBeginningOfSentenceAndModifySelection:]):
952 (-[NSArray moveToBeginningOfLine:]):
953 (-[NSArray moveToBeginningOfLineAndModifySelection:]):
954 (-[NSArray moveToBeginningOfParagraph:]):
955 (-[NSArray moveToBeginningOfParagraphAndModifySelection:]):
956 (-[NSArray moveToEndOfDocument:]):
957 (-[NSArray moveToEndOfDocumentAndModifySelection:]):
958 (-[NSArray moveToEndOfSentence:]):
959 (-[NSArray moveToEndOfSentenceAndModifySelection:]):
960 (-[NSArray moveToEndOfLine:]):
961 (-[NSArray moveToEndOfLineAndModifySelection:]):
962 (-[NSArray moveToEndOfParagraph:]):
963 (-[NSArray moveToEndOfParagraphAndModifySelection:]):
964 (-[NSArray moveParagraphBackwardAndModifySelection:]):
965 (-[NSArray moveParagraphForwardAndModifySelection:]):
966 (-[NSArray moveUp:]):
967 (-[NSArray moveUpAndModifySelection:]):
968 (-[NSArray moveWordBackward:]):
969 (-[NSArray moveWordBackwardAndModifySelection:]):
970 (-[NSArray moveWordForward:]):
971 (-[NSArray moveWordForwardAndModifySelection:]):
972 (-[NSArray moveWordLeft:]):
973 (-[NSArray moveWordLeftAndModifySelection:]):
974 (-[NSArray moveWordRight:]):
975 (-[NSArray moveWordRightAndModifySelection:]):
976 (-[NSArray pageUp:]):
977 (-[NSArray pageDown:]):
978 (-[NSArray pageUpAndModifySelection:]):
979 (-[NSArray pageDownAndModifySelection:]):
981 2006-09-15 Adam Roben <aroben@apple.com>
985 Fixes http://bugs.webkit.org/show_bug.cgi?id=10876
986 containsItemForURLUnicode uses matchLetter instead of
989 Small fixes for _WebCoreHistoryProvider.
991 * History/WebHistory.m: Consistently use BUFFER_SIZE #define
992 (-[_WebCoreHistoryProvider containsItemForURLLatin1:length:]):
993 (-[_WebCoreHistoryProvider containsItemForURLUnicode:length:]):
994 Replace incorrect call to matchLetter to matchUnicodeLetter
996 2006-09-13 Brady Eidson <beidson@apple.com>
1000 Add infrastructure to support icon loads taking place in WebCore
1001 Will remove WebKit icon loaders in a later patch
1003 * WebCoreSupport/WebFrameBridge.m:
1004 (-[WebFrameBridge notifyIconChanged:]):
1005 (-[WebFrameBridge originalRequestURL]):
1006 - Nuked two old, obsolete methods
1007 - Added bridge for notifying of an icon change
1008 - Added bridge for getting the "original request URL" which is still needed
1009 until that info is available in the WebCore loaders
1011 * WebView/WebDataSource.m:
1012 (-[WebDataSource _loadIcon]):
1013 - Empty body just for now, as it still gets called - next patch will prune all the old impl out
1015 2006-09-13 Timothy Hatcher <timothy@apple.com>
1019 <rdar://problem/4726416> obsolete confusing "ADVISORY NOTE" comment in WebHistory.h
1021 Removed the "ADVISORY NOTE: This method may change for the 1.0 SDK" comments.
1023 * History/WebHistory.h:
1025 === Safari-521.26 ===
1027 2006-09-11 MorganL <morlmor@yahoo.com>
1029 Reviewed/landed by aroben.
1031 Fixes http://bugs.webkit.org/show_bug.cgi?id=10765
1032 Windows build busted due to std::copy usage in Vector.h
1034 * WebKit.vcproj/WebKit.vcproj: Define _SCL_SECURE_NO_DEPRECATE to get
1035 rid of deprecation warnings on std::copy
1037 2006-09-11 Brady Eidson <beidson@apple.com>
1039 Despite the fact that some people built okay without this change, it sure was biting me,
1040 probably because I just wiped my build directory for a fresh build -
1041 Today's earlier removal of DOMList.h needed to occur in MigrateHeaders.make, as well
1043 * MigrateHeaders.make: removed DOMList.h
1045 2006-09-10 Darin Adler <darin@apple.com>
1049 - fix http://bugs.webkit.org/show_bug.cgi?id=10547
1050 REGRESSION: Links that should open in a new window open in the same window,
1051 while opening another blank window
1053 * WebView/WebFrame.m:
1054 (-[WebFrame _continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
1055 Changed a mistaken "self" to "frame", which was the cause of the bug. Also
1056 fixed the method so that it won't crash if createWebViewWithRequest does
1057 something that has a side effect of releasing this WebView or this frame
1058 by retaining "self" and "frame" as needed. Also fixed a problem where the
1059 code to set "opener" was backwards, and would set the opener of the old
1060 frame to point to the new frame instead of vice versa.
1062 2006-09-09 Sam Weinig <sam.weinig@gmail.com>
1066 Patch for http://bugs.webkit.org/show_bug.cgi?id=10795
1067 Auto-generate the Objective-C DOM XPath bindings
1069 * MigrateHeaders.make:
1071 2006-09-09 Sam Weinig <sam.weinig@gmail.com>
1075 Patch for http://bugs.webkit.org/show_bug.cgi?id=10791
1076 Even More Objective-C DOM auto-generation cleanup
1078 * MigrateHeaders.make:
1080 2006-09-08 Tim Omernick <timo@apple.com>
1082 Reviewed by Brady Eidson.
1084 Rolled out Maciej's code cleanup from 8/22. It turns out that keeping the "loading" flag
1085 is a useful optimization, as it avoids many Objective-C method calls while polling resources
1086 for their load state.
1088 This fixes a 3-4% PLT performance regression (as measured on my MacBook Pro).
1090 * Loader/WebFrameLoader.m:
1091 (-[WebFrameLoader addPlugInStreamLoader:]):
1092 (-[WebFrameLoader removePlugInStreamLoader:]):
1093 (-[WebFrameLoader addSubresourceLoader:]):
1094 (-[WebFrameLoader removeSubresourceLoader:]):
1095 * WebView/WebDataSource.m:
1096 (-[WebDataSourcePrivate dealloc]):
1097 (-[WebDataSource _prepareForLoadStart]):
1098 (-[WebDataSource _setLoading:]):
1099 (-[WebDataSource _updateLoading]):
1100 (-[WebDataSource _startLoading]):
1101 (-[WebDataSource _stopLoading]):
1102 (-[WebDataSource _setPrimaryLoadComplete:]):
1103 (-[WebDataSource isLoading]):
1104 * WebView/WebDataSourceInternal.h:
1106 2006-09-07 Sam Weinig <sam.weinig@gmail.com>
1108 Reviewed by Darin and Tim H.
1110 Patch for http://bugs.webkit.org/show_bug.cgi?id=10774
1111 Auto-generate the Objective-C DOM Traversal bindings
1113 * MigrateHeaders.make:
1115 2006-09-07 Sam Weinig <sam.weinig@gmail.com>
1119 Patch for http://bugs.webkit.org/show_bug.cgi?id=10766
1120 Auto-generate the Objective-C DOM Events bindings
1122 * MigrateHeaders.make:
1123 * WebKit.xcodeproj/project.pbxproj:
1125 2006-09-06 Alexey Proskuryakov <ap@nypop.com>
1127 * MigrateHeaders.make: Fixed a double slash in
1128 "$(PRIVATE_HEADERS_DIR)//DOMCharacterDataPrivate.h" (this was reported
1129 to cause a build failure under certain circumstances).
1131 2006-09-05 MorganL <morlmor@yahoocom>
1133 Reviewed/landed by aroben.
1135 Fixes bug 10743: Windows build is busted.
1138 (WebView::keyPress):
1140 2006-09-05 Timothy Hatcher <timothy@apple.com>
1144 Drastically simplified the makefile for migrating headers from
1145 WebCore and JavaScriptCore. The old version was always copying the files.
1147 * MigrateHeaders.make:
1149 2006-09-05 Darin Adler <darin@apple.com>
1153 - WebKit side of changes to encoding
1155 * WebView/WebHTMLRepresentation.m: (-[WebHTMLRepresentation documentSource]):
1156 Changed to call new -[WebCoreFrameBridge stringWithData:] instead of the calling
1157 the old methods that used a CFStringEncoding: -[WebCoreFrameBridge textEncoding]
1158 and +[WebCoreFrameBridge stringWithData:textEncoding:].
1160 * WebView/WebResource.m: (-[WebResource _stringValue]): Removed special case for
1161 nil encoding name. The bridge itself now has the rule that "nil encoding name
1162 means Latin-1", so we don't need to check for nil.
1164 * WebView/WebFrame.m: (-[WebFrame _checkLoadComplete]): Retain the frame until
1165 we get the parent frame while walking up parent frames, because it's possible
1166 for _checkLoadCompleteForThisFrame to release the last reference to the frame.
1167 (Not reviewed; needed to run performance tests successfully.)
1169 2006-09-05 Timothy Hatcher <timothy@apple.com>
1173 <rdar://problem/4682225> conflicting typedefs in Netscape plug-in headers
1175 * Plugins/npfunctions.h: fix the return type for NPN_IntFromIdentifierProcPtr to be int32_t
1177 2006-09-04 Timothy Hatcher <timothy@apple.com>
1181 Bug 10714: ObjC autogeneration needs safe-guards against easily modifying the public API
1182 http://bugs.webkit.org/show_bug.cgi?id=10714
1184 - Added the new private DOM headers.
1185 - Factored out the common commands into variables.
1186 - Made WebDashboardRegion.h private again.
1187 - Rename DOMDOMImplementation.h to DOMImplementation.h when files
1188 are migrated. Also fixes up #imports.
1190 * MigrateHeaders.make:
1192 2006-09-03 Sam Weinig <sam.weinig@gmail.com>
1194 Reviewed by Darin and Tim H.
1196 - patch for http://bugs.webkit.org/show_bug.cgi?id=10711
1197 Auto-generate the Objective-C DOM Stylesheet bindings
1199 * MigrateHeaders.make:
1201 2006-09-02 Sam Weinig <sam.weinig@gmail.com>
1205 - patch for http://bugs.webkit.org/show_bug.cgi?id=10684
1206 Auto-generate the Objective-C DOM CSS bindings
1208 * MigrateHeaders.make:
1210 2006-09-01 MorganL <morlmor@yahoo.com>
1212 Reviewed by Darin. Updated/landed by Adam.
1214 Fixes http://bugs.webkit.org/show_bug.cgi?id=10553
1218 (WebFrame::initWithName):
1220 2006-09-01 Brady Eidson <beidson@apple.com>
1224 A "never should be reached" method was reached - lets not release the shared database bridge, esp
1225 since we never retain it!
1227 * Misc/WebIconDatabase.m:
1228 (-[WebIconDatabase _applicationWillTerminate:]): Don't release the bridge
1230 2006-09-01 Darin Adler <darin@apple.com>
1234 - a few small tweaks to the icon database bridge
1236 * Misc/WebIconDatabase.m: (-[WebIconDatabase init]): Updated for name change.
1238 * WebCoreSupport/WebIconDatabaseBridge.h: Removed unneeded declarations.
1239 * WebCoreSupport/WebIconDatabaseBridge.m:
1240 (-[WebIconDatabaseBridge init]): Added. Always returns nil since you're not supposed
1241 to allocate one of these.
1242 (-[WebIconDatabaseBridge _init]): Renamed from init. Used internally to make the
1243 shared instance. Added the "self = [super init]" idiom even though it's not important
1244 in this case just to be consistent.
1245 (-[WebIconDatabaseBridge releaseCachedLoaderForIconURL:]): Moved this up in the file
1246 so it can be called without declaring it in the header.
1247 (+[WebIconDatabaseBridge sharedInstance]): Renamed. Calls the new _init. Also use
1248 CFRetain for compatibility.
1249 (-[WebIconDatabaseBridge dealloc]): Emptied this out and made it just assert (false).
1250 (-[WebIconDatabaseBridge finalize]): Added and made it assert (false) too.
1252 2006-09-01 Timothy Hatcher <timothy@apple.com>
1256 Bug 10677: Omit "-webkit-text-security: none;" from the computed style list
1257 http://bugs.webkit.org/show_bug.cgi?id=10677
1259 * WebInspector/webInspector/inspector.js:
1261 2006-08-31 Sam Weinig <sam.weinig@gmail.com>
1265 - patch for http://bugs.webkit.org/show_bug.cgi?id=10669
1266 Auto-generate the remaining Objective-C HTML DOM bindings
1268 * MigrateHeaders.make:
1270 2006-08-31 Adele Peterson <adele@apple.com>
1274 WebKit part of fix for http://bugs.webkit.org/show_bug.cgi?id=10666
1275 Password: Disallow Spelling, Font, Speech, and Writing Direction context menu
1277 * DefaultDelegates/WebDefaultContextMenuDelegate.m: (-[WebDefaultUIDelegate editingContextMenuItemsForElement:defaultMenuItems:]):
1278 Check that the selection isn't in a password field before adding these items to the default editing context menu.
1279 Search In Google, Search In Spotlight, Look up in Dictionary, Spelling, Font, Speech, Writing Direction
1280 * WebView/WebHTMLView.m: (-[WebHTMLView _isSelectionInPasswordField]): Added.
1281 * WebView/WebHTMLViewPrivate.h:
1283 2006-08-31 Sam Weinig <sam.weinig@gmail.com>
1287 - patch for http://bugs.webkit.org/show_bug.cgi?id=10653
1288 Auto-generate another 20 Objective-C DOM HTML bindings
1290 * MigrateHeaders.make:
1291 * WebKit.xcodeproj/project.pbxproj:
1293 2006-08-31 Adele Peterson <adele@apple.com>
1295 Reviewed by John Sullivan.
1297 Removed wkSecureEventInput and wkSetSecureEventInput, since this can be done with API.
1299 * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface):
1301 2006-08-31 John Sullivan <sullivan@apple.com>
1303 Reviewed by Tim Omernick
1305 - fixed <rdar://problem/4711200> Loading history would be faster if it bypassed
1306 NSURL API for local files
1308 * History/WebHistory.m:
1309 (-[WebHistoryPrivate _loadHistoryGutsFromURL:savedItemsCount:collectDiscardedItemsInto:error:]):
1310 Load file URLs using [NSDictionary dictionaryWithContentsOfFile:]. I also cleaned up some minor
1311 style issues in this method, and I removed the support for old NSArray-style history files (which we
1312 stopped using before Safari 1.0).
1314 2006-08-30 Adele Peterson <adele@apple.com>
1318 WebKit part of fix for http://bugs.webkit.org/show_bug.cgi?id=10575
1319 Enable secure input mode for new password fields
1321 * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface):
1323 2006-08-30 Brady Eidson <beidson@apple.com>
1327 <rdar://problem/4707718> Change behavior so if the WebCore::IconDatabase can't open, WebKit releases the bridge and
1328 continues on as if the IconDatabase is disabled.
1330 * Misc/WebIconDatabase.m:
1331 (-[WebIconDatabase init]): Release the bridge on failure to open
1332 * WebCoreSupport/WebIconDatabaseBridge.m:
1333 (+[WebIconDatabaseBridge sharedBridgeInstance]): Moved static shared instance out as a global
1334 (-[WebIconDatabaseBridge dealloc]): Clear pointer to the shared instance
1336 2006-08-30 Timothy Hatcher <timothy@apple.com>
1340 Simplify the header copies from WebCore and JavaScriptCore.
1341 Headers that need to be migrated from the other projects need
1342 to be added to MigrateHeaders.make.
1344 * MigrateHeaders.make: Added.
1345 * WebKit.xcodeproj/project.pbxproj:
1347 2006-08-30 Sam Weinig <sam.weinig@gmail.com>
1351 - patch for http://bugs.webkit.org/show_bug.cgi?id=10640
1352 Auto-generate 10 more Objective-C DOM HTML bindings
1354 * WebKit.xcodeproj/project.pbxproj:
1356 2006-08-30 Adele Peterson <adele@apple.com>
1360 WebKit part of fix for:
1361 http://bugs.webkit.org/show_bug.cgi?id=10576
1362 Disallow copy from new password fields
1364 * WebView/WebHTMLView.m:
1365 (-[WebHTMLView _canCopy]): Now also calls across the bridge to ask if it mayCopy.
1366 (-[WebHTMLView _canCut]): Calls _canCopy now.
1367 (-[NSArray validateUserInterfaceItem:]): Calls _canCut when validating the "Cut" menu item.
1368 This used to call _canDelete (which used to be the same as _canCut), but now _canCut also checks _canCopy.
1370 2006-08-30 Karl Adam <karladam@yahoo-inc.com>
1372 Reviewed by Eric and Tim H.
1374 Bug 10634: -webView:dragDestinationActionMaskForDraggingInfo: is ignored
1375 http://bugs.webkit.org/show_bug.cgi?id=10634
1377 Remove the check for canShowFile: from _web_bestURL: since
1378 it shouldn't be concerned with whether or not the view
1379 can show the URL, merely return the most appropriate URL.
1381 * Misc/WebNSPasteboardExtras.m:
1382 (-[NSPasteboard _web_bestURL]):
1383 * Misc/WebNSViewExtras.m:
1384 (-[NSView _web_dragOperationForDraggingInfo:]):
1386 2006-08-29 Brady Eidson <beidson@apple.com>
1388 Reviewed by Kevin Decker (Sarge)
1390 <rdar://problem/4678414> - New IconDB needs to delete icons when asked
1392 * Misc/WebIconDatabase.m:
1393 (-[WebIconDatabase removeAllIcons]): Call through to WebCore to remove icons, then send notification
1395 2006-08-29 Brady Eidson <beidson@apple.com>
1399 Added a truth value check for to setIconURL:forURL so WebKit can avoid sending a notification
1400 This is a win on the iBench
1402 * Misc/WebIconDatabase.m:
1403 (-[WebIconDatabase _setIconURL:forURL:]):
1405 2006-08-29 Brady Eidson <beidson@apple.com>
1407 Reviewed by Tim Hatchers rubber stamp
1409 Removed some accidentally left-in console spew during the conversion to the new DB
1411 * Misc/WebIconDatabase.m:
1412 (objectFromPathForKey): Nuked some NSLogs
1414 2006-08-29 Tim Omernick <timo@apple.com>
1416 Reviewed by Darin Adler.
1418 <rdar://problem/4688618> REGRESSION(10.4.7-9A241): JMol java applet fails in Safari not Firefox
1420 No layout test for now because Java doesn't work in DumpRenderTree.
1422 * Plugins/WebPluginDatabase.m:
1423 (-[WebPluginDatabase refresh]):
1424 Add each plug-in MIME type to registeredMIMETypes, even if we don't register a document view class for the
1425 MIME type. This fixes -[WebPluginDatabase isMIMETypeRegistered:] and thus fallback content for Java applets
1426 (we were always rendering fallback content, if any, for Java applets).
1428 2006-08-29 Sam Weinig <sam.weinig@gmail.com>
1432 - patch for http://bugs.webkit.org/show_bug.cgi?id=10628
1433 Auto-generate the remaining Objective-C DOM bindings
1435 Auto-generates DOMHTMLCollection, DOMHTMLElement, DOMHTMLFormElement,
1436 and DOMHTMLOptionsCollection.
1438 * WebKit.xcodeproj/project.pbxproj:
1440 2006-08-28 Brady Eidson <beidson@apple.com>
1444 Short of a few small snippets that still need to be pushed to WebCore, this
1445 is a final prune of WebIconDatabase. WebFileDatabase and WebLRUFileList are gone
1446 and the small remaining snippets of WebFileDatabase code that were still important
1447 are now in static functions in WebIconDatabase.m
1449 * Loader/WebIconLoader.m:
1450 (-[WebIconLoader didFinishLoading]): Removed the flag
1451 * Misc/WebFileDatabase.h: Removed.
1452 * Misc/WebFileDatabase.m: Removed.
1453 * Misc/WebIconDatabase.m:
1454 (+[WebIconDatabase sharedIconDatabase]):
1455 (-[WebIconDatabase init]):
1456 (-[WebIconDatabase iconForURL:withSize:cache:]):
1457 (-[WebIconDatabase iconURLForURL:]):
1458 (-[WebIconDatabase defaultIconWithSize:]):
1459 (-[WebIconDatabase retainIconForURL:]):
1460 (-[WebIconDatabase releaseIconForURL:]):
1461 (-[WebIconDatabase _isEnabled]):
1462 (-[WebIconDatabase _setIconData:forIconURL:]):
1463 (-[WebIconDatabase _setHaveNoIconForIconURL:]):
1464 (-[WebIconDatabase _setIconURL:forURL:]):
1465 (-[WebIconDatabase _hasEntryForIconURL:]):
1466 (-[WebIconDatabase _applicationWillTerminate:]):
1467 (-[WebIconDatabase _resetCachedWebPreferences:]):
1468 (uniqueFilePathForKey): Added from WebFileDatabase
1469 (objectFromPathForKey): Added from WebFileDatabase
1470 (iconDataFromPathForIconURL):
1471 (-[WebIconDatabase _convertToWebCoreFormat]): Make use of static functions and local variables
1472 instead of using WebFileDatabase and WebIconDatabase variables that are now obsolete
1473 * Misc/WebIconDatabasePrivate.h: Removed alot of obsoleted members
1474 * Misc/WebLRUFileList.h: Removed.
1475 * Misc/WebLRUFileList.m: Removed.
1476 * WebKit.xcodeproj/project.pbxproj: Deleted 4 files
1477 * WebKitPrefix.h: Removed ICONDEBUG
1479 2006-08-28 Tim Omernick <timo@apple.com>
1481 Reviewed by Darin Adler.
1483 * Plugins/WebBaseNetscapePluginView.m:
1484 (-[WebBaseNetscapePluginView createPluginScriptableObject]):
1485 Removed a bogus typecast.
1487 2006-08-28 Tim Omernick <timo@apple.com>
1489 Reviewed by John Sullivan.
1491 Part of <rdar://problem/4481553> NetscapeMoviePlugIn example code scripting doesn't work in Firefox (4319)
1492 <http://bugs.webkit.org/show_bug.cgi?id=4319>: NetscapeMoviePlugIn example code scripting doesn't work
1495 * Plugins/WebBaseNetscapePluginView.h:
1496 * Plugins/WebBaseNetscapePluginView.m:
1497 (-[WebBaseNetscapePluginView createPluginScriptableObject]):
1498 Renamed this method (see corresponding WebCore ChangeLog entry for an explanation).
1501 2006-08-28 Brady Eidson <beidson@apple.com>
1503 Reviewed by Tim Hatcher's rubberstamp
1505 Rolled out my last change (16070 - pruning WebFileDatabase code) as it caused a difficult-to-track down
1506 failure in layout tests on a release build.
1508 * Misc/WebFileDatabase.h:
1509 * Misc/WebFileDatabase.m:
1510 (+[WebFileDatabaseOp opWithCode:key:object:]):
1511 (-[WebFileDatabaseOp initWithCode:key:object:]):
1512 (-[WebFileDatabaseOp opcode]):
1513 (-[WebFileDatabaseOp key]):
1514 (-[WebFileDatabaseOp object]):
1515 (-[WebFileDatabaseOp perform:]):
1516 (-[WebFileDatabaseOp dealloc]):
1517 (SetThreadPriority):
1518 (-[WebFileDatabase _createLRUList:]):
1519 (-[WebFileDatabase _truncateToSizeLimit:]):
1520 (+[WebFileDatabase _syncLoop:]):
1522 (-[WebFileDatabase setTimer]):
1523 (-[WebFileDatabase setObject:forKey:]):
1524 (-[WebFileDatabase removeObjectForKey:]):
1525 (-[WebFileDatabase removeAllObjects]):
1526 (-[WebFileDatabase objectForKey:]):
1527 (-[WebFileDatabase performSetObject:forKey:]):
1528 (-[WebFileDatabase performRemoveObjectForKey:]):
1529 (-[WebFileDatabase open]):
1530 (-[WebFileDatabase close]):
1531 (-[WebFileDatabase lazySync:]):
1532 (-[WebFileDatabase sync]):
1533 (-[WebFileDatabase sizeLimit]):
1534 (-[WebFileDatabase count]):
1535 (-[WebFileDatabase usage]):
1536 (-[WebFileDatabase setSizeLimit:]):
1537 * Misc/WebIconDatabase.m:
1538 (-[WebIconDatabase _createFileDatabase]):
1539 (-[WebIconDatabase _loadIconDictionaries]):
1540 * WebKit.xcodeproj/project.pbxproj:
1542 2006-08-28 Darin Adler <darin@apple.com>
1544 Reviewed by Tim Hatcher.
1546 * WebInspector/webInspector/inspector.js: Add "resize: none" to the list of
1547 default values for CSS properties so it will be omitted from most displays
1550 2006-08-28 Brady Eidson <beidson@apple.com>
1554 Major prune of unnecessary WebFileDatabase code. In the end, what
1555 useful code that remains in WebFileDatabase will likely be moved directly
1556 into WebIconDatabase
1558 * Misc/WebFileDatabase.h:
1559 * Misc/WebFileDatabase.m:
1560 (-[WebFileDatabase initWithPath:]):
1561 (-[WebFileDatabase objectForKey:]):
1562 (-[WebFileDatabase open]):
1563 (-[WebFileDatabase close]):
1564 * Misc/WebIconDatabase.m:
1565 (-[WebIconDatabase _createFileDatabase]):
1566 (-[WebIconDatabase _loadIconDictionaries]):
1567 * Misc/WebLRUFileList.h: Removed.
1568 * Misc/WebLRUFileList.m: Removed.
1569 * WebKit.xcodeproj/project.pbxproj:
1571 2006-08-27 Sam Weinig <sam.weinig@gmail.com>
1575 - patch for http://bugs.webkit.org/show_bug.cgi?id=4624
1576 WebCore needs autogenerated Obj-C DOM bindings
1578 First round of auto-generated Objective C DOM bindings, starting
1581 * WebKit.xcodeproj/project.pbxproj:
1583 2006-08-25 Brady Eidson <beidson@apple.com>
1585 Reviewed by Tim Hatcher
1587 Fixed up some leaks on [WebIconDatabase init]
1589 * Misc/WebIconDatabase.m:
1590 (-[WebIconDatabase init]):
1592 2006-08-24 Timothy Hatcher <timothy@apple.com>
1596 * WebView/WebFrame.m:
1597 (-[WebFrame _updateBackground]): reworded the comment about scroll view and setDrawsBackground:YES
1598 * WebView/WebView.m:
1599 (-[WebViewPrivate dealloc]): release the background color
1601 2006-08-24 Timothy Hatcher <timothy@apple.com>
1605 WebView API to allow changing the background color that draws under transparent page backgrounds.
1607 * WebView/WebFrame.m:
1608 (-[WebFrame _makeDocumentView]):
1609 (-[WebFrame _updateBackground]):
1610 * WebView/WebFrameInternal.h:
1611 * WebView/WebFrameView.m:
1612 (-[WebFrameView drawRect:]):
1613 * WebView/WebView.m:
1614 (-[WebView setBackgroundColor:]):
1615 (-[WebView backgroundColor]):
1616 (-[WebView _commonInitializationWithFrameName:groupName:]):
1617 (-[WebView setDrawsBackground:]):
1618 * WebView/WebViewPrivate.h:
1620 2006-08-24 Timothy Hatcher <timothy@apple.com>
1624 Fix for Mail stationary. Selecting a stationary item would cause this exception.
1625 *** -[WebSubresourceLoader copyWithZone:]: selector not recognized
1626 Uncaught exception - *** -[WebSubresourceLoader copyWithZone:]: selector not recognized
1628 * Loader/WebFrameLoader.m:
1629 (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
1630 Use _webkit_setObject:forUncopiedKey: when addign the resource to pendingArchivedResources.
1632 2006-08-23 Maciej Stachowiak <mjs@apple.com>
1636 - fix assertion which I accidentally changed to one that sometimes fails
1637 http://bugs.webkit.org/show_bug.cgi?id=10531
1639 * Loader/WebDocumentLoadState.m:
1640 (-[WebDocumentLoadState dealloc]):
1641 * WebView/WebDataSource.m:
1642 (-[WebDataSourcePrivate dealloc]):
1643 (-[WebDataSource dealloc]):
1645 2006-08-23 Maciej Stachowiak <mjs@apple.com>
1649 - move WebFrame code that creates WebDataSources down to WebFrameLoader, in preparation
1650 for WebFrameLoader just holding on to WebDocumentLoadState
1652 * Loader/WebFrameLoader.h:
1653 * Loader/WebFrameLoader.m:
1654 (-[WebFrameLoader _loadRequest:archive:]):
1655 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
1656 (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
1657 (-[WebFrameLoader reload]):
1658 * WebView/WebFrame.m:
1659 (-[WebFrame _loadItem:withLoadType:]):
1660 (-[WebFrame _continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
1661 (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
1662 (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
1663 (-[WebFrame _shouldReloadToHandleUnreachableURLFromRequest:]):
1664 (-[WebFrame loadRequest:]):
1665 (-[WebFrame loadArchive:]):
1666 (-[WebFrame reload]):
1667 * WebView/WebFrameInternal.h:
1668 * WebView/WebFramePrivate.h:
1669 * WebView/WebView.m:
1670 (-[WebView setCustomTextEncodingName:]):
1672 2006-08-23 Brady Eidson <beidson@apple.com>
1676 First pass at pruning unused WebIconDatabase code. Focus on removing methods that simply
1677 have no place in the new DB at all. A few renames and a few important FIXMEs result, but no
1678 functionality changes.
1680 * Loader/WebIconLoader.m:
1681 (-[WebIconLoader didFinishLoading]): Call to WebIconDatabase instead of directly to the bridge
1682 * Misc/WebIconDatabase.h:
1683 * Misc/WebIconDatabase.m:
1684 (-[WebIconDatabase init]):
1685 (-[WebIconDatabase iconForURL:withSize:cache:]):
1686 (-[WebIconDatabase iconURLForURL:]):
1687 (-[WebIconDatabase defaultIconWithSize:]):
1688 (-[WebIconDatabase retainIconForURL:]):
1689 (-[WebIconDatabase releaseIconForURL:]):
1690 (-[WebIconDatabase removeAllIcons]):
1691 (-[WebIconDatabase _setIconData:forIconURL:]):
1692 (-[WebIconDatabase _setHaveNoIconForIconURL:]):
1693 (-[WebIconDatabase _setIconURL:forURL:]):
1694 (-[WebIconDatabase _hasEntryForIconURL:]):
1695 (-[WebIconDatabase _applicationWillTerminate:]):
1696 (-[WebIconDatabase _resetCachedWebPreferences:]):
1697 * Misc/WebIconDatabasePrivate.h: Changed setIcon: to setIconData:
1699 2006-08-23 Maciej Stachowiak <mjs@apple.com>
1703 - started factoring most of the guts of WebDataSource into a new class
1705 WebDocumentLoadState is decoupled from the rest of WebKit and will
1706 be moved down to WebCore. I only moved one of the data fields of
1707 WebDataSource for now.
1709 * Loader/WebDocumentLoadState.h: Added.
1710 * Loader/WebDocumentLoadState.m: Added.
1711 (-[WebDocumentLoadState initWithRequest:]): New class.
1712 (-[WebDocumentLoadState dealloc]):
1713 (-[WebDocumentLoadState setFrameLoader:]):
1714 (-[WebDocumentLoadState setMainResourceData:]):
1715 (-[WebDocumentLoadState mainResourceData]):
1716 * Loader/WebFrameLoader.m:
1717 (-[WebFrameLoader _setDataSource:]): Remove redundant _setWebFrame: call,
1718 it would have been called already by this point.
1719 (-[WebFrameLoader _setProvisionalDataSource:]): ditto.
1720 * WebKit.xcodeproj/project.pbxproj:
1721 * WebView/WebDataSource.m:
1722 (-[WebDataSourcePrivate dealloc]):
1723 (-[WebDataSource _setWebFrame:]):
1724 (-[WebDataSource _setPrimaryLoadComplete:]):
1725 (-[WebDataSource initWithRequest:]):
1726 (-[WebDataSource data]):
1728 2006-08-23 Maciej Stachowiak <mjs@apple.com>
1732 - refactoring of WebDataSource in preparation for moving a bunch of it to a new class
1734 - minimize WebDataSourceInternal.h to be only methods called from outside WebDataSource
1735 - reduce Private category implementation to be only the SPI methods
1736 - make new Internal and FileInternal categories which contain the
1737 remainder (depending on whether they are called from outside of
1740 * WebView/WebDataSource.m:
1741 (-[WebDataSource _setMainDocumentError:]):
1742 (addTypesFromClass):
1743 (+[WebDataSource _representationClassForMIMEType:]):
1744 (-[WebDataSource _commitIfReady]):
1745 (-[WebDataSource _commitLoadWithData:]):
1746 (-[WebDataSource _doesProgressiveLoadWithMIMEType:]):
1747 (-[WebDataSource _addResponse:]):
1748 (-[WebDataSource _revertToProvisionalState]):
1749 (-[WebDataSource _mainDocumentError]):
1750 (-[WebDataSource _addSubframeArchives:]):
1751 (-[WebDataSource _fileWrapperForURL:]):
1752 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
1753 (-[WebDataSource _decidePolicyForMIMEType:decisionListener:]):
1754 (-[WebDataSource _finishedLoading]):
1755 (-[WebDataSource _setResponse:]):
1756 (-[WebDataSource _setRequest:]):
1757 (-[WebDataSource _setupForReplaceByMIMEType:]):
1758 (-[WebDataSource _receivedMainResourceError:complete:]):
1759 (-[WebDataSource _mainReceivedError:complete:]):
1760 (-[WebDataSource _defersCallbacks]):
1761 (-[WebDataSource _downloadWithLoadingConnection:request:response:proxy:]):
1762 (-[WebDataSource _didFailLoadingWithError:forResource:]):
1763 (-[WebDataSource _didFinishLoadingForResource:]):
1764 (-[WebDataSource _didReceiveData:contentLength:forResource:]):
1765 (-[WebDataSource _didReceiveResponse:forResource:]):
1766 (-[WebDataSource _didCancelAuthenticationChallenge:forResource:]):
1767 (-[WebDataSource _didReceiveAuthenticationChallenge:forResource:]):
1768 (-[WebDataSource _willSendRequest:forResource:redirectResponse:]):
1769 (-[WebDataSource _identifierForInitialRequest:]):
1770 (-[WebDataSource _archivedSubresourceForURL:]):
1771 (-[WebDataSource _startLoading]):
1772 (-[WebDataSource _stopRecordingResponses]):
1773 (-[WebDataSource _loadingStartedTime]):
1774 (-[WebDataSource _replaceSelectionWithArchive:selectReplacement:]):
1775 (-[WebDataSource _documentFragmentWithArchive:]):
1776 (-[WebDataSource _documentFragmentWithImageResource:]):
1777 (-[WebDataSource _imageElementWithImageResource:]):
1778 (-[WebDataSource _title]):
1779 (-[WebDataSource _isStopping]):
1780 (-[WebDataSource _setWebFrame:]):
1781 (-[WebDataSource _URL]):
1782 (-[WebDataSource _loadFromPageCache:]):
1783 (-[WebDataSource _popSubframeArchiveWithName:]):
1784 (-[WebDataSource _setIsClientRedirect:]):
1785 (-[WebDataSource _setURL:]):
1786 (-[WebDataSource _setLastCheckedRequest:]):
1787 (-[WebDataSource _defersCallbacksChanged]):
1788 (-[WebDataSource _lastCheckedRequest]):
1789 (-[WebDataSource _stopLoading]):
1790 (-[WebDataSource _bridge]):
1791 (-[WebDataSource _webView]):
1792 (-[WebDataSource _triggeringAction]):
1793 (-[WebDataSource _setTriggeringAction:]):
1794 (-[WebDataSource __adoptRequest:]):
1795 (-[WebDataSource _isDocumentHTML]):
1796 (-[WebDataSource _stopLoadingWithError:]):
1797 (-[WebDataSource _setPrimaryLoadComplete:]):
1798 (-[WebDataSource _responses]):
1799 (-[WebDataSource _makeRepresentation]):
1800 (-[WebDataSource _isClientRedirect]):
1801 (-[WebDataSource _originalRequest]):
1802 (-[WebDataSource _URLForHistory]):
1803 (-[WebDataSource _addToUnarchiveState:]):
1804 (-[WebDataSource _setOverrideEncoding:]):
1805 (-[WebDataSource _setIconURL:]):
1806 (-[WebDataSource _setIconURL:withType:]):
1807 (-[WebDataSource _overrideEncoding]):
1808 (-[WebDataSource _setTitle:]):
1809 * WebView/WebDataSourceInternal.h:
1811 2006-08-23 Brady Eidson <beidson@apple.com>
1813 Reviewed by John Sullivan
1816 Flip the switch to the new Icon Database
1817 Massive code pruning is coming up
1819 * WebKitPrefix.h: Flipped the switch
1821 2006-08-23 Brady Eidson <beidson@apple.com>
1824 Since I just pushed the default URL icon from WebKit to WebCore, but
1825 WebKit was still using its version of the default icon, this patch makes it
1826 use the WebCore version
1828 * Misc/WebIconDatabase.m:
1829 (-[WebIconDatabase defaultIconWithSize:]):
1831 2006-08-22 Maciej Stachowiak <mjs@apple.com>
1835 - remove "loading" flag from WebDataSource and code that manages it; it is redundat.
1837 * Loader/WebFrameLoader.m:
1838 (-[WebFrameLoader addPlugInStreamLoader:]):
1839 (-[WebFrameLoader removePlugInStreamLoader:]):
1840 (-[WebFrameLoader addSubresourceLoader:]):
1841 (-[WebFrameLoader removeSubresourceLoader:]):
1842 * WebView/WebDataSource.m:
1843 (-[WebDataSourcePrivate dealloc]):
1844 (-[WebDataSource _setPrimaryLoadComplete:]):
1845 (-[WebDataSource _stopLoading]):
1846 (-[WebDataSource _prepareForLoadStart]):
1847 (-[WebDataSource _startLoading]):
1848 (-[WebDataSource isLoading]):
1849 * WebView/WebDataSourceInternal.h:
1851 2006-08-22 Maciej Stachowiak <mjs@apple.com>
1855 <rdar://problem/4683948> REGRESSION: Assertion failure in [FrameProgressEntry addChild:forDataSource:] (fandango.com)
1857 * Loader/WebFrameLoader.m:
1858 (-[WebFrameLoader addSubresourceLoader:]): Add a WebKit-level assertion that should fire when this bad
1860 * Loader/WebSubresourceLoader.m:
1861 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]): Prevent
1862 the situation from occuring.
1864 2006-08-22 Maciej Stachowiak <mjs@apple.com>
1868 - pull more WebDataSource code into WebFrameLoader
1869 - make WebMainResourceLoader not depend on WebKit or on SPI
1871 * Loader/WebFrameLoader.h:
1872 * Loader/WebFrameLoader.m:
1873 (-[WebFrameLoader _downloadWithLoadingConnection:request:response:proxy:]):
1874 (-[WebFrameLoader _updateIconDatabaseWithURL:]):
1875 (-[WebFrameLoader _notifyIconChanged:]):
1876 (-[WebFrameLoader _iconLoaderReceivedPageIcon:]):
1877 (-[WebFrameLoader _checkNavigationPolicyForRequest:andCall:withSelector:]):
1878 (-[WebFrameLoader _checkContentPolicyForMIMEType:andCall:withSelector:]):
1879 (-[WebFrameLoader cancelContentPolicy]):
1880 * Loader/WebIconLoader.m:
1881 (-[WebIconLoader didFinishLoading]):
1882 * Loader/WebLoader.m:
1883 (-[NSURLProtocol loadWithRequest:]):
1884 (-[NSURLProtocol setDefersCallbacks:]):
1885 * Loader/WebMainResourceLoader.h:
1886 * Loader/WebMainResourceLoader.m:
1887 (-[WebMainResourceLoader initWithFrameLoader:]):
1888 (-[WebMainResourceLoader dealloc]):
1889 (-[WebMainResourceLoader cancelWithError:]):
1890 (-[WebMainResourceLoader continueAfterNavigationPolicy:formState:]):
1891 (-[WebMainResourceLoader willSendRequest:redirectResponse:]):
1892 (-[WebMainResourceLoader continueAfterContentPolicy:]):
1893 (-[WebMainResourceLoader checkContentPolicy]):
1894 (-[WebMainResourceLoader didReceiveResponse:]):
1895 * Plugins/WebPluginContainerCheck.m:
1896 * WebCoreSupport/WebSystemInterface.m:
1897 (InitWebCoreSystemInterface):
1898 * WebView/WebDataSource.m:
1899 (-[WebDataSource _loadIcon]):
1900 (-[WebDataSource _cancelledError]):
1901 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
1902 (+[WebDataSource _representationClassForMIMEType:]):
1903 (-[WebDataSource _commitLoadWithData:]):
1904 (-[WebDataSource _isDocumentHTML]):
1905 * WebView/WebDataSourceInternal.h:
1906 * WebView/WebFramePrivate.h:
1907 * WebView/WebPolicyDelegate.m:
1908 * WebView/WebPolicyDelegatePrivate.h:
1910 2006-08-21 Maciej Stachowiak <mjs@apple.com>
1914 - move more code from WebDataSource to WebFrameLoader
1916 Also marked a few more methods in WebDataSource as likely MOVABLE in a future round, since they do not
1917 use any of WebDataSource's private data.
1919 * Loader/WebFrameLoader.h:
1920 * Loader/WebFrameLoader.m:
1921 (-[WebFrameLoader addPlugInStreamLoader:]):
1922 (-[WebFrameLoader removePlugInStreamLoader:]):
1923 (-[WebFrameLoader addSubresourceLoader:]):
1924 (-[WebFrameLoader removeSubresourceLoader:]):
1925 (-[WebFrameLoader _didReceiveAuthenticationChallenge:forResource:]):
1926 (-[WebFrameLoader _didCancelAuthenticationChallenge:forResource:]):
1927 (-[WebFrameLoader _didReceiveResponse:forResource:]):
1928 (-[WebFrameLoader _didReceiveData:contentLength:forResource:]):
1929 (-[WebFrameLoader _didFinishLoadingForResource:]):
1930 (-[WebFrameLoader _didFailLoadingWithError:forResource:]):
1931 (-[WebFrameLoader _privateBrowsingEnabled]):
1932 (-[WebFrameLoader _finishedLoadingResource]):
1933 (-[WebFrameLoader _receivedError:]):
1934 (-[WebFrameLoader _finishedLoading]):
1935 * Loader/WebMainResourceLoader.m:
1936 (-[WebMainResourceLoader didReceiveData:lengthReceived:allAtOnce:]):
1937 (-[WebMainResourceLoader didFinishLoading]):
1938 * Loader/WebNetscapePlugInStreamLoader.m:
1939 (-[WebNetscapePlugInStreamLoader didFinishLoading]):
1940 (-[WebNetscapePlugInStreamLoader didFailWithError:]):
1941 (-[WebNetscapePlugInStreamLoader cancelWithError:]):
1942 * Loader/WebSubresourceLoader.m:
1943 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
1944 (-[WebSubresourceLoader signalFinish]):
1945 (-[WebSubresourceLoader didFailWithError:]):
1946 (-[WebSubresourceLoader cancel]):
1947 * Plugins/WebNetscapePluginStream.m:
1948 (-[WebNetscapePluginStream start]):
1949 * WebView/WebDataSource.m:
1950 (-[WebDataSource _replaceSelectionWithArchive:selectReplacement:]):
1951 (-[WebDataSource _updateIconDatabaseWithURL:]):
1952 (-[WebDataSource _loadIcon]):
1953 (-[WebDataSource _setPrimaryLoadComplete:]):
1954 (-[WebDataSource _cancelledError]):
1955 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
1956 (+[WebDataSource _representationClassForMIMEType:]):
1957 (-[WebDataSource _commitLoadWithData:]):
1958 (-[WebDataSource _receivedMainResourceError:complete:]):
1959 (-[WebDataSource _iconLoaderReceivedPageIcon:]):
1960 (-[WebDataSource _isDocumentHTML]):
1961 * WebView/WebDataSourceInternal.h:
1963 2006-08-21 Brady Eidson <beidson@apple.com>
1967 Quick ICONDEBUG flag fix
1969 * Misc/WebIconDatabase.m:
1970 (-[WebIconDatabase _applicationWillTerminate:]):
1972 2006-08-21 Brady Eidson <beidson@apple.com>
1976 -Renamed an internal only method for clarity
1977 -Tweaked WebDataSource for notification purposes with the new expiring icons
1978 -Fixed a bug with the ICONDEBUG flag
1980 * Misc/WebIconDatabase.m:
1981 (-[WebIconDatabase init]):
1982 (-[WebIconDatabase iconForURL:withSize:cache:]): #ifdef bug fixed
1983 (-[WebIconDatabase _hasEntryForIconURL:]): Renamed for clarity
1984 * Misc/WebIconDatabasePrivate.h:
1985 * WebView/WebDataSource.m:
1986 (-[WebDataSource _updateIconDatabaseWithURL:]):
1987 (-[WebDataSource _notifyIconChanged:]):
1988 (-[WebDataSource _loadIcon]):
1989 (-[WebDataSource _iconLoaderReceivedPageIcon:]):
1991 2006-08-17 Maciej Stachowiak <mjs@apple.com>
1995 - pull a bit of WebDataSource code into WebFrameLoader
1997 * Loader/WebFrameLoader.m:
1998 (-[WebFrameLoader _receivedError:]):
1999 (-[WebFrameLoader webFrame]):
2000 (-[WebFrameLoader _handleFallbackContent]):
2001 (+[WebFrameLoader _canShowMIMEType:]):
2002 (+[WebFrameLoader _representationExistsForURLScheme:]):
2003 (+[WebFrameLoader _generatedMIMETypeForURLScheme:]):
2004 * WebView/WebDataSource.m:
2005 * WebView/WebDataSourceInternal.h:
2007 2006-08-17 Timothy Hatcher <timothy@apple.com>
2009 Reviewed by Kevin Decker.
2011 <rdar://problem/4606857> WebKit: WebPreferencesChangedNotification not exported in 64-bit
2015 2006-08-17 Timothy Hatcher <timothy@apple.com>
2017 Reviewed by Kevin Decker.
2019 <rdar://problem/4633896> -[WebView close] should clear all delegates and call setHostWindow:nil
2020 <rdar://problem/4649759> Crash when selecting View Source menu using Chinese (-[WebView _close])
2022 Check to make sure _private is not null. A WebView can be dealloced before _private is setup.
2023 Set the _private->closed flag at the beginning of _close to prevent reentry.
2024 Set the host window and all the delegates to nil in _close.
2026 * WebView/WebView.m:
2027 (-[WebView _close]):
2029 2006-08-16 Brady Eidson <beidson@apple.com>
2033 * Misc/WebIconDatabase.m: Pruned unused method
2034 * Misc/WebIconDatabasePrivate.h: Ditto
2037 2006-08-15 Maciej Stachowiak <mjs@apple.com>
2039 Reviewed by Adele (preliminary version) and later by Kevin.
2041 - remove most WebKit dependencies from WebMainResourceLoader.
2043 * Loader/WebFrameLoader.h:
2044 * Loader/WebFrameLoader.m:
2045 (-[WebFrameLoader cannotShowMIMETypeForURL:]):
2046 (-[WebFrameLoader interruptForPolicyChangeErrorWithRequest:]):
2047 (-[WebFrameLoader isHostedByObjectElement]):
2048 (-[WebFrameLoader isLoadingMainFrame]):
2049 (+[WebFrameLoader _canShowMIMEType:]):
2050 (+[WebFrameLoader _representationExistsForURLScheme:]):
2051 (+[WebFrameLoader _generatedMIMETypeForURLScheme:]):
2052 * Loader/WebMainResourceLoader.h:
2053 * Loader/WebMainResourceLoader.m:
2054 (-[WebMainResourceLoader interruptForPolicyChangeError]):
2055 (-[WebMainResourceLoader willSendRequest:redirectResponse:]):
2056 (isCaseInsensitiveEqual):
2057 (shouldLoadAsEmptyDocument):
2058 (-[WebMainResourceLoader continueAfterContentPolicy:response:]):
2059 (-[WebMainResourceLoader didReceiveResponse:]):
2060 (-[WebMainResourceLoader didReceiveData:lengthReceived:allAtOnce:]):
2061 (-[WebMainResourceLoader didFinishLoading]):
2062 (-[WebMainResourceLoader loadWithRequestNow:]):
2063 (-[WebMainResourceLoader loadWithRequest:]):
2065 2006-08-15 Tim Omernick <timo@apple.com>
2067 Reviewed by Kevin Decker.
2069 * Plugins/WebNetscapePluginPackage.m:
2070 (-[WebNetscapePluginPackage _unloadWithShutdown:]):
2071 Fixed a subtle problem with the 64-bit debug build -- as written, this would LOG() on 64-bit and do nothing on
2073 * Plugins/WebPluginDatabase.m:
2074 (-[WebPluginDatabase _scanForNewPlugins]):
2075 Use +[NSMutableSet set] here.
2077 2006-08-15 Tim Omernick <timo@apple.com>
2079 Reviewed by Darin Adler.
2081 <http://bugs.webkit.org/show_bug.cgi?id=8980>
2082 ASSERTION FAILED: !isLoaded (WebKit/WebKit/Plugins/WebBasePluginPackage.m:228 -[WebBasePluginPackage dealloc])
2084 <rdar://problem/4526052> intermittent assertion failure in -[WebBasePluginPackage dealloc] running layout tests (8980)
2086 * Plugins/WebPluginDatabase.h:
2087 * Plugins/WebPluginDatabase.m:
2088 (+[WebPluginDatabase installedPlugins]):
2089 Observe NSApplicationWillTerminateNotification so we can unload plug-ins on quit.
2090 (-[WebPluginDatabase plugins]):
2091 'plugins' is now a dictionary.
2092 (-[WebPluginDatabase close]):
2093 Call new -_removePlugin: method.
2094 (-[WebPluginDatabase refresh]):
2095 Moved parts of this method out into other methods: -_addPlugin:, -_removePlugin:, and -_scanForNewPlugins.
2096 (-[WebPluginDatabase _plugInPaths]):
2097 No changes; just moved in file.
2098 (-[WebPluginDatabase _addPlugin:]):
2099 New method. Refactored from -refresh. Adds a plug-in to the database.
2100 (-[WebPluginDatabase _removePlugin:]):
2101 New method. Refactored from -refresh. Remove a plug-in from the database.
2102 (-[WebPluginDatabase _scanForNewPlugins]):
2103 New method. Refactored from -refresh. Returns the list of plug-in packages on disk.
2104 (-[WebPluginDatabase _applicationWillTerminate]):
2105 New method. Called when the application terminates. Closes the plug-in database so that all plug-ins are
2106 removed from the DB (and unloaded if necessary).
2108 * Plugins/WebBasePluginPackage.h:
2109 * Plugins/WebBasePluginPackage.m:
2110 (-[WebBasePluginPackage initWithPath:]):
2111 Try to create the NSBundle first, so if the file is not a valid bundle we bail out early. This
2112 avoids some stat()s and allocations during the plug-in refresh process.
2113 (-[WebBasePluginPackage isLoaded]):
2115 (-[WebBasePluginPackage load]):
2116 Base class for plug-in packages now always loads "successfully".
2117 (-[WebBasePluginPackage dealloc]):
2118 Removed this assertion. The base plug-in package class has no concept of
2120 (-[WebBasePluginPackage finalize]):
2122 (-[WebBasePluginPackage wasRemovedFromPluginDatabase:]):
2123 Moved code to unload plug-in package to WebNetscapePluginPackage. Not all plug-in
2124 packages can be "unloaded".
2126 * Plugins/WebNetscapePluginPackage.h:
2127 * Plugins/WebNetscapePluginPackage.m:
2128 (-[WebNetscapePluginPackage _unloadWithShutdown:]):
2129 Combined old -unload and -unloadWithoutShutdown methods into this new one.
2130 (-[WebNetscapePluginPackage initWithPath:]):
2131 Call new unload method.
2132 (-[WebNetscapePluginPackage load]):
2134 (-[WebNetscapePluginPackage wasRemovedFromPluginDatabase:]):
2136 (-[WebNetscapePluginPackage open]):
2137 New method. Called when a plug-in instance starts running.
2138 (-[WebNetscapePluginPackage close]):
2139 New method. Called when a plug-in instance stops running. When all plug-in instances
2140 close the plug-in package, and the plug-in package is removed from the database, the plug-in
2143 * Plugins/WebPluginPackage.m:
2144 (-[WebPluginPackage initWithPath:]):
2145 (-[WebPluginPackage load]):
2146 Made this a bit more efficient by checking if the bundle is already loaded.
2147 (-[WebBasePluginPackage unload]):
2149 (-[WebBasePluginPackage isLoaded]):
2152 * Plugins/WebBaseNetscapePluginView.m:
2153 (-[WebBaseNetscapePluginView start]):
2154 Open the plug-in package so it remains loaded while this instance uses it.
2155 (-[WebBaseNetscapePluginView stop]):
2156 Close the plug-in package when the plug-in instance is stopped.
2158 * Plugins/WebBaseNetscapePluginStream.m:
2159 (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:]):
2160 This check is not necessary. Netscape plug-in packages are never unloaded until all their instances have
2161 been stopped, and a Netscape plug-in instance will stop its streams when it is stopped.
2162 (-[WebBaseNetscapePluginStream _destroyStream]):
2164 (-[WebBaseNetscapePluginStream finishedLoadingWithData:]):
2166 (-[WebBaseNetscapePluginStream _deliverData]):
2169 2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
2173 Build fix: DWARF and -gfull are incompatible with symbol separation.
2175 * WebKit.xcodeproj/project.pbxproj:
2177 2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
2181 http://bugs.webkit.org/show_bug.cgi?id=10394
2182 Bug 10394: WebKit Release and Production configurations should enable dead code stripping
2184 * WebKit.xcodeproj/project.pbxproj:
2186 2006-08-15 Maciej Stachowiak <mjs@apple.com>
2190 - remove WebKit dependencies from WebPlugInStreamLoader via a protocol veil of ignorance
2192 * Loader/WebNetscapePlugInStreamLoader.h:
2193 * Loader/WebNetscapePlugInStreamLoader.m:
2194 (-[WebNetscapePlugInStreamLoader initWithDelegate:frameLoader:]):
2195 * Loader/WebPlugInStreamLoaderDelegate.h: Added.
2196 * Plugins/WebBaseNetscapePluginStream.h:
2197 * Plugins/WebNetscapePluginStream.m:
2198 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
2199 * WebKit.xcodeproj/project.pbxproj:
2201 2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
2205 http://bugs.webkit.org/show_bug.cgi?id=10384
2206 Bug 10384: Switch to DWARF for Release configuration
2208 * WebKit.xcodeproj/project.pbxproj:
2210 2006-08-15 Graham Dennis <graham.dennis@gmail.com>
2214 - patch for http://bugs.webkit.org/show_bug.cgi?id=10314
2215 WebUnarchivingState archivedResourceForURL: doesn't work
2217 * WebView/WebUnarchivingState.m:
2218 (-[WebUnarchivingState archivedResourceForURL:]):
2219 Fixed to get objects from the archived resources dictionary using
2220 the URL as a string instead of as the URL itself (as this is how
2221 the data is put into the dictionary).
2223 2006-08-14 Maciej Stachowiak <mjs@apple.com>
2227 - remove many (but not all) WebKit dependencies from WebNetscapePlugInStreamLoader (it still
2228 depends on WebNetscapePluginStream).
2230 * Loader/WebFrameLoader.h:
2231 * Loader/WebFrameLoader.m:
2232 (-[WebFrameLoader fileDoesNotExistErrorWithResponse:]):
2233 * Loader/WebNetscapePlugInStreamLoader.h:
2234 * Loader/WebNetscapePlugInStreamLoader.m:
2235 (-[WebNetscapePlugInStreamLoader initWithStream:frameLoader:]):
2236 (-[WebNetscapePlugInStreamLoader releaseResources]):
2237 (-[WebNetscapePlugInStreamLoader didReceiveResponse:]):
2238 * Plugins/WebNetscapePluginStream.m:
2239 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
2241 2006-08-14 Maciej Stachowiak <mjs@apple.com>
2243 Reviewed by Tim Omernick.
2245 - fixed REGRESSION: crash when leaving youtube page while movie is still loading
2246 http://bugs.webkit.org/show_bug.cgi?id=10398
2248 * Loader/WebNetscapePlugInStreamLoader.m:
2249 (-[WebNetscapePlugInStreamLoader initWithStream:view:]): Set the frame loader for this stream.
2250 (-[WebNetscapePlugInStreamLoader cancelWithError:]): Make sure to destroy the stream as well;
2251 otherwise, when we try to clean up later, we won't have the right context.
2253 2006-08-14 David Hyatt <hyatt@apple.com>
2255 Fix for Radar bug 4478840, Safari should not reduce null events sent to
2256 plug-ins in windows that are inactive but visible.
2258 With this fix you can view videos in visible background windows on YouTube
2259 (for example) and not see any drop in frame rate.
2263 * Plugins/WebBaseNetscapePluginView.m:
2264 (-[WebBaseNetscapePluginView restartNullEvents]):
2266 2006-08-14 Maciej Stachowiak <mjs@apple.com>
2270 - removed WebKit-level dependencies from WebFormDataStream. Use WebCore version of system interface
2272 * Loader/WebFormDataStream.m:
2274 (formEventCallback):
2276 * WebCoreSupport/WebSystemInterface.m:
2277 (InitWebCoreSystemInterface):
2279 2006-08-14 Maciej Stachowiak <mjs@apple.com>
2281 Rubber stamped by Brady.
2283 - move WebFormDataStream from WebView to Loader
2285 * WebKit.xcodeproj/project.pbxproj:
2286 * WebView/WebFormDataStream.h: Removed.
2287 * WebView/WebFormDataStream.m: Removed.
2289 2006-08-13 Maciej Stachowiak <mjs@apple.com>
2293 - remove WebKit dependencies from WebSubresourceLoader, except WebFormDataStream
2295 (WebFormDataStream will be moved into the Loader directory soon)
2297 * Loader/WebFrameLoader.h:
2298 * Loader/WebFrameLoader.m:
2299 (-[WebFrameLoader _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
2300 * Loader/WebSubresourceLoader.m:
2301 (isConditionalRequest):
2302 (hasCaseInsensitivePrefix):
2305 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
2307 2006-08-13 Brady Eidson <beidson@apple.com>
2311 Relocated the WebIconLoaders
2313 * Misc/WebIconLoader.h: Moved to Loader/
2314 * Misc/WebIconLoader.m: Moved to Loader/
2315 * WebKit.xcodeproj/project.pbxproj:
2317 2006-08-13 Maciej Stachowiak <mjs@apple.com>
2321 - removed non-Loader WebKit dependencies from WebDataProtocol for
2322 real (whoops) and fix some typos.
2324 * Loader/WebDataProtocol.m:
2325 (isCaseInsensitiveEqual): Added.
2326 (+[WebDataProtocol _webIsDataProtocolURL:]): Avoid WebKit calls.
2327 (-[WebDataProtocol startLoading]): ditto
2328 * Loader/WebFrameLoader.m:
2329 (isCaseInsensitiveEqual): Fixed spelling from isCaseSensitiveEqual.
2330 (-[WebFrameLoader _canUseResourceForRequest:]): Use proper call.
2332 2006-08-13 Brady Eidson <beidson@apple.com>
2336 The way of detecting a failed icon load before was to try and construct
2337 an image from the icon and if that image construction failed, mark the icon
2339 A much more efficient way is to check for an error response. We'll still
2340 check for invalid image data, but most servers will correctly return an HTTP
2341 error on a missing icon.
2343 * Misc/WebIconLoader.m:
2344 (-[WebIconLoader didFinishLoading]): Added check for http error response
2346 2006-08-13 Maciej Stachowiak <mjs@apple.com>
2350 - remove all non-Loader dependencies from WebLoader
2352 As part of this I moved WebDataProtocol to the loader directory
2353 and removed dependencies on the rest of WebKit from that too.
2355 * Loader/WebFrameLoader.h:
2356 * Loader/WebFrameLoader.m:
2357 (-[WebFrameLoader setDefersCallbacks:]):
2358 (-[WebFrameLoader stopLoading]):
2359 (-[WebFrameLoader cancelledErrorWithRequest:]):
2360 (-[WebFrameLoader clearArchivedResources]):
2361 (-[WebFrameLoader deliverArchivedResources]):
2362 (-[WebFrameLoader deliverArchivedResourcesAfterDelay]):
2363 (isCaseSensitiveEqual):
2364 (-[WebFrameLoader _canUseResourceForRequest:]):
2365 (-[WebFrameLoader _canUseResourceWithResponse:]):
2366 (-[WebFrameLoader pendingArchivedResources]):
2367 (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
2368 (-[WebFrameLoader archiveLoadPendingForLoader:]):
2369 (-[WebFrameLoader cancelPendingArchiveLoadForLoader:]):
2370 * Loader/WebLoader.h:
2371 * Loader/WebLoader.m:
2372 (-[NSURLProtocol releaseResources]):
2373 (-[NSURLProtocol loadWithRequest:]):
2374 (-[NSURLProtocol setDefersCallbacks:]):
2375 (-[NSURLProtocol addData:allAtOnce:]):
2376 (-[NSURLProtocol resourceData]):
2377 (-[NSURLProtocol didReceiveData:lengthReceived:allAtOnce:]):
2378 (-[NSURLProtocol connection:didReceiveData:lengthReceived:]):
2379 (-[NSURLProtocol cancelWithError:]):
2380 (-[NSURLProtocol cancelledError]):
2381 * Loader/WebMainResourceLoader.m:
2382 (-[WebMainResourceLoader addData:allAtOnce:]):
2383 (-[WebMainResourceLoader didReceiveData:lengthReceived:allAtOnce:]):
2384 * Loader/WebNetscapePlugInStreamLoader.m:
2385 (-[WebNetscapePlugInStreamLoader didReceiveData:lengthReceived:allAtOnce:]):
2386 * Loader/WebSubresourceLoader.m:
2387 (-[WebSubresourceLoader didReceiveData:lengthReceived:allAtOnce:]):
2388 * WebKit.xcodeproj/project.pbxproj:
2389 * WebView/WebDataProtocol.h: Removed.
2390 * WebView/WebDataProtocol.m: Removed.
2392 2006-08-11 Tim Omernick <timo@apple.com>
2396 <http://bugs.webkit.org/show_bug.cgi?id=10111> - Menu flickers over Flash content
2397 <rdar://problem/3052546> Plugins don't work with z-index (overlapping elements, etc.)
2399 * Plugins/WebBaseNetscapePluginView.m:
2400 (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
2401 Don't just clip to the dirty region for "transparent" plug-ins -- do it for all plug-ins. This is a
2402 generally useful thing to do, as it prevents the plug-in from drawing over parts of the window that
2403 have already been drawn and are not expected to be redrawn in the same update.
2405 2006-08-11 Brady Eidson <beidson@apple.com>
2407 Reviewed by John, Timo, Adele, and Darin
2409 In addition to a few style/good-practice cleanups, this patch will convert the old icon database
2410 format to the WebCore format if the WebCore db is empty (implying this conversion has yet to take
2411 place). After the conversion, it will delete all traces of the old format to free the unneeded space
2413 * Misc/WebIconDatabase.m:
2414 (-[WebIconDatabase init]):
2415 (-[WebIconDatabase _setIconURL:forURL:]): Changed the bridge's name for this method to be more clear
2416 (-[WebIconDatabase _createFileDatabase]):
2417 (-[WebIconDatabase _iconDataForIconURL:]): This grabs the raw data for use in the conversion function
2418 (-[WebIconDatabase _convertToWebCoreFormat]): This does the actual conversion
2420 2006-08-11 Tim Omernick <timo@apple.com>
2422 Reviewed by John Sullivan.
2424 Needed for <rdar://problem/4678070>.
2426 * Plugins/WebBaseNetscapePluginView.m:
2427 (-[WebBaseNetscapePluginView sendEvent:]):
2428 Changed an assertion to an early return. It should be possible to send events, especially updateEvt (for image capturing
2429 purposes), to off-screen plug-ins. It just doesn't work right now. See <rdar://problem/4318269>.
2431 2006-08-11 John Sullivan <sullivan@apple.com>
2435 - fixed <rdar://problem/4522894> Would be nice if Safari shrank pages a little if necessary
2436 to avoid printing an almost-empty page
2438 * WebView/WebHTMLView.m:
2439 (-[NSArray knowsPageRange:]):
2440 If the last page has a short-enough orphan (< 1/10 of the page height is the number I pulled
2441 out of ... the air), then we adjust the scale factor slightly and check whether this reduces
2442 the page count and thus eliminates the orphan.
2444 2006-08-07 Brady Eidson <beidson@apple.com>
2446 Reviewed by Anders and John
2448 * Misc/WebIconDatabase.m:
2449 (-[WebIconDatabase init]):
2450 (-[WebIconDatabase isIconExpiredForIconURL:]): Get if an icon expired
2451 (-[WebIconDatabase isIconExpiredForPageURL:]): Ditto
2452 (-[WebIconDatabase _setIconURL:forURL:]):
2453 (-[WebIconDatabase _sendNotificationForURL:]): Moved to WebKitPendingPublic for use outside of WebIconDatabase
2454 (-[WebIconDatabase loadIconFromURL:]): Allow a load outside the context of a page load
2455 * Misc/WebIconDatabasePrivate.h:
2457 * Misc/WebIconLoader.m:
2458 (-[WebIconLoader didFinishLoading]): fixed up the "flipping the switch" #defs a bit
2459 (-[WebIconLoader willSendRequest:redirectResponse:]): override to allow a load
2460 outside of the context of a page load
2462 * WebCoreSupport/WebIconDatabaseBridge.h: Added.
2463 * WebCoreSupport/WebIconDatabaseBridge.m: Added.
2464 (-[WebIconDatabaseBridge init]):
2465 (-[WebIconDatabaseBridge dealloc]):
2466 (-[WebIconDatabaseBridge loadIconFromURL:]): Kick off a load on an icon outside
2467 of the context of any page load
2468 (-[WebIconDatabaseBridge _setIconData:forIconURL:]): WebKit side of bridge method
2469 (-[WebIconDatabaseBridge _setHaveNoIconForIconURL:]): WebKit side of bridge method
2470 (-[WebIconDatabaseBridge releaseCachedLoaderForIconURL:]):
2471 (+[WebIconDatabaseBridge sharedBridgeInstance]): Moved this from WebCore to WebKit
2472 so both sides of the bridge get the WebKit version
2473 * WebKit.xcodeproj/project.pbxproj: Added some files
2474 * WebView/WebDataSource.m:
2475 (-[WebDataSource _loadIcon]): Added check for reload/expired icon to force
2476 a load even if we already have it
2478 2006-08-04 Sam Weinig <sam.weinig@gmail.com>
2482 - patch for http://bugs.webkit.org/show_bug.cgi?id=10192
2483 Make WebCore (and friends) compile with -Wshorten-64-to-32
2485 * Adds 'f' to float literals where expecting a float.
2486 * Use ceilf() instead of ceil() when assigning to a float.
2487 * Adds explicit casts where OK.
2489 NOTE: The -Wshorten-64-to-32 flag was not added for WebKit
2490 because there are still a few places where no error handling
2491 is in place. The flag can be added as soon as those are worked
2494 * Misc/WebNSControlExtras.m:
2495 (-[NSControl sizeToFitAndAdjustWindowHeight]):
2496 * Misc/WebNSImageExtras.m:
2497 (-[NSImage _web_scaleToMaxSize:]):
2498 * Misc/WebNSViewExtras.h:
2499 * Misc/WebNSViewExtras.m:
2500 * Plugins/WebBaseNetscapePluginView.m:
2501 (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
2502 (-[WebBaseNetscapePluginView drawRect:]):
2503 * WebCoreSupport/WebFrameBridge.m:
2504 (-[WebFrameBridge expiresTimeForResponse:]):
2505 * WebInspector/WebInspector.m:
2506 (-[NSWindow window]):
2507 (-[WebInspector treeViewScrollTo:]):
2508 (-[WebInspector _updateSystemColors]):
2509 (-[WebInspector webView:plugInViewWithArguments:]):
2510 (-[WebInspector outlineView:objectValueForTableColumn:byItem:]):
2511 * WebInspector/WebInspectorOutlineView.m:
2512 (-[WebInspectorOutlineView _highlightRow:clipRect:]):
2513 * WebInspector/WebNodeHighlight.m:
2514 (-[WebNodeHighlight initWithBounds:andRects:forView:]):
2515 * WebInspector/WebNodeHighlightView.m:
2516 (-[WebNodeHighlightView roundedRect:withRadius:]):
2517 (-[WebNodeHighlightView initWithHighlight:andRects:forView:]):
2518 (-[WebNodeHighlightView drawRect:]):
2519 * WebView/WebFrame.m:
2520 (-[WebFrame _opened]):
2521 * WebView/WebFrameView.m:
2522 (-[WebFrameView initWithFrame:]):
2523 * WebView/WebHTMLView.m:
2524 (-[WebHTMLView _dragImageForLinkElement:]):
2525 (-[WebHTMLView _web_setPrintingModeRecursive]):
2526 (-[WebHTMLView _web_clearPrintingModeRecursive]):
2527 (-[NSArray layout]):
2528 (-[NSArray _setPrinting:minimumPageWidth:maximumPageWidth:adjustViewSize:]):
2529 (-[NSArray adjustPageHeightNew:top:bottom:limit:]):
2530 (-[NSArray _scaleFactorForPrintOperation:]):
2531 (-[NSArray setPageWidthForPrinting:]):
2532 (-[NSArray _endPrintMode]):
2533 (-[NSArray knowsPageRange:]):
2534 (-[NSArray _originalFontA]):
2535 (-[NSArray _originalFontB]):
2536 (-[WebTextCompleteController _buildUI]):
2537 (-[WebTextCompleteController _placePopupWindow:]):
2538 * WebView/WebPDFView.m:
2539 (-[WebPDFView _makeTextStandardSize:]):
2540 (-[WebPDFView selectionImageForcingWhiteText:]):
2541 (-[PDFPrefUpdatingProxy forwardInvocation:]):
2542 * WebView/WebPreferences.m:
2543 (-[WebPreferences _floatValueForKey:]):
2544 * WebView/WebView.m:
2545 (-[WebView makeTextSmaller:]):
2546 (-[WebView canMakeTextStandardSize]):
2547 (-[WebView makeTextStandardSize:]):
2549 2006-08-04 David Kilzer <ddkilzer@kilzer.net>
2551 Reviewed by NOBODY (build fix).
2553 * WebCoreSupport/WebSubresourceLoader.m: REALLY moved to Loader/
2554 * WebView/WebFrameLoader.h: REALLY moved to Loader/
2555 * WebView/WebFrameLoader.m: REALLY moved to Loader/
2556 * WebView/WebLoader.h: REALLY moved to Loader/
2557 * WebView/WebLoader.m: REALLY moved to Loader/
2558 * WebView/WebMainResourceLoader.m: REALLY moved to Loader/
2560 2006-08-03 Maciej Stachowiak <mjs@apple.com>
2564 - moved all loader code that is slated to be moved down to WebCore to a new Loader directory
2566 (next step is to remove dependencies on the rest of WebKit from this directory)
2568 * Loader/WebNetscapePlugInStreamLoader.h: Added.
2569 * Loader/WebNetscapePlugInStreamLoader.m: Added. Cut out of WebNetscapePluginStream.m
2570 (-[WebNetscapePlugInStreamLoader initWithStream:view:]):
2571 (-[WebNetscapePlugInStreamLoader isDone]):
2572 (-[WebNetscapePlugInStreamLoader releaseResources]):
2573 (-[WebNetscapePlugInStreamLoader didReceiveResponse:]):
2574 (-[WebNetscapePlugInStreamLoader didReceiveData:lengthReceived:]):
2575 (-[WebNetscapePlugInStreamLoader didFinishLoading]):
2576 (-[WebNetscapePlugInStreamLoader didFailWithError:]):
2577 (-[WebNetscapePlugInStreamLoader cancelWithError:]):
2578 * Plugins/WebNetscapePluginStream.m:
2579 * WebKit.xcodeproj/project.pbxproj:
2580 * WebCoreSupport/WebSubresourceLoader.h: Moved to Loader/
2581 * WebCoreSupport/WebSubresourceLoader.m: Moved to Loader/
2582 * WebView/WebFrameLoader.h: Moved to Loader/
2583 * WebView/WebFrameLoader.m: Moved to Loader/
2584 * WebView/WebLoader.h: Moved to Loader/
2585 * WebView/WebLoader.m: Moved to Loader/
2586 * WebView/WebMainResourceLoader.h: Moved to Loader/
2587 * WebView/WebMainResourceLoader.m: Moved to Loader/
2589 2006-08-03 Tim Omernick <timo@apple.com>
2591 Reviewed by Kevin Decker.
2593 <rdar://problem/4667460> Windowless OpenGL plug-ins render incorrectly on PowerPC
2595 * Plugins/WebBaseNetscapePluginView.m:
2596 (-[WebBaseNetscapePluginView _aglOffscreenImageForDrawingInRect:]):
2597 Fixed color component swapping so that it works on both x86 and PPC. See comments.
2599 2006-08-03 Brady Eidson <beidson@apple.com>
2601 Reviewed by Tim Hatcher's rubber stamp
2602 Fixed Intel build break caused by weinig's -W change in r15781
2604 * WebView/WebView.m: wrapped cpu-dependent defs with defined() macro
2606 2006-08-03 Maciej Stachowiak <mjs@apple.com>
2610 - fixed problem that could cause assertion failures in Safari
2612 * Plugins/WebBaseNetscapePluginView.m:
2613 (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]): Don't
2614 allow a plugin to start new loads once its document is no longer the one actively loading.
2616 2006-08-03 Maciej Stachowiak <mjs@apple.com>
2620 - remove use of WebDataSource from WebLoader and subclasses, just have them talk to the
2621 WebFrameLoader instead.
2623 For now this is done by forarding all the calls.
2625 * Misc/WebIconLoader.m:
2626 (-[WebIconLoader didFinishLoading]):
2627 * Plugins/WebNetscapePluginStream.m:
2628 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
2629 (-[WebNetscapePluginStream start]):
2630 (-[WebNetscapePlugInStreamLoader didFinishLoading]):
2631 (-[WebNetscapePlugInStreamLoader didFailWithError:]):
2632 (-[WebNetscapePlugInStreamLoader cancelWithError:]):
2633 * WebCoreSupport/WebFrameBridge.m:
2634 (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
2635 (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
2636 * WebCoreSupport/WebSubresourceLoader.h:
2637 * WebCoreSupport/WebSubresourceLoader.m:
2638 (-[WebSubresourceLoader initWithLoader:frameLoader:]):
2639 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
2640 (+[WebSubresourceLoader startLoadingResource:withMethod:URL:customHeaders:referrer:forFrameLoader:]):
2641 (+[WebSubresourceLoader startLoadingResource:withMethod:URL:customHeaders:postData:referrer:forFrameLoader:]):
2642 (-[WebSubresourceLoader receivedError:]):
2643 (-[WebSubresourceLoader signalFinish]):
2644 (-[WebSubresourceLoader didFailWithError:]):
2645 (-[WebSubresourceLoader cancel]):
2646 * WebKit.xcodeproj/project.pbxproj:
2647 * WebView/WebDataSource.m:
2648 (-[WebDataSource _updateLoading]):
2649 (-[WebDataSource textEncodingName]):
2650 (-[WebDataSource _mainReceivedBytesSoFar:complete:]):
2651 * WebView/WebFrameLoader.h:
2652 * WebView/WebFrameLoader.m:
2653 (-[WebFrameLoader loadIconWithRequest:]):
2654 (-[WebFrameLoader startLoadingMainResourceWithRequest:identifier:]):
2655 (-[WebFrameLoader clearIconLoader]):
2656 (-[WebFrameLoader commitProvisionalLoad]):
2657 (-[WebFrameLoader activeDataSource]):
2658 (-[WebFrameLoader _archivedSubresourceForURL:]):
2659 (-[WebFrameLoader _defersCallbacks]):
2660 (-[WebFrameLoader _identifierForInitialRequest:]):
2661 (-[WebFrameLoader _willSendRequest:forResource:redirectResponse:]):
2662 (-[WebFrameLoader _didReceiveAuthenticationChallenge:forResource:]):
2663 (-[WebFrameLoader _didCancelAuthenticationChallenge:forResource:]):
2664 (-[WebFrameLoader _didReceiveResponse:forResource:]):
2665 (-[WebFrameLoader _didReceiveData:contentLength:forResource:]):
2666 (-[WebFrameLoader _didFinishLoadingForResource:]):
2667 (-[WebFrameLoader _didFailLoadingWithError:forResource:]):
2668 (-[WebFrameLoader _privateBrowsingEnabled]):
2669 (-[WebFrameLoader _addPlugInStreamLoader:]):
2670 (-[WebFrameLoader _removePlugInStreamLoader:]):
2671 (-[WebFrameLoader _finishedLoadingResource]):
2672 (-[WebFrameLoader _receivedError:]):
2673 (-[WebFrameLoader _addSubresourceLoader:]):
2674 (-[WebFrameLoader _removeSubresourceLoader:]):
2675 (-[WebFrameLoader _originalRequest]):
2676 (-[WebFrameLoader webFrame]):
2677 (-[WebFrameLoader _receivedMainResourceError:complete:]):
2678 (-[WebFrameLoader initialRequest]):
2679 (-[WebFrameLoader _receivedData:]):
2680 (-[WebFrameLoader _setRequest:]):
2681 (-[WebFrameLoader _downloadWithLoadingConnection:request:response:proxy:]):
2682 (-[WebFrameLoader _handleFallbackContent]):
2683 (-[WebFrameLoader _isStopping]):
2684 (-[WebFrameLoader _decidePolicyForMIMEType:decisionListener:]):
2685 (-[WebFrameLoader _setupForReplaceByMIMEType:]):
2686 (-[WebFrameLoader _setResponse:]):
2687 (-[WebFrameLoader _mainReceivedError:complete:]):
2688 (-[WebFrameLoader _finishedLoading]):
2689 (-[WebFrameLoader _mainReceivedBytesSoFar:complete:]):
2690 (-[WebFrameLoader _iconLoaderReceivedPageIcon:]):
2691 (-[WebFrameLoader _URL]):
2692 * WebView/WebLoader.h:
2693 * WebView/WebLoader.m:
2694 (-[NSURLProtocol releaseResources]):
2695 (-[NSURLProtocol loadWithRequest:]):
2696 (-[NSURLProtocol setFrameLoader:]):
2697 (-[NSURLProtocol frameLoader]):
2698 (-[NSURLProtocol willSendRequest:redirectResponse:]):
2699 (-[NSURLProtocol didReceiveAuthenticationChallenge:]):
2700 (-[NSURLProtocol didCancelAuthenticationChallenge:]):
2701 (-[NSURLProtocol didReceiveResponse:]):
2702 (-[NSURLProtocol didReceiveData:lengthReceived:]):
2703 (-[NSURLProtocol signalFinish]):
2704 (-[NSURLProtocol didFailWithError:]):
2705 (-[NSURLProtocol willCacheResponse:]):
2706 (-[NSURLProtocol cancelWithError:]):
2707 * WebView/WebMainResourceLoader.h:
2708 * WebView/WebMainResourceLoader.m:
2709 (-[WebMainResourceLoader initWithFrameLoader:]):
2710 (-[WebMainResourceLoader receivedError:]):
2711 (-[WebMainResourceLoader cancelWithError:]):
2712 (-[WebMainResourceLoader _isPostOrRedirectAfterPost:redirectResponse:]):
2713 (-[WebMainResourceLoader addData:]):
2714 (-[WebMainResourceLoader willSendRequest:redirectResponse:]):
2715 (-[WebMainResourceLoader continueAfterContentPolicy:response:]):
2716 (-[WebMainResourceLoader continueAfterContentPolicy:]):
2717 (-[WebMainResourceLoader checkContentPolicyForResponse:]):
2718 (-[WebMainResourceLoader didReceiveResponse:]):
2719 (-[WebMainResourceLoader didReceiveData:lengthReceived:]):
2720 (-[WebMainResourceLoader didFinishLoading]):
2721 (-[WebMainResourceLoader didFailWithError:]):
2722 (-[WebMainResourceLoader loadWithRequestNow:]):
2724 2006-08-03 Sam Weinig <sam.weinig@gmail.com>
2728 - patch for http://bugs.webkit.org/show_bug.cgi?id=10176
2729 Make WebCore compile with -Wundef
2731 * Adds -Wundef flag to Xcode project
2732 * Converts #ifs to #ifdef and #ifndefs where needed.
2734 * Carbon/CarbonUtils.m:
2735 * Carbon/CarbonWindowAdapter.m:
2736 * Carbon/HIViewAdapter.m:
2737 (+[NSView bindHIViewToNSView:nsView:]):
2738 * Carbon/HIWebView.m:
2739 (HIWebViewEventHandler):
2740 * Misc/WebFileDatabase.m:
2741 (UniqueFilePathForKey):
2742 * Misc/WebNSWindowExtras.m:
2743 (swizzleInstanceMethod):
2744 * Misc/WebTypesInternal.h:
2745 * Plugins/WebNetscapeDeprecatedFunctions.c:
2746 * Plugins/WebNetscapeDeprecatedFunctions.h:
2747 * Plugins/WebNetscapePluginPackage.h:
2748 * Plugins/WebNetscapePluginPackage.m:
2749 (-[WebNetscapePluginPackage unloadWithoutShutdown]):
2750 (-[WebNetscapePluginPackage load]):
2751 * WebKit.xcodeproj/project.pbxproj:
2753 2006-08-03 Darin Adler <darin@apple.com>
2755 Reviewed by Eric Seidel.
2759 * WebView/WebFrame.m: (-[WebFramePrivate dealloc]): Release the frame loader.
2761 2006-08-02 Timothy Hatcher <timothy@apple.com>
2763 Rubber stamped by Maciej.
2765 Adding back resultsWithXpathQuery, removed by Darin's earlier change.
2766 This function is called from ObjC, but not used from JavaScript.
2768 * WebInspector/webInspector/inspector.js:
2770 2006-08-02 Timothy Hatcher <timothy@apple.com>
2774 Bug 10200: [Drosera] Deadlock between Drosera and Safari while loading page
2775 http://bugs.webkit.org/show_bug.cgi?id=10200
2777 Prevent reentrancy in our debugger callbacks. This was causing a deadlock in Drosera because
2778 suspendProcessIfPaused was being called during a DO call into Safari.
2780 Preventing reentrancy also prevents scripts that Drosera injects and evaluates from showing
2781 up in rare cases (such as a iframe loading about:blank). I thought this would prevent cases
2782 where you call a function from the console and expect it to break on a breakpoint in them, but
2783 this appears to never have worked even without this change. When that is figured out we can
2784 reconsider a better solution to reentrancy. I have filed that as bug 10214.
2786 I also removed the NSRunLoop runMode:beforeDate: calls since DO handles this for us since
2787 we don't use "onway void" as the return type for the callbacks. Note: using onway void for
2788 the listener callbacks causes bad synchronization issues and obscure crashes.
2790 * DefaultDelegates/WebScriptDebugServer.m:
2791 (-[WebScriptDebugServer webView:didLoadMainResourceForDataSource:]):
2792 (-[WebScriptDebugServer webView:didParseSource:baseLineNumber:fromURL:sourceId:forWebFrame:]):
2793 (-[WebScriptDebugServer webView:failedToParseSource:baseLineNumber:fromURL:withError:forWebFrame:]):
2794 (-[WebScriptDebugServer webView:didEnterCallFrame:sourceId:line:forWebFrame:]):
2795 (-[WebScriptDebugServer webView:willExecuteStatement:sourceId:line:forWebFrame:]):
2796 (-[WebScriptDebugServer webView:willLeaveCallFrame:sourceId:line:forWebFrame:]):
2797 (-[WebScriptDebugServer webView:exceptionWasRaised:sourceId:line:forWebFrame:]):
2798 * DefaultDelegates/WebScriptDebugServerPrivate.h:
2800 2006-08-02 Maciej Stachowiak <mjs@apple.com>
2804 - fix assertion failure on layout tests by stopping plugins from loading at a clearly defined time
2805 - add more assertions for safety
2807 * WebView/WebDataSource.m:
2808 (-[WebDataSourcePrivate dealloc]): Removed obsolete comment.
2809 (-[WebDataSource _updateLoading]): Add assertion ensuring this method is only called
2810 at a time when this data source is the one that might be loading for a frame.
2811 (-[WebDataSource _stopLoading]): Stop loading plugins as a FIXME suggests we should.
2812 * WebView/WebFrameLoader.m:
2813 (-[WebFrameLoader isLoadingPlugIns]): New helper method.
2814 (-[WebFrameLoader isLoading]): Consider plugin loads too - otherwise we won't stop them
2815 at stopLoading time.
2817 2006-08-02 Adam Roben <aroben@apple.com>
2821 - Rename TransferJob to ResourceLoader (this file was forgotten in an
2822 earlier change by Maciej)
2826 2006-08-01 Maciej Stachowiak <mjs@apple.com>
2830 - Change things around so WebFrameLoader tracks the main and provisional data source,
2831 as well as the frame load state, pulling much code out of WebFrame along the way.
2833 The most significant aspects of this change are:
2835 - management of WebDataSources and WebFrameState was moved into WebFrameLoader
2836 - there is now just one WebFrameLoader shared between the primary and provisional data source
2838 * WebKit.xcodeproj/project.pbxproj:
2839 * WebView/WebDataSource.m:
2840 (-[WebDataSourcePrivate dealloc]):
2841 (-[WebDataSource _updateLoading]):
2842 (-[WebDataSource _loadIcon]):
2843 (-[WebDataSource _setPrimaryLoadComplete:]):
2844 (-[WebDataSource _stopLoading]):
2845 (-[WebDataSource _startLoading]):
2846 (-[WebDataSource _addSubresourceLoader:]):
2847 (-[WebDataSource _removeSubresourceLoader:]):
2848 (-[WebDataSource _addPlugInStreamLoader:]):
2849 (-[WebDataSource _removePlugInStreamLoader:]):
2850 (-[WebDataSource _defersCallbacksChanged]):
2851 (-[WebDataSource _stopLoadingWithError:]):
2852 (-[WebDataSource _revertToProvisionalState]):
2853 (-[WebDataSource _setupForReplaceByMIMEType:]):
2854 (-[WebDataSource initWithRequest:]):
2855 (-[WebDataSource data]):
2856 (-[WebDataSource isLoading]):
2857 * WebView/WebFrame.m:
2858 (-[WebFramePrivate init]):
2859 (-[WebFramePrivate dealloc]):
2860 (-[WebFrame _closeOldDataSources]):
2861 (-[WebFrame _detachFromParent]):
2862 (-[WebFrame _makeDocumentView]):
2863 (-[WebFrame _receivedMainResourceError:]):
2864 (-[WebFrame _transitionToCommitted:]):
2865 (+[WebFrame _timeOfLastCompletedLoad]):
2866 (-[WebFrame _checkLoadCompleteForThisFrame]):
2867 (-[WebFrame _loadItem:withLoadType:]):
2868 (-[WebFrame _continueAfterWillSubmitForm:]):
2869 (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
2870 (-[WebFrame _initWithWebFrameView:webView:bridge:]):
2871 (-[WebFrame _frameLoader]):
2872 (-[WebFrame _provisionalLoadStarted]):
2873 (-[WebFrame _prepareForDataSourceReplacement]):
2874 (-[WebFrame _frameLoadCompleted]):
2875 (-[WebFrame provisionalDataSource]):
2876 (-[WebFrame dataSource]):
2877 (-[WebFrame stopLoading]):
2878 * WebView/WebFrameInternal.h:
2879 * WebView/WebFrameLoader.h:
2880 * WebView/WebFrameLoader.m:
2881 (-[WebFrameLoader initWithWebFrame:]):
2882 (-[WebFrameLoader dealloc]):
2883 (-[WebFrameLoader dataSource]):
2884 (-[WebFrameLoader _setDataSource:]):
2885 (-[WebFrameLoader clearDataSource]):
2886 (-[WebFrameLoader provisionalDataSource]):
2887 (-[WebFrameLoader _setProvisionalDataSource:]):
2888 (-[WebFrameLoader _clearProvisionalDataSource]):
2889 (-[WebFrameLoader state]):
2890 (+[WebFrameLoader timeOfLastCompletedLoad]):
2891 (-[WebFrameLoader _setState:]):
2892 (-[WebFrameLoader clearProvisionalLoad]):
2893 (-[WebFrameLoader markLoadComplete]):
2894 (-[WebFrameLoader commitProvisionalLoad]):
2895 (-[WebFrameLoader stopLoading]):
2896 (-[WebFrameLoader startLoading]):
2897 (-[WebFrameLoader startProvisionalLoad:]):
2898 (-[WebFrameLoader setupForReplace]):
2899 * WebView/WebFramePrivate.h:
2901 2006-08-01 Tim Omernick <timo@apple.com>
2903 Reviewed by John Sullivan.
2905 <rdar://problem/4480737> Flash crashes after it replaces itself via a document.write()
2907 I kind of hate to do this, but this is the best way to work around buggy plug-ins like Flash that assume that
2908 NPP_Destroy() cannot be called while the browser is calling one of its other plug-in functions. The classic
2909 situation is a plug-in that replaces itself via an NPN_Invoke() that executes a document.write().
2911 * Plugins/WebBaseNetscapePluginView.h:
2912 * Plugins/WebBaseNetscapePluginView.m:
2913 (-[WebBaseNetscapePluginView sendEvent:]):
2914 Call -willCallPlugInFunction and -didCallPlugInFunction around calls to the NPP_* functions.
2915 (-[WebBaseNetscapePluginView setWindowIfNecessary]):
2917 (-[WebBaseNetscapePluginView start]):
2918 It should not be possible to start a plug-in instance while we are calling into it (one of those chicken/egg
2919 problems). Added a sanity-checking assertion.
2920 (-[WebBaseNetscapePluginView stop]):
2921 If we're already calling a plug-in function, do not call NPP_Destroy(). The plug-in function we are calling
2922 may assume that its instance->pdata, or other memory freed by NPP_Destroy(), is valid and unchanged until said
2923 plugin-function returns.
2924 (-[WebBaseNetscapePluginView pluginScriptableObject]):
2925 Call -willCallPlugInFunction and -didCallPlugInFunction around calls to the NPP_* functions.
2926 (-[WebBaseNetscapePluginView willCallPlugInFunction]):
2927 Increment plug-in function call depth.
2928 (-[WebBaseNetscapePluginView didCallPlugInFunction]):
2929 Decrement plug-in function call depth. Stop if we're supposed to stop.
2930 (-[WebBaseNetscapePluginView evaluateJavaScriptPluginRequest:]):
2931 Call -willCallPlugInFunction and -didCallPlugInFunction around calls to the NPP_* functions.
2932 (-[WebBaseNetscapePluginView webFrame:didFinishLoadWithReason:]):
2934 (-[WebBaseNetscapePluginView _printedPluginBitmap]):
2937 * Plugins/WebBaseNetscapePluginStream.m:
2938 (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:]):
2939 Call -willCallPlugInFunction and -didCallPlugInFunction around calls to the NPP_* functions.
2940 (-[WebBaseNetscapePluginStream _destroyStream]):
2942 (-[WebBaseNetscapePluginStream _deliverData]):
2945 2006-08-01 Maciej Stachowiak <mjs@apple.com>
2947 - fix build after last change
2949 * WebView/WebFrame.m:
2950 (-[WebFrame _checkLoadCompleteForThisFrame]):
2952 2006-08-01 Maciej Stachowiak <mjs@apple.com>
2956 - revert part of my last fix that broke the Safari bookmarks view
2958 * WebView/WebFrame.m:
2959 (-[WebFrame _checkLoadCompleteForThisFrame]): still send layout message for non-HTML views
2961 2006-08-01 Tim Omernick <timo@apple.com>
2965 Fixed an assertion failure I ran into while debugging <rdar://problem/4652683>.
2967 * Plugins/WebNetscapePluginEmbeddedView.m:
2968 (-[WebNetscapePluginEmbeddedView redeliverStream]):
2969 Don't clear the "instance" ivar here. This code was refactored here from the old WebNetscapePluginRepresentation,
2970 which also had an "instance" ivar. It is never appropriate to clear a plug-in view's instance. That is done when
2971 the plug-in is destroyed.
2973 2006-08-01 Maciej Stachowiak <mjs@apple.com>
2977 - some refactoring in preparation for moving more stuff to WebFrameLoader.
2979 * WebView/WebFrame.m:
2980 (-[WebFrame _clearDataSource]):
2981 (-[WebFrame _detachFromParent]):
2982 (-[WebFrame _commitProvisionalLoad]):
2983 (-[WebFrame _transitionToCommitted:]):
2984 (-[WebFrame _clearProvisionalLoad]):
2985 (-[WebFrame _markLoadComplete]):
2986 (-[WebFrame _checkLoadCompleteForThisFrame]):
2987 (-[WebFrame _startProvisionalLoad:]):
2988 (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
2989 (-[WebFrame stopLoading]):
2991 2006-07-31 Maciej Stachowiak <mjs@apple.com>
2993 Reviewed by Tim Hatcher.
2995 - renamed TransferJob to ResourceLoader in WebCore
2998 (WebFrame::loadDataSource):
2999 (WebFrame::receivedRedirect):
3000 (WebFrame::receivedResponse):
3001 (WebFrame::receivedData):
3002 (WebFrame::receivedAllData):
3003 (WebFrame::setStatusText):
3006 2006-07-31 Darin Adler <darin@apple.com>
3010 - omit the margin and padding boxes for display types where they are ignored
3011 - use CSS instead of properties for table spacing and padding as suggested by Tim H.
3013 * WebInspector/webInspector/inspector.css: Added rules for spacing and padding.
3014 Added rules that hide the margin and padding boxes (borders and all but the center cell)
3015 when the hide attribute is present.
3016 * WebInspector/webInspector/inspector.html: Added classes for the rules above.
3017 Removed cellpadding and cellspacing attributes.
3018 * WebInspector/webInspector/inspector.js: Added code to hide/show the margin and
3019 padding boxes based on the display type.
3021 2006-07-31 Duncan Wilcox <duncan@mclink.it>
3025 Fixes <http://bugs.webkit.org/show_bug.cgi?id=10159>
3026 "REGRESSION: delegate returning no menu elements crashes webkit"
3028 No automated test, because there's no way to programmatically open a context menu,
3029 no manual test because there's no way to customize the context menu delegate.
3031 * WebView/WebView.m:
3032 (-[WebView _menuForElement:defaultItems:]): Make sure the context menu returned
3033 some menu items before accessing the first one.
3035 2006-07-31 Timothy Hatcher <timothy@apple.com>
3039 <rdar://problem/4658194> REGRESSION: "Search in Google"
3040 and "Search in Spotlight" fail to work on text selected in a frame
3042 Use selectedFrame to get the frame with the text selection.
3044 * WebView/WebView.m:
3045 (-[WebView _searchWithGoogleFromMenu:]):
3046 (-[WebView _searchWithSpotlightFromMenu:]):
3048 2006-07-31 Darin Adler <darin@apple.com>
3050 Reviewed by Tim Hatcher.
3052 - http://bugs.webkit.org/show_bug.cgi?id=10168
3053 add a first cut at a Metrics pane to the inspector
3055 * WebInspector/webInspector/inspector.css: Add styles for the new metrics pane.
3056 * WebInspector/webInspector/inspector.html: Add the new metrics pane, starting with
3057 the table to show the box model.
3058 * WebInspector/webInspector/inspector.js: Add the new metrics pane. Add back some
3059 "title" attributes so we have more tooltips. Removed the optional parameter to
3062 2006-07-31 Anders Carlsson <acarlsson@apple.com>
3066 * Plugins/WebPluginDatabase.m:
3067 (-[WebPluginDatabase refresh]):
3068 Create a mutable set instead of a mutable array.
3070 2006-07-30 Darin Adler <darin@apple.com>
3072 Reviewed by Tim Hatcher.
3074 * WebInspector/webInspector/inspector.js: Fix bug where a null property value
3075 leads to an empty style pane.
3077 2006-07-30 Darin Adler <darin@apple.com>
3079 Reviewed by Tim Hatcher.
3081 - http://bugs.webkit.org/show_bug.cgi?id=10163
3082 some improvements for the inspector
3084 * WebInspector/WebInspector.m:
3085 (+[WebInspector sharedWebInspector:]): Fixed bug that could cause the inspector
3086 to be garbage collected if used in an application with GC enabled.
3087 (-[WebInspector dealloc]): Removed a call to a non-existent close method.
3088 (-[WebInspector window]): Added a custom WebPreferences object and called
3089 setPrivateBrowsingEnabled:YES so the inspector won't appear in the history menu.
3090 Also call setProhibitsMainFrameScrolling:YES to try to get rid of trouble where
3091 the inspector scrolls when dragging.
3093 * WebInspector/webInspector/inspector.css: Added style for the new color swatch,
3094 and JavaScript properties. More of the style should be shared between the panes,
3095 but this should be OK for now.
3097 * WebInspector/webInspector/inspector.html: Added a first cut at a JavaScript
3098 properties pane. Needs work, but better than nothing.
3100 * WebInspector/webInspector/inspector.js: Lots of improvements:
3101 - Omit "typical" property values from computed style display, making it much shorter.
3102 - Use the words "black", "white", and "transparent" when appropriate for color values.
3103 - Refactored the loaded() function to get rid of repetitive scrollbar setup.
3104 - Added a new scrollarea for the JavaScript properties pane.
3105 - Simplified refreshScrollbars() -- we now refresh all scrollbars every time, which does no harm.
3106 - Removed unused resultsWithXpathQuery().
3107 - Use [] instead of "new Array()" and {} instead of "new Object()".
3108 - Removed unused xpathForNode().
3109 - Changed style pane to display the style for a text node's parent instead of saying
3110 it can't display the style for text.
3111 - Fixed regression I caused a while back by checking the length of a computed style
3112 and not trying to display anything if its length is 0. Before this change and the
3113 corresponding change in WebCore, we'd see a complete list of all styles with the
3114 empty string as the value for each one.
3115 - Changed the name of the computedStyle flag on the style rules array to isComputedStyle
3116 to make it easier to understand it's a boolean.
3117 - Fixed an error in the code that does !important scanning where it was trying to
3118 do a special case for computed style, but was checking the computed style flag on
3120 - Added populateStyleListItem() function to factor out things in common between the
3121 items in the top level list and the expanded tree for shorthand properties.
3122 - Added code to make a color swatch next to the textual representation for any
3123 property that contains a color.
3124 - Implemented a first cut at a simple JavaScript properties pane.
3126 2006-07-29 Darin Adler <darin@apple.com>
3128 - Removed tabs from these source files that still had them.
3129 We don't use them; that way source files look fine in editors
3130 that have tabs set to 8 spaces or to 4 spaces.
3131 - Removed allow-tabs Subversion property from the files too.
3133 * DefaultDelegates/WebDefaultPolicyDelegate.m:
3134 * History/WebHistory.m:
3135 * Misc/WebDownload.m:
3136 * Misc/WebIconDatabase.m:
3137 * Misc/WebKitErrors.m:
3138 * Misc/WebKitLogging.m:
3139 * Misc/WebNSDataExtras.m:
3140 * Misc/WebNSFileManagerExtras.m:
3141 * Panels/WebPanelAuthenticationHandler.m:
3142 * Plugins/WebBaseNetscapePluginView.m:
3143 * Plugins/npfunctions.h:
3144 * WebCoreSupport/WebSubresourceLoader.m:
3145 * WebView/WebMainResourceLoader.m:
3146 * WebView/WebView.h:
3147 * WebView/WebView.m:
3149 2006-07-29 Sam Weinig <sam.weinig@gmail.com>
3153 - patch for http://bugs.webkit.org/show_bug.cgi?id=10080
3154 Adopt pedantic changes from the Unity project to improve
3155 cross-compiler compatibility
3158 * Adding missing newline to the end of the file.
3159 * Turning on gcc warning for missing newline at the end of a source file
3160 (GCC_WARN_ABOUT_MISSING_NEWLINE in Xcode, -Wnewline in gcc).
3162 * WebKit.xcodeproj/project.pbxproj:
3163 * WebView/WebResourcePrivate.h:
3165 2006-07-29 Mitz Pettel <opendarwin.org@mitzpettel.com>
3167 Reviewed by John Sullivan.
3169 - fix http://bugs.webkit.org/show_bug.cgi?id=9984
3170 ASSERTION FAILURE: _private->mouseDownEvent != nil
3171 (WebKit/WebView/WebHTMLView.m:4863 -[WebHTMLView(WebInternal) _delegateDragSourceActionMask])
3173 * WebView/WebHTMLView.m:
3174 (-[WebHTMLView _setMouseDownEvent:]): Moved into the WebHTMLViewFileInternal category and changed
3176 (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
3177 Copy the hit HTMLView's mouse down event to the top HTMLView.
3178 (-[WebHTMLView acceptsFirstMouse:]): Added a call to _setMouseDownEvent:nil before returning.
3179 (-[WebHTMLView shouldDelayWindowOrderingForEvent:]): Added a call to _setMouseDownEvent:nil
3181 (-[WebHTMLView mouseUp:]): Added a call to _setMouseDownEvent:nil to clear the event set in
3182 mouseDown: (and used during dragging).
3183 (-[WebHTMLView _delegateDragSourceActionMask]): Copy the hit HTMLView's mouse down event to
3186 2006-07-28 Timothy Hatcher <timothy@apple.com>
3190 <rdar://problem/4657473> REGRESSION: Spell check not available from contextual menu in Mail
3192 The context menu code should be checking isContentEditable
3193 on DOMNode not just DOMElement. This is needed because DOMText
3194 will be the node class of any text that is clicked.
3196 * DefaultDelegates/WebDefaultContextMenuDelegate.m:
3197 (-[WebDefaultUIDelegate webView:contextMenuItemsForElement:defaultMenuItems:]):
3199 2006-07-25 Geoffrey Garen <ggaren@apple.com>
3201 Reviewed by Maciej, inspired by John.
3203 - Fixed <rdar://problem/4651931> 1% REGRESSION on iBench HTML due to
3204 repeated requests for non-existent favicon
3206 An optimization to avoid serializing favicon data for missing icons had stomped an
3207 optimization to avoid GETing a missing favicon more than once. The solution
3208 is a happy marriage of optimizations, ensuring that we *retain* the missing
3209 favicon's "i am missing" data without posting a notification or saving it to disk.
3211 * Misc/WebIconDatabase.m:
3212 (-[WebIconDatabase _setIconURL:forURL:]):
3214 2006-07-25 David Harrison <harrison@apple.com>
3216 Reviewed by timo and Darin.
3218 <rdar://problem/4618584> "Paste and Match Style" is not working in Mail (add SPI)
3220 * WebKit.xcodeproj/project.pbxproj:
3221 * WebView/WebView.m:
3222 (-[WebView replaceSelectionWithNode:]):
3223 (-[WebView _replaceSelectionWithNode:matchStyle:]):
3224 * WebView/WebViewPrivate.h:
3225 (-[WebView _replaceSelectionWithNode:matchStyle::]):
3226 New SPI that is same as replaceSelectionWithNode: with added parameter whether to match existing style.
3228 2006-07-24 Darin Adler <darin@apple.com>
3230 Reviewed by Adele and Justin.
3232 - update for change to require context when creating fragments from text
3233 (needed to handle whitespace properly)
3235 * WebView/WebHTMLView.m:
3236 (-[WebHTMLView _documentFragmentFromPasteboard:inContext:allowPlainText:chosePlainText:]):
3237 Added context parameter, pass through to bridge.
3238 (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]): Pass selection range as context
3239 when calling above method.
3240 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): Pass drag caret as context when
3241 calling above method.
3243 2006-07-24 Maciej Stachowiak <mjs@apple.com>
3247 - fix <rdar://problem/4609195> Help Viewer loads empty window (not getting didFailLoadingWithError: callback)
3248 (without re-introducing http://bugs.webkit.org/show_bug.cgi?id=10062 )
3250 * WebView/WebLoader.h:
3251 * WebView/WebMainResourceLoader.m:
3252 (-[WebMainResourceLoader receivedError:]): Copy in some code from the base class to do it in the proper
3253 order, surrounding the call to [ds _receivedMainResourceError:error complete:YES].
3255 2006-07-24 Anders Carlsson <acarlsson@apple.com>
3259 * Misc/WebIconDatabase.m:
3260 (-[WebIconDatabase removeAllIcons]):
3261 Make an array of the keys and iterate through it to avoid modifying the
3262 dictionary while enumerating it.
3264 2006-07-24 Timothy Hatcher <timothy@apple.com>
3266 Reviewed by John and Darin.
3268 <rdar://problem/4634290> Cannot selectively install a custom
3269 scroller that differs from the default Aqua frame size.
3271 Adds two new private methods to WebFrameView that allows
3272 an application to set a custom scroll view class. This is needed
3273 if the application wants to install a custom scroller that is wider
3274 than the typical scroller, because NSScrollView does the content
3275 rect calculations in a class method (ignoring custom scrollers.)
3276 The _setScrollViewClass method requires the class to be a subclass
3277 of WebDynamicScrollBarView, or nil can be passed to reset to the default class.
3278 A new scroll view of the specified class will then replace the previous
3279 one without the need to reload content of the frame.
3281 * WebView/WebFrameView.m:
3282 (-[WebFrameView _customScrollViewClass]):
3283 (-[WebFrameView _setCustomScrollViewClass:]):
3284 * WebView/WebFrameViewPrivate.h:
3286 2006-07-24 Alexey Proskuryakov <ap@nypop.com>
3290 Fix http://bugs.webkit.org/show_bug.cgi?id=10009
3291 REGRESSION: Schubert-IT PDF Plug-in not working for full page (works in frames)
3293 * WebView/WebView.m:
3294 (+[WebView _viewClass:andRepresentationClass:forMIMEType:]): If we've got a type supported by WebPDFView,
3295 make sure to initialize the plugin database, in case a plugin wants to handle it.
3297 2006-07-23 Mark Rowe <opendarwin.org@bdash.net.nz>
3301 Bug 9686: [Drosera] Need the ability to break into Drosera on Javascript exceptions
3302 http://bugs.webkit.org/show_bug.cgi?id=9686
3304 WebKit portion of the fix.
3306 * DefaultDelegates/WebDefaultScriptDebugDelegate.m:
3307 (-[WebDefaultScriptDebugDelegate webView:exceptionWasRaised:sourceId:line:forWebFrame:]):
3308 * DefaultDelegates/WebScriptDebugServer.h:
3309 * DefaultDelegates/WebScriptDebugServer.m:
3310 (-[WebScriptDebugServer webView:exceptionWasRaised:sourceId:line:forWebFrame:]): Notify
3311 listeners that an exception has been raised.
3312 * WebView/WebScriptDebugDelegate.h:
3313 * WebView/WebScriptDebugDelegate.m:
3314 (-[WebScriptCallFrame exceptionRaised:sourceId:line:]): Dispatch through to delegate and
3315 WebScriptDebugServer.
3317 2006-07-23 Adele Peterson <adele@apple.com>
3321 - Fix for <rdar://problem/4646276> CrashTracer: 7 crashes in Safari at com.apple.WebCore: WebCore::RenderTableSection::paint + 155
3323 * WebView/WebHTMLView.m: (-[WebHTMLView _web_layoutIfNeededRecursive:testDirtyRect:]):
3324 needsDisplay was returning NO even though the view has a dirty rect (see <rdar://problem/4647062>). Since we know about
3325 the dirty rect, we don't actually need to check needsDisplay.
3327 2006-07-22 Timothy Hatcher <timothy@apple.com>
3331 Bug 10062: REGRESSION: dom/xhtml/level2/html/HTMLIFrameElement11.xhtml asserts/crashes
3332 http://bugs.webkit.org/show_bug.cgi?id=10062
3334 2006-07-21 Timothy Hatcher <timothy@apple.com>
3338 <rdar://problem/4609195> Help Viewer loads empty window
3339 (not getting didFailLoadingWithError: callback)
3341 Call super's didFailWithError before _receivedMainResourceError
3342 because _receivedMainResourceError will cause the datasource's
3343 frame to be set to nil before the didFailLoadingWithError delegate
3344 callback is sent. (This order is needed now that WebDataSource does
3345 not hold on to the WebView; it uses the WebFrame to get to the WebView.
3346 If the WebFrame is nil we can't get to the WebView's resource load delegate.)
3348 * WebView/WebMainResourceLoader.m:
3349 (-[WebMainResourceLoader receivedError:]):
3352 2006-07-22 Timothy Hatcher <timothy@apple.com>
3356 <rdar://problem/4646318> REGRESSION: Ctrl-clicking on a selection containing a word doesn't display a complete contextual menu
3358 Show the editing context menu if the WebView is editible.
3359 The original change only checked if the DOM element was editable,
3360 and isContentEditable returns NO if entire WebView is editable.
3362 * DefaultDelegates/WebDefaultContextMenuDelegate.m:
3363 (-[WebDefaultUIDelegate webView:contextMenuItemsForElement:defaultMenuItems:]):
3365 2006-07-21 Timothy Hatcher <timothy@apple.com>
3369 <rdar://problem/4609195> Help Viewer loads empty window
3370 (not getting didFailLoadingWithError: callback)
3372 Call super's didFailWithError before _receivedMainResourceError
3373 because _receivedMainResourceError will cause the datasource's
3374 frame to be set to nil before the didFailLoadingWithError delegate
3375 callback is sent. (This order is needed now that WebDataSource does
3376 not hold on to the WebView; it uses the WebFrame to get to the WebView.
3377 If the WebFrame is nil we can't get to the WebView's resource load delegate.)
3379 * WebView/WebMainResourceLoader.m:
3380 (-[WebMainResourceLoader receivedError:]):
3382 === Safari-521.20 ===
3384 2006-07-21 Timothy Hatcher <timothy@apple.com>
3388 <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)
3390 Do not use _isEditable call since that only checks if the current
3391 selection or frame is editible. We now check if the currently clicked element
3392 is a content editible area, a textarea, an isindex or an input element that
3393 return YES to _isTextField.
3395 * DefaultDelegates/WebDefaultContextMenuDelegate.m:
3396 (-[WebDefaultUIDelegate webView:contextMenuItemsForElement:defaultMenuItems:]):
3398 2006-07-20 John Sullivan <sullivan@apple.com>
3402 - WebKit part of fix for:
3403 <rdar://problem/4557386> REGRESSION (419.3-521.19): repro Safari world leak involving
3404 closing tabs after clicking in a web page
3406 * WebCoreSupport/WebFrameBridge.m:
3407 (-[WebFrameBridge textViewWasFirstResponderAtMouseDownTime:]):
3408 renamed to be more specific (formerly wasFirstResponderAtMouseDownTime:)
3410 * WebView/WebHTMLViewInternal.h:
3411 * WebView/WebHTMLView.m:
3412 (-[WebTextCompleteController dealloc]):
3413 updated for name change
3414 (-[NSArray _setMouseDownEvent:]):
3415 Now only retains the first responder if it's a textView, since that's the only case that the only client
3416 actually cares about. This avoids a reference cycle caused by retaining self. This is the only substantive
3417 part of the patch; all the rest is just renaming for clarity, and comments.
3418 (-[NSArray mouseDown:]):
3419 updated for name change
3420 (-[WebHTMLView _textViewWasFirstResponderAtMouseDownTime:]):
3421 renamed to be more specific (formerly _wasFirstResponderAtMouseDownTime:)
3423 2006-07-19 Tim Omernick <timo@apple.com>
3427 <rdar://problem/4523432> safari crashed right after disabling "block pop up windows" (or other WebPreferences changes)
3429 * Plugins/WebBaseNetscapePluginView.m:
3430 (-[WebBaseNetscapePluginView viewWillMoveToSuperview:]):
3431 Stop the plug-in when it is removed from its superview. It is not sufficient to do this in -viewWillMoveToWindow:nil, because
3432 the WebView might still has a hostWindow at that point, which prevents the plug-in from being destroyed.
3433 There is no need to start the plug-in when moving into a superview. -viewDidMoveToWindow takes care of that.
3435 === Safari-521.19 ===
3437 2006-07-17 Tim Omernick <timo@apple.com>
3441 <rdar://problem/4612079> need a way to prevent pages from scrolling to reveal elements that are focused
3444 * WebView/WebViewPrivate.h:
3445 * WebView/WebView.m:
3446 (-[WebView setProhibitsMainFrameScrolling:]):
3447 New method. Prohibits scrolling in the WebView's main frame. Used to "lock" a WebView to a specific
3450 2006-07-17 Timothy Hatcher <timothy@apple.com>
3454 <rdar://problem/4635311> REGRESSION: WebKit should call windowScriptObjectAvailable before attaching the script debugger
3456 * WebCoreSupport/WebFrameBridge.m:
3457 (-[WebFrameBridge windowObjectCleared]):
3459 2006-07-17 Timothy Hatcher <timothy@apple.com>
3463 <rdar://problem/4634874> WebScriptObject and WebUndefined are no longer defined by WebKit
3465 Copy WebScriptObject.h from WebCore's private headers, not JavaScriptCore.
3467 * WebKit.xcodeproj/project.pbxproj:
3469 2006-07-17 John Sullivan <sullivan@apple.com>
3471 Reviewed by Tim Omernick.
3473 - fixed <rdar://problem/4604366> Orange Find highlight displays text in wrong size on PDF pages
3474 if they're not at "actual size"
3476 To match WebHTMLView, I made the methods that return attributed strings take the view's scale
3477 factor into account.
3479 * WebView/WebPDFView.m:
3480 (-[WebPDFView _scaledAttributedString:]):
3481 new helper method, takes an attributed string and returns one that's scaled by the view's
3482 current scale factor
3483 (-[WebPDFView attributedString]):
3484 pass result through _scaledAttributedString:
3485 (-[WebPDFView selectedAttributedString]):
3488 2006-07-17 Justin Garcia <justin.garcia@apple.com>
3492 Rolled the first fix for:
3493 <http://bugs.webkit.org/show_bug.cgi?id=9642>
3494 GMail Editor: Operations that use drop down menus blow away the selection
3495 back in and removed the call to _clearSelectionInOtherFrames from
3496 -[WebHTMLView becomeFirstResponder] to fix the bug.
3498 * WebView/WebHTMLView.m:
3499 (-[NSArray maintainsInactiveSelection]):
3500 (-[NSArray becomeFirstResponder]):
3501 * WebView/WebView.m:
3502 (-[WebView maintainsInactiveSelection]):
3504 2006-07-15 Darin Adler <darin@apple.com>
3506 Reviewed by John Sullivan.
3508 - fix http://bugs.webkit.org/show_bug.cgi?id=9928
3509 REGRESSION: Text Encoding menu inoperative (after gcc protocol build fix)
3511 * WebView/WebHTMLView.m:
3512 (-[WebHTMLView _documentRange]): Moved into WebHTMLViewFileInternal category.
3513 (-[WebHTMLView selectionRect]): Moved into WebDocumentPrivateProtocols category.
3514 (-[WebHTMLView selectionView]): Ditto.
3515 (-[WebHTMLView selectionImageForcingWhiteText:]): Ditto.
3516 (-[WebHTMLView selectionImageRect]): Ditto.
3517 (-[WebHTMLView pasteboardTypesForSelection]): Ditto.
3518 (-[WebHTMLView selectAll]): Ditto.
3519 (-[WebHTMLView deselectAll]): Ditto.
3520 (-[WebHTMLView string]): Ditto.
3521 (-[WebHTMLView _attributeStringFromDOMRange:]): Ditto.
3522 (-[WebHTMLView attributedString]): Ditto.
3523 (-[WebHTMLView selectedString]): Ditto.
3524 (-[WebHTMLView selectedAttributedString]): Ditto.
3525 (-[WebHTMLView supportsTextEncoding]): Ditto.
3526 (-[WebHTMLView _canProcessDragWithDraggingInfo:]): Moved into WebDocumentInternalProtocols.
3527 (-[WebHTMLView _isMoveDrag]): Ditto.
3528 (-[WebHTMLView _isNSColorDrag:]): Ditto.
3529 (-[WebHTMLView draggingUpdatedWithDraggingInfo:actionMask:]): Ditto.
3530 (-[WebHTMLView draggingCancelledWithDraggingInfo:]): Ditto.
3531 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): Ditto.
3532 (-[WebHTMLView elementAtPoint:]): Ditto.
3533 (-[WebHTMLView elementAtPoint:allowShadowContent:]): Ditto.
3535 * WebKit.xcodeproj/project.pbxproj: Let Xcode 2.3 do its thing.
3537 === Safari-521.17 ===
3539 2006-07-14 Timothy Hatcher <timothy@apple.com>
3541 Rolling out this fix from r15358 since it isn't resolved.
3543 2006-07-11 Justin Garcia <justin.garcia@apple.com>
3545 Reviewed by levi & thatcher
3547 <http://bugs.webkit.org/show_bug.cgi?id=9642>
3548 GMail Editor: Operations that use drop down menus blow away the selection
3550 * WebView/WebHTMLView.m:
3551 (-[WebHTMLView maintainsInactiveSelection]): Maintain an inactive selection
3552 when resigning as first responder if the selection is editable
3553 or if the WebView tells us to.
3554 * WebView/WebView.m:
3555 (-[WebView maintainsInactiveSelection]): Just because a WebView is
3556 editable doesn't mean selections inside subframes will be. Return
3559 2006-07-14 Timothy Hatcher <timothy@apple.com>
3561 <rdar://problem/4623957> SWB: gcc-5412 (new?) objc warning causes WebCore project failure
3563 Build fix with the new GCC. Removes forward declarations of protocols.
3565 * Misc/WebSearchableTextView.h:
3566 * WebCoreSupport/WebSubresourceLoader.h:
3567 * WebKit.xcodeproj/project.pbxproj:
3568 * WebView/WebDocumentInternal.h:
3569 * WebView/WebDocumentPrivate.h:
3570 * WebView/WebHTMLView.h:
3571 * WebView/WebPDFView.h:
3572 * WebView/WebScriptDebugDelegatePrivate.h:
3574 2006-06-28 Darin Adler <darin@apple.com>
3578 - fix http://bugs.webkit.org/show_bug.cgi?id=9625
3579 <rdar://problem/4604703>
3580 REGRESSION: Focus not removed from password field after ctrl-click in text field
3582 * WebView/WebHTMLView.m: (-[WebHTMLView menuForEvent:]): Set handlingMouseDownEvent to
3583 YES while calling sendContextMenuEvent: on the bridge.
3585 2006-07-14 Timothy Hatcher <timothy@apple.com>
3589 Moved JavaScriptCore to be a public framework.
3591 * WebKit.xcodeproj/project.pbxproj:
3593 2006-07-13 Mitz Pettel <opendarwin.org@mitzpettel.com>
3597 - fix http://bugs.webkit.org/show_bug.cgi?id=9795
3598 REGRESSION: Crash in [WebHTMLView(WebPrivate)
3599 _updateMouseoverWithEvent:]
3600 and http://bugs.webkit.org/show_bug.cgi?id=9850
3601 REGRESSION: Assertion failure (SHOULD NEVER BE REACHED) in -
3602 [WebHTMLView(WebPrivate) removeTrackingRect:]
3604 * WebView/WebHTMLView.m:
3605 (-[WebHTMLView _updateMouseoverWithEvent:]): Return immediately if
3606 the view has already been closed.
3608 2006-07-13 David Harrison <harrison@apple.com>
3610 Reviewed by Justin and Levi.
3612 <rdar://problem/4620743> REGRESSION: Option-Delete doesn't delete words during typing
3615 editing/deleting/delete-by-word-001.html
3616 editing/deleting/delete-by-word-002.html
3618 * WebView/WebHTMLView.m:
3619 (-[WebHTMLView _deleteRange:killRing:prepend:smartDeleteOK:deletionAction:granularity:]):
3621 2006-07-13 Timothy Hatcher <timothy@apple.com>
3623 Rolling out this earlier change (r15378) now that it is fixed on AGL's end.
3624 Fixes <rdar://problem/4624865> Restore 64-bit OpenGL plug-in support once AGL is 64-bit
3626 <rdar://problem/4624858> AGL isn't 64-bit yet; temporarily remove it from WebKit 64-bit build
3628 * Plugins/WebBaseNetscapePluginView.h:
3629 * Plugins/WebBaseNetscapePluginView.m:
3631 2006-07-13 Timothy Hatcher <timothy@apple.com>
3635 <rdar://problem/4616920> REGRESSION: tabbing in mail moves focus
3636 to next control instead of inserting a tab space.
3638 Change editible WebView's tabKeyCyclesThroughElements to NO only
3639 if the setTabKeyCyclesThroughElements SPI wasn't called.
3641 * WebView/WebView.m:
3642 (-[WebView setEditable:]):
3644 2006-07-12 Anders Carlsson <acarlsson@apple.com>
3648 http://bugs.webkit.org/show_bug.cgi?id=9624
3649 REGRESSION: After ctrl-clicking in a EMPTY input or textarea field, the contextual menu shows "Search in Google" and "Search in Spotlight" as active menu items
3651 * DefaultDelegates/WebDefaultContextMenuDelegate.m:
3652 (-[WebDefaultUIDelegate editingContextMenuItemsForElement:defaultMenuItems:]):
3653 Don't create Dictionary, Spotlight or Google lookup items if there's no selection.
3655 2006-07-12 Mark Rowe <opendarwin.org@bdash.net.nz>
3657 Reviewed by Timothy.
3659 http://bugs.webkit.org/show_bug.cgi?id=9868
3660 Applications shown in Drosera's "Attach" window remain after exit
3662 * DefaultDelegates/WebScriptDebugServer.m:
3663 (-[WebScriptDebugServer init]): Register for NSApplicationWillTerminateNotification so we will
3664 know when the application is being exited.
3665 (-[WebScriptDebugServer dealloc]): Unregister notification before we are deallocated.
3666 (-[WebScriptDebugServer applicationTerminating:]): Inform anyone listening that we are going away.
3668 2006-07-12 Tim Omernick <timo@apple.com>
3670 Reviewed by Tim Hatcher.
3672 <rdar://problem/4624858> AGL isn't 64-bit yet; temporarily remove it from WebKit 64-bit build
3674 Also, fixed a LOG_ERROR() so that it uses the CGL error instead of the AGL error; Tim H missed this in his build fix
3677 * Plugins/WebBaseNetscapePluginView.h:
3678 * Plugins/WebBaseNetscapePluginView.m:
3680 2006-07-11 John Sullivan <sullivan@apple.com>
3682 Reviewed by Kevin and Tim O
3684 - added support for creating a selection image with white text
3686 * WebView/WebDocumentPrivate.h:
3687 added -selectionImageForcingWhiteText: and -selectionImageRect to the private
3688 <WebDocumentSelection> protocol
3690 * Misc/WebSearchableTextView.m:
3691 (-[NSString selectionImageForcingWhiteText:]):
3692 added stub for this new method to this obsolete class to satisfy the compiler
3693 (-[NSString selectionImageRect]):
3696 * WebView/WebHTMLView.m:
3697 (-[WebHTMLView _selectionDraggingImage]):
3698 now calls -selectionImageForcingWhiteText:NO instead of just -selectionImage
3699 (-[WebHTMLView _selectionDraggingRect]):
3700 now calls selectionImageRect, to which the implementation moved
3701 (-[WebHTMLView selectionImageForcingWhiteText:]):
3702 implemented this new method by calling through to new bridge method selectionImageForcingWhiteText:
3703 (-[WebHTMLView selectionImageRect]):
3704 implemented this new method by using existing _selectionDraggingRect implementation
3706 * WebView/WebPDFView.m:
3707 (-[WebPDFView selectionImageForcingWhiteText:]):
3708 implemented by using code that was formerly in Safari
3709 (-[WebPDFView selectionImageRect]):
3710 implemented by returning selectionRect
3712 2006-07-11 Tim Omernick <timo@apple.com>
3716 <http://bugs.webkit.org/show_bug.cgi?id=9843>:
3717 Give Netscape plug-ins access to their own DOM element
3719 * Plugins/WebBaseNetscapePluginView.h:
3720 * Plugins/WebBaseNetscapePluginView.m:
3721 (-[WebBaseNetscapePluginView dealloc]):
3722 Release DOM element.
3723 (-[WebBaseNetscapePluginView getVariable:value:]):
3724 Return NPObject for plugin DOM element.
3726 * Plugins/WebNetscapePluginEmbeddedView.h:
3727 * Plugins/WebNetscapePluginEmbeddedView.m:
3728 (-[WebNetscapePluginEmbeddedView initWithFrame:plugin:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:DOMElement:]):
3729 Now takes a DOMElement, in much the same way that WebKit plug-in views take a DOMElement.
3731 * WebCoreSupport/WebFrameBridge.m:
3732 (-[WebFrameBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:DOMElement:loadManually:]):
3733 Pass DOMElement to Netscape plug-ins.
3734 (-[WebFrameBridge viewForJavaAppletWithFrame:attributeNames:attributeValues:baseURL:DOMElement:]):
3737 2006-07-11 Justin Garcia <justin.garcia@apple.com>
3739 Reviewed by levi & thatcher
3741 <http://bugs.webkit.org/show_bug.cgi?id=9642>
3742 GMail Editor: Operations that use drop down menus blow away the selection
3744 * WebView/WebHTMLView.m:
3745 (-[WebHTMLView maintainsInactiveSelection]): Maintain an inactive selection
3746 when resigning as first responder if the selection is editable
3747 or if the WebView tells us to.
3748 * WebView/WebView.m:
3749 (-[WebView maintainsInactiveSelection]): Just because a WebView is
3750 editable doesn't mean selections inside subframes will be. Return
3753 2006-07-11 Tim Omernick <timo@apple.com>
3755 Reviewed by Tim Hatcher.
3757 <rdar://problem/4622748> WebKit now uses deprecated AGL functions
3759 * Plugins/WebBaseNetscapePluginView.m:
3760 (-[WebBaseNetscapePluginView _createWindowedAGLContext]):
3761 aglSetDrawable() is deprecated in AGL 3.0. Use aglSetWindowRef() instead.
3762 (-[WebBaseNetscapePluginView _createWindowlessAGLContext]):
3763 aglSetOffScreen() is deprecated in AGL 3.0. Use CGLSetOffScreen(), which does the same thing.
3765 2006-07-11 Alexey Proskuryakov <ap@nypop.com>
3769 - http://bugs.webkit.org/show_bug.cgi?id=7808
3770 Assertion failure in -[WebBaseNetscapePluginStream dealloc] when requesting an invalid URL
3772 * Plugins/WebNetscapePluginStream.m:
3773 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
3774 Remove the early return when requesting an invalid (unsupported) URL.
3776 === Safari-521.16 ===
3778 2006-07-10 Mitz Pettel <opendarwin.org@mitzpettel.com>
3780 Reviewed by John Sullivan.
3782 - fix <rdar://problem/4621541>, aka <http://bugs.webkit.org/show_bug.cgi?id=9838>
3783 REGRESSION (r14968-r14977): View Source doesn't work for pages from the back/forward cache
3785 * WebView/WebDataSource.m:
3786 (-[WebDataSource _setPrimaryLoadComplete:]): Set our data only if the frame loader is
3787 has just loaded it (when coming from the back/forward cache, it hasn't).
3789 2006-07-10 Brady Eidson <beidson@apple.com>
3793 Resolved the console error messages people got from the new DB even if they didn't have it enabled
3795 * Misc/WebIconDatabase.m:
3796 (-[WebIconDatabase init]):
3797 Disabled initializing the IconDatabaseBridge if user is living on the old DB
3799 2006-07-10 Darin Adler <darin@apple.com>
3801 - try to fix Windows build
3803 * COM/WebFrame.h: Qualify DeprecatedString and KURL with WebCore:: prefixes.
3805 2006-07-09 Darin Adler <darin@apple.com>
3807 - try to fix Windows build
3809 * COM/WebFrame.cpp: Rename QChar to DeprecatedChar.
3811 2006-07-09 Darin Adler <darin@apple.com>
3813 - fix newlines to be consistent for all files in the COM directory
3814 (many had mixed style) and set the EOL style to "native" on them.
3816 * COM/*: Set properties and changed files.
3818 2006-07-09 Tim Omernick <timo@apple.com>
3822 <rdar://problem/4404652> Netscape plug-in mouse events broken in HiDPI
3824 Multiply global mouse coordinates by the window scale factor so that plug-ins can use GlobalToLocal() in HiDPI.
3825 This fixes many bugs involving plug-in mouse event handling in HiDPI. Most notably, the Flash player will now
3826 correctly respond to clicks.
3828 * Plugins/WebBaseNetscapePluginView.m:
3829 (+[WebBaseNetscapePluginView getCarbonEvent:]):
3830 (-[WebBaseNetscapePluginView getCarbonEvent:withEvent:]):
3832 2006-07-09 Darin Adler <darin@apple.com>
3834 Reviewed by Tim Hatcher.
3836 - fix assertion firing in plug-in layout tests
3838 * Plugins/WebBaseNetscapePluginView.m:
3839 (-[WebBaseNetscapePluginView restartNullEvents]):
3840 Don't start null events if the plug-in is not in the
3841 started state. This happens when the plug-in moves within
3842 its view hierarchy after it has been stopped.
3844 2006-07-09 Timothy Hatcher <timothy@apple.com>
3848 Bug 9820: Move new DOM API that has been through API review to public headers
3849 http://bugs.webkit.org/show_bug.cgi?id=9820
3851 * Misc/WebElementDictionary.m: include DOMExtensions.h
3852 * Misc/WebNSViewExtras.m: include DOMExtensions.h
3853 * WebKit.xcodeproj/project.pbxproj: make DOMXPath.h public
3855 2006-07-09 Timothy Hatcher <timothy@apple.com>
3859 Bug 9818: move new UIDelegate API that has been through API review to public headers
3860 http://bugs.webkit.org/show_bug.cgi?id=9818
3862 <rdar://problem/4387541> API: Remove webView:setContentRect: & webViewContentRect: delegate methods?
3863 The fix for 4310363 removed the only use of webViewContentRect: in our code. webView:setContentRect:
3864 was never used to begin with. There's no harm in leaving these around in the API, but they'll cruft it up.
3866 Also removes the never used webViewPrint: SPI that was replaced by webView:printFrameView:.
3868 * DefaultDelegates/WebDefaultUIDelegate.m:
3869 * WebCoreSupport/WebFrameBridge.m:
3870 (-[WebFrameBridge print]):
3871 * WebView/WebFrameView.h:
3872 * WebView/WebFrameView.m:
3873 * WebView/WebFrameViewPrivate.h:
3874 * WebView/WebUIDelegate.h:
3875 * WebView/WebUIDelegatePrivate.h:
3877 2006-07-09 Timothy Hatcher <timothy@apple.com>
3881 Bug 9814: Move new WebView API that has been through API review to public headers
3882 http://bugs.webkit.org/show_bug.cgi?id=9814
3884 * WebView/WebView.h:
3885 * WebView/WebView.m:
3887 (-[WebView setShouldCloseWithWindow:]):
3888 (-[WebView shouldCloseWithWindow]):
3889 (-[WebView selectedFrame]):
3890 (-[WebView setMainFrameURL:]):
3891 (-[WebView mainFrameURL]):
3892 (-[WebView isLoading]):
3893 (-[WebView mainFrameTitle]):
3894 (-[WebView mainFrameIcon]):
3895 (-[WebView mainFrameDocument]):
3896 (-[WebView setDrawsBackground:]):
3897 (-[WebView drawsBackground]):
3898 (-[WebView toggleSmartInsertDelete:]):
3899 (-[WebView toggleContinuousSpellChecking:]):
3900 (-[WebView canMakeTextStandardSize]):
3901 (-[WebView makeTextStandardSize:]):
3902 (-[WebView maintainsInactiveSelection]):
3903 * WebView/WebViewPrivate.h:
3905 2006-07-09 Timothy Hatcher <timothy@apple.com>
3909 Bug 9487: The XPath section should be removed and/or moved.
3910 http://bugs.webkit.org/show_bug.cgi?id=9487
3912 * WebInspector/webInspector/inspector.css:
3913 * WebInspector/webInspector/inspector.html:
3914 * WebInspector/webInspector/inspector.js:
3916 2006-07-09 Anders Carlsson <acarlsson@apple.com>
3920 * WebCoreSupport/WebSystemInterface.m:
3921 (InitWebCoreSystemInterface):
3922 Initialize wkPathFromFont.
3924 2006-07-09 Darin Adler <darin@apple.com>
3928 * Plugins/WebBaseNetscapePluginView.m:
3929 (-[WebBaseNetscapePluginView restorePortState:]): Cast inside the assertion so
3930 that we don't have an unused variable in versions with assertions disabled.
3931 The alternative would be to wrap the whole thing in an #if statement.
3933 2006-07-08 Tim Omernick <timo@apple.com>
3935 Reviewed by John Sullivan.
3937 * Plugins/WebBaseNetscapePluginView.h:
3938 - Added ivars for OpenGL support. Someday it would be nice to refactor this class so
3939 that each drawing model is encapsulated in a class; this would allow
3940 WebBaseNetscapePluginView to make more efficient use of space, for example by not
3941 keeping OpenGL-related ivars for Quickdraw plug-ins.
3943 * Plugins/WebBaseNetscapePluginView.m:
3944 - Declared a bunch of internal methods for OpenGL support (see below).
3945 - Removed "forUpdate" from CoreGraphics port state struct; it was always set to "YES",
3946 so I just cleaned up the silly code that used it.
3947 - Declared OpenGL port state struct.
3948 (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
3949 - Moved a CoreGraphics-related assertion down to the big "switch" statement.
3950 - Don't set window.type here -- according to the Netscape Plug-in API docs, the plug-in
3951 should default to "windowed" mode, and may call NPN_SetValue() during its NPN_New() to
3952 request that the browser use a "windowless" (offscreen) context instead.
3953 - Moved the assertion from the top of this method here; removed a less restrictive
3954 assertion that is now obsolete.
3955 - Removed "forUpdate" flag from CoreGraphics port state struct.
3956 - Fill in OpenGL port state struct. Set up the viewport appropriately for both windowed
3957 and windowless OpenGL plug-ins. Windowed plug-ins need to have their GL viewport
3958 transformed by the amount the plug-in is clipped; windowless plug-ins are drawn off-screen
3959 into a surface whose geometry is never changed or clipped, so they may always draw with
3960 a viewport origin of (0, 0).
3961 (-[WebBaseNetscapePluginView restorePortState:]):
3962 - Removed "forUpdate" flag from CoreGraphics port state struct.
3963 - Restore the old OpenGL context saved by -saveAndSetNewPortStateForUpdate:.
3964 (-[WebBaseNetscapePluginView sendEvent:]):
3965 - Updated an assertion to also include OpenGL. To ensure that attached plug-in window movements
3966 happen atomically with web page redisplays, we assert that the plug-in's window is set only while
3967 the plug-in view is redrawing.
3968 - Same deal as with the assertion; only save/set port state when redrawing the plug-in view. Plug-ins
3969 that use the new drawing models are only allowed to draw when the web page draws. I might consider
3970 changing this for windowed OpenGL plug-ins, since they always obscure the page content anyway.
3971 (-[WebBaseNetscapePluginView isNewWindowEqualToOldWindow]):
3972 - Compare new NP_GLContext structs.
3973 (-[WebBaseNetscapePluginView updateAndSetWindow]):
3974 - In OpenGL mode, can only set window when updating plug-in view.
3975 (-[WebBaseNetscapePluginView setWindowIfNecessary]):
3977 - Updated logging for OpenGL drawing mode.
3978 (-[WebBaseNetscapePluginView addWindowObservers]):
3979 - No need to observe frame/bounds change notifications for this and all parent views. See -renewGState
3981 (-[WebBaseNetscapePluginView removeWindowObservers]):
3982 - Don't need to remove frame/bounds observers anymore.
3983 (-[WebBaseNetscapePluginView start]):
3984 - Plug-ins are "windowed" by default. This is not a change from our previous behavior, but this is a
3985 better place to set the default value as it allows the plug-in to override it later.
3986 (-[WebBaseNetscapePluginView stop]):
3987 - Destroy AGL context when the plug-in stops.
3988 (-[WebBaseNetscapePluginView dealloc]):
3989 - Assert that the AGL stuff has been cleaned up.
3990 (-[WebBaseNetscapePluginView drawRect:]):
3991 - If this is a windowless OpenGL plugin, blit its contents back into this view.
3992 (-[WebBaseNetscapePluginView renewGState]):
3993 - This method is called when the view or one of its parents is moved or resized (see comments).
3994 (-[WebBaseNetscapePluginView viewWillMoveToWindow:]):
3995 - Hide the AGL window if the plug-in view is about to be removed from its window.
3996 (-[WebBaseNetscapePluginView viewHasMoved:]):
3997 - Renamed and moved to the "Internal" category.
3998 (-[WebBaseNetscapePluginView invalidateRegion:]):
4000 - Add support for OpenGL (uses the same region type as CoreGraphics).
4001 (-[WebBaseNetscapePluginView getVariable:value:]):
4003 - Implemented NPNVsupportsOpenGLBool; returns YES since we now support the OpenGL drawing model.
4004 (-[WebBaseNetscapePluginView setVariable:value:]):
4005 - Implemented NPPVpluginWindowBool, which allows plug-ins to specify whether they should be rendered in
4006 "windowed" or "windowless" mode. This is an older part of the Netscape Plug-in API that was never
4007 implemented in WebKit. "Windowed" Quickdraw plug-ins do not actually reside in a separate window, and
4008 can already do many of the same things (such as transparency) that only "windowless" plug-ins can do on
4009 other platforms. However, we need the "windowed" vs. "windowless" distinction for OpenGL plug-ins so
4010 that they have some way of specifying whether they should be rendered on an accelerated overlay surface,
4011 composited into the browser window.
4012 - Support for setting the drawing model to OpenGL.
4013 (-[WebBaseNetscapePluginView _viewHasMoved]):
4014 - Renamed from -viewHasMoved:, and moved down in the file.
4015 - None of this work is necessary when the plug-in is not in a window; the plug-in's state will be properly
4016 restored when it is moved back into a window.
4017 - Reshape OpenGL surface window here.
4018 (-[WebBaseNetscapePluginView _createAGLContextIfNeeded]):
4019 - Creates the AGL context of the appropriate type (windowed/windowless).
4020 (-[WebBaseNetscapePluginView _createWindowedAGLContext]):
4021 - Creates a windowed AGL context, which is an AGL context attached to a child window. This is the only way
4022 to get true hardware acceleration.
4023 (-[WebBaseNetscapePluginView _createWindowlessAGLContext]):
4024 - Creates a windowless AGL context, which is an AGL context attached to an offscreen buffer. This buffer can
4025 then be blitted back into the browser window with a different alpha, or scaled, or whatever.
4026 (-[WebBaseNetscapePluginView _cglContext]):
4027 - Returns the underlying CGL context from the AGL context. We give the plug-in access to the CGL context because
4028 CGL is the more primitive of the GL drawable APIs and allows for finer control over the context.
4029 (-[WebBaseNetscapePluginView _getAGLOffscreenBuffer:width:height:]):
4030 - Returns the buffer allocated for the offscreen AGL context, if there is one.
4031 (-[WebBaseNetscapePluginView _destroyAGLContext]):
4032 - Destroys the AGL context, as well as the associated offscreen buffer or child window.
4033 (-[WebBaseNetscapePluginView _reshapeAGLWindow]):
4034 - Positions the AGL window over the browser window.
4035 (-[WebBaseNetscapePluginView _hideAGLWindow]):
4036 - Hides the AGL window.
4037 (-[WebBaseNetscapePluginView _aglOffscreenImageForDrawingInRect:]):
4038 - Returns an NSImage representation of the offscreen AGL context's framebuffer. This is used to draw the offscreen
4039 bits back into the plug-in view. This is kind of tricky because it has to convert the offscreen buffer in-place
4040 from BGRA to RGBA so that it can be wrapped in an NSBitmapImageRep. See comments.
4042 * WebKit.xcodeproj/project.pbxproj:
4043 Link OpenGL and AGL.
4045 2006-07-09 Brady Eidson <beidson@apple.com>
4049 The ICONDEBUG flag now chooses either the new icon database or the old one
4050 No longer any need to live side by side to compare results
4052 * Misc/WebIconDatabase.m:
4053 (-[NSMutableDictionary iconURLForURL:]):
4054 (-[NSMutableDictionary retainIconForURL:]):
4055 (-[NSMutableDictionary releaseIconForURL:]):
4056 (-[WebIconDatabase _setHaveNoIconForIconURL:]):
4057 (-[WebIconDatabase _setIconURL:forURL:]):
4058 (-[WebIconDatabase _resetCachedWebPreferences:]):
4060 2006-07-08 Timothy Hatcher <timothy@apple.com>
4064 Bug 5312: comments aren't available via DOM
4065 http://bugs.webkit.org/show_bug.cgi?id=5312
4067 Makes the Web Inspector show comment node contents.
4069 * WebInspector/WebInspector.m:
4070 (-[DOMNode _displayName]): return the contents of the comment
4071 * WebInspector/webInspector/inspector.js: check for comment nodes
4073 2006-07-09 Alexey Proskuryakov <ap@nypop.com>
4077 - http://bugs.webkit.org/show_bug.cgi?id=9572
4078 Add application/xhtml+xml to the Accept header
4080 * WebView/WebFrame.m:
4081 (-[WebFrame _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]): Add an Accept header
4082 to main resource requests.
4083 * English.lproj/StringsNotToBeLocalized.txt: Added new strings.
4085 2006-07-08 Darin Adler <darin@apple.com>
4087 * DefaultDelegates/WebDefaultContextMenuDelegate.m:
4088 (-[WebDefaultUIDelegate contextMenuItemsForElement:defaultMenuItems:]):
4089 Removed misleading old comment.
4091 === Safari-521.15 ===
4093 2006-07-07 Levi Weintraub <lweintraub@apple.com>
4097 Finished moving deletion selection expansion across the bridge... say that 3 times fast.
4099 * WebView/WebHTMLView.m: Pass granularity to WebCore to handle expansion
4100 (-[WebHTMLView _deleteRange:killRing:prepend:smartDeleteOK:deletionAction:granularity:]):
4101 (-[WebHTMLView _deleteSelection]):
4102 (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]):
4103 (-[WebHTMLView deleteToMark:]):
4105 2006-07-07 Brady Eidson <beidson@apple.com>
4109 Changed an ASSERT to a LOG_ERROR for an error that could be handled gracefully, but
4110 whose assertion was reproducibly causing a build bot failure
4112 * Misc/WebIconDatabase.m:
4113 (-[WebIconDatabase _releaseIconForIconURLString:]):
4115 2006-07-06 Levi Weintraub <lweintraub@apple.com>
4119 Improved table editing
4121 * WebCoreSupport/WebFrameBridge.m: Added method to allow WebCore to trigger
4122 deletion editing delegate
4123 (-[WebFrameBridge shouldDeleteSelectedDOMRange:]):
4124 * WebView/WebHTMLView.m: Moved code that expanded a selection when the delete
4125 key is pressed over to WebCore so we can be more intelligent about how to handle it
4126 (-[WebHTMLView _deleteRange:killRing:prepend:smartDeleteOK:deletionAction:]):
4127 (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]):
4129 2006-07-07 John Sullivan <sullivan@apple.com>
4131 Reviewed by Tim Hatcher
4133 - fixed <rdar://problem/4606857> WebKit: WebPreferencesChangedNotification not exported
4136 added surprisingly missing _WebPreferencesChangedNotification, defined in
4139 2006-07-06 Brady Eidson <beidson@apple.com>
4143 Small fix to my previous small fix that only lets the ASSERT off the hook if the DB
4146 * Misc/WebIconDatabase.m:
4147 (-[WebIconDatabase _releaseIconForIconURLString:]):
4149 2006-07-05 Brady Eidson <beidson@apple.com>
4153 Small fix that prevents an assertion from triggering if the DB is being cleaned up
4154 (ie, the app being shut down)
4156 * Misc/WebIconDatabase.h:
4157 * Misc/WebIconDatabase.m:
4158 (-[NSMutableDictionary init]):
4159 (-[WebIconDatabase _applicationWillTerminate:]):
4160 (-[WebIconDatabase _releaseIconForIconURLString:]):
4162 2006-07-05 Adele Peterson <adele@apple.com>
4164 Reviewed by Maciej and Hyatt.
4166 WebKit part of initial popup menu implementation.
4168 * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface):
4169 Initialize WKPopupMenu.
4171 2006-07-05 Anders Carlsson <acarlsson@apple.com>
4175 http://bugs.webkit.org/show_bug.cgi?id=3581
4176 iFrames set to display:none are Missing from frames array
4178 * WebCoreSupport/WebFrameBridge.m:
4179 (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]):
4180 (-[WebFrameBridge createChildFrameNamed:withURL:referrer:ownerElement:allowsScrolling:marginWidth:marginHeight:]):
4181 Modify to pass the owner element instead of the owner renderer.
4183 * WebView/WebHTMLView.m:
4184 (-[WebHTMLView _topHTMLView]):
4185 Remove assertion, it's not valid anymore.
4187 2006-07-05 Timothy&n