1 2006-10-08 Darin Adler <darin@apple.com>
5 - fix two recently introduced leaks: one of an NSString, the other of a WebDataSource
7 * Loader/WebDocumentLoadState.m: (-[WebDocumentLoadState setTitle:]):
8 Rearranged code to avoid storage leak in case of identical title.
10 * Loader/WebFrameLoader.h: Removed _setPolicyDocumentLoadState: method
12 * Loader/WebFrameLoader.m:
13 (-[WebFrameLoader _setPolicyDocumentLoadState:]): Added logic to call detachFromFrameLoader
14 as needed if this load state is going away rather than moving on to become the provisional
16 (-[WebFrameLoader shouldReloadToHandleUnreachableURLFromRequest:]): Tweaked formatting.
17 (-[WebFrameLoader _loadRequest:archive:]): Added an assertion.
18 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]): Added an assertion.
19 (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]): Added an assertion.
20 (-[WebFrameLoader reload]): Added an assertion.
21 (-[WebFrameLoader loadDataSource:withLoadType:formState:]): Added a local variable to avoid
22 calling _documentLoadState over and over again.
24 2006-10-07 Don Gibson <dgibson77@gmail.com>
26 Reviewed/landed by Adam.
28 http://bugs.webkit.org/show_bug.cgi?id=11199
29 Update Session History when a load is committed rather than completed.
32 (WebFrame::receivedResponse):
33 (WebFrame::receivedAllData):
35 2006-10-07 Sam Weinig <sam.weinig@gmail.com>
39 Patch for http://bugs.webkit.org/show_bug.cgi?id=11198
40 Auto-generate a few more Objective-C DOM interfaces
42 * MigrateHeaders.make:
44 2006-10-07 Mark Rowe <bdash@webkit.org>
48 Fix memory leak from -[WebDocumentLoadState setTitle:].
50 * Loader/WebDocumentLoadState.m:
51 (-[WebDocumentLoadState setTitle:]): Ensure 'trimmed' is released even when length is
52 zero, and untangle the confusing logic around this case.
54 2006-10-06 Brady Eidson <beidson@apple.com>
58 Refactored a whole bunch of WebFramePrivate.h SPI to WebFrameInternal
60 * DefaultDelegates/WebDefaultContextMenuDelegate.m:
61 * History/WebHistoryItem.m:
62 * Loader/WebFrameLoader.h:
63 * Misc/WebCoreStatistics.m:
64 * Misc/WebElementDictionary.m:
65 * Plugins/WebNetscapePluginEmbeddedView.m:
66 * Plugins/WebPluginController.m:
67 * WebCoreSupport/WebViewFactory.m:
68 * WebView/WebArchiver.m:
69 * WebView/WebDataSource.m:
71 (-[WebFrame _isDescendantOfFrame:]):
72 (-[WebFrame _setShouldCreateRenderers:]):
73 (-[WebFrame _bodyBackgroundColor]):
74 (-[WebFrame _isFrameSet]):
75 (-[WebFrame _firstLayoutDone]):
76 (-[WebFrame _loadType]):
77 * WebView/WebFrameInternal.h:
78 * WebView/WebFramePrivate.h:
79 * WebView/WebHTMLRepresentation.m:
80 * WebView/WebScriptDebugDelegate.m:
82 2006-10-06 Maciej Stachowiak <mjs@apple.com>
86 - Move all delegate dispatching code out of WebDataSource.
88 * Loader/WebFrameLoader.m:
89 (-[WebFrameLoader startLoading]):
90 (-[WebFrameLoader _identifierForInitialRequest:]):
91 (-[WebFrameLoader _willSendRequest:forResource:redirectResponse:]):
92 (-[WebFrameLoader _didReceiveAuthenticationChallenge:forResource:]):
93 (-[WebFrameLoader _didCancelAuthenticationChallenge:forResource:]):
94 (-[WebFrameLoader _didReceiveResponse:forResource:]):
95 (-[WebFrameLoader _didReceiveData:contentLength:forResource:]):
96 (-[WebFrameLoader _didFinishLoadingForResource:]):
97 (-[WebFrameLoader _didFailLoadingWithError:forResource:]):
98 (-[WebFrameLoader _receivedMainResourceError:complete:]):
99 (-[WebFrameLoader _downloadWithLoadingConnection:request:response:proxy:]):
100 (-[WebFrameLoader _checkContentPolicyForMIMEType:andCall:withSelector:]):
101 * WebView/WebDataSource.m:
102 (-[WebDataSource _setLoadingFromPageCache:]):
103 (-[WebDataSource _stopLoadingWithError:]):
104 * WebView/WebDataSourceInternal.h:
106 2006-10-06 Darin Adler <darin@apple.com>
110 - moved firstLayoutDone BOOL from WebFrame to WebFrameLoader
112 * Loader/WebFrameLoader.h:
113 * Loader/WebFrameLoader.m:
114 (-[WebFrameLoader didFirstLayout]):
115 (-[WebFrameLoader provisionalLoadStarted]):
116 (-[WebFrameLoader frameLoadCompleted]):
117 (-[WebFrameLoader firstLayoutDone]):
118 * WebCoreSupport/WebFrameBridge.m: (-[WebFrameBridge didFirstLayout]):
119 * WebView/WebFrame.m:
120 (-[WebFrame _firstLayoutDone]):
121 (-[WebFrame _provisionalLoadStarted]):
122 (-[WebFrame _frameLoadCompleted]):
123 (-[WebFrame _restoreScrollPositionAndViewState]):
124 * WebView/WebFrameInternal.h:
126 2006-10-06 Darin Adler <darin@apple.com>
130 - moved more data and the corresponding code from WebFrame to WebFrameLoader
132 * Loader/WebFrameLoader.h:
133 * Loader/WebFrameLoader.m:
134 (-[WebFrameLoader cannotShowMIMETypeForURL:]):
135 (-[WebFrameLoader _checkNavigationPolicyForRequest:andCall:withSelector:]):
136 (-[WebFrameLoader shouldReloadToHandleUnreachableURLFromRequest:]):
137 (-[WebFrameLoader _loadRequest:archive:]):
138 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
139 (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
140 (-[WebFrameLoader reload]):
141 (-[WebFrameLoader invalidatePendingPolicyDecisionCallingDefaultAction:]):
142 (-[WebFrameLoader checkNewWindowPolicyForRequest:action:frameName:formState:andCall:withSelector:]):
143 (-[WebFrameLoader _continueAfterNewWindowPolicy:]):
144 (-[WebFrameLoader checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
145 (-[WebFrameLoader continueAfterNavigationPolicy:]):
146 (-[WebFrameLoader continueAfterWillSubmitForm:]):
147 (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
148 (-[WebFrameLoader loadDataSource:withLoadType:formState:]):
149 (-[WebFrameLoader handleUnimplementablePolicyWithErrorCode:forURL:]):
150 (-[WebFrameLoader delegateIsHandlingProvisionalLoadError]):
151 (-[WebFrameLoader setDelegateIsHandlingProvisionalLoadError:]):
152 * Loader/WebFrameLoaderClient.h:
153 * WebView/WebFrame.m:
154 (-[NSView setWebFrame::]):
155 (-[WebFramePrivate dealloc]):
156 (-[WebFrame _checkLoadCompleteForThisFrame]):
157 (-[WebFrame _loadItem:withLoadType:]):
158 (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
159 (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
160 (-[WebFrame _loadRequest:inFrameNamed:]):
161 (-[WebFrame stopLoading]):
162 (-[WebFrame _resetBackForwardList]):
163 (-[WebFrame _quickRedirectComing]):
164 (-[WebFrame _provisionalItemIsTarget]):
165 (-[WebFrame _loadProvisionalItemFromPageCache]):
166 * WebView/WebFrameInternal.h:
167 * WebView/WebFramePrivate.h:
169 * WebKit.xcodeproj/project.pbxproj:
171 2006-10-06 Maciej Stachowiak <mjs@apple.com>
173 Rubber stamped by Darin.
175 - removed includes of unused headers.
177 * WebView/WebDataSource.m:
179 2006-10-06 Maciej Stachowiak <mjs@apple.com>
185 * Loader/WebFrameLoader.m:
186 (-[WebFrameLoader willChangeTitleForDocumentLoadState:]):
187 (-[WebFrameLoader didChangeTitleForDocumentLoadState:]):
189 2006-10-06 Maciej Stachowiak <mjs@apple.com>
193 - move remaining movable WebDataSource fields to WebDocumentLoadState
195 * Loader/WebDocumentLoadState.h:
196 * Loader/WebDocumentLoadState.m:
197 (-[WebDocumentLoadState dealloc]):
198 (-[WebDocumentLoadState isLoadingInAPISense]):
199 (-[WebDocumentLoadState addResponse:]):
200 (-[WebDocumentLoadState stopRecordingResponses]):
201 (-[WebDocumentLoadState title]):
202 (-[WebDocumentLoadState setLastCheckedRequest:]):
203 (-[WebDocumentLoadState lastCheckedRequest]):
204 (-[WebDocumentLoadState triggeringAction]):
205 (-[WebDocumentLoadState setTriggeringAction:]):
206 (-[WebDocumentLoadState responses]):
207 (-[WebDocumentLoadState setOverrideEncoding:]):
208 (-[WebDocumentLoadState overrideEncoding]):
209 (-[WebDocumentLoadState setTitle:]):
210 * Loader/WebFrameLoader.h:
211 * Loader/WebFrameLoader.m:
212 (-[WebFrameLoader _setState:]):
213 (-[WebFrameLoader _loadRequest:archive:]):
214 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
215 (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
216 (-[WebFrameLoader reload]):
217 (-[WebFrameLoader willChangeTitleForDocumentLoadState:]):
218 (-[WebFrameLoader didChangeTitleForDocumentLoadState:]):
219 * WebCoreSupport/WebFrameBridge.m:
220 (-[WebFrameBridge setTitle:]):
221 (-[WebFrameBridge receivedData:textEncodingName:]):
222 * WebView/WebDataSource.m:
223 (-[WebDataSourcePrivate dealloc]):
224 (-[WebDataSource _didReceiveResponse:forResource:]):
225 (-[WebDataSource textEncodingName]):
226 * WebView/WebDataSourceInternal.h:
227 * WebView/WebFrame.m:
228 (-[WebFrame _opened]):
229 (-[WebFrame _checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
230 (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
231 (-[WebFrame _addChild:]):
232 (-[WebFrame _loadDataSource:withLoadType:formState:]):
233 * WebView/WebHTMLRepresentation.m:
234 (-[WebHTMLRepresentation title]):
236 (-[WebView _mainFrameOverrideEncoding]):
238 2006-10-06 Darin Adler <darin@apple.com>
242 - moved loadType into WebFrameLoader
244 * WebView/WebFramePrivate.h: Removed _setLoadType, but not _loadType because it's
245 currently used by Safari.
247 * Loader/WebFrameLoader.h:
248 * Loader/WebFrameLoader.m:
249 (-[WebFrameLoader _loadRequest:archive:]):
250 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
251 (-[WebFrameLoader isReplacing]):
252 (-[WebFrameLoader setReplacing]):
253 (-[WebFrameLoader loadType]):
254 (-[WebFrameLoader setLoadType:]):
255 * WebCoreSupport/WebFrameBridge.m:
256 (-[WebFrameBridge isLoadTypeReload]):
257 * WebView/WebFrame.m:
258 (-[WebFrame _loadType]):
259 (-[WebFrame _transitionToCommitted:]):
260 (-[WebFrame _commitProvisionalLoad:]):
261 (-[WebFrame _opened]):
262 (-[WebFrame _checkLoadCompleteForThisFrame]):
263 (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
264 (-[WebFrame _loadURL:referrer:intoChild:]):
265 (-[WebFrame _currentBackForwardListItemToResetTo]):
266 (-[WebFrame _itemForRestoringDocState]):
267 (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
268 (-[WebFrame _didFirstLayout]):
269 (-[WebFrame _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
270 (-[WebFrame _provisionalLoadStarted]):
271 (-[WebFrame loadRequest:]):
273 2006-10-06 Darin Adler <darin@apple.com>
277 - added WebFrameLoaderClient protocol -- to be used to make WebFrameLoader forget all about WebFrame
279 * Loader/WebDocumentLoadState.h: Added comment about Maciej's planned renaming here.
280 * Loader/WebFrameLoader.h:
281 * Loader/WebFrameLoader.m: Renamed webFrame to client and added the new protocol.
282 Eventually we'll be removing the dependency on WebFrame entirely.
283 * WebView/WebFrame.m: (-[WebFrame _initWithWebFrameView:webView:bridge:]): Update to call the method
286 * Loader/WebFrameLoaderClient.h: Added.
287 * WebKit.xcodeproj/project.pbxproj: Updated for new file, sorted things.
289 2006-10-06 Maciej Stachowiak <mjs@apple.com>
293 - segregate WebFrame methods into ones that should be moved into WebFrameLoader and ones that don't need to
295 Also removed useless WebFrameLoader part
297 * WebView/WebFrame.m:
298 (-[WebFramePrivate dealloc]):
300 2006-10-06 Maciej Stachowiak <mjs@apple.com>
304 - moved more data from WebDataSource to WebDocumentLoadState
306 * Loader/WebDocumentLoadState.h:
307 * Loader/WebDocumentLoadState.m:
308 (-[WebDocumentLoadState commitLoadWithData:]):
309 (-[WebDocumentLoadState prepareForLoadStart]):
310 (-[WebDocumentLoadState loadingStartedTime]):
311 (-[WebDocumentLoadState setIsClientRedirect:]):
312 (-[WebDocumentLoadState isClientRedirect]):
313 (-[WebDocumentLoadState setPrimaryLoadComplete:]):
314 (-[WebDocumentLoadState isLoadingInAPISense]):
315 * Loader/WebFrameLoader.h:
316 * Loader/WebFrameLoader.m:
317 (-[WebFrameLoader _setState:]):
318 (-[WebFrameLoader _finishedLoading]):
319 (-[WebFrameLoader documentLoadState:mainReceivedCompleteError:]):
320 (-[WebFrameLoader prepareForLoadStart]):
321 (-[WebFrameLoader subframeIsLoading]):
322 * WebView/WebDataSource.m:
323 (-[WebDataSource _fileWrapperForURL:]):
324 (-[WebDataSource _startLoading]):
325 (-[WebDataSource _loadFromPageCache:]):
326 (-[WebDataSource isLoading]):
327 * WebView/WebDataSourceInternal.h:
328 * WebView/WebFrame.m:
329 (-[WebFrame _transitionToCommitted:]):
330 (-[WebFrame _opened]):
331 (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
333 2006-10-06 Alexey Proskuryakov <ap@nypop.com>
337 http://bugs.webkit.org/show_bug.cgi?id=11183
338 REGRESSION: Safari loads error pages unstyled
340 * WebView/WebFrame.m:
341 (-[WebFrame _loadHTMLString:baseURL:unreachableURL:]):
342 Use utf-8 encoding instead of the string's "fastest" encoding.
344 2006-10-06 Maciej Stachowiak <mjs@apple.com>
348 - fixed the following bugs:
350 http://bugs.webkit.org/show_bug.cgi?id=11136
351 "REGRESSION: Safari snippet editor doesn't work"
352 http://bugs.webkit.org/show_bug.cgi?id=11140
353 "REGRESSION: view source window blank"
354 http://bugs.webkit.org/show_bug.cgi?id=11146
355 "REGRESSION: Instead of showing the error page, Safari opens its Resources folder in the Finder"
359 * Loader/WebDocumentLoadState.h:
360 * Loader/WebDocumentLoadState.m:
361 (-[WebDocumentLoadState actualRequest]): New method.
362 * WebView/WebDataSource.m:
363 (-[WebDataSource _startLoading]): We need to make sure not to start loading the main
364 resource with the fake external request for an applewebdata: request.
366 2006-10-05 Adele Peterson <adele@apple.com>
368 Reviewed by the letter 'B'.
372 * WebKit.xcodeproj/project.pbxproj:
373 * WebView/WebDynamicScrollBarsView.h:
374 * WebView/WebDynamicScrollBarsView.m:
375 (-[WebDynamicScrollBarsView updateScrollers]):
376 (-[WebDynamicScrollBarsView setAllowsScrolling:]):
377 (-[WebDynamicScrollBarsView allowsScrolling]):
378 (-[WebDynamicScrollBarsView setAllowsHorizontalScrolling:]):
379 (-[WebDynamicScrollBarsView setAllowsVerticalScrolling:]):
380 (-[WebDynamicScrollBarsView allowsHorizontalScrolling]):
381 (-[WebDynamicScrollBarsView allowsVerticalScrolling]):
382 (-[WebDynamicScrollBarsView horizontalScrollingMode]):
383 (-[WebDynamicScrollBarsView verticalScrollingMode]):
384 (-[WebDynamicScrollBarsView setHorizontalScrollingMode:]):
385 (-[WebDynamicScrollBarsView setVerticalScrollingMode:]):
386 (-[WebDynamicScrollBarsView setScrollingMode:]):
388 (-[WebView setAlwaysShowVerticalScroller:]):
389 (-[WebView alwaysShowVerticalScroller]):
390 (-[WebView setAlwaysShowHorizontalScroller:]):
391 (-[WebView alwaysShowHorizontalScroller]):
393 2006-10-05 Vladimir Olexa <vladimir.olexa@gmail.com>
397 Bug: http://bugs.webkit.org/show_bug.cgi?id=9887
398 Continuous spell checking now remembers user's setting. The change is applied globally,
399 meaning, both TextArea and TextField are affected when either of them enables/disables
402 * WebView/WebPreferenceKeysPrivate.h: added a define for WebContinuousSpellCheckingEnabled
404 (-[WebViewPrivate init]): reads WebContinuousSpellCheckingEnabled from NSUserDefaults
405 (-[WebView setContinuousSpellCheckingEnabled:]):
406 (-[WebView isContinuousSpellCheckingEnabled]):
408 2006-10-05 MorganL <morganl.webkit@yahoo.com>
412 Fixes http://bugs.webkit.org/show_bug.cgi?id=11162
415 (WebFrame::loadDataSource):
416 (WebFrame::receivedResponse):
418 2006-10-05 Don Gibson <dgibson77@gmail.com>
420 Reviewed by Darin, landed by Adam.
422 http://bugs.webkit.org/show_bug.cgi?id=11176
423 Fix win32 build, adapt to Maciej's ResourceLoader changes.
426 (WebFrame::loadDataSource):
428 2006-10-05 Marvin Decker <marv.decker@gmail.com>
432 http://bugs.webkit.org/show_bug.cgi?id=10989
433 Provide a way for embedders to implement BrowserExtensionWin
435 * COM/Interfaces/IWebUIDelegate.idl:
437 (WebFrame::createNewWindow):
440 2006-10-04 Mark Rowe <bdash@webkit.org>
442 Reviewed by NOBODY (build fix).
445 (-[WebView scrollDOMRangeToVisible:]): Move scrollDOMRangeToVisible: into the correct category.
447 2006-09-26 David Smith <catfish.man@gmail.com>
451 http://bugs.webkit.org/show_bug.cgi?id=3723
452 Add -scrollDOMRangeToVisible:
455 (-[WebView scrollDOMRangeToVisible:]):
456 * WebView/WebViewPrivate.h:
458 2006-10-03 Graham Dennis <graham.dennis@gmail.com>
462 <http://bugs.webkit.org/show_bug.cgi?id=10338>
463 When contentEditable, cursor doesn't change to hand
465 Allow the behaviour of editable links to be specified by a WebPreference
466 The preference WebKitEditableLinkBehavior has four options:
467 - AlwaysLive: Safari 2.0 behaviour
468 - OnlyLiveWithShiftKey: Firefox/WinIE behaviour (and prior WebKit-ToT behaviour)
469 - LiveWhenNotFocused: Editable links are live only when their editable block is not
470 focused, or when the shift key is pressed
471 - DefaultBehavior: This is the same as OnlyLiveWithShiftKey.
473 No layout tests, just a modification of a manual-test as it isn't possible to test
476 * WebView/WebPreferenceKeysPrivate.h:
477 * WebView/WebPreferences.m:
478 (+[WebPreferences initialize]):
479 (-[WebPreferences editableLinkBehavior]):
480 (-[WebPreferences setEditableLinkBehavior:]):
481 * WebView/WebPreferencesPrivate.h:
483 (-[WebView _updateWebCoreSettingsFromPreferences:]):
485 2006-10-03 Justin Garcia <justin.garcia@apple.com>
489 execCommand("Cut"/"Copy"/"Paste") broken in editable subframes.
491 * WebCoreSupport/WebFrameBridge.m:
492 (-[WebFrameBridge issueCutCommand]): Issue the command on the WebHTMLView, not the WebView.
493 (-[WebFrameBridge issueCopyCommand]): Ditto.
494 (-[WebFrameBridge issuePasteCommand]): Ditto.
495 (-[WebFrameBridge issuePasteAndMatchStyleCommand]): Ditto.
496 (-[WebFrameBridge issueTransposeCommand]): Fixed formatting.
497 (-[WebFrameBridge canPaste]): Ask the WebHTMLView, not the WebView.
498 * WebView/WebHTMLView.m:
499 (-[WebHTMLView copy:]): Moved to WebInternal
500 (-[WebHTMLView cut:]): Ditto.
501 (-[WebHTMLView paste:]): Ditto.
502 (-[WebHTMLView pasteAsPlainText:]): Ditto.
503 * WebView/WebHTMLViewInternal.h:
504 * WebView/WebView.m: Removed the now unused _canPaste.
505 * WebView/WebViewInternal.h: Ditto.
507 2006-10-03 Justin Garcia <justin.garcia@apple.com>
511 <rdar://problem/4763519> REGRESSION: Multipart/x-mixed-replace sub-resources fail to load
513 * Loader/WebSubresourceLoader.m:
514 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
515 Enable multipart/x-mixed-replace support on the request. This line was accidently removed during
516 some loader refactoring.
518 2006-10-02 Adam Roben <aroben@apple.com>
522 Add message paramter to WebView::mouse* methods to pass down to
526 (WebView::mouseMoved):
527 (WebView::mouseDown):
529 (WebView::mouseDoubleClick):
533 2006-10-02 Maciej Stachowiak <mjs@apple.com>
537 - take away direct knowledge of WebFrame from WebDataSource
539 * Loader/WebDocumentLoadState.h:
540 * Loader/WebDocumentLoadState.m:
541 (-[WebDocumentLoadState setFrameLoader:]):
542 (-[WebDocumentLoadState detachFromFrameLoader]):
543 * Loader/WebFrameLoader.m:
544 (-[WebFrameLoader _setDocumentLoadState:]):
545 (-[WebFrameLoader _setProvisionalDocumentLoadState:]):
546 * WebView/WebDataSource.m:
547 * WebView/WebDataSourceInternal.h:
548 * WebView/WebDocumentLoadStateMac.m:
549 (-[WebDocumentLoadStateMac detachFromFrameLoader]):
550 * WebView/WebFrame.m:
551 (-[WebFrame _loadDataSource:withLoadType:formState:]):
553 2006-10-02 Maciej Stachowiak <mjs@apple.com>
557 - move a big slice of data and logic from WebDataSource to WebDocumentLoadState
559 * Loader/WebDocumentLoadState.h:
560 * Loader/WebDocumentLoadState.m:
561 (-[WebDocumentLoadState initWithRequest:]):
562 (-[WebDocumentLoadState dealloc]):
563 (-[WebDocumentLoadState originalRequestCopy]):
564 (-[WebDocumentLoadState request]):
565 (-[WebDocumentLoadState replaceRequestURLForAnchorScrollWithURL:]):
566 (-[WebDocumentLoadState setRequest:]):
567 (-[WebDocumentLoadState setResponse:]):
568 (-[WebDocumentLoadState isStopping]):
569 (-[WebDocumentLoadState bridge]):
570 (-[WebDocumentLoadState setMainDocumentError:]):
571 (-[WebDocumentLoadState mainDocumentError]):
572 (-[WebDocumentLoadState clearErrors]):
573 (-[WebDocumentLoadState mainReceivedError:complete:]):
574 (-[WebDocumentLoadState stopLoading]):
575 (-[WebDocumentLoadState setupForReplace]):
576 (-[WebDocumentLoadState commitIfReady]):
577 (-[WebDocumentLoadState finishedLoading]):
578 (-[WebDocumentLoadState setCommitted:]):
579 (-[WebDocumentLoadState isCommitted]):
580 (-[WebDocumentLoadState setLoading:]):
581 (-[WebDocumentLoadState isLoading]):
582 (-[WebDocumentLoadState commitLoadWithData:]):
583 (-[WebDocumentLoadState doesProgressiveLoadWithMIMEType:]):
584 (-[WebDocumentLoadState receivedData:]):
585 (-[WebDocumentLoadState setupForReplaceByMIMEType:]):
586 (-[WebDocumentLoadState updateLoading]):
587 (-[WebDocumentLoadState response]):
588 * Loader/WebFrameLoader.h:
589 * Loader/WebFrameLoader.m:
590 (-[WebFrameLoader activeDocumentLoadState]):
591 (-[WebFrameLoader activeDataSource]):
592 (-[WebFrameLoader _archivedSubresourceForURL:]):
593 (-[WebFrameLoader addPlugInStreamLoader:]):
594 (-[WebFrameLoader removePlugInStreamLoader:]):
595 (-[WebFrameLoader addSubresourceLoader:]):
596 (-[WebFrameLoader removeSubresourceLoader:]):
597 (-[WebFrameLoader documentLoadState]):
598 (-[WebFrameLoader provisionalDocumentLoadState]):
599 (-[WebFrameLoader stopLoading]):
600 (-[WebFrameLoader _originalRequest]):
601 (-[WebFrameLoader _receivedData:]):
602 (-[WebFrameLoader _setRequest:]):
603 (-[WebFrameLoader bridge]):
604 (-[WebFrameLoader _handleFallbackContent]):
605 (-[WebFrameLoader _isStopping]):
606 (-[WebFrameLoader _setupForReplaceByMIMEType:]):
607 (-[WebFrameLoader _setResponse:]):
608 (-[WebFrameLoader _mainReceivedError:complete:]):
609 (-[WebFrameLoader _finishedLoading]):
610 (-[WebFrameLoader didReceiveServerRedirectForProvisionalLoadForFrame]):
611 (-[WebFrameLoader finishedLoadingDocumentLoadState:]):
612 (-[WebFrameLoader commitProvisitionalLoad]):
613 (-[WebFrameLoader committedLoadWithDocumentLoadState:data:]):
614 (-[WebFrameLoader isReplacing]):
615 (-[WebFrameLoader setReplacing]):
616 (-[WebFrameLoader revertToProvisionalWithDocumentLoadState:]):
617 (-[WebFrameLoader documentLoadState:setMainDocumentError:]):
618 (-[WebFrameLoader documentLoadState:mainReceivedCompleteError:]):
619 (-[WebFrameLoader finalSetupForReplaceWithDocumentLoadState:]):
620 * WebView/WebDataSource.m:
621 (-[WebDataSourcePrivate dealloc]):
622 (-[WebDataSource _prepareForLoadStart]):
623 (-[WebDataSource _mainDocumentError]):
624 (-[WebDataSource _finishedLoading]):
625 (-[WebDataSource _receivedData:]):
626 (-[WebDataSource _setMainDocumentError:]):
627 (-[WebDataSource _clearUnarchivingState]):
628 (-[WebDataSource _revertToProvisionalState]):
629 (-[WebDataSource _receivedMainResourceError:complete:]):
630 (-[WebDataSource _startLoading]):
631 (-[WebDataSource _loadFromPageCache:]):
632 (-[WebDataSource _bridge]):
633 (-[WebDataSource _setPrimaryLoadComplete:]):
634 (-[WebDataSource _URLForHistory]):
635 (-[WebDataSource _setTitle:]):
636 (-[WebDataSource _initWithDocumentLoadState:]):
637 (-[WebDataSource request]):
638 (-[WebDataSource response]):
639 (-[WebDataSource isLoading]):
640 (-[WebDataSource webArchive]):
641 * WebView/WebDataSourceInternal.h:
642 * WebView/WebDocumentLoadStateMac.m:
643 (-[WebDocumentLoadStateMac initWithRequest:]):
644 * WebView/WebFrame.m:
645 (-[WebFrame _createItem:]):
646 (-[WebFrame _receivedMainResourceError:]):
647 (-[WebFrame _transitionToCommitted:]):
648 (-[WebFrame _commitProvisionalLoad:]):
649 (-[WebFrame _checkLoadCompleteForThisFrame]):
650 (-[WebFrame _loadItem:withLoadType:]):
651 (-[WebFrame _continueFragmentScrollAfterNavigationPolicy:formState:]):
652 (-[WebFrame _didReceiveServerRedirectForProvisionalLoadForFrame]):
653 (-[WebFrame _provisionalLoadStarted]):
654 * WebView/WebFrameInternal.h:
656 2006-10-02 Justin Garcia <justin.garcia@apple.com>
660 <rdar://problem/4757583>
661 REGRESSION: tabbing into page focuses wrong control on 2nd pass
662 <rdar://problem/4757594>
663 REGRESSION: Form field is left with secondary selection after tabbing out of WebView
665 * WebView/WebHTMLView.m:
666 (-[NSArray maintainsInactiveSelection]): Replace code that I removed in error in the patch
667 for 9642. Only leave inactive editable selections in the WebHTMLView if the nextResponder
668 is in the same WebView.
670 2006-10-02 Maciej Stachowiak <mjs@apple.com>
674 - remove webFrame field from WebDataSourcePrivate, it can get it from WebDocumentLoadState now
676 * Loader/WebDocumentLoadState.h:
677 * Loader/WebDocumentLoadState.m:
678 (-[WebDocumentLoadState frameLoader]):
679 * WebView/WebDataSource.m:
680 (-[WebDataSourcePrivate dealloc]):
681 (-[WebDataSource _revertToProvisionalState]):
682 (-[WebDataSource _setupForReplaceByMIMEType:]):
683 (-[WebDataSource _updateLoading]):
684 (-[WebDataSource _startLoading]):
685 (-[WebDataSource _setWebFrame:]):
686 (-[WebDataSource _defersCallbacksChanged]):
687 (-[WebDataSource _stopLoading]):
688 (-[WebDataSource _webView]):
689 (-[WebDataSource _stopLoadingWithError:]):
690 (-[WebDataSource _setPrimaryLoadComplete:]):
691 (-[WebDataSource dealloc]):
692 (-[WebDataSource webFrame]):
693 (-[WebDataSource isLoading]):
695 2006-10-02 Maciej Stachowiak <mjs@apple.com>
699 - fix crash on back/forward - reattach WebDocumentLoadState to data source when needed
701 * WebView/WebDataSource.m:
702 (-[WebDataSource _setWebFrame:]):
703 (-[WebDataSource _initWithDocumentLoadState:]):
704 * WebView/WebDataSourceInternal.h:
706 2006-10-02 Maciej Stachowiak <mjs@apple.com>
708 Build fix, not reviewed.
710 - Added missing files to fix build.
712 * WebView/WebDocumentLoadStateMac.h: Added.
713 * WebView/WebDocumentLoadStateMac.m: Added.
714 (-[WebDocumentLoadStateMac initWithRequest:]):
715 (-[WebDocumentLoadStateMac dealloc]):
716 (-[WebDocumentLoadStateMac setDataSource:]):
717 (-[WebDocumentLoadStateMac dataSource]):
718 (-[WebDocumentLoadStateMac setFrameLoader:]):
720 2006-10-01 Maciej Stachowiak <mjs@apple.com>
722 Reviewed by Brady and Oliver.
724 - move things around so that WebDataSource and WebDocumentLoadState know about each other in
725 the right way. This lines things up to move nearly all functionality down to WebDocumentLoadState.
727 * Loader/WebDocumentLoadState.h:
728 * Loader/WebDocumentLoadState.m:
729 (-[WebDocumentLoadState initWithRequest:]):
730 (-[WebDocumentLoadState dealloc]):
731 (-[WebDocumentLoadState originalRequest]):
732 * Loader/WebFrameLoader.h:
733 * Loader/WebFrameLoader.m:
734 (-[WebFrameLoader dealloc]):
735 (-[WebFrameLoader addSubresourceLoader:]):
736 (-[WebFrameLoader startLoadingMainResourceWithRequest:identifier:]):
737 (-[WebFrameLoader dataSource]):
738 (-[WebFrameLoader _setDocumentLoadState:]):
739 (-[WebFrameLoader policyDataSource]):
740 (-[WebFrameLoader _setPolicyDocumentLoadState:]):
741 (-[WebFrameLoader clearDataSource]):
742 (-[WebFrameLoader provisionalDataSource]):
743 (-[WebFrameLoader _setProvisionalDocumentLoadState:]):
744 (-[WebFrameLoader _clearProvisionalDataSource]):
745 (-[WebFrameLoader _setState:]):
746 (-[WebFrameLoader clearProvisionalLoad]):
747 (-[WebFrameLoader commitProvisionalLoad]):
748 (-[WebFrameLoader stopLoading]):
749 (-[WebFrameLoader startLoading]):
750 (-[WebFrameLoader startProvisionalLoad:]):
751 (-[WebFrameLoader setupForReplace]):
752 (-[WebFrameLoader activeDocumentLoadState]):
753 (-[WebFrameLoader activeDataSource]):
754 (-[WebFrameLoader _loadRequest:archive:]):
755 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
756 (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
757 (-[WebFrameLoader reload]):
758 * WebKit.xcodeproj/project.pbxproj:
759 * WebView/WebDataSource.m:
760 (-[WebDataSourcePrivate dealloc]):
761 (-[WebDataSource _startLoading]):
762 (-[WebDataSource _setWebFrame:]):
763 (-[WebDataSource _documentLoadState]):
764 (-[WebDataSource _initWithDocumentLoadState:]):
765 (-[WebDataSource initWithRequest:]):
766 (-[WebDataSource initialRequest]):
767 (-[WebDataSource unreachableURL]):
768 * WebView/WebDataSourceInternal.h:
769 * WebView/WebFrame.m:
770 (-[WebFramePrivate dealloc]):
771 (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
772 (-[WebFrame _loadDataSource:withLoadType:formState:]):
773 (-[WebFrame _policyDataSource]):
774 (-[WebFrame _shouldReloadToHandleUnreachableURLFromRequest:]):
775 (-[WebFrame _dataSourceForDocumentLoadState:]):
776 (-[WebFrame _createDocumentLoadStateWithRequest:]):
777 * WebView/WebFrameInternal.h:
779 2006-09-29 David Hyatt <hyatt@apple.com>
781 Change the default minimum font size pref to 0 in order to allow
784 * WebView/WebPreferences.m:
785 (+[WebPreferences initialize]):
787 2006-09-28 Timothy Hatcher <timothy@apple.com>
791 Switch the inspector over to use border-image with styled buttons and selects.
793 * WebInspector/WebInspector.m:
794 (-[NSWindow window]):
795 (-[NSWindow setWebFrame:]):
796 (-[WebInspector _updateRoot]):
797 * WebInspector/webInspector/Images/button.png: Added.
798 * WebInspector/webInspector/Images/buttonDivider.png: Added.
799 * WebInspector/webInspector/Images/buttonPressed.png: Added.
800 * WebInspector/webInspector/Images/popup.png: Added.
801 * WebInspector/webInspector/Images/popupFill.png: Removed.
802 * WebInspector/webInspector/Images/popupFillPressed.png: Removed.
803 * WebInspector/webInspector/Images/popupLeft.png: Removed.
804 * WebInspector/webInspector/Images/popupLeftPressed.png: Removed.
805 * WebInspector/webInspector/Images/popupPressed.png: Added.
806 * WebInspector/webInspector/Images/popupRight.png: Removed.
807 * WebInspector/webInspector/Images/popupRightPressed.png: Removed.
808 * WebInspector/webInspector/Images/squareButtonRight.png: Removed.
809 * WebInspector/webInspector/Images/squareButtonRightPressed.png: Removed.
810 * WebInspector/webInspector/inspector.css:
811 * WebInspector/webInspector/inspector.html:
812 * WebInspector/webInspector/inspector.js:
814 2006-09-28 Alice Liu <alice.liu@apple.com>
816 fixing the windows build
819 (WebView::mouseMoved):
820 (WebView::mouseDown):
822 (WebView::mouseDoubleClick):
824 2006-09-27 Justin Garcia <justin.garcia@apple.com>
828 <rdar://problem/4044271>
829 Writing Direction menu doesn't reflect the current writing direction (9773)
831 * English.lproj/Localizable.strings: Added "Right to Left" and "Left to Right"
832 * WebView/WebHTMLView.m:
833 (-[NSArray validateUserInterfaceItem:]): Validate menu items that perform
834 toggleBaseWritingDirection and changeBaseWritingDirection.
835 Disable the menu item that changes the writing direction to NSWritingDirectionNautral
836 because NSWritingDirectionNatural's behavior can't be implemented with CSS.
837 Take control of the title of the menu item that performs toggleBaseWritingDirection:
838 instead of checking/unchecking it, otherwise we wouldn't know what a check means.
839 (-[NSArray changeBaseWritingDirection:]): ASSERT that the requested writing
840 direction is not NSWritingDirectionNatural, since we've disabled the
841 menu item that performs it.
843 2006-09-27 MorganL <morganl.webkit@yahoo.com>
845 Reviewed by Maciej, landed by Brady
847 Update URL request associated with provisional data source on redirect.
848 Notify IWebFrameLoadDelegate of redirects for the provisional load.
849 Notify IWebFrameLoadDelegate of a provisional load being commited.
851 * COM/WebDataSource.cpp:
852 (WebDataSource::replaceRequest):
853 * COM/WebDataSource.h:
855 (WebFrame::receivedRedirect):
856 (WebFrame::receivedResponse):
857 (WebFrame::receivedData):
859 2006-09-26 John Sullivan <sullivan@apple.com>
863 * WebView/WebHTMLViewPrivate.h:
864 * WebView/WebHTMLView.m:
865 (-[WebHTMLView markAllMatchesForText:caseSensitive:limit:]):
866 Added limit parameter, passed over the bridge. Stop the search if it hits limit.
868 * WebView/WebViewPrivate.h:
870 (-[WebView markAllMatchesForText:caseSensitive:highlight:limit:]):
871 Added limit parameter, passed to WebHTMLView.
873 2006-09-26 David Harrison <harrison@apple.com>
875 Reviewed by John and TimH.
877 <rdar://problem/4743256> Seed: Ctrl-Y key binding does nothing when kill ring is empty
879 Use deleteBackward: when the killring string is empty. Was always using insertText:,
880 but that ends up early-returning if the string to insert is empty.
882 * WebView/WebHTMLView.m:
884 (-[NSArray yankAndSelect:]):
886 2006-09-25 Timothy Hatcher <timothy@apple.com>
890 Use the non-deprecated method names for getComputedStyle, setEnd and setStart.
892 * WebInspector/WebInspector.m:
893 (-[WebInspector _highlightNode:]):
894 * WebView/WebHTMLView.m:
896 (-[WebHTMLView _selectRangeInMarkedText:]):
897 (-[WebTextCompleteController doCompletion]):
899 (-[WebView computedStyleForElement:pseudoElement:]):
901 2006-09-22 Timothy Hatcher <timothy@apple.com>
905 Pass all headers through unifdef to filter out BUILDING_ON_TIGER blocks
906 if MACOSX_DEPLOYMENT_TARGET is 10.4.
908 * MigrateHeaders.make:
910 2006-09-20 Justin Garcia <justin.garcia@apple.com>
914 <http://bugs.webkit.org/show_bug.cgi?id=7165>
915 TinyMCE: Dragging & dropping content always leaves a copy when editing inside a subframe
917 The top level WebHTMLView is responsible for performing dragging operations, but
918 the inner view, the view that holds the drag caret, should be consulted to determine
919 if the drag is a move drag.
921 * WebCoreSupport/WebFrameBridge.m:
922 (-[WebFrameBridge startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
923 * WebKit.xcodeproj/project.pbxproj:
924 * WebView/WebHTMLView.m:
925 (-[NSArray dragImage:at:offset:event:pasteboard:source:slideBack:]): Don't set initatedDrag here, because
926 it's only the top level WebHTMLView that performs this operation.
927 (-[WebHTMLView _setInitiatedDrag:]): Added.
928 (-[WebHTMLView _initiatedDrag]): Ditto.
929 (-[WebHTMLView _canProcessDragWithDraggingInfo:]): Ask the innerView if it initiated the drag,
930 not the top level view.
931 (-[WebHTMLView _isMoveDrag]): The top level view asks the innerView if it should perform
932 a move drag, so don't ASSERT _isTopHTMLView.
933 (-[WebHTMLView draggingUpdatedWithDraggingInfo:actionMask:]): Ask the innerView if _isMoveDrag.
934 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): Ditto.
935 * WebView/WebHTMLViewInternal.h: Added two private SPI so that
936 the top level WebHTMLView can set and get the initiatedDrag BOOL.
938 === Safari-521.27 ===
940 2006-09-20 Brady Eidson <beidson@apple.com>
942 Reviewed by Tim Omernick
944 Fixing part of a crash Tim O showed me. [WebIconDatabase init] should finish
945 gracefully even if we can't open the database
947 * Misc/WebIconDatabase.m:
948 (-[WebIconDatabase init]):
950 2006-09-20 Timothy Hatcher <timothy@apple.com>
954 <rdar://problem/4741392> Develop a system to find what version of WebKit an app was linked with
956 * Misc/WebKitVersionChecks.h: Added.
957 * Misc/WebKitVersionChecks.m: Added.
958 (WebKitLinkedOnOrAfter): Added.
959 (WebKitLinkTimeVersion): Added.
960 (WebKitRunTimeVersion): Added.
961 * WebKit.xcodeproj/project.pbxproj:
963 2006-09-20 Tim Omernick <timo@apple.com>
967 * Misc/WebIconDatabase.m:
968 (-[WebIconDatabase init]):
971 2006-09-20 Brady Eidson <beidson@apple.com>
975 Preparing to make the WebIconDatabase disabled by default - this patch tells the bridge whether its enabled or not
977 * Misc/WebIconDatabase.m:
978 (-[WebIconDatabase init]):
980 2006-09-19 Brady Eidson <beidson@apple.com>
982 Reviewed by Sarge Decker
984 <rdar://problem/4739892> and <rdar://problem/4729797>
985 - WebCore::IconDatabase needs to have and respect an enabled() flag
986 - Mail on ToT WebKit crashes in IconDatabase code when mailing a page from Safari
988 * Misc/WebIconDatabase.m:
989 (-[WebIconDatabase init]): If preference says icons are disabled, tell the bridge
990 (-[WebIconDatabase _isEnabled]): Ask the bridge if the database is enabled
992 2006-09-19 Alexey Proskuryakov <ap@nypop.com>
996 http://bugs.webkit.org/show_bug.cgi?id=10661
997 REGRESSION: CFM plug-ins (Shockwave, SVG) are not loaded
999 * Plugins/WebBasePluginPackage.m:
1000 (-[WebBasePluginPackage initWithPath:]): On 32-bit PowerPC, don't bail out if
1001 the bundle is nil - it can be a CFM plugin.
1003 2006-09-18 Brady Eidson <beidson@apple.com>
1007 Implement a bridge method so WebCore can find the reload type of a frame load
1009 * WebCoreSupport/WebFrameBridge.m:
1010 (-[WebFrameBridge isLoadTypeReload]):
1012 2006-09-18 Sam Weinig <sam.weinig@gmail.com>
1016 Patch for http://bugs.webkit.org/show_bug.cgi?id=10903
1017 Yet Another Objective-C Bindings Patch
1019 * MigrateHeaders.make:
1021 2006-09-17 David Harrison <harrison@apple.com>
1023 Reviewed by John Sullivan.
1025 <rdar://problem/4494340> REGRESSION: Making the font size bigger/smaller in an HTML message doesn't affect the body until you reopen it
1027 Problem was the public API -[WebView setTextSizeMultiplier] did not notify anyone that the value changed.
1029 * WebView/WebDocumentInternal.h:
1030 Add _textSizeMultiplierChanged to the _WebDocumentTextSizing protocol.
1032 * WebView/WebHTMLView.m:
1033 (-[WebHTMLView _textSizeMultiplierChanged]):
1034 Send [self _updateTextSizeMultiplier].
1036 * WebView/WebPDFView.m:
1037 (-[WebPDFView _textSizeMultiplierChanged]):
1038 ASSERT_NOT_REACHED() because WebPDFView does not track the common multiplier.
1040 * WebView/WebView.m:
1041 (-[WebView setTextSizeMultiplier:]):
1042 Send [self _notifyTextSizeMultiplierChanged];
1044 (-[WebView _performTextSizingSelector:withObject:onTrackingDocs:selForNonTrackingDocs:newScaleFactor:]):
1045 Alter the _textSizeMultiplier directly so that notification is not sent.
1048 (-[WebView _notifyTextSizeMultiplierChanged]):
1049 New. Send _textSizeMultiplierChanged to all document views that track the common multiplier.
1051 2006-09-16 Brady Eidson <beidson@apple.com>
1055 WebIconLoader is dead, long live WebCore::IconLoader
1058 * Loader/WebFrameLoader.h:
1059 * Loader/WebFrameLoader.m:
1060 (-[WebFrameLoader dealloc]):
1061 (-[WebFrameLoader commitProvisionalLoad]):
1062 * Loader/WebIconLoader.h: Removed.
1063 * Loader/WebIconLoader.m: Removed.
1064 * Misc/WebIconDatabase.h:
1065 * Misc/WebIconDatabase.m:
1066 * Misc/WebIconDatabasePrivate.h:
1067 * WebCoreSupport/WebFrameBridge.m:
1068 (-[WebFrameBridge notifyIconChanged:]):
1069 * WebCoreSupport/WebIconDatabaseBridge.h:
1070 * WebCoreSupport/WebIconDatabaseBridge.m:
1071 (-[WebIconDatabaseBridge _init]):
1072 (-[WebIconDatabaseBridge _setIconData:forIconURL:]):
1073 (-[WebIconDatabaseBridge _setHaveNoIconForIconURL:]):
1075 * WebKit.xcodeproj/project.pbxproj:
1076 * WebView/WebDataSource.m:
1077 (-[WebDataSourcePrivate dealloc]):
1078 (-[WebDataSource _stopLoading]):
1079 (-[WebDataSource _setPrimaryLoadComplete:]):
1080 * WebView/WebDataSourceInternal.h:
1082 2006-09-16 Mark Rowe <opendarwin.org@bdash.net.nz>
1086 http://bugs.webkit.org/show_bug.cgi?id=10887
1089 * MigrateHeaders.make: Remove reference to DOMEventPrivate.h.
1091 2006-09-15 Timothy Hatcher <timothy@apple.com>
1095 Make new style ObjC methods public API.
1097 * MigrateHeaders.make:
1099 2006-09-15 Sam Weinig <sam.weinig@gmail.com>
1103 Patch for http://bugs.webkit.org/show_bug.cgi?id=10870
1104 Auto-generate DOMNode for the Objective-C bindings
1106 * MigrateHeaders.make:
1108 2006-09-15 Timothy Hatcher <timothy@apple.com>
1112 Call the bridge directly for alter selection calls. All of this logic is now
1113 in WebCore's SelectionController.
1115 * WebView/WebHTMLView.m:
1116 (-[NSArray moveBackward:]):
1117 (-[NSArray moveBackwardAndModifySelection:]):
1118 (-[NSArray moveDown:]):
1119 (-[NSArray moveDownAndModifySelection:]):
1120 (-[NSArray moveForward:]):
1121 (-[NSArray moveForwardAndModifySelection:]):
1122 (-[NSArray moveLeft:]):
1123 (-[NSArray moveLeftAndModifySelection:]):
1124 (-[NSArray moveRight:]):
1125 (-[NSArray moveRightAndModifySelection:]):
1126 (-[NSArray moveToBeginningOfDocument:]):
1127 (-[NSArray moveToBeginningOfDocumentAndModifySelection:]):
1128 (-[NSArray moveToBeginningOfSentence:]):
1129 (-[NSArray moveToBeginningOfSentenceAndModifySelection:]):
1130 (-[NSArray moveToBeginningOfLine:]):
1131 (-[NSArray moveToBeginningOfLineAndModifySelection:]):
1132 (-[NSArray moveToBeginningOfParagraph:]):
1133 (-[NSArray moveToBeginningOfParagraphAndModifySelection:]):
1134 (-[NSArray moveToEndOfDocument:]):
1135 (-[NSArray moveToEndOfDocumentAndModifySelection:]):
1136 (-[NSArray moveToEndOfSentence:]):
1137 (-[NSArray moveToEndOfSentenceAndModifySelection:]):
1138 (-[NSArray moveToEndOfLine:]):
1139 (-[NSArray moveToEndOfLineAndModifySelection:]):
1140 (-[NSArray moveToEndOfParagraph:]):
1141 (-[NSArray moveToEndOfParagraphAndModifySelection:]):
1142 (-[NSArray moveParagraphBackwardAndModifySelection:]):
1143 (-[NSArray moveParagraphForwardAndModifySelection:]):
1144 (-[NSArray moveUp:]):
1145 (-[NSArray moveUpAndModifySelection:]):
1146 (-[NSArray moveWordBackward:]):
1147 (-[NSArray moveWordBackwardAndModifySelection:]):
1148 (-[NSArray moveWordForward:]):
1149 (-[NSArray moveWordForwardAndModifySelection:]):
1150 (-[NSArray moveWordLeft:]):
1151 (-[NSArray moveWordLeftAndModifySelection:]):
1152 (-[NSArray moveWordRight:]):
1153 (-[NSArray moveWordRightAndModifySelection:]):
1154 (-[NSArray pageUp:]):
1155 (-[NSArray pageDown:]):
1156 (-[NSArray pageUpAndModifySelection:]):
1157 (-[NSArray pageDownAndModifySelection:]):
1159 2006-09-15 Adam Roben <aroben@apple.com>
1161 Reviewed by eseidel.
1163 Fixes http://bugs.webkit.org/show_bug.cgi?id=10876
1164 containsItemForURLUnicode uses matchLetter instead of
1167 Small fixes for _WebCoreHistoryProvider.
1169 * History/WebHistory.m: Consistently use BUFFER_SIZE #define
1170 (-[_WebCoreHistoryProvider containsItemForURLLatin1:length:]):
1171 (-[_WebCoreHistoryProvider containsItemForURLUnicode:length:]):
1172 Replace incorrect call to matchLetter to matchUnicodeLetter
1174 2006-09-13 Brady Eidson <beidson@apple.com>
1178 Add infrastructure to support icon loads taking place in WebCore
1179 Will remove WebKit icon loaders in a later patch
1181 * WebCoreSupport/WebFrameBridge.m:
1182 (-[WebFrameBridge notifyIconChanged:]):
1183 (-[WebFrameBridge originalRequestURL]):
1184 - Nuked two old, obsolete methods
1185 - Added bridge for notifying of an icon change
1186 - Added bridge for getting the "original request URL" which is still needed
1187 until that info is available in the WebCore loaders
1189 * WebView/WebDataSource.m:
1190 (-[WebDataSource _loadIcon]):
1191 - Empty body just for now, as it still gets called - next patch will prune all the old impl out
1193 2006-09-13 Timothy Hatcher <timothy@apple.com>
1197 <rdar://problem/4726416> obsolete confusing "ADVISORY NOTE" comment in WebHistory.h
1199 Removed the "ADVISORY NOTE: This method may change for the 1.0 SDK" comments.
1201 * History/WebHistory.h:
1203 === Safari-521.26 ===
1205 2006-09-11 MorganL <morlmor@yahoo.com>
1207 Reviewed/landed by aroben.
1209 Fixes http://bugs.webkit.org/show_bug.cgi?id=10765
1210 Windows build busted due to std::copy usage in Vector.h
1212 * WebKit.vcproj/WebKit.vcproj: Define _SCL_SECURE_NO_DEPRECATE to get
1213 rid of deprecation warnings on std::copy
1215 2006-09-11 Brady Eidson <beidson@apple.com>
1217 Despite the fact that some people built okay without this change, it sure was biting me,
1218 probably because I just wiped my build directory for a fresh build -
1219 Today's earlier removal of DOMList.h needed to occur in MigrateHeaders.make, as well
1221 * MigrateHeaders.make: removed DOMList.h
1223 2006-09-10 Darin Adler <darin@apple.com>
1227 - fix http://bugs.webkit.org/show_bug.cgi?id=10547
1228 REGRESSION: Links that should open in a new window open in the same window,
1229 while opening another blank window
1231 * WebView/WebFrame.m:
1232 (-[WebFrame _continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
1233 Changed a mistaken "self" to "frame", which was the cause of the bug. Also
1234 fixed the method so that it won't crash if createWebViewWithRequest does
1235 something that has a side effect of releasing this WebView or this frame
1236 by retaining "self" and "frame" as needed. Also fixed a problem where the
1237 code to set "opener" was backwards, and would set the opener of the old
1238 frame to point to the new frame instead of vice versa.
1240 2006-09-09 Sam Weinig <sam.weinig@gmail.com>
1244 Patch for http://bugs.webkit.org/show_bug.cgi?id=10795
1245 Auto-generate the Objective-C DOM XPath bindings
1247 * MigrateHeaders.make:
1249 2006-09-09 Sam Weinig <sam.weinig@gmail.com>
1253 Patch for http://bugs.webkit.org/show_bug.cgi?id=10791
1254 Even More Objective-C DOM auto-generation cleanup
1256 * MigrateHeaders.make:
1258 2006-09-08 Tim Omernick <timo@apple.com>
1260 Reviewed by Brady Eidson.
1262 Rolled out Maciej's code cleanup from 8/22. It turns out that keeping the "loading" flag
1263 is a useful optimization, as it avoids many Objective-C method calls while polling resources
1264 for their load state.
1266 This fixes a 3-4% PLT performance regression (as measured on my MacBook Pro).
1268 * Loader/WebFrameLoader.m:
1269 (-[WebFrameLoader addPlugInStreamLoader:]):
1270 (-[WebFrameLoader removePlugInStreamLoader:]):
1271 (-[WebFrameLoader addSubresourceLoader:]):
1272 (-[WebFrameLoader removeSubresourceLoader:]):
1273 * WebView/WebDataSource.m:
1274 (-[WebDataSourcePrivate dealloc]):
1275 (-[WebDataSource _prepareForLoadStart]):
1276 (-[WebDataSource _setLoading:]):
1277 (-[WebDataSource _updateLoading]):
1278 (-[WebDataSource _startLoading]):
1279 (-[WebDataSource _stopLoading]):
1280 (-[WebDataSource _setPrimaryLoadComplete:]):
1281 (-[WebDataSource isLoading]):
1282 * WebView/WebDataSourceInternal.h:
1284 2006-09-07 Sam Weinig <sam.weinig@gmail.com>
1286 Reviewed by Darin and Tim H.
1288 Patch for http://bugs.webkit.org/show_bug.cgi?id=10774
1289 Auto-generate the Objective-C DOM Traversal bindings
1291 * MigrateHeaders.make:
1293 2006-09-07 Sam Weinig <sam.weinig@gmail.com>
1297 Patch for http://bugs.webkit.org/show_bug.cgi?id=10766
1298 Auto-generate the Objective-C DOM Events bindings
1300 * MigrateHeaders.make:
1301 * WebKit.xcodeproj/project.pbxproj:
1303 2006-09-06 Alexey Proskuryakov <ap@nypop.com>
1305 * MigrateHeaders.make: Fixed a double slash in
1306 "$(PRIVATE_HEADERS_DIR)//DOMCharacterDataPrivate.h" (this was reported
1307 to cause a build failure under certain circumstances).
1309 2006-09-05 MorganL <morlmor@yahoocom>
1311 Reviewed/landed by aroben.
1313 Fixes bug 10743: Windows build is busted.
1316 (WebView::keyPress):
1318 2006-09-05 Timothy Hatcher <timothy@apple.com>
1322 Drastically simplified the makefile for migrating headers from
1323 WebCore and JavaScriptCore. The old version was always copying the files.
1325 * MigrateHeaders.make:
1327 2006-09-05 Darin Adler <darin@apple.com>
1331 - WebKit side of changes to encoding
1333 * WebView/WebHTMLRepresentation.m: (-[WebHTMLRepresentation documentSource]):
1334 Changed to call new -[WebCoreFrameBridge stringWithData:] instead of the calling
1335 the old methods that used a CFStringEncoding: -[WebCoreFrameBridge textEncoding]
1336 and +[WebCoreFrameBridge stringWithData:textEncoding:].
1338 * WebView/WebResource.m: (-[WebResource _stringValue]): Removed special case for
1339 nil encoding name. The bridge itself now has the rule that "nil encoding name
1340 means Latin-1", so we don't need to check for nil.
1342 * WebView/WebFrame.m: (-[WebFrame _checkLoadComplete]): Retain the frame until
1343 we get the parent frame while walking up parent frames, because it's possible
1344 for _checkLoadCompleteForThisFrame to release the last reference to the frame.
1345 (Not reviewed; needed to run performance tests successfully.)
1347 2006-09-05 Timothy Hatcher <timothy@apple.com>
1351 <rdar://problem/4682225> conflicting typedefs in Netscape plug-in headers
1353 * Plugins/npfunctions.h: fix the return type for NPN_IntFromIdentifierProcPtr to be int32_t
1355 2006-09-04 Timothy Hatcher <timothy@apple.com>
1359 Bug 10714: ObjC autogeneration needs safe-guards against easily modifying the public API
1360 http://bugs.webkit.org/show_bug.cgi?id=10714
1362 - Added the new private DOM headers.
1363 - Factored out the common commands into variables.
1364 - Made WebDashboardRegion.h private again.
1365 - Rename DOMDOMImplementation.h to DOMImplementation.h when files
1366 are migrated. Also fixes up #imports.
1368 * MigrateHeaders.make:
1370 2006-09-03 Sam Weinig <sam.weinig@gmail.com>
1372 Reviewed by Darin and Tim H.
1374 - patch for http://bugs.webkit.org/show_bug.cgi?id=10711
1375 Auto-generate the Objective-C DOM Stylesheet bindings
1377 * MigrateHeaders.make:
1379 2006-09-02 Sam Weinig <sam.weinig@gmail.com>
1383 - patch for http://bugs.webkit.org/show_bug.cgi?id=10684
1384 Auto-generate the Objective-C DOM CSS bindings
1386 * MigrateHeaders.make:
1388 2006-09-01 MorganL <morlmor@yahoo.com>
1390 Reviewed by Darin. Updated/landed by Adam.
1392 Fixes http://bugs.webkit.org/show_bug.cgi?id=10553
1396 (WebFrame::initWithName):
1398 2006-09-01 Brady Eidson <beidson@apple.com>
1402 A "never should be reached" method was reached - lets not release the shared database bridge, esp
1403 since we never retain it!
1405 * Misc/WebIconDatabase.m:
1406 (-[WebIconDatabase _applicationWillTerminate:]): Don't release the bridge
1408 2006-09-01 Darin Adler <darin@apple.com>
1412 - a few small tweaks to the icon database bridge
1414 * Misc/WebIconDatabase.m: (-[WebIconDatabase init]): Updated for name change.
1416 * WebCoreSupport/WebIconDatabaseBridge.h: Removed unneeded declarations.
1417 * WebCoreSupport/WebIconDatabaseBridge.m:
1418 (-[WebIconDatabaseBridge init]): Added. Always returns nil since you're not supposed
1419 to allocate one of these.
1420 (-[WebIconDatabaseBridge _init]): Renamed from init. Used internally to make the
1421 shared instance. Added the "self = [super init]" idiom even though it's not important
1422 in this case just to be consistent.
1423 (-[WebIconDatabaseBridge releaseCachedLoaderForIconURL:]): Moved this up in the file
1424 so it can be called without declaring it in the header.
1425 (+[WebIconDatabaseBridge sharedInstance]): Renamed. Calls the new _init. Also use
1426 CFRetain for compatibility.
1427 (-[WebIconDatabaseBridge dealloc]): Emptied this out and made it just assert (false).
1428 (-[WebIconDatabaseBridge finalize]): Added and made it assert (false) too.
1430 2006-09-01 Timothy Hatcher <timothy@apple.com>
1434 Bug 10677: Omit "-webkit-text-security: none;" from the computed style list
1435 http://bugs.webkit.org/show_bug.cgi?id=10677
1437 * WebInspector/webInspector/inspector.js:
1439 2006-08-31 Sam Weinig <sam.weinig@gmail.com>
1443 - patch for http://bugs.webkit.org/show_bug.cgi?id=10669
1444 Auto-generate the remaining Objective-C HTML DOM bindings
1446 * MigrateHeaders.make:
1448 2006-08-31 Adele Peterson <adele@apple.com>
1452 WebKit part of fix for http://bugs.webkit.org/show_bug.cgi?id=10666
1453 Password: Disallow Spelling, Font, Speech, and Writing Direction context menu
1455 * DefaultDelegates/WebDefaultContextMenuDelegate.m: (-[WebDefaultUIDelegate editingContextMenuItemsForElement:defaultMenuItems:]):
1456 Check that the selection isn't in a password field before adding these items to the default editing context menu.
1457 Search In Google, Search In Spotlight, Look up in Dictionary, Spelling, Font, Speech, Writing Direction
1458 * WebView/WebHTMLView.m: (-[WebHTMLView _isSelectionInPasswordField]): Added.
1459 * WebView/WebHTMLViewPrivate.h:
1461 2006-08-31 Sam Weinig <sam.weinig@gmail.com>
1465 - patch for http://bugs.webkit.org/show_bug.cgi?id=10653
1466 Auto-generate another 20 Objective-C DOM HTML bindings
1468 * MigrateHeaders.make:
1469 * WebKit.xcodeproj/project.pbxproj:
1471 2006-08-31 Adele Peterson <adele@apple.com>
1473 Reviewed by John Sullivan.
1475 Removed wkSecureEventInput and wkSetSecureEventInput, since this can be done with API.
1477 * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface):
1479 2006-08-31 John Sullivan <sullivan@apple.com>
1481 Reviewed by Tim Omernick
1483 - fixed <rdar://problem/4711200> Loading history would be faster if it bypassed
1484 NSURL API for local files
1486 * History/WebHistory.m:
1487 (-[WebHistoryPrivate _loadHistoryGutsFromURL:savedItemsCount:collectDiscardedItemsInto:error:]):
1488 Load file URLs using [NSDictionary dictionaryWithContentsOfFile:]. I also cleaned up some minor
1489 style issues in this method, and I removed the support for old NSArray-style history files (which we
1490 stopped using before Safari 1.0).
1492 2006-08-30 Adele Peterson <adele@apple.com>
1496 WebKit part of fix for http://bugs.webkit.org/show_bug.cgi?id=10575
1497 Enable secure input mode for new password fields
1499 * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface):
1501 2006-08-30 Brady Eidson <beidson@apple.com>
1505 <rdar://problem/4707718> Change behavior so if the WebCore::IconDatabase can't open, WebKit releases the bridge and
1506 continues on as if the IconDatabase is disabled.
1508 * Misc/WebIconDatabase.m:
1509 (-[WebIconDatabase init]): Release the bridge on failure to open
1510 * WebCoreSupport/WebIconDatabaseBridge.m:
1511 (+[WebIconDatabaseBridge sharedBridgeInstance]): Moved static shared instance out as a global
1512 (-[WebIconDatabaseBridge dealloc]): Clear pointer to the shared instance
1514 2006-08-30 Timothy Hatcher <timothy@apple.com>
1518 Simplify the header copies from WebCore and JavaScriptCore.
1519 Headers that need to be migrated from the other projects need
1520 to be added to MigrateHeaders.make.
1522 * MigrateHeaders.make: Added.
1523 * WebKit.xcodeproj/project.pbxproj:
1525 2006-08-30 Sam Weinig <sam.weinig@gmail.com>
1529 - patch for http://bugs.webkit.org/show_bug.cgi?id=10640
1530 Auto-generate 10 more Objective-C DOM HTML bindings
1532 * WebKit.xcodeproj/project.pbxproj:
1534 2006-08-30 Adele Peterson <adele@apple.com>
1538 WebKit part of fix for:
1539 http://bugs.webkit.org/show_bug.cgi?id=10576
1540 Disallow copy from new password fields
1542 * WebView/WebHTMLView.m:
1543 (-[WebHTMLView _canCopy]): Now also calls across the bridge to ask if it mayCopy.
1544 (-[WebHTMLView _canCut]): Calls _canCopy now.
1545 (-[NSArray validateUserInterfaceItem:]): Calls _canCut when validating the "Cut" menu item.
1546 This used to call _canDelete (which used to be the same as _canCut), but now _canCut also checks _canCopy.
1548 2006-08-30 Karl Adam <karladam@yahoo-inc.com>
1550 Reviewed by Eric and Tim H.
1552 Bug 10634: -webView:dragDestinationActionMaskForDraggingInfo: is ignored
1553 http://bugs.webkit.org/show_bug.cgi?id=10634
1555 Remove the check for canShowFile: from _web_bestURL: since
1556 it shouldn't be concerned with whether or not the view
1557 can show the URL, merely return the most appropriate URL.
1559 * Misc/WebNSPasteboardExtras.m:
1560 (-[NSPasteboard _web_bestURL]):
1561 * Misc/WebNSViewExtras.m:
1562 (-[NSView _web_dragOperationForDraggingInfo:]):
1564 2006-08-29 Brady Eidson <beidson@apple.com>
1566 Reviewed by Kevin Decker (Sarge)
1568 <rdar://problem/4678414> - New IconDB needs to delete icons when asked
1570 * Misc/WebIconDatabase.m:
1571 (-[WebIconDatabase removeAllIcons]): Call through to WebCore to remove icons, then send notification
1573 2006-08-29 Brady Eidson <beidson@apple.com>
1577 Added a truth value check for to setIconURL:forURL so WebKit can avoid sending a notification
1578 This is a win on the iBench
1580 * Misc/WebIconDatabase.m:
1581 (-[WebIconDatabase _setIconURL:forURL:]):
1583 2006-08-29 Brady Eidson <beidson@apple.com>
1585 Reviewed by Tim Hatchers rubber stamp
1587 Removed some accidentally left-in console spew during the conversion to the new DB
1589 * Misc/WebIconDatabase.m:
1590 (objectFromPathForKey): Nuked some NSLogs
1592 2006-08-29 Tim Omernick <timo@apple.com>
1594 Reviewed by Darin Adler.
1596 <rdar://problem/4688618> REGRESSION(10.4.7-9A241): JMol java applet fails in Safari not Firefox
1598 No layout test for now because Java doesn't work in DumpRenderTree.
1600 * Plugins/WebPluginDatabase.m:
1601 (-[WebPluginDatabase refresh]):
1602 Add each plug-in MIME type to registeredMIMETypes, even if we don't register a document view class for the
1603 MIME type. This fixes -[WebPluginDatabase isMIMETypeRegistered:] and thus fallback content for Java applets
1604 (we were always rendering fallback content, if any, for Java applets).
1606 2006-08-29 Sam Weinig <sam.weinig@gmail.com>
1610 - patch for http://bugs.webkit.org/show_bug.cgi?id=10628
1611 Auto-generate the remaining Objective-C DOM bindings
1613 Auto-generates DOMHTMLCollection, DOMHTMLElement, DOMHTMLFormElement,
1614 and DOMHTMLOptionsCollection.
1616 * WebKit.xcodeproj/project.pbxproj:
1618 2006-08-28 Brady Eidson <beidson@apple.com>
1622 Short of a few small snippets that still need to be pushed to WebCore, this
1623 is a final prune of WebIconDatabase. WebFileDatabase and WebLRUFileList are gone
1624 and the small remaining snippets of WebFileDatabase code that were still important
1625 are now in static functions in WebIconDatabase.m
1627 * Loader/WebIconLoader.m:
1628 (-[WebIconLoader didFinishLoading]): Removed the flag
1629 * Misc/WebFileDatabase.h: Removed.
1630 * Misc/WebFileDatabase.m: Removed.
1631 * Misc/WebIconDatabase.m:
1632 (+[WebIconDatabase sharedIconDatabase]):
1633 (-[WebIconDatabase init]):
1634 (-[WebIconDatabase iconForURL:withSize:cache:]):
1635 (-[WebIconDatabase iconURLForURL:]):
1636 (-[WebIconDatabase defaultIconWithSize:]):
1637 (-[WebIconDatabase retainIconForURL:]):
1638 (-[WebIconDatabase releaseIconForURL:]):
1639 (-[WebIconDatabase _isEnabled]):
1640 (-[WebIconDatabase _setIconData:forIconURL:]):
1641 (-[WebIconDatabase _setHaveNoIconForIconURL:]):
1642 (-[WebIconDatabase _setIconURL:forURL:]):
1643 (-[WebIconDatabase _hasEntryForIconURL:]):
1644 (-[WebIconDatabase _applicationWillTerminate:]):
1645 (-[WebIconDatabase _resetCachedWebPreferences:]):
1646 (uniqueFilePathForKey): Added from WebFileDatabase
1647 (objectFromPathForKey): Added from WebFileDatabase
1648 (iconDataFromPathForIconURL):
1649 (-[WebIconDatabase _convertToWebCoreFormat]): Make use of static functions and local variables
1650 instead of using WebFileDatabase and WebIconDatabase variables that are now obsolete
1651 * Misc/WebIconDatabasePrivate.h: Removed alot of obsoleted members
1652 * Misc/WebLRUFileList.h: Removed.
1653 * Misc/WebLRUFileList.m: Removed.
1654 * WebKit.xcodeproj/project.pbxproj: Deleted 4 files
1655 * WebKitPrefix.h: Removed ICONDEBUG
1657 2006-08-28 Tim Omernick <timo@apple.com>
1659 Reviewed by Darin Adler.
1661 * Plugins/WebBaseNetscapePluginView.m:
1662 (-[WebBaseNetscapePluginView createPluginScriptableObject]):
1663 Removed a bogus typecast.
1665 2006-08-28 Tim Omernick <timo@apple.com>
1667 Reviewed by John Sullivan.
1669 Part of <rdar://problem/4481553> NetscapeMoviePlugIn example code scripting doesn't work in Firefox (4319)
1670 <http://bugs.webkit.org/show_bug.cgi?id=4319>: NetscapeMoviePlugIn example code scripting doesn't work
1673 * Plugins/WebBaseNetscapePluginView.h:
1674 * Plugins/WebBaseNetscapePluginView.m:
1675 (-[WebBaseNetscapePluginView createPluginScriptableObject]):
1676 Renamed this method (see corresponding WebCore ChangeLog entry for an explanation).
1679 2006-08-28 Brady Eidson <beidson@apple.com>
1681 Reviewed by Tim Hatcher's rubberstamp
1683 Rolled out my last change (16070 - pruning WebFileDatabase code) as it caused a difficult-to-track down
1684 failure in layout tests on a release build.
1686 * Misc/WebFileDatabase.h:
1687 * Misc/WebFileDatabase.m:
1688 (+[WebFileDatabaseOp opWithCode:key:object:]):
1689 (-[WebFileDatabaseOp initWithCode:key:object:]):
1690 (-[WebFileDatabaseOp opcode]):
1691 (-[WebFileDatabaseOp key]):
1692 (-[WebFileDatabaseOp object]):
1693 (-[WebFileDatabaseOp perform:]):
1694 (-[WebFileDatabaseOp dealloc]):
1695 (SetThreadPriority):
1696 (-[WebFileDatabase _createLRUList:]):
1697 (-[WebFileDatabase _truncateToSizeLimit:]):
1698 (+[WebFileDatabase _syncLoop:]):
1700 (-[WebFileDatabase setTimer]):
1701 (-[WebFileDatabase setObject:forKey:]):
1702 (-[WebFileDatabase removeObjectForKey:]):
1703 (-[WebFileDatabase removeAllObjects]):
1704 (-[WebFileDatabase objectForKey:]):
1705 (-[WebFileDatabase performSetObject:forKey:]):
1706 (-[WebFileDatabase performRemoveObjectForKey:]):
1707 (-[WebFileDatabase open]):
1708 (-[WebFileDatabase close]):
1709 (-[WebFileDatabase lazySync:]):
1710 (-[WebFileDatabase sync]):
1711 (-[WebFileDatabase sizeLimit]):
1712 (-[WebFileDatabase count]):
1713 (-[WebFileDatabase usage]):
1714 (-[WebFileDatabase setSizeLimit:]):
1715 * Misc/WebIconDatabase.m:
1716 (-[WebIconDatabase _createFileDatabase]):
1717 (-[WebIconDatabase _loadIconDictionaries]):
1718 * WebKit.xcodeproj/project.pbxproj:
1720 2006-08-28 Darin Adler <darin@apple.com>
1722 Reviewed by Tim Hatcher.
1724 * WebInspector/webInspector/inspector.js: Add "resize: none" to the list of
1725 default values for CSS properties so it will be omitted from most displays
1728 2006-08-28 Brady Eidson <beidson@apple.com>
1732 Major prune of unnecessary WebFileDatabase code. In the end, what
1733 useful code that remains in WebFileDatabase will likely be moved directly
1734 into WebIconDatabase
1736 * Misc/WebFileDatabase.h:
1737 * Misc/WebFileDatabase.m:
1738 (-[WebFileDatabase initWithPath:]):
1739 (-[WebFileDatabase objectForKey:]):
1740 (-[WebFileDatabase open]):
1741 (-[WebFileDatabase close]):
1742 * Misc/WebIconDatabase.m:
1743 (-[WebIconDatabase _createFileDatabase]):
1744 (-[WebIconDatabase _loadIconDictionaries]):
1745 * Misc/WebLRUFileList.h: Removed.
1746 * Misc/WebLRUFileList.m: Removed.
1747 * WebKit.xcodeproj/project.pbxproj:
1749 2006-08-27 Sam Weinig <sam.weinig@gmail.com>
1753 - patch for http://bugs.webkit.org/show_bug.cgi?id=4624
1754 WebCore needs autogenerated Obj-C DOM bindings
1756 First round of auto-generated Objective C DOM bindings, starting
1759 * WebKit.xcodeproj/project.pbxproj:
1761 2006-08-25 Brady Eidson <beidson@apple.com>
1763 Reviewed by Tim Hatcher
1765 Fixed up some leaks on [WebIconDatabase init]
1767 * Misc/WebIconDatabase.m:
1768 (-[WebIconDatabase init]):
1770 2006-08-24 Timothy Hatcher <timothy@apple.com>
1774 * WebView/WebFrame.m:
1775 (-[WebFrame _updateBackground]): reworded the comment about scroll view and setDrawsBackground:YES
1776 * WebView/WebView.m:
1777 (-[WebViewPrivate dealloc]): release the background color
1779 2006-08-24 Timothy Hatcher <timothy@apple.com>
1783 WebView API to allow changing the background color that draws under transparent page backgrounds.
1785 * WebView/WebFrame.m:
1786 (-[WebFrame _makeDocumentView]):
1787 (-[WebFrame _updateBackground]):
1788 * WebView/WebFrameInternal.h:
1789 * WebView/WebFrameView.m:
1790 (-[WebFrameView drawRect:]):
1791 * WebView/WebView.m:
1792 (-[WebView setBackgroundColor:]):
1793 (-[WebView backgroundColor]):
1794 (-[WebView _commonInitializationWithFrameName:groupName:]):
1795 (-[WebView setDrawsBackground:]):
1796 * WebView/WebViewPrivate.h:
1798 2006-08-24 Timothy Hatcher <timothy@apple.com>
1802 Fix for Mail stationary. Selecting a stationary item would cause this exception.
1803 *** -[WebSubresourceLoader copyWithZone:]: selector not recognized
1804 Uncaught exception - *** -[WebSubresourceLoader copyWithZone:]: selector not recognized
1806 * Loader/WebFrameLoader.m:
1807 (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
1808 Use _webkit_setObject:forUncopiedKey: when addign the resource to pendingArchivedResources.
1810 2006-08-23 Maciej Stachowiak <mjs@apple.com>
1814 - fix assertion which I accidentally changed to one that sometimes fails
1815 http://bugs.webkit.org/show_bug.cgi?id=10531
1817 * Loader/WebDocumentLoadState.m:
1818 (-[WebDocumentLoadState dealloc]):
1819 * WebView/WebDataSource.m:
1820 (-[WebDataSourcePrivate dealloc]):
1821 (-[WebDataSource dealloc]):
1823 2006-08-23 Maciej Stachowiak <mjs@apple.com>
1827 - move WebFrame code that creates WebDataSources down to WebFrameLoader, in preparation
1828 for WebFrameLoader just holding on to WebDocumentLoadState
1830 * Loader/WebFrameLoader.h:
1831 * Loader/WebFrameLoader.m:
1832 (-[WebFrameLoader _loadRequest:archive:]):
1833 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
1834 (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
1835 (-[WebFrameLoader reload]):
1836 * WebView/WebFrame.m:
1837 (-[WebFrame _loadItem:withLoadType:]):
1838 (-[WebFrame _continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
1839 (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
1840 (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
1841 (-[WebFrame _shouldReloadToHandleUnreachableURLFromRequest:]):
1842 (-[WebFrame loadRequest:]):
1843 (-[WebFrame loadArchive:]):
1844 (-[WebFrame reload]):
1845 * WebView/WebFrameInternal.h:
1846 * WebView/WebFramePrivate.h:
1847 * WebView/WebView.m:
1848 (-[WebView setCustomTextEncodingName:]):
1850 2006-08-23 Brady Eidson <beidson@apple.com>
1854 First pass at pruning unused WebIconDatabase code. Focus on removing methods that simply
1855 have no place in the new DB at all. A few renames and a few important FIXMEs result, but no
1856 functionality changes.
1858 * Loader/WebIconLoader.m:
1859 (-[WebIconLoader didFinishLoading]): Call to WebIconDatabase instead of directly to the bridge
1860 * Misc/WebIconDatabase.h:
1861 * Misc/WebIconDatabase.m:
1862 (-[WebIconDatabase init]):
1863 (-[WebIconDatabase iconForURL:withSize:cache:]):
1864 (-[WebIconDatabase iconURLForURL:]):
1865 (-[WebIconDatabase defaultIconWithSize:]):
1866 (-[WebIconDatabase retainIconForURL:]):
1867 (-[WebIconDatabase releaseIconForURL:]):
1868 (-[WebIconDatabase removeAllIcons]):
1869 (-[WebIconDatabase _setIconData:forIconURL:]):
1870 (-[WebIconDatabase _setHaveNoIconForIconURL:]):
1871 (-[WebIconDatabase _setIconURL:forURL:]):
1872 (-[WebIconDatabase _hasEntryForIconURL:]):
1873 (-[WebIconDatabase _applicationWillTerminate:]):
1874 (-[WebIconDatabase _resetCachedWebPreferences:]):
1875 * Misc/WebIconDatabasePrivate.h: Changed setIcon: to setIconData:
1877 2006-08-23 Maciej Stachowiak <mjs@apple.com>
1881 - started factoring most of the guts of WebDataSource into a new class
1883 WebDocumentLoadState is decoupled from the rest of WebKit and will
1884 be moved down to WebCore. I only moved one of the data fields of
1885 WebDataSource for now.
1887 * Loader/WebDocumentLoadState.h: Added.
1888 * Loader/WebDocumentLoadState.m: Added.
1889 (-[WebDocumentLoadState initWithRequest:]): New class.
1890 (-[WebDocumentLoadState dealloc]):
1891 (-[WebDocumentLoadState setFrameLoader:]):
1892 (-[WebDocumentLoadState setMainResourceData:]):
1893 (-[WebDocumentLoadState mainResourceData]):
1894 * Loader/WebFrameLoader.m:
1895 (-[WebFrameLoader _setDataSource:]): Remove redundant _setWebFrame: call,
1896 it would have been called already by this point.
1897 (-[WebFrameLoader _setProvisionalDataSource:]): ditto.
1898 * WebKit.xcodeproj/project.pbxproj:
1899 * WebView/WebDataSource.m:
1900 (-[WebDataSourcePrivate dealloc]):
1901 (-[WebDataSource _setWebFrame:]):
1902 (-[WebDataSource _setPrimaryLoadComplete:]):
1903 (-[WebDataSource initWithRequest:]):
1904 (-[WebDataSource data]):
1906 2006-08-23 Maciej Stachowiak <mjs@apple.com>
1910 - refactoring of WebDataSource in preparation for moving a bunch of it to a new class
1912 - minimize WebDataSourceInternal.h to be only methods called from outside WebDataSource
1913 - reduce Private category implementation to be only the SPI methods
1914 - make new Internal and FileInternal categories which contain the
1915 remainder (depending on whether they are called from outside of
1918 * WebView/WebDataSource.m:
1919 (-[WebDataSource _setMainDocumentError:]):
1920 (addTypesFromClass):
1921 (+[WebDataSource _representationClassForMIMEType:]):
1922 (-[WebDataSource _commitIfReady]):
1923 (-[WebDataSource _commitLoadWithData:]):
1924 (-[WebDataSource _doesProgressiveLoadWithMIMEType:]):
1925 (-[WebDataSource _addResponse:]):
1926 (-[WebDataSource _revertToProvisionalState]):
1927 (-[WebDataSource _mainDocumentError]):
1928 (-[WebDataSource _addSubframeArchives:]):
1929 (-[WebDataSource _fileWrapperForURL:]):
1930 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
1931 (-[WebDataSource _decidePolicyForMIMEType:decisionListener:]):
1932 (-[WebDataSource _finishedLoading]):
1933 (-[WebDataSource _setResponse:]):
1934 (-[WebDataSource _setRequest:]):
1935 (-[WebDataSource _setupForReplaceByMIMEType:]):
1936 (-[WebDataSource _receivedMainResourceError:complete:]):
1937 (-[WebDataSource _mainReceivedError:complete:]):
1938 (-[WebDataSource _defersCallbacks]):
1939 (-[WebDataSource _downloadWithLoadingConnection:request:response:proxy:]):
1940 (-[WebDataSource _didFailLoadingWithError:forResource:]):
1941 (-[WebDataSource _didFinishLoadingForResource:]):
1942 (-[WebDataSource _didReceiveData:contentLength:forResource:]):
1943 (-[WebDataSource _didReceiveResponse:forResource:]):
1944 (-[WebDataSource _didCancelAuthenticationChallenge:forResource:]):
1945 (-[WebDataSource _didReceiveAuthenticationChallenge:forResource:]):
1946 (-[WebDataSource _willSendRequest:forResource:redirectResponse:]):
1947 (-[WebDataSource _identifierForInitialRequest:]):
1948 (-[WebDataSource _archivedSubresourceForURL:]):
1949 (-[WebDataSource _startLoading]):
1950 (-[WebDataSource _stopRecordingResponses]):
1951 (-[WebDataSource _loadingStartedTime]):
1952 (-[WebDataSource _replaceSelectionWithArchive:selectReplacement:]):
1953 (-[WebDataSource _documentFragmentWithArchive:]):
1954 (-[WebDataSource _documentFragmentWithImageResource:]):
1955 (-[WebDataSource _imageElementWithImageResource:]):
1956 (-[WebDataSource _title]):
1957 (-[WebDataSource _isStopping]):
1958 (-[WebDataSource _setWebFrame:]):
1959 (-[WebDataSource _URL]):
1960 (-[WebDataSource _loadFromPageCache:]):
1961 (-[WebDataSource _popSubframeArchiveWithName:]):
1962 (-[WebDataSource _setIsClientRedirect:]):
1963 (-[WebDataSource _setURL:]):
1964 (-[WebDataSource _setLastCheckedRequest:]):
1965 (-[WebDataSource _defersCallbacksChanged]):
1966 (-[WebDataSource _lastCheckedRequest]):
1967 (-[WebDataSource _stopLoading]):
1968 (-[WebDataSource _bridge]):
1969 (-[WebDataSource _webView]):
1970 (-[WebDataSource _triggeringAction]):
1971 (-[WebDataSource _setTriggeringAction:]):
1972 (-[WebDataSource __adoptRequest:]):
1973 (-[WebDataSource _isDocumentHTML]):
1974 (-[WebDataSource _stopLoadingWithError:]):
1975 (-[WebDataSource _setPrimaryLoadComplete:]):
1976 (-[WebDataSource _responses]):
1977 (-[WebDataSource _makeRepresentation]):
1978 (-[WebDataSource _isClientRedirect]):
1979 (-[WebDataSource _originalRequest]):
1980 (-[WebDataSource _URLForHistory]):
1981 (-[WebDataSource _addToUnarchiveState:]):
1982 (-[WebDataSource _setOverrideEncoding:]):
1983 (-[WebDataSource _setIconURL:]):
1984 (-[WebDataSource _setIconURL:withType:]):
1985 (-[WebDataSource _overrideEncoding]):
1986 (-[WebDataSource _setTitle:]):
1987 * WebView/WebDataSourceInternal.h:
1989 2006-08-23 Brady Eidson <beidson@apple.com>
1991 Reviewed by John Sullivan
1994 Flip the switch to the new Icon Database
1995 Massive code pruning is coming up
1997 * WebKitPrefix.h: Flipped the switch
1999 2006-08-23 Brady Eidson <beidson@apple.com>
2002 Since I just pushed the default URL icon from WebKit to WebCore, but
2003 WebKit was still using its version of the default icon, this patch makes it
2004 use the WebCore version
2006 * Misc/WebIconDatabase.m:
2007 (-[WebIconDatabase defaultIconWithSize:]):
2009 2006-08-22 Maciej Stachowiak <mjs@apple.com>
2013 - remove "loading" flag from WebDataSource and code that manages it; it is redundat.
2015 * Loader/WebFrameLoader.m:
2016 (-[WebFrameLoader addPlugInStreamLoader:]):
2017 (-[WebFrameLoader removePlugInStreamLoader:]):
2018 (-[WebFrameLoader addSubresourceLoader:]):
2019 (-[WebFrameLoader removeSubresourceLoader:]):
2020 * WebView/WebDataSource.m:
2021 (-[WebDataSourcePrivate dealloc]):
2022 (-[WebDataSource _setPrimaryLoadComplete:]):
2023 (-[WebDataSource _stopLoading]):
2024 (-[WebDataSource _prepareForLoadStart]):
2025 (-[WebDataSource _startLoading]):
2026 (-[WebDataSource isLoading]):
2027 * WebView/WebDataSourceInternal.h:
2029 2006-08-22 Maciej Stachowiak <mjs@apple.com>
2033 <rdar://problem/4683948> REGRESSION: Assertion failure in [FrameProgressEntry addChild:forDataSource:] (fandango.com)
2035 * Loader/WebFrameLoader.m:
2036 (-[WebFrameLoader addSubresourceLoader:]): Add a WebKit-level assertion that should fire when this bad
2038 * Loader/WebSubresourceLoader.m:
2039 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]): Prevent
2040 the situation from occuring.
2042 2006-08-22 Maciej Stachowiak <mjs@apple.com>
2046 - pull more WebDataSource code into WebFrameLoader
2047 - make WebMainResourceLoader not depend on WebKit or on SPI
2049 * Loader/WebFrameLoader.h:
2050 * Loader/WebFrameLoader.m:
2051 (-[WebFrameLoader _downloadWithLoadingConnection:request:response:proxy:]):
2052 (-[WebFrameLoader _updateIconDatabaseWithURL:]):
2053 (-[WebFrameLoader _notifyIconChanged:]):
2054 (-[WebFrameLoader _iconLoaderReceivedPageIcon:]):
2055 (-[WebFrameLoader _checkNavigationPolicyForRequest:andCall:withSelector:]):
2056 (-[WebFrameLoader _checkContentPolicyForMIMEType:andCall:withSelector:]):
2057 (-[WebFrameLoader cancelContentPolicy]):
2058 * Loader/WebIconLoader.m:
2059 (-[WebIconLoader didFinishLoading]):
2060 * Loader/WebLoader.m:
2061 (-[NSURLProtocol loadWithRequest:]):
2062 (-[NSURLProtocol setDefersCallbacks:]):
2063 * Loader/WebMainResourceLoader.h:
2064 * Loader/WebMainResourceLoader.m:
2065 (-[WebMainResourceLoader initWithFrameLoader:]):
2066 (-[WebMainResourceLoader dealloc]):
2067 (-[WebMainResourceLoader cancelWithError:]):
2068 (-[WebMainResourceLoader continueAfterNavigationPolicy:formState:]):
2069 (-[WebMainResourceLoader willSendRequest:redirectResponse:]):
2070 (-[WebMainResourceLoader continueAfterContentPolicy:]):
2071 (-[WebMainResourceLoader checkContentPolicy]):
2072 (-[WebMainResourceLoader didReceiveResponse:]):
2073 * Plugins/WebPluginContainerCheck.m:
2074 * WebCoreSupport/WebSystemInterface.m:
2075 (InitWebCoreSystemInterface):
2076 * WebView/WebDataSource.m:
2077 (-[WebDataSource _loadIcon]):
2078 (-[WebDataSource _cancelledError]):
2079 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
2080 (+[WebDataSource _representationClassForMIMEType:]):
2081 (-[WebDataSource _commitLoadWithData:]):
2082 (-[WebDataSource _isDocumentHTML]):
2083 * WebView/WebDataSourceInternal.h:
2084 * WebView/WebFramePrivate.h:
2085 * WebView/WebPolicyDelegate.m:
2086 * WebView/WebPolicyDelegatePrivate.h:
2088 2006-08-21 Maciej Stachowiak <mjs@apple.com>
2092 - move more code from WebDataSource to WebFrameLoader
2094 Also marked a few more methods in WebDataSource as likely MOVABLE in a future round, since they do not
2095 use any of WebDataSource's private data.
2097 * Loader/WebFrameLoader.h:
2098 * Loader/WebFrameLoader.m:
2099 (-[WebFrameLoader addPlugInStreamLoader:]):
2100 (-[WebFrameLoader removePlugInStreamLoader:]):
2101 (-[WebFrameLoader addSubresourceLoader:]):
2102 (-[WebFrameLoader removeSubresourceLoader:]):
2103 (-[WebFrameLoader _didReceiveAuthenticationChallenge:forResource:]):
2104 (-[WebFrameLoader _didCancelAuthenticationChallenge:forResource:]):
2105 (-[WebFrameLoader _didReceiveResponse:forResource:]):
2106 (-[WebFrameLoader _didReceiveData:contentLength:forResource:]):
2107 (-[WebFrameLoader _didFinishLoadingForResource:]):
2108 (-[WebFrameLoader _didFailLoadingWithError:forResource:]):
2109 (-[WebFrameLoader _privateBrowsingEnabled]):
2110 (-[WebFrameLoader _finishedLoadingResource]):
2111 (-[WebFrameLoader _receivedError:]):
2112 (-[WebFrameLoader _finishedLoading]):
2113 * Loader/WebMainResourceLoader.m:
2114 (-[WebMainResourceLoader didReceiveData:lengthReceived:allAtOnce:]):
2115 (-[WebMainResourceLoader didFinishLoading]):
2116 * Loader/WebNetscapePlugInStreamLoader.m:
2117 (-[WebNetscapePlugInStreamLoader didFinishLoading]):
2118 (-[WebNetscapePlugInStreamLoader didFailWithError:]):
2119 (-[WebNetscapePlugInStreamLoader cancelWithError:]):
2120 * Loader/WebSubresourceLoader.m:
2121 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
2122 (-[WebSubresourceLoader signalFinish]):
2123 (-[WebSubresourceLoader didFailWithError:]):
2124 (-[WebSubresourceLoader cancel]):
2125 * Plugins/WebNetscapePluginStream.m:
2126 (-[WebNetscapePluginStream start]):
2127 * WebView/WebDataSource.m:
2128 (-[WebDataSource _replaceSelectionWithArchive:selectReplacement:]):
2129 (-[WebDataSource _updateIconDatabaseWithURL:]):
2130 (-[WebDataSource _loadIcon]):
2131 (-[WebDataSource _setPrimaryLoadComplete:]):
2132 (-[WebDataSource _cancelledError]):
2133 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
2134 (+[WebDataSource _representationClassForMIMEType:]):
2135 (-[WebDataSource _commitLoadWithData:]):
2136 (-[WebDataSource _receivedMainResourceError:complete:]):
2137 (-[WebDataSource _iconLoaderReceivedPageIcon:]):
2138 (-[WebDataSource _isDocumentHTML]):
2139 * WebView/WebDataSourceInternal.h:
2141 2006-08-21 Brady Eidson <beidson@apple.com>
2145 Quick ICONDEBUG flag fix
2147 * Misc/WebIconDatabase.m:
2148 (-[WebIconDatabase _applicationWillTerminate:]):
2150 2006-08-21 Brady Eidson <beidson@apple.com>
2154 -Renamed an internal only method for clarity
2155 -Tweaked WebDataSource for notification purposes with the new expiring icons
2156 -Fixed a bug with the ICONDEBUG flag
2158 * Misc/WebIconDatabase.m:
2159 (-[WebIconDatabase init]):
2160 (-[WebIconDatabase iconForURL:withSize:cache:]): #ifdef bug fixed
2161 (-[WebIconDatabase _hasEntryForIconURL:]): Renamed for clarity
2162 * Misc/WebIconDatabasePrivate.h:
2163 * WebView/WebDataSource.m:
2164 (-[WebDataSource _updateIconDatabaseWithURL:]):
2165 (-[WebDataSource _notifyIconChanged:]):
2166 (-[WebDataSource _loadIcon]):
2167 (-[WebDataSource _iconLoaderReceivedPageIcon:]):
2169 2006-08-17 Maciej Stachowiak <mjs@apple.com>
2173 - pull a bit of WebDataSource code into WebFrameLoader
2175 * Loader/WebFrameLoader.m:
2176 (-[WebFrameLoader _receivedError:]):
2177 (-[WebFrameLoader webFrame]):
2178 (-[WebFrameLoader _handleFallbackContent]):
2179 (+[WebFrameLoader _canShowMIMEType:]):
2180 (+[WebFrameLoader _representationExistsForURLScheme:]):
2181 (+[WebFrameLoader _generatedMIMETypeForURLScheme:]):
2182 * WebView/WebDataSource.m:
2183 * WebView/WebDataSourceInternal.h:
2185 2006-08-17 Timothy Hatcher <timothy@apple.com>
2187 Reviewed by Kevin Decker.
2189 <rdar://problem/4606857> WebKit: WebPreferencesChangedNotification not exported in 64-bit
2193 2006-08-17 Timothy Hatcher <timothy@apple.com>
2195 Reviewed by Kevin Decker.
2197 <rdar://problem/4633896> -[WebView close] should clear all delegates and call setHostWindow:nil
2198 <rdar://problem/4649759> Crash when selecting View Source menu using Chinese (-[WebView _close])
2200 Check to make sure _private is not null. A WebView can be dealloced before _private is setup.
2201 Set the _private->closed flag at the beginning of _close to prevent reentry.
2202 Set the host window and all the delegates to nil in _close.
2204 * WebView/WebView.m:
2205 (-[WebView _close]):
2207 2006-08-16 Brady Eidson <beidson@apple.com>
2211 * Misc/WebIconDatabase.m: Pruned unused method
2212 * Misc/WebIconDatabasePrivate.h: Ditto
2215 2006-08-15 Maciej Stachowiak <mjs@apple.com>
2217 Reviewed by Adele (preliminary version) and later by Kevin.
2219 - remove most WebKit dependencies from WebMainResourceLoader.
2221 * Loader/WebFrameLoader.h:
2222 * Loader/WebFrameLoader.m:
2223 (-[WebFrameLoader cannotShowMIMETypeForURL:]):
2224 (-[WebFrameLoader interruptForPolicyChangeErrorWithRequest:]):
2225 (-[WebFrameLoader isHostedByObjectElement]):
2226 (-[WebFrameLoader isLoadingMainFrame]):
2227 (+[WebFrameLoader _canShowMIMEType:]):
2228 (+[WebFrameLoader _representationExistsForURLScheme:]):
2229 (+[WebFrameLoader _generatedMIMETypeForURLScheme:]):
2230 * Loader/WebMainResourceLoader.h:
2231 * Loader/WebMainResourceLoader.m:
2232 (-[WebMainResourceLoader interruptForPolicyChangeError]):
2233 (-[WebMainResourceLoader willSendRequest:redirectResponse:]):
2234 (isCaseInsensitiveEqual):
2235 (shouldLoadAsEmptyDocument):
2236 (-[WebMainResourceLoader continueAfterContentPolicy:response:]):
2237 (-[WebMainResourceLoader didReceiveResponse:]):
2238 (-[WebMainResourceLoader didReceiveData:lengthReceived:allAtOnce:]):
2239 (-[WebMainResourceLoader didFinishLoading]):
2240 (-[WebMainResourceLoader loadWithRequestNow:]):
2241 (-[WebMainResourceLoader loadWithRequest:]):
2243 2006-08-15 Tim Omernick <timo@apple.com>
2245 Reviewed by Kevin Decker.
2247 * Plugins/WebNetscapePluginPackage.m:
2248 (-[WebNetscapePluginPackage _unloadWithShutdown:]):
2249 Fixed a subtle problem with the 64-bit debug build -- as written, this would LOG() on 64-bit and do nothing on
2251 * Plugins/WebPluginDatabase.m:
2252 (-[WebPluginDatabase _scanForNewPlugins]):
2253 Use +[NSMutableSet set] here.
2255 2006-08-15 Tim Omernick <timo@apple.com>
2257 Reviewed by Darin Adler.
2259 <http://bugs.webkit.org/show_bug.cgi?id=8980>
2260 ASSERTION FAILED: !isLoaded (WebKit/WebKit/Plugins/WebBasePluginPackage.m:228 -[WebBasePluginPackage dealloc])
2262 <rdar://problem/4526052> intermittent assertion failure in -[WebBasePluginPackage dealloc] running layout tests (8980)
2264 * Plugins/WebPluginDatabase.h:
2265 * Plugins/WebPluginDatabase.m:
2266 (+[WebPluginDatabase installedPlugins]):
2267 Observe NSApplicationWillTerminateNotification so we can unload plug-ins on quit.
2268 (-[WebPluginDatabase plugins]):
2269 'plugins' is now a dictionary.
2270 (-[WebPluginDatabase close]):
2271 Call new -_removePlugin: method.
2272 (-[WebPluginDatabase refresh]):
2273 Moved parts of this method out into other methods: -_addPlugin:, -_removePlugin:, and -_scanForNewPlugins.
2274 (-[WebPluginDatabase _plugInPaths]):
2275 No changes; just moved in file.
2276 (-[WebPluginDatabase _addPlugin:]):
2277 New method. Refactored from -refresh. Adds a plug-in to the database.
2278 (-[WebPluginDatabase _removePlugin:]):
2279 New method. Refactored from -refresh. Remove a plug-in from the database.
2280 (-[WebPluginDatabase _scanForNewPlugins]):
2281 New method. Refactored from -refresh. Returns the list of plug-in packages on disk.
2282 (-[WebPluginDatabase _applicationWillTerminate]):
2283 New method. Called when the application terminates. Closes the plug-in database so that all plug-ins are
2284 removed from the DB (and unloaded if necessary).
2286 * Plugins/WebBasePluginPackage.h:
2287 * Plugins/WebBasePluginPackage.m:
2288 (-[WebBasePluginPackage initWithPath:]):
2289 Try to create the NSBundle first, so if the file is not a valid bundle we bail out early. This
2290 avoids some stat()s and allocations during the plug-in refresh process.
2291 (-[WebBasePluginPackage isLoaded]):
2293 (-[WebBasePluginPackage load]):
2294 Base class for plug-in packages now always loads "successfully".
2295 (-[WebBasePluginPackage dealloc]):
2296 Removed this assertion. The base plug-in package class has no concept of
2298 (-[WebBasePluginPackage finalize]):
2300 (-[WebBasePluginPackage wasRemovedFromPluginDatabase:]):
2301 Moved code to unload plug-in package to WebNetscapePluginPackage. Not all plug-in
2302 packages can be "unloaded".
2304 * Plugins/WebNetscapePluginPackage.h:
2305 * Plugins/WebNetscapePluginPackage.m:
2306 (-[WebNetscapePluginPackage _unloadWithShutdown:]):
2307 Combined old -unload and -unloadWithoutShutdown methods into this new one.
2308 (-[WebNetscapePluginPackage initWithPath:]):
2309 Call new unload method.
2310 (-[WebNetscapePluginPackage load]):
2312 (-[WebNetscapePluginPackage wasRemovedFromPluginDatabase:]):
2314 (-[WebNetscapePluginPackage open]):
2315 New method. Called when a plug-in instance starts running.
2316 (-[WebNetscapePluginPackage close]):
2317 New method. Called when a plug-in instance stops running. When all plug-in instances
2318 close the plug-in package, and the plug-in package is removed from the database, the plug-in
2321 * Plugins/WebPluginPackage.m:
2322 (-[WebPluginPackage initWithPath:]):
2323 (-[WebPluginPackage load]):
2324 Made this a bit more efficient by checking if the bundle is already loaded.
2325 (-[WebBasePluginPackage unload]):
2327 (-[WebBasePluginPackage isLoaded]):
2330 * Plugins/WebBaseNetscapePluginView.m:
2331 (-[WebBaseNetscapePluginView start]):
2332 Open the plug-in package so it remains loaded while this instance uses it.
2333 (-[WebBaseNetscapePluginView stop]):
2334 Close the plug-in package when the plug-in instance is stopped.
2336 * Plugins/WebBaseNetscapePluginStream.m:
2337 (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:]):
2338 This check is not necessary. Netscape plug-in packages are never unloaded until all their instances have
2339 been stopped, and a Netscape plug-in instance will stop its streams when it is stopped.
2340 (-[WebBaseNetscapePluginStream _destroyStream]):
2342 (-[WebBaseNetscapePluginStream finishedLoadingWithData:]):
2344 (-[WebBaseNetscapePluginStream _deliverData]):
2347 2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
2351 Build fix: DWARF and -gfull are incompatible with symbol separation.
2353 * WebKit.xcodeproj/project.pbxproj:
2355 2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
2359 http://bugs.webkit.org/show_bug.cgi?id=10394
2360 Bug 10394: WebKit Release and Production configurations should enable dead code stripping
2362 * WebKit.xcodeproj/project.pbxproj:
2364 2006-08-15 Maciej Stachowiak <mjs@apple.com>
2368 - remove WebKit dependencies from WebPlugInStreamLoader via a protocol veil of ignorance
2370 * Loader/WebNetscapePlugInStreamLoader.h:
2371 * Loader/WebNetscapePlugInStreamLoader.m:
2372 (-[WebNetscapePlugInStreamLoader initWithDelegate:frameLoader:]):
2373 * Loader/WebPlugInStreamLoaderDelegate.h: Added.
2374 * Plugins/WebBaseNetscapePluginStream.h:
2375 * Plugins/WebNetscapePluginStream.m:
2376 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
2377 * WebKit.xcodeproj/project.pbxproj:
2379 2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
2383 http://bugs.webkit.org/show_bug.cgi?id=10384
2384 Bug 10384: Switch to DWARF for Release configuration
2386 * WebKit.xcodeproj/project.pbxproj:
2388 2006-08-15 Graham Dennis <graham.dennis@gmail.com>
2392 - patch for http://bugs.webkit.org/show_bug.cgi?id=10314
2393 WebUnarchivingState archivedResourceForURL: doesn't work
2395 * WebView/WebUnarchivingState.m:
2396 (-[WebUnarchivingState archivedResourceForURL:]):
2397 Fixed to get objects from the archived resources dictionary using
2398 the URL as a string instead of as the URL itself (as this is how
2399 the data is put into the dictionary).
2401 2006-08-14 Maciej Stachowiak <mjs@apple.com>
2405 - remove many (but not all) WebKit dependencies from WebNetscapePlugInStreamLoader (it still
2406 depends on WebNetscapePluginStream).
2408 * Loader/WebFrameLoader.h:
2409 * Loader/WebFrameLoader.m:
2410 (-[WebFrameLoader fileDoesNotExistErrorWithResponse:]):
2411 * Loader/WebNetscapePlugInStreamLoader.h:
2412 * Loader/WebNetscapePlugInStreamLoader.m:
2413 (-[WebNetscapePlugInStreamLoader initWithStream:frameLoader:]):
2414 (-[WebNetscapePlugInStreamLoader releaseResources]):
2415 (-[WebNetscapePlugInStreamLoader didReceiveResponse:]):
2416 * Plugins/WebNetscapePluginStream.m:
2417 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
2419 2006-08-14 Maciej Stachowiak <mjs@apple.com>
2421 Reviewed by Tim Omernick.
2423 - fixed REGRESSION: crash when leaving youtube page while movie is still loading
2424 http://bugs.webkit.org/show_bug.cgi?id=10398
2426 * Loader/WebNetscapePlugInStreamLoader.m:
2427 (-[WebNetscapePlugInStreamLoader initWithStream:view:]): Set the frame loader for this stream.
2428 (-[WebNetscapePlugInStreamLoader cancelWithError:]): Make sure to destroy the stream as well;
2429 otherwise, when we try to clean up later, we won't have the right context.
2431 2006-08-14 David Hyatt <hyatt@apple.com>
2433 Fix for Radar bug 4478840, Safari should not reduce null events sent to
2434 plug-ins in windows that are inactive but visible.
2436 With this fix you can view videos in visible background windows on YouTube
2437 (for example) and not see any drop in frame rate.
2441 * Plugins/WebBaseNetscapePluginView.m:
2442 (-[WebBaseNetscapePluginView restartNullEvents]):
2444 2006-08-14 Maciej Stachowiak <mjs@apple.com>
2448 - removed WebKit-level dependencies from WebFormDataStream. Use WebCore version of system interface
2450 * Loader/WebFormDataStream.m:
2452 (formEventCallback):
2454 * WebCoreSupport/WebSystemInterface.m:
2455 (InitWebCoreSystemInterface):
2457 2006-08-14 Maciej Stachowiak <mjs@apple.com>
2459 Rubber stamped by Brady.
2461 - move WebFormDataStream from WebView to Loader
2463 * WebKit.xcodeproj/project.pbxproj:
2464 * WebView/WebFormDataStream.h: Removed.
2465 * WebView/WebFormDataStream.m: Removed.
2467 2006-08-13 Maciej Stachowiak <mjs@apple.com>
2471 - remove WebKit dependencies from WebSubresourceLoader, except WebFormDataStream
2473 (WebFormDataStream will be moved into the Loader directory soon)
2475 * Loader/WebFrameLoader.h:
2476 * Loader/WebFrameLoader.m:
2477 (-[WebFrameLoader _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
2478 * Loader/WebSubresourceLoader.m:
2479 (isConditionalRequest):
2480 (hasCaseInsensitivePrefix):
2483 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
2485 2006-08-13 Brady Eidson <beidson@apple.com>
2489 Relocated the WebIconLoaders
2491 * Misc/WebIconLoader.h: Moved to Loader/
2492 * Misc/WebIconLoader.m: Moved to Loader/
2493 * WebKit.xcodeproj/project.pbxproj:
2495 2006-08-13 Maciej Stachowiak <mjs@apple.com>
2499 - removed non-Loader WebKit dependencies from WebDataProtocol for
2500 real (whoops) and fix some typos.
2502 * Loader/WebDataProtocol.m:
2503 (isCaseInsensitiveEqual): Added.
2504 (+[WebDataProtocol _webIsDataProtocolURL:]): Avoid WebKit calls.
2505 (-[WebDataProtocol startLoading]): ditto
2506 * Loader/WebFrameLoader.m:
2507 (isCaseInsensitiveEqual): Fixed spelling from isCaseSensitiveEqual.
2508 (-[WebFrameLoader _canUseResourceForRequest:]): Use proper call.
2510 2006-08-13 Brady Eidson <beidson@apple.com>
2514 The way of detecting a failed icon load before was to try and construct
2515 an image from the icon and if that image construction failed, mark the icon
2517 A much more efficient way is to check for an error response. We'll still
2518 check for invalid image data, but most servers will correctly return an HTTP
2519 error on a missing icon.
2521 * Misc/WebIconLoader.m:
2522 (-[WebIconLoader didFinishLoading]): Added check for http error response
2524 2006-08-13 Maciej Stachowiak <mjs@apple.com>
2528 - remove all non-Loader dependencies from WebLoader
2530 As part of this I moved WebDataProtocol to the loader directory
2531 and removed dependencies on the rest of WebKit from that too.
2533 * Loader/WebFrameLoader.h:
2534 * Loader/WebFrameLoader.m:
2535 (-[WebFrameLoader setDefersCallbacks:]):
2536 (-[WebFrameLoader stopLoading]):
2537 (-[WebFrameLoader cancelledErrorWithRequest:]):
2538 (-[WebFrameLoader clearArchivedResources]):
2539 (-[WebFrameLoader deliverArchivedResources]):
2540 (-[WebFrameLoader deliverArchivedResourcesAfterDelay]):
2541 (isCaseSensitiveEqual):
2542 (-[WebFrameLoader _canUseResourceForRequest:]):
2543 (-[WebFrameLoader _canUseResourceWithResponse:]):
2544 (-[WebFrameLoader pendingArchivedResources]):
2545 (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
2546 (-[WebFrameLoader archiveLoadPendingForLoader:]):
2547 (-[WebFrameLoader cancelPendingArchiveLoadForLoader:]):
2548 * Loader/WebLoader.h:
2549 * Loader/WebLoader.m:
2550 (-[NSURLProtocol releaseResources]):
2551 (-[NSURLProtocol loadWithRequest:]):
2552 (-[NSURLProtocol setDefersCallbacks:]):
2553 (-[NSURLProtocol addData:allAtOnce:]):
2554 (-[NSURLProtocol resourceData]):
2555 (-[NSURLProtocol didReceiveData:lengthReceived:allAtOnce:]):
2556 (-[NSURLProtocol connection:didReceiveData:lengthReceived:]):
2557 (-[NSURLProtocol cancelWithError:]):
2558 (-[NSURLProtocol cancelledError]):
2559 * Loader/WebMainResourceLoader.m:
2560 (-[WebMainResourceLoader addData:allAtOnce:]):
2561 (-[WebMainResourceLoader didReceiveData:lengthReceived:allAtOnce:]):
2562 * Loader/WebNetscapePlugInStreamLoader.m:
2563 (-[WebNetscapePlugInStreamLoader didReceiveData:lengthReceived:allAtOnce:]):
2564 * Loader/WebSubresourceLoader.m:
2565 (-[WebSubresourceLoader didReceiveData:lengthReceived:allAtOnce:]):
2566 * WebKit.xcodeproj/project.pbxproj:
2567 * WebView/WebDataProtocol.h: Removed.
2568 * WebView/WebDataProtocol.m: Removed.
2570 2006-08-11 Tim Omernick <timo@apple.com>
2574 <http://bugs.webkit.org/show_bug.cgi?id=10111> - Menu flickers over Flash content
2575 <rdar://problem/3052546> Plugins don't work with z-index (overlapping elements, etc.)
2577 * Plugins/WebBaseNetscapePluginView.m:
2578 (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
2579 Don't just clip to the dirty region for "transparent" plug-ins -- do it for all plug-ins. This is a
2580 generally useful thing to do, as it prevents the plug-in from drawing over parts of the window that
2581 have already been drawn and are not expected to be redrawn in the same update.
2583 2006-08-11 Brady Eidson <beidson@apple.com>
2585 Reviewed by John, Timo, Adele, and Darin
2587 In addition to a few style/good-practice cleanups, this patch will convert the old icon database
2588 format to the WebCore format if the WebCore db is empty (implying this conversion has yet to take
2589 place). After the conversion, it will delete all traces of the old format to free the unneeded space
2591 * Misc/WebIconDatabase.m:
2592 (-[WebIconDatabase init]):
2593 (-[WebIconDatabase _setIconURL:forURL:]): Changed the bridge's name for this method to be more clear
2594 (-[WebIconDatabase _createFileDatabase]):
2595 (-[WebIconDatabase _iconDataForIconURL:]): This grabs the raw data for use in the conversion function
2596 (-[WebIconDatabase _convertToWebCoreFormat]): This does the actual conversion
2598 2006-08-11 Tim Omernick <timo@apple.com>
2600 Reviewed by John Sullivan.
2602 Needed for <rdar://problem/4678070>.
2604 * Plugins/WebBaseNetscapePluginView.m:
2605 (-[WebBaseNetscapePluginView sendEvent:]):
2606 Changed an assertion to an early return. It should be possible to send events, especially updateEvt (for image capturing
2607 purposes), to off-screen plug-ins. It just doesn't work right now. See <rdar://problem/4318269>.
2609 2006-08-11 John Sullivan <sullivan@apple.com>
2613 - fixed <rdar://problem/4522894> Would be nice if Safari shrank pages a little if necessary
2614 to avoid printing an almost-empty page
2616 * WebView/WebHTMLView.m:
2617 (-[NSArray knowsPageRange:]):
2618 If the last page has a short-enough orphan (< 1/10 of the page height is the number I pulled
2619 out of ... the air), then we adjust the scale factor slightly and check whether this reduces
2620 the page count and thus eliminates the orphan.
2622 2006-08-07 Brady Eidson <beidson@apple.com>
2624 Reviewed by Anders and John
2626 * Misc/WebIconDatabase.m:
2627 (-[WebIconDatabase init]):
2628 (-[WebIconDatabase isIconExpiredForIconURL:]): Get if an icon expired
2629 (-[WebIconDatabase isIconExpiredForPageURL:]): Ditto
2630 (-[WebIconDatabase _setIconURL:forURL:]):
2631 (-[WebIconDatabase _sendNotificationForURL:]): Moved to WebKitPendingPublic for use outside of WebIconDatabase
2632 (-[WebIconDatabase loadIconFromURL:]): Allow a load outside the context of a page load
2633 * Misc/WebIconDatabasePrivate.h:
2635 * Misc/WebIconLoader.m:
2636 (-[WebIconLoader didFinishLoading]): fixed up the "flipping the switch" #defs a bit
2637 (-[WebIconLoader willSendRequest:redirectResponse:]): override to allow a load
2638 outside of the context of a page load
2640 * WebCoreSupport/WebIconDatabaseBridge.h: Added.
2641 * WebCoreSupport/WebIconDatabaseBridge.m: Added.
2642 (-[WebIconDatabaseBridge init]):
2643 (-[WebIconDatabaseBridge dealloc]):
2644 (-[WebIconDatabaseBridge loadIconFromURL:]): Kick off a load on an icon outside
2645 of the context of any page load
2646 (-[WebIconDatabaseBridge _setIconData:forIconURL:]): WebKit side of bridge method
2647 (-[WebIconDatabaseBridge _setHaveNoIconForIconURL:]): WebKit side of bridge method
2648 (-[WebIconDatabaseBridge releaseCachedLoaderForIconURL:]):
2649 (+[WebIconDatabaseBridge sharedBridgeInstance]): Moved this from WebCore to WebKit
2650 so both sides of the bridge get the WebKit version
2651 * WebKit.xcodeproj/project.pbxproj: Added some files
2652 * WebView/WebDataSource.m:
2653 (-[WebDataSource _loadIcon]): Added check for reload/expired icon to force
2654 a load even if we already have it
2656 2006-08-04 Sam Weinig <sam.weinig@gmail.com>
2660 - patch for http://bugs.webkit.org/show_bug.cgi?id=10192
2661 Make WebCore (and friends) compile with -Wshorten-64-to-32
2663 * Adds 'f' to float literals where expecting a float.
2664 * Use ceilf() instead of ceil() when assigning to a float.
2665 * Adds explicit casts where OK.
2667 NOTE: The -Wshorten-64-to-32 flag was not added for WebKit
2668 because there are still a few places where no error handling
2669 is in place. The flag can be added as soon as those are worked
2672 * Misc/WebNSControlExtras.m:
2673 (-[NSControl sizeToFitAndAdjustWindowHeight]):
2674 * Misc/WebNSImageExtras.m:
2675 (-[NSImage _web_scaleToMaxSize:]):
2676 * Misc/WebNSViewExtras.h:
2677 * Misc/WebNSViewExtras.m:
2678 * Plugins/WebBaseNetscapePluginView.m:
2679 (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
2680 (-[WebBaseNetscapePluginView drawRect:]):
2681 * WebCoreSupport/WebFrameBridge.m:
2682 (-[WebFrameBridge expiresTimeForResponse:]):
2683 * WebInspector/WebInspector.m:
2684 (-[NSWindow window]):
2685 (-[WebInspector treeViewScrollTo:]):
2686 (-[WebInspector _updateSystemColors]):
2687 (-[WebInspector webView:plugInViewWithArguments:]):
2688 (-[WebInspector outlineView:objectValueForTableColumn:byItem:]):
2689 * WebInspector/WebInspectorOutlineView.m:
2690 (-[WebInspectorOutlineView _highlightRow:clipRect:]):
2691 * WebInspector/WebNodeHighlight.m:
2692 (-[WebNodeHighlight initWithBounds:andRects:forView:]):
2693 * WebInspector/WebNodeHighlightView.m:
2694 (-[WebNodeHighlightView roundedRect:withRadius:]):
2695 (-[WebNodeHighlightView initWithHighlight:andRects:forView:]):
2696 (-[WebNodeHighlightView drawRect:]):
2697 * WebView/WebFrame.m:
2698 (-[WebFrame _opened]):
2699 * WebView/WebFrameView.m:
2700 (-[WebFrameView initWithFrame:]):
2701 * WebView/WebHTMLView.m:
2702 (-[WebHTMLView _dragImageForLinkElement:]):
2703 (-[WebHTMLView _web_setPrintingModeRecursive]):
2704 (-[WebHTMLView _web_clearPrintingModeRecursive]):
2705 (-[NSArray layout]):
2706 (-[NSArray _setPrinting:minimumPageWidth:maximumPageWidth:adjustViewSize:]):
2707 (-[NSArray adjustPageHeightNew:top:bottom:limit:]):
2708 (-[NSArray _scaleFactorForPrintOperation:]):
2709 (-[NSArray setPageWidthForPrinting:]):
2710 (-[NSArray _endPrintMode]):
2711 (-[NSArray knowsPageRange:]):
2712 (-[NSArray _originalFontA]):
2713 (-[NSArray _originalFontB]):
2714 (-[WebTextCompleteController _buildUI]):
2715 (-[WebTextCompleteController _placePopupWindow:]):
2716 * WebView/WebPDFView.m:
2717 (-[WebPDFView _makeTextStandardSize:]):
2718 (-[WebPDFView selectionImageForcingWhiteText:]):
2719 (-[PDFPrefUpdatingProxy forwardInvocation:]):
2720 * WebView/WebPreferences.m:
2721 (-[WebPreferences _floatValueForKey:]):
2722 * WebView/WebView.m:
2723 (-[WebView makeTextSmaller:]):
2724 (-[WebView canMakeTextStandardSize]):
2725 (-[WebView makeTextStandardSize:]):
2727 2006-08-04 David Kilzer <ddkilzer@kilzer.net>
2729 Reviewed by NOBODY (build fix).
2731 * WebCoreSupport/WebSubresourceLoader.m: REALLY moved to Loader/
2732 * WebView/WebFrameLoader.h: REALLY moved to Loader/
2733 * WebView/WebFrameLoader.m: REALLY moved to Loader/
2734 * WebView/WebLoader.h: REALLY moved to Loader/
2735 * WebView/WebLoader.m: REALLY moved to Loader/
2736 * WebView/WebMainResourceLoader.m: REALLY moved to Loader/
2738 2006-08-03 Maciej Stachowiak <mjs@apple.com>
2742 - moved all loader code that is slated to be moved down to WebCore to a new Loader directory
2744 (next step is to remove dependencies on the rest of WebKit from this directory)
2746 * Loader/WebNetscapePlugInStreamLoader.h: Added.
2747 * Loader/WebNetscapePlugInStreamLoader.m: Added. Cut out of WebNetscapePluginStream.m
2748 (-[WebNetscapePlugInStreamLoader initWithStream:view:]):
2749 (-[WebNetscapePlugInStreamLoader isDone]):
2750 (-[WebNetscapePlugInStreamLoader releaseResources]):
2751 (-[WebNetscapePlugInStreamLoader didReceiveResponse:]):
2752 (-[WebNetscapePlugInStreamLoader didReceiveData:lengthReceived:]):
2753 (-[WebNetscapePlugInStreamLoader didFinishLoading]):
2754 (-[WebNetscapePlugInStreamLoader didFailWithError:]):
2755 (-[WebNetscapePlugInStreamLoader cancelWithError:]):
2756 * Plugins/WebNetscapePluginStream.m:
2757 * WebKit.xcodeproj/project.pbxproj:
2758 * WebCoreSupport/WebSubresourceLoader.h: Moved to Loader/
2759 * WebCoreSupport/WebSubresourceLoader.m: Moved to Loader/
2760 * WebView/WebFrameLoader.h: Moved to Loader/
2761 * WebView/WebFrameLoader.m: Moved to Loader/
2762 * WebView/WebLoader.h: Moved to Loader/
2763 * WebView/WebLoader.m: Moved to Loader/
2764 * WebView/WebMainResourceLoader.h: Moved to Loader/
2765 * WebView/WebMainResourceLoader.m: Moved to Loader/
2767 2006-08-03 Tim Omernick <timo@apple.com>
2769 Reviewed by Kevin Decker.
2771 <rdar://problem/4667460> Windowless OpenGL plug-ins render incorrectly on PowerPC
2773 * Plugins/WebBaseNetscapePluginView.m:
2774 (-[WebBaseNetscapePluginView _aglOffscreenImageForDrawingInRect:]):
2775 Fixed color component swapping so that it works on both x86 and PPC. See comments.
2777 2006-08-03 Brady Eidson <beidson@apple.com>
2779 Reviewed by Tim Hatcher's rubber stamp
2780 Fixed Intel build break caused by weinig's -W change in r15781
2782 * WebView/WebView.m: wrapped cpu-dependent defs with defined() macro
2784 2006-08-03 Maciej Stachowiak <mjs@apple.com>
2788 - fixed problem that could cause assertion failures in Safari
2790 * Plugins/WebBaseNetscapePluginView.m:
2791 (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]): Don't
2792 allow a plugin to start new loads once its document is no longer the one actively loading.
2794 2006-08-03 Maciej Stachowiak <mjs@apple.com>
2798 - remove use of WebDataSource from WebLoader and subclasses, just have them talk to the
2799 WebFrameLoader instead.
2801 For now this is done by forarding all the calls.
2803 * Misc/WebIconLoader.m:
2804 (-[WebIconLoader didFinishLoading]):
2805 * Plugins/WebNetscapePluginStream.m:
2806 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
2807 (-[WebNetscapePluginStream start]):
2808 (-[WebNetscapePlugInStreamLoader didFinishLoading]):
2809 (-[WebNetscapePlugInStreamLoader didFailWithError:]):
2810 (-[WebNetscapePlugInStreamLoader cancelWithError:]):
2811 * WebCoreSupport/WebFrameBridge.m:
2812 (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
2813 (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
2814 * WebCoreSupport/WebSubresourceLoader.h:
2815 * WebCoreSupport/WebSubresourceLoader.m:
2816 (-[WebSubresourceLoader initWithLoader:frameLoader:]):
2817 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
2818 (+[WebSubresourceLoader startLoadingResource:withMethod:URL:customHeaders:referrer:forFrameLoader:]):
2819 (+[WebSubresourceLoader startLoadingResource:withMethod:URL:customHeaders:postData:referrer:forFrameLoader:]):
2820 (-[WebSubresourceLoader receivedError:]):
2821 (-[WebSubresourceLoader signalFinish]):
2822 (-[WebSubresourceLoader didFailWithError:]):
2823 (-[WebSubresourceLoader cancel]):
2824 * WebKit.xcodeproj/project.pbxproj:
2825 * WebView/WebDataSource.m:
2826 (-[WebDataSource _updateLoading]):
2827 (-[WebDataSource textEncodingName]):
2828 (-[WebDataSource _mainReceivedBytesSoFar:complete:]):
2829 * WebView/WebFrameLoader.h:
2830 * WebView/WebFrameLoader.m:
2831 (-[WebFrameLoader loadIconWithRequest:]):
2832 (-[WebFrameLoader startLoadingMainResourceWithRequest:identifier:]):
2833 (-[WebFrameLoader clearIconLoader]):
2834 (-[WebFrameLoader commitProvisionalLoad]):
2835 (-[WebFrameLoader activeDataSource]):
2836 (-[WebFrameLoader _archivedSubresourceForURL:]):
2837 (-[WebFrameLoader _defersCallbacks]):
2838 (-[WebFrameLoader _identifierForInitialRequest:]):
2839 (-[WebFrameLoader _willSendRequest:forResource:redirectResponse:]):
2840 (-[WebFrameLoader _didReceiveAuthenticationChallenge:forResource:]):
2841 (-[WebFrameLoader _didCancelAuthenticationChallenge:forResource:]):
2842 (-[WebFrameLoader _didReceiveResponse:forResource:]):
2843 (-[WebFrameLoader _didReceiveData:contentLength:forResource:]):
2844 (-[WebFrameLoader _didFinishLoadingForResource:]):
2845 (-[WebFrameLoader _didFailLoadingWithError:forResource:]):
2846 (-[WebFrameLoader _privateBrowsingEnabled]):
2847 (-[WebFrameLoader _addPlugInStreamLoader:]):
2848 (-[WebFrameLoader _removePlugInStreamLoader:]):
2849 (-[WebFrameLoader _finishedLoadingResource]):
2850 (-[WebFrameLoader _receivedError:]):
2851 (-[WebFrameLoader _addSubresourceLoader:]):
2852 (-[WebFrameLoader _removeSubresourceLoader:]):
2853 (-[WebFrameLoader _originalRequest]):
2854 (-[WebFrameLoader webFrame]):
2855 (-[WebFrameLoader _receivedMainResourceError:complete:]):
2856 (-[WebFrameLoader initialRequest]):
2857 (-[WebFrameLoader _receivedData:]):
2858 (-[WebFrameLoader _setRequest:]):
2859 (-[WebFrameLoader _downloadWithLoadingConnection:request:response:proxy:]):
2860 (-[WebFrameLoader _handleFallbackContent]):
2861 (-[WebFrameLoader _isStopping]):
2862 (-[WebFrameLoader _decidePolicyForMIMEType:decisionListener:]):
2863 (-[WebFrameLoader _setupForReplaceByMIMEType:]):
2864 (-[WebFrameLoader _setResponse:]):
2865 (-[WebFrameLoader _mainReceivedError:complete:]):
2866 (-[WebFrameLoader _finishedLoading]):
2867 (-[WebFrameLoader _mainReceivedBytesSoFar:complete:]):
2868 (-[WebFrameLoader _iconLoaderReceivedPageIcon:]):
2869 (-[WebFrameLoader _URL]):
2870 * WebView/WebLoader.h:
2871 * WebView/WebLoader.m:
2872 (-[NSURLProtocol releaseResources]):
2873 (-[NSURLProtocol loadWithRequest:]):
2874 (-[NSURLProtocol setFrameLoader:]):
2875 (-[NSURLProtocol frameLoader]):
2876 (-[NSURLProtocol willSendRequest:redirectResponse:]):
2877 (-[NSURLProtocol didReceiveAuthenticationChallenge:]):
2878 (-[NSURLProtocol didCancelAuthenticationChallenge:]):
2879 (-[NSURLProtocol didReceiveResponse:]):
2880 (-[NSURLProtocol didReceiveData:lengthReceived:]):
2881 (-[NSURLProtocol signalFinish]):
2882 (-[NSURLProtocol didFailWithError:]):
2883 (-[NSURLProtocol willCacheResponse:]):
2884 (-[NSURLProtocol cancelWithError:]):
2885 * WebView/WebMainResourceLoader.h:
2886 * WebView/WebMainResourceLoader.m:
2887 (-[WebMainResourceLoader initWithFrameLoader:]):
2888 (-[WebMainResourceLoader receivedError:]):
2889 (-[WebMainResourceLoader cancelWithError:]):
2890 (-[WebMainResourceLoader _isPostOrRedirectAfterPost:redirectResponse:]):
2891 (-[WebMainResourceLoader addData:]):
2892 (-[WebMainResourceLoader willSendRequest:redirectResponse:]):
2893 (-[WebMainResourceLoader continueAfterContentPolicy:response:]):
2894 (-[WebMainResourceLoader continueAfterContentPolicy:]):
2895 (-[WebMainResourceLoader checkContentPolicyForResponse:]):
2896 (-[WebMainResourceLoader didReceiveResponse:]):
2897 (-[WebMainResourceLoader didReceiveData:lengthReceived:]):
2898 (-[WebMainResourceLoader didFinishLoading]):
2899 (-[WebMainResourceLoader didFailWithError:]):
2900 (-[WebMainResourceLoader loadWithRequestNow:]):
2902 2006-08-03 Sam Weinig <sam.weinig@gmail.com>
2906 - patch for http://bugs.webkit.org/show_bug.cgi?id=10176
2907 Make WebCore compile with -Wundef
2909 * Adds -Wundef flag to Xcode project
2910 * Converts #ifs to #ifdef and #ifndefs where needed.
2912 * Carbon/CarbonUtils.m:
2913 * Carbon/CarbonWindowAdapter.m:
2914 * Carbon/HIViewAdapter.m:
2915 (+[NSView bindHIViewToNSView:nsView:]):
2916 * Carbon/HIWebView.m:
2917 (HIWebViewEventHandler):
2918 * Misc/WebFileDatabase.m:
2919 (UniqueFilePathForKey):
2920 * Misc/WebNSWindowExtras.m:
2921 (swizzleInstanceMethod):
2922 * Misc/WebTypesInternal.h:
2923 * Plugins/WebNetscapeDeprecatedFunctions.c:
2924 * Plugins/WebNetscapeDeprecatedFunctions.h:
2925 * Plugins/WebNetscapePluginPackage.h:
2926 * Plugins/WebNetscapePluginPackage.m:
2927 (-[WebNetscapePluginPackage unloadWithoutShutdown]):
2928 (-[WebNetscapePluginPackage load]):
2929 * WebKit.xcodeproj/project.pbxproj:
2931 2006-08-03 Darin Adler <darin@apple.com>
2933 Reviewed by Eric Seidel.
2937 * WebView/WebFrame.m: (-[WebFramePrivate dealloc]): Release the frame loader.
2939 2006-08-02 Timothy Hatcher <timothy@apple.com>
2941 Rubber stamped by Maciej.
2943 Adding back resultsWithXpathQuery, removed by Darin's earlier change.
2944 This function is called from ObjC, but not used from JavaScript.
2946 * WebInspector/webInspector/inspector.js:
2948 2006-08-02 Timothy Hatcher <timothy@apple.com>
2952 Bug 10200: [Drosera] Deadlock between Drosera and Safari while loading page
2953 http://bugs.webkit.org/show_bug.cgi?id=10200
2955 Prevent reentrancy in our debugger callbacks. This was causing a deadlock in Drosera because
2956 suspendProcessIfPaused was being called during a DO call into Safari.
2958 Preventing reentrancy also prevents scripts that Drosera injects and evaluates from showing
2959 up in rare cases (such as a iframe loading about:blank). I thought this would prevent cases
2960 where you call a function from the console and expect it to break on a breakpoint in them, but
2961 this appears to never have worked even without this change. When that is figured out we can
2962 reconsider a better solution to reentrancy. I have filed that as bug 10214.
2964 I also removed the NSRunLoop runMode:beforeDate: calls since DO handles this for us since
2965 we don't use "onway void" as the return type for the callbacks. Note: using onway void for
2966 the listener callbacks causes bad synchronization issues and obscure crashes.
2968 * DefaultDelegates/WebScriptDebugServer.m:
2969 (-[WebScriptDebugServer webView:didLoadMainResourceForDataSource:]):
2970 (-[WebScriptDebugServer webView:didParseSource:baseLineNumber:fromURL:sourceId:forWebFrame:]):
2971 (-[WebScriptDebugServer webView:failedToParseSource:baseLineNumber:fromURL:withError:forWebFrame:]):
2972 (-[WebScriptDebugServer webView:didEnterCallFrame:sourceId:line:forWebFrame:]):
2973 (-[WebScriptDebugServer webView:willExecuteStatement:sourceId:line:forWebFrame:]):
2974 (-[WebScriptDebugServer webView:willLeaveCallFrame:sourceId:line:forWebFrame:]):
2975 (-[WebScriptDebugServer webView:exceptionWasRaised:sourceId:line:forWebFrame:]):
2976 * DefaultDelegates/WebScriptDebugServerPrivate.h:
2978 2006-08-02 Maciej Stachowiak <mjs@apple.com>
2982 - fix assertion failure on layout tests by stopping plugins from loading at a clearly defined time
2983 - add more assertions for safety
2985 * WebView/WebDataSource.m:
2986 (-[WebDataSourcePrivate dealloc]): Removed obsolete comment.
2987 (-[WebDataSource _updateLoading]): Add assertion ensuring this method is only called
2988 at a time when this data source is the one that might be loading for a frame.
2989 (-[WebDataSource _stopLoading]): Stop loading plugins as a FIXME suggests we should.
2990 * WebView/WebFrameLoader.m:
2991 (-[WebFrameLoader isLoadingPlugIns]): New helper method.
2992 (-[WebFrameLoader isLoading]): Consider plugin loads too - otherwise we won't stop them
2993 at stopLoading time.
2995 2006-08-02 Adam Roben <aroben@apple.com>
2999 - Rename TransferJob to ResourceLoader (this file was forgotten in an
3000 earlier change by Maciej)
3004 2006-08-01 Maciej Stachowiak <mjs@apple.com>
3008 - Change things around so WebFrameLoader tracks the main and provisional data source,
3009 as well as the frame load state, pulling much code out of WebFrame along the way.
3011 The most significant aspects of this change are:
3013 - management of WebDataSources and WebFrameState was moved into WebFrameLoader
3014 - there is now just one WebFrameLoader shared between the primary and provisional data source
3016 * WebKit.xcodeproj/project.pbxproj:
3017 * WebView/WebDataSource.m:
3018 (-[WebDataSourcePrivate dealloc]):
3019 (-[WebDataSource _updateLoading]):
3020 (-[WebDataSource _loadIcon]):
3021 (-[WebDataSource _setPrimaryLoadComplete:]):
3022 (-[WebDataSource _stopLoading]):
3023 (-[WebDataSource _startLoading]):
3024 (-[WebDataSource _addSubresourceLoader:]):
3025 (-[WebDataSource _removeSubresourceLoader:]):
3026 (-[WebDataSource _addPlugInStreamLoader:]):
3027 (-[WebDataSource _removePlugInStreamLoader:]):
3028 (-[WebDataSource _defersCallbacksChanged]):
3029 (-[WebDataSource _stopLoadingWithError:]):
3030 (-[WebDataSource _revertToProvisionalState]):
3031 (-[WebDataSource _setupForReplaceByMIMEType:]):
3032 (-[WebDataSource initWithRequest:]):
3033 (-[WebDataSource data]):
3034 (-[WebDataSource isLoading]):
3035 * WebView/WebFrame.m:
3036 (-[WebFramePrivate init]):
3037 (-[WebFramePrivate dealloc]):
3038 (-[WebFrame _closeOldDataSources]):
3039 (-[WebFrame _detachFromParent]):
3040 (-[WebFrame _makeDocumentView]):
3041 (-[WebFrame _receivedMainResourceError:]):
3042 (-[WebFrame _transitionToCommitted:]):
3043 (+[WebFrame _timeOfLastCompletedLoad]):
3044 (-[WebFrame _checkLoadCompleteForThisFrame]):
3045 (-[WebFrame _loadItem:withLoadType:]):
3046 (-[WebFrame _continueAfterWillSubmitForm:]):
3047 (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
3048 (-[WebFrame _initWithWebFrameView:webView:bridge:]):
3049 (-[WebFrame _frameLoader]):
3050 (-[WebFrame _provisionalLoadStarted]):
3051 (-[WebFrame _prepareForDataSourceReplacement]):
3052 (-[WebFrame _frameLoadCompleted]):
3053 (-[WebFrame provisionalDataSource]):
3054 (-[WebFrame dataSource]):
3055 (-[WebFrame stopLoading]):
3056 * WebView/WebFrameInternal.h:
3057 * WebView/WebFrameLoader.h:
3058 * WebView/WebFrameLoader.m:
3059 (-[WebFrameLoader initWithWebFrame:]):
3060 (-[WebFrameLoader dealloc]):
3061 (-[WebFrameLoader dataSource]):
3062 (-[WebFrameLoader _setDataSource:]):
3063 (-[WebFrameLoader clearDataSource]):
3064 (-[WebFrameLoader provisionalDataSource]):
3065 (-[WebFrameLoader _setProvisionalDataSource:]):
3066 (-[WebFrameLoader _clearProvisionalDataSource]):
3067 (-[WebFrameLoader state]):
3068 (+[WebFrameLoader timeOfLastCompletedLoad]):
3069 (-[WebFrameLoader _setState:]):
3070 (-[WebFrameLoader clearProvisionalLoad]):
3071 (-[WebFrameLoader markLoadComplete]):
3072 (-[WebFrameLoader commitProvisionalLoad]):
3073 (-[WebFrameLoader stopLoading]):
3074 (-[WebFrameLoader startLoading]):
3075 (-[WebFrameLoader startProvisionalLoad:]):
3076 (-[WebFrameLoader setupForReplace]):
3077 * WebView/WebFramePrivate.h:
3079 2006-08-01 Tim Omernick <timo@apple.com>
3081 Reviewed by John Sullivan.
3083 <rdar://problem/4480737> Flash crashes after it replaces itself via a document.write()
3085 I kind of hate to do this, but this is the best way to work around buggy plug-ins like Flash that assume that
3086 NPP_Destroy() cannot be called while the browser is calling one of its other plug-in functions. The classic
3087 situation is a plug-in that replaces itself via an NPN_Invoke() that executes a document.write().
3089 * Plugins/WebBaseNetscapePluginView.h:
3090 * Plugins/WebBaseNetscapePluginView.m:
3091 (-[WebBaseNetscapePluginView sendEvent:]):
3092 Call -willCallPlugInFunction and -didCallPlugInFunction around calls to the NPP_* functions.
3093 (-[WebBaseNetscapePluginView setWindowIfNecessary]):
3095 (-[WebBaseNetscapePluginView start]):
3096 It should not be possible to start a plug-in instance while we are calling into it (one of those chicken/egg
3097 problems). Added a sanity-checking assertion.
3098 (-[WebBaseNetscapePluginView stop]):
3099 If we're already calling a plug-in function, do not call NPP_Destroy(). The plug-in function we are calling
3100 may assume that its instance->pdata, or other memory freed by NPP_Destroy(), is valid and unchanged until said
3101 plugin-function returns.
3102 (-[WebBaseNetscapePluginView pluginScriptableObject]):
3103 Call -willCallPlugInFunction and -didCallPlugInFunction around calls to the NPP_* functions.
3104 (-[WebBaseNetscapePluginView willCallPlugInFunction]):
3105 Increment plug-in function call depth.
3106 (-[WebBaseNetscapePluginView didCallPlugInFunction]):
3107 Decrement plug-in function call depth. Stop if we're supposed to stop.
3108 (-[WebBaseNetscapePluginView evaluateJavaScriptPluginRequest:]):
3109 Call -willCallPlugInFunction and -didCallPlugInFunction around calls to the NPP_* functions.
3110 (-[WebBaseNetscapePluginView webFrame:didFinishLoadWithReason:]):
3112 (-[WebBaseNetscapePluginView _printedPluginBitmap]):
3115 * Plugins/WebBaseNetscapePluginStream.m:
3116 (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:]):
3117 Call -willCallPlugInFunction and -didCallPlugInFunction around calls to the NPP_* functions.
3118 (-[WebBaseNetscapePluginStream _destroyStream]):
3120 (-[WebBaseNetscapePluginStream _deliverData]):
3123 2006-08-01 Maciej Stachowiak <mjs@apple.com>
3125 - fix build after last change
3127 * WebView/WebFrame.m:
3128 (-[WebFrame _checkLoadCompleteForThisFrame]):
3130 2006-08-01 Maciej Stachowiak <mjs@apple.com>
3134 - revert part of my last fix that broke the Safari bookmarks view
3136 * WebView/WebFrame.m:
3137 (-[WebFrame _checkLoadCompleteForThisFrame]): still send layout message for non-HTML views
3139 2006-08-01 Tim Omernick <timo@apple.com>
3143 Fixed an assertion failure I ran into while debugging <rdar://problem/4652683>.
3145 * Plugins/WebNetscapePluginEmbeddedView.m:
3146 (-[WebNetscapePluginEmbeddedView redeliverStream]):
3147 Don't clear the "instance" ivar here. This code was refactored here from the old WebNetscapePluginRepresentation,
3148 which also had an "instance" ivar. It is never appropriate to clear a plug-in view's instance. That is done when
3149 the plug-in is destroyed.
3151 2006-08-01 Maciej Stachowiak <mjs@apple.com>
3155 - some refactoring in preparation for moving more stuff to WebFrameLoader.
3157 * WebView/WebFrame.m:
3158 (-[WebFrame _clearDataSource]):
3159 (-[WebFrame _detachFromParent]):
3160 (-[WebFrame _commitProvisionalLoad]):
3161 (-[WebFrame _transitionToCommitted:]):
3162 (-[WebFrame _clearProvisionalLoad]):
3163 (-[WebFrame _markLoadComplete]):
3164 (-[WebFrame _checkLoadCompleteForThisFrame]):
3165 (-[WebFrame _startProvisionalLoad:]):
3166 (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
3167 (-[WebFrame stopLoading]):
3169 2006-07-31 Maciej Stachowiak <mjs@apple.com>
3171 Reviewed by Tim Hatcher.
3173 - renamed TransferJob to ResourceLoader in WebCore
3176 (WebFrame::loadDataSource):
3177 (WebFrame::receivedRedirect):
3178 (WebFrame::receivedResponse):
3179 (WebFrame::receivedData):
3180 (WebFrame::receivedAllData):
3181 (WebFrame::setStatusText):
3184 2006-07-31 Darin Adler <darin@apple.com>
3188 - omit the margin and padding boxes for display types where they are ignored
3189 - use CSS instead of properties for table spacing and padding as suggested by Tim H.
3191 * WebInspector/webInspector/inspector.css: Added rules for spacing and padding.
3192 Added rules that hide the margin and padding boxes (borders and all but the center cell)
3193 when the hide attribute is present.
3194 * WebInspector/webInspector/inspector.html: Added classes for the rules above.
3195 Removed cellpadding and cellspacing attributes.
3196 * WebInspector/webInspector/inspector.js: Added code to hide/show the margin and
3197 padding boxes based on the display type.
3199 2006-07-31 Duncan Wilcox <duncan@mclink.it>
3203 Fixes <http://bugs.webkit.org/show_bug.cgi?id=10159>
3204 "REGRESSION: delegate returning no menu elements crashes webkit"
3206 No automated test, because there's no way to programmatically open a context menu,
3207 no manual test because there's no way to customize the context menu delegate.
3209 * WebView/WebView.m:
3210 (-[WebView _menuForElement:defaultItems:]): Make sure the context menu returned
3211 some menu items before accessing the first one.
3213 2006-07-31 Timothy Hatcher <timothy@apple.com>
3217 <rdar://problem/4658194> REGRESSION: "Search in Google"
3218 and "Search in Spotlight" fail to work on text selected in a frame
3220 Use selectedFrame to get the frame with the text selection.
3222 * WebView/WebView.m:
3223 (-[WebView _searchWithGoogleFromMenu:]):
3224 (-[WebView _searchWithSpotlightFromMenu:]):
3226 2006-07-31 Darin Adler <darin@apple.com>
3228 Reviewed by Tim Hatcher.
3230 - http://bugs.webkit.org/show_bug.cgi?id=10168
3231 add a first cut at a Metrics pane to the inspector
3233 * WebInspector/webInspector/inspector.css: Add styles for the new metrics pane.
3234 * WebInspector/webInspector/inspector.html: Add the new metrics pane, starting with
3235 the table to show the box model.
3236 * WebInspector/webInspector/inspector.js: Add the new metrics pane. Add back some
3237 "title" attributes so we have more tooltips. Removed the optional parameter to
3240 2006-07-31 Anders Carlsson <acarlsson@apple.com>
3244 * Plugins/WebPluginDatabase.m:
3245 (-[WebPluginDatabase refresh]):
3246 Create a mutable set instead of a mutable array.
3248 2006-07-30 Darin Adler <darin@apple.com>
3250 Reviewed by Tim Hatcher.
3252 * WebInspector/webInspector/inspector.js: Fix bug where a null property value
3253 leads to an empty style pane.
3255 2006-07-30 Darin Adler <darin@apple.com>
3257 Reviewed by Tim Hatcher.
3259 - http://bugs.webkit.org/show_bug.cgi?id=10163
3260 some improvements for the inspector
3262 * WebInspector/WebInspector.m:
3263 (+[WebInspector sharedWebInspector:]): Fixed bug that could cause the inspector
3264 to be garbage collected if used in an application with GC enabled.
3265 (-[WebInspector dealloc]): Removed a call to a non-existent close method.
3266 (-[WebInspector window]): Added a custom WebPreferences object and called
3267 setPrivateBrowsingEnabled:YES so the inspector won't appear in the history menu.
3268 Also call setProhibitsMainFrameScrolling:YES to try to get rid of trouble where
3269 the inspector scrolls when dragging.
3271 * WebInspector/webInspector/inspector.css: Added style for the new color swatch,
3272 and JavaScript properties. More of the style should be shared between the panes,
3273 but this should be OK for now.
3275 * WebInspector/webInspector/inspector.html: Added a first cut at a JavaScript
3276 properties pane. Needs work, but better than nothing.
3278 * WebInspector/webInspector/inspector.js: Lots of improvements:
3279 - Omit "typical" property values from computed style display, making it much shorter.
3280 - Use the words "black", "white", and "transparent" when appropriate for color values.
3281 - Refactored the loaded() function to get rid of repetitive scrollbar setup.
3282 - Added a new scrollarea for the JavaScript properties pane.
3283 - Simplified refreshScrollbars() -- we now refresh all scrollbars every time, which does no harm.
3284 - Removed unused resultsWithXpathQuery().
3285 - Use [] instead of "new Array()" and {} instead of "new Object()".
3286 - Removed unused xpathForNode().
3287 - Changed style pane to display the style for a text node's parent instead of saying
3288 it can't display the style for text.
3289 - Fixed regression I caused a while back by checking the length of a computed style
3290 and not trying to display anything if its length is 0. Before this change and the
3291 corresponding change in WebCore, we'd see a complete list of all styles with the
3292 empty string as the value for each one.
3293 - Changed the name of the computedStyle flag on the style rules array to isComputedStyle
3294 to make it easier to understand it's a boolean.
3295 - Fixed an error in the code that does !important scanning where it was trying to
3296 do a special case for computed style, but was checking the computed style flag on
3298 - Added populateStyleListItem() function to factor out things in common between the
3299 items in the top level list and the expanded tree for shorthand properties.
3300 - Added code to make a color swatch next to the textual representation for any
3301 property that contains a color.
3302 - Implemented a first cut at a simple JavaScript properties pane.
3304 2006-07-29 Darin Adler <darin@apple.com>
3306 - Removed tabs from these source files that still had them.
3307 We don't use them; that way source files look fine in editors
3308 that have tabs set to 8 spaces or to 4 spaces.
3309 - Removed allow-tabs Subversion property from the files too.
3311 * DefaultDelegates/WebDefaultPolicyDelegate.m:
3312 * History/WebHistory.m:
3313 * Misc/WebDownload.m:
3314 * Misc/WebIconDatabase.m:
3315 * Misc/WebKitErrors.m:
3316 * Misc/WebKitLogging.m:
3317 * Misc/WebNSDataExtras.m:
3318 * Misc/WebNSFileManagerExtras.m:
3319 * Panels/WebPanelAuthenticationHandler.m:
3320 * Plugins/WebBaseNetscapePluginView.m:
3321 * Plugins/npfunctions.h:
3322 * WebCoreSupport/WebSubresourceLoader.m:
3323 * WebView/WebMainResourceLoader.m:
3324 * WebView/WebView.h:
3325 * WebView/WebView.m:
3327 2006-07-29 Sam Weinig <sam.weinig@gmail.com>
3331 - patch for http://bugs.webkit.org/show_bug.cgi?id=10080
3332 Adopt pedantic changes from the Unity project to improve
3333 cross-compiler compatibility
3336 * Adding missing newline to the end of the file.
3337 * Turning on gcc warning for missing newline at the end of a source file
3338 (GCC_WARN_ABOUT_MISSING_NEWLINE in Xcode, -Wnewline in gcc).
3340 * WebKit.xcodeproj/project.pbxproj:
3341 * WebView/WebResourcePrivate.h:
3343 2006-07-29 Mitz Pettel <opendarwin.org@mitzpettel.com>
3345 Reviewed by John Sullivan.
3347 - fix http://bugs.webkit.org/show_bug.cgi?id=9984
3348 ASSERTION FAILURE: _private->mouseDownEvent != nil
3349 (WebKit/WebView/WebHTMLView.m:4863 -[WebHTMLView(WebInternal) _delegateDragSourceActionMask])
3351 * WebView/WebHTMLView.m:
3352 (-[WebHTMLView _setMouseDownEvent:]): Moved into the WebHTMLViewFileInternal category and changed
3354 (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
3355 Copy the hit HTMLView's mouse down event to the top HTMLView.
3356 (-[WebHTMLView acceptsFirstMouse:]): Added a call to _setMouseDownEvent:nil before returning.
3357 (-[WebHTMLView shouldDelayWindowOrderingForEvent:]): Added a call to _setMouseDownEvent:nil
3359 (-[WebHTMLView mouseUp:]): Added a call to _setMouseDownEvent:nil to clear the event set in
3360 mouseDown: (and used during dragging).
3361 (-[WebHTMLView _delegateDragSourceActionMask]): Copy the hit HTMLView's mouse down event to
3364 2006-07-28 Timothy Hatcher <timothy@apple.com>
3368 <rdar://problem/4657473> REGRESSION: Spell check not available from contextual menu in Mail
3370 The context menu code should be checking isContentEditable
3371 on DOMNode not just DOMElement. This is needed because DOMText
3372 will be the node class of any text that is clicked.
3374 * DefaultDelegates/WebDefaultContextMenuDelegate.m:
3375 (-[WebDefaultUIDelegate webView:contextMenuItemsForElement:defaultMenuItems:]):
3377 2006-07-25 Geoffrey Garen <ggaren@apple.com>
3379 Reviewed by Maciej, inspired by John.
3381 - Fixed <rdar://problem/4651931> 1% REGRESSION on iBench HTML due to
3382 repeated requests for non-existent favicon
3384 An optimization to avoid serializing favicon data for missing icons had stomped an
3385 optimization to avoid GETing a missing favicon more than once. The solution
3386 is a happy marriage of optimizations, ensuring that we *retain* the missing
3387 favicon's "i am missing" data without posting a notification or saving it to disk.
3389 * Misc/WebIconDatabase.m:
3390 (-[WebIconDatabase _setIconURL:forURL:]):
3392 2006-07-25 David Harrison <harrison@apple.com>
3394 Reviewed by timo and Darin.
3396 <rdar://problem/4618584> "Paste and Match Style" is not working in Mail (add SPI)
3398 * WebKit.xcodeproj/project.pbxproj:
3399 * WebView/WebView.m:
3400 (-[WebView replaceSelectionWithNode:]):
3401 (-[WebView _replaceSelectionWithNode:matchStyle:]):
3402 * WebView/WebViewPrivate.h:
3403 (-[WebView _replaceSelectionWithNode:matchStyle::]):
3404 New SPI that is same as replaceSelectionWithNode: with added parameter whether to match existing style.
3406 2006-07-24 Darin Adler <darin@apple.com>
3408 Reviewed by Adele and Justin.
3410 - update for change to require context when creating fragments from text
3411 (needed to handle whitespace properly)
3413 * WebView/WebHTMLView.m:
3414 (-[WebHTMLView _documentFragmentFromPasteboard:inContext:allowPlainText:chosePlainText:]):
3415 Added context parameter, pass through to bridge.
3416 (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]): Pass selection range as context
3417 when calling above method.
3418 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): Pass drag caret as context when
3419 calling above method.
3421 2006-07-24 Maciej Stachowiak <mjs@apple.com>
3425 - fix <rdar://problem/4609195> Help Viewer loads empty window (not getting didFailLoadingWithError: callback)
3426 (without re-introducing http://bugs.webkit.org/show_bug.cgi?id=10062 )
3428 * WebView/WebLoader.h:
3429 * WebView/WebMainResourceLoader.m:
3430 (-[WebMainResourceLoader receivedError:]): Copy in some code from the base class to do it in the proper
3431 order, surrounding the call to [ds _receivedMainResourceError:error complete:YES].
3433 2006-07-24 Anders Carlsson <acarlsson@apple.com>
3437 * Misc/WebIconDatabase.m:
3438 (-[WebIconDatabase removeAllIcons]):
3439 Make an array of the keys and iterate through it to avoid modifying the
3440 dictionary while enumerating it.
3442 2006-07-24 Timothy Hatcher <timothy@apple.com>
3444 Reviewed by John and Darin.
3446 <rdar://problem/4634290> Cannot selectively install a custom
3447 scroller that differs from the default Aqua frame size.
3449 Adds two new private methods to WebFrameView that allows
3450 an application to set a custom scroll view class. This is needed
3451 if the application wants to install a custom scroller that is wider
3452 than the typical scroller, because NSScrollView does the content
3453 rect calculations in a class method (ignoring custom scrollers.)
3454 The _setScrollViewClass method requires the class to be a subclass
3455 of WebDynamicScrollBarView, or nil can be passed to reset to the default class.
3456 A new scroll view of the specified class will then replace the previous
3457 one without the need to reload content of the frame.
3459 * WebView/WebFrameView.m:
3460 (-[WebFrameView _customScrollViewClass]):
3461 (-[WebFrameView _setCustomScrollViewClass:]):
3462 * WebView/WebFrameViewPrivate.h:
3464 2006-07-24 Alexey Proskuryakov <ap@nypop.com>
3468 Fix http://bugs.webkit.org/show_bug.cgi?id=10009
3469 REGRESSION: Schubert-IT PDF Plug-in not working for full page (works in frames)
3471 * WebView/WebView.m:
3472 (+[WebView _viewClass:andRepresentationClass:forMIMEType:]): If we've got a type supported by WebPDFView,
3473 make sure to initialize the plugin database, in case a plugin wants to handle it.
3475 2006-07-23 Mark Rowe <opendarwin.org@bdash.net.nz>
3479 Bug 9686: [Drosera] Need the ability to break into Drosera on Javascript exceptions
3480 http://bugs.webkit.org/show_bug.cgi?id=9686
3482 WebKit portion of the fix.
3484 * DefaultDelegates/WebDefaultScriptDebugDelegate.m:
3485 (-[WebDefaultScriptDebugDelegate webView:exceptionWasRaised:sourceId:line:forWebFrame:]):
3486 * DefaultDelegates/WebScriptDebugServer.h:
3487 * DefaultDelegates/WebScriptDebugServer.m:
3488 (-[WebScriptDebugServer webView:exceptionWasRaised:sourceId:line:forWebFrame:]): Notify
3489 listeners that an exception has been raised.
3490 * WebView/WebScriptDebugDelegate.h:
3491 * WebView/WebScriptDebugDelegate.m:
3492 (-[WebScriptCallFrame exceptionRaised:sourceId:line:]): Dispatch through to delegate and
3493 WebScriptDebugServer.
3495 2006-07-23 Adele Peterson <adele@apple.com>
3499 - Fix for <rdar://problem/4646276> CrashTracer: 7 crashes in Safari at com.apple.WebCore: WebCore::RenderTableSection::paint + 155
3501 * WebView/WebHTMLView.m: (-[WebHTMLView _web_layoutIfNeededRecursive:testDirtyRect:]):
3502 needsDisplay was returning NO even though the view has a dirty rect (see <rdar://problem/4647062>). Since we know about
3503 the dirty rect, we don't actually need to check needsDisplay.
3505 2006-07-22 Timothy Hatcher <timothy@apple.com>
3509 Bug 10062: REGRESSION: dom/xhtml/level2/html/HTMLIFrameElement11.xhtml asserts/crashes
3510 http://bugs.webkit.org/show_bug.cgi?id=10062
3512 2006-07-21 Timothy Hatcher <timothy@apple.com>
3516 <rdar://problem/4609195> Help Viewer loads empty window
3517 (not getting didFailLoadingWithError: callback)
3519 Call super's didFailWithError before _receivedMainResourceError
3520 because _receivedMainResourceError will cause the datasource's
3521 frame to be set to nil before the didFailLoadingWithError delegate
3522 callback is sent. (This order is needed now that WebDataSource does
3523 not hold on to the WebView; it uses the WebFrame to get to the WebView.
3524 If the WebFrame is nil we can't get to the WebView's resource load delegate.)
3526 * WebView/WebMainResourceLoader.m:
3527 (-[WebMainResourceLoader receivedError:]):
3530 2006-07-22 Timothy Hatcher <timothy@apple.com>
3534 <rdar://problem/4646318> REGRESSION: Ctrl-clicking on a selection containing a word doesn't display a complete contextual menu
3536 Show the editing context menu if the WebView is editible.
3537 The original change only checked if the DOM element was editable,
3538 and isContentEditable returns NO if entire WebView is editable.
3540 * DefaultDelegates/WebDefaultContextMenuDelegate.m:
3541 (-[WebDefaultUIDelegate webView:contextMenuItemsForElement:defaultMenuItems:]):
3543 2006-07-21 Timothy Hatcher <timothy@apple.com>
3547 <rdar://problem/4609195> Help Viewer loads empty window
3548 (not getting didFailLoadingWithError: callback)
3550 Call super's didFailWithError before _receivedMainResourceError
3551 because _receivedMainResourceError will cause the datasource's
3552 frame to be set to nil before the didFailLoadingWithError delegate
3553 callback is sent. (This order is needed now that WebDataSource does
3554 not hold on to the WebView; it uses the WebFrame to get to the WebView.
3555 If the WebFrame is nil we can't get to the WebView's resource load delegate.)
3557 * WebView/WebMainResourceLoader.m:
3558 (-[WebMainResourceLoader receivedError:]):
3560 === Safari-521.20 ===
3562 2006-07-21 Timothy Hatcher <timothy@apple.com>
3566 <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)
3568 Do not use _isEditable call since that only checks if the current
3569 selection or frame is editible. We now check if the currently clicked element
3570 is a content editible area, a textarea, an isindex or an input element that
3571 return YES to _isTextField.
3573 * DefaultDelegates/WebDefaultContextMenuDelegate.m:
3574 (-[WebDefaultUIDelegate webView:contextMenuItemsForElement:defaultMenuItems:]):
3576 2006-07-20 John Sullivan <sullivan@apple.com>
3580 - WebKit part of fix for:
3581 <rdar://problem/4557386> REGRESSION (419.3-521.19): repro Safari world leak involving
3582 closing tabs after clicking in a web page
3584 * WebCoreSupport/WebFrameBridge.m:
3585 (-[WebFrameBridge textViewWasFirstResponderAtMouseDownTime:]):
3586 renamed to be more specific (formerly wasFirstResponderAtMouseDownTime:)
3588 * WebView/WebHTMLViewInternal.h:
3589 * WebView/WebHTMLView.m:
3590 (-[WebTextCompleteController dealloc]):
3591 updated for name change
3592 (-[NSArray _setMouseDownEvent:]):
3593 Now only retains the first responder if it's a textView, since that's the only case that the only client
3594 actually cares about. This avoids a reference cycle caused by retaining self. This is the only substantive
3595 part of the patch; all the rest is just renaming for clarity, and comments.
3596 (-[NSArray mouseDown:]):
3597 updated for name change
3598 (-[WebHTMLView _textViewWasFirstResponderAtMouseDownTime:]):
3599 renamed to be more specific (formerly _wasFirstResponderAtMouseDownTime:)
3601 2006-07-19 Tim Omernick <timo@apple.com>
3605 <rdar://problem/4523432> safari crashed right after disabling "block pop up windows" (or other WebPreferences changes)
3607 * Plugins/WebBaseNetscapePluginView.m:
3608 (-[WebBaseNetscapePluginView viewWillMoveToSuperview:]):
3609 Stop the plug-in when it is removed from its superview. It is not sufficient to do this in -viewWillMoveToWindow:nil, because
3610 the WebView might still has a hostWindow at that point, which prevents the plug-in from being destroyed.
3611 There is no need to start the plug-in when moving into a superview. -viewDidMoveToWindow takes care of that.
3613 === Safari-521.19 ===
3615 2006-07-17 Tim Omernick <timo@apple.com>
3619 <rdar://problem/4612079> need a way to prevent pages from scrolling to reveal elements that are focused
3622 * WebView/WebViewPrivate.h:
3623 * WebView/WebView.m:
3624 (-[WebView setProhibitsMainFrameScrolling:]):
3625 New method. Prohibits scrolling in the WebView's main frame. Used to "lock" a WebView to a specific
3628 2006-07-17 Timothy Hatcher <timothy@apple.com>
3632 <rdar://problem/4635311> REGRESSION: WebKit should call windowScriptObjectAvailable before attaching the script debugger
3634 * WebCoreSupport/WebFrameBridge.m:
3635 (-[WebFrameBridge windowObjectCleared]):
3637 2006-07-17 Timothy Hatcher <timothy@apple.com>
3641 <rdar://problem/4634874> WebScriptObject and WebUndefined are no longer defined by WebKit
3643 Copy WebScriptObject.h from WebCore's private headers, not JavaScriptCore.
3645 * WebKit.xcodeproj/project.pbxproj:
3647 2006-07-17 John Sullivan <sullivan@apple.com>
3649 Reviewed by Tim Omernick.
3651 - fixed <rdar://problem/4604366> Orange Find highlight displays text in wrong size on PDF pages
3652 if they're not at "actual size"
3654 To match WebHTMLView, I made the methods that return attributed strings take the view's scale
3655 factor into account.
3657 * WebView/WebPDFView.m:
3658 (-[WebPDFView _scaledAttributedString:]):
3659 new helper method, takes an attributed string and returns one that's scaled by the view's
3660 current scale factor
3661 (-[WebPDFView attributedString]):
3662 pass result through _scaledAttributedString:
3663 (-[WebPDFView selectedAttributedString]):
3666 2006-07-17 Justin Garcia <justin.garcia@apple.com>
3670 Rolled the first fix for:
3671 <http://bugs.webkit.org/show_bug.cgi?id=9642>
3672 GMail Editor: Operations that use drop down menus blow away the selection
3673 back in and removed the call to _clearSelectionInOtherFrames from
3674 -[WebHTMLView becomeFirstResponder] to fix the bug.
3676 * WebView/WebHTMLView.m:
3677 (-[NSArray maintainsInactiveSelection]):
3678 (-[NSArray becomeFirstResponder]):
3679 * WebView/WebView.m:
3680 (-[WebView maintainsInactiveSelection]):
3682 2006-07-15 Darin Adler <darin@apple.com>
3684 Reviewed by John Sullivan.
3686 - fix http://bugs.webkit.org/show_bug.cgi?id=9928
3687 REGRESSION: Text Encoding menu inoperative (after gcc protocol build fix)
3689 * WebView/WebHTMLView.m:
3690 (-[WebHTMLView _documentRange]): Moved into WebHTMLViewFileInternal category.
3691 (-[WebHTMLView selectionRect]): Moved into WebDocumentPrivateProtocols category.
3692 (-[WebHTMLView selectionView]): Ditto.
3693 (-[WebHTMLView selectionImageForcingWhiteText:]): Ditto.
3694 (-[WebHTMLView selectionImageRect]): Ditto.
3695 (-[WebHTMLView pasteboardTypesForSelection]): Ditto.
3696 (-[WebHTMLView selectAll]): Ditto.
3697 (-[WebHTMLView deselectAll]): Ditto.
3698 (-[WebHTMLView string]): Ditto.
3699 (-[WebHTMLView _attributeStringFromDOMRange:]): Ditto.
3700 (-[WebHTMLView attributedString]): Ditto.
3701 (-[WebHTMLView selectedString]): Ditto.
3702 (-[WebHTMLView selectedAttributedString]): Ditto.
3703 (-[WebHTMLView supportsTextEncoding]): Ditto.
3704 (-[WebHTMLView _canProcessDragWithDraggingInfo:]): Moved into WebDocumentInternalProtocols.
3705 (-[WebHTMLView _isMoveDrag]): Ditto.
3706 (-[WebHTMLView _isNSColorDrag:]): Ditto.
3707 (-[WebHTMLView draggingUpdatedWithDraggingInfo:actionMask:]): Ditto.
3708 (-[WebHTMLView draggingCancelledWithDraggingInfo:]): Ditto.
3709 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): Ditto.
3710 (-[WebHTMLView elementAtPoint:]): Ditto.
3711 (-[WebHTMLView elementAtPoint:allowShadowContent:]): Ditto.
3713 * WebKit.xcodeproj/project.pbxproj: Let Xcode 2.3 do its thing.
3715 === Safari-521.17 ===
3717 2006-07-14 Timothy Hatcher <timothy@apple.com>
3719 Rolling out this fix from r15358 since it isn't resolved.
3721 2006-07-11 Justin Garcia <justin.garcia@apple.com>
3723 Reviewed by levi & thatcher
3725 <http://bugs.webkit.org/show_bug.cgi?id=9642>
3726 GMail Editor: Operations that use drop down menus blow away the selection
3728 * WebView/WebHTMLView.m:
3729 (-[WebHTMLView maintainsInactiveSelection]): Maintain an inactive selection
3730 when resigning as first responder if the selection is editable
3731 or if the WebView tells us to.
3732 * WebView/WebView.m:
3733 (-[WebView maintainsInactiveSelection]): Just because a WebView is
3734 editable doesn't mean selections inside subframes will be. Return
3737 2006-07-14 Timothy Hatcher <timothy@apple.com>
3739 <rdar://problem/4623957> SWB: gcc-5412 (new?) objc warning causes WebCore project failure
3741 Build fix with the new GCC. Removes forward declarations of protocols.
3743 * Misc/WebSearchableTextView.h:
3744 * WebCoreSupport/WebSubresourceLoader.h:
3745 * WebKit.xcodeproj/project.pbxproj:
3746 * WebView/WebDocumentInternal.h:
3747 * WebView/WebDocumentPrivate.h:
3748 * WebView/WebHTMLView.h:
3749 * WebView/WebPDFView.h:
3750 * WebView/WebScriptDebugDelegatePrivate.h:
3752 2006-06-28 Darin Adler <darin@apple.com>
3756 - fix http://bugs.webkit.org/show_bug.cgi?id=9625
3757 <rdar://problem/4604703>
3758 REGRESSION: Focus not removed from password field after ctrl-click in text field
3760 * WebView/WebHTMLView.m: (-[WebHTMLView menuForEvent:]): Set handlingMouseDownEvent to
3761 YES while calling sendContextMenuEvent: on the bridge.
3763 2006-07-14 Timothy Hatcher <timothy@apple.com>
3767 Moved JavaScriptCore to be a public framework.
3769 * WebKit.xcodeproj/project.pbxproj:
3771 2006-07-13 Mitz Pettel <opendarwin.org@mitzpettel.com>
3775 - fix http://bugs.webkit.org/show_bug.cgi?id=9795
3776 REGRESSION: Crash in [WebHTMLView(WebPrivate)
3777 _updateMouseoverWithEvent:]
3778 and http://bugs.webkit.org/show_bug.cgi?id=9850
3779 REGRESSION: Assertion failure (SHOULD NEVER BE REACHED) in -
3780 [WebHTMLView(WebPrivate) removeTrackingRect:]
3782 * WebView/WebHTMLView.m:
3783 (-[WebHTMLView _updateMouseoverWithEvent:]): Return immediately if
3784 the view has already been closed.
3786 2006-07-13 David Harrison <harrison@apple.com>
3788 Reviewed by Justin and Levi.
3790 <rdar://problem/4620743> REGRESSION: Option-Delete doesn't delete words during typing
3793 editing/deleting/delete-by-word-001.html
3794 editing/deleting/delete-by-word-002.html
3796 * WebView/WebHTMLView.m:
3797 (-[WebHTMLView _deleteRange:killRing:prepend:smartDeleteOK:deletionAction:granularity:]):
3799 2006-07-13 Timothy Hatcher <timothy@apple.com>
3801 Rolling out this earlier change (r15378) now that it is fixed on AGL's end.
3802 Fixes <rdar://problem/4624865> Restore 64-bit OpenGL plug-in support once AGL is 64-bit
3804 <rdar://problem/4624858> AGL isn't 64-bit yet; temporarily remove it from WebKit 64-bit build
3806 * Plugins/WebBaseNetscapePluginView.h:
3807 * Plugins/WebBaseNetscapePluginView.m:
3809 2006-07-13 Timothy Hatcher <timothy@apple.com>
3813 <rdar://problem/4616920> REGRESSION: tabbing in mail moves focus
3814 to next control instead of inserting a tab space.
3816 Change editible WebView's tabKeyCyclesThroughElements to NO only
3817 if the setTabKeyCyclesThroughElements SPI wasn't called.
3819 * WebView/WebView.m:
3820 (-[WebView setEditable:]):
3822 2006-07-12 Anders Carlsson <acarlsson@apple.com>
3826 http://bugs.webkit.org/show_bug.cgi?id=9624
3827 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
3829 * DefaultDelegates/WebDefaultContextMenuDelegate.m:
3830 (-[WebDefaultUIDelegate editingContextMenuItemsForElement:defaultMenuItems:]):
3831 Don't create Dictionary, Spotlight or Google lookup items if there's no selection.
3833 2006-07-12 Mark Rowe <opendarwin.org@bdash.net.nz>
3835 Reviewed by Timothy.
3837 http://bugs.webkit.org/show_bug.cgi?id=9868
3838 Applications shown in Drosera's "Attach" window remain after exit
3840 * DefaultDelegates/WebScriptDebugServer.m:
3841 (-[WebScriptDebugServer init]): Register for NSApplicationWillTerminateNotification so we will
3842 know when the application is being exited.
3843 (-[WebScriptDebugServer dealloc]): Unregister notification before we are deallocated.
3844 (-[WebScriptDebugServer applicationTerminating:]): Inform anyone listening that we are going away.
3846 2006-07-12 Tim Omernick <timo@apple.com>
3848 Reviewed by Tim Hatcher.
3850 <rdar://problem/4624858> AGL isn't 64-bit yet; temporarily remove it from WebKit 64-bit build
3852 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
3855 * Plugins/WebBaseNetscapePluginView.h:
3856 * Plugins/WebBaseNetscapePluginView.m:
3858 2006-07-11 John Sullivan <sullivan@apple.com>
3860 Reviewed by Kevin and Tim O
3862 - added support for creating a selection image with white text
3864 * WebView/WebDocumentPrivate.h:
3865 added -selectionImageForcingWhiteText: and -selectionImageRect to the private
3866 <WebDocumentSelection> protocol
3868 * Misc/WebSearchableTextView.m:
3869 (-[NSString selectionImageForcingWhiteText:]):
3870 added stub for this new method to this obsolete class to satisfy the compiler
3871 (-[NSString selectionImageRect]):
3874 * WebView/WebHTMLView.m:
3875 (-[WebHTMLView _selectionDraggingImage]):
3876 now calls -selectionImageForcingWhiteText:NO instead of just -selectionImage
3877 (-[WebHTMLView _selectionDraggingRect]):
3878 now calls selectionImageRect, to which the implementation moved
3879 (-[WebHTMLView selectionImageForcingWhiteText:]):
3880 implemented this new method by calling through to new bridge method selectionImageForcingWhiteText:
3881 (-[WebHTMLView selectionImageRect]):
3882 implemented this new method by using existing _selectionDraggingRect implementation
3884 * WebView/WebPDFView.m:
3885 (-[WebPDFView selectionImageForcingWhiteText:]):
3886 implemented by using code that was formerly in Safari
3887 (-[WebPDFView selectionImageRect]):
3888 implemented by returning selectionRect
3890 2006-07-11 Tim Omernick <timo@apple.com>
3894 <http://bugs.webkit.org/show_bug.cgi?id=9843>:
3895 Give Netscape plug-ins access to their own DOM element
3897 * Plugins/WebBaseNetscapePluginView.h:
3898 * Plugins/WebBaseNetscapePluginView.m:
3899 (-[WebBaseNetscapePluginView dealloc]):
3900 Release DOM element.
3901 (-[WebBaseNetscapePluginView getVariable:value:]):
3902 Return NPObject for plugin DOM element.
3904 * Plugins/WebNetscapePluginEmbeddedView.h:
3905 * Plugins/WebNetscapePluginEmbeddedView.m:
3906 (-[WebNetscapePluginEmbeddedView initWithFrame:plugin:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:DOMElement:]):
3907 Now takes a DOMElement, in much the same way that WebKit plug-in views take a DOMElement.
3909 * WebCoreSupport/WebFrameBridge.m:
3910 (-[WebFrameBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:DOMElement:loadManually:]):
3911 Pass DOMElement to Netscape plug-ins.
3912 (-[WebFrameBridge viewForJavaAppletWithFrame:attributeNames:attributeValues:baseURL:DOMElement:]):
3915 2006-07-11 Justin Garcia <justin.garcia@apple.com>
3917 Reviewed by levi & thatcher
3919 <http://bugs.webkit.org/show_bug.cgi?id=9642>
3920 GMail Editor: Operations that use drop down menus blow away the selection
3922 * WebView/WebHTMLView.m:
3923 (-[WebHTMLView maintainsInactiveSelection]): Maintain an inactive selection
3924 when resigning as first responder if the selection is editable
3925 or if the WebView tells us to.
3926 * WebView/WebView.m:
3927 (-[WebView maintainsInactiveSelection]): Just because a WebView is
3928 editable doesn't mean selections inside subframes will be. Return
3931 2006-07-11 Tim Omernick <timo@apple.com>
3933 Reviewed by Tim Hatcher.
3935 <rdar://problem/4622748> WebKit now uses deprecated AGL functions
3937 * Plugins/WebBaseNetscapePluginView.m:
3938 (-[WebBaseNetscapePluginView _createWindowedAGLContext]):
3939 aglSetDrawable() is deprecated in AGL 3.0. Use aglSetWindowRef() instead.
3940 (-[WebBaseNetscapePluginView _createWindowlessAGLContext]):
3941 aglSetOffScreen() is deprecated in AGL 3.0. Use CGLSetOffScreen(), which does the same thing.
3943 2006-07-11 Alexey Proskuryakov <ap@nypop.com>
3947 - http://bugs.webkit.org/show_bug.cgi?id=7808
3948 Assertion failure in -[WebBaseNetscapePluginStream dealloc] when requesting an invalid URL
3950 * Plugins/WebNetscapePluginStream.m:
3951 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
3952 Remove the early return when requesting an invalid (unsupported) URL.
3954 === Safari-521.16 ===
3956 2006-07-10 Mitz Pettel <opendarwin.org@mitzpettel.com>
3958 Reviewed by John Sullivan.
3960 - fix <rdar://problem/4621541>, aka <http://bugs.webkit.org/show_bug.cgi?id=9838>
3961 REGRESSION (r14968-r14977): View Source doesn't work for pages from the back/forward cache
3963 * WebView/WebDataSource.m:
3964 (-[WebDataSource _setPrimaryLoadComplete:]): Set our data only if the frame loader is
3965 has just loaded it (when coming from the back/forward cache, it hasn't).
3967 2006-07-10 Brady Eidson <beidson@apple.com>
3971 Resolved the console error messages people got from the new DB even if they didn't have it enabled
3973 * Misc/WebIconDatabase.m:
3974 (-[WebIconDatabase init]):
3975 Disabled initializing the IconDatabaseBridge if user is living on the old DB
3977 2006-07-10 Darin Adler <darin@apple.com>
3979 - try to fix Windows build
3981 * COM/WebFrame.h: Qualify DeprecatedString and KURL with WebCore:: prefixes.
3983 2006-07-09 Darin Adler <darin@apple.com>
3985 - try to fix Windows build
3987 * COM/WebFrame.cpp: Rename QChar to DeprecatedChar.
3989 2006-07-09 Darin Adler <darin@apple.com>
3991 - fix newlines to be consistent for all files in the COM directory
3992 (many had mixed style) and set the EOL style to "native" on them.
3994 * COM/*: Set properties and changed files.
3996 2006-07-09 Tim Omernick <timo@apple.com>
4000 <rdar://problem/4404652> Netscape plug-in mouse events broken in HiDPI
4002 Multiply global mouse coordinates by the window scale factor so that plug-ins can use GlobalToLocal() in HiDPI.
4003 This fixes many bugs involving plug-in mouse event handling in HiDPI. Most notably, the Flash player will now
4004 correctly respond to clicks.
4006 * Plugins/WebBaseNetscapePluginView.m:
4007 (+[WebBaseNetscapePluginView getCarbonEvent:]):
4008 (-[WebBaseNetscapePluginView getCarbonEvent:withEvent:]):
4010 2006-07-09 Darin Adler <darin@apple.com>
4012 Reviewed by Tim Hatcher.
4014 - fix assertion firing in plug-in layout tests
4016 * Plugins/WebBaseNetscapePluginView.m:
4017 (-[WebBaseNetscapePluginView restartNullEvents]):
4018 Don't start null events if the plug-in is not in the
4019 started state. This happens when the plug-in moves within
4020 its view hierarchy after it has been stopped.
4022 2006-07-09 Timothy Hatcher <timothy@apple.com>
4026 Bug 9820: Move new DOM API that has been through API review to public headers
4027 http://bugs.webkit.org/show_bug.cgi?id=9820
4029 * Misc/WebElementDictionary.m: include DOMExtensions.h
4030 * Misc/WebNSViewExtras.m: include DOMExtensions.h
4031 * WebKit.xcodeproj/project.pbxproj: make DOMXPath.h public
4033 2006-07-09 Timothy Hatcher <timothy@apple.com>
4037 Bug 9818: move new UIDelegate API that has been through API review to public headers
4038 http://bugs.webkit.org/show_bug.cgi?id=9818
4040 <rdar://problem/4387541> API: Remove webView:setContentRect: & webViewContentRect: delegate methods?
4041 The fix for 4310363 removed the only use of webViewContentRect: in our code. webView:setContentRect:
4042 was never used to begin with. There's no harm in leaving these around in the API, but they'll cruft it up.
4044 Also removes the never used webViewPrint: SPI that was replaced by webView:printFrameView:.
4046 * DefaultDelegates/WebDefaultUIDelegate.m:
4047 * WebCoreSupport/WebFrameBridge.m:
4048 (-[WebFrameBridge print]):
4049 * WebView/WebFrameView.h:
4050 * WebView/WebFrameView.m:
4051 * WebView/WebFrameViewPrivate.h:
4052 * WebView/WebUIDelegate.h:
4053 * WebView/WebUIDelegatePrivate.h:
4055 2006-07-09 Timothy Hatcher <timothy@apple.com>
4059 Bug 9814: Move new WebView API that has been through API review to public headers
4060 http://bugs.webkit.org/show_bug.cgi?id=9814
4062 * WebView/WebView.h:
4063 * WebView/WebView.m:
4065 (-[WebView setShouldCloseWithWindow:]):
4066 (-[WebView shouldCloseWithWindow]):
4067 (-[WebView selectedFrame]):
4068 (-[WebView setMainFrameURL:]):
4069 (-[WebView mainFrameURL]):
4070 (-[WebView isLoading]):
4071 (-[WebView mainFrameTitle]):
4072 (-[WebView mainFrameIcon]):
4073 (-[WebView mainFrameDocument]):
4074 (-[WebView setDrawsBackground:]):
4075 (-[WebView drawsBackground]):
4076 (-[WebView toggleSmartInsertDelete:]):
4077 (-[WebView toggleContinuousSpellChecking:]):
4078 (-[WebView canMakeTextStandardSize]):
4079 (-[WebView makeTextStandardSize:]):
4080 (-[WebView maintainsInactiveSelection]):
4081 * WebView/WebViewPrivate.h:
4083 2006-07-09 Timothy Hatcher <timothy@apple.com>
4087 Bug 9487: The XPath section should be removed and/or moved.
4088 http://bugs.webkit.org/show_bug.cgi?id=9487
4090 * WebInspector/webInspector/inspector.css:
4091 * WebInspector/webInspector/inspector.html:
4092 * WebInspector/webInspector/inspector.js:
4094 2006-07-09 Anders Carlsson <acarlsson@apple.com>
4098 * WebCoreSupport/WebSystemInterface.m:
4099 (InitWebCoreSystemInterface):
4100 Initialize wkPathFromFont.
4102 2006-07-09 Darin Adler <darin@apple.com>
4106 * Plugins/WebBaseNetscapePluginView.m:
4107 (-[WebBaseNetscapePluginView restorePortState:]): Cast inside the assertion so
4108 that we don't have an unused variable in versions with assertions disabled.
4109 The alternative would be to wrap the whole thing in an #if statement.
4111 2006-07-08 Tim Omernick <timo@apple.com>
4113 Reviewed by John Sullivan.
4115 * Plugins/WebBaseNetscapePluginView.h:
4116 - Added ivars for OpenGL support. Someday it would be nice to refactor this class so
4117 that each drawing model is encapsulated in a class; this would allow
4118 WebBaseNetscapePluginView to make more efficient use of space, for example by not
4119 keeping OpenGL-related ivars for Quickdraw plug-ins.
4121 * Plugins/WebBaseNetscapePluginView.m:
4122 - Declared a bunch of internal methods for OpenGL support (see below).
4123 - Removed "forUpdate" from CoreGraphics port state struct; it was always set to "YES",
4124 so I just cleaned up the silly code that used it.
4125 - Declared OpenGL port state struct.
4126 (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
4127 - Moved a CoreGraphics-related assertion down to the big "switch" statement.
4128 - Don't set window.type here -- according to the Netscape Plug-in API docs, the plug-in
4129 should default to "windowed" mode, and may call NPN_SetValue() during its NPN_New() to
4130 request that the browser use a "windowless" (offscreen) context instead.
4131 - Moved the assertion from the top of this method here; removed a less restrictive
4132 assertion that is now obsolete.
4133 - Removed "forUpdate" flag from CoreGraphics port state struct.
4134 - Fill in OpenGL port state struct. Set up the viewport appropriately for both windowed
4135 and windowless OpenGL plug-ins. Windowed plug-ins need to have their GL viewport
4136 transformed by the amount the plug-in is clipped; windowless plug-ins are drawn off-screen
4137 into a surface whose geometry is never changed or clipped, so they may always draw with
4138 a viewport origin of (0, 0).
4139 (-[WebBaseNetscapePluginView restorePortState:]):
4140 - Removed "forUpdate" flag from CoreGraphics port state struct.
4141 - Restore the old OpenGL context saved by -saveAndSetNewPortStateForUpdate:.
4142 (-[WebBaseNetscapePluginView sendEvent:]):
4143 - Updated an assertion to also include OpenGL. To ensure that attached plug-in window movements
4144 happen atomically with web page redisplays, we assert that the plug-in's window is set only while
4145 the plug-in view is redrawing.
4146 - Same deal as with the assertion; only save/set port state when redrawing the plug-in view. Plug-ins
4147 that use the new drawing models are only allowed to draw when the web page draws. I might consider
4148 changing this for windowed OpenGL plug-ins, since they always obscure the page content anyway.
4149 (-[WebBaseNetscapePluginView isNewWindowEqualToOldWindow]):
4150 - Compare new NP_GLContext structs.
4151 (-[WebBaseNetscapePluginView updateAndSetWindow]):
4152 - In OpenGL mode, can only set window when updating plug-in view.
4153 (-[WebBaseNetscapePluginView setWindowIfNecessary]):
4155 - Updated logging for OpenGL drawing mode.
4156 (-[WebBaseNetscapePluginView addWindowObservers]):
4157 - No need to observe frame/bounds change notifications for this and all parent views. See -renewGState
4159 (-[WebBaseNetscapePluginView removeWindowObservers]):
4160 - Don't need to remove frame/bounds observers anymore.
4161 (-[WebBaseNetscapePluginView start]):
4162 - Plug-ins are "windowed" by default. This is not a change from our previous behavior, but this is a
4163 better place to set the default value as it allows the plug-in to override it later.
4164 (-[WebBaseNetscapePluginView stop]):
4165 - Destroy AGL context when the plug-in stops.
4166 (-[WebBaseNetscapePluginView dealloc]):
4167 - Assert that the AGL stuff has been cleaned up.
4168 (-[WebBaseNetscapePluginView drawRect:]):
4169 - If this is a windowless OpenGL plugin, blit its contents back into this view.
4170 (-[WebBaseNetscapePluginView renewGState]):
4171 - This method is called when the view or one of its parents is moved or resized (see comments).
4172 (-[WebBaseNetscapePluginView viewWillMoveToWindow:]):
4173 - Hide the AGL window if the plug-in view is about to be removed from its window.
4174 (-[WebBaseNetscapePluginView viewHasMoved:]):
4175 - Renamed and moved to the "Internal" category.
4176 (-[WebBaseNetscapePluginView invalidateRegion:]):
4178 - Add support for OpenGL (uses the same region type as CoreGraphics).
4179 (-[WebBaseNetscapePluginView getVariable:value:]):
4181 - Implemented NPNVsupportsOpenGLBool; returns YES since we now support the OpenGL drawing model.
4182 (-[WebBaseNetscapePluginView setVariable:value:]):
4183 - Implemented NPPVpluginWindowBool, which allows plug-ins to specify whether they should be rendered in
4184 "windowed" or "windowless" mode. This is an older part of the Netscape Plug-in API that was never
4185 implemented in WebKit. "Windowed" Quickdraw plug-ins do not actually reside in a separate window, and
4186 can already do many of the same things (such as transparency) that only "windowless" plug-ins can do on
4187 other platforms. However, we need the "windowed" vs. "windowless" distinction for OpenGL plug-ins so
4188 that they have some way of specifying whether they should be rendered on an accelerated overlay surface,
4189 composited into the browser window.
4190 - Support for setting the drawing model to OpenGL.