1 2006-10-08 Maciej Stachowiak <mjs@apple.com>
5 - remove unneeded non-Loader header includes from WebFrameLoader.h (split WebFrameLoadType into
6 two coincidentally matching enums)
8 * Loader/WebFrameLoader.h:
9 * Loader/WebFrameLoader.m:
10 (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
11 (-[WebFrameLoader commitProvisionalLoad:]):
12 (isBackForwardLoadType):
13 (-[WebFrameLoader _loadRequest:archive:]):
14 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
15 (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
16 (-[WebFrameLoader reload]):
17 (-[WebFrameLoader isReplacing]):
18 (-[WebFrameLoader setReplacing]):
19 (-[WebFrameLoader loadType]):
20 (-[WebFrameLoader setLoadType:]):
21 (-[WebFrameLoader checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
22 (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
23 (-[WebFrameLoader loadDataSource:withLoadType:formState:]):
24 (-[WebFrameLoader didFirstLayout]):
25 * WebCoreSupport/WebFrameBridge.m:
27 (-[WebFrame _transitionToCommitted:]):
28 (-[WebFrame _provisionalLoadStarted]):
29 (-[WebFrame _opened]):
30 (-[WebFrame _checkLoadCompleteForThisFrame]):
31 (-[WebFrame _loadItem:withLoadType:]):
32 (-[WebFrame _recursiveGoToItem:fromItem:withLoadType:]):
33 (-[WebFrame _goToItem:withLoadType:]):
34 (-[WebFrame _actionInformationForLoadType:isFormSubmission:event:originalURL:]):
35 (-[WebFrame _continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
36 (-[WebFrame _loadURL:referrer:intoChild:]):
37 (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
38 (-[WebFrame _currentBackForwardListItemToResetTo]):
39 (-[WebFrame _itemForRestoringDocState]):
40 (-[WebFrame _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
41 (-[WebFrame _loadType]):
42 (-[WebFrame loadRequest:]):
43 * WebView/WebFrameInternal.h:
46 2006-10-08 Darin Adler <darin@apple.com>
50 - move WebFrameLoader creation and ownership from WebFrame to WebFrameBridge
52 * Loader/WebFrameLoader.m:
53 (-[WebFrameLoader stopLoadingSubframes]):
54 (-[WebFrameLoader closeOldDataSources]):
55 * WebCoreSupport/WebFrameBridge.h:
56 * WebCoreSupport/WebFrameBridge.m:
57 (-[WebFrameBridge initMainFrameWithPage:frameName:view:]):
58 (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]):
59 (-[WebFrameBridge dealloc]):
60 (-[WebFrameBridge loader]):
61 (-[WebFrameBridge setTitle:]):
62 (-[WebFrameBridge receivedData:textEncodingName:]):
63 (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
64 (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
65 (-[WebFrameBridge reportClientRedirectToURL:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
66 (-[WebFrameBridge reportClientRedirectCancelled:]):
67 (-[WebFrameBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]):
68 (-[WebFrameBridge didFirstLayout]):
69 (-[WebFrameBridge imageTitleForFilename:size:]):
70 (-[WebFrameBridge notifyIconChanged:]):
71 (-[WebFrameBridge originalRequestURL]):
72 (-[WebFrameBridge isLoadTypeReload]):
74 (-[NSView setWebFrame::]):
75 (-[WebFramePrivate dealloc]):
76 (-[WebFramePrivate setWebFrameView:]):
77 (-[WebFramePrivate setProvisionalItem:]):
78 (-[WebFrame _webDataRequestForData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
79 (-[WebFrame _createItem:]):
80 (-[WebFrame _createItemTreeWithTargetFrame:clippedAtTarget:]):
81 (-[WebFrame _detachFromParent]):
82 (-[WebFrame _makeDocumentView]):
83 (-[WebFrame _transitionToCommitted:]):
84 (-[WebFrame _provisionalLoadStarted]):
85 (-[WebFrame _opened]):
86 (-[WebFrame _checkLoadCompleteForThisFrame]):
87 (-[WebFrame _loadItem:withLoadType:]):
88 (-[WebFrame _recursiveGoToItem:fromItem:withLoadType:]):
89 (-[WebFrame _continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
90 (-[WebFrame _loadURL:referrer:intoChild:]):
91 (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
92 (-[WebFrame _setTitle:]):
93 (-[WebFrame _defersCallbacksChanged]):
94 (-[WebFrame _currentBackForwardListItemToResetTo]):
95 (-[WebFrame _itemForSavingDocState]):
96 (-[WebFrame _itemForRestoringDocState]):
97 (-[WebFrame _saveDocumentAndScrollState]):
98 (-[WebFrame _shouldTreatURLAsSameAsCurrent:]):
99 (-[WebFrame _loadRequest:inFrameNamed:]):
100 (-[WebFrame _initWithWebFrameView:webView:bridge:]):
101 (-[WebFrame _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
102 (-[WebFrame _frameLoader]):
103 (-[WebFrame _prepareForDataSourceReplacement]):
104 (-[WebFrame _restoreScrollPositionAndViewState]):
105 (-[WebFrame _firstLayoutDone]):
106 (-[WebFrame _loadType]):
107 (-[WebFrame frameView]):
108 (-[WebFrame provisionalDataSource]):
109 (-[WebFrame dataSource]):
110 (-[WebFrame loadRequest:]):
111 (-[WebFrame loadArchive:]):
112 (-[WebFrame stopLoading]):
113 (-[WebFrame reload]):
114 (-[WebFrame _resetBackForwardList]):
115 (-[WebFrame _invalidateCurrentItemPageCache]):
116 (-[WebFrame _provisionalItemIsTarget]):
117 (-[WebFrame _loadProvisionalItemFromPageCache]):
118 * WebView/WebFrameInternal.h:
120 2006-10-08 Maciej Stachowiak <mjs@apple.com>
124 - move remaining movable data fields from WebFrameLoader to WebFrame
126 * Loader/WebDocumentLoadState.m:
127 (-[WebDocumentLoadState commitIfReady]):
128 * Loader/WebFrameLoader.h:
129 * Loader/WebFrameLoader.m:
130 (-[WebFrameLoader provisionalLoadStarted]):
131 (-[WebFrameLoader _setState:]):
132 (-[WebFrameLoader stopLoadingSubframes]):
133 (-[WebFrameLoader stopLoading]):
134 (-[WebFrameLoader startLoading]):
135 (-[WebFrameLoader _receivedMainResourceError:complete:]):
136 (-[WebFrameLoader clientRedirectCancelledOrFinished:]):
137 (-[WebFrameLoader clientRedirectedTo:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
138 (-[WebFrameLoader shouldReloadForCurrent:andDestination:]):
139 (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
140 (-[WebFrameLoader continueFragmentScrollAfterNavigationPolicy:formState:]):
141 (-[WebFrameLoader closeOldDataSources]):
142 (-[WebFrameLoader commitProvisionalLoad:]):
143 (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
144 (-[WebFrameLoader isQuickRedirectComing]):
145 * Loader/WebFrameLoaderClient.h:
146 * WebCoreSupport/WebFrameBridge.h:
147 * WebCoreSupport/WebFrameBridge.m:
148 (-[WebFrameBridge frameLoader]):
149 (-[WebFrameBridge setTitle:]):
150 (-[WebFrameBridge reportClientRedirectToURL:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
151 (-[WebFrameBridge reportClientRedirectCancelled:]):
152 (-[WebFrameBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]):
153 * WebView/WebDataSource.m:
154 (-[WebDataSource _loadFromPageCache:]):
155 * WebView/WebFrame.m:
156 (-[NSView setWebFrame::]):
157 (-[WebFrame _addHistoryItemForFragmentScroll]):
158 (-[WebFrame _didFinishLoad]):
159 (-[WebFrame _provisionalLoadStarted]):
160 (-[WebFrame _checkLoadCompleteForThisFrame]):
161 (-[WebFrame _loadItem:withLoadType:]):
162 (-[WebFrame _loadURL:referrer:intoChild:]):
163 (-[WebFrame _frameLoadCompleted]):
164 (-[WebFrame stopLoading]):
165 (-[WebFrame _invalidateCurrentItemPageCache]):
166 * WebView/WebFrameInternal.h:
168 2006-10-08 Darin Adler <darin@apple.com>
170 Rubber stamped by Maciej.
172 - changed "document load state" to "document loader"
174 * Loader/WebDocumentLoadState.h: Removed.
175 * Loader/WebDocumentLoadState.m: Removed.
176 * Loader/WebDocumentLoader.h: Added.
177 * Loader/WebDocumentLoader.m: Added.
178 (-[WebDocumentLoader setMainDocumentError:]):
179 (-[WebDocumentLoader mainReceivedError:complete:]):
180 (-[WebDocumentLoader finishedLoading]):
181 (-[WebDocumentLoader commitLoadWithData:]):
182 (-[WebDocumentLoader setupForReplaceByMIMEType:]):
183 (-[WebDocumentLoader updateLoading]):
184 (-[WebDocumentLoader setTitle:]):
185 * Loader/WebFrameLoader.h:
186 * Loader/WebFrameLoader.m:
187 (-[WebFrameLoader dealloc]):
188 (-[WebFrameLoader activeDocumentLoader]):
189 (-[WebFrameLoader activeDataSource]):
190 (-[WebFrameLoader addPlugInStreamLoader:]):
191 (-[WebFrameLoader removePlugInStreamLoader:]):
192 (-[WebFrameLoader addSubresourceLoader:]):
193 (-[WebFrameLoader removeSubresourceLoader:]):
194 (-[WebFrameLoader dataSource]):
195 (-[WebFrameLoader setDocumentLoader:]):
196 (-[WebFrameLoader documentLoader]):
197 (-[WebFrameLoader policyDataSource]):
198 (-[WebFrameLoader setPolicyDocumentLoader:]):
199 (-[WebFrameLoader clearDataSource]):
200 (-[WebFrameLoader provisionalDataSource]):
201 (-[WebFrameLoader provisionalDocumentLoader]):
202 (-[WebFrameLoader setProvisionalDocumentLoader:]):
203 (-[WebFrameLoader _clearProvisionalDataSource]):
204 (-[WebFrameLoader _setState:]):
205 (-[WebFrameLoader clearProvisionalLoad]):
206 (-[WebFrameLoader commitProvisionalLoad]):
207 (-[WebFrameLoader stopLoading]):
208 (-[WebFrameLoader startLoading]):
209 (-[WebFrameLoader startProvisionalLoad:]):
210 (-[WebFrameLoader setupForReplace]):
211 (-[WebFrameLoader _didReceiveResponse:forResource:]):
212 (-[WebFrameLoader _originalRequest]):
213 (-[WebFrameLoader _receivedMainResourceError:complete:]):
214 (-[WebFrameLoader _receivedData:]):
215 (-[WebFrameLoader _setRequest:]):
216 (-[WebFrameLoader _isStopping]):
217 (-[WebFrameLoader _setupForReplaceByMIMEType:]):
218 (-[WebFrameLoader _setResponse:]):
219 (-[WebFrameLoader _mainReceivedError:complete:]):
220 (-[WebFrameLoader _finishedLoading]):
221 (-[WebFrameLoader _checkContentPolicyForMIMEType:andCall:withSelector:]):
222 (-[WebFrameLoader _loadRequest:archive:]):
223 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
224 (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
225 (-[WebFrameLoader reload]):
226 (-[WebFrameLoader finishedLoadingDocument:]):
227 (-[WebFrameLoader committedLoadWithDocumentLoader:data:]):
228 (-[WebFrameLoader revertToProvisionalWithDocumentLoader:]):
229 (-[WebFrameLoader documentLoader:setMainDocumentError:]):
230 (-[WebFrameLoader documentLoader:mainReceivedCompleteError:]):
231 (-[WebFrameLoader finalSetupForReplaceWithDocumentLoader:]):
232 (-[WebFrameLoader willChangeTitleForDocument:]):
233 (-[WebFrameLoader didChangeTitleForDocument:]):
234 (-[WebFrameLoader checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
235 (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
236 (-[WebFrameLoader loadDataSource:withLoadType:formState:]):
237 * Plugins/WebPluginController.m:
238 (-[WebPluginController pluginView:receivedResponse:]):
239 * WebCoreSupport/WebFrameBridge.m:
240 (-[WebFrameBridge setTitle:]):
241 (-[WebFrameBridge receivedData:textEncodingName:]):
242 * WebKit.xcodeproj/project.pbxproj:
243 * WebView/WebDataSource.m:
244 (-[WebDataSourcePrivate dealloc]):
245 (-[WebDataSource _mainDocumentError]):
246 (-[WebDataSource _loadFromPageCache:]):
247 (-[WebDataSource _bridge]):
248 (-[WebDataSource _webView]):
249 (-[WebDataSource _URLForHistory]):
250 (-[WebDataSource _documentLoader]):
251 (-[WebDataSource _initWithDocumentLoader:]):
252 (-[WebDataSource initWithRequest:]):
253 (-[WebDataSource dealloc]):
254 (-[WebDataSource data]):
255 (-[WebDataSource webFrame]):
256 (-[WebDataSource initialRequest]):
257 (-[WebDataSource request]):
258 (-[WebDataSource response]):
259 (-[WebDataSource textEncodingName]):
260 (-[WebDataSource isLoading]):
261 (-[WebDataSource unreachableURL]):
262 (-[WebDataSource webArchive]):
263 * WebView/WebDataSourceInternal.h:
264 * WebView/WebDocumentLoadStateMac.h: Removed.
265 * WebView/WebDocumentLoadStateMac.m: Removed.
266 * WebView/WebDocumentLoaderMac.h: Added.
267 * WebView/WebDocumentLoaderMac.m: Added.
268 * WebView/WebFrame.m:
269 (-[WebFrame _createItem:]):
270 (-[WebFrame _receivedMainResourceError:]):
271 (-[WebFrame _transitionToCommitted:]):
272 (-[WebFrame _opened]):
273 (-[WebFrame _checkLoadCompleteForThisFrame]):
274 (-[WebFrame _loadItem:withLoadType:]):
275 (-[WebFrame _continueFragmentScrollAfterNavigationPolicy:formState:]):
276 (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
277 (-[WebFrame _addChild:]):
278 (-[WebFrame _provisionalLoadStarted]):
279 (-[WebFrame _dataSourceForDocumentLoader:]):
280 (-[WebFrame _createDocumentLoaderWithRequest:]):
281 * WebView/WebFrameInternal.h:
282 * WebView/WebHTMLRepresentation.m:
283 (-[WebHTMLRepresentation title]):
285 (-[WebView _mainFrameOverrideEncoding]):
287 2006-10-08 Darin Adler <darin@apple.com>
291 - fix http://bugs.webkit.org/show_bug.cgi?id=11218
292 REGRESSION: Assertion failure in WebFrameLoader when going back from a file: or data: URL
294 Also added a helper function in WebFrameLoader so that checks for back/forward load types
297 * Loader/WebFrameLoader.m:
298 (-[WebFrameLoader _setPolicyDocumentLoadState:]): Fixed line of code that was setting the load
299 state to nil instead of the passed-in object.
300 (isBackForwardLoadType): Added.
301 (-[WebFrameLoader shouldReloadToHandleUnreachableURLFromRequest:]): Use isBackForwardLoadType.
302 (-[WebFrameLoader checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
304 (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]): Ditto.
306 2006-10-08 Darin Adler <darin@apple.com>
310 - fix two recently introduced leaks: one of an NSString, the other of a WebDataSource
312 * Loader/WebDocumentLoadState.m: (-[WebDocumentLoadState setTitle:]):
313 Rearranged code to avoid storage leak in case of identical title.
315 * Loader/WebFrameLoader.h: Removed _setPolicyDocumentLoadState: method
317 * Loader/WebFrameLoader.m:
318 (-[WebFrameLoader _setPolicyDocumentLoadState:]): Added logic to call detachFromFrameLoader
319 as needed if this load state is going away rather than moving on to become the provisional
321 (-[WebFrameLoader shouldReloadToHandleUnreachableURLFromRequest:]): Tweaked formatting.
322 (-[WebFrameLoader _loadRequest:archive:]): Added an assertion.
323 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]): Added an assertion.
324 (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]): Added an assertion.
325 (-[WebFrameLoader reload]): Added an assertion.
326 (-[WebFrameLoader loadDataSource:withLoadType:formState:]): Added a local variable to avoid
327 calling _documentLoadState over and over again.
329 2006-10-07 Don Gibson <dgibson77@gmail.com>
331 Reviewed/landed by Adam.
333 http://bugs.webkit.org/show_bug.cgi?id=11199
334 Update Session History when a load is committed rather than completed.
337 (WebFrame::receivedResponse):
338 (WebFrame::receivedAllData):
340 2006-10-07 Sam Weinig <sam.weinig@gmail.com>
344 Patch for http://bugs.webkit.org/show_bug.cgi?id=11198
345 Auto-generate a few more Objective-C DOM interfaces
347 * MigrateHeaders.make:
349 2006-10-07 Mark Rowe <bdash@webkit.org>
353 Fix memory leak from -[WebDocumentLoadState setTitle:].
355 * Loader/WebDocumentLoadState.m:
356 (-[WebDocumentLoadState setTitle:]): Ensure 'trimmed' is released even when length is
357 zero, and untangle the confusing logic around this case.
359 2006-10-06 Brady Eidson <beidson@apple.com>
363 Refactored a whole bunch of WebFramePrivate.h SPI to WebFrameInternal
365 * DefaultDelegates/WebDefaultContextMenuDelegate.m:
366 * History/WebHistoryItem.m:
367 * Loader/WebFrameLoader.h:
368 * Misc/WebCoreStatistics.m:
369 * Misc/WebElementDictionary.m:
370 * Plugins/WebNetscapePluginEmbeddedView.m:
371 * Plugins/WebPluginController.m:
372 * WebCoreSupport/WebViewFactory.m:
373 * WebView/WebArchiver.m:
374 * WebView/WebDataSource.m:
375 * WebView/WebFrame.m:
376 (-[WebFrame _isDescendantOfFrame:]):
377 (-[WebFrame _setShouldCreateRenderers:]):
378 (-[WebFrame _bodyBackgroundColor]):
379 (-[WebFrame _isFrameSet]):
380 (-[WebFrame _firstLayoutDone]):
381 (-[WebFrame _loadType]):
382 * WebView/WebFrameInternal.h:
383 * WebView/WebFramePrivate.h:
384 * WebView/WebHTMLRepresentation.m:
385 * WebView/WebScriptDebugDelegate.m:
387 2006-10-06 Maciej Stachowiak <mjs@apple.com>
391 - Move all delegate dispatching code out of WebDataSource.
393 * Loader/WebFrameLoader.m:
394 (-[WebFrameLoader startLoading]):
395 (-[WebFrameLoader _identifierForInitialRequest:]):
396 (-[WebFrameLoader _willSendRequest:forResource:redirectResponse:]):
397 (-[WebFrameLoader _didReceiveAuthenticationChallenge:forResource:]):
398 (-[WebFrameLoader _didCancelAuthenticationChallenge:forResource:]):
399 (-[WebFrameLoader _didReceiveResponse:forResource:]):
400 (-[WebFrameLoader _didReceiveData:contentLength:forResource:]):
401 (-[WebFrameLoader _didFinishLoadingForResource:]):
402 (-[WebFrameLoader _didFailLoadingWithError:forResource:]):
403 (-[WebFrameLoader _receivedMainResourceError:complete:]):
404 (-[WebFrameLoader _downloadWithLoadingConnection:request:response:proxy:]):
405 (-[WebFrameLoader _checkContentPolicyForMIMEType:andCall:withSelector:]):
406 * WebView/WebDataSource.m:
407 (-[WebDataSource _setLoadingFromPageCache:]):
408 (-[WebDataSource _stopLoadingWithError:]):
409 * WebView/WebDataSourceInternal.h:
411 2006-10-06 Darin Adler <darin@apple.com>
415 - moved firstLayoutDone BOOL from WebFrame to WebFrameLoader
417 * Loader/WebFrameLoader.h:
418 * Loader/WebFrameLoader.m:
419 (-[WebFrameLoader didFirstLayout]):
420 (-[WebFrameLoader provisionalLoadStarted]):
421 (-[WebFrameLoader frameLoadCompleted]):
422 (-[WebFrameLoader firstLayoutDone]):
423 * WebCoreSupport/WebFrameBridge.m: (-[WebFrameBridge didFirstLayout]):
424 * WebView/WebFrame.m:
425 (-[WebFrame _firstLayoutDone]):
426 (-[WebFrame _provisionalLoadStarted]):
427 (-[WebFrame _frameLoadCompleted]):
428 (-[WebFrame _restoreScrollPositionAndViewState]):
429 * WebView/WebFrameInternal.h:
431 2006-10-06 Darin Adler <darin@apple.com>
435 - moved more data and the corresponding code from WebFrame to WebFrameLoader
437 * Loader/WebFrameLoader.h:
438 * Loader/WebFrameLoader.m:
439 (-[WebFrameLoader cannotShowMIMETypeForURL:]):
440 (-[WebFrameLoader _checkNavigationPolicyForRequest:andCall:withSelector:]):
441 (-[WebFrameLoader shouldReloadToHandleUnreachableURLFromRequest:]):
442 (-[WebFrameLoader _loadRequest:archive:]):
443 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
444 (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
445 (-[WebFrameLoader reload]):
446 (-[WebFrameLoader invalidatePendingPolicyDecisionCallingDefaultAction:]):
447 (-[WebFrameLoader checkNewWindowPolicyForRequest:action:frameName:formState:andCall:withSelector:]):
448 (-[WebFrameLoader _continueAfterNewWindowPolicy:]):
449 (-[WebFrameLoader checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
450 (-[WebFrameLoader continueAfterNavigationPolicy:]):
451 (-[WebFrameLoader continueAfterWillSubmitForm:]):
452 (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
453 (-[WebFrameLoader loadDataSource:withLoadType:formState:]):
454 (-[WebFrameLoader handleUnimplementablePolicyWithErrorCode:forURL:]):
455 (-[WebFrameLoader delegateIsHandlingProvisionalLoadError]):
456 (-[WebFrameLoader setDelegateIsHandlingProvisionalLoadError:]):
457 * Loader/WebFrameLoaderClient.h:
458 * WebView/WebFrame.m:
459 (-[NSView setWebFrame::]):
460 (-[WebFramePrivate dealloc]):
461 (-[WebFrame _checkLoadCompleteForThisFrame]):
462 (-[WebFrame _loadItem:withLoadType:]):
463 (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
464 (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
465 (-[WebFrame _loadRequest:inFrameNamed:]):
466 (-[WebFrame stopLoading]):
467 (-[WebFrame _resetBackForwardList]):
468 (-[WebFrame _quickRedirectComing]):
469 (-[WebFrame _provisionalItemIsTarget]):
470 (-[WebFrame _loadProvisionalItemFromPageCache]):
471 * WebView/WebFrameInternal.h:
472 * WebView/WebFramePrivate.h:
474 * WebKit.xcodeproj/project.pbxproj:
476 2006-10-06 Maciej Stachowiak <mjs@apple.com>
478 Rubber stamped by Darin.
480 - removed includes of unused headers.
482 * WebView/WebDataSource.m:
484 2006-10-06 Maciej Stachowiak <mjs@apple.com>
490 * Loader/WebFrameLoader.m:
491 (-[WebFrameLoader willChangeTitleForDocumentLoadState:]):
492 (-[WebFrameLoader didChangeTitleForDocumentLoadState:]):
494 2006-10-06 Maciej Stachowiak <mjs@apple.com>
498 - move remaining movable WebDataSource fields to WebDocumentLoadState
500 * Loader/WebDocumentLoadState.h:
501 * Loader/WebDocumentLoadState.m:
502 (-[WebDocumentLoadState dealloc]):
503 (-[WebDocumentLoadState isLoadingInAPISense]):
504 (-[WebDocumentLoadState addResponse:]):
505 (-[WebDocumentLoadState stopRecordingResponses]):
506 (-[WebDocumentLoadState title]):
507 (-[WebDocumentLoadState setLastCheckedRequest:]):
508 (-[WebDocumentLoadState lastCheckedRequest]):
509 (-[WebDocumentLoadState triggeringAction]):
510 (-[WebDocumentLoadState setTriggeringAction:]):
511 (-[WebDocumentLoadState responses]):
512 (-[WebDocumentLoadState setOverrideEncoding:]):
513 (-[WebDocumentLoadState overrideEncoding]):
514 (-[WebDocumentLoadState setTitle:]):
515 * Loader/WebFrameLoader.h:
516 * Loader/WebFrameLoader.m:
517 (-[WebFrameLoader _setState:]):
518 (-[WebFrameLoader _loadRequest:archive:]):
519 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
520 (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
521 (-[WebFrameLoader reload]):
522 (-[WebFrameLoader willChangeTitleForDocumentLoadState:]):
523 (-[WebFrameLoader didChangeTitleForDocumentLoadState:]):
524 * WebCoreSupport/WebFrameBridge.m:
525 (-[WebFrameBridge setTitle:]):
526 (-[WebFrameBridge receivedData:textEncodingName:]):
527 * WebView/WebDataSource.m:
528 (-[WebDataSourcePrivate dealloc]):
529 (-[WebDataSource _didReceiveResponse:forResource:]):
530 (-[WebDataSource textEncodingName]):
531 * WebView/WebDataSourceInternal.h:
532 * WebView/WebFrame.m:
533 (-[WebFrame _opened]):
534 (-[WebFrame _checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
535 (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
536 (-[WebFrame _addChild:]):
537 (-[WebFrame _loadDataSource:withLoadType:formState:]):
538 * WebView/WebHTMLRepresentation.m:
539 (-[WebHTMLRepresentation title]):
541 (-[WebView _mainFrameOverrideEncoding]):
543 2006-10-06 Darin Adler <darin@apple.com>
547 - moved loadType into WebFrameLoader
549 * WebView/WebFramePrivate.h: Removed _setLoadType, but not _loadType because it's
550 currently used by Safari.
552 * Loader/WebFrameLoader.h:
553 * Loader/WebFrameLoader.m:
554 (-[WebFrameLoader _loadRequest:archive:]):
555 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
556 (-[WebFrameLoader isReplacing]):
557 (-[WebFrameLoader setReplacing]):
558 (-[WebFrameLoader loadType]):
559 (-[WebFrameLoader setLoadType:]):
560 * WebCoreSupport/WebFrameBridge.m:
561 (-[WebFrameBridge isLoadTypeReload]):
562 * WebView/WebFrame.m:
563 (-[WebFrame _loadType]):
564 (-[WebFrame _transitionToCommitted:]):
565 (-[WebFrame _commitProvisionalLoad:]):
566 (-[WebFrame _opened]):
567 (-[WebFrame _checkLoadCompleteForThisFrame]):
568 (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
569 (-[WebFrame _loadURL:referrer:intoChild:]):
570 (-[WebFrame _currentBackForwardListItemToResetTo]):
571 (-[WebFrame _itemForRestoringDocState]):
572 (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
573 (-[WebFrame _didFirstLayout]):
574 (-[WebFrame _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
575 (-[WebFrame _provisionalLoadStarted]):
576 (-[WebFrame loadRequest:]):
578 2006-10-06 Darin Adler <darin@apple.com>
582 - added WebFrameLoaderClient protocol -- to be used to make WebFrameLoader forget all about WebFrame
584 * Loader/WebDocumentLoadState.h: Added comment about Maciej's planned renaming here.
585 * Loader/WebFrameLoader.h:
586 * Loader/WebFrameLoader.m: Renamed webFrame to client and added the new protocol.
587 Eventually we'll be removing the dependency on WebFrame entirely.
588 * WebView/WebFrame.m: (-[WebFrame _initWithWebFrameView:webView:bridge:]): Update to call the method
591 * Loader/WebFrameLoaderClient.h: Added.
592 * WebKit.xcodeproj/project.pbxproj: Updated for new file, sorted things.
594 2006-10-06 Maciej Stachowiak <mjs@apple.com>
598 - segregate WebFrame methods into ones that should be moved into WebFrameLoader and ones that don't need to
600 Also removed useless WebFrameLoader part
602 * WebView/WebFrame.m:
603 (-[WebFramePrivate dealloc]):
605 2006-10-06 Maciej Stachowiak <mjs@apple.com>
609 - moved more data from WebDataSource to WebDocumentLoadState
611 * Loader/WebDocumentLoadState.h:
612 * Loader/WebDocumentLoadState.m:
613 (-[WebDocumentLoadState commitLoadWithData:]):
614 (-[WebDocumentLoadState prepareForLoadStart]):
615 (-[WebDocumentLoadState loadingStartedTime]):
616 (-[WebDocumentLoadState setIsClientRedirect:]):
617 (-[WebDocumentLoadState isClientRedirect]):
618 (-[WebDocumentLoadState setPrimaryLoadComplete:]):
619 (-[WebDocumentLoadState isLoadingInAPISense]):
620 * Loader/WebFrameLoader.h:
621 * Loader/WebFrameLoader.m:
622 (-[WebFrameLoader _setState:]):
623 (-[WebFrameLoader _finishedLoading]):
624 (-[WebFrameLoader documentLoadState:mainReceivedCompleteError:]):
625 (-[WebFrameLoader prepareForLoadStart]):
626 (-[WebFrameLoader subframeIsLoading]):
627 * WebView/WebDataSource.m:
628 (-[WebDataSource _fileWrapperForURL:]):
629 (-[WebDataSource _startLoading]):
630 (-[WebDataSource _loadFromPageCache:]):
631 (-[WebDataSource isLoading]):
632 * WebView/WebDataSourceInternal.h:
633 * WebView/WebFrame.m:
634 (-[WebFrame _transitionToCommitted:]):
635 (-[WebFrame _opened]):
636 (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
638 2006-10-06 Alexey Proskuryakov <ap@nypop.com>
642 http://bugs.webkit.org/show_bug.cgi?id=11183
643 REGRESSION: Safari loads error pages unstyled
645 * WebView/WebFrame.m:
646 (-[WebFrame _loadHTMLString:baseURL:unreachableURL:]):
647 Use utf-8 encoding instead of the string's "fastest" encoding.
649 2006-10-06 Maciej Stachowiak <mjs@apple.com>
653 - fixed the following bugs:
655 http://bugs.webkit.org/show_bug.cgi?id=11136
656 "REGRESSION: Safari snippet editor doesn't work"
657 http://bugs.webkit.org/show_bug.cgi?id=11140
658 "REGRESSION: view source window blank"
659 http://bugs.webkit.org/show_bug.cgi?id=11146
660 "REGRESSION: Instead of showing the error page, Safari opens its Resources folder in the Finder"
664 * Loader/WebDocumentLoadState.h:
665 * Loader/WebDocumentLoadState.m:
666 (-[WebDocumentLoadState actualRequest]): New method.
667 * WebView/WebDataSource.m:
668 (-[WebDataSource _startLoading]): We need to make sure not to start loading the main
669 resource with the fake external request for an applewebdata: request.
671 2006-10-05 Adele Peterson <adele@apple.com>
673 Reviewed by the letter 'B'.
677 * WebKit.xcodeproj/project.pbxproj:
678 * WebView/WebDynamicScrollBarsView.h:
679 * WebView/WebDynamicScrollBarsView.m:
680 (-[WebDynamicScrollBarsView updateScrollers]):
681 (-[WebDynamicScrollBarsView setAllowsScrolling:]):
682 (-[WebDynamicScrollBarsView allowsScrolling]):
683 (-[WebDynamicScrollBarsView setAllowsHorizontalScrolling:]):
684 (-[WebDynamicScrollBarsView setAllowsVerticalScrolling:]):
685 (-[WebDynamicScrollBarsView allowsHorizontalScrolling]):
686 (-[WebDynamicScrollBarsView allowsVerticalScrolling]):
687 (-[WebDynamicScrollBarsView horizontalScrollingMode]):
688 (-[WebDynamicScrollBarsView verticalScrollingMode]):
689 (-[WebDynamicScrollBarsView setHorizontalScrollingMode:]):
690 (-[WebDynamicScrollBarsView setVerticalScrollingMode:]):
691 (-[WebDynamicScrollBarsView setScrollingMode:]):
693 (-[WebView setAlwaysShowVerticalScroller:]):
694 (-[WebView alwaysShowVerticalScroller]):
695 (-[WebView setAlwaysShowHorizontalScroller:]):
696 (-[WebView alwaysShowHorizontalScroller]):
698 2006-10-05 Vladimir Olexa <vladimir.olexa@gmail.com>
702 Bug: http://bugs.webkit.org/show_bug.cgi?id=9887
703 Continuous spell checking now remembers user's setting. The change is applied globally,
704 meaning, both TextArea and TextField are affected when either of them enables/disables
707 * WebView/WebPreferenceKeysPrivate.h: added a define for WebContinuousSpellCheckingEnabled
709 (-[WebViewPrivate init]): reads WebContinuousSpellCheckingEnabled from NSUserDefaults
710 (-[WebView setContinuousSpellCheckingEnabled:]):
711 (-[WebView isContinuousSpellCheckingEnabled]):
713 2006-10-05 MorganL <morganl.webkit@yahoo.com>
717 Fixes http://bugs.webkit.org/show_bug.cgi?id=11162
720 (WebFrame::loadDataSource):
721 (WebFrame::receivedResponse):
723 2006-10-05 Don Gibson <dgibson77@gmail.com>
725 Reviewed by Darin, landed by Adam.
727 http://bugs.webkit.org/show_bug.cgi?id=11176
728 Fix win32 build, adapt to Maciej's ResourceLoader changes.
731 (WebFrame::loadDataSource):
733 2006-10-05 Marvin Decker <marv.decker@gmail.com>
737 http://bugs.webkit.org/show_bug.cgi?id=10989
738 Provide a way for embedders to implement BrowserExtensionWin
740 * COM/Interfaces/IWebUIDelegate.idl:
742 (WebFrame::createNewWindow):
745 2006-10-04 Mark Rowe <bdash@webkit.org>
747 Reviewed by NOBODY (build fix).
750 (-[WebView scrollDOMRangeToVisible:]): Move scrollDOMRangeToVisible: into the correct category.
752 2006-09-26 David Smith <catfish.man@gmail.com>
756 http://bugs.webkit.org/show_bug.cgi?id=3723
757 Add -scrollDOMRangeToVisible:
760 (-[WebView scrollDOMRangeToVisible:]):
761 * WebView/WebViewPrivate.h:
763 2006-10-03 Graham Dennis <graham.dennis@gmail.com>
767 <http://bugs.webkit.org/show_bug.cgi?id=10338>
768 When contentEditable, cursor doesn't change to hand
770 Allow the behaviour of editable links to be specified by a WebPreference
771 The preference WebKitEditableLinkBehavior has four options:
772 - AlwaysLive: Safari 2.0 behaviour
773 - OnlyLiveWithShiftKey: Firefox/WinIE behaviour (and prior WebKit-ToT behaviour)
774 - LiveWhenNotFocused: Editable links are live only when their editable block is not
775 focused, or when the shift key is pressed
776 - DefaultBehavior: This is the same as OnlyLiveWithShiftKey.
778 No layout tests, just a modification of a manual-test as it isn't possible to test
781 * WebView/WebPreferenceKeysPrivate.h:
782 * WebView/WebPreferences.m:
783 (+[WebPreferences initialize]):
784 (-[WebPreferences editableLinkBehavior]):
785 (-[WebPreferences setEditableLinkBehavior:]):
786 * WebView/WebPreferencesPrivate.h:
788 (-[WebView _updateWebCoreSettingsFromPreferences:]):
790 2006-10-03 Justin Garcia <justin.garcia@apple.com>
794 execCommand("Cut"/"Copy"/"Paste") broken in editable subframes.
796 * WebCoreSupport/WebFrameBridge.m:
797 (-[WebFrameBridge issueCutCommand]): Issue the command on the WebHTMLView, not the WebView.
798 (-[WebFrameBridge issueCopyCommand]): Ditto.
799 (-[WebFrameBridge issuePasteCommand]): Ditto.
800 (-[WebFrameBridge issuePasteAndMatchStyleCommand]): Ditto.
801 (-[WebFrameBridge issueTransposeCommand]): Fixed formatting.
802 (-[WebFrameBridge canPaste]): Ask the WebHTMLView, not the WebView.
803 * WebView/WebHTMLView.m:
804 (-[WebHTMLView copy:]): Moved to WebInternal
805 (-[WebHTMLView cut:]): Ditto.
806 (-[WebHTMLView paste:]): Ditto.
807 (-[WebHTMLView pasteAsPlainText:]): Ditto.
808 * WebView/WebHTMLViewInternal.h:
809 * WebView/WebView.m: Removed the now unused _canPaste.
810 * WebView/WebViewInternal.h: Ditto.
812 2006-10-03 Justin Garcia <justin.garcia@apple.com>
816 <rdar://problem/4763519> REGRESSION: Multipart/x-mixed-replace sub-resources fail to load
818 * Loader/WebSubresourceLoader.m:
819 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
820 Enable multipart/x-mixed-replace support on the request. This line was accidently removed during
821 some loader refactoring.
823 2006-10-02 Adam Roben <aroben@apple.com>
827 Add message paramter to WebView::mouse* methods to pass down to
831 (WebView::mouseMoved):
832 (WebView::mouseDown):
834 (WebView::mouseDoubleClick):
838 2006-10-02 Maciej Stachowiak <mjs@apple.com>
842 - take away direct knowledge of WebFrame from WebDataSource
844 * Loader/WebDocumentLoadState.h:
845 * Loader/WebDocumentLoadState.m:
846 (-[WebDocumentLoadState setFrameLoader:]):
847 (-[WebDocumentLoadState detachFromFrameLoader]):
848 * Loader/WebFrameLoader.m:
849 (-[WebFrameLoader _setDocumentLoadState:]):
850 (-[WebFrameLoader _setProvisionalDocumentLoadState:]):
851 * WebView/WebDataSource.m:
852 * WebView/WebDataSourceInternal.h:
853 * WebView/WebDocumentLoadStateMac.m:
854 (-[WebDocumentLoadStateMac detachFromFrameLoader]):
855 * WebView/WebFrame.m:
856 (-[WebFrame _loadDataSource:withLoadType:formState:]):
858 2006-10-02 Maciej Stachowiak <mjs@apple.com>
862 - move a big slice of data and logic from WebDataSource to WebDocumentLoadState
864 * Loader/WebDocumentLoadState.h:
865 * Loader/WebDocumentLoadState.m:
866 (-[WebDocumentLoadState initWithRequest:]):
867 (-[WebDocumentLoadState dealloc]):
868 (-[WebDocumentLoadState originalRequestCopy]):
869 (-[WebDocumentLoadState request]):
870 (-[WebDocumentLoadState replaceRequestURLForAnchorScrollWithURL:]):
871 (-[WebDocumentLoadState setRequest:]):
872 (-[WebDocumentLoadState setResponse:]):
873 (-[WebDocumentLoadState isStopping]):
874 (-[WebDocumentLoadState bridge]):
875 (-[WebDocumentLoadState setMainDocumentError:]):
876 (-[WebDocumentLoadState mainDocumentError]):
877 (-[WebDocumentLoadState clearErrors]):
878 (-[WebDocumentLoadState mainReceivedError:complete:]):
879 (-[WebDocumentLoadState stopLoading]):
880 (-[WebDocumentLoadState setupForReplace]):
881 (-[WebDocumentLoadState commitIfReady]):
882 (-[WebDocumentLoadState finishedLoading]):
883 (-[WebDocumentLoadState setCommitted:]):
884 (-[WebDocumentLoadState isCommitted]):
885 (-[WebDocumentLoadState setLoading:]):
886 (-[WebDocumentLoadState isLoading]):
887 (-[WebDocumentLoadState commitLoadWithData:]):
888 (-[WebDocumentLoadState doesProgressiveLoadWithMIMEType:]):
889 (-[WebDocumentLoadState receivedData:]):
890 (-[WebDocumentLoadState setupForReplaceByMIMEType:]):
891 (-[WebDocumentLoadState updateLoading]):
892 (-[WebDocumentLoadState response]):
893 * Loader/WebFrameLoader.h:
894 * Loader/WebFrameLoader.m:
895 (-[WebFrameLoader activeDocumentLoadState]):
896 (-[WebFrameLoader activeDataSource]):
897 (-[WebFrameLoader _archivedSubresourceForURL:]):
898 (-[WebFrameLoader addPlugInStreamLoader:]):
899 (-[WebFrameLoader removePlugInStreamLoader:]):
900 (-[WebFrameLoader addSubresourceLoader:]):
901 (-[WebFrameLoader removeSubresourceLoader:]):
902 (-[WebFrameLoader documentLoadState]):
903 (-[WebFrameLoader provisionalDocumentLoadState]):
904 (-[WebFrameLoader stopLoading]):
905 (-[WebFrameLoader _originalRequest]):
906 (-[WebFrameLoader _receivedData:]):
907 (-[WebFrameLoader _setRequest:]):
908 (-[WebFrameLoader bridge]):
909 (-[WebFrameLoader _handleFallbackContent]):
910 (-[WebFrameLoader _isStopping]):
911 (-[WebFrameLoader _setupForReplaceByMIMEType:]):
912 (-[WebFrameLoader _setResponse:]):
913 (-[WebFrameLoader _mainReceivedError:complete:]):
914 (-[WebFrameLoader _finishedLoading]):
915 (-[WebFrameLoader didReceiveServerRedirectForProvisionalLoadForFrame]):
916 (-[WebFrameLoader finishedLoadingDocumentLoadState:]):
917 (-[WebFrameLoader commitProvisitionalLoad]):
918 (-[WebFrameLoader committedLoadWithDocumentLoadState:data:]):
919 (-[WebFrameLoader isReplacing]):
920 (-[WebFrameLoader setReplacing]):
921 (-[WebFrameLoader revertToProvisionalWithDocumentLoadState:]):
922 (-[WebFrameLoader documentLoadState:setMainDocumentError:]):
923 (-[WebFrameLoader documentLoadState:mainReceivedCompleteError:]):
924 (-[WebFrameLoader finalSetupForReplaceWithDocumentLoadState:]):
925 * WebView/WebDataSource.m:
926 (-[WebDataSourcePrivate dealloc]):
927 (-[WebDataSource _prepareForLoadStart]):
928 (-[WebDataSource _mainDocumentError]):
929 (-[WebDataSource _finishedLoading]):
930 (-[WebDataSource _receivedData:]):
931 (-[WebDataSource _setMainDocumentError:]):
932 (-[WebDataSource _clearUnarchivingState]):
933 (-[WebDataSource _revertToProvisionalState]):
934 (-[WebDataSource _receivedMainResourceError:complete:]):
935 (-[WebDataSource _startLoading]):
936 (-[WebDataSource _loadFromPageCache:]):
937 (-[WebDataSource _bridge]):
938 (-[WebDataSource _setPrimaryLoadComplete:]):
939 (-[WebDataSource _URLForHistory]):
940 (-[WebDataSource _setTitle:]):
941 (-[WebDataSource _initWithDocumentLoadState:]):
942 (-[WebDataSource request]):
943 (-[WebDataSource response]):
944 (-[WebDataSource isLoading]):
945 (-[WebDataSource webArchive]):
946 * WebView/WebDataSourceInternal.h:
947 * WebView/WebDocumentLoadStateMac.m:
948 (-[WebDocumentLoadStateMac initWithRequest:]):
949 * WebView/WebFrame.m:
950 (-[WebFrame _createItem:]):
951 (-[WebFrame _receivedMainResourceError:]):
952 (-[WebFrame _transitionToCommitted:]):
953 (-[WebFrame _commitProvisionalLoad:]):
954 (-[WebFrame _checkLoadCompleteForThisFrame]):
955 (-[WebFrame _loadItem:withLoadType:]):
956 (-[WebFrame _continueFragmentScrollAfterNavigationPolicy:formState:]):
957 (-[WebFrame _didReceiveServerRedirectForProvisionalLoadForFrame]):
958 (-[WebFrame _provisionalLoadStarted]):
959 * WebView/WebFrameInternal.h:
961 2006-10-02 Justin Garcia <justin.garcia@apple.com>
965 <rdar://problem/4757583>
966 REGRESSION: tabbing into page focuses wrong control on 2nd pass
967 <rdar://problem/4757594>
968 REGRESSION: Form field is left with secondary selection after tabbing out of WebView
970 * WebView/WebHTMLView.m:
971 (-[NSArray maintainsInactiveSelection]): Replace code that I removed in error in the patch
972 for 9642. Only leave inactive editable selections in the WebHTMLView if the nextResponder
973 is in the same WebView.
975 2006-10-02 Maciej Stachowiak <mjs@apple.com>
979 - remove webFrame field from WebDataSourcePrivate, it can get it from WebDocumentLoadState now
981 * Loader/WebDocumentLoadState.h:
982 * Loader/WebDocumentLoadState.m:
983 (-[WebDocumentLoadState frameLoader]):
984 * WebView/WebDataSource.m:
985 (-[WebDataSourcePrivate dealloc]):
986 (-[WebDataSource _revertToProvisionalState]):
987 (-[WebDataSource _setupForReplaceByMIMEType:]):
988 (-[WebDataSource _updateLoading]):
989 (-[WebDataSource _startLoading]):
990 (-[WebDataSource _setWebFrame:]):
991 (-[WebDataSource _defersCallbacksChanged]):
992 (-[WebDataSource _stopLoading]):
993 (-[WebDataSource _webView]):
994 (-[WebDataSource _stopLoadingWithError:]):
995 (-[WebDataSource _setPrimaryLoadComplete:]):
996 (-[WebDataSource dealloc]):
997 (-[WebDataSource webFrame]):
998 (-[WebDataSource isLoading]):
1000 2006-10-02 Maciej Stachowiak <mjs@apple.com>
1004 - fix crash on back/forward - reattach WebDocumentLoadState to data source when needed
1006 * WebView/WebDataSource.m:
1007 (-[WebDataSource _setWebFrame:]):
1008 (-[WebDataSource _initWithDocumentLoadState:]):
1009 * WebView/WebDataSourceInternal.h:
1011 2006-10-02 Maciej Stachowiak <mjs@apple.com>
1013 Build fix, not reviewed.
1015 - Added missing files to fix build.
1017 * WebView/WebDocumentLoadStateMac.h: Added.
1018 * WebView/WebDocumentLoadStateMac.m: Added.
1019 (-[WebDocumentLoadStateMac initWithRequest:]):
1020 (-[WebDocumentLoadStateMac dealloc]):
1021 (-[WebDocumentLoadStateMac setDataSource:]):
1022 (-[WebDocumentLoadStateMac dataSource]):
1023 (-[WebDocumentLoadStateMac setFrameLoader:]):
1025 2006-10-01 Maciej Stachowiak <mjs@apple.com>
1027 Reviewed by Brady and Oliver.
1029 - move things around so that WebDataSource and WebDocumentLoadState know about each other in
1030 the right way. This lines things up to move nearly all functionality down to WebDocumentLoadState.
1032 * Loader/WebDocumentLoadState.h:
1033 * Loader/WebDocumentLoadState.m:
1034 (-[WebDocumentLoadState initWithRequest:]):
1035 (-[WebDocumentLoadState dealloc]):
1036 (-[WebDocumentLoadState originalRequest]):
1037 * Loader/WebFrameLoader.h:
1038 * Loader/WebFrameLoader.m:
1039 (-[WebFrameLoader dealloc]):
1040 (-[WebFrameLoader addSubresourceLoader:]):
1041 (-[WebFrameLoader startLoadingMainResourceWithRequest:identifier:]):
1042 (-[WebFrameLoader dataSource]):
1043 (-[WebFrameLoader _setDocumentLoadState:]):
1044 (-[WebFrameLoader policyDataSource]):
1045 (-[WebFrameLoader _setPolicyDocumentLoadState:]):
1046 (-[WebFrameLoader clearDataSource]):
1047 (-[WebFrameLoader provisionalDataSource]):
1048 (-[WebFrameLoader _setProvisionalDocumentLoadState:]):
1049 (-[WebFrameLoader _clearProvisionalDataSource]):
1050 (-[WebFrameLoader _setState:]):
1051 (-[WebFrameLoader clearProvisionalLoad]):
1052 (-[WebFrameLoader commitProvisionalLoad]):
1053 (-[WebFrameLoader stopLoading]):
1054 (-[WebFrameLoader startLoading]):
1055 (-[WebFrameLoader startProvisionalLoad:]):
1056 (-[WebFrameLoader setupForReplace]):
1057 (-[WebFrameLoader activeDocumentLoadState]):
1058 (-[WebFrameLoader activeDataSource]):
1059 (-[WebFrameLoader _loadRequest:archive:]):
1060 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
1061 (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
1062 (-[WebFrameLoader reload]):
1063 * WebKit.xcodeproj/project.pbxproj:
1064 * WebView/WebDataSource.m:
1065 (-[WebDataSourcePrivate dealloc]):
1066 (-[WebDataSource _startLoading]):
1067 (-[WebDataSource _setWebFrame:]):
1068 (-[WebDataSource _documentLoadState]):
1069 (-[WebDataSource _initWithDocumentLoadState:]):
1070 (-[WebDataSource initWithRequest:]):
1071 (-[WebDataSource initialRequest]):
1072 (-[WebDataSource unreachableURL]):
1073 * WebView/WebDataSourceInternal.h:
1074 * WebView/WebFrame.m:
1075 (-[WebFramePrivate dealloc]):
1076 (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
1077 (-[WebFrame _loadDataSource:withLoadType:formState:]):
1078 (-[WebFrame _policyDataSource]):
1079 (-[WebFrame _shouldReloadToHandleUnreachableURLFromRequest:]):
1080 (-[WebFrame _dataSourceForDocumentLoadState:]):
1081 (-[WebFrame _createDocumentLoadStateWithRequest:]):
1082 * WebView/WebFrameInternal.h:
1084 2006-09-29 David Hyatt <hyatt@apple.com>
1086 Change the default minimum font size pref to 0 in order to allow
1087 font-size:0 to work.
1089 * WebView/WebPreferences.m:
1090 (+[WebPreferences initialize]):
1092 2006-09-28 Timothy Hatcher <timothy@apple.com>
1096 Switch the inspector over to use border-image with styled buttons and selects.
1098 * WebInspector/WebInspector.m:
1099 (-[NSWindow window]):
1100 (-[NSWindow setWebFrame:]):
1101 (-[WebInspector _updateRoot]):
1102 * WebInspector/webInspector/Images/button.png: Added.
1103 * WebInspector/webInspector/Images/buttonDivider.png: Added.
1104 * WebInspector/webInspector/Images/buttonPressed.png: Added.
1105 * WebInspector/webInspector/Images/popup.png: Added.
1106 * WebInspector/webInspector/Images/popupFill.png: Removed.
1107 * WebInspector/webInspector/Images/popupFillPressed.png: Removed.
1108 * WebInspector/webInspector/Images/popupLeft.png: Removed.
1109 * WebInspector/webInspector/Images/popupLeftPressed.png: Removed.
1110 * WebInspector/webInspector/Images/popupPressed.png: Added.
1111 * WebInspector/webInspector/Images/popupRight.png: Removed.
1112 * WebInspector/webInspector/Images/popupRightPressed.png: Removed.
1113 * WebInspector/webInspector/Images/squareButtonRight.png: Removed.
1114 * WebInspector/webInspector/Images/squareButtonRightPressed.png: Removed.
1115 * WebInspector/webInspector/inspector.css:
1116 * WebInspector/webInspector/inspector.html:
1117 * WebInspector/webInspector/inspector.js:
1119 2006-09-28 Alice Liu <alice.liu@apple.com>
1121 fixing the windows build
1124 (WebView::mouseMoved):
1125 (WebView::mouseDown):
1127 (WebView::mouseDoubleClick):
1129 2006-09-27 Justin Garcia <justin.garcia@apple.com>
1131 Reviewed by thatcher
1133 <rdar://problem/4044271>
1134 Writing Direction menu doesn't reflect the current writing direction (9773)
1136 * English.lproj/Localizable.strings: Added "Right to Left" and "Left to Right"
1137 * WebView/WebHTMLView.m:
1138 (-[NSArray validateUserInterfaceItem:]): Validate menu items that perform
1139 toggleBaseWritingDirection and changeBaseWritingDirection.
1140 Disable the menu item that changes the writing direction to NSWritingDirectionNautral
1141 because NSWritingDirectionNatural's behavior can't be implemented with CSS.
1142 Take control of the title of the menu item that performs toggleBaseWritingDirection:
1143 instead of checking/unchecking it, otherwise we wouldn't know what a check means.
1144 (-[NSArray changeBaseWritingDirection:]): ASSERT that the requested writing
1145 direction is not NSWritingDirectionNatural, since we've disabled the
1146 menu item that performs it.
1148 2006-09-27 MorganL <morganl.webkit@yahoo.com>
1150 Reviewed by Maciej, landed by Brady
1152 Update URL request associated with provisional data source on redirect.
1153 Notify IWebFrameLoadDelegate of redirects for the provisional load.
1154 Notify IWebFrameLoadDelegate of a provisional load being commited.
1156 * COM/WebDataSource.cpp:
1157 (WebDataSource::replaceRequest):
1158 * COM/WebDataSource.h:
1160 (WebFrame::receivedRedirect):
1161 (WebFrame::receivedResponse):
1162 (WebFrame::receivedData):
1164 2006-09-26 John Sullivan <sullivan@apple.com>
1168 * WebView/WebHTMLViewPrivate.h:
1169 * WebView/WebHTMLView.m:
1170 (-[WebHTMLView markAllMatchesForText:caseSensitive:limit:]):
1171 Added limit parameter, passed over the bridge. Stop the search if it hits limit.
1173 * WebView/WebViewPrivate.h:
1174 * WebView/WebView.m:
1175 (-[WebView markAllMatchesForText:caseSensitive:highlight:limit:]):
1176 Added limit parameter, passed to WebHTMLView.
1178 2006-09-26 David Harrison <harrison@apple.com>
1180 Reviewed by John and TimH.
1182 <rdar://problem/4743256> Seed: Ctrl-Y key binding does nothing when kill ring is empty
1184 Use deleteBackward: when the killring string is empty. Was always using insertText:,
1185 but that ends up early-returning if the string to insert is empty.
1187 * WebView/WebHTMLView.m:
1189 (-[NSArray yankAndSelect:]):
1191 2006-09-25 Timothy Hatcher <timothy@apple.com>
1195 Use the non-deprecated method names for getComputedStyle, setEnd and setStart.
1197 * WebInspector/WebInspector.m:
1198 (-[WebInspector _highlightNode:]):
1199 * WebView/WebHTMLView.m:
1201 (-[WebHTMLView _selectRangeInMarkedText:]):
1202 (-[WebTextCompleteController doCompletion]):
1203 * WebView/WebView.m:
1204 (-[WebView computedStyleForElement:pseudoElement:]):
1206 2006-09-22 Timothy Hatcher <timothy@apple.com>
1210 Pass all headers through unifdef to filter out BUILDING_ON_TIGER blocks
1211 if MACOSX_DEPLOYMENT_TARGET is 10.4.
1213 * MigrateHeaders.make:
1215 2006-09-20 Justin Garcia <justin.garcia@apple.com>
1219 <http://bugs.webkit.org/show_bug.cgi?id=7165>
1220 TinyMCE: Dragging & dropping content always leaves a copy when editing inside a subframe
1222 The top level WebHTMLView is responsible for performing dragging operations, but
1223 the inner view, the view that holds the drag caret, should be consulted to determine
1224 if the drag is a move drag.
1226 * WebCoreSupport/WebFrameBridge.m:
1227 (-[WebFrameBridge startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
1228 * WebKit.xcodeproj/project.pbxproj:
1229 * WebView/WebHTMLView.m:
1230 (-[NSArray dragImage:at:offset:event:pasteboard:source:slideBack:]): Don't set initatedDrag here, because
1231 it's only the top level WebHTMLView that performs this operation.
1232 (-[WebHTMLView _setInitiatedDrag:]): Added.
1233 (-[WebHTMLView _initiatedDrag]): Ditto.
1234 (-[WebHTMLView _canProcessDragWithDraggingInfo:]): Ask the innerView if it initiated the drag,
1235 not the top level view.
1236 (-[WebHTMLView _isMoveDrag]): The top level view asks the innerView if it should perform
1237 a move drag, so don't ASSERT _isTopHTMLView.
1238 (-[WebHTMLView draggingUpdatedWithDraggingInfo:actionMask:]): Ask the innerView if _isMoveDrag.
1239 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): Ditto.
1240 * WebView/WebHTMLViewInternal.h: Added two private SPI so that
1241 the top level WebHTMLView can set and get the initiatedDrag BOOL.
1243 === Safari-521.27 ===
1245 2006-09-20 Brady Eidson <beidson@apple.com>
1247 Reviewed by Tim Omernick
1249 Fixing part of a crash Tim O showed me. [WebIconDatabase init] should finish
1250 gracefully even if we can't open the database
1252 * Misc/WebIconDatabase.m:
1253 (-[WebIconDatabase init]):
1255 2006-09-20 Timothy Hatcher <timothy@apple.com>
1259 <rdar://problem/4741392> Develop a system to find what version of WebKit an app was linked with
1261 * Misc/WebKitVersionChecks.h: Added.
1262 * Misc/WebKitVersionChecks.m: Added.
1263 (WebKitLinkedOnOrAfter): Added.
1264 (WebKitLinkTimeVersion): Added.
1265 (WebKitRunTimeVersion): Added.
1266 * WebKit.xcodeproj/project.pbxproj:
1268 2006-09-20 Tim Omernick <timo@apple.com>
1272 * Misc/WebIconDatabase.m:
1273 (-[WebIconDatabase init]):
1276 2006-09-20 Brady Eidson <beidson@apple.com>
1280 Preparing to make the WebIconDatabase disabled by default - this patch tells the bridge whether its enabled or not
1282 * Misc/WebIconDatabase.m:
1283 (-[WebIconDatabase init]):
1285 2006-09-19 Brady Eidson <beidson@apple.com>
1287 Reviewed by Sarge Decker
1289 <rdar://problem/4739892> and <rdar://problem/4729797>
1290 - WebCore::IconDatabase needs to have and respect an enabled() flag
1291 - Mail on ToT WebKit crashes in IconDatabase code when mailing a page from Safari
1293 * Misc/WebIconDatabase.m:
1294 (-[WebIconDatabase init]): If preference says icons are disabled, tell the bridge
1295 (-[WebIconDatabase _isEnabled]): Ask the bridge if the database is enabled
1297 2006-09-19 Alexey Proskuryakov <ap@nypop.com>
1301 http://bugs.webkit.org/show_bug.cgi?id=10661
1302 REGRESSION: CFM plug-ins (Shockwave, SVG) are not loaded
1304 * Plugins/WebBasePluginPackage.m:
1305 (-[WebBasePluginPackage initWithPath:]): On 32-bit PowerPC, don't bail out if
1306 the bundle is nil - it can be a CFM plugin.
1308 2006-09-18 Brady Eidson <beidson@apple.com>
1312 Implement a bridge method so WebCore can find the reload type of a frame load
1314 * WebCoreSupport/WebFrameBridge.m:
1315 (-[WebFrameBridge isLoadTypeReload]):
1317 2006-09-18 Sam Weinig <sam.weinig@gmail.com>
1321 Patch for http://bugs.webkit.org/show_bug.cgi?id=10903
1322 Yet Another Objective-C Bindings Patch
1324 * MigrateHeaders.make:
1326 2006-09-17 David Harrison <harrison@apple.com>
1328 Reviewed by John Sullivan.
1330 <rdar://problem/4494340> REGRESSION: Making the font size bigger/smaller in an HTML message doesn't affect the body until you reopen it
1332 Problem was the public API -[WebView setTextSizeMultiplier] did not notify anyone that the value changed.
1334 * WebView/WebDocumentInternal.h:
1335 Add _textSizeMultiplierChanged to the _WebDocumentTextSizing protocol.
1337 * WebView/WebHTMLView.m:
1338 (-[WebHTMLView _textSizeMultiplierChanged]):
1339 Send [self _updateTextSizeMultiplier].
1341 * WebView/WebPDFView.m:
1342 (-[WebPDFView _textSizeMultiplierChanged]):
1343 ASSERT_NOT_REACHED() because WebPDFView does not track the common multiplier.
1345 * WebView/WebView.m:
1346 (-[WebView setTextSizeMultiplier:]):
1347 Send [self _notifyTextSizeMultiplierChanged];
1349 (-[WebView _performTextSizingSelector:withObject:onTrackingDocs:selForNonTrackingDocs:newScaleFactor:]):
1350 Alter the _textSizeMultiplier directly so that notification is not sent.
1353 (-[WebView _notifyTextSizeMultiplierChanged]):
1354 New. Send _textSizeMultiplierChanged to all document views that track the common multiplier.
1356 2006-09-16 Brady Eidson <beidson@apple.com>
1360 WebIconLoader is dead, long live WebCore::IconLoader
1363 * Loader/WebFrameLoader.h:
1364 * Loader/WebFrameLoader.m:
1365 (-[WebFrameLoader dealloc]):
1366 (-[WebFrameLoader commitProvisionalLoad]):
1367 * Loader/WebIconLoader.h: Removed.
1368 * Loader/WebIconLoader.m: Removed.
1369 * Misc/WebIconDatabase.h:
1370 * Misc/WebIconDatabase.m:
1371 * Misc/WebIconDatabasePrivate.h:
1372 * WebCoreSupport/WebFrameBridge.m:
1373 (-[WebFrameBridge notifyIconChanged:]):
1374 * WebCoreSupport/WebIconDatabaseBridge.h:
1375 * WebCoreSupport/WebIconDatabaseBridge.m:
1376 (-[WebIconDatabaseBridge _init]):
1377 (-[WebIconDatabaseBridge _setIconData:forIconURL:]):
1378 (-[WebIconDatabaseBridge _setHaveNoIconForIconURL:]):
1380 * WebKit.xcodeproj/project.pbxproj:
1381 * WebView/WebDataSource.m:
1382 (-[WebDataSourcePrivate dealloc]):
1383 (-[WebDataSource _stopLoading]):
1384 (-[WebDataSource _setPrimaryLoadComplete:]):
1385 * WebView/WebDataSourceInternal.h:
1387 2006-09-16 Mark Rowe <opendarwin.org@bdash.net.nz>
1391 http://bugs.webkit.org/show_bug.cgi?id=10887
1394 * MigrateHeaders.make: Remove reference to DOMEventPrivate.h.
1396 2006-09-15 Timothy Hatcher <timothy@apple.com>
1400 Make new style ObjC methods public API.
1402 * MigrateHeaders.make:
1404 2006-09-15 Sam Weinig <sam.weinig@gmail.com>
1408 Patch for http://bugs.webkit.org/show_bug.cgi?id=10870
1409 Auto-generate DOMNode for the Objective-C bindings
1411 * MigrateHeaders.make:
1413 2006-09-15 Timothy Hatcher <timothy@apple.com>
1417 Call the bridge directly for alter selection calls. All of this logic is now
1418 in WebCore's SelectionController.
1420 * WebView/WebHTMLView.m:
1421 (-[NSArray moveBackward:]):
1422 (-[NSArray moveBackwardAndModifySelection:]):
1423 (-[NSArray moveDown:]):
1424 (-[NSArray moveDownAndModifySelection:]):
1425 (-[NSArray moveForward:]):
1426 (-[NSArray moveForwardAndModifySelection:]):
1427 (-[NSArray moveLeft:]):
1428 (-[NSArray moveLeftAndModifySelection:]):
1429 (-[NSArray moveRight:]):
1430 (-[NSArray moveRightAndModifySelection:]):
1431 (-[NSArray moveToBeginningOfDocument:]):
1432 (-[NSArray moveToBeginningOfDocumentAndModifySelection:]):
1433 (-[NSArray moveToBeginningOfSentence:]):
1434 (-[NSArray moveToBeginningOfSentenceAndModifySelection:]):
1435 (-[NSArray moveToBeginningOfLine:]):
1436 (-[NSArray moveToBeginningOfLineAndModifySelection:]):
1437 (-[NSArray moveToBeginningOfParagraph:]):
1438 (-[NSArray moveToBeginningOfParagraphAndModifySelection:]):
1439 (-[NSArray moveToEndOfDocument:]):
1440 (-[NSArray moveToEndOfDocumentAndModifySelection:]):
1441 (-[NSArray moveToEndOfSentence:]):
1442 (-[NSArray moveToEndOfSentenceAndModifySelection:]):
1443 (-[NSArray moveToEndOfLine:]):
1444 (-[NSArray moveToEndOfLineAndModifySelection:]):
1445 (-[NSArray moveToEndOfParagraph:]):
1446 (-[NSArray moveToEndOfParagraphAndModifySelection:]):
1447 (-[NSArray moveParagraphBackwardAndModifySelection:]):
1448 (-[NSArray moveParagraphForwardAndModifySelection:]):
1449 (-[NSArray moveUp:]):
1450 (-[NSArray moveUpAndModifySelection:]):
1451 (-[NSArray moveWordBackward:]):
1452 (-[NSArray moveWordBackwardAndModifySelection:]):
1453 (-[NSArray moveWordForward:]):
1454 (-[NSArray moveWordForwardAndModifySelection:]):
1455 (-[NSArray moveWordLeft:]):
1456 (-[NSArray moveWordLeftAndModifySelection:]):
1457 (-[NSArray moveWordRight:]):
1458 (-[NSArray moveWordRightAndModifySelection:]):
1459 (-[NSArray pageUp:]):
1460 (-[NSArray pageDown:]):
1461 (-[NSArray pageUpAndModifySelection:]):
1462 (-[NSArray pageDownAndModifySelection:]):
1464 2006-09-15 Adam Roben <aroben@apple.com>
1466 Reviewed by eseidel.
1468 Fixes http://bugs.webkit.org/show_bug.cgi?id=10876
1469 containsItemForURLUnicode uses matchLetter instead of
1472 Small fixes for _WebCoreHistoryProvider.
1474 * History/WebHistory.m: Consistently use BUFFER_SIZE #define
1475 (-[_WebCoreHistoryProvider containsItemForURLLatin1:length:]):
1476 (-[_WebCoreHistoryProvider containsItemForURLUnicode:length:]):
1477 Replace incorrect call to matchLetter to matchUnicodeLetter
1479 2006-09-13 Brady Eidson <beidson@apple.com>
1483 Add infrastructure to support icon loads taking place in WebCore
1484 Will remove WebKit icon loaders in a later patch
1486 * WebCoreSupport/WebFrameBridge.m:
1487 (-[WebFrameBridge notifyIconChanged:]):
1488 (-[WebFrameBridge originalRequestURL]):
1489 - Nuked two old, obsolete methods
1490 - Added bridge for notifying of an icon change
1491 - Added bridge for getting the "original request URL" which is still needed
1492 until that info is available in the WebCore loaders
1494 * WebView/WebDataSource.m:
1495 (-[WebDataSource _loadIcon]):
1496 - Empty body just for now, as it still gets called - next patch will prune all the old impl out
1498 2006-09-13 Timothy Hatcher <timothy@apple.com>
1502 <rdar://problem/4726416> obsolete confusing "ADVISORY NOTE" comment in WebHistory.h
1504 Removed the "ADVISORY NOTE: This method may change for the 1.0 SDK" comments.
1506 * History/WebHistory.h:
1508 === Safari-521.26 ===
1510 2006-09-11 MorganL <morlmor@yahoo.com>
1512 Reviewed/landed by aroben.
1514 Fixes http://bugs.webkit.org/show_bug.cgi?id=10765
1515 Windows build busted due to std::copy usage in Vector.h
1517 * WebKit.vcproj/WebKit.vcproj: Define _SCL_SECURE_NO_DEPRECATE to get
1518 rid of deprecation warnings on std::copy
1520 2006-09-11 Brady Eidson <beidson@apple.com>
1522 Despite the fact that some people built okay without this change, it sure was biting me,
1523 probably because I just wiped my build directory for a fresh build -
1524 Today's earlier removal of DOMList.h needed to occur in MigrateHeaders.make, as well
1526 * MigrateHeaders.make: removed DOMList.h
1528 2006-09-10 Darin Adler <darin@apple.com>
1532 - fix http://bugs.webkit.org/show_bug.cgi?id=10547
1533 REGRESSION: Links that should open in a new window open in the same window,
1534 while opening another blank window
1536 * WebView/WebFrame.m:
1537 (-[WebFrame _continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
1538 Changed a mistaken "self" to "frame", which was the cause of the bug. Also
1539 fixed the method so that it won't crash if createWebViewWithRequest does
1540 something that has a side effect of releasing this WebView or this frame
1541 by retaining "self" and "frame" as needed. Also fixed a problem where the
1542 code to set "opener" was backwards, and would set the opener of the old
1543 frame to point to the new frame instead of vice versa.
1545 2006-09-09 Sam Weinig <sam.weinig@gmail.com>
1549 Patch for http://bugs.webkit.org/show_bug.cgi?id=10795
1550 Auto-generate the Objective-C DOM XPath bindings
1552 * MigrateHeaders.make:
1554 2006-09-09 Sam Weinig <sam.weinig@gmail.com>
1558 Patch for http://bugs.webkit.org/show_bug.cgi?id=10791
1559 Even More Objective-C DOM auto-generation cleanup
1561 * MigrateHeaders.make:
1563 2006-09-08 Tim Omernick <timo@apple.com>
1565 Reviewed by Brady Eidson.
1567 Rolled out Maciej's code cleanup from 8/22. It turns out that keeping the "loading" flag
1568 is a useful optimization, as it avoids many Objective-C method calls while polling resources
1569 for their load state.
1571 This fixes a 3-4% PLT performance regression (as measured on my MacBook Pro).
1573 * Loader/WebFrameLoader.m:
1574 (-[WebFrameLoader addPlugInStreamLoader:]):
1575 (-[WebFrameLoader removePlugInStreamLoader:]):
1576 (-[WebFrameLoader addSubresourceLoader:]):
1577 (-[WebFrameLoader removeSubresourceLoader:]):
1578 * WebView/WebDataSource.m:
1579 (-[WebDataSourcePrivate dealloc]):
1580 (-[WebDataSource _prepareForLoadStart]):
1581 (-[WebDataSource _setLoading:]):
1582 (-[WebDataSource _updateLoading]):
1583 (-[WebDataSource _startLoading]):
1584 (-[WebDataSource _stopLoading]):
1585 (-[WebDataSource _setPrimaryLoadComplete:]):
1586 (-[WebDataSource isLoading]):
1587 * WebView/WebDataSourceInternal.h:
1589 2006-09-07 Sam Weinig <sam.weinig@gmail.com>
1591 Reviewed by Darin and Tim H.
1593 Patch for http://bugs.webkit.org/show_bug.cgi?id=10774
1594 Auto-generate the Objective-C DOM Traversal bindings
1596 * MigrateHeaders.make:
1598 2006-09-07 Sam Weinig <sam.weinig@gmail.com>
1602 Patch for http://bugs.webkit.org/show_bug.cgi?id=10766
1603 Auto-generate the Objective-C DOM Events bindings
1605 * MigrateHeaders.make:
1606 * WebKit.xcodeproj/project.pbxproj:
1608 2006-09-06 Alexey Proskuryakov <ap@nypop.com>
1610 * MigrateHeaders.make: Fixed a double slash in
1611 "$(PRIVATE_HEADERS_DIR)//DOMCharacterDataPrivate.h" (this was reported
1612 to cause a build failure under certain circumstances).
1614 2006-09-05 MorganL <morlmor@yahoocom>
1616 Reviewed/landed by aroben.
1618 Fixes bug 10743: Windows build is busted.
1621 (WebView::keyPress):
1623 2006-09-05 Timothy Hatcher <timothy@apple.com>
1627 Drastically simplified the makefile for migrating headers from
1628 WebCore and JavaScriptCore. The old version was always copying the files.
1630 * MigrateHeaders.make:
1632 2006-09-05 Darin Adler <darin@apple.com>
1636 - WebKit side of changes to encoding
1638 * WebView/WebHTMLRepresentation.m: (-[WebHTMLRepresentation documentSource]):
1639 Changed to call new -[WebCoreFrameBridge stringWithData:] instead of the calling
1640 the old methods that used a CFStringEncoding: -[WebCoreFrameBridge textEncoding]
1641 and +[WebCoreFrameBridge stringWithData:textEncoding:].
1643 * WebView/WebResource.m: (-[WebResource _stringValue]): Removed special case for
1644 nil encoding name. The bridge itself now has the rule that "nil encoding name
1645 means Latin-1", so we don't need to check for nil.
1647 * WebView/WebFrame.m: (-[WebFrame _checkLoadComplete]): Retain the frame until
1648 we get the parent frame while walking up parent frames, because it's possible
1649 for _checkLoadCompleteForThisFrame to release the last reference to the frame.
1650 (Not reviewed; needed to run performance tests successfully.)
1652 2006-09-05 Timothy Hatcher <timothy@apple.com>
1656 <rdar://problem/4682225> conflicting typedefs in Netscape plug-in headers
1658 * Plugins/npfunctions.h: fix the return type for NPN_IntFromIdentifierProcPtr to be int32_t
1660 2006-09-04 Timothy Hatcher <timothy@apple.com>
1664 Bug 10714: ObjC autogeneration needs safe-guards against easily modifying the public API
1665 http://bugs.webkit.org/show_bug.cgi?id=10714
1667 - Added the new private DOM headers.
1668 - Factored out the common commands into variables.
1669 - Made WebDashboardRegion.h private again.
1670 - Rename DOMDOMImplementation.h to DOMImplementation.h when files
1671 are migrated. Also fixes up #imports.
1673 * MigrateHeaders.make:
1675 2006-09-03 Sam Weinig <sam.weinig@gmail.com>
1677 Reviewed by Darin and Tim H.
1679 - patch for http://bugs.webkit.org/show_bug.cgi?id=10711
1680 Auto-generate the Objective-C DOM Stylesheet bindings
1682 * MigrateHeaders.make:
1684 2006-09-02 Sam Weinig <sam.weinig@gmail.com>
1688 - patch for http://bugs.webkit.org/show_bug.cgi?id=10684
1689 Auto-generate the Objective-C DOM CSS bindings
1691 * MigrateHeaders.make:
1693 2006-09-01 MorganL <morlmor@yahoo.com>
1695 Reviewed by Darin. Updated/landed by Adam.
1697 Fixes http://bugs.webkit.org/show_bug.cgi?id=10553
1701 (WebFrame::initWithName):
1703 2006-09-01 Brady Eidson <beidson@apple.com>
1707 A "never should be reached" method was reached - lets not release the shared database bridge, esp
1708 since we never retain it!
1710 * Misc/WebIconDatabase.m:
1711 (-[WebIconDatabase _applicationWillTerminate:]): Don't release the bridge
1713 2006-09-01 Darin Adler <darin@apple.com>
1717 - a few small tweaks to the icon database bridge
1719 * Misc/WebIconDatabase.m: (-[WebIconDatabase init]): Updated for name change.
1721 * WebCoreSupport/WebIconDatabaseBridge.h: Removed unneeded declarations.
1722 * WebCoreSupport/WebIconDatabaseBridge.m:
1723 (-[WebIconDatabaseBridge init]): Added. Always returns nil since you're not supposed
1724 to allocate one of these.
1725 (-[WebIconDatabaseBridge _init]): Renamed from init. Used internally to make the
1726 shared instance. Added the "self = [super init]" idiom even though it's not important
1727 in this case just to be consistent.
1728 (-[WebIconDatabaseBridge releaseCachedLoaderForIconURL:]): Moved this up in the file
1729 so it can be called without declaring it in the header.
1730 (+[WebIconDatabaseBridge sharedInstance]): Renamed. Calls the new _init. Also use
1731 CFRetain for compatibility.
1732 (-[WebIconDatabaseBridge dealloc]): Emptied this out and made it just assert (false).
1733 (-[WebIconDatabaseBridge finalize]): Added and made it assert (false) too.
1735 2006-09-01 Timothy Hatcher <timothy@apple.com>
1739 Bug 10677: Omit "-webkit-text-security: none;" from the computed style list
1740 http://bugs.webkit.org/show_bug.cgi?id=10677
1742 * WebInspector/webInspector/inspector.js:
1744 2006-08-31 Sam Weinig <sam.weinig@gmail.com>
1748 - patch for http://bugs.webkit.org/show_bug.cgi?id=10669
1749 Auto-generate the remaining Objective-C HTML DOM bindings
1751 * MigrateHeaders.make:
1753 2006-08-31 Adele Peterson <adele@apple.com>
1757 WebKit part of fix for http://bugs.webkit.org/show_bug.cgi?id=10666
1758 Password: Disallow Spelling, Font, Speech, and Writing Direction context menu
1760 * DefaultDelegates/WebDefaultContextMenuDelegate.m: (-[WebDefaultUIDelegate editingContextMenuItemsForElement:defaultMenuItems:]):
1761 Check that the selection isn't in a password field before adding these items to the default editing context menu.
1762 Search In Google, Search In Spotlight, Look up in Dictionary, Spelling, Font, Speech, Writing Direction
1763 * WebView/WebHTMLView.m: (-[WebHTMLView _isSelectionInPasswordField]): Added.
1764 * WebView/WebHTMLViewPrivate.h:
1766 2006-08-31 Sam Weinig <sam.weinig@gmail.com>
1770 - patch for http://bugs.webkit.org/show_bug.cgi?id=10653
1771 Auto-generate another 20 Objective-C DOM HTML bindings
1773 * MigrateHeaders.make:
1774 * WebKit.xcodeproj/project.pbxproj:
1776 2006-08-31 Adele Peterson <adele@apple.com>
1778 Reviewed by John Sullivan.
1780 Removed wkSecureEventInput and wkSetSecureEventInput, since this can be done with API.
1782 * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface):
1784 2006-08-31 John Sullivan <sullivan@apple.com>
1786 Reviewed by Tim Omernick
1788 - fixed <rdar://problem/4711200> Loading history would be faster if it bypassed
1789 NSURL API for local files
1791 * History/WebHistory.m:
1792 (-[WebHistoryPrivate _loadHistoryGutsFromURL:savedItemsCount:collectDiscardedItemsInto:error:]):
1793 Load file URLs using [NSDictionary dictionaryWithContentsOfFile:]. I also cleaned up some minor
1794 style issues in this method, and I removed the support for old NSArray-style history files (which we
1795 stopped using before Safari 1.0).
1797 2006-08-30 Adele Peterson <adele@apple.com>
1801 WebKit part of fix for http://bugs.webkit.org/show_bug.cgi?id=10575
1802 Enable secure input mode for new password fields
1804 * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface):
1806 2006-08-30 Brady Eidson <beidson@apple.com>
1810 <rdar://problem/4707718> Change behavior so if the WebCore::IconDatabase can't open, WebKit releases the bridge and
1811 continues on as if the IconDatabase is disabled.
1813 * Misc/WebIconDatabase.m:
1814 (-[WebIconDatabase init]): Release the bridge on failure to open
1815 * WebCoreSupport/WebIconDatabaseBridge.m:
1816 (+[WebIconDatabaseBridge sharedBridgeInstance]): Moved static shared instance out as a global
1817 (-[WebIconDatabaseBridge dealloc]): Clear pointer to the shared instance
1819 2006-08-30 Timothy Hatcher <timothy@apple.com>
1823 Simplify the header copies from WebCore and JavaScriptCore.
1824 Headers that need to be migrated from the other projects need
1825 to be added to MigrateHeaders.make.
1827 * MigrateHeaders.make: Added.
1828 * WebKit.xcodeproj/project.pbxproj:
1830 2006-08-30 Sam Weinig <sam.weinig@gmail.com>
1834 - patch for http://bugs.webkit.org/show_bug.cgi?id=10640
1835 Auto-generate 10 more Objective-C DOM HTML bindings
1837 * WebKit.xcodeproj/project.pbxproj:
1839 2006-08-30 Adele Peterson <adele@apple.com>
1843 WebKit part of fix for:
1844 http://bugs.webkit.org/show_bug.cgi?id=10576
1845 Disallow copy from new password fields
1847 * WebView/WebHTMLView.m:
1848 (-[WebHTMLView _canCopy]): Now also calls across the bridge to ask if it mayCopy.
1849 (-[WebHTMLView _canCut]): Calls _canCopy now.
1850 (-[NSArray validateUserInterfaceItem:]): Calls _canCut when validating the "Cut" menu item.
1851 This used to call _canDelete (which used to be the same as _canCut), but now _canCut also checks _canCopy.
1853 2006-08-30 Karl Adam <karladam@yahoo-inc.com>
1855 Reviewed by Eric and Tim H.
1857 Bug 10634: -webView:dragDestinationActionMaskForDraggingInfo: is ignored
1858 http://bugs.webkit.org/show_bug.cgi?id=10634
1860 Remove the check for canShowFile: from _web_bestURL: since
1861 it shouldn't be concerned with whether or not the view
1862 can show the URL, merely return the most appropriate URL.
1864 * Misc/WebNSPasteboardExtras.m:
1865 (-[NSPasteboard _web_bestURL]):
1866 * Misc/WebNSViewExtras.m:
1867 (-[NSView _web_dragOperationForDraggingInfo:]):
1869 2006-08-29 Brady Eidson <beidson@apple.com>
1871 Reviewed by Kevin Decker (Sarge)
1873 <rdar://problem/4678414> - New IconDB needs to delete icons when asked
1875 * Misc/WebIconDatabase.m:
1876 (-[WebIconDatabase removeAllIcons]): Call through to WebCore to remove icons, then send notification
1878 2006-08-29 Brady Eidson <beidson@apple.com>
1882 Added a truth value check for to setIconURL:forURL so WebKit can avoid sending a notification
1883 This is a win on the iBench
1885 * Misc/WebIconDatabase.m:
1886 (-[WebIconDatabase _setIconURL:forURL:]):
1888 2006-08-29 Brady Eidson <beidson@apple.com>
1890 Reviewed by Tim Hatchers rubber stamp
1892 Removed some accidentally left-in console spew during the conversion to the new DB
1894 * Misc/WebIconDatabase.m:
1895 (objectFromPathForKey): Nuked some NSLogs
1897 2006-08-29 Tim Omernick <timo@apple.com>
1899 Reviewed by Darin Adler.
1901 <rdar://problem/4688618> REGRESSION(10.4.7-9A241): JMol java applet fails in Safari not Firefox
1903 No layout test for now because Java doesn't work in DumpRenderTree.
1905 * Plugins/WebPluginDatabase.m:
1906 (-[WebPluginDatabase refresh]):
1907 Add each plug-in MIME type to registeredMIMETypes, even if we don't register a document view class for the
1908 MIME type. This fixes -[WebPluginDatabase isMIMETypeRegistered:] and thus fallback content for Java applets
1909 (we were always rendering fallback content, if any, for Java applets).
1911 2006-08-29 Sam Weinig <sam.weinig@gmail.com>
1915 - patch for http://bugs.webkit.org/show_bug.cgi?id=10628
1916 Auto-generate the remaining Objective-C DOM bindings
1918 Auto-generates DOMHTMLCollection, DOMHTMLElement, DOMHTMLFormElement,
1919 and DOMHTMLOptionsCollection.
1921 * WebKit.xcodeproj/project.pbxproj:
1923 2006-08-28 Brady Eidson <beidson@apple.com>
1927 Short of a few small snippets that still need to be pushed to WebCore, this
1928 is a final prune of WebIconDatabase. WebFileDatabase and WebLRUFileList are gone
1929 and the small remaining snippets of WebFileDatabase code that were still important
1930 are now in static functions in WebIconDatabase.m
1932 * Loader/WebIconLoader.m:
1933 (-[WebIconLoader didFinishLoading]): Removed the flag
1934 * Misc/WebFileDatabase.h: Removed.
1935 * Misc/WebFileDatabase.m: Removed.
1936 * Misc/WebIconDatabase.m:
1937 (+[WebIconDatabase sharedIconDatabase]):
1938 (-[WebIconDatabase init]):
1939 (-[WebIconDatabase iconForURL:withSize:cache:]):
1940 (-[WebIconDatabase iconURLForURL:]):
1941 (-[WebIconDatabase defaultIconWithSize:]):
1942 (-[WebIconDatabase retainIconForURL:]):
1943 (-[WebIconDatabase releaseIconForURL:]):
1944 (-[WebIconDatabase _isEnabled]):
1945 (-[WebIconDatabase _setIconData:forIconURL:]):
1946 (-[WebIconDatabase _setHaveNoIconForIconURL:]):
1947 (-[WebIconDatabase _setIconURL:forURL:]):
1948 (-[WebIconDatabase _hasEntryForIconURL:]):
1949 (-[WebIconDatabase _applicationWillTerminate:]):
1950 (-[WebIconDatabase _resetCachedWebPreferences:]):
1951 (uniqueFilePathForKey): Added from WebFileDatabase
1952 (objectFromPathForKey): Added from WebFileDatabase
1953 (iconDataFromPathForIconURL):
1954 (-[WebIconDatabase _convertToWebCoreFormat]): Make use of static functions and local variables
1955 instead of using WebFileDatabase and WebIconDatabase variables that are now obsolete
1956 * Misc/WebIconDatabasePrivate.h: Removed alot of obsoleted members
1957 * Misc/WebLRUFileList.h: Removed.
1958 * Misc/WebLRUFileList.m: Removed.
1959 * WebKit.xcodeproj/project.pbxproj: Deleted 4 files
1960 * WebKitPrefix.h: Removed ICONDEBUG
1962 2006-08-28 Tim Omernick <timo@apple.com>
1964 Reviewed by Darin Adler.
1966 * Plugins/WebBaseNetscapePluginView.m:
1967 (-[WebBaseNetscapePluginView createPluginScriptableObject]):
1968 Removed a bogus typecast.
1970 2006-08-28 Tim Omernick <timo@apple.com>
1972 Reviewed by John Sullivan.
1974 Part of <rdar://problem/4481553> NetscapeMoviePlugIn example code scripting doesn't work in Firefox (4319)
1975 <http://bugs.webkit.org/show_bug.cgi?id=4319>: NetscapeMoviePlugIn example code scripting doesn't work
1978 * Plugins/WebBaseNetscapePluginView.h:
1979 * Plugins/WebBaseNetscapePluginView.m:
1980 (-[WebBaseNetscapePluginView createPluginScriptableObject]):
1981 Renamed this method (see corresponding WebCore ChangeLog entry for an explanation).
1984 2006-08-28 Brady Eidson <beidson@apple.com>
1986 Reviewed by Tim Hatcher's rubberstamp
1988 Rolled out my last change (16070 - pruning WebFileDatabase code) as it caused a difficult-to-track down
1989 failure in layout tests on a release build.
1991 * Misc/WebFileDatabase.h:
1992 * Misc/WebFileDatabase.m:
1993 (+[WebFileDatabaseOp opWithCode:key:object:]):
1994 (-[WebFileDatabaseOp initWithCode:key:object:]):
1995 (-[WebFileDatabaseOp opcode]):
1996 (-[WebFileDatabaseOp key]):
1997 (-[WebFileDatabaseOp object]):
1998 (-[WebFileDatabaseOp perform:]):
1999 (-[WebFileDatabaseOp dealloc]):
2000 (SetThreadPriority):
2001 (-[WebFileDatabase _createLRUList:]):
2002 (-[WebFileDatabase _truncateToSizeLimit:]):
2003 (+[WebFileDatabase _syncLoop:]):
2005 (-[WebFileDatabase setTimer]):
2006 (-[WebFileDatabase setObject:forKey:]):
2007 (-[WebFileDatabase removeObjectForKey:]):
2008 (-[WebFileDatabase removeAllObjects]):
2009 (-[WebFileDatabase objectForKey:]):
2010 (-[WebFileDatabase performSetObject:forKey:]):
2011 (-[WebFileDatabase performRemoveObjectForKey:]):
2012 (-[WebFileDatabase open]):
2013 (-[WebFileDatabase close]):
2014 (-[WebFileDatabase lazySync:]):
2015 (-[WebFileDatabase sync]):
2016 (-[WebFileDatabase sizeLimit]):
2017 (-[WebFileDatabase count]):
2018 (-[WebFileDatabase usage]):
2019 (-[WebFileDatabase setSizeLimit:]):
2020 * Misc/WebIconDatabase.m:
2021 (-[WebIconDatabase _createFileDatabase]):
2022 (-[WebIconDatabase _loadIconDictionaries]):
2023 * WebKit.xcodeproj/project.pbxproj:
2025 2006-08-28 Darin Adler <darin@apple.com>
2027 Reviewed by Tim Hatcher.
2029 * WebInspector/webInspector/inspector.js: Add "resize: none" to the list of
2030 default values for CSS properties so it will be omitted from most displays
2033 2006-08-28 Brady Eidson <beidson@apple.com>
2037 Major prune of unnecessary WebFileDatabase code. In the end, what
2038 useful code that remains in WebFileDatabase will likely be moved directly
2039 into WebIconDatabase
2041 * Misc/WebFileDatabase.h:
2042 * Misc/WebFileDatabase.m:
2043 (-[WebFileDatabase initWithPath:]):
2044 (-[WebFileDatabase objectForKey:]):
2045 (-[WebFileDatabase open]):
2046 (-[WebFileDatabase close]):
2047 * Misc/WebIconDatabase.m:
2048 (-[WebIconDatabase _createFileDatabase]):
2049 (-[WebIconDatabase _loadIconDictionaries]):
2050 * Misc/WebLRUFileList.h: Removed.
2051 * Misc/WebLRUFileList.m: Removed.
2052 * WebKit.xcodeproj/project.pbxproj:
2054 2006-08-27 Sam Weinig <sam.weinig@gmail.com>
2058 - patch for http://bugs.webkit.org/show_bug.cgi?id=4624
2059 WebCore needs autogenerated Obj-C DOM bindings
2061 First round of auto-generated Objective C DOM bindings, starting
2064 * WebKit.xcodeproj/project.pbxproj:
2066 2006-08-25 Brady Eidson <beidson@apple.com>
2068 Reviewed by Tim Hatcher
2070 Fixed up some leaks on [WebIconDatabase init]
2072 * Misc/WebIconDatabase.m:
2073 (-[WebIconDatabase init]):
2075 2006-08-24 Timothy Hatcher <timothy@apple.com>
2079 * WebView/WebFrame.m:
2080 (-[WebFrame _updateBackground]): reworded the comment about scroll view and setDrawsBackground:YES
2081 * WebView/WebView.m:
2082 (-[WebViewPrivate dealloc]): release the background color
2084 2006-08-24 Timothy Hatcher <timothy@apple.com>
2088 WebView API to allow changing the background color that draws under transparent page backgrounds.
2090 * WebView/WebFrame.m:
2091 (-[WebFrame _makeDocumentView]):
2092 (-[WebFrame _updateBackground]):
2093 * WebView/WebFrameInternal.h:
2094 * WebView/WebFrameView.m:
2095 (-[WebFrameView drawRect:]):
2096 * WebView/WebView.m:
2097 (-[WebView setBackgroundColor:]):
2098 (-[WebView backgroundColor]):
2099 (-[WebView _commonInitializationWithFrameName:groupName:]):
2100 (-[WebView setDrawsBackground:]):
2101 * WebView/WebViewPrivate.h:
2103 2006-08-24 Timothy Hatcher <timothy@apple.com>
2107 Fix for Mail stationary. Selecting a stationary item would cause this exception.
2108 *** -[WebSubresourceLoader copyWithZone:]: selector not recognized
2109 Uncaught exception - *** -[WebSubresourceLoader copyWithZone:]: selector not recognized
2111 * Loader/WebFrameLoader.m:
2112 (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
2113 Use _webkit_setObject:forUncopiedKey: when addign the resource to pendingArchivedResources.
2115 2006-08-23 Maciej Stachowiak <mjs@apple.com>
2119 - fix assertion which I accidentally changed to one that sometimes fails
2120 http://bugs.webkit.org/show_bug.cgi?id=10531
2122 * Loader/WebDocumentLoadState.m:
2123 (-[WebDocumentLoadState dealloc]):
2124 * WebView/WebDataSource.m:
2125 (-[WebDataSourcePrivate dealloc]):
2126 (-[WebDataSource dealloc]):
2128 2006-08-23 Maciej Stachowiak <mjs@apple.com>
2132 - move WebFrame code that creates WebDataSources down to WebFrameLoader, in preparation
2133 for WebFrameLoader just holding on to WebDocumentLoadState
2135 * Loader/WebFrameLoader.h:
2136 * Loader/WebFrameLoader.m:
2137 (-[WebFrameLoader _loadRequest:archive:]):
2138 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
2139 (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
2140 (-[WebFrameLoader reload]):
2141 * WebView/WebFrame.m:
2142 (-[WebFrame _loadItem:withLoadType:]):
2143 (-[WebFrame _continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
2144 (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
2145 (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
2146 (-[WebFrame _shouldReloadToHandleUnreachableURLFromRequest:]):
2147 (-[WebFrame loadRequest:]):
2148 (-[WebFrame loadArchive:]):
2149 (-[WebFrame reload]):
2150 * WebView/WebFrameInternal.h:
2151 * WebView/WebFramePrivate.h:
2152 * WebView/WebView.m:
2153 (-[WebView setCustomTextEncodingName:]):
2155 2006-08-23 Brady Eidson <beidson@apple.com>
2159 First pass at pruning unused WebIconDatabase code. Focus on removing methods that simply
2160 have no place in the new DB at all. A few renames and a few important FIXMEs result, but no
2161 functionality changes.
2163 * Loader/WebIconLoader.m:
2164 (-[WebIconLoader didFinishLoading]): Call to WebIconDatabase instead of directly to the bridge
2165 * Misc/WebIconDatabase.h:
2166 * Misc/WebIconDatabase.m:
2167 (-[WebIconDatabase init]):
2168 (-[WebIconDatabase iconForURL:withSize:cache:]):
2169 (-[WebIconDatabase iconURLForURL:]):
2170 (-[WebIconDatabase defaultIconWithSize:]):
2171 (-[WebIconDatabase retainIconForURL:]):
2172 (-[WebIconDatabase releaseIconForURL:]):
2173 (-[WebIconDatabase removeAllIcons]):
2174 (-[WebIconDatabase _setIconData:forIconURL:]):
2175 (-[WebIconDatabase _setHaveNoIconForIconURL:]):
2176 (-[WebIconDatabase _setIconURL:forURL:]):
2177 (-[WebIconDatabase _hasEntryForIconURL:]):
2178 (-[WebIconDatabase _applicationWillTerminate:]):
2179 (-[WebIconDatabase _resetCachedWebPreferences:]):
2180 * Misc/WebIconDatabasePrivate.h: Changed setIcon: to setIconData:
2182 2006-08-23 Maciej Stachowiak <mjs@apple.com>
2186 - started factoring most of the guts of WebDataSource into a new class
2188 WebDocumentLoadState is decoupled from the rest of WebKit and will
2189 be moved down to WebCore. I only moved one of the data fields of
2190 WebDataSource for now.
2192 * Loader/WebDocumentLoadState.h: Added.
2193 * Loader/WebDocumentLoadState.m: Added.
2194 (-[WebDocumentLoadState initWithRequest:]): New class.
2195 (-[WebDocumentLoadState dealloc]):
2196 (-[WebDocumentLoadState setFrameLoader:]):
2197 (-[WebDocumentLoadState setMainResourceData:]):
2198 (-[WebDocumentLoadState mainResourceData]):
2199 * Loader/WebFrameLoader.m:
2200 (-[WebFrameLoader _setDataSource:]): Remove redundant _setWebFrame: call,
2201 it would have been called already by this point.
2202 (-[WebFrameLoader _setProvisionalDataSource:]): ditto.
2203 * WebKit.xcodeproj/project.pbxproj:
2204 * WebView/WebDataSource.m:
2205 (-[WebDataSourcePrivate dealloc]):
2206 (-[WebDataSource _setWebFrame:]):
2207 (-[WebDataSource _setPrimaryLoadComplete:]):
2208 (-[WebDataSource initWithRequest:]):
2209 (-[WebDataSource data]):
2211 2006-08-23 Maciej Stachowiak <mjs@apple.com>
2215 - refactoring of WebDataSource in preparation for moving a bunch of it to a new class
2217 - minimize WebDataSourceInternal.h to be only methods called from outside WebDataSource
2218 - reduce Private category implementation to be only the SPI methods
2219 - make new Internal and FileInternal categories which contain the
2220 remainder (depending on whether they are called from outside of
2223 * WebView/WebDataSource.m:
2224 (-[WebDataSource _setMainDocumentError:]):
2225 (addTypesFromClass):
2226 (+[WebDataSource _representationClassForMIMEType:]):
2227 (-[WebDataSource _commitIfReady]):
2228 (-[WebDataSource _commitLoadWithData:]):
2229 (-[WebDataSource _doesProgressiveLoadWithMIMEType:]):
2230 (-[WebDataSource _addResponse:]):
2231 (-[WebDataSource _revertToProvisionalState]):
2232 (-[WebDataSource _mainDocumentError]):
2233 (-[WebDataSource _addSubframeArchives:]):
2234 (-[WebDataSource _fileWrapperForURL:]):
2235 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
2236 (-[WebDataSource _decidePolicyForMIMEType:decisionListener:]):
2237 (-[WebDataSource _finishedLoading]):
2238 (-[WebDataSource _setResponse:]):
2239 (-[WebDataSource _setRequest:]):
2240 (-[WebDataSource _setupForReplaceByMIMEType:]):
2241 (-[WebDataSource _receivedMainResourceError:complete:]):
2242 (-[WebDataSource _mainReceivedError:complete:]):
2243 (-[WebDataSource _defersCallbacks]):
2244 (-[WebDataSource _downloadWithLoadingConnection:request:response:proxy:]):
2245 (-[WebDataSource _didFailLoadingWithError:forResource:]):
2246 (-[WebDataSource _didFinishLoadingForResource:]):
2247 (-[WebDataSource _didReceiveData:contentLength:forResource:]):
2248 (-[WebDataSource _didReceiveResponse:forResource:]):
2249 (-[WebDataSource _didCancelAuthenticationChallenge:forResource:]):
2250 (-[WebDataSource _didReceiveAuthenticationChallenge:forResource:]):
2251 (-[WebDataSource _willSendRequest:forResource:redirectResponse:]):
2252 (-[WebDataSource _identifierForInitialRequest:]):
2253 (-[WebDataSource _archivedSubresourceForURL:]):
2254 (-[WebDataSource _startLoading]):
2255 (-[WebDataSource _stopRecordingResponses]):
2256 (-[WebDataSource _loadingStartedTime]):
2257 (-[WebDataSource _replaceSelectionWithArchive:selectReplacement:]):
2258 (-[WebDataSource _documentFragmentWithArchive:]):
2259 (-[WebDataSource _documentFragmentWithImageResource:]):
2260 (-[WebDataSource _imageElementWithImageResource:]):
2261 (-[WebDataSource _title]):
2262 (-[WebDataSource _isStopping]):
2263 (-[WebDataSource _setWebFrame:]):
2264 (-[WebDataSource _URL]):
2265 (-[WebDataSource _loadFromPageCache:]):
2266 (-[WebDataSource _popSubframeArchiveWithName:]):
2267 (-[WebDataSource _setIsClientRedirect:]):
2268 (-[WebDataSource _setURL:]):
2269 (-[WebDataSource _setLastCheckedRequest:]):
2270 (-[WebDataSource _defersCallbacksChanged]):
2271 (-[WebDataSource _lastCheckedRequest]):
2272 (-[WebDataSource _stopLoading]):
2273 (-[WebDataSource _bridge]):
2274 (-[WebDataSource _webView]):
2275 (-[WebDataSource _triggeringAction]):
2276 (-[WebDataSource _setTriggeringAction:]):
2277 (-[WebDataSource __adoptRequest:]):
2278 (-[WebDataSource _isDocumentHTML]):
2279 (-[WebDataSource _stopLoadingWithError:]):
2280 (-[WebDataSource _setPrimaryLoadComplete:]):
2281 (-[WebDataSource _responses]):
2282 (-[WebDataSource _makeRepresentation]):
2283 (-[WebDataSource _isClientRedirect]):
2284 (-[WebDataSource _originalRequest]):
2285 (-[WebDataSource _URLForHistory]):
2286 (-[WebDataSource _addToUnarchiveState:]):
2287 (-[WebDataSource _setOverrideEncoding:]):
2288 (-[WebDataSource _setIconURL:]):
2289 (-[WebDataSource _setIconURL:withType:]):
2290 (-[WebDataSource _overrideEncoding]):
2291 (-[WebDataSource _setTitle:]):
2292 * WebView/WebDataSourceInternal.h:
2294 2006-08-23 Brady Eidson <beidson@apple.com>
2296 Reviewed by John Sullivan
2299 Flip the switch to the new Icon Database
2300 Massive code pruning is coming up
2302 * WebKitPrefix.h: Flipped the switch
2304 2006-08-23 Brady Eidson <beidson@apple.com>
2307 Since I just pushed the default URL icon from WebKit to WebCore, but
2308 WebKit was still using its version of the default icon, this patch makes it
2309 use the WebCore version
2311 * Misc/WebIconDatabase.m:
2312 (-[WebIconDatabase defaultIconWithSize:]):
2314 2006-08-22 Maciej Stachowiak <mjs@apple.com>
2318 - remove "loading" flag from WebDataSource and code that manages it; it is redundat.
2320 * Loader/WebFrameLoader.m:
2321 (-[WebFrameLoader addPlugInStreamLoader:]):
2322 (-[WebFrameLoader removePlugInStreamLoader:]):
2323 (-[WebFrameLoader addSubresourceLoader:]):
2324 (-[WebFrameLoader removeSubresourceLoader:]):
2325 * WebView/WebDataSource.m:
2326 (-[WebDataSourcePrivate dealloc]):
2327 (-[WebDataSource _setPrimaryLoadComplete:]):
2328 (-[WebDataSource _stopLoading]):
2329 (-[WebDataSource _prepareForLoadStart]):
2330 (-[WebDataSource _startLoading]):
2331 (-[WebDataSource isLoading]):
2332 * WebView/WebDataSourceInternal.h:
2334 2006-08-22 Maciej Stachowiak <mjs@apple.com>
2338 <rdar://problem/4683948> REGRESSION: Assertion failure in [FrameProgressEntry addChild:forDataSource:] (fandango.com)
2340 * Loader/WebFrameLoader.m:
2341 (-[WebFrameLoader addSubresourceLoader:]): Add a WebKit-level assertion that should fire when this bad
2343 * Loader/WebSubresourceLoader.m:
2344 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]): Prevent
2345 the situation from occuring.
2347 2006-08-22 Maciej Stachowiak <mjs@apple.com>
2351 - pull more WebDataSource code into WebFrameLoader
2352 - make WebMainResourceLoader not depend on WebKit or on SPI
2354 * Loader/WebFrameLoader.h:
2355 * Loader/WebFrameLoader.m:
2356 (-[WebFrameLoader _downloadWithLoadingConnection:request:response:proxy:]):
2357 (-[WebFrameLoader _updateIconDatabaseWithURL:]):
2358 (-[WebFrameLoader _notifyIconChanged:]):
2359 (-[WebFrameLoader _iconLoaderReceivedPageIcon:]):
2360 (-[WebFrameLoader _checkNavigationPolicyForRequest:andCall:withSelector:]):
2361 (-[WebFrameLoader _checkContentPolicyForMIMEType:andCall:withSelector:]):
2362 (-[WebFrameLoader cancelContentPolicy]):
2363 * Loader/WebIconLoader.m:
2364 (-[WebIconLoader didFinishLoading]):
2365 * Loader/WebLoader.m:
2366 (-[NSURLProtocol loadWithRequest:]):
2367 (-[NSURLProtocol setDefersCallbacks:]):
2368 * Loader/WebMainResourceLoader.h:
2369 * Loader/WebMainResourceLoader.m:
2370 (-[WebMainResourceLoader initWithFrameLoader:]):
2371 (-[WebMainResourceLoader dealloc]):
2372 (-[WebMainResourceLoader cancelWithError:]):
2373 (-[WebMainResourceLoader continueAfterNavigationPolicy:formState:]):
2374 (-[WebMainResourceLoader willSendRequest:redirectResponse:]):
2375 (-[WebMainResourceLoader continueAfterContentPolicy:]):
2376 (-[WebMainResourceLoader checkContentPolicy]):
2377 (-[WebMainResourceLoader didReceiveResponse:]):
2378 * Plugins/WebPluginContainerCheck.m:
2379 * WebCoreSupport/WebSystemInterface.m:
2380 (InitWebCoreSystemInterface):
2381 * WebView/WebDataSource.m:
2382 (-[WebDataSource _loadIcon]):
2383 (-[WebDataSource _cancelledError]):
2384 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
2385 (+[WebDataSource _representationClassForMIMEType:]):
2386 (-[WebDataSource _commitLoadWithData:]):
2387 (-[WebDataSource _isDocumentHTML]):
2388 * WebView/WebDataSourceInternal.h:
2389 * WebView/WebFramePrivate.h:
2390 * WebView/WebPolicyDelegate.m:
2391 * WebView/WebPolicyDelegatePrivate.h:
2393 2006-08-21 Maciej Stachowiak <mjs@apple.com>
2397 - move more code from WebDataSource to WebFrameLoader
2399 Also marked a few more methods in WebDataSource as likely MOVABLE in a future round, since they do not
2400 use any of WebDataSource's private data.
2402 * Loader/WebFrameLoader.h:
2403 * Loader/WebFrameLoader.m:
2404 (-[WebFrameLoader addPlugInStreamLoader:]):
2405 (-[WebFrameLoader removePlugInStreamLoader:]):
2406 (-[WebFrameLoader addSubresourceLoader:]):
2407 (-[WebFrameLoader removeSubresourceLoader:]):
2408 (-[WebFrameLoader _didReceiveAuthenticationChallenge:forResource:]):
2409 (-[WebFrameLoader _didCancelAuthenticationChallenge:forResource:]):
2410 (-[WebFrameLoader _didReceiveResponse:forResource:]):
2411 (-[WebFrameLoader _didReceiveData:contentLength:forResource:]):
2412 (-[WebFrameLoader _didFinishLoadingForResource:]):
2413 (-[WebFrameLoader _didFailLoadingWithError:forResource:]):
2414 (-[WebFrameLoader _privateBrowsingEnabled]):
2415 (-[WebFrameLoader _finishedLoadingResource]):
2416 (-[WebFrameLoader _receivedError:]):
2417 (-[WebFrameLoader _finishedLoading]):
2418 * Loader/WebMainResourceLoader.m:
2419 (-[WebMainResourceLoader didReceiveData:lengthReceived:allAtOnce:]):
2420 (-[WebMainResourceLoader didFinishLoading]):
2421 * Loader/WebNetscapePlugInStreamLoader.m:
2422 (-[WebNetscapePlugInStreamLoader didFinishLoading]):
2423 (-[WebNetscapePlugInStreamLoader didFailWithError:]):
2424 (-[WebNetscapePlugInStreamLoader cancelWithError:]):
2425 * Loader/WebSubresourceLoader.m:
2426 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
2427 (-[WebSubresourceLoader signalFinish]):
2428 (-[WebSubresourceLoader didFailWithError:]):
2429 (-[WebSubresourceLoader cancel]):
2430 * Plugins/WebNetscapePluginStream.m:
2431 (-[WebNetscapePluginStream start]):
2432 * WebView/WebDataSource.m:
2433 (-[WebDataSource _replaceSelectionWithArchive:selectReplacement:]):
2434 (-[WebDataSource _updateIconDatabaseWithURL:]):
2435 (-[WebDataSource _loadIcon]):
2436 (-[WebDataSource _setPrimaryLoadComplete:]):
2437 (-[WebDataSource _cancelledError]):
2438 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
2439 (+[WebDataSource _representationClassForMIMEType:]):
2440 (-[WebDataSource _commitLoadWithData:]):
2441 (-[WebDataSource _receivedMainResourceError:complete:]):
2442 (-[WebDataSource _iconLoaderReceivedPageIcon:]):
2443 (-[WebDataSource _isDocumentHTML]):
2444 * WebView/WebDataSourceInternal.h:
2446 2006-08-21 Brady Eidson <beidson@apple.com>
2450 Quick ICONDEBUG flag fix
2452 * Misc/WebIconDatabase.m:
2453 (-[WebIconDatabase _applicationWillTerminate:]):
2455 2006-08-21 Brady Eidson <beidson@apple.com>
2459 -Renamed an internal only method for clarity
2460 -Tweaked WebDataSource for notification purposes with the new expiring icons
2461 -Fixed a bug with the ICONDEBUG flag
2463 * Misc/WebIconDatabase.m:
2464 (-[WebIconDatabase init]):
2465 (-[WebIconDatabase iconForURL:withSize:cache:]): #ifdef bug fixed
2466 (-[WebIconDatabase _hasEntryForIconURL:]): Renamed for clarity
2467 * Misc/WebIconDatabasePrivate.h:
2468 * WebView/WebDataSource.m:
2469 (-[WebDataSource _updateIconDatabaseWithURL:]):
2470 (-[WebDataSource _notifyIconChanged:]):
2471 (-[WebDataSource _loadIcon]):
2472 (-[WebDataSource _iconLoaderReceivedPageIcon:]):
2474 2006-08-17 Maciej Stachowiak <mjs@apple.com>
2478 - pull a bit of WebDataSource code into WebFrameLoader
2480 * Loader/WebFrameLoader.m:
2481 (-[WebFrameLoader _receivedError:]):
2482 (-[WebFrameLoader webFrame]):
2483 (-[WebFrameLoader _handleFallbackContent]):
2484 (+[WebFrameLoader _canShowMIMEType:]):
2485 (+[WebFrameLoader _representationExistsForURLScheme:]):
2486 (+[WebFrameLoader _generatedMIMETypeForURLScheme:]):
2487 * WebView/WebDataSource.m:
2488 * WebView/WebDataSourceInternal.h:
2490 2006-08-17 Timothy Hatcher <timothy@apple.com>
2492 Reviewed by Kevin Decker.
2494 <rdar://problem/4606857> WebKit: WebPreferencesChangedNotification not exported in 64-bit
2498 2006-08-17 Timothy Hatcher <timothy@apple.com>
2500 Reviewed by Kevin Decker.
2502 <rdar://problem/4633896> -[WebView close] should clear all delegates and call setHostWindow:nil
2503 <rdar://problem/4649759> Crash when selecting View Source menu using Chinese (-[WebView _close])
2505 Check to make sure _private is not null. A WebView can be dealloced before _private is setup.
2506 Set the _private->closed flag at the beginning of _close to prevent reentry.
2507 Set the host window and all the delegates to nil in _close.
2509 * WebView/WebView.m:
2510 (-[WebView _close]):
2512 2006-08-16 Brady Eidson <beidson@apple.com>
2516 * Misc/WebIconDatabase.m: Pruned unused method
2517 * Misc/WebIconDatabasePrivate.h: Ditto
2520 2006-08-15 Maciej Stachowiak <mjs@apple.com>
2522 Reviewed by Adele (preliminary version) and later by Kevin.
2524 - remove most WebKit dependencies from WebMainResourceLoader.
2526 * Loader/WebFrameLoader.h:
2527 * Loader/WebFrameLoader.m:
2528 (-[WebFrameLoader cannotShowMIMETypeForURL:]):
2529 (-[WebFrameLoader interruptForPolicyChangeErrorWithRequest:]):
2530 (-[WebFrameLoader isHostedByObjectElement]):
2531 (-[WebFrameLoader isLoadingMainFrame]):
2532 (+[WebFrameLoader _canShowMIMEType:]):
2533 (+[WebFrameLoader _representationExistsForURLScheme:]):
2534 (+[WebFrameLoader _generatedMIMETypeForURLScheme:]):
2535 * Loader/WebMainResourceLoader.h:
2536 * Loader/WebMainResourceLoader.m:
2537 (-[WebMainResourceLoader interruptForPolicyChangeError]):
2538 (-[WebMainResourceLoader willSendRequest:redirectResponse:]):
2539 (isCaseInsensitiveEqual):
2540 (shouldLoadAsEmptyDocument):
2541 (-[WebMainResourceLoader continueAfterContentPolicy:response:]):
2542 (-[WebMainResourceLoader didReceiveResponse:]):
2543 (-[WebMainResourceLoader didReceiveData:lengthReceived:allAtOnce:]):
2544 (-[WebMainResourceLoader didFinishLoading]):
2545 (-[WebMainResourceLoader loadWithRequestNow:]):
2546 (-[WebMainResourceLoader loadWithRequest:]):
2548 2006-08-15 Tim Omernick <timo@apple.com>
2550 Reviewed by Kevin Decker.
2552 * Plugins/WebNetscapePluginPackage.m:
2553 (-[WebNetscapePluginPackage _unloadWithShutdown:]):
2554 Fixed a subtle problem with the 64-bit debug build -- as written, this would LOG() on 64-bit and do nothing on
2556 * Plugins/WebPluginDatabase.m:
2557 (-[WebPluginDatabase _scanForNewPlugins]):
2558 Use +[NSMutableSet set] here.
2560 2006-08-15 Tim Omernick <timo@apple.com>
2562 Reviewed by Darin Adler.
2564 <http://bugs.webkit.org/show_bug.cgi?id=8980>
2565 ASSERTION FAILED: !isLoaded (WebKit/WebKit/Plugins/WebBasePluginPackage.m:228 -[WebBasePluginPackage dealloc])
2567 <rdar://problem/4526052> intermittent assertion failure in -[WebBasePluginPackage dealloc] running layout tests (8980)
2569 * Plugins/WebPluginDatabase.h:
2570 * Plugins/WebPluginDatabase.m:
2571 (+[WebPluginDatabase installedPlugins]):
2572 Observe NSApplicationWillTerminateNotification so we can unload plug-ins on quit.
2573 (-[WebPluginDatabase plugins]):
2574 'plugins' is now a dictionary.
2575 (-[WebPluginDatabase close]):
2576 Call new -_removePlugin: method.
2577 (-[WebPluginDatabase refresh]):
2578 Moved parts of this method out into other methods: -_addPlugin:, -_removePlugin:, and -_scanForNewPlugins.
2579 (-[WebPluginDatabase _plugInPaths]):
2580 No changes; just moved in file.
2581 (-[WebPluginDatabase _addPlugin:]):
2582 New method. Refactored from -refresh. Adds a plug-in to the database.
2583 (-[WebPluginDatabase _removePlugin:]):
2584 New method. Refactored from -refresh. Remove a plug-in from the database.
2585 (-[WebPluginDatabase _scanForNewPlugins]):
2586 New method. Refactored from -refresh. Returns the list of plug-in packages on disk.
2587 (-[WebPluginDatabase _applicationWillTerminate]):
2588 New method. Called when the application terminates. Closes the plug-in database so that all plug-ins are
2589 removed from the DB (and unloaded if necessary).
2591 * Plugins/WebBasePluginPackage.h:
2592 * Plugins/WebBasePluginPackage.m:
2593 (-[WebBasePluginPackage initWithPath:]):
2594 Try to create the NSBundle first, so if the file is not a valid bundle we bail out early. This
2595 avoids some stat()s and allocations during the plug-in refresh process.
2596 (-[WebBasePluginPackage isLoaded]):
2598 (-[WebBasePluginPackage load]):
2599 Base class for plug-in packages now always loads "successfully".
2600 (-[WebBasePluginPackage dealloc]):
2601 Removed this assertion. The base plug-in package class has no concept of
2603 (-[WebBasePluginPackage finalize]):
2605 (-[WebBasePluginPackage wasRemovedFromPluginDatabase:]):
2606 Moved code to unload plug-in package to WebNetscapePluginPackage. Not all plug-in
2607 packages can be "unloaded".
2609 * Plugins/WebNetscapePluginPackage.h:
2610 * Plugins/WebNetscapePluginPackage.m:
2611 (-[WebNetscapePluginPackage _unloadWithShutdown:]):
2612 Combined old -unload and -unloadWithoutShutdown methods into this new one.
2613 (-[WebNetscapePluginPackage initWithPath:]):
2614 Call new unload method.
2615 (-[WebNetscapePluginPackage load]):
2617 (-[WebNetscapePluginPackage wasRemovedFromPluginDatabase:]):
2619 (-[WebNetscapePluginPackage open]):
2620 New method. Called when a plug-in instance starts running.
2621 (-[WebNetscapePluginPackage close]):
2622 New method. Called when a plug-in instance stops running. When all plug-in instances
2623 close the plug-in package, and the plug-in package is removed from the database, the plug-in
2626 * Plugins/WebPluginPackage.m:
2627 (-[WebPluginPackage initWithPath:]):
2628 (-[WebPluginPackage load]):
2629 Made this a bit more efficient by checking if the bundle is already loaded.
2630 (-[WebBasePluginPackage unload]):
2632 (-[WebBasePluginPackage isLoaded]):
2635 * Plugins/WebBaseNetscapePluginView.m:
2636 (-[WebBaseNetscapePluginView start]):
2637 Open the plug-in package so it remains loaded while this instance uses it.
2638 (-[WebBaseNetscapePluginView stop]):
2639 Close the plug-in package when the plug-in instance is stopped.
2641 * Plugins/WebBaseNetscapePluginStream.m:
2642 (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:]):
2643 This check is not necessary. Netscape plug-in packages are never unloaded until all their instances have
2644 been stopped, and a Netscape plug-in instance will stop its streams when it is stopped.
2645 (-[WebBaseNetscapePluginStream _destroyStream]):
2647 (-[WebBaseNetscapePluginStream finishedLoadingWithData:]):
2649 (-[WebBaseNetscapePluginStream _deliverData]):
2652 2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
2656 Build fix: DWARF and -gfull are incompatible with symbol separation.
2658 * WebKit.xcodeproj/project.pbxproj:
2660 2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
2664 http://bugs.webkit.org/show_bug.cgi?id=10394
2665 Bug 10394: WebKit Release and Production configurations should enable dead code stripping
2667 * WebKit.xcodeproj/project.pbxproj:
2669 2006-08-15 Maciej Stachowiak <mjs@apple.com>
2673 - remove WebKit dependencies from WebPlugInStreamLoader via a protocol veil of ignorance
2675 * Loader/WebNetscapePlugInStreamLoader.h:
2676 * Loader/WebNetscapePlugInStreamLoader.m:
2677 (-[WebNetscapePlugInStreamLoader initWithDelegate:frameLoader:]):
2678 * Loader/WebPlugInStreamLoaderDelegate.h: Added.
2679 * Plugins/WebBaseNetscapePluginStream.h:
2680 * Plugins/WebNetscapePluginStream.m:
2681 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
2682 * WebKit.xcodeproj/project.pbxproj:
2684 2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
2688 http://bugs.webkit.org/show_bug.cgi?id=10384
2689 Bug 10384: Switch to DWARF for Release configuration
2691 * WebKit.xcodeproj/project.pbxproj:
2693 2006-08-15 Graham Dennis <graham.dennis@gmail.com>
2697 - patch for http://bugs.webkit.org/show_bug.cgi?id=10314
2698 WebUnarchivingState archivedResourceForURL: doesn't work
2700 * WebView/WebUnarchivingState.m:
2701 (-[WebUnarchivingState archivedResourceForURL:]):
2702 Fixed to get objects from the archived resources dictionary using
2703 the URL as a string instead of as the URL itself (as this is how
2704 the data is put into the dictionary).
2706 2006-08-14 Maciej Stachowiak <mjs@apple.com>
2710 - remove many (but not all) WebKit dependencies from WebNetscapePlugInStreamLoader (it still
2711 depends on WebNetscapePluginStream).
2713 * Loader/WebFrameLoader.h:
2714 * Loader/WebFrameLoader.m:
2715 (-[WebFrameLoader fileDoesNotExistErrorWithResponse:]):
2716 * Loader/WebNetscapePlugInStreamLoader.h:
2717 * Loader/WebNetscapePlugInStreamLoader.m:
2718 (-[WebNetscapePlugInStreamLoader initWithStream:frameLoader:]):
2719 (-[WebNetscapePlugInStreamLoader releaseResources]):
2720 (-[WebNetscapePlugInStreamLoader didReceiveResponse:]):
2721 * Plugins/WebNetscapePluginStream.m:
2722 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
2724 2006-08-14 Maciej Stachowiak <mjs@apple.com>
2726 Reviewed by Tim Omernick.
2728 - fixed REGRESSION: crash when leaving youtube page while movie is still loading
2729 http://bugs.webkit.org/show_bug.cgi?id=10398
2731 * Loader/WebNetscapePlugInStreamLoader.m:
2732 (-[WebNetscapePlugInStreamLoader initWithStream:view:]): Set the frame loader for this stream.
2733 (-[WebNetscapePlugInStreamLoader cancelWithError:]): Make sure to destroy the stream as well;
2734 otherwise, when we try to clean up later, we won't have the right context.
2736 2006-08-14 David Hyatt <hyatt@apple.com>
2738 Fix for Radar bug 4478840, Safari should not reduce null events sent to
2739 plug-ins in windows that are inactive but visible.
2741 With this fix you can view videos in visible background windows on YouTube
2742 (for example) and not see any drop in frame rate.
2746 * Plugins/WebBaseNetscapePluginView.m:
2747 (-[WebBaseNetscapePluginView restartNullEvents]):
2749 2006-08-14 Maciej Stachowiak <mjs@apple.com>
2753 - removed WebKit-level dependencies from WebFormDataStream. Use WebCore version of system interface
2755 * Loader/WebFormDataStream.m:
2757 (formEventCallback):
2759 * WebCoreSupport/WebSystemInterface.m:
2760 (InitWebCoreSystemInterface):
2762 2006-08-14 Maciej Stachowiak <mjs@apple.com>
2764 Rubber stamped by Brady.
2766 - move WebFormDataStream from WebView to Loader
2768 * WebKit.xcodeproj/project.pbxproj:
2769 * WebView/WebFormDataStream.h: Removed.
2770 * WebView/WebFormDataStream.m: Removed.
2772 2006-08-13 Maciej Stachowiak <mjs@apple.com>
2776 - remove WebKit dependencies from WebSubresourceLoader, except WebFormDataStream
2778 (WebFormDataStream will be moved into the Loader directory soon)
2780 * Loader/WebFrameLoader.h:
2781 * Loader/WebFrameLoader.m:
2782 (-[WebFrameLoader _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
2783 * Loader/WebSubresourceLoader.m:
2784 (isConditionalRequest):
2785 (hasCaseInsensitivePrefix):
2788 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
2790 2006-08-13 Brady Eidson <beidson@apple.com>
2794 Relocated the WebIconLoaders
2796 * Misc/WebIconLoader.h: Moved to Loader/
2797 * Misc/WebIconLoader.m: Moved to Loader/
2798 * WebKit.xcodeproj/project.pbxproj:
2800 2006-08-13 Maciej Stachowiak <mjs@apple.com>
2804 - removed non-Loader WebKit dependencies from WebDataProtocol for
2805 real (whoops) and fix some typos.
2807 * Loader/WebDataProtocol.m:
2808 (isCaseInsensitiveEqual): Added.
2809 (+[WebDataProtocol _webIsDataProtocolURL:]): Avoid WebKit calls.
2810 (-[WebDataProtocol startLoading]): ditto
2811 * Loader/WebFrameLoader.m:
2812 (isCaseInsensitiveEqual): Fixed spelling from isCaseSensitiveEqual.
2813 (-[WebFrameLoader _canUseResourceForRequest:]): Use proper call.
2815 2006-08-13 Brady Eidson <beidson@apple.com>
2819 The way of detecting a failed icon load before was to try and construct
2820 an image from the icon and if that image construction failed, mark the icon
2822 A much more efficient way is to check for an error response. We'll still
2823 check for invalid image data, but most servers will correctly return an HTTP
2824 error on a missing icon.
2826 * Misc/WebIconLoader.m:
2827 (-[WebIconLoader didFinishLoading]): Added check for http error response
2829 2006-08-13 Maciej Stachowiak <mjs@apple.com>
2833 - remove all non-Loader dependencies from WebLoader
2835 As part of this I moved WebDataProtocol to the loader directory
2836 and removed dependencies on the rest of WebKit from that too.
2838 * Loader/WebFrameLoader.h:
2839 * Loader/WebFrameLoader.m:
2840 (-[WebFrameLoader setDefersCallbacks:]):
2841 (-[WebFrameLoader stopLoading]):
2842 (-[WebFrameLoader cancelledErrorWithRequest:]):
2843 (-[WebFrameLoader clearArchivedResources]):
2844 (-[WebFrameLoader deliverArchivedResources]):
2845 (-[WebFrameLoader deliverArchivedResourcesAfterDelay]):
2846 (isCaseSensitiveEqual):
2847 (-[WebFrameLoader _canUseResourceForRequest:]):
2848 (-[WebFrameLoader _canUseResourceWithResponse:]):
2849 (-[WebFrameLoader pendingArchivedResources]):
2850 (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
2851 (-[WebFrameLoader archiveLoadPendingForLoader:]):
2852 (-[WebFrameLoader cancelPendingArchiveLoadForLoader:]):
2853 * Loader/WebLoader.h:
2854 * Loader/WebLoader.m:
2855 (-[NSURLProtocol releaseResources]):
2856 (-[NSURLProtocol loadWithRequest:]):
2857 (-[NSURLProtocol setDefersCallbacks:]):
2858 (-[NSURLProtocol addData:allAtOnce:]):
2859 (-[NSURLProtocol resourceData]):
2860 (-[NSURLProtocol didReceiveData:lengthReceived:allAtOnce:]):
2861 (-[NSURLProtocol connection:didReceiveData:lengthReceived:]):
2862 (-[NSURLProtocol cancelWithError:]):
2863 (-[NSURLProtocol cancelledError]):
2864 * Loader/WebMainResourceLoader.m:
2865 (-[WebMainResourceLoader addData:allAtOnce:]):
2866 (-[WebMainResourceLoader didReceiveData:lengthReceived:allAtOnce:]):
2867 * Loader/WebNetscapePlugInStreamLoader.m:
2868 (-[WebNetscapePlugInStreamLoader didReceiveData:lengthReceived:allAtOnce:]):
2869 * Loader/WebSubresourceLoader.m:
2870 (-[WebSubresourceLoader didReceiveData:lengthReceived:allAtOnce:]):
2871 * WebKit.xcodeproj/project.pbxproj:
2872 * WebView/WebDataProtocol.h: Removed.
2873 * WebView/WebDataProtocol.m: Removed.
2875 2006-08-11 Tim Omernick <timo@apple.com>
2879 <http://bugs.webkit.org/show_bug.cgi?id=10111> - Menu flickers over Flash content
2880 <rdar://problem/3052546> Plugins don't work with z-index (overlapping elements, etc.)
2882 * Plugins/WebBaseNetscapePluginView.m:
2883 (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
2884 Don't just clip to the dirty region for "transparent" plug-ins -- do it for all plug-ins. This is a
2885 generally useful thing to do, as it prevents the plug-in from drawing over parts of the window that
2886 have already been drawn and are not expected to be redrawn in the same update.
2888 2006-08-11 Brady Eidson <beidson@apple.com>
2890 Reviewed by John, Timo, Adele, and Darin
2892 In addition to a few style/good-practice cleanups, this patch will convert the old icon database
2893 format to the WebCore format if the WebCore db is empty (implying this conversion has yet to take
2894 place). After the conversion, it will delete all traces of the old format to free the unneeded space
2896 * Misc/WebIconDatabase.m:
2897 (-[WebIconDatabase init]):
2898 (-[WebIconDatabase _setIconURL:forURL:]): Changed the bridge's name for this method to be more clear
2899 (-[WebIconDatabase _createFileDatabase]):
2900 (-[WebIconDatabase _iconDataForIconURL:]): This grabs the raw data for use in the conversion function
2901 (-[WebIconDatabase _convertToWebCoreFormat]): This does the actual conversion
2903 2006-08-11 Tim Omernick <timo@apple.com>
2905 Reviewed by John Sullivan.
2907 Needed for <rdar://problem/4678070>.
2909 * Plugins/WebBaseNetscapePluginView.m:
2910 (-[WebBaseNetscapePluginView sendEvent:]):
2911 Changed an assertion to an early return. It should be possible to send events, especially updateEvt (for image capturing
2912 purposes), to off-screen plug-ins. It just doesn't work right now. See <rdar://problem/4318269>.
2914 2006-08-11 John Sullivan <sullivan@apple.com>
2918 - fixed <rdar://problem/4522894> Would be nice if Safari shrank pages a little if necessary
2919 to avoid printing an almost-empty page
2921 * WebView/WebHTMLView.m:
2922 (-[NSArray knowsPageRange:]):
2923 If the last page has a short-enough orphan (< 1/10 of the page height is the number I pulled
2924 out of ... the air), then we adjust the scale factor slightly and check whether this reduces
2925 the page count and thus eliminates the orphan.
2927 2006-08-07 Brady Eidson <beidson@apple.com>
2929 Reviewed by Anders and John
2931 * Misc/WebIconDatabase.m:
2932 (-[WebIconDatabase init]):
2933 (-[WebIconDatabase isIconExpiredForIconURL:]): Get if an icon expired
2934 (-[WebIconDatabase isIconExpiredForPageURL:]): Ditto
2935 (-[WebIconDatabase _setIconURL:forURL:]):
2936 (-[WebIconDatabase _sendNotificationForURL:]): Moved to WebKitPendingPublic for use outside of WebIconDatabase
2937 (-[WebIconDatabase loadIconFromURL:]): Allow a load outside the context of a page load
2938 * Misc/WebIconDatabasePrivate.h:
2940 * Misc/WebIconLoader.m:
2941 (-[WebIconLoader didFinishLoading]): fixed up the "flipping the switch" #defs a bit
2942 (-[WebIconLoader willSendRequest:redirectResponse:]): override to allow a load
2943 outside of the context of a page load
2945 * WebCoreSupport/WebIconDatabaseBridge.h: Added.
2946 * WebCoreSupport/WebIconDatabaseBridge.m: Added.
2947 (-[WebIconDatabaseBridge init]):
2948 (-[WebIconDatabaseBridge dealloc]):
2949 (-[WebIconDatabaseBridge loadIconFromURL:]): Kick off a load on an icon outside
2950 of the context of any page load
2951 (-[WebIconDatabaseBridge _setIconData:forIconURL:]): WebKit side of bridge method
2952 (-[WebIconDatabaseBridge _setHaveNoIconForIconURL:]): WebKit side of bridge method
2953 (-[WebIconDatabaseBridge releaseCachedLoaderForIconURL:]):
2954 (+[WebIconDatabaseBridge sharedBridgeInstance]): Moved this from WebCore to WebKit
2955 so both sides of the bridge get the WebKit version
2956 * WebKit.xcodeproj/project.pbxproj: Added some files
2957 * WebView/WebDataSource.m:
2958 (-[WebDataSource _loadIcon]): Added check for reload/expired icon to force
2959 a load even if we already have it
2961 2006-08-04 Sam Weinig <sam.weinig@gmail.com>
2965 - patch for http://bugs.webkit.org/show_bug.cgi?id=10192
2966 Make WebCore (and friends) compile with -Wshorten-64-to-32
2968 * Adds 'f' to float literals where expecting a float.
2969 * Use ceilf() instead of ceil() when assigning to a float.
2970 * Adds explicit casts where OK.
2972 NOTE: The -Wshorten-64-to-32 flag was not added for WebKit
2973 because there are still a few places where no error handling
2974 is in place. The flag can be added as soon as those are worked
2977 * Misc/WebNSControlExtras.m:
2978 (-[NSControl sizeToFitAndAdjustWindowHeight]):
2979 * Misc/WebNSImageExtras.m:
2980 (-[NSImage _web_scaleToMaxSize:]):
2981 * Misc/WebNSViewExtras.h:
2982 * Misc/WebNSViewExtras.m:
2983 * Plugins/WebBaseNetscapePluginView.m:
2984 (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
2985 (-[WebBaseNetscapePluginView drawRect:]):
2986 * WebCoreSupport/WebFrameBridge.m:
2987 (-[WebFrameBridge expiresTimeForResponse:]):
2988 * WebInspector/WebInspector.m:
2989 (-[NSWindow window]):
2990 (-[WebInspector treeViewScrollTo:]):
2991 (-[WebInspector _updateSystemColors]):
2992 (-[WebInspector webView:plugInViewWithArguments:]):
2993 (-[WebInspector outlineView:objectValueForTableColumn:byItem:]):
2994 * WebInspector/WebInspectorOutlineView.m:
2995 (-[WebInspectorOutlineView _highlightRow:clipRect:]):
2996 * WebInspector/WebNodeHighlight.m:
2997 (-[WebNodeHighlight initWithBounds:andRects:forView:]):
2998 * WebInspector/WebNodeHighlightView.m:
2999 (-[WebNodeHighlightView roundedRect:withRadius:]):
3000 (-[WebNodeHighlightView initWithHighlight:andRects:forView:]):
3001 (-[WebNodeHighlightView drawRect:]):
3002 * WebView/WebFrame.m:
3003 (-[WebFrame _opened]):
3004 * WebView/WebFrameView.m:
3005 (-[WebFrameView initWithFrame:]):
3006 * WebView/WebHTMLView.m:
3007 (-[WebHTMLView _dragImageForLinkElement:]):
3008 (-[WebHTMLView _web_setPrintingModeRecursive]):
3009 (-[WebHTMLView _web_clearPrintingModeRecursive]):
3010 (-[NSArray layout]):
3011 (-[NSArray _setPrinting:minimumPageWidth:maximumPageWidth:adjustViewSize:]):
3012 (-[NSArray adjustPageHeightNew:top:bottom:limit:]):
3013 (-[NSArray _scaleFactorForPrintOperation:]):
3014 (-[NSArray setPageWidthForPrinting:]):
3015 (-[NSArray _endPrintMode]):
3016 (-[NSArray knowsPageRange:]):
3017 (-[NSArray _originalFontA]):
3018 (-[NSArray _originalFontB]):
3019 (-[WebTextCompleteController _buildUI]):
3020 (-[WebTextCompleteController _placePopupWindow:]):
3021 * WebView/WebPDFView.m:
3022 (-[WebPDFView _makeTextStandardSize:]):
3023 (-[WebPDFView selectionImageForcingWhiteText:]):
3024 (-[PDFPrefUpdatingProxy forwardInvocation:]):
3025 * WebView/WebPreferences.m:
3026 (-[WebPreferences _floatValueForKey:]):
3027 * WebView/WebView.m:
3028 (-[WebView makeTextSmaller:]):
3029 (-[WebView canMakeTextStandardSize]):
3030 (-[WebView makeTextStandardSize:]):
3032 2006-08-04 David Kilzer <ddkilzer@kilzer.net>
3034 Reviewed by NOBODY (build fix).
3036 * WebCoreSupport/WebSubresourceLoader.m: REALLY moved to Loader/
3037 * WebView/WebFrameLoader.h: REALLY moved to Loader/
3038 * WebView/WebFrameLoader.m: REALLY moved to Loader/
3039 * WebView/WebLoader.h: REALLY moved to Loader/
3040 * WebView/WebLoader.m: REALLY moved to Loader/
3041 * WebView/WebMainResourceLoader.m: REALLY moved to Loader/
3043 2006-08-03 Maciej Stachowiak <mjs@apple.com>
3047 - moved all loader code that is slated to be moved down to WebCore to a new Loader directory
3049 (next step is to remove dependencies on the rest of WebKit from this directory)
3051 * Loader/WebNetscapePlugInStreamLoader.h: Added.
3052 * Loader/WebNetscapePlugInStreamLoader.m: Added. Cut out of WebNetscapePluginStream.m
3053 (-[WebNetscapePlugInStreamLoader initWithStream:view:]):
3054 (-[WebNetscapePlugInStreamLoader isDone]):
3055 (-[WebNetscapePlugInStreamLoader releaseResources]):
3056 (-[WebNetscapePlugInStreamLoader didReceiveResponse:]):
3057 (-[WebNetscapePlugInStreamLoader didReceiveData:lengthReceived:]):
3058 (-[WebNetscapePlugInStreamLoader didFinishLoading]):
3059 (-[WebNetscapePlugInStreamLoader didFailWithError:]):
3060 (-[WebNetscapePlugInStreamLoader cancelWithError:]):
3061 * Plugins/WebNetscapePluginStream.m:
3062 * WebKit.xcodeproj/project.pbxproj:
3063 * WebCoreSupport/WebSubresourceLoader.h: Moved to Loader/
3064 * WebCoreSupport/WebSubresourceLoader.m: Moved to Loader/
3065 * WebView/WebFrameLoader.h: Moved to Loader/
3066 * WebView/WebFrameLoader.m: Moved to Loader/
3067 * WebView/WebLoader.h: Moved to Loader/
3068 * WebView/WebLoader.m: Moved to Loader/
3069 * WebView/WebMainResourceLoader.h: Moved to Loader/
3070 * WebView/WebMainResourceLoader.m: Moved to Loader/
3072 2006-08-03 Tim Omernick <timo@apple.com>
3074 Reviewed by Kevin Decker.
3076 <rdar://problem/4667460> Windowless OpenGL plug-ins render incorrectly on PowerPC
3078 * Plugins/WebBaseNetscapePluginView.m:
3079 (-[WebBaseNetscapePluginView _aglOffscreenImageForDrawingInRect:]):
3080 Fixed color component swapping so that it works on both x86 and PPC. See comments.
3082 2006-08-03 Brady Eidson <beidson@apple.com>
3084 Reviewed by Tim Hatcher's rubber stamp
3085 Fixed Intel build break caused by weinig's -W change in r15781
3087 * WebView/WebView.m: wrapped cpu-dependent defs with defined() macro
3089 2006-08-03 Maciej Stachowiak <mjs@apple.com>
3093 - fixed problem that could cause assertion failures in Safari
3095 * Plugins/WebBaseNetscapePluginView.m:
3096 (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]): Don't
3097 allow a plugin to start new loads once its document is no longer the one actively loading.
3099 2006-08-03 Maciej Stachowiak <mjs@apple.com>
3103 - remove use of WebDataSource from WebLoader and subclasses, just have them talk to the
3104 WebFrameLoader instead.
3106 For now this is done by forarding all the calls.
3108 * Misc/WebIconLoader.m:
3109 (-[WebIconLoader didFinishLoading]):
3110 * Plugins/WebNetscapePluginStream.m:
3111 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
3112 (-[WebNetscapePluginStream start]):
3113 (-[WebNetscapePlugInStreamLoader didFinishLoading]):
3114 (-[WebNetscapePlugInStreamLoader didFailWithError:]):
3115 (-[WebNetscapePlugInStreamLoader cancelWithError:]):
3116 * WebCoreSupport/WebFrameBridge.m:
3117 (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
3118 (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
3119 * WebCoreSupport/WebSubresourceLoader.h:
3120 * WebCoreSupport/WebSubresourceLoader.m:
3121 (-[WebSubresourceLoader initWithLoader:frameLoader:]):
3122 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
3123 (+[WebSubresourceLoader startLoadingResource:withMethod:URL:customHeaders:referrer:forFrameLoader:]):
3124 (+[WebSubresourceLoader startLoadingResource:withMethod:URL:customHeaders:postData:referrer:forFrameLoader:]):
3125 (-[WebSubresourceLoader receivedError:]):
3126 (-[WebSubresourceLoader signalFinish]):
3127 (-[WebSubresourceLoader didFailWithError:]):
3128 (-[WebSubresourceLoader cancel]):
3129 * WebKit.xcodeproj/project.pbxproj:
3130 * WebView/WebDataSource.m:
3131 (-[WebDataSource _updateLoading]):
3132 (-[WebDataSource textEncodingName]):
3133 (-[WebDataSource _mainReceivedBytesSoFar:complete:]):
3134 * WebView/WebFrameLoader.h:
3135 * WebView/WebFrameLoader.m:
3136 (-[WebFrameLoader loadIconWithRequest:]):
3137 (-[WebFrameLoader startLoadingMainResourceWithRequest:identifier:]):
3138 (-[WebFrameLoader clearIconLoader]):
3139 (-[WebFrameLoader commitProvisionalLoad]):
3140 (-[WebFrameLoader activeDataSource]):
3141 (-[WebFrameLoader _archivedSubresourceForURL:]):
3142 (-[WebFrameLoader _defersCallbacks]):
3143 (-[WebFrameLoader _identifierForInitialRequest:]):
3144 (-[WebFrameLoader _willSendRequest:forResource:redirectResponse:]):
3145 (-[WebFrameLoader _didReceiveAuthenticationChallenge:forResource:]):
3146 (-[WebFrameLoader _didCancelAuthenticationChallenge:forResource:]):
3147 (-[WebFrameLoader _didReceiveResponse:forResource:]):
3148 (-[WebFrameLoader _didReceiveData:contentLength:forResource:]):
3149 (-[WebFrameLoader _didFinishLoadingForResource:]):
3150 (-[WebFrameLoader _didFailLoadingWithError:forResource:]):
3151 (-[WebFrameLoader _privateBrowsingEnabled]):
3152 (-[WebFrameLoader _addPlugInStreamLoader:]):
3153 (-[WebFrameLoader _removePlugInStreamLoader:]):
3154 (-[WebFrameLoader _finishedLoadingResource]):
3155 (-[WebFrameLoader _receivedError:]):
3156 (-[WebFrameLoader _addSubresourceLoader:]):
3157 (-[WebFrameLoader _removeSubresourceLoader:]):
3158 (-[WebFrameLoader _originalRequest]):
3159 (-[WebFrameLoader webFrame]):
3160 (-[WebFrameLoader _receivedMainResourceError:complete:]):
3161 (-[WebFrameLoader initialRequest]):
3162 (-[WebFrameLoader _receivedData:]):
3163 (-[WebFrameLoader _setRequest:]):
3164 (-[WebFrameLoader _downloadWithLoadingConnection:request:response:proxy:]):
3165 (-[WebFrameLoader _handleFallbackContent]):
3166 (-[WebFrameLoader _isStopping]):
3167 (-[WebFrameLoader _decidePolicyForMIMEType:decisionListener:]):
3168 (-[WebFrameLoader _setupForReplaceByMIMEType:]):
3169 (-[WebFrameLoader _setResponse:]):
3170 (-[WebFrameLoader _mainReceivedError:complete:]):
3171 (-[WebFrameLoader _finishedLoading]):
3172 (-[WebFrameLoader _mainReceivedBytesSoFar:complete:]):
3173 (-[WebFrameLoader _iconLoaderReceivedPageIcon:]):
3174 (-[WebFrameLoader _URL]):
3175 * WebView/WebLoader.h:
3176 * WebView/WebLoader.m:
3177 (-[NSURLProtocol releaseResources]):
3178 (-[NSURLProtocol loadWithRequest:]):
3179 (-[NSURLProtocol setFrameLoader:]):
3180 (-[NSURLProtocol frameLoader]):
3181 (-[NSURLProtocol willSendRequest:redirectResponse:]):
3182 (-[NSURLProtocol didReceiveAuthenticationChallenge:]):
3183 (-[NSURLProtocol didCancelAuthenticationChallenge:]):
3184 (-[NSURLProtocol didReceiveResponse:]):
3185 (-[NSURLProtocol didReceiveData:lengthReceived:]):
3186 (-[NSURLProtocol signalFinish]):
3187 (-[NSURLProtocol didFailWithError:]):
3188 (-[NSURLProtocol willCacheResponse:]):
3189 (-[NSURLProtocol cancelWithError:]):
3190 * WebView/WebMainResourceLoader.h:
3191 * WebView/WebMainResourceLoader.m:
3192 (-[WebMainResourceLoader initWithFrameLoader:]):
3193 (-[WebMainResourceLoader receivedError:]):
3194 (-[WebMainResourceLoader cancelWithError:]):
3195 (-[WebMainResourceLoader _isPostOrRedirectAfterPost:redirectResponse:]):
3196 (-[WebMainResourceLoader addData:]):
3197 (-[WebMainResourceLoader willSendRequest:redirectResponse:]):
3198 (-[WebMainResourceLoader continueAfterContentPolicy:response:]):
3199 (-[WebMainResourceLoader continueAfterContentPolicy:]):
3200 (-[WebMainResourceLoader checkContentPolicyForResponse:]):
3201 (-[WebMainResourceLoader didReceiveResponse:]):
3202 (-[WebMainResourceLoader didReceiveData:lengthReceived:]):
3203 (-[WebMainResourceLoader didFinishLoading]):
3204 (-[WebMainResourceLoader didFailWithError:]):
3205 (-[WebMainResourceLoader loadWithRequestNow:]):
3207 2006-08-03 Sam Weinig <sam.weinig@gmail.com>
3211 - patch for http://bugs.webkit.org/show_bug.cgi?id=10176
3212 Make WebCore compile with -Wundef
3214 * Adds -Wundef flag to Xcode project
3215 * Converts #ifs to #ifdef and #ifndefs where needed.
3217 * Carbon/CarbonUtils.m:
3218 * Carbon/CarbonWindowAdapter.m:
3219 * Carbon/HIViewAdapter.m:
3220 (+[NSView bindHIViewToNSView:nsView:]):
3221 * Carbon/HIWebView.m:
3222 (HIWebViewEventHandler):
3223 * Misc/WebFileDatabase.m:
3224 (UniqueFilePathForKey):
3225 * Misc/WebNSWindowExtras.m:
3226 (swizzleInstanceMethod):
3227 * Misc/WebTypesInternal.h:
3228 * Plugins/WebNetscapeDeprecatedFunctions.c:
3229 * Plugins/WebNetscapeDeprecatedFunctions.h:
3230 * Plugins/WebNetscapePluginPackage.h:
3231 * Plugins/WebNetscapePluginPackage.m:
3232 (-[WebNetscapePluginPackage unloadWithoutShutdown]):
3233 (-[WebNetscapePluginPackage load]):
3234 * WebKit.xcodeproj/project.pbxproj:
3236 2006-08-03 Darin Adler <darin@apple.com>
3238 Reviewed by Eric Seidel.
3242 * WebView/WebFrame.m: (-[WebFramePrivate dealloc]): Release the frame loader.
3244 2006-08-02 Timothy Hatcher <timothy@apple.com>
3246 Rubber stamped by Maciej.
3248 Adding back resultsWithXpathQuery, removed by Darin's earlier change.
3249 This function is called from ObjC, but not used from JavaScript.
3251 * WebInspector/webInspector/inspector.js:
3253 2006-08-02 Timothy Hatcher <timothy@apple.com>
3257 Bug 10200: [Drosera] Deadlock between Drosera and Safari while loading page
3258 http://bugs.webkit.org/show_bug.cgi?id=10200
3260 Prevent reentrancy in our debugger callbacks. This was causing a deadlock in Drosera because
3261 suspendProcessIfPaused was being called during a DO call into Safari.
3263 Preventing reentrancy also prevents scripts that Drosera injects and evaluates from showing
3264 up in rare cases (such as a iframe loading about:blank). I thought this would prevent cases
3265 where you call a function from the console and expect it to break on a breakpoint in them, but
3266 this appears to never have worked even without this change. When that is figured out we can
3267 reconsider a better solution to reentrancy. I have filed that as bug 10214.
3269 I also removed the NSRunLoop runMode:beforeDate: calls since DO handles this for us since
3270 we don't use "onway void" as the return type for the callbacks. Note: using onway void for
3271 the listener callbacks causes bad synchronization issues and obscure crashes.
3273 * DefaultDelegates/WebScriptDebugServer.m:
3274 (-[WebScriptDebugServer webView:didLoadMainResourceForDataSource:]):
3275 (-[WebScriptDebugServer webView:didParseSource:baseLineNumber:fromURL:sourceId:forWebFrame:]):
3276 (-[WebScriptDebugServer webView:failedToParseSource:baseLineNumber:fromURL:withError:forWebFrame:]):
3277 (-[WebScriptDebugServer webView:didEnterCallFrame:sourceId:line:forWebFrame:]):
3278 (-[WebScriptDebugServer webView:willExecuteStatement:sourceId:line:forWebFrame:]):
3279 (-[WebScriptDebugServer webView:willLeaveCallFrame:sourceId:line:forWebFrame:]):
3280 (-[WebScriptDebugServer webView:exceptionWasRaised:sourceId:line:forWebFrame:]):
3281 * DefaultDelegates/WebScriptDebugServerPrivate.h:
3283 2006-08-02 Maciej Stachowiak <mjs@apple.com>
3287 - fix assertion failure on layout tests by stopping plugins from loading at a clearly defined time
3288 - add more assertions for safety
3290 * WebView/WebDataSource.m:
3291 (-[WebDataSourcePrivate dealloc]): Removed obsolete comment.
3292 (-[WebDataSource _updateLoading]): Add assertion ensuring this method is only called
3293 at a time when this data source is the one that might be loading for a frame.
3294 (-[WebDataSource _stopLoading]): Stop loading plugins as a FIXME suggests we should.
3295 * WebView/WebFrameLoader.m:
3296 (-[WebFrameLoader isLoadingPlugIns]): New helper method.
3297 (-[WebFrameLoader isLoading]): Consider plugin loads too - otherwise we won't stop them
3298 at stopLoading time.
3300 2006-08-02 Adam Roben <aroben@apple.com>
3304 - Rename TransferJob to ResourceLoader (this file was forgotten in an
3305 earlier change by Maciej)
3309 2006-08-01 Maciej Stachowiak <mjs@apple.com>
3313 - Change things around so WebFrameLoader tracks the main and provisional data source,
3314 as well as the frame load state, pulling much code out of WebFrame along the way.
3316 The most significant aspects of this change are:
3318 - management of WebDataSources and WebFrameState was moved into WebFrameLoader
3319 - there is now just one WebFrameLoader shared between the primary and provisional data source
3321 * WebKit.xcodeproj/project.pbxproj:
3322 * WebView/WebDataSource.m:
3323 (-[WebDataSourcePrivate dealloc]):
3324 (-[WebDataSource _updateLoading]):
3325 (-[WebDataSource _loadIcon]):
3326 (-[WebDataSource _setPrimaryLoadComplete:]):
3327 (-[WebDataSource _stopLoading]):
3328 (-[WebDataSource _startLoading]):
3329 (-[WebDataSource _addSubresourceLoader:]):
3330 (-[WebDataSource _removeSubresourceLoader:]):
3331 (-[WebDataSource _addPlugInStreamLoader:]):
3332 (-[WebDataSource _removePlugInStreamLoader:]):
3333 (-[WebDataSource _defersCallbacksChanged]):
3334 (-[WebDataSource _stopLoadingWithError:]):
3335 (-[WebDataSource _revertToProvisionalState]):
3336 (-[WebDataSource _setupForReplaceByMIMEType:]):
3337 (-[WebDataSource initWithRequest:]):
3338 (-[WebDataSource data]):
3339 (-[WebDataSource isLoading]):
3340 * WebView/WebFrame.m:
3341 (-[WebFramePrivate init]):
3342 (-[WebFramePrivate dealloc]):
3343 (-[WebFrame _closeOldDataSources]):
3344 (-[WebFrame _detachFromParent]):
3345 (-[WebFrame _makeDocumentView]):
3346 (-[WebFrame _receivedMainResourceError:]):
3347 (-[WebFrame _transitionToCommitted:]):
3348 (+[WebFrame _timeOfLastCompletedLoad]):
3349 (-[WebFrame _checkLoadCompleteForThisFrame]):
3350 (-[WebFrame _loadItem:withLoadType:]):
3351 (-[WebFrame _continueAfterWillSubmitForm:]):
3352 (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
3353 (-[WebFrame _initWithWebFrameView:webView:bridge:]):
3354 (-[WebFrame _frameLoader]):
3355 (-[WebFrame _provisionalLoadStarted]):
3356 (-[WebFrame _prepareForDataSourceReplacement]):
3357 (-[WebFrame _frameLoadCompleted]):
3358 (-[WebFrame provisionalDataSource]):
3359 (-[WebFrame dataSource]):
3360 (-[WebFrame stopLoading]):
3361 * WebView/WebFrameInternal.h:
3362 * WebView/WebFrameLoader.h:
3363 * WebView/WebFrameLoader.m:
3364 (-[WebFrameLoader initWithWebFrame:]):
3365 (-[WebFrameLoader dealloc]):
3366 (-[WebFrameLoader dataSource]):
3367 (-[WebFrameLoader _setDataSource:]):
3368 (-[WebFrameLoader clearDataSource]):
3369 (-[WebFrameLoader provisionalDataSource]):
3370 (-[WebFrameLoader _setProvisionalDataSource:]):
3371 (-[WebFrameLoader _clearProvisionalDataSource]):
3372 (-[WebFrameLoader state]):
3373 (+[WebFrameLoader timeOfLastCompletedLoad]):
3374 (-[WebFrameLoader _setState:]):
3375 (-[WebFrameLoader clearProvisionalLoad]):
3376 (-[WebFrameLoader markLoadComplete]):
3377 (-[WebFrameLoader commitProvisionalLoad]):
3378 (-[WebFrameLoader stopLoading]):
3379 (-[WebFrameLoader startLoading]):
3380 (-[WebFrameLoader startProvisionalLoad:]):
3381 (-[WebFrameLoader setupForReplace]):
3382 * WebView/WebFramePrivate.h:
3384 2006-08-01 Tim Omernick <timo@apple.com>
3386 Reviewed by John Sullivan.
3388 <rdar://problem/4480737> Flash crashes after it replaces itself via a document.write()
3390 I kind of hate to do this, but this is the best way to work around buggy plug-ins like Flash that assume that
3391 NPP_Destroy() cannot be called while the browser is calling one of its other plug-in functions. The classic
3392 situation is a plug-in that replaces itself via an NPN_Invoke() that executes a document.write().
3394 * Plugins/WebBaseNetscapePluginView.h:
3395 * Plugins/WebBaseNetscapePluginView.m:
3396 (-[WebBaseNetscapePluginView sendEvent:]):
3397 Call -willCallPlugInFunction and -didCallPlugInFunction around calls to the NPP_* functions.
3398 (-[WebBaseNetscapePluginView setWindowIfNecessary]):
3400 (-[WebBaseNetscapePluginView start]):
3401 It should not be possible to start a plug-in instance while we are calling into it (one of those chicken/egg
3402 problems). Added a sanity-checking assertion.
3403 (-[WebBaseNetscapePluginView stop]):
3404 If we're already calling a plug-in function, do not call NPP_Destroy(). The plug-in function we are calling
3405 may assume that its instance->pdata, or other memory freed by NPP_Destroy(), is valid and unchanged until said
3406 plugin-function returns.
3407 (-[WebBaseNetscapePluginView pluginScriptableObject]):
3408 Call -willCallPlugInFunction and -didCallPlugInFunction around calls to the NPP_* functions.
3409 (-[WebBaseNetscapePluginView willCallPlugInFunction]):
3410 Increment plug-in function call depth.
3411 (-[WebBaseNetscapePluginView didCallPlugInFunction]):
3412 Decrement plug-in function call depth. Stop if we're supposed to stop.
3413 (-[WebBaseNetscapePluginView evaluateJavaScriptPluginRequest:]):
3414 Call -willCallPlugInFunction and -didCallPlugInFunction around calls to the NPP_* functions.
3415 (-[WebBaseNetscapePluginView webFrame:didFinishLoadWithReason:]):
3417 (-[WebBaseNetscapePluginView _printedPluginBitmap]):
3420 * Plugins/WebBaseNetscapePluginStream.m:
3421 (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:]):
3422 Call -willCallPlugInFunction and -didCallPlugInFunction around calls to the NPP_* functions.
3423 (-[WebBaseNetscapePluginStream _destroyStream]):
3425 (-[WebBaseNetscapePluginStream _deliverData]):
3428 2006-08-01 Maciej Stachowiak <mjs@apple.com>
3430 - fix build after last change
3432 * WebView/WebFrame.m:
3433 (-[WebFrame _checkLoadCompleteForThisFrame]):
3435 2006-08-01 Maciej Stachowiak <mjs@apple.com>
3439 - revert part of my last fix that broke the Safari bookmarks view
3441 * WebView/WebFrame.m:
3442 (-[WebFrame _checkLoadCompleteForThisFrame]): still send layout message for non-HTML views
3444 2006-08-01 Tim Omernick <timo@apple.com>
3448 Fixed an assertion failure I ran into while debugging <rdar://problem/4652683>.
3450 * Plugins/WebNetscapePluginEmbeddedView.m:
3451 (-[WebNetscapePluginEmbeddedView redeliverStream]):
3452 Don't clear the "instance" ivar here. This code was refactored here from the old WebNetscapePluginRepresentation,
3453 which also had an "instance" ivar. It is never appropriate to clear a plug-in view's instance. That is done when
3454 the plug-in is destroyed.
3456 2006-08-01 Maciej Stachowiak <mjs@apple.com>
3460 - some refactoring in preparation for moving more stuff to WebFrameLoader.
3462 * WebView/WebFrame.m:
3463 (-[WebFrame _clearDataSource]):
3464 (-[WebFrame _detachFromParent]):
3465 (-[WebFrame _commitProvisionalLoad]):
3466 (-[WebFrame _transitionToCommitted:]):
3467 (-[WebFrame _clearProvisionalLoad]):
3468 (-[WebFrame _markLoadComplete]):
3469 (-[WebFrame _checkLoadCompleteForThisFrame]):
3470 (-[WebFrame _startProvisionalLoad:]):
3471 (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
3472 (-[WebFrame stopLoading]):
3474 2006-07-31 Maciej Stachowiak <mjs@apple.com>
3476 Reviewed by Tim Hatcher.
3478 - renamed TransferJob to ResourceLoader in WebCore
3481 (WebFrame::loadDataSource):
3482 (WebFrame::receivedRedirect):
3483 (WebFrame::receivedResponse):
3484 (WebFrame::receivedData):
3485 (WebFrame::receivedAllData):
3486 (WebFrame::setStatusText):
3489 2006-07-31 Darin Adler <darin@apple.com>
3493 - omit the margin and padding boxes for display types where they are ignored
3494 - use CSS instead of properties for table spacing and padding as suggested by Tim H.
3496 * WebInspector/webInspector/inspector.css: Added rules for spacing and padding.
3497 Added rules that hide the margin and padding boxes (borders and all but the center cell)
3498 when the hide attribute is present.
3499 * WebInspector/webInspector/inspector.html: Added classes for the rules above.
3500 Removed cellpadding and cellspacing attributes.
3501 * WebInspector/webInspector/inspector.js: Added code to hide/show the margin and
3502 padding boxes based on the display type.
3504 2006-07-31 Duncan Wilcox <duncan@mclink.it>
3508 Fixes <http://bugs.webkit.org/show_bug.cgi?id=10159>
3509 "REGRESSION: delegate returning no menu elements crashes webkit"
3511 No automated test, because there's no way to programmatically open a context menu,
3512 no manual test because there's no way to customize the context menu delegate.
3514 * WebView/WebView.m:
3515 (-[WebView _menuForElement:defaultItems:]): Make sure the context menu returned
3516 some menu items before accessing the first one.
3518 2006-07-31 Timothy Hatcher <timothy@apple.com>
3522 <rdar://problem/4658194> REGRESSION: "Search in Google"
3523 and "Search in Spotlight" fail to work on text selected in a frame
3525 Use selectedFrame to get the frame with the text selection.
3527 * WebView/WebView.m:
3528 (-[WebView _searchWithGoogleFromMenu:]):
3529 (-[WebView _searchWithSpotlightFromMenu:]):
3531 2006-07-31 Darin Adler <darin@apple.com>
3533 Reviewed by Tim Hatcher.
3535 - http://bugs.webkit.org/show_bug.cgi?id=10168
3536 add a first cut at a Metrics pane to the inspector
3538 * WebInspector/webInspector/inspector.css: Add styles for the new metrics pane.
3539 * WebInspector/webInspector/inspector.html: Add the new metrics pane, starting with
3540 the table to show the box model.
3541 * WebInspector/webInspector/inspector.js: Add the new metrics pane. Add back some
3542 "title" attributes so we have more tooltips. Removed the optional parameter to
3545 2006-07-31 Anders Carlsson <acarlsson@apple.com>
3549 * Plugins/WebPluginDatabase.m:
3550 (-[WebPluginDatabase refresh]):
3551 Create a mutable set instead of a mutable array.
3553 2006-07-30 Darin Adler <darin@apple.com>
3555 Reviewed by Tim Hatcher.
3557 * WebInspector/webInspector/inspector.js: Fix bug where a null property value
3558 leads to an empty style pane.
3560 2006-07-30 Darin Adler <darin@apple.com>
3562 Reviewed by Tim Hatcher.
3564 - http://bugs.webkit.org/show_bug.cgi?id=10163
3565 some improvements for the inspector
3567 * WebInspector/WebInspector.m:
3568 (+[WebInspector sharedWebInspector:]): Fixed bug that could cause the inspector
3569 to be garbage collected if used in an application with GC enabled.
3570 (-[WebInspector dealloc]): Removed a call to a non-existent close method.
3571 (-[WebInspector window]): Added a custom WebPreferences object and called
3572 setPrivateBrowsingEnabled:YES so the inspector won't appear in the history menu.
3573 Also call setProhibitsMainFrameScrolling:YES to try to get rid of trouble where