1 2006-10-09 Brady Eidson <beidson@apple.com>
3 Quick layouttest fix until I make the real fix
5 * Loader/WebFrameLoader.m:
7 2006-10-09 Maciej Stachowiak <mjs@apple.com>
11 - wean WebFrameLoader from WebDataSource private stuff
13 (actually just tweaks tot he above to make merging my future
14 patches easier since Darin did a lot of the same stuff)
16 * Loader/WebDocumentLoader.h:
17 * Loader/WebDocumentLoader.m:
18 (-[WebDocumentLoader URLForHistory]):
19 * Loader/WebFrameLoader.m:
20 (-[WebFrameLoader _loadRequest:archive:]):
21 (-[WebFrameLoader revertToProvisionalWithDocumentLoader:]):
22 (-[WebFrameLoader documentLoader:setMainDocumentError:]):
23 (-[WebFrameLoader finalSetupForReplaceWithDocumentLoader:]):
24 (-[WebFrameLoader didChangeTitleForDocument:]):
25 (-[WebFrameLoader loadDocumentLoader:withLoadType:formState:]):
26 * Loader/WebFrameLoaderClient.h:
27 * WebView/WebDataSource.m:
28 (-[WebDataSource _URLForHistory]):
30 (-[WebFrame _addDocumentLoader:toUnarchiveState:]):
31 (-[WebFrame _revertToProvisionalStateForDocumentLoader:]):
32 (-[WebFrame _setMainDocumentError:forDocumentLoader:]):
33 (-[WebFrame _clearUnarchivingStateForLoader:]):
35 2006-10-09 Darin Adler <darin@apple.com>
39 - eliminated WebFrameLoader dependency on WebDataSourceInternal.h,
40 WebIconDatabasePrivate.h, and WebKitErrorsPrivate.h, along with
41 most but not all references to WebView
43 * Loader/WebFrameLoader.h:
44 * Loader/WebFrameLoader.m:
45 (-[WebFrameLoader removePlugInStreamLoader:]):
46 (-[WebFrameLoader _receivedMainResourceError:complete:]):
47 (-[WebFrameLoader _notifyIconChanged:]):
48 (-[WebFrameLoader cancelledErrorWithRequest:]):
49 (-[WebFrameLoader fileDoesNotExistErrorWithResponse:]):
50 (-[WebFrameLoader handleUnimplementablePolicyWithError:]):
51 (-[WebFrameLoader cannotShowMIMETypeWithResponse:]):
52 (-[WebFrameLoader interruptForPolicyChangeErrorWithRequest:]):
53 (-[WebFrameLoader _loadRequest:archive:]):
54 (-[WebFrameLoader finishedLoadingDocument:]):
55 (-[WebFrameLoader committedLoadWithDocumentLoader:data:]):
56 (-[WebFrameLoader revertToProvisionalWithDocumentLoader:]):
57 (-[WebFrameLoader documentLoader:setMainDocumentError:]):
58 (-[WebFrameLoader finalSetupForReplaceWithDocumentLoader:]):
59 (-[WebFrameLoader didChangeTitleForDocument:]):
60 (-[WebFrameLoader continueAfterNavigationPolicy:]):
61 (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
62 (-[WebFrameLoader loadDocumentLoader:withLoadType:formState:]):
63 (-[WebFrameLoader transitionToCommitted:]):
64 (-[WebFrameLoader checkLoadCompleteForThisFrame]):
65 (-[WebFrameLoader requestFromDelegateForRequest:identifier:error:]):
66 (-[WebFrameLoader addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
67 (-[WebFrameLoader checkLoadComplete]):
68 * Loader/WebFrameLoaderClient.h:
69 * Loader/WebMainResourceLoader.m:
70 (-[WebMainResourceLoader continueAfterContentPolicy:response:]):
72 (-[WebFrame _addDocumentLoader:toUnarchiveState:]):
73 (-[WebFrame _formDelegate]):
74 (-[WebFrame _finishedLoadingDocument:]):
75 (-[WebFrame _committedLoadWithDocumentLoader:data:]):
76 (-[WebFrame _revertToProvisionalWithDocumentLoader:]):
77 (-[WebFrame _documentLoader:setMainDocumentError:]):
78 (-[WebFrame _finalSetupForReplaceWithDocumentLoader:]):
79 (-[WebFrame _URLForHistoryForDocumentLoader:]):
80 (-[WebFrame _cancelledErrorWithRequest:]):
81 (-[WebFrame _cannotShowURLErrorWithRequest:]):
82 (-[WebFrame _interruptForPolicyChangeErrorWithRequest:]):
83 (-[WebFrame _cannotShowMIMETypeErrorWithResponse:]):
84 (-[WebFrame _fileDoesNotExistErrorWithResponse:]):
85 (-[WebFrame _shouldFallBackForError:]):
86 (-[WebFrame _hasWebView]):
87 (-[WebFrame _mainFrameURL]):
88 * WebView/WebFrameInternal.h:
90 2006-10-09 Maciej Stachowiak <mjs@apple.com>
92 Reviewed, landed, tweaked a bit by Darin.
94 - removed most uses of WebFrameBridge from WebFrameLoader
95 (WebCoreFrameBridge use is OK)
97 * Loader/WebDocumentLoader.m:
98 (-[WebDocumentLoader bridge]):
99 * Loader/WebFrameLoader.h:
100 * Loader/WebFrameLoader.m:
101 (-[WebFrameLoader initWithFrame:client:]):
102 (-[WebFrameLoader defersCallbacksChanged]):
103 (-[WebFrameLoader defersCallbacks]):
104 (-[WebFrameLoader provisionalLoadStarted]):
105 (-[WebFrameLoader stopLoadingSubframes]):
106 (-[WebFrameLoader _willSendRequest:forResource:redirectResponse:]):
107 (-[WebFrameLoader _receivedMainResourceError:complete:]):
108 (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
109 (-[WebFrameLoader continueFragmentScrollAfterNavigationPolicy:formState:]):
110 (-[WebFrameLoader closeOldDataSources]):
111 (-[WebFrameLoader commitProvisionalLoad:]):
112 (-[WebFrameLoader bridge]):
113 (-[WebFrameLoader _handleFallbackContent]):
114 (-[WebFrameLoader _finishedLoading]):
115 (-[WebFrameLoader reload]):
116 (-[WebFrameLoader checkNavigationPolicyForRequest:documentLoader:formState:andCall:withSelector:]):
117 (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
118 (-[WebFrameLoader transitionToCommitted:]):
119 (-[WebFrameLoader continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
120 (-[WebFrameLoader loadRequest:inFrameNamed:]):
121 (-[WebFrameLoader postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
122 (-[WebFrameLoader detachFromParent]):
123 (-[WebFrameLoader addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
124 (-[WebFrameLoader safeLoadURL:]):
125 (-[WebFrameLoader actionInformationForLoadType:isFormSubmission:event:originalURL:]):
126 * WebCoreSupport/WebFrameBridge.m:
127 (-[WebFrameBridge initMainFrameWithPage:frameName:view:]):
128 (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]):
129 * WebView/WebFrame.m:
130 (-[WebFrame _atMostOneFrameHasSelection]):
131 * WebView/WebFrameInternal.h:
133 2006-10-09 Darin Adler <darin@apple.com>
137 - removed almost all direct use of WebView from WebFrameLoader
139 * Loader/WebFrameLoader.m:
140 (-[WebFrameLoader defersCallbacksChanged]):
141 (-[WebFrameLoader defersCallbacks]):
142 (-[WebFrameLoader clearProvisionalLoad]):
143 (-[WebFrameLoader _willSendRequest:forResource:redirectResponse:]):
144 (-[WebFrameLoader _didReceiveResponse:forResource:]):
145 (-[WebFrameLoader _didReceiveData:contentLength:forResource:]):
146 (-[WebFrameLoader _didFinishLoadingForResource:]):
147 (-[WebFrameLoader _didFailLoadingWithError:forResource:]):
148 (-[WebFrameLoader closeOldDataSources]):
149 (-[WebFrameLoader _notifyIconChanged:]):
150 (-[WebFrameLoader prepareForLoadStart]):
151 (-[WebFrameLoader willChangeTitleForDocument:]):
152 (-[WebFrameLoader didChangeTitleForDocument:]):
153 (-[WebFrameLoader continueAfterNewWindowPolicy:]):
154 (-[WebFrameLoader continueAfterNavigationPolicy:]):
155 (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
156 (-[WebFrameLoader didFirstLayout]):
157 (-[WebFrameLoader transitionToCommitted:]):
158 (-[WebFrameLoader checkLoadCompleteForThisFrame]):
159 (-[WebFrameLoader addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
160 * Loader/WebFrameLoaderClient.h:
161 * WebKit.xcodeproj/project.pbxproj:
162 * WebView/WebFrame.m:
163 (-[WebFrame _currentBackForwardListItemToResetTo]):
164 (-[WebFrame _hasBackForwardList]):
165 (-[WebFrame _resetBackForwardList]):
166 (-[WebFrame _dispatchDidReceiveIcon:]):
167 (-[WebFrame _dispatchDidStartProvisionalLoadForFrame]):
168 (-[WebFrame _dispatchDidCommitLoadForFrame]):
169 (-[WebFrame _dispatchDidFailProvisionalLoadWithError:]):
170 (-[WebFrame _dispatchDidFailLoadWithError:]):
171 (-[WebFrame _dispatchDidFinishLoadForFrame]):
172 (-[WebFrame _progressStarted]):
173 (-[WebFrame _progressCompleted]):
174 (-[WebFrame _incrementProgressForIdentifier:response:]):
175 (-[WebFrame _incrementProgressForIdentifier:data:]):
176 (-[WebFrame _completeProgressForIdentifier:]):
177 (-[WebFrame _setMainFrameDocumentReady:]):
178 (-[WebFrame _willChangeTitleForDocument:]):
179 (-[WebFrame _didChangeTitleForDocument:]):
180 (-[WebFrame _startDownloadWithRequest:]):
182 2006-10-09 Maciej Stachowiak <mjs@apple.com>
187 - moved WebFormState into Loader directory and tweaked to avoid WebKit dependencies
189 * Loader/WebDocumentLoader.h:
190 * Loader/WebFormState.h: Added.
191 * Loader/WebFormState.m: Added.
192 (-[WebFormState initWithForm:values:sourceFrame:]):
193 (-[WebFormState dealloc]):
194 (-[WebFormState form]):
195 (-[WebFormState values]):
196 (-[WebFormState sourceFrame]):
197 * Loader/WebFrameLoader.h:
198 * Loader/WebFrameLoader.m:
199 (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
200 (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
201 (-[WebFrameLoader postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
202 * WebKit.xcodeproj/project.pbxproj:
203 * WebView/WebFrame.m:
204 * WebView/WebFrameInternal.h:
206 2006-10-09 Maciej Stachowiak <mjs@apple.com>
210 - remove dependency on WebNSURLRequestExtras.h
212 * Loader/WebFrameLoader.h:
213 * Loader/WebFrameLoader.m:
214 (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
215 (-[WebFrameLoader postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
216 (-[WebFrameLoader addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
218 2006-10-09 Maciej Stachowiak <mjs@apple.com>
222 - removed unneeded logging code so I can take WebKitLogging.h out and remove a WebKit dependency
224 * Loader/WebFrameLoader.m:
225 (-[WebFrameLoader setState:]):
226 (-[WebFrameLoader clientRedirectCancelledOrFinished:]):
227 (-[WebFrameLoader clientRedirectedTo:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
228 (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
229 (-[WebFrameLoader continueFragmentScrollAfterNavigationPolicy:formState:]):
230 (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
231 (-[WebFrameLoader checkLoadCompleteForThisFrame]):
233 2006-10-09 Maciej Stachowiak <mjs@apple.com>
237 - remove WebDataSource from the WebFrameLoader interface (and thereby from a lot of internal use)
239 * Loader/WebDocumentLoader.h:
240 * Loader/WebDocumentLoader.m:
241 (-[WebDocumentLoader dealloc]):
242 (-[WebDocumentLoader initialRequest]):
243 (-[WebDocumentLoader URL]):
244 (-[WebDocumentLoader unreachableURL]):
245 * Loader/WebFrameLoader.h:
246 * Loader/WebFrameLoader.m:
247 (-[WebFrameLoader setState:]):
248 (-[WebFrameLoader startLoading]):
249 (-[WebFrameLoader startProvisionalLoad:]):
250 (-[WebFrameLoader clientRedirectedTo:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
251 (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
252 (-[WebFrameLoader opened]):
253 (-[WebFrameLoader commitProvisionalLoad:]):
254 (-[WebFrameLoader initialRequest]):
255 (-[WebFrameLoader _finishedLoading]):
256 (-[WebFrameLoader _notifyIconChanged:]):
257 (-[WebFrameLoader _URL]):
258 (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
259 (-[WebFrameLoader _checkNavigationPolicyForRequest:andCall:withSelector:]):
260 (-[WebFrameLoader shouldReloadToHandleUnreachableURLFromRequest:]):
261 (-[WebFrameLoader _loadRequest:archive:]):
262 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
263 (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
264 (-[WebFrameLoader reload]):
265 (-[WebFrameLoader checkNavigationPolicyForRequest:documentLoader:formState:andCall:withSelector:]):
266 (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
267 (-[WebFrameLoader loadDocumentLoader:withLoadType:formState:]):
268 (-[WebFrameLoader frameLoadCompleted]):
269 (-[WebFrameLoader transitionToCommitted:]):
270 (-[WebFrameLoader checkLoadCompleteForThisFrame]):
271 (-[WebFrameLoader safeLoadURL:]):
272 * Loader/WebFrameLoaderClient.h:
273 * Plugins/WebBaseNetscapePluginView.m:
274 (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]):
275 * WebCoreSupport/WebFrameBridge.m:
276 (-[WebFrameBridge originalRequestURL]):
277 * WebView/WebDataSource.m:
278 (-[WebDataSource _URL]):
279 (-[WebDataSource dealloc]):
280 (-[WebDataSource initialRequest]):
281 (-[WebDataSource unreachableURL]):
282 * WebView/WebFrame.m:
283 (-[WebFrame _loadItem:withLoadType:]):
284 (-[WebFrame _prepareForDataSourceReplacement]):
285 (-[WebFrame provisionalDataSource]):
286 (-[WebFrame dataSource]):
287 (-[WebFrame _makeDocumentView]):
288 (-[WebFrame _updateHistoryForReload]):
289 (-[WebFrame _updateHistoryForStandardLoad]):
290 (-[WebFrame _updateHistoryForInternalLoad]):
291 (-[WebFrame _forceLayoutForNonHTML]):
292 (-[WebFrame _clearLoadingFromPageCacheForDocumentLoader:]):
293 (-[WebFrame _isDocumentLoaderLoadingFromPageCache:]):
294 (-[WebFrame _archivedSubresourceForURL:fromDocumentLoader:]):
295 (-[WebFrame _makeRepresentationForDocumentLoader:]):
297 2006-10-09 Maciej Stachowiak <mjs@apple.com>
301 - removed need for WebFrameLoader to now about WebDocumentLoaderMac
303 * Loader/WebFrameLoader.m:
304 (-[WebFrameLoader loadDataSource:withLoadType:formState:]):
305 * WebView/WebDocumentLoaderMac.h:
306 * WebView/WebDocumentLoaderMac.m:
307 (-[WebDocumentLoaderMac setFrameLoader:]):
308 (-[WebDocumentLoaderMac detachFromFrameLoader]):
310 2006-10-09 Darin Adler <darin@apple.com>
314 - passed calls that require WebScriptDebugServer across the client interface
316 * Loader/WebFrameLoader.m:
317 (-[WebFrameLoader _finishedLoading]):
318 (-[WebFrameLoader documentLoader:mainReceivedCompleteError:]):
319 * Loader/WebFrameLoaderClient.h:
320 * WebView/WebFrame.m:
321 (-[WebFrame _dispatchDidLoadMainResourceForDocumentLoader:]):
323 2006-10-08 Darin Adler <darin@apple.com>
327 - passed calls that require WebHTMLView or WebFrameView calls across
330 * Loader/WebFrameLoader.h:
331 * Loader/WebFrameLoader.m:
332 (isCaseInsensitiveEqual):
333 (isBackForwardLoadType):
334 (-[WebFrameLoader opened]):
335 (-[WebFrameLoader cancelledErrorWithRequest:]):
336 (-[WebFrameLoader fileDoesNotExistErrorWithResponse:]):
337 (-[WebFrameLoader reload]):
338 (-[WebFrameLoader transitionToCommitted:]):
339 * Loader/WebFrameLoaderClient.h:
340 * WebView/WebFrame.m:
341 (-[WebFrame _forceLayout]):
342 (-[WebFrame _setDocumentViewFromPageCache:]):
343 (-[WebFrame _setCopiesOnScroll]):
345 2006-10-08 Maciej Stachowiak <mjs@apple.com>
349 - pass remaining delegate methods across client interface
351 * Loader/WebFrameLoader.m:
352 (-[WebFrameLoader _checkContentPolicyForMIMEType:andCall:withSelector:]):
353 (-[WebFrameLoader checkNewWindowPolicyForRequest:action:frameName:formState:andCall:withSelector:]):
354 (-[WebFrameLoader checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
355 (-[WebFrameLoader handleUnimplementablePolicyWithErrorCode:forURL:]):
356 (-[WebFrameLoader didFirstLayout]):
357 (-[WebFrameLoader continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
358 * Loader/WebFrameLoaderClient.h:
359 * WebView/WebFrame.m:
360 (-[WebFrame _dispatchDidFirstLayoutInFrame]):
361 (-[WebFrame _dispatchCreateWebViewWithRequest:]):
362 (-[WebFrame _dispatchShow]):
363 (-[WebFrame _dispatchDecidePolicyForMIMEType:request:decisionListener:]):
364 (-[WebFrame _dispatchDecidePolicyForNewWindowAction:request:newFrameName:decisionListener:]):
365 (-[WebFrame _dispatchDecidePolicyForNavigationAction:request:decisionListener:]):
366 (-[WebFrame _dispatchUnableToImplementPolicyWithError:]):
368 2006-10-08 Darin Adler <darin@apple.com>
372 - use WebCoreSystemInterface instead of WebSystemInterface in Loader directory
374 * Loader/WebFrameLoader.m: Update includes.
375 (-[WebFrameLoader commitProvisionalLoad:]): Use wk calls istead of WK.
376 (-[WebFrameLoader _canUseResourceWithResponse:]): Ditto.
378 * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface):
379 Added the three new symbols, and resorted the list.
381 * Loader/WebDataProtocol.m:
382 * Loader/WebLoader.m:
383 * Loader/WebMainResourceLoader.h:
384 * Loader/WebMainResourceLoader.m:
385 * Loader/WebNetscapePlugInStreamLoader.h:
386 * Loader/WebNetscapePlugInStreamLoader.m:
387 * Loader/WebSubresourceLoader.h:
388 * Loader/WebSubresourceLoader.m:
389 Changed import statements to consistently use the "" format.
391 2006-10-08 Maciej Stachowiak <mjs@apple.com>
395 - fix accidental build break due to editing while committing
397 * Loader/WebFrameLoader.m:
399 2006-10-08 Maciej Stachowiak <mjs@apple.com>
403 - move all WebFrameLoadDelegate methods across client interface
405 * Loader/WebFrameLoader.m:
406 (-[WebFrameLoader clientRedirectCancelledOrFinished:]):
407 (-[WebFrameLoader clientRedirectedTo:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
408 (-[WebFrameLoader continueFragmentScrollAfterNavigationPolicy:formState:]):
409 (-[WebFrameLoader closeOldDataSources]):
410 (-[WebFrameLoader _notifyIconChanged:]):
411 (-[WebFrameLoader prepareForLoadStart]):
412 (-[WebFrameLoader didChangeTitleForDocument:]):
413 (-[WebFrameLoader transitionToCommitted:]):
414 (-[WebFrameLoader checkLoadCompleteForThisFrame]):
415 * Loader/WebFrameLoaderClient.h:
416 * WebView/WebFrame.m:
417 (-[WebFrame _dispatchDidCancelClientRedirectForFrame]):
418 (-[WebFrame _dispatchWillPerformClientRedirectToURL:delay:fireDate:]):
419 (-[WebFrame _dispatchDidChangeLocationWithinPageForFrame]):
420 (-[WebFrame _dispatchWillCloseFrame]):
421 (-[WebFrame _dispatchDidReceiveIcon:]):
422 (-[WebFrame _dispatchDidStartProvisionalLoadForFrame]):
423 (-[WebFrame _dispatchDidReceiveTitle:]):
424 (-[WebFrame _dispatchDidCommitLoadForFrame]):
425 (-[WebFrame _dispatchDidFailProvisionalLoadWithError:]):
426 (-[WebFrame _dispatchDidFailLoadWithError:]):
427 (-[WebFrame _dispatchDidFinishLoadForFrame]):
429 2006-10-08 Darin Adler <darin@apple.com>
433 - removed some of the WebKit dependencies in WebFrameLoader
435 * Loader/WebFrameLoader.m:
436 (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
437 (-[WebFrameLoader _downloadWithLoadingConnection:request:response:proxy:]):
438 (-[WebFrameLoader reload]):
439 (-[WebFrameLoader didChangeTitleForDocument:]):
440 * Loader/WebFrameLoaderClient.h:
441 * WebView/WebFrame.m:
442 (-[WebFrame _loadItem:withLoadType:]):
443 (-[WebFrame _loadURL:referrer:intoChild:]):
444 (-[WebFrame _setTitle:forURL:]):
445 (-[WebFrame _downloadWithLoadingConnection:request:response:proxy:]):
446 * WebView/WebFrameInternal.h:
450 * Misc/WebNSURLRequestExtras.m:
451 (-[NSMutableURLRequest _web_setHTTPReferrer:]):
452 (-[NSMutableURLRequest _web_setHTTPUserAgent:]):
454 2006-10-08 Maciej Stachowiak <mjs@apple.com>
458 - pass all WebResourceLoadDelegate methods across client, removing need to include related headers
460 * Loader/WebFrameLoader.m:
461 (-[WebFrameLoader _willSendRequest:forResource:redirectResponse:]):
462 (-[WebFrameLoader _didReceiveAuthenticationChallenge:forResource:]):
463 (-[WebFrameLoader _didCancelAuthenticationChallenge:forResource:]):
464 (-[WebFrameLoader _didReceiveResponse:forResource:]):
465 (-[WebFrameLoader _didReceiveData:contentLength:forResource:]):
466 (-[WebFrameLoader _didFinishLoadingForResource:]):
467 (-[WebFrameLoader _didFailLoadingWithError:forResource:]):
468 (-[WebFrameLoader sendRemainingDelegateMessagesWithIdentifier:response:length:error:]):
469 (-[WebFrameLoader requestFromDelegateForRequest:identifier:error:]):
470 * Loader/WebFrameLoaderClient.h:
471 * WebView/WebFrame.m:
472 (-[WebFrame _dispatchDidHandleOnloadEventsForFrame]):
473 (-[WebFrame _dispatchDidReceiveServerRedirectForProvisionalLoadForFrame]):
474 (-[WebFrame _dispatchIdentifierForInitialRequest:fromDocumentLoader:]):
475 (-[WebFrame _dispatchResource:willSendRequest:redirectResponse:fromDocumentLoader:]):
476 (-[WebFrame _dispatchDidReceiveAuthenticationChallenge:forResource:fromDocumentLoader:]):
477 (-[WebFrame _dispatchDidCancelAuthenticationChallenge:forResource:fromDocumentLoader:]):
478 (-[WebFrame _dispatchResource:didReceiveResponse:fromDocumentLoader:]):
479 (-[WebFrame _dispatchResource:didReceiveContentLength:fromDocumentLoader:]):
480 (-[WebFrame _dispatchResource:didFinishLoadingFromDocumentLoader:]):
481 (-[WebFrame _dispatchResource:didFailLoadingWithError:fromDocumentLoader:]):
483 2006-10-08 Maciej Stachowiak <mjs@apple.com>
487 - started adding some _dispatch methods to WebFrameLoaderClient for delegate dispatch
489 * Loader/WebFrameLoader.m:
490 (-[WebFrameLoader startLoading]):
491 (-[WebFrameLoader didReceiveServerRedirectForProvisionalLoadForFrame]):
492 * Loader/WebFrameLoaderClient.h:
493 * WebCoreSupport/WebFrameBridge.m:
494 (-[WebFrameBridge handledOnloadEvents]):
495 * WebView/WebFrame.m:
497 (-[WebFrame _dataSourceForDocumentLoader:]):
498 (-[WebFrame _dispatchDidHandleOnloadEventsForFrame]):
499 (-[WebFrame _dispatchDidReceiveServerRedirectForProvisionalLoadForFrame]):
500 (-[WebFrame _dispatchIdentifierForInitialRequest:fromDocumentLoader:]):
501 * WebView/WebFrameInternal.h:
503 2006-10-08 Darin Adler <darin@apple.com>
507 - moved more methods to WebFrameLoader from WebFrame
509 * Loader/WebFrameLoader.h:
510 * Loader/WebFrameLoader.m:
511 (-[WebFrameLoader defersCallbacksChanged]):
512 (-[WebFrameLoader startLoadingMainResourceWithRequest:identifier:]):
513 (-[WebFrameLoader setState:]):
514 (-[WebFrameLoader clearProvisionalLoad]):
515 (-[WebFrameLoader markLoadComplete]):
516 (-[WebFrameLoader commitProvisionalLoad]):
517 (-[WebFrameLoader stopLoading]):
518 (-[WebFrameLoader startProvisionalLoad:]):
519 (-[WebFrameLoader setupForReplace]):
520 (-[WebFrameLoader _identifierForInitialRequest:]):
521 (-[WebFrameLoader _finishedLoadingResource]):
522 (-[WebFrameLoader _receivedError:]):
523 (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
524 (-[WebFrameLoader continueFragmentScrollAfterNavigationPolicy:formState:]):
525 (-[WebFrameLoader opened]):
526 (-[WebFrameLoader commitProvisionalLoad:]):
527 (-[WebFrameLoader _finishedLoading]):
528 (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
529 (-[WebFrameLoader _loadRequest:archive:]):
530 (-[WebFrameLoader reload]):
531 (-[WebFrameLoader documentLoader:mainReceivedCompleteError:]):
532 (-[WebFrameLoader subframeIsLoading]):
533 (-[WebFrameLoader checkNewWindowPolicyForRequest:action:frameName:formState:andCall:withSelector:]):
534 (-[WebFrameLoader continueAfterNewWindowPolicy:]):
535 (-[WebFrameLoader checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
536 (-[WebFrameLoader sendRemainingDelegateMessagesWithIdentifier:response:length:error:]):
537 (-[WebFrameLoader loadRequest:inFrameNamed:]):
538 (-[WebFrameLoader postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
539 (-[WebFrameLoader detachChildren]):
540 (-[WebFrameLoader detachFromParent]):
541 (-[WebFrameLoader addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
542 (-[WebFrameLoader safeLoadURL:]):
543 (-[WebFrameLoader actionInformationForLoadType:isFormSubmission:event:originalURL:]):
544 (-[WebFrameLoader actionInformationForNavigationType:event:originalURL:]):
545 (-[WebFrameLoader checkLoadComplete]):
546 * Loader/WebFrameLoaderClient.h:
547 * Loader/WebSubresourceLoader.m:
548 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
549 * WebCoreSupport/WebFrameBridge.m:
550 (-[WebFrameBridge close]):
551 (-[WebFrameBridge tokenizerProcessedData]):
552 (-[WebFrameBridge frameDetached]):
553 * WebView/WebDataSourceInternal.h:
554 * WebView/WebFrame.m:
555 (-[WebFrame _loadItem:withLoadType:]):
556 (-[WebFrame _prepareForDataSourceReplacement]):
557 (-[WebFrame _detachedFromParent1]):
558 (-[WebFrame _detachedFromParent2]):
559 (-[WebFrame _detachedFromParent3]):
560 (-[WebFrame _detachedFromParent4]):
561 (-[WebFrame _updateHistoryAfterClientRedirect]):
562 (-[WebFrame _loadedFromPageCache]):
563 * WebView/WebFrameInternal.h:
564 * WebView/WebPDFView.m:
565 (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
568 (-[WebView setDefersCallbacks:]):
570 2006-10-08 Maciej Stachowiak <mjs@apple.com>
574 - avoid need for WebKitSystemInterface in loader code, via WebCore cover for wkSupportsMultipartXMixedReplace
576 * Loader/WebDocumentLoader.m:
577 (-[WebDocumentLoader initWithRequest:]):
578 * Loader/WebMainResourceLoader.m:
579 * Loader/WebSubresourceLoader.m:
580 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
581 * WebCoreSupport/WebSystemInterface.m:
582 (InitWebCoreSystemInterface):
583 * WebView/WebDataSource.m:
584 (-[WebDataSource _initWithDocumentLoader:]):
586 2006-10-08 Darin Adler <darin@apple.com>
588 - build fix (also a fix for a crasher I forgot to commit before)
590 * Loader/WebFrameLoader.m: Added some missing includes.
591 (-[WebFrameLoader checkLoadCompleteForThisFrame]):
592 Added a needed retain/release.
594 2006-10-08 Darin Adler <darin@apple.com>
598 - quick fix to loader problem causing layout test failures
600 * Loader/WebFrameLoader.m:
601 (-[WebFrameLoader _finishedLoading]): Use a local variable for the bridge
602 that we retain/release.
603 (-[WebFrameLoader continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
606 2006-10-08 Maciej Stachowiak <mjs@apple.com>
610 - removed a few includes from WebFrameLoader, fixed up as appropriate
611 - segregated header includes into ones that need to go away to move the code and ones that don't
613 * Loader/WebFrameLoader.m:
614 (-[WebFrameLoader _privateBrowsingEnabled]):
615 (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
616 * Loader/WebFrameLoaderClient.h:
617 * WebView/WebFrame.m:
618 (-[WebFrame _privateBrowsingEnabled]):
620 2006-10-08 Darin Adler <darin@apple.com>
624 - moved a few methods from WebFrame to WebFrameLoader
626 * Loader/WebFrameLoader.h:
627 * Loader/WebFrameLoader.m:
628 (-[WebFrameLoader _setState:]):
629 (-[WebFrameLoader stopLoadingSubframes]):
630 (-[WebFrameLoader _receivedMainResourceError:complete:]):
631 (-[WebFrameLoader closeOldDataSources]):
632 (-[WebFrameLoader commitProvisionalLoad:]):
633 (-[WebFrameLoader _finishedLoading]):
634 (isBackForwardLoadType):
635 (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
636 (-[WebFrameLoader didFirstLayout]):
637 (-[WebFrameLoader frameLoadCompleted]):
638 (-[WebFrameLoader transitionToCommitted:]):
639 (-[WebFrameLoader checkLoadCompleteForThisFrame]):
640 (-[WebFrameLoader continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
641 (-[WebFrameLoader sendRemainingDelegateMessagesWithIdentifier:response:length:error:]):
642 (-[WebFrameLoader requestFromDelegateForRequest:identifier:error:]):
643 (-[WebFrameLoader loadRequest:inFrameNamed:]):
644 (-[WebFrameLoader postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
645 * Loader/WebFrameLoaderClient.h:
646 * Plugins/WebPluginController.m:
647 (-[WebPluginController webPlugInContainerLoadRequest:inFrame:]):
648 * WebCoreSupport/WebFrameBridge.h:
649 * WebCoreSupport/WebFrameBridge.m:
650 (-[WebFrameBridge initMainFrameWithPage:frameName:view:]):
651 (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]):
652 (-[WebFrameBridge dealloc]):
653 (-[WebFrameBridge frameLoader]):
654 (-[WebFrameBridge setTitle:]):
655 (-[WebFrameBridge receivedData:textEncodingName:]):
656 (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
657 (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
658 (-[WebFrameBridge objectLoadedFromCacheWithURL:response:data:]):
659 (-[WebFrameBridge syncLoadResourceWithMethod:URL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
660 (-[WebFrameBridge reportClientRedirectToURL:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
661 (-[WebFrameBridge reportClientRedirectCancelled:]):
662 (-[WebFrameBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]):
663 (-[WebFrameBridge postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
664 (-[WebFrameBridge didFirstLayout]):
665 (-[WebFrameBridge notifyIconChanged:]):
666 (-[WebFrameBridge originalRequestURL]):
667 (-[WebFrameBridge isLoadTypeReload]):
668 * WebView/WebFrame.m:
669 (-[WebFrame _opened]):
670 (-[WebFrame _checkLoadComplete]):
671 (-[WebFrame _loadItem:withLoadType:]):
672 (-[WebFrame _actionInformationForLoadType:isFormSubmission:event:originalURL:]):
673 (-[WebFrame _loadURL:referrer:intoChild:]):
674 (-[WebFrame _currentBackForwardListItemToResetTo]):
675 (-[WebFrame _updateBackground]):
676 (-[WebFrame _frameLoader]):
677 (-[WebFrame _frameLoadCompleted]):
678 (-[WebFrame _makeDocumentView]):
679 (-[WebFrame _updateHistoryForCommit]):
680 (-[WebFrame _updateHistoryForReload]):
681 (-[WebFrame _updateHistoryForStandardLoad]):
682 (-[WebFrame _updateHistoryForBackForwardNavigation]):
683 (-[WebFrame _updateHistoryForInternalLoad]):
684 (-[WebFrame _tokenForLoadErrorReset]):
685 (-[WebFrame _resetAfterLoadError:]):
686 (-[WebFrame _doNotResetAfterLoadError:]):
687 * WebView/WebFrameInternal.h:
689 2006-10-09 Mark Rowe <bdash@webkit.org>
691 Rubber-stamped by Darin.
693 * WebCoreSupport/WebFrameBridge.m:
694 (-[WebFrameBridge imageTitleForFilename:size:]): Revert accidental change to a UI_STRING that
695 is triggering an assertion failure.
697 2006-10-08 Maciej Stachowiak <mjs@apple.com>
701 - remove unneeded non-Loader header includes from WebFrameLoader.h (split WebFrameLoadType into
702 two coincidentally matching enums)
704 * Loader/WebFrameLoader.h:
705 * Loader/WebFrameLoader.m:
706 (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
707 (-[WebFrameLoader commitProvisionalLoad:]):
708 (isBackForwardLoadType):
709 (-[WebFrameLoader _loadRequest:archive:]):
710 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
711 (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
712 (-[WebFrameLoader reload]):
713 (-[WebFrameLoader isReplacing]):
714 (-[WebFrameLoader setReplacing]):
715 (-[WebFrameLoader loadType]):
716 (-[WebFrameLoader setLoadType:]):
717 (-[WebFrameLoader checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
718 (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
719 (-[WebFrameLoader loadDataSource:withLoadType:formState:]):
720 (-[WebFrameLoader didFirstLayout]):
721 * WebCoreSupport/WebFrameBridge.m:
722 * WebView/WebFrame.m:
723 (-[WebFrame _transitionToCommitted:]):
724 (-[WebFrame _provisionalLoadStarted]):
725 (-[WebFrame _opened]):
726 (-[WebFrame _checkLoadCompleteForThisFrame]):
727 (-[WebFrame _loadItem:withLoadType:]):
728 (-[WebFrame _recursiveGoToItem:fromItem:withLoadType:]):
729 (-[WebFrame _goToItem:withLoadType:]):
730 (-[WebFrame _actionInformationForLoadType:isFormSubmission:event:originalURL:]):
731 (-[WebFrame _continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
732 (-[WebFrame _loadURL:referrer:intoChild:]):
733 (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
734 (-[WebFrame _currentBackForwardListItemToResetTo]):
735 (-[WebFrame _itemForRestoringDocState]):
736 (-[WebFrame _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
737 (-[WebFrame _loadType]):
738 (-[WebFrame loadRequest:]):
739 * WebView/WebFrameInternal.h:
742 2006-10-08 Darin Adler <darin@apple.com>
746 - move WebFrameLoader creation and ownership from WebFrame to WebFrameBridge
748 * Loader/WebFrameLoader.m:
749 (-[WebFrameLoader stopLoadingSubframes]):
750 (-[WebFrameLoader closeOldDataSources]):
751 * WebCoreSupport/WebFrameBridge.h:
752 * WebCoreSupport/WebFrameBridge.m:
753 (-[WebFrameBridge initMainFrameWithPage:frameName:view:]):
754 (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]):
755 (-[WebFrameBridge dealloc]):
756 (-[WebFrameBridge loader]):
757 (-[WebFrameBridge setTitle:]):
758 (-[WebFrameBridge receivedData:textEncodingName:]):
759 (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
760 (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
761 (-[WebFrameBridge reportClientRedirectToURL:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
762 (-[WebFrameBridge reportClientRedirectCancelled:]):
763 (-[WebFrameBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]):
764 (-[WebFrameBridge didFirstLayout]):
765 (-[WebFrameBridge imageTitleForFilename:size:]):
766 (-[WebFrameBridge notifyIconChanged:]):
767 (-[WebFrameBridge originalRequestURL]):
768 (-[WebFrameBridge isLoadTypeReload]):
769 * WebView/WebFrame.m:
770 (-[NSView setWebFrame::]):
771 (-[WebFramePrivate dealloc]):
772 (-[WebFramePrivate setWebFrameView:]):
773 (-[WebFramePrivate setProvisionalItem:]):
774 (-[WebFrame _webDataRequestForData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
775 (-[WebFrame _createItem:]):
776 (-[WebFrame _createItemTreeWithTargetFrame:clippedAtTarget:]):
777 (-[WebFrame _detachFromParent]):
778 (-[WebFrame _makeDocumentView]):
779 (-[WebFrame _transitionToCommitted:]):
780 (-[WebFrame _provisionalLoadStarted]):
781 (-[WebFrame _opened]):
782 (-[WebFrame _checkLoadCompleteForThisFrame]):
783 (-[WebFrame _loadItem:withLoadType:]):
784 (-[WebFrame _recursiveGoToItem:fromItem:withLoadType:]):
785 (-[WebFrame _continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
786 (-[WebFrame _loadURL:referrer:intoChild:]):
787 (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
788 (-[WebFrame _setTitle:]):
789 (-[WebFrame _defersCallbacksChanged]):
790 (-[WebFrame _currentBackForwardListItemToResetTo]):
791 (-[WebFrame _itemForSavingDocState]):
792 (-[WebFrame _itemForRestoringDocState]):
793 (-[WebFrame _saveDocumentAndScrollState]):
794 (-[WebFrame _shouldTreatURLAsSameAsCurrent:]):
795 (-[WebFrame _loadRequest:inFrameNamed:]):
796 (-[WebFrame _initWithWebFrameView:webView:bridge:]):
797 (-[WebFrame _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
798 (-[WebFrame _frameLoader]):
799 (-[WebFrame _prepareForDataSourceReplacement]):
800 (-[WebFrame _restoreScrollPositionAndViewState]):
801 (-[WebFrame _firstLayoutDone]):
802 (-[WebFrame _loadType]):
803 (-[WebFrame frameView]):
804 (-[WebFrame provisionalDataSource]):
805 (-[WebFrame dataSource]):
806 (-[WebFrame loadRequest:]):
807 (-[WebFrame loadArchive:]):
808 (-[WebFrame stopLoading]):
809 (-[WebFrame reload]):
810 (-[WebFrame _resetBackForwardList]):
811 (-[WebFrame _invalidateCurrentItemPageCache]):
812 (-[WebFrame _provisionalItemIsTarget]):
813 (-[WebFrame _loadProvisionalItemFromPageCache]):
814 * WebView/WebFrameInternal.h:
816 2006-10-08 Maciej Stachowiak <mjs@apple.com>
820 - move remaining movable data fields from WebFrameLoader to WebFrame
822 * Loader/WebDocumentLoadState.m:
823 (-[WebDocumentLoadState commitIfReady]):
824 * Loader/WebFrameLoader.h:
825 * Loader/WebFrameLoader.m:
826 (-[WebFrameLoader provisionalLoadStarted]):
827 (-[WebFrameLoader _setState:]):
828 (-[WebFrameLoader stopLoadingSubframes]):
829 (-[WebFrameLoader stopLoading]):
830 (-[WebFrameLoader startLoading]):
831 (-[WebFrameLoader _receivedMainResourceError:complete:]):
832 (-[WebFrameLoader clientRedirectCancelledOrFinished:]):
833 (-[WebFrameLoader clientRedirectedTo:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
834 (-[WebFrameLoader shouldReloadForCurrent:andDestination:]):
835 (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
836 (-[WebFrameLoader continueFragmentScrollAfterNavigationPolicy:formState:]):
837 (-[WebFrameLoader closeOldDataSources]):
838 (-[WebFrameLoader commitProvisionalLoad:]):
839 (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
840 (-[WebFrameLoader isQuickRedirectComing]):
841 * Loader/WebFrameLoaderClient.h:
842 * WebCoreSupport/WebFrameBridge.h:
843 * WebCoreSupport/WebFrameBridge.m:
844 (-[WebFrameBridge frameLoader]):
845 (-[WebFrameBridge setTitle:]):
846 (-[WebFrameBridge reportClientRedirectToURL:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
847 (-[WebFrameBridge reportClientRedirectCancelled:]):
848 (-[WebFrameBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]):
849 * WebView/WebDataSource.m:
850 (-[WebDataSource _loadFromPageCache:]):
851 * WebView/WebFrame.m:
852 (-[NSView setWebFrame::]):
853 (-[WebFrame _addHistoryItemForFragmentScroll]):
854 (-[WebFrame _didFinishLoad]):
855 (-[WebFrame _provisionalLoadStarted]):
856 (-[WebFrame _checkLoadCompleteForThisFrame]):
857 (-[WebFrame _loadItem:withLoadType:]):
858 (-[WebFrame _loadURL:referrer:intoChild:]):
859 (-[WebFrame _frameLoadCompleted]):
860 (-[WebFrame stopLoading]):
861 (-[WebFrame _invalidateCurrentItemPageCache]):
862 * WebView/WebFrameInternal.h:
864 2006-10-08 Darin Adler <darin@apple.com>
866 Rubber stamped by Maciej.
868 - changed "document load state" to "document loader"
870 * Loader/WebDocumentLoadState.h: Removed.
871 * Loader/WebDocumentLoadState.m: Removed.
872 * Loader/WebDocumentLoader.h: Added.
873 * Loader/WebDocumentLoader.m: Added.
874 (-[WebDocumentLoader setMainDocumentError:]):
875 (-[WebDocumentLoader mainReceivedError:complete:]):
876 (-[WebDocumentLoader finishedLoading]):
877 (-[WebDocumentLoader commitLoadWithData:]):
878 (-[WebDocumentLoader setupForReplaceByMIMEType:]):
879 (-[WebDocumentLoader updateLoading]):
880 (-[WebDocumentLoader setTitle:]):
881 * Loader/WebFrameLoader.h:
882 * Loader/WebFrameLoader.m:
883 (-[WebFrameLoader dealloc]):
884 (-[WebFrameLoader activeDocumentLoader]):
885 (-[WebFrameLoader activeDataSource]):
886 (-[WebFrameLoader addPlugInStreamLoader:]):
887 (-[WebFrameLoader removePlugInStreamLoader:]):
888 (-[WebFrameLoader addSubresourceLoader:]):
889 (-[WebFrameLoader removeSubresourceLoader:]):
890 (-[WebFrameLoader dataSource]):
891 (-[WebFrameLoader setDocumentLoader:]):
892 (-[WebFrameLoader documentLoader]):
893 (-[WebFrameLoader policyDataSource]):
894 (-[WebFrameLoader setPolicyDocumentLoader:]):
895 (-[WebFrameLoader clearDataSource]):
896 (-[WebFrameLoader provisionalDataSource]):
897 (-[WebFrameLoader provisionalDocumentLoader]):
898 (-[WebFrameLoader setProvisionalDocumentLoader:]):
899 (-[WebFrameLoader _clearProvisionalDataSource]):
900 (-[WebFrameLoader _setState:]):
901 (-[WebFrameLoader clearProvisionalLoad]):
902 (-[WebFrameLoader commitProvisionalLoad]):
903 (-[WebFrameLoader stopLoading]):
904 (-[WebFrameLoader startLoading]):
905 (-[WebFrameLoader startProvisionalLoad:]):
906 (-[WebFrameLoader setupForReplace]):
907 (-[WebFrameLoader _didReceiveResponse:forResource:]):
908 (-[WebFrameLoader _originalRequest]):
909 (-[WebFrameLoader _receivedMainResourceError:complete:]):
910 (-[WebFrameLoader _receivedData:]):
911 (-[WebFrameLoader _setRequest:]):
912 (-[WebFrameLoader _isStopping]):
913 (-[WebFrameLoader _setupForReplaceByMIMEType:]):
914 (-[WebFrameLoader _setResponse:]):
915 (-[WebFrameLoader _mainReceivedError:complete:]):
916 (-[WebFrameLoader _finishedLoading]):
917 (-[WebFrameLoader _checkContentPolicyForMIMEType:andCall:withSelector:]):
918 (-[WebFrameLoader _loadRequest:archive:]):
919 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
920 (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
921 (-[WebFrameLoader reload]):
922 (-[WebFrameLoader finishedLoadingDocument:]):
923 (-[WebFrameLoader committedLoadWithDocumentLoader:data:]):
924 (-[WebFrameLoader revertToProvisionalWithDocumentLoader:]):
925 (-[WebFrameLoader documentLoader:setMainDocumentError:]):
926 (-[WebFrameLoader documentLoader:mainReceivedCompleteError:]):
927 (-[WebFrameLoader finalSetupForReplaceWithDocumentLoader:]):
928 (-[WebFrameLoader willChangeTitleForDocument:]):
929 (-[WebFrameLoader didChangeTitleForDocument:]):
930 (-[WebFrameLoader checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
931 (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
932 (-[WebFrameLoader loadDataSource:withLoadType:formState:]):
933 * Plugins/WebPluginController.m:
934 (-[WebPluginController pluginView:receivedResponse:]):
935 * WebCoreSupport/WebFrameBridge.m:
936 (-[WebFrameBridge setTitle:]):
937 (-[WebFrameBridge receivedData:textEncodingName:]):
938 * WebKit.xcodeproj/project.pbxproj:
939 * WebView/WebDataSource.m:
940 (-[WebDataSourcePrivate dealloc]):
941 (-[WebDataSource _mainDocumentError]):
942 (-[WebDataSource _loadFromPageCache:]):
943 (-[WebDataSource _bridge]):
944 (-[WebDataSource _webView]):
945 (-[WebDataSource _URLForHistory]):
946 (-[WebDataSource _documentLoader]):
947 (-[WebDataSource _initWithDocumentLoader:]):
948 (-[WebDataSource initWithRequest:]):
949 (-[WebDataSource dealloc]):
950 (-[WebDataSource data]):
951 (-[WebDataSource webFrame]):
952 (-[WebDataSource initialRequest]):
953 (-[WebDataSource request]):
954 (-[WebDataSource response]):
955 (-[WebDataSource textEncodingName]):
956 (-[WebDataSource isLoading]):
957 (-[WebDataSource unreachableURL]):
958 (-[WebDataSource webArchive]):
959 * WebView/WebDataSourceInternal.h:
960 * WebView/WebDocumentLoadStateMac.h: Removed.
961 * WebView/WebDocumentLoadStateMac.m: Removed.
962 * WebView/WebDocumentLoaderMac.h: Added.
963 * WebView/WebDocumentLoaderMac.m: Added.
964 * WebView/WebFrame.m:
965 (-[WebFrame _createItem:]):
966 (-[WebFrame _receivedMainResourceError:]):
967 (-[WebFrame _transitionToCommitted:]):
968 (-[WebFrame _opened]):
969 (-[WebFrame _checkLoadCompleteForThisFrame]):
970 (-[WebFrame _loadItem:withLoadType:]):
971 (-[WebFrame _continueFragmentScrollAfterNavigationPolicy:formState:]):
972 (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
973 (-[WebFrame _addChild:]):
974 (-[WebFrame _provisionalLoadStarted]):
975 (-[WebFrame _dataSourceForDocumentLoader:]):
976 (-[WebFrame _createDocumentLoaderWithRequest:]):
977 * WebView/WebFrameInternal.h:
978 * WebView/WebHTMLRepresentation.m:
979 (-[WebHTMLRepresentation title]):
981 (-[WebView _mainFrameOverrideEncoding]):
983 2006-10-08 Darin Adler <darin@apple.com>
987 - fix http://bugs.webkit.org/show_bug.cgi?id=11218
988 REGRESSION: Assertion failure in WebFrameLoader when going back from a file: or data: URL
990 Also added a helper function in WebFrameLoader so that checks for back/forward load types
993 * Loader/WebFrameLoader.m:
994 (-[WebFrameLoader _setPolicyDocumentLoadState:]): Fixed line of code that was setting the load
995 state to nil instead of the passed-in object.
996 (isBackForwardLoadType): Added.
997 (-[WebFrameLoader shouldReloadToHandleUnreachableURLFromRequest:]): Use isBackForwardLoadType.
998 (-[WebFrameLoader checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
1000 (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]): Ditto.
1002 2006-10-08 Darin Adler <darin@apple.com>
1006 - fix two recently introduced leaks: one of an NSString, the other of a WebDataSource
1008 * Loader/WebDocumentLoadState.m: (-[WebDocumentLoadState setTitle:]):
1009 Rearranged code to avoid storage leak in case of identical title.
1011 * Loader/WebFrameLoader.h: Removed _setPolicyDocumentLoadState: method
1013 * Loader/WebFrameLoader.m:
1014 (-[WebFrameLoader _setPolicyDocumentLoadState:]): Added logic to call detachFromFrameLoader
1015 as needed if this load state is going away rather than moving on to become the provisional
1017 (-[WebFrameLoader shouldReloadToHandleUnreachableURLFromRequest:]): Tweaked formatting.
1018 (-[WebFrameLoader _loadRequest:archive:]): Added an assertion.
1019 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]): Added an assertion.
1020 (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]): Added an assertion.
1021 (-[WebFrameLoader reload]): Added an assertion.
1022 (-[WebFrameLoader loadDataSource:withLoadType:formState:]): Added a local variable to avoid
1023 calling _documentLoadState over and over again.
1025 2006-10-07 Don Gibson <dgibson77@gmail.com>
1027 Reviewed/landed by Adam.
1029 http://bugs.webkit.org/show_bug.cgi?id=11199
1030 Update Session History when a load is committed rather than completed.
1033 (WebFrame::receivedResponse):
1034 (WebFrame::receivedAllData):
1036 2006-10-07 Sam Weinig <sam.weinig@gmail.com>
1040 Patch for http://bugs.webkit.org/show_bug.cgi?id=11198
1041 Auto-generate a few more Objective-C DOM interfaces
1043 * MigrateHeaders.make:
1045 2006-10-07 Mark Rowe <bdash@webkit.org>
1049 Fix memory leak from -[WebDocumentLoadState setTitle:].
1051 * Loader/WebDocumentLoadState.m:
1052 (-[WebDocumentLoadState setTitle:]): Ensure 'trimmed' is released even when length is
1053 zero, and untangle the confusing logic around this case.
1055 2006-10-06 Brady Eidson <beidson@apple.com>
1059 Refactored a whole bunch of WebFramePrivate.h SPI to WebFrameInternal
1061 * DefaultDelegates/WebDefaultContextMenuDelegate.m:
1062 * History/WebHistoryItem.m:
1063 * Loader/WebFrameLoader.h:
1064 * Misc/WebCoreStatistics.m:
1065 * Misc/WebElementDictionary.m:
1066 * Plugins/WebNetscapePluginEmbeddedView.m:
1067 * Plugins/WebPluginController.m:
1068 * WebCoreSupport/WebViewFactory.m:
1069 * WebView/WebArchiver.m:
1070 * WebView/WebDataSource.m:
1071 * WebView/WebFrame.m:
1072 (-[WebFrame _isDescendantOfFrame:]):
1073 (-[WebFrame _setShouldCreateRenderers:]):
1074 (-[WebFrame _bodyBackgroundColor]):
1075 (-[WebFrame _isFrameSet]):
1076 (-[WebFrame _firstLayoutDone]):
1077 (-[WebFrame _loadType]):
1078 * WebView/WebFrameInternal.h:
1079 * WebView/WebFramePrivate.h:
1080 * WebView/WebHTMLRepresentation.m:
1081 * WebView/WebScriptDebugDelegate.m:
1083 2006-10-06 Maciej Stachowiak <mjs@apple.com>
1087 - Move all delegate dispatching code out of WebDataSource.
1089 * Loader/WebFrameLoader.m:
1090 (-[WebFrameLoader startLoading]):
1091 (-[WebFrameLoader _identifierForInitialRequest:]):
1092 (-[WebFrameLoader _willSendRequest:forResource:redirectResponse:]):
1093 (-[WebFrameLoader _didReceiveAuthenticationChallenge:forResource:]):
1094 (-[WebFrameLoader _didCancelAuthenticationChallenge:forResource:]):
1095 (-[WebFrameLoader _didReceiveResponse:forResource:]):
1096 (-[WebFrameLoader _didReceiveData:contentLength:forResource:]):
1097 (-[WebFrameLoader _didFinishLoadingForResource:]):
1098 (-[WebFrameLoader _didFailLoadingWithError:forResource:]):
1099 (-[WebFrameLoader _receivedMainResourceError:complete:]):
1100 (-[WebFrameLoader _downloadWithLoadingConnection:request:response:proxy:]):
1101 (-[WebFrameLoader _checkContentPolicyForMIMEType:andCall:withSelector:]):
1102 * WebView/WebDataSource.m:
1103 (-[WebDataSource _setLoadingFromPageCache:]):
1104 (-[WebDataSource _stopLoadingWithError:]):
1105 * WebView/WebDataSourceInternal.h:
1107 2006-10-06 Darin Adler <darin@apple.com>
1111 - moved firstLayoutDone BOOL from WebFrame to WebFrameLoader
1113 * Loader/WebFrameLoader.h:
1114 * Loader/WebFrameLoader.m:
1115 (-[WebFrameLoader didFirstLayout]):
1116 (-[WebFrameLoader provisionalLoadStarted]):
1117 (-[WebFrameLoader frameLoadCompleted]):
1118 (-[WebFrameLoader firstLayoutDone]):
1119 * WebCoreSupport/WebFrameBridge.m: (-[WebFrameBridge didFirstLayout]):
1120 * WebView/WebFrame.m:
1121 (-[WebFrame _firstLayoutDone]):
1122 (-[WebFrame _provisionalLoadStarted]):
1123 (-[WebFrame _frameLoadCompleted]):
1124 (-[WebFrame _restoreScrollPositionAndViewState]):
1125 * WebView/WebFrameInternal.h:
1127 2006-10-06 Darin Adler <darin@apple.com>
1131 - moved more data and the corresponding code from WebFrame to WebFrameLoader
1133 * Loader/WebFrameLoader.h:
1134 * Loader/WebFrameLoader.m:
1135 (-[WebFrameLoader cannotShowMIMETypeForURL:]):
1136 (-[WebFrameLoader _checkNavigationPolicyForRequest:andCall:withSelector:]):
1137 (-[WebFrameLoader shouldReloadToHandleUnreachableURLFromRequest:]):
1138 (-[WebFrameLoader _loadRequest:archive:]):
1139 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
1140 (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
1141 (-[WebFrameLoader reload]):
1142 (-[WebFrameLoader invalidatePendingPolicyDecisionCallingDefaultAction:]):
1143 (-[WebFrameLoader checkNewWindowPolicyForRequest:action:frameName:formState:andCall:withSelector:]):
1144 (-[WebFrameLoader _continueAfterNewWindowPolicy:]):
1145 (-[WebFrameLoader checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
1146 (-[WebFrameLoader continueAfterNavigationPolicy:]):
1147 (-[WebFrameLoader continueAfterWillSubmitForm:]):
1148 (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
1149 (-[WebFrameLoader loadDataSource:withLoadType:formState:]):
1150 (-[WebFrameLoader handleUnimplementablePolicyWithErrorCode:forURL:]):
1151 (-[WebFrameLoader delegateIsHandlingProvisionalLoadError]):
1152 (-[WebFrameLoader setDelegateIsHandlingProvisionalLoadError:]):
1153 * Loader/WebFrameLoaderClient.h:
1154 * WebView/WebFrame.m:
1155 (-[NSView setWebFrame::]):
1156 (-[WebFramePrivate dealloc]):
1157 (-[WebFrame _checkLoadCompleteForThisFrame]):
1158 (-[WebFrame _loadItem:withLoadType:]):
1159 (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
1160 (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
1161 (-[WebFrame _loadRequest:inFrameNamed:]):
1162 (-[WebFrame stopLoading]):
1163 (-[WebFrame _resetBackForwardList]):
1164 (-[WebFrame _quickRedirectComing]):
1165 (-[WebFrame _provisionalItemIsTarget]):
1166 (-[WebFrame _loadProvisionalItemFromPageCache]):
1167 * WebView/WebFrameInternal.h:
1168 * WebView/WebFramePrivate.h:
1170 * WebKit.xcodeproj/project.pbxproj:
1172 2006-10-06 Maciej Stachowiak <mjs@apple.com>
1174 Rubber stamped by Darin.
1176 - removed includes of unused headers.
1178 * WebView/WebDataSource.m:
1180 2006-10-06 Maciej Stachowiak <mjs@apple.com>
1184 - fix build breakage
1186 * Loader/WebFrameLoader.m:
1187 (-[WebFrameLoader willChangeTitleForDocumentLoadState:]):
1188 (-[WebFrameLoader didChangeTitleForDocumentLoadState:]):
1190 2006-10-06 Maciej Stachowiak <mjs@apple.com>
1194 - move remaining movable WebDataSource fields to WebDocumentLoadState
1196 * Loader/WebDocumentLoadState.h:
1197 * Loader/WebDocumentLoadState.m:
1198 (-[WebDocumentLoadState dealloc]):
1199 (-[WebDocumentLoadState isLoadingInAPISense]):
1200 (-[WebDocumentLoadState addResponse:]):
1201 (-[WebDocumentLoadState stopRecordingResponses]):
1202 (-[WebDocumentLoadState title]):
1203 (-[WebDocumentLoadState setLastCheckedRequest:]):
1204 (-[WebDocumentLoadState lastCheckedRequest]):
1205 (-[WebDocumentLoadState triggeringAction]):
1206 (-[WebDocumentLoadState setTriggeringAction:]):
1207 (-[WebDocumentLoadState responses]):
1208 (-[WebDocumentLoadState setOverrideEncoding:]):
1209 (-[WebDocumentLoadState overrideEncoding]):
1210 (-[WebDocumentLoadState setTitle:]):
1211 * Loader/WebFrameLoader.h:
1212 * Loader/WebFrameLoader.m:
1213 (-[WebFrameLoader _setState:]):
1214 (-[WebFrameLoader _loadRequest:archive:]):
1215 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
1216 (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
1217 (-[WebFrameLoader reload]):
1218 (-[WebFrameLoader willChangeTitleForDocumentLoadState:]):
1219 (-[WebFrameLoader didChangeTitleForDocumentLoadState:]):
1220 * WebCoreSupport/WebFrameBridge.m:
1221 (-[WebFrameBridge setTitle:]):
1222 (-[WebFrameBridge receivedData:textEncodingName:]):
1223 * WebView/WebDataSource.m:
1224 (-[WebDataSourcePrivate dealloc]):
1225 (-[WebDataSource _didReceiveResponse:forResource:]):
1226 (-[WebDataSource textEncodingName]):
1227 * WebView/WebDataSourceInternal.h:
1228 * WebView/WebFrame.m:
1229 (-[WebFrame _opened]):
1230 (-[WebFrame _checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
1231 (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
1232 (-[WebFrame _addChild:]):
1233 (-[WebFrame _loadDataSource:withLoadType:formState:]):
1234 * WebView/WebHTMLRepresentation.m:
1235 (-[WebHTMLRepresentation title]):
1236 * WebView/WebView.m:
1237 (-[WebView _mainFrameOverrideEncoding]):
1239 2006-10-06 Darin Adler <darin@apple.com>
1243 - moved loadType into WebFrameLoader
1245 * WebView/WebFramePrivate.h: Removed _setLoadType, but not _loadType because it's
1246 currently used by Safari.
1248 * Loader/WebFrameLoader.h:
1249 * Loader/WebFrameLoader.m:
1250 (-[WebFrameLoader _loadRequest:archive:]):
1251 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
1252 (-[WebFrameLoader isReplacing]):
1253 (-[WebFrameLoader setReplacing]):
1254 (-[WebFrameLoader loadType]):
1255 (-[WebFrameLoader setLoadType:]):
1256 * WebCoreSupport/WebFrameBridge.m:
1257 (-[WebFrameBridge isLoadTypeReload]):
1258 * WebView/WebFrame.m:
1259 (-[WebFrame _loadType]):
1260 (-[WebFrame _transitionToCommitted:]):
1261 (-[WebFrame _commitProvisionalLoad:]):
1262 (-[WebFrame _opened]):
1263 (-[WebFrame _checkLoadCompleteForThisFrame]):
1264 (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
1265 (-[WebFrame _loadURL:referrer:intoChild:]):
1266 (-[WebFrame _currentBackForwardListItemToResetTo]):
1267 (-[WebFrame _itemForRestoringDocState]):
1268 (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
1269 (-[WebFrame _didFirstLayout]):
1270 (-[WebFrame _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
1271 (-[WebFrame _provisionalLoadStarted]):
1272 (-[WebFrame loadRequest:]):
1274 2006-10-06 Darin Adler <darin@apple.com>
1278 - added WebFrameLoaderClient protocol -- to be used to make WebFrameLoader forget all about WebFrame
1280 * Loader/WebDocumentLoadState.h: Added comment about Maciej's planned renaming here.
1281 * Loader/WebFrameLoader.h:
1282 * Loader/WebFrameLoader.m: Renamed webFrame to client and added the new protocol.
1283 Eventually we'll be removing the dependency on WebFrame entirely.
1284 * WebView/WebFrame.m: (-[WebFrame _initWithWebFrameView:webView:bridge:]): Update to call the method
1287 * Loader/WebFrameLoaderClient.h: Added.
1288 * WebKit.xcodeproj/project.pbxproj: Updated for new file, sorted things.
1290 2006-10-06 Maciej Stachowiak <mjs@apple.com>
1294 - segregate WebFrame methods into ones that should be moved into WebFrameLoader and ones that don't need to
1296 Also removed useless WebFrameLoader part
1298 * WebView/WebFrame.m:
1299 (-[WebFramePrivate dealloc]):
1301 2006-10-06 Maciej Stachowiak <mjs@apple.com>
1305 - moved more data from WebDataSource to WebDocumentLoadState
1307 * Loader/WebDocumentLoadState.h:
1308 * Loader/WebDocumentLoadState.m:
1309 (-[WebDocumentLoadState commitLoadWithData:]):
1310 (-[WebDocumentLoadState prepareForLoadStart]):
1311 (-[WebDocumentLoadState loadingStartedTime]):
1312 (-[WebDocumentLoadState setIsClientRedirect:]):
1313 (-[WebDocumentLoadState isClientRedirect]):
1314 (-[WebDocumentLoadState setPrimaryLoadComplete:]):
1315 (-[WebDocumentLoadState isLoadingInAPISense]):
1316 * Loader/WebFrameLoader.h:
1317 * Loader/WebFrameLoader.m:
1318 (-[WebFrameLoader _setState:]):
1319 (-[WebFrameLoader _finishedLoading]):
1320 (-[WebFrameLoader documentLoadState:mainReceivedCompleteError:]):
1321 (-[WebFrameLoader prepareForLoadStart]):
1322 (-[WebFrameLoader subframeIsLoading]):
1323 * WebView/WebDataSource.m:
1324 (-[WebDataSource _fileWrapperForURL:]):
1325 (-[WebDataSource _startLoading]):
1326 (-[WebDataSource _loadFromPageCache:]):
1327 (-[WebDataSource isLoading]):
1328 * WebView/WebDataSourceInternal.h:
1329 * WebView/WebFrame.m:
1330 (-[WebFrame _transitionToCommitted:]):
1331 (-[WebFrame _opened]):
1332 (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
1334 2006-10-06 Alexey Proskuryakov <ap@nypop.com>
1338 http://bugs.webkit.org/show_bug.cgi?id=11183
1339 REGRESSION: Safari loads error pages unstyled
1341 * WebView/WebFrame.m:
1342 (-[WebFrame _loadHTMLString:baseURL:unreachableURL:]):
1343 Use utf-8 encoding instead of the string's "fastest" encoding.
1345 2006-10-06 Maciej Stachowiak <mjs@apple.com>
1349 - fixed the following bugs:
1351 http://bugs.webkit.org/show_bug.cgi?id=11136
1352 "REGRESSION: Safari snippet editor doesn't work"
1353 http://bugs.webkit.org/show_bug.cgi?id=11140
1354 "REGRESSION: view source window blank"
1355 http://bugs.webkit.org/show_bug.cgi?id=11146
1356 "REGRESSION: Instead of showing the error page, Safari opens its Resources folder in the Finder"
1360 * Loader/WebDocumentLoadState.h:
1361 * Loader/WebDocumentLoadState.m:
1362 (-[WebDocumentLoadState actualRequest]): New method.
1363 * WebView/WebDataSource.m:
1364 (-[WebDataSource _startLoading]): We need to make sure not to start loading the main
1365 resource with the fake external request for an applewebdata: request.
1367 2006-10-05 Adele Peterson <adele@apple.com>
1369 Reviewed by the letter 'B'.
1373 * WebKit.xcodeproj/project.pbxproj:
1374 * WebView/WebDynamicScrollBarsView.h:
1375 * WebView/WebDynamicScrollBarsView.m:
1376 (-[WebDynamicScrollBarsView updateScrollers]):
1377 (-[WebDynamicScrollBarsView setAllowsScrolling:]):
1378 (-[WebDynamicScrollBarsView allowsScrolling]):
1379 (-[WebDynamicScrollBarsView setAllowsHorizontalScrolling:]):
1380 (-[WebDynamicScrollBarsView setAllowsVerticalScrolling:]):
1381 (-[WebDynamicScrollBarsView allowsHorizontalScrolling]):
1382 (-[WebDynamicScrollBarsView allowsVerticalScrolling]):
1383 (-[WebDynamicScrollBarsView horizontalScrollingMode]):
1384 (-[WebDynamicScrollBarsView verticalScrollingMode]):
1385 (-[WebDynamicScrollBarsView setHorizontalScrollingMode:]):
1386 (-[WebDynamicScrollBarsView setVerticalScrollingMode:]):
1387 (-[WebDynamicScrollBarsView setScrollingMode:]):
1388 * WebView/WebView.m:
1389 (-[WebView setAlwaysShowVerticalScroller:]):
1390 (-[WebView alwaysShowVerticalScroller]):
1391 (-[WebView setAlwaysShowHorizontalScroller:]):
1392 (-[WebView alwaysShowHorizontalScroller]):
1394 2006-10-05 Vladimir Olexa <vladimir.olexa@gmail.com>
1396 Reviewed by Timothy.
1398 Bug: http://bugs.webkit.org/show_bug.cgi?id=9887
1399 Continuous spell checking now remembers user's setting. The change is applied globally,
1400 meaning, both TextArea and TextField are affected when either of them enables/disables
1403 * WebView/WebPreferenceKeysPrivate.h: added a define for WebContinuousSpellCheckingEnabled
1404 * WebView/WebView.m:
1405 (-[WebViewPrivate init]): reads WebContinuousSpellCheckingEnabled from NSUserDefaults
1406 (-[WebView setContinuousSpellCheckingEnabled:]):
1407 (-[WebView isContinuousSpellCheckingEnabled]):
1409 2006-10-05 MorganL <morganl.webkit@yahoo.com>
1413 Fixes http://bugs.webkit.org/show_bug.cgi?id=11162
1416 (WebFrame::loadDataSource):
1417 (WebFrame::receivedResponse):
1419 2006-10-05 Don Gibson <dgibson77@gmail.com>
1421 Reviewed by Darin, landed by Adam.
1423 http://bugs.webkit.org/show_bug.cgi?id=11176
1424 Fix win32 build, adapt to Maciej's ResourceLoader changes.
1427 (WebFrame::loadDataSource):
1429 2006-10-05 Marvin Decker <marv.decker@gmail.com>
1433 http://bugs.webkit.org/show_bug.cgi?id=10989
1434 Provide a way for embedders to implement BrowserExtensionWin
1436 * COM/Interfaces/IWebUIDelegate.idl:
1438 (WebFrame::createNewWindow):
1441 2006-10-04 Mark Rowe <bdash@webkit.org>
1443 Reviewed by NOBODY (build fix).
1445 * WebView/WebView.m:
1446 (-[WebView scrollDOMRangeToVisible:]): Move scrollDOMRangeToVisible: into the correct category.
1448 2006-09-26 David Smith <catfish.man@gmail.com>
1450 Reviewed by Timothy.
1452 http://bugs.webkit.org/show_bug.cgi?id=3723
1453 Add -scrollDOMRangeToVisible:
1455 * WebView/WebView.m:
1456 (-[WebView scrollDOMRangeToVisible:]):
1457 * WebView/WebViewPrivate.h:
1459 2006-10-03 Graham Dennis <graham.dennis@gmail.com>
1461 Reviewed by Timothy.
1463 <http://bugs.webkit.org/show_bug.cgi?id=10338>
1464 When contentEditable, cursor doesn't change to hand
1466 Allow the behaviour of editable links to be specified by a WebPreference
1467 The preference WebKitEditableLinkBehavior has four options:
1468 - AlwaysLive: Safari 2.0 behaviour
1469 - OnlyLiveWithShiftKey: Firefox/WinIE behaviour (and prior WebKit-ToT behaviour)
1470 - LiveWhenNotFocused: Editable links are live only when their editable block is not
1471 focused, or when the shift key is pressed
1472 - DefaultBehavior: This is the same as OnlyLiveWithShiftKey.
1474 No layout tests, just a modification of a manual-test as it isn't possible to test
1477 * WebView/WebPreferenceKeysPrivate.h:
1478 * WebView/WebPreferences.m:
1479 (+[WebPreferences initialize]):
1480 (-[WebPreferences editableLinkBehavior]):
1481 (-[WebPreferences setEditableLinkBehavior:]):
1482 * WebView/WebPreferencesPrivate.h:
1483 * WebView/WebView.m:
1484 (-[WebView _updateWebCoreSettingsFromPreferences:]):
1486 2006-10-03 Justin Garcia <justin.garcia@apple.com>
1488 Reviewed by harrison
1490 execCommand("Cut"/"Copy"/"Paste") broken in editable subframes.
1492 * WebCoreSupport/WebFrameBridge.m:
1493 (-[WebFrameBridge issueCutCommand]): Issue the command on the WebHTMLView, not the WebView.
1494 (-[WebFrameBridge issueCopyCommand]): Ditto.
1495 (-[WebFrameBridge issuePasteCommand]): Ditto.
1496 (-[WebFrameBridge issuePasteAndMatchStyleCommand]): Ditto.
1497 (-[WebFrameBridge issueTransposeCommand]): Fixed formatting.
1498 (-[WebFrameBridge canPaste]): Ask the WebHTMLView, not the WebView.
1499 * WebView/WebHTMLView.m:
1500 (-[WebHTMLView copy:]): Moved to WebInternal
1501 (-[WebHTMLView cut:]): Ditto.
1502 (-[WebHTMLView paste:]): Ditto.
1503 (-[WebHTMLView pasteAsPlainText:]): Ditto.
1504 * WebView/WebHTMLViewInternal.h:
1505 * WebView/WebView.m: Removed the now unused _canPaste.
1506 * WebView/WebViewInternal.h: Ditto.
1508 2006-10-03 Justin Garcia <justin.garcia@apple.com>
1512 <rdar://problem/4763519> REGRESSION: Multipart/x-mixed-replace sub-resources fail to load
1514 * Loader/WebSubresourceLoader.m:
1515 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
1516 Enable multipart/x-mixed-replace support on the request. This line was accidently removed during
1517 some loader refactoring.
1519 2006-10-02 Adam Roben <aroben@apple.com>
1523 Add message paramter to WebView::mouse* methods to pass down to
1527 (WebView::mouseMoved):
1528 (WebView::mouseDown):
1530 (WebView::mouseDoubleClick):
1534 2006-10-02 Maciej Stachowiak <mjs@apple.com>
1538 - take away direct knowledge of WebFrame from WebDataSource
1540 * Loader/WebDocumentLoadState.h:
1541 * Loader/WebDocumentLoadState.m:
1542 (-[WebDocumentLoadState setFrameLoader:]):
1543 (-[WebDocumentLoadState detachFromFrameLoader]):
1544 * Loader/WebFrameLoader.m:
1545 (-[WebFrameLoader _setDocumentLoadState:]):
1546 (-[WebFrameLoader _setProvisionalDocumentLoadState:]):
1547 * WebView/WebDataSource.m:
1548 * WebView/WebDataSourceInternal.h:
1549 * WebView/WebDocumentLoadStateMac.m:
1550 (-[WebDocumentLoadStateMac detachFromFrameLoader]):
1551 * WebView/WebFrame.m:
1552 (-[WebFrame _loadDataSource:withLoadType:formState:]):
1554 2006-10-02 Maciej Stachowiak <mjs@apple.com>
1558 - move a big slice of data and logic from WebDataSource to WebDocumentLoadState
1560 * Loader/WebDocumentLoadState.h:
1561 * Loader/WebDocumentLoadState.m:
1562 (-[WebDocumentLoadState initWithRequest:]):
1563 (-[WebDocumentLoadState dealloc]):
1564 (-[WebDocumentLoadState originalRequestCopy]):
1565 (-[WebDocumentLoadState request]):
1566 (-[WebDocumentLoadState replaceRequestURLForAnchorScrollWithURL:]):
1567 (-[WebDocumentLoadState setRequest:]):
1568 (-[WebDocumentLoadState setResponse:]):
1569 (-[WebDocumentLoadState isStopping]):
1570 (-[WebDocumentLoadState bridge]):
1571 (-[WebDocumentLoadState setMainDocumentError:]):
1572 (-[WebDocumentLoadState mainDocumentError]):
1573 (-[WebDocumentLoadState clearErrors]):
1574 (-[WebDocumentLoadState mainReceivedError:complete:]):
1575 (-[WebDocumentLoadState stopLoading]):
1576 (-[WebDocumentLoadState setupForReplace]):
1577 (-[WebDocumentLoadState commitIfReady]):
1578 (-[WebDocumentLoadState finishedLoading]):
1579 (-[WebDocumentLoadState setCommitted:]):
1580 (-[WebDocumentLoadState isCommitted]):
1581 (-[WebDocumentLoadState setLoading:]):
1582 (-[WebDocumentLoadState isLoading]):
1583 (-[WebDocumentLoadState commitLoadWithData:]):
1584 (-[WebDocumentLoadState doesProgressiveLoadWithMIMEType:]):
1585 (-[WebDocumentLoadState receivedData:]):
1586 (-[WebDocumentLoadState setupForReplaceByMIMEType:]):
1587 (-[WebDocumentLoadState updateLoading]):
1588 (-[WebDocumentLoadState response]):
1589 * Loader/WebFrameLoader.h:
1590 * Loader/WebFrameLoader.m:
1591 (-[WebFrameLoader activeDocumentLoadState]):
1592 (-[WebFrameLoader activeDataSource]):
1593 (-[WebFrameLoader _archivedSubresourceForURL:]):
1594 (-[WebFrameLoader addPlugInStreamLoader:]):
1595 (-[WebFrameLoader removePlugInStreamLoader:]):
1596 (-[WebFrameLoader addSubresourceLoader:]):
1597 (-[WebFrameLoader removeSubresourceLoader:]):
1598 (-[WebFrameLoader documentLoadState]):
1599 (-[WebFrameLoader provisionalDocumentLoadState]):
1600 (-[WebFrameLoader stopLoading]):
1601 (-[WebFrameLoader _originalRequest]):
1602 (-[WebFrameLoader _receivedData:]):
1603 (-[WebFrameLoader _setRequest:]):
1604 (-[WebFrameLoader bridge]):
1605 (-[WebFrameLoader _handleFallbackContent]):
1606 (-[WebFrameLoader _isStopping]):
1607 (-[WebFrameLoader _setupForReplaceByMIMEType:]):
1608 (-[WebFrameLoader _setResponse:]):
1609 (-[WebFrameLoader _mainReceivedError:complete:]):
1610 (-[WebFrameLoader _finishedLoading]):
1611 (-[WebFrameLoader didReceiveServerRedirectForProvisionalLoadForFrame]):
1612 (-[WebFrameLoader finishedLoadingDocumentLoadState:]):
1613 (-[WebFrameLoader commitProvisitionalLoad]):
1614 (-[WebFrameLoader committedLoadWithDocumentLoadState:data:]):
1615 (-[WebFrameLoader isReplacing]):
1616 (-[WebFrameLoader setReplacing]):
1617 (-[WebFrameLoader revertToProvisionalWithDocumentLoadState:]):
1618 (-[WebFrameLoader documentLoadState:setMainDocumentError:]):
1619 (-[WebFrameLoader documentLoadState:mainReceivedCompleteError:]):
1620 (-[WebFrameLoader finalSetupForReplaceWithDocumentLoadState:]):
1621 * WebView/WebDataSource.m:
1622 (-[WebDataSourcePrivate dealloc]):
1623 (-[WebDataSource _prepareForLoadStart]):
1624 (-[WebDataSource _mainDocumentError]):
1625 (-[WebDataSource _finishedLoading]):
1626 (-[WebDataSource _receivedData:]):
1627 (-[WebDataSource _setMainDocumentError:]):
1628 (-[WebDataSource _clearUnarchivingState]):
1629 (-[WebDataSource _revertToProvisionalState]):
1630 (-[WebDataSource _receivedMainResourceError:complete:]):
1631 (-[WebDataSource _startLoading]):
1632 (-[WebDataSource _loadFromPageCache:]):
1633 (-[WebDataSource _bridge]):
1634 (-[WebDataSource _setPrimaryLoadComplete:]):
1635 (-[WebDataSource _URLForHistory]):
1636 (-[WebDataSource _setTitle:]):
1637 (-[WebDataSource _initWithDocumentLoadState:]):
1638 (-[WebDataSource request]):
1639 (-[WebDataSource response]):
1640 (-[WebDataSource isLoading]):
1641 (-[WebDataSource webArchive]):
1642 * WebView/WebDataSourceInternal.h:
1643 * WebView/WebDocumentLoadStateMac.m:
1644 (-[WebDocumentLoadStateMac initWithRequest:]):
1645 * WebView/WebFrame.m:
1646 (-[WebFrame _createItem:]):
1647 (-[WebFrame _receivedMainResourceError:]):
1648 (-[WebFrame _transitionToCommitted:]):
1649 (-[WebFrame _commitProvisionalLoad:]):
1650 (-[WebFrame _checkLoadCompleteForThisFrame]):
1651 (-[WebFrame _loadItem:withLoadType:]):
1652 (-[WebFrame _continueFragmentScrollAfterNavigationPolicy:formState:]):
1653 (-[WebFrame _didReceiveServerRedirectForProvisionalLoadForFrame]):
1654 (-[WebFrame _provisionalLoadStarted]):
1655 * WebView/WebFrameInternal.h:
1657 2006-10-02 Justin Garcia <justin.garcia@apple.com>
1661 <rdar://problem/4757583>
1662 REGRESSION: tabbing into page focuses wrong control on 2nd pass
1663 <rdar://problem/4757594>
1664 REGRESSION: Form field is left with secondary selection after tabbing out of WebView
1666 * WebView/WebHTMLView.m:
1667 (-[NSArray maintainsInactiveSelection]): Replace code that I removed in error in the patch
1668 for 9642. Only leave inactive editable selections in the WebHTMLView if the nextResponder
1669 is in the same WebView.
1671 2006-10-02 Maciej Stachowiak <mjs@apple.com>
1675 - remove webFrame field from WebDataSourcePrivate, it can get it from WebDocumentLoadState now
1677 * Loader/WebDocumentLoadState.h:
1678 * Loader/WebDocumentLoadState.m:
1679 (-[WebDocumentLoadState frameLoader]):
1680 * WebView/WebDataSource.m:
1681 (-[WebDataSourcePrivate dealloc]):
1682 (-[WebDataSource _revertToProvisionalState]):
1683 (-[WebDataSource _setupForReplaceByMIMEType:]):
1684 (-[WebDataSource _updateLoading]):
1685 (-[WebDataSource _startLoading]):
1686 (-[WebDataSource _setWebFrame:]):
1687 (-[WebDataSource _defersCallbacksChanged]):
1688 (-[WebDataSource _stopLoading]):
1689 (-[WebDataSource _webView]):
1690 (-[WebDataSource _stopLoadingWithError:]):
1691 (-[WebDataSource _setPrimaryLoadComplete:]):
1692 (-[WebDataSource dealloc]):
1693 (-[WebDataSource webFrame]):
1694 (-[WebDataSource isLoading]):
1696 2006-10-02 Maciej Stachowiak <mjs@apple.com>
1700 - fix crash on back/forward - reattach WebDocumentLoadState to data source when needed
1702 * WebView/WebDataSource.m:
1703 (-[WebDataSource _setWebFrame:]):
1704 (-[WebDataSource _initWithDocumentLoadState:]):
1705 * WebView/WebDataSourceInternal.h:
1707 2006-10-02 Maciej Stachowiak <mjs@apple.com>
1709 Build fix, not reviewed.
1711 - Added missing files to fix build.
1713 * WebView/WebDocumentLoadStateMac.h: Added.
1714 * WebView/WebDocumentLoadStateMac.m: Added.
1715 (-[WebDocumentLoadStateMac initWithRequest:]):
1716 (-[WebDocumentLoadStateMac dealloc]):
1717 (-[WebDocumentLoadStateMac setDataSource:]):
1718 (-[WebDocumentLoadStateMac dataSource]):
1719 (-[WebDocumentLoadStateMac setFrameLoader:]):
1721 2006-10-01 Maciej Stachowiak <mjs@apple.com>
1723 Reviewed by Brady and Oliver.
1725 - move things around so that WebDataSource and WebDocumentLoadState know about each other in
1726 the right way. This lines things up to move nearly all functionality down to WebDocumentLoadState.
1728 * Loader/WebDocumentLoadState.h:
1729 * Loader/WebDocumentLoadState.m:
1730 (-[WebDocumentLoadState initWithRequest:]):
1731 (-[WebDocumentLoadState dealloc]):
1732 (-[WebDocumentLoadState originalRequest]):
1733 * Loader/WebFrameLoader.h:
1734 * Loader/WebFrameLoader.m:
1735 (-[WebFrameLoader dealloc]):
1736 (-[WebFrameLoader addSubresourceLoader:]):
1737 (-[WebFrameLoader startLoadingMainResourceWithRequest:identifier:]):
1738 (-[WebFrameLoader dataSource]):
1739 (-[WebFrameLoader _setDocumentLoadState:]):
1740 (-[WebFrameLoader policyDataSource]):
1741 (-[WebFrameLoader _setPolicyDocumentLoadState:]):
1742 (-[WebFrameLoader clearDataSource]):
1743 (-[WebFrameLoader provisionalDataSource]):
1744 (-[WebFrameLoader _setProvisionalDocumentLoadState:]):
1745 (-[WebFrameLoader _clearProvisionalDataSource]):
1746 (-[WebFrameLoader _setState:]):
1747 (-[WebFrameLoader clearProvisionalLoad]):
1748 (-[WebFrameLoader commitProvisionalLoad]):
1749 (-[WebFrameLoader stopLoading]):
1750 (-[WebFrameLoader startLoading]):
1751 (-[WebFrameLoader startProvisionalLoad:]):
1752 (-[WebFrameLoader setupForReplace]):
1753 (-[WebFrameLoader activeDocumentLoadState]):
1754 (-[WebFrameLoader activeDataSource]):
1755 (-[WebFrameLoader _loadRequest:archive:]):
1756 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
1757 (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
1758 (-[WebFrameLoader reload]):
1759 * WebKit.xcodeproj/project.pbxproj:
1760 * WebView/WebDataSource.m:
1761 (-[WebDataSourcePrivate dealloc]):
1762 (-[WebDataSource _startLoading]):
1763 (-[WebDataSource _setWebFrame:]):
1764 (-[WebDataSource _documentLoadState]):
1765 (-[WebDataSource _initWithDocumentLoadState:]):
1766 (-[WebDataSource initWithRequest:]):
1767 (-[WebDataSource initialRequest]):
1768 (-[WebDataSource unreachableURL]):
1769 * WebView/WebDataSourceInternal.h:
1770 * WebView/WebFrame.m:
1771 (-[WebFramePrivate dealloc]):
1772 (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
1773 (-[WebFrame _loadDataSource:withLoadType:formState:]):
1774 (-[WebFrame _policyDataSource]):
1775 (-[WebFrame _shouldReloadToHandleUnreachableURLFromRequest:]):
1776 (-[WebFrame _dataSourceForDocumentLoadState:]):
1777 (-[WebFrame _createDocumentLoadStateWithRequest:]):
1778 * WebView/WebFrameInternal.h:
1780 2006-09-29 David Hyatt <hyatt@apple.com>
1782 Change the default minimum font size pref to 0 in order to allow
1783 font-size:0 to work.
1785 * WebView/WebPreferences.m:
1786 (+[WebPreferences initialize]):
1788 2006-09-28 Timothy Hatcher <timothy@apple.com>
1792 Switch the inspector over to use border-image with styled buttons and selects.
1794 * WebInspector/WebInspector.m:
1795 (-[NSWindow window]):
1796 (-[NSWindow setWebFrame:]):
1797 (-[WebInspector _updateRoot]):
1798 * WebInspector/webInspector/Images/button.png: Added.
1799 * WebInspector/webInspector/Images/buttonDivider.png: Added.
1800 * WebInspector/webInspector/Images/buttonPressed.png: Added.
1801 * WebInspector/webInspector/Images/popup.png: Added.
1802 * WebInspector/webInspector/Images/popupFill.png: Removed.
1803 * WebInspector/webInspector/Images/popupFillPressed.png: Removed.
1804 * WebInspector/webInspector/Images/popupLeft.png: Removed.
1805 * WebInspector/webInspector/Images/popupLeftPressed.png: Removed.
1806 * WebInspector/webInspector/Images/popupPressed.png: Added.
1807 * WebInspector/webInspector/Images/popupRight.png: Removed.
1808 * WebInspector/webInspector/Images/popupRightPressed.png: Removed.
1809 * WebInspector/webInspector/Images/squareButtonRight.png: Removed.
1810 * WebInspector/webInspector/Images/squareButtonRightPressed.png: Removed.
1811 * WebInspector/webInspector/inspector.css:
1812 * WebInspector/webInspector/inspector.html:
1813 * WebInspector/webInspector/inspector.js:
1815 2006-09-28 Alice Liu <alice.liu@apple.com>
1817 fixing the windows build
1820 (WebView::mouseMoved):
1821 (WebView::mouseDown):
1823 (WebView::mouseDoubleClick):
1825 2006-09-27 Justin Garcia <justin.garcia@apple.com>
1827 Reviewed by thatcher
1829 <rdar://problem/4044271>
1830 Writing Direction menu doesn't reflect the current writing direction (9773)
1832 * English.lproj/Localizable.strings: Added "Right to Left" and "Left to Right"
1833 * WebView/WebHTMLView.m:
1834 (-[NSArray validateUserInterfaceItem:]): Validate menu items that perform
1835 toggleBaseWritingDirection and changeBaseWritingDirection.
1836 Disable the menu item that changes the writing direction to NSWritingDirectionNautral
1837 because NSWritingDirectionNatural's behavior can't be implemented with CSS.
1838 Take control of the title of the menu item that performs toggleBaseWritingDirection:
1839 instead of checking/unchecking it, otherwise we wouldn't know what a check means.
1840 (-[NSArray changeBaseWritingDirection:]): ASSERT that the requested writing
1841 direction is not NSWritingDirectionNatural, since we've disabled the
1842 menu item that performs it.
1844 2006-09-27 MorganL <morganl.webkit@yahoo.com>
1846 Reviewed by Maciej, landed by Brady
1848 Update URL request associated with provisional data source on redirect.
1849 Notify IWebFrameLoadDelegate of redirects for the provisional load.
1850 Notify IWebFrameLoadDelegate of a provisional load being commited.
1852 * COM/WebDataSource.cpp:
1853 (WebDataSource::replaceRequest):
1854 * COM/WebDataSource.h:
1856 (WebFrame::receivedRedirect):
1857 (WebFrame::receivedResponse):
1858 (WebFrame::receivedData):
1860 2006-09-26 John Sullivan <sullivan@apple.com>
1864 * WebView/WebHTMLViewPrivate.h:
1865 * WebView/WebHTMLView.m:
1866 (-[WebHTMLView markAllMatchesForText:caseSensitive:limit:]):
1867 Added limit parameter, passed over the bridge. Stop the search if it hits limit.
1869 * WebView/WebViewPrivate.h:
1870 * WebView/WebView.m:
1871 (-[WebView markAllMatchesForText:caseSensitive:highlight:limit:]):
1872 Added limit parameter, passed to WebHTMLView.
1874 2006-09-26 David Harrison <harrison@apple.com>
1876 Reviewed by John and TimH.
1878 <rdar://problem/4743256> Seed: Ctrl-Y key binding does nothing when kill ring is empty
1880 Use deleteBackward: when the killring string is empty. Was always using insertText:,
1881 but that ends up early-returning if the string to insert is empty.
1883 * WebView/WebHTMLView.m:
1885 (-[NSArray yankAndSelect:]):
1887 2006-09-25 Timothy Hatcher <timothy@apple.com>
1891 Use the non-deprecated method names for getComputedStyle, setEnd and setStart.
1893 * WebInspector/WebInspector.m:
1894 (-[WebInspector _highlightNode:]):
1895 * WebView/WebHTMLView.m:
1897 (-[WebHTMLView _selectRangeInMarkedText:]):
1898 (-[WebTextCompleteController doCompletion]):
1899 * WebView/WebView.m:
1900 (-[WebView computedStyleForElement:pseudoElement:]):
1902 2006-09-22 Timothy Hatcher <timothy@apple.com>
1906 Pass all headers through unifdef to filter out BUILDING_ON_TIGER blocks
1907 if MACOSX_DEPLOYMENT_TARGET is 10.4.
1909 * MigrateHeaders.make:
1911 2006-09-20 Justin Garcia <justin.garcia@apple.com>
1915 <http://bugs.webkit.org/show_bug.cgi?id=7165>
1916 TinyMCE: Dragging & dropping content always leaves a copy when editing inside a subframe
1918 The top level WebHTMLView is responsible for performing dragging operations, but
1919 the inner view, the view that holds the drag caret, should be consulted to determine
1920 if the drag is a move drag.
1922 * WebCoreSupport/WebFrameBridge.m:
1923 (-[WebFrameBridge startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
1924 * WebKit.xcodeproj/project.pbxproj:
1925 * WebView/WebHTMLView.m:
1926 (-[NSArray dragImage:at:offset:event:pasteboard:source:slideBack:]): Don't set initatedDrag here, because
1927 it's only the top level WebHTMLView that performs this operation.
1928 (-[WebHTMLView _setInitiatedDrag:]): Added.
1929 (-[WebHTMLView _initiatedDrag]): Ditto.
1930 (-[WebHTMLView _canProcessDragWithDraggingInfo:]): Ask the innerView if it initiated the drag,
1931 not the top level view.
1932 (-[WebHTMLView _isMoveDrag]): The top level view asks the innerView if it should perform
1933 a move drag, so don't ASSERT _isTopHTMLView.
1934 (-[WebHTMLView draggingUpdatedWithDraggingInfo:actionMask:]): Ask the innerView if _isMoveDrag.
1935 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): Ditto.
1936 * WebView/WebHTMLViewInternal.h: Added two private SPI so that
1937 the top level WebHTMLView can set and get the initiatedDrag BOOL.
1939 === Safari-521.27 ===
1941 2006-09-20 Brady Eidson <beidson@apple.com>
1943 Reviewed by Tim Omernick
1945 Fixing part of a crash Tim O showed me. [WebIconDatabase init] should finish
1946 gracefully even if we can't open the database
1948 * Misc/WebIconDatabase.m:
1949 (-[WebIconDatabase init]):
1951 2006-09-20 Timothy Hatcher <timothy@apple.com>
1955 <rdar://problem/4741392> Develop a system to find what version of WebKit an app was linked with
1957 * Misc/WebKitVersionChecks.h: Added.
1958 * Misc/WebKitVersionChecks.m: Added.
1959 (WebKitLinkedOnOrAfter): Added.
1960 (WebKitLinkTimeVersion): Added.
1961 (WebKitRunTimeVersion): Added.
1962 * WebKit.xcodeproj/project.pbxproj:
1964 2006-09-20 Tim Omernick <timo@apple.com>
1968 * Misc/WebIconDatabase.m:
1969 (-[WebIconDatabase init]):
1972 2006-09-20 Brady Eidson <beidson@apple.com>
1976 Preparing to make the WebIconDatabase disabled by default - this patch tells the bridge whether its enabled or not
1978 * Misc/WebIconDatabase.m:
1979 (-[WebIconDatabase init]):
1981 2006-09-19 Brady Eidson <beidson@apple.com>
1983 Reviewed by Sarge Decker
1985 <rdar://problem/4739892> and <rdar://problem/4729797>
1986 - WebCore::IconDatabase needs to have and respect an enabled() flag
1987 - Mail on ToT WebKit crashes in IconDatabase code when mailing a page from Safari
1989 * Misc/WebIconDatabase.m:
1990 (-[WebIconDatabase init]): If preference says icons are disabled, tell the bridge
1991 (-[WebIconDatabase _isEnabled]): Ask the bridge if the database is enabled
1993 2006-09-19 Alexey Proskuryakov <ap@nypop.com>
1997 http://bugs.webkit.org/show_bug.cgi?id=10661
1998 REGRESSION: CFM plug-ins (Shockwave, SVG) are not loaded
2000 * Plugins/WebBasePluginPackage.m:
2001 (-[WebBasePluginPackage initWithPath:]): On 32-bit PowerPC, don't bail out if
2002 the bundle is nil - it can be a CFM plugin.
2004 2006-09-18 Brady Eidson <beidson@apple.com>
2008 Implement a bridge method so WebCore can find the reload type of a frame load
2010 * WebCoreSupport/WebFrameBridge.m:
2011 (-[WebFrameBridge isLoadTypeReload]):
2013 2006-09-18 Sam Weinig <sam.weinig@gmail.com>
2017 Patch for http://bugs.webkit.org/show_bug.cgi?id=10903
2018 Yet Another Objective-C Bindings Patch
2020 * MigrateHeaders.make:
2022 2006-09-17 David Harrison <harrison@apple.com>
2024 Reviewed by John Sullivan.
2026 <rdar://problem/4494340> REGRESSION: Making the font size bigger/smaller in an HTML message doesn't affect the body until you reopen it
2028 Problem was the public API -[WebView setTextSizeMultiplier] did not notify anyone that the value changed.
2030 * WebView/WebDocumentInternal.h:
2031 Add _textSizeMultiplierChanged to the _WebDocumentTextSizing protocol.
2033 * WebView/WebHTMLView.m:
2034 (-[WebHTMLView _textSizeMultiplierChanged]):
2035 Send [self _updateTextSizeMultiplier].
2037 * WebView/WebPDFView.m:
2038 (-[WebPDFView _textSizeMultiplierChanged]):
2039 ASSERT_NOT_REACHED() because WebPDFView does not track the common multiplier.
2041 * WebView/WebView.m:
2042 (-[WebView setTextSizeMultiplier:]):
2043 Send [self _notifyTextSizeMultiplierChanged];
2045 (-[WebView _performTextSizingSelector:withObject:onTrackingDocs:selForNonTrackingDocs:newScaleFactor:]):
2046 Alter the _textSizeMultiplier directly so that notification is not sent.
2049 (-[WebView _notifyTextSizeMultiplierChanged]):
2050 New. Send _textSizeMultiplierChanged to all document views that track the common multiplier.
2052 2006-09-16 Brady Eidson <beidson@apple.com>
2056 WebIconLoader is dead, long live WebCore::IconLoader
2059 * Loader/WebFrameLoader.h:
2060 * Loader/WebFrameLoader.m:
2061 (-[WebFrameLoader dealloc]):
2062 (-[WebFrameLoader commitProvisionalLoad]):
2063 * Loader/WebIconLoader.h: Removed.
2064 * Loader/WebIconLoader.m: Removed.
2065 * Misc/WebIconDatabase.h:
2066 * Misc/WebIconDatabase.m:
2067 * Misc/WebIconDatabasePrivate.h:
2068 * WebCoreSupport/WebFrameBridge.m:
2069 (-[WebFrameBridge notifyIconChanged:]):
2070 * WebCoreSupport/WebIconDatabaseBridge.h:
2071 * WebCoreSupport/WebIconDatabaseBridge.m:
2072 (-[WebIconDatabaseBridge _init]):
2073 (-[WebIconDatabaseBridge _setIconData:forIconURL:]):
2074 (-[WebIconDatabaseBridge _setHaveNoIconForIconURL:]):
2076 * WebKit.xcodeproj/project.pbxproj:
2077 * WebView/WebDataSource.m:
2078 (-[WebDataSourcePrivate dealloc]):
2079 (-[WebDataSource _stopLoading]):
2080 (-[WebDataSource _setPrimaryLoadComplete:]):
2081 * WebView/WebDataSourceInternal.h:
2083 2006-09-16 Mark Rowe <opendarwin.org@bdash.net.nz>
2087 http://bugs.webkit.org/show_bug.cgi?id=10887
2090 * MigrateHeaders.make: Remove reference to DOMEventPrivate.h.
2092 2006-09-15 Timothy Hatcher <timothy@apple.com>
2096 Make new style ObjC methods public API.
2098 * MigrateHeaders.make:
2100 2006-09-15 Sam Weinig <sam.weinig@gmail.com>
2104 Patch for http://bugs.webkit.org/show_bug.cgi?id=10870
2105 Auto-generate DOMNode for the Objective-C bindings
2107 * MigrateHeaders.make:
2109 2006-09-15 Timothy Hatcher <timothy@apple.com>
2113 Call the bridge directly for alter selection calls. All of this logic is now
2114 in WebCore's SelectionController.
2116 * WebView/WebHTMLView.m:
2117 (-[NSArray moveBackward:]):
2118 (-[NSArray moveBackwardAndModifySelection:]):
2119 (-[NSArray moveDown:]):
2120 (-[NSArray moveDownAndModifySelection:]):
2121 (-[NSArray moveForward:]):
2122 (-[NSArray moveForwardAndModifySelection:]):
2123 (-[NSArray moveLeft:]):
2124 (-[NSArray moveLeftAndModifySelection:]):
2125 (-[NSArray moveRight:]):
2126 (-[NSArray moveRightAndModifySelection:]):
2127 (-[NSArray moveToBeginningOfDocument:]):
2128 (-[NSArray moveToBeginningOfDocumentAndModifySelection:]):
2129 (-[NSArray moveToBeginningOfSentence:]):
2130 (-[NSArray moveToBeginningOfSentenceAndModifySelection:]):
2131 (-[NSArray moveToBeginningOfLine:]):
2132 (-[NSArray moveToBeginningOfLineAndModifySelection:]):
2133 (-[NSArray moveToBeginningOfParagraph:]):
2134 (-[NSArray moveToBeginningOfParagraphAndModifySelection:]):
2135 (-[NSArray moveToEndOfDocument:]):
2136 (-[NSArray moveToEndOfDocumentAndModifySelection:]):
2137 (-[NSArray moveToEndOfSentence:]):
2138 (-[NSArray moveToEndOfSentenceAndModifySelection:]):
2139 (-[NSArray moveToEndOfLine:]):
2140 (-[NSArray moveToEndOfLineAndModifySelection:]):
2141 (-[NSArray moveToEndOfParagraph:]):
2142 (-[NSArray moveToEndOfParagraphAndModifySelection:]):
2143 (-[NSArray moveParagraphBackwardAndModifySelection:]):
2144 (-[NSArray moveParagraphForwardAndModifySelection:]):
2145 (-[NSArray moveUp:]):
2146 (-[NSArray moveUpAndModifySelection:]):
2147 (-[NSArray moveWordBackward:]):
2148 (-[NSArray moveWordBackwardAndModifySelection:]):
2149 (-[NSArray moveWordForward:]):
2150 (-[NSArray moveWordForwardAndModifySelection:]):
2151 (-[NSArray moveWordLeft:]):
2152 (-[NSArray moveWordLeftAndModifySelection:]):
2153 (-[NSArray moveWordRight:]):
2154 (-[NSArray moveWordRightAndModifySelection:]):
2155 (-[NSArray pageUp:]):
2156 (-[NSArray pageDown:]):
2157 (-[NSArray pageUpAndModifySelection:]):
2158 (-[NSArray pageDownAndModifySelection:]):
2160 2006-09-15 Adam Roben <aroben@apple.com>
2162 Reviewed by eseidel.
2164 Fixes http://bugs.webkit.org/show_bug.cgi?id=10876
2165 containsItemForURLUnicode uses matchLetter instead of
2168 Small fixes for _WebCoreHistoryProvider.
2170 * History/WebHistory.m: Consistently use BUFFER_SIZE #define
2171 (-[_WebCoreHistoryProvider containsItemForURLLatin1:length:]):
2172 (-[_WebCoreHistoryProvider containsItemForURLUnicode:length:]):
2173 Replace incorrect call to matchLetter to matchUnicodeLetter
2175 2006-09-13 Brady Eidson <beidson@apple.com>
2179 Add infrastructure to support icon loads taking place in WebCore
2180 Will remove WebKit icon loaders in a later patch
2182 * WebCoreSupport/WebFrameBridge.m:
2183 (-[WebFrameBridge notifyIconChanged:]):
2184 (-[WebFrameBridge originalRequestURL]):
2185 - Nuked two old, obsolete methods
2186 - Added bridge for notifying of an icon change
2187 - Added bridge for getting the "original request URL" which is still needed
2188 until that info is available in the WebCore loaders
2190 * WebView/WebDataSource.m:
2191 (-[WebDataSource _loadIcon]):
2192 - Empty body just for now, as it still gets called - next patch will prune all the old impl out
2194 2006-09-13 Timothy Hatcher <timothy@apple.com>
2198 <rdar://problem/4726416> obsolete confusing "ADVISORY NOTE" comment in WebHistory.h
2200 Removed the "ADVISORY NOTE: This method may change for the 1.0 SDK" comments.
2202 * History/WebHistory.h:
2204 === Safari-521.26 ===
2206 2006-09-11 MorganL <morlmor@yahoo.com>
2208 Reviewed/landed by aroben.
2210 Fixes http://bugs.webkit.org/show_bug.cgi?id=10765
2211 Windows build busted due to std::copy usage in Vector.h
2213 * WebKit.vcproj/WebKit.vcproj: Define _SCL_SECURE_NO_DEPRECATE to get
2214 rid of deprecation warnings on std::copy
2216 2006-09-11 Brady Eidson <beidson@apple.com>
2218 Despite the fact that some people built okay without this change, it sure was biting me,
2219 probably because I just wiped my build directory for a fresh build -
2220 Today's earlier removal of DOMList.h needed to occur in MigrateHeaders.make, as well
2222 * MigrateHeaders.make: removed DOMList.h
2224 2006-09-10 Darin Adler <darin@apple.com>
2228 - fix http://bugs.webkit.org/show_bug.cgi?id=10547
2229 REGRESSION: Links that should open in a new window open in the same window,
2230 while opening another blank window
2232 * WebView/WebFrame.m:
2233 (-[WebFrame _continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
2234 Changed a mistaken "self" to "frame", which was the cause of the bug. Also
2235 fixed the method so that it won't crash if createWebViewWithRequest does
2236 something that has a side effect of releasing this WebView or this frame
2237 by retaining "self" and "frame" as needed. Also fixed a problem where the
2238 code to set "opener" was backwards, and would set the opener of the old
2239 frame to point to the new frame instead of vice versa.
2241 2006-09-09 Sam Weinig <sam.weinig@gmail.com>
2245 Patch for http://bugs.webkit.org/show_bug.cgi?id=10795
2246 Auto-generate the Objective-C DOM XPath bindings
2248 * MigrateHeaders.make:
2250 2006-09-09 Sam Weinig <sam.weinig@gmail.com>
2254 Patch for http://bugs.webkit.org/show_bug.cgi?id=10791
2255 Even More Objective-C DOM auto-generation cleanup
2257 * MigrateHeaders.make:
2259 2006-09-08 Tim Omernick <timo@apple.com>
2261 Reviewed by Brady Eidson.
2263 Rolled out Maciej's code cleanup from 8/22. It turns out that keeping the "loading" flag
2264 is a useful optimization, as it avoids many Objective-C method calls while polling resources
2265 for their load state.
2267 This fixes a 3-4% PLT performance regression (as measured on my MacBook Pro).
2269 * Loader/WebFrameLoader.m:
2270 (-[WebFrameLoader addPlugInStreamLoader:]):
2271 (-[WebFrameLoader removePlugInStreamLoader:]):
2272 (-[WebFrameLoader addSubresourceLoader:]):
2273 (-[WebFrameLoader removeSubresourceLoader:]):
2274 * WebView/WebDataSource.m:
2275 (-[WebDataSourcePrivate dealloc]):
2276 (-[WebDataSource _prepareForLoadStart]):
2277 (-[WebDataSource _setLoading:]):
2278 (-[WebDataSource _updateLoading]):
2279 (-[WebDataSource _startLoading]):
2280 (-[WebDataSource _stopLoading]):
2281 (-[WebDataSource _setPrimaryLoadComplete:]):
2282 (-[WebDataSource isLoading]):
2283 * WebView/WebDataSourceInternal.h:
2285 2006-09-07 Sam Weinig <sam.weinig@gmail.com>
2287 Reviewed by Darin and Tim H.
2289 Patch for http://bugs.webkit.org/show_bug.cgi?id=10774
2290 Auto-generate the Objective-C DOM Traversal bindings
2292 * MigrateHeaders.make:
2294 2006-09-07 Sam Weinig <sam.weinig@gmail.com>
2298 Patch for http://bugs.webkit.org/show_bug.cgi?id=10766
2299 Auto-generate the Objective-C DOM Events bindings
2301 * MigrateHeaders.make:
2302 * WebKit.xcodeproj/project.pbxproj:
2304 2006-09-06 Alexey Proskuryakov <ap@nypop.com>
2306 * MigrateHeaders.make: Fixed a double slash in
2307 "$(PRIVATE_HEADERS_DIR)//DOMCharacterDataPrivate.h" (this was reported
2308 to cause a build failure under certain circumstances).
2310 2006-09-05 MorganL <morlmor@yahoocom>
2312 Reviewed/landed by aroben.
2314 Fixes bug 10743: Windows build is busted.
2317 (WebView::keyPress):
2319 2006-09-05 Timothy Hatcher <timothy@apple.com>
2323 Drastically simplified the makefile for migrating headers from
2324 WebCore and JavaScriptCore. The old version was always copying the files.
2326 * MigrateHeaders.make:
2328 2006-09-05 Darin Adler <darin@apple.com>
2332 - WebKit side of changes to encoding
2334 * WebView/WebHTMLRepresentation.m: (-[WebHTMLRepresentation documentSource]):
2335 Changed to call new -[WebCoreFrameBridge stringWithData:] instead of the calling
2336 the old methods that used a CFStringEncoding: -[WebCoreFrameBridge textEncoding]
2337 and +[WebCoreFrameBridge stringWithData:textEncoding:].
2339 * WebView/WebResource.m: (-[WebResource _stringValue]): Removed special case for
2340 nil encoding name. The bridge itself now has the rule that "nil encoding name
2341 means Latin-1", so we don't need to check for nil.
2343 * WebView/WebFrame.m: (-[WebFrame _checkLoadComplete]): Retain the frame until
2344 we get the parent frame while walking up parent frames, because it's possible
2345 for _checkLoadCompleteForThisFrame to release the last reference to the frame.
2346 (Not reviewed; needed to run performance tests successfully.)
2348 2006-09-05 Timothy Hatcher <timothy@apple.com>
2352 <rdar://problem/4682225> conflicting typedefs in Netscape plug-in headers
2354 * Plugins/npfunctions.h: fix the return type for NPN_IntFromIdentifierProcPtr to be int32_t
2356 2006-09-04 Timothy Hatcher <timothy@apple.com>
2360 Bug 10714: ObjC autogeneration needs safe-guards against easily modifying the public API
2361 http://bugs.webkit.org/show_bug.cgi?id=10714
2363 - Added the new private DOM headers.
2364 - Factored out the common commands into variables.
2365 - Made WebDashboardRegion.h private again.
2366 - Rename DOMDOMImplementation.h to DOMImplementation.h when files
2367 are migrated. Also fixes up #imports.
2369 * MigrateHeaders.make:
2371 2006-09-03 Sam Weinig <sam.weinig@gmail.com>
2373 Reviewed by Darin and Tim H.
2375 - patch for http://bugs.webkit.org/show_bug.cgi?id=10711
2376 Auto-generate the Objective-C DOM Stylesheet bindings
2378 * MigrateHeaders.make:
2380 2006-09-02 Sam Weinig <sam.weinig@gmail.com>
2384 - patch for http://bugs.webkit.org/show_bug.cgi?id=10684
2385 Auto-generate the Objective-C DOM CSS bindings
2387 * MigrateHeaders.make:
2389 2006-09-01 MorganL <morlmor@yahoo.com>
2391 Reviewed by Darin. Updated/landed by Adam.
2393 Fixes http://bugs.webkit.org/show_bug.cgi?id=10553
2397 (WebFrame::initWithName):
2399 2006-09-01 Brady Eidson <beidson@apple.com>
2403 A "never should be reached" method was reached - lets not release the shared database bridge, esp
2404 since we never retain it!
2406 * Misc/WebIconDatabase.m:
2407 (-[WebIconDatabase _applicationWillTerminate:]): Don't release the bridge
2409 2006-09-01 Darin Adler <darin@apple.com>
2413 - a few small tweaks to the icon database bridge
2415 * Misc/WebIconDatabase.m: (-[WebIconDatabase init]): Updated for name change.
2417 * WebCoreSupport/WebIconDatabaseBridge.h: Removed unneeded declarations.
2418 * WebCoreSupport/WebIconDatabaseBridge.m:
2419 (-[WebIconDatabaseBridge init]): Added. Always returns nil since you're not supposed
2420 to allocate one of these.
2421 (-[WebIconDatabaseBridge _init]): Renamed from init. Used internally to make the
2422 shared instance. Added the "self = [super init]" idiom even though it's not important
2423 in this case just to be consistent.
2424 (-[WebIconDatabaseBridge releaseCachedLoaderForIconURL:]): Moved this up in the file
2425 so it can be called without declaring it in the header.
2426 (+[WebIconDatabaseBridge sharedInstance]): Renamed. Calls the new _init. Also use
2427 CFRetain for compatibility.
2428 (-[WebIconDatabaseBridge dealloc]): Emptied this out and made it just assert (false).
2429 (-[WebIconDatabaseBridge finalize]): Added and made it assert (false) too.
2431 2006-09-01 Timothy Hatcher <timothy@apple.com>
2435 Bug 10677: Omit "-webkit-text-security: none;" from the computed style list
2436 http://bugs.webkit.org/show_bug.cgi?id=10677
2438 * WebInspector/webInspector/inspector.js:
2440 2006-08-31 Sam Weinig <sam.weinig@gmail.com>
2444 - patch for http://bugs.webkit.org/show_bug.cgi?id=10669
2445 Auto-generate the remaining Objective-C HTML DOM bindings
2447 * MigrateHeaders.make:
2449 2006-08-31 Adele Peterson <adele@apple.com>
2453 WebKit part of fix for http://bugs.webkit.org/show_bug.cgi?id=10666
2454 Password: Disallow Spelling, Font, Speech, and Writing Direction context menu
2456 * DefaultDelegates/WebDefaultContextMenuDelegate.m: (-[WebDefaultUIDelegate editingContextMenuItemsForElement:defaultMenuItems:]):
2457 Check that the selection isn't in a password field before adding these items to the default editing context menu.
2458 Search In Google, Search In Spotlight, Look up in Dictionary, Spelling, Font, Speech, Writing Direction
2459 * WebView/WebHTMLView.m: (-[WebHTMLView _isSelectionInPasswordField]): Added.
2460 * WebView/WebHTMLViewPrivate.h:
2462 2006-08-31 Sam Weinig <sam.weinig@gmail.com>
2466 - patch for http://bugs.webkit.org/show_bug.cgi?id=10653
2467 Auto-generate another 20 Objective-C DOM HTML bindings
2469 * MigrateHeaders.make:
2470 * WebKit.xcodeproj/project.pbxproj:
2472 2006-08-31 Adele Peterson <adele@apple.com>
2474 Reviewed by John Sullivan.
2476 Removed wkSecureEventInput and wkSetSecureEventInput, since this can be done with API.
2478 * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface):
2480 2006-08-31 John Sullivan <sullivan@apple.com>
2482 Reviewed by Tim Omernick
2484 - fixed <rdar://problem/4711200> Loading history would be faster if it bypassed
2485 NSURL API for local files
2487 * History/WebHistory.m:
2488 (-[WebHistoryPrivate _loadHistoryGutsFromURL:savedItemsCount:collectDiscardedItemsInto:error:]):
2489 Load file URLs using [NSDictionary dictionaryWithContentsOfFile:]. I also cleaned up some minor
2490 style issues in this method, and I removed the support for old NSArray-style history files (which we
2491 stopped using before Safari 1.0).
2493 2006-08-30 Adele Peterson <adele@apple.com>
2497 WebKit part of fix for http://bugs.webkit.org/show_bug.cgi?id=10575
2498 Enable secure input mode for new password fields
2500 * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface):
2502 2006-08-30 Brady Eidson <beidson@apple.com>
2506 <rdar://problem/4707718> Change behavior so if the WebCore::IconDatabase can't open, WebKit releases the bridge and
2507 continues on as if the IconDatabase is disabled.
2509 * Misc/WebIconDatabase.m:
2510 (-[WebIconDatabase init]): Release the bridge on failure to open
2511 * WebCoreSupport/WebIconDatabaseBridge.m:
2512 (+[WebIconDatabaseBridge sharedBridgeInstance]): Moved static shared instance out as a global
2513 (-[WebIconDatabaseBridge dealloc]): Clear pointer to the shared instance
2515 2006-08-30 Timothy Hatcher <timothy@apple.com>
2519 Simplify the header copies from WebCore and JavaScriptCore.
2520 Headers that need to be migrated from the other projects need
2521 to be added to MigrateHeaders.make.
2523 * MigrateHeaders.make: Added.
2524 * WebKit.xcodeproj/project.pbxproj:
2526 2006-08-30 Sam Weinig <sam.weinig@gmail.com>
2530 - patch for http://bugs.webkit.org/show_bug.cgi?id=10640
2531 Auto-generate 10 more Objective-C DOM HTML bindings
2533 * WebKit.xcodeproj/project.pbxproj:
2535 2006-08-30 Adele Peterson <adele@apple.com>
2539 WebKit part of fix for:
2540 http://bugs.webkit.org/show_bug.cgi?id=10576
2541 Disallow copy from new password fields
2543 * WebView/WebHTMLView.m:
2544 (-[WebHTMLView _canCopy]): Now also calls across the bridge to ask if it mayCopy.
2545 (-[WebHTMLView _canCut]): Calls _canCopy now.
2546 (-[NSArray validateUserInterfaceItem:]): Calls _canCut when validating the "Cut" menu item.
2547 This used to call _canDelete (which used to be the same as _canCut), but now _canCut also checks _canCopy.
2549 2006-08-30 Karl Adam <karladam@yahoo-inc.com>
2551 Reviewed by Eric and Tim H.
2553 Bug 10634: -webView:dragDestinationActionMaskForDraggingInfo: is ignored
2554 http://bugs.webkit.org/show_bug.cgi?id=10634
2556 Remove the check for canShowFile: from _web_bestURL: since
2557 it shouldn't be concerned with whether or not the view
2558 can show the URL, merely return the most appropriate URL.
2560 * Misc/WebNSPasteboardExtras.m:
2561 (-[NSPasteboard _web_bestURL]):
2562 * Misc/WebNSViewExtras.m:
2563 (-[NSView _web_dragOperationForDraggingInfo:]):
2565 2006-08-29 Brady Eidson <beidson@apple.com>
2567 Reviewed by Kevin Decker (Sarge)
2569 <rdar://problem/4678414> - New IconDB needs to delete icons when asked
2571 * Misc/WebIconDatabase.m:
2572 (-[WebIconDatabase removeAllIcons]): Call through to WebCore to remove icons, then send notification
2574 2006-08-29 Brady Eidson <beidson@apple.com>
2578 Added a truth value check for to setIconURL:forURL so WebKit can avoid sending a notification
2579 This is a win on the iBench
2581 * Misc/WebIconDatabase.m:
2582 (-[WebIconDatabase _setIconURL:forURL:]):
2584 2006-08-29 Brady Eidson <beidson@apple.com>
2586 Reviewed by Tim Hatchers rubber stamp
2588 Removed some accidentally left-in console spew during the conversion to the new DB
2590 * Misc/WebIconDatabase.m:
2591 (objectFromPathForKey): Nuked some NSLogs
2593 2006-08-29 Tim Omernick <timo@apple.com>
2595 Reviewed by Darin Adler.
2597 <rdar://problem/4688618> REGRESSION(10.4.7-9A241): JMol java applet fails in Safari not Firefox
2599 No layout test for now because Java doesn't work in DumpRenderTree.
2601 * Plugins/WebPluginDatabase.m:
2602 (-[WebPluginDatabase refresh]):
2603 Add each plug-in MIME type to registeredMIMETypes, even if we don't register a document view class for the
2604 MIME type. This fixes -[WebPluginDatabase isMIMETypeRegistered:] and thus fallback content for Java applets
2605 (we were always rendering fallback content, if any, for Java applets).
2607 2006-08-29 Sam Weinig <sam.weinig@gmail.com>
2611 - patch for http://bugs.webkit.org/show_bug.cgi?id=10628
2612 Auto-generate the remaining Objective-C DOM bindings
2614 Auto-generates DOMHTMLCollection, DOMHTMLElement, DOMHTMLFormElement,
2615 and DOMHTMLOptionsCollection.
2617 * WebKit.xcodeproj/project.pbxproj:
2619 2006-08-28 Brady Eidson <beidson@apple.com>
2623 Short of a few small snippets that still need to be pushed to WebCore, this
2624 is a final prune of WebIconDatabase. WebFileDatabase and WebLRUFileList are gone
2625 and the small remaining snippets of WebFileDatabase code that were still important
2626 are now in static functions in WebIconDatabase.m
2628 * Loader/WebIconLoader.m:
2629 (-[WebIconLoader didFinishLoading]): Removed the flag
2630 * Misc/WebFileDatabase.h: Removed.
2631 * Misc/WebFileDatabase.m: Removed.
2632 * Misc/WebIconDatabase.m:
2633 (+[WebIconDatabase sharedIconDatabase]):
2634 (-[WebIconDatabase init]):
2635 (-[WebIconDatabase iconForURL:withSize:cache:]):
2636 (-[WebIconDatabase iconURLForURL:]):
2637 (-[WebIconDatabase defaultIconWithSize:]):
2638 (-[WebIconDatabase retainIconForURL:]):
2639 (-[WebIconDatabase releaseIconForURL:]):
2640 (-[WebIconDatabase _isEnabled]):
2641 (-[WebIconDatabase _setIconData:forIconURL:]):
2642 (-[WebIconDatabase _setHaveNoIconForIconURL:]):
2643 (-[WebIconDatabase _setIconURL:forURL:]):
2644 (-[WebIconDatabase _hasEntryForIconURL:]):
2645 (-[WebIconDatabase _applicationWillTerminate:]):
2646 (-[WebIconDatabase _resetCachedWebPreferences:]):
2647 (uniqueFilePathForKey): Added from WebFileDatabase
2648 (objectFromPathForKey): Added from WebFileDatabase
2649 (iconDataFromPathForIconURL):
2650 (-[WebIconDatabase _convertToWebCoreFormat]): Make use of static functions and local variables
2651 instead of using WebFileDatabase and WebIconDatabase variables that are now obsolete
2652 * Misc/WebIconDatabasePrivate.h: Removed alot of obsoleted members
2653 * Misc/WebLRUFileList.h: Removed.
2654 * Misc/WebLRUFileList.m: Removed.
2655 * WebKit.xcodeproj/project.pbxproj: Deleted 4 files
2656 * WebKitPrefix.h: Removed ICONDEBUG
2658 2006-08-28 Tim Omernick <timo@apple.com>
2660 Reviewed by Darin Adler.
2662 * Plugins/WebBaseNetscapePluginView.m:
2663 (-[WebBaseNetscapePluginView createPluginScriptableObject]):
2664 Removed a bogus typecast.
2666 2006-08-28 Tim Omernick <timo@apple.com>
2668 Reviewed by John Sullivan.
2670 Part of <rdar://problem/4481553> NetscapeMoviePlugIn example code scripting doesn't work in Firefox (4319)
2671 <http://bugs.webkit.org/show_bug.cgi?id=4319>: NetscapeMoviePlugIn example code scripting doesn't work
2674 * Plugins/WebBaseNetscapePluginView.h:
2675 * Plugins/WebBaseNetscapePluginView.m:
2676 (-[WebBaseNetscapePluginView createPluginScriptableObject]):
2677 Renamed this method (see corresponding WebCore ChangeLog entry for an explanation).
2680 2006-08-28 Brady Eidson <beidson@apple.com>
2682 Reviewed by Tim Hatcher's rubberstamp
2684 Rolled out my last change (16070 - pruning WebFileDatabase code) as it caused a difficult-to-track down
2685 failure in layout tests on a release build.
2687 * Misc/WebFileDatabase.h:
2688 * Misc/WebFileDatabase.m:
2689 (+[WebFileDatabaseOp opWithCode:key:object:]):
2690 (-[WebFileDatabaseOp initWithCode:key:object:]):
2691 (-[WebFileDatabaseOp opcode]):
2692 (-[WebFileDatabaseOp key]):
2693 (-[WebFileDatabaseOp object]):
2694 (-[WebFileDatabaseOp perform:]):
2695 (-[WebFileDatabaseOp dealloc]):
2696 (SetThreadPriority):
2697 (-[WebFileDatabase _createLRUList:]):
2698 (-[WebFileDatabase _truncateToSizeLimit:]):
2699 (+[WebFileDatabase _syncLoop:]):
2701 (-[WebFileDatabase setTimer]):
2702 (-[WebFileDatabase setObject:forKey:]):
2703 (-[WebFileDatabase removeObjectForKey:]):
2704 (-[WebFileDatabase removeAllObjects]):
2705 (-[WebFileDatabase objectForKey:]):
2706 (-[WebFileDatabase performSetObject:forKey:]):
2707 (-[WebFileDatabase performRemoveObjectForKey:]):
2708 (-[WebFileDatabase open]):
2709 (-[WebFileDatabase close]):
2710 (-[WebFileDatabase lazySync:]):
2711 (-[WebFileDatabase sync]):
2712 (-[WebFileDatabase sizeLimit]):
2713 (-[WebFileDatabase count]):
2714 (-[WebFileDatabase usage]):
2715 (-[WebFileDatabase setSizeLimit:]):
2716 * Misc/WebIconDatabase.m:
2717 (-[WebIconDatabase _createFileDatabase]):
2718 (-[WebIconDatabase _loadIconDictionaries]):
2719 * WebKit.xcodeproj/project.pbxproj:
2721 2006-08-28 Darin Adler <darin@apple.com>
2723 Reviewed by Tim Hatcher.
2725 * WebInspector/webInspector/inspector.js: Add "resize: none" to the list of
2726 default values for CSS properties so it will be omitted from most displays
2729 2006-08-28 Brady Eidson <beidson@apple.com>
2733 Major prune of unnecessary WebFileDatabase code. In the end, what
2734 useful code that remains in WebFileDatabase will likely be moved directly
2735 into WebIconDatabase
2737 * Misc/WebFileDatabase.h:
2738 * Misc/WebFileDatabase.m:
2739 (-[WebFileDatabase initWithPath:]):
2740 (-[WebFileDatabase objectForKey:]):
2741 (-[WebFileDatabase open]):
2742 (-[WebFileDatabase close]):
2743 * Misc/WebIconDatabase.m:
2744 (-[WebIconDatabase _createFileDatabase]):
2745 (-[WebIconDatabase _loadIconDictionaries]):
2746 * Misc/WebLRUFileList.h: Removed.
2747 * Misc/WebLRUFileList.m: Removed.
2748 * WebKit.xcodeproj/project.pbxproj:
2750 2006-08-27 Sam Weinig <sam.weinig@gmail.com>
2754 - patch for http://bugs.webkit.org/show_bug.cgi?id=4624
2755 WebCore needs autogenerated Obj-C DOM bindings
2757 First round of auto-generated Objective C DOM bindings, starting
2760 * WebKit.xcodeproj/project.pbxproj:
2762 2006-08-25 Brady Eidson <beidson@apple.com>
2764 Reviewed by Tim Hatcher
2766 Fixed up some leaks on [WebIconDatabase init]
2768 * Misc/WebIconDatabase.m:
2769 (-[WebIconDatabase init]):
2771 2006-08-24 Timothy Hatcher <timothy@apple.com>
2775 * WebView/WebFrame.m:
2776 (-[WebFrame _updateBackground]): reworded the comment about scroll view and setDrawsBackground:YES
2777 * WebView/WebView.m:
2778 (-[WebViewPrivate dealloc]): release the background color
2780 2006-08-24 Timothy Hatcher <timothy@apple.com>
2784 WebView API to allow changing the background color that draws under transparent page backgrounds.
2786 * WebView/WebFrame.m:
2787 (-[WebFrame _makeDocumentView]):
2788 (-[WebFrame _updateBackground]):
2789 * WebView/WebFrameInternal.h:
2790 * WebView/WebFrameView.m:
2791 (-[WebFrameView drawRect:]):
2792 * WebView/WebView.m:
2793 (-[WebView setBackgroundColor:]):
2794 (-[WebView backgroundColor]):
2795 (-[WebView _commonInitializationWithFrameName:groupName:]):
2796 (-[WebView setDrawsBackground:]):
2797 * WebView/WebViewPrivate.h:
2799 2006-08-24 Timothy Hatcher <timothy@apple.com>
2803 Fix for Mail stationary. Selecting a stationary item would cause this exception.
2804 *** -[WebSubresourceLoader copyWithZone:]: selector not recognized
2805 Uncaught exception - *** -[WebSubresourceLoader copyWithZone:]: selector not recognized
2807 * Loader/WebFrameLoader.m:
2808 (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
2809 Use _webkit_setObject:forUncopiedKey: when addign the resource to pendingArchivedResources.
2811 2006-08-23 Maciej Stachowiak <mjs@apple.com>
2815 - fix assertion which I accidentally changed to one that sometimes fails
2816 http://bugs.webkit.org/show_bug.cgi?id=10531
2818 * Loader/WebDocumentLoadState.m:
2819 (-[WebDocumentLoadState dealloc]):
2820 * WebView/WebDataSource.m:
2821 (-[WebDataSourcePrivate dealloc]):
2822 (-[WebDataSource dealloc]):
2824 2006-08-23 Maciej Stachowiak <mjs@apple.com>
2828 - move WebFrame code that creates WebDataSources down to WebFrameLoader, in preparation
2829 for WebFrameLoader just holding on to WebDocumentLoadState
2831 * Loader/WebFrameLoader.h:
2832 * Loader/WebFrameLoader.m:
2833 (-[WebFrameLoader _loadRequest:archive:]):
2834 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
2835 (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
2836 (-[WebFrameLoader reload]):
2837 * WebView/WebFrame.m:
2838 (-[WebFrame _loadItem:withLoadType:]):
2839 (-[WebFrame _continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
2840 (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
2841 (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
2842 (-[WebFrame _shouldReloadToHandleUnreachableURLFromRequest:]):
2843 (-[WebFrame loadRequest:]):
2844 (-[WebFrame loadArchive:]):
2845 (-[WebFrame reload]):
2846 * WebView/WebFrameInternal.h:
2847 * WebView/WebFramePrivate.h:
2848 * WebView/WebView.m:
2849 (-[WebView setCustomTextEncodingName:]):
2851 2006-08-23 Brady Eidson <beidson@apple.com>
2855 First pass at pruning unused WebIconDatabase code. Focus on removing methods that simply
2856 have no place in the new DB at all. A few renames and a few important FIXMEs result, but no
2857 functionality changes.
2859 * Loader/WebIconLoader.m:
2860 (-[WebIconLoader didFinishLoading]): Call to WebIconDatabase instead of directly to the bridge
2861 * Misc/WebIconDatabase.h:
2862 * Misc/WebIconDatabase.m:
2863 (-[WebIconDatabase init]):
2864 (-[WebIconDatabase iconForURL:withSize:cache:]):
2865 (-[WebIconDatabase iconURLForURL:]):
2866 (-[WebIconDatabase defaultIconWithSize:]):
2867 (-[WebIconDatabase retainIconForURL:]):
2868 (-[WebIconDatabase releaseIconForURL:]):
2869 (-[WebIconDatabase removeAllIcons]):
2870 (-[WebIconDatabase _setIconData:forIconURL:]):
2871 (-[WebIconDatabase _setHaveNoIconForIconURL:]):
2872 (-[WebIconDatabase _setIconURL:forURL:]):
2873 (-[WebIconDatabase _hasEntryForIconURL:]):
2874 (-[WebIconDatabase _applicationWillTerminate:]):
2875 (-[WebIconDatabase _resetCachedWebPreferences:]):
2876 * Misc/WebIconDatabasePrivate.h: Changed setIcon: to setIconData:
2878 2006-08-23 Maciej Stachowiak <mjs@apple.com>
2882 - started factoring most of the guts of WebDataSource into a new class
2884 WebDocumentLoadState is decoupled from the rest of WebKit and will
2885 be moved down to WebCore. I only moved one of the data fields of
2886 WebDataSource for now.
2888 * Loader/WebDocumentLoadState.h: Added.
2889 * Loader/WebDocumentLoadState.m: Added.
2890 (-[WebDocumentLoadState initWithRequest:]): New class.
2891 (-[WebDocumentLoadState dealloc]):
2892 (-[WebDocumentLoadState setFrameLoader:]):
2893 (-[WebDocumentLoadState setMainResourceData:]):
2894 (-[WebDocumentLoadState mainResourceData]):
2895 * Loader/WebFrameLoader.m:
2896 (-[WebFrameLoader _setDataSource:]): Remove redundant _setWebFrame: call,
2897 it would have been called already by this point.
2898 (-[WebFrameLoader _setProvisionalDataSource:]): ditto.
2899 * WebKit.xcodeproj/project.pbxproj:
2900 * WebView/WebDataSource.m:
2901 (-[WebDataSourcePrivate dealloc]):
2902 (-[WebDataSource _setWebFrame:]):
2903 (-[WebDataSource _setPrimaryLoadComplete:]):
2904 (-[WebDataSource initWithRequest:]):
2905 (-[WebDataSource data]):
2907 2006-08-23 Maciej Stachowiak <mjs@apple.com>
2911 - refactoring of WebDataSource in preparation for moving a bunch of it to a new class
2913 - minimize WebDataSourceInternal.h to be only methods called from outside WebDataSource
2914 - reduce Private category implementation to be only the SPI methods
2915 - make new Internal and FileInternal categories which contain the
2916 remainder (depending on whether they are called from outside of
2919 * WebView/WebDataSource.m:
2920 (-[WebDataSource _setMainDocumentError:]):
2921 (addTypesFromClass):
2922 (+[WebDataSource _representationClassForMIMEType:]):
2923 (-[WebDataSource _commitIfReady]):
2924 (-[WebDataSource _commitLoadWithData:]):
2925 (-[WebDataSource _doesProgressiveLoadWithMIMEType:]):
2926 (-[WebDataSource _addResponse:]):
2927 (-[WebDataSource _revertToProvisionalState]):
2928 (-[WebDataSource _mainDocumentError]):
2929 (-[WebDataSource _addSubframeArchives:]):
2930 (-[WebDataSource _fileWrapperForURL:]):
2931 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
2932 (-[WebDataSource _decidePolicyForMIMEType:decisionListener:]):
2933 (-[WebDataSource _finishedLoading]):
2934 (-[WebDataSource _setResponse:]):
2935 (-[WebDataSource _setRequest:]):
2936 (-[WebDataSource _setupForReplaceByMIMEType:]):
2937 (-[WebDataSource _receivedMainResourceError:complete:]):
2938 (-[WebDataSource _mainReceivedError:complete:]):
2939 (-[WebDataSource _defersCallbacks]):
2940 (-[WebDataSource _downloadWithLoadingConnection:request:response:proxy:]):
2941 (-[WebDataSource _didFailLoadingWithError:forResource:]):
2942 (-[WebDataSource _didFinishLoadingForResource:]):
2943 (-[WebDataSource _didReceiveData:contentLength:forResource:]):
2944 (-[WebDataSource _didReceiveResponse:forResource:]):
2945 (-[WebDataSource _didCancelAuthenticationChallenge:forResource:]):
2946 (-[WebDataSource _didReceiveAuthenticationChallenge:forResource:]):
2947 (-[WebDataSource _willSendRequest:forResource:redirectResponse:]):
2948 (-[WebDataSource _identifierForInitialRequest:]):
2949 (-[WebDataSource _archivedSubresourceForURL:]):
2950 (-[WebDataSource _startLoading]):
2951 (-[WebDataSource _stopRecordingResponses]):
2952 (-[WebDataSource _loadingStartedTime]):
2953 (-[WebDataSource _replaceSelectionWithArchive:selectReplacement:]):
2954 (-[WebDataSource _documentFragmentWithArchive:]):
2955 (-[WebDataSource _documentFragmentWithImageResource:]):
2956 (-[WebDataSource _imageElementWithImageResource:]):
2957 (-[WebDataSource _title]):
2958 (-[WebDataSource _isStopping]):
2959 (-[WebDataSource _setWebFrame:]):
2960 (-[WebDataSource _URL]):
2961 (-[WebDataSource _loadFromPageCache:]):
2962 (-[WebDataSource _popSubframeArchiveWithName:]):
2963 (-[WebDataSource _setIsClientRedirect:]):
2964 (-[WebDataSource _setURL:]):
2965 (-[WebDataSource _setLastCheckedRequest:]):
2966 (-[WebDataSource _defersCallbacksChanged]):
2967 (-[WebDataSource _lastCheckedRequest]):
2968 (-[WebDataSource _stopLoading]):
2969 (-[WebDataSource _bridge]):
2970 (-[WebDataSource _webView]):
2971 (-[WebDataSource _triggeringAction]):
2972 (-[WebDataSource _setTriggeringAction:]):
2973 (-[WebDataSource __adoptRequest:]):
2974 (-[WebDataSource _isDocumentHTML]):
2975 (-[WebDataSource _stopLoadingWithError:]):
2976 (-[WebDataSource _setPrimaryLoadComplete:]):
2977 (-[WebDataSource _responses]):
2978 (-[WebDataSource _makeRepresentation]):
2979 (-[WebDataSource _isClientRedirect]):
2980 (-[WebDataSource _originalRequest]):
2981 (-[WebDataSource _URLForHistory]):
2982 (-[WebDataSource _addToUnarchiveState:]):
2983 (-[WebDataSource _setOverrideEncoding:]):
2984 (-[WebDataSource _setIconURL:]):
2985 (-[WebDataSource _setIconURL:withType:]):
2986 (-[WebDataSource _overrideEncoding]):
2987 (-[WebDataSource _setTitle:]):
2988 * WebView/WebDataSourceInternal.h:
2990 2006-08-23 Brady Eidson <beidson@apple.com>
2992 Reviewed by John Sullivan
2995 Flip the switch to the new Icon Database
2996 Massive code pruning is coming up
2998 * WebKitPrefix.h: Flipped the switch
3000 2006-08-23 Brady Eidson <beidson@apple.com>
3003 Since I just pushed the default URL icon from WebKit to WebCore, but
3004 WebKit was still using its version of the default icon, this patch makes it
3005 use the WebCore version
3007 * Misc/WebIconDatabase.m:
3008 (-[WebIconDatabase defaultIconWithSize:]):
3010 2006-08-22 Maciej Stachowiak <mjs@apple.com>
3014 - remove "loading" flag from WebDataSource and code that manages it; it is redundat.
3016 * Loader/WebFrameLoader.m:
3017 (-[WebFrameLoader addPlugInStreamLoader:]):
3018 (-[WebFrameLoader removePlugInStreamLoader:]):
3019 (-[WebFrameLoader addSubresourceLoader:]):
3020 (-[WebFrameLoader removeSubresourceLoader:]):
3021 * WebView/WebDataSource.m:
3022 (-[WebDataSourcePrivate dealloc]):
3023 (-[WebDataSource _setPrimaryLoadComplete:]):
3024 (-[WebDataSource _stopLoading]):
3025 (-[WebDataSource _prepareForLoadStart]):
3026 (-[WebDataSource _startLoading]):
3027 (-[WebDataSource isLoading]):
3028 * WebView/WebDataSourceInternal.h:
3030 2006-08-22 Maciej Stachowiak <mjs@apple.com>
3034 <rdar://problem/4683948> REGRESSION: Assertion failure in [FrameProgressEntry addChild:forDataSource:] (fandango.com)
3036 * Loader/WebFrameLoader.m:
3037 (-[WebFrameLoader addSubresourceLoader:]): Add a WebKit-level assertion that should fire when this bad
3039 * Loader/WebSubresourceLoader.m:
3040 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]): Prevent
3041 the situation from occuring.
3043 2006-08-22 Maciej Stachowiak <mjs@apple.com>
3047 - pull more WebDataSource code into WebFrameLoader
3048 - make WebMainResourceLoader not depend on WebKit or on SPI
3050 * Loader/WebFrameLoader.h:
3051 * Loader/WebFrameLoader.m:
3052 (-[WebFrameLoader _downloadWithLoadingConnection:request:response:proxy:]):
3053 (-[WebFrameLoader _updateIconDatabaseWithURL:]):
3054 (-[WebFrameLoader _notifyIconChanged:]):
3055 (-[WebFrameLoader _iconLoaderReceivedPageIcon:]):
3056 (-[WebFrameLoader _checkNavigationPolicyForRequest:andCall:withSelector:]):
3057 (-[WebFrameLoader _checkContentPolicyForMIMEType:andCall:withSelector:]):
3058 (-[WebFrameLoader cancelContentPolicy]):
3059 * Loader/WebIconLoader.m:
3060 (-[WebIconLoader didFinishLoading]):
3061 * Loader/WebLoader.m:
3062 (-[NSURLProtocol loadWithRequest:]):
3063 (-[NSURLProtocol setDefersCallbacks:]):
3064 * Loader/WebMainResourceLoader.h:
3065 * Loader/WebMainResourceLoader.m:
3066 (-[WebMainResourceLoader initWithFrameLoader:]):
3067 (-[WebMainResourceLoader dealloc]):
3068 (-[WebMainResourceLoader cancelWithError:]):
3069 (-[WebMainResourceLoader continueAfterNavigationPolicy:formState:]):
3070 (-[WebMainResourceLoader willSendRequest:redirectResponse:]):
3071 (-[WebMainResourceLoader continueAfterContentPolicy:]):
3072 (-[WebMainResourceLoader checkContentPolicy]):
3073 (-[WebMainResourceLoader didReceiveResponse:]):
3074 * Plugins/WebPluginContainerCheck.m:
3075 * WebCoreSupport/WebSystemInterface.m:
3076 (InitWebCoreSystemInterface):
3077 * WebView/WebDataSource.m:
3078 (-[WebDataSource _loadIcon]):
3079 (-[WebDataSource _cancelledError]):
3080 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
3081 (+[WebDataSource _representationClassForMIMEType:]):
3082 (-[WebDataSource _commitLoadWithData:]):
3083 (-[WebDataSource _isDocumentHTML]):
3084 * WebView/WebDataSourceInternal.h:
3085 * WebView/WebFramePrivate.h:
3086 * WebView/WebPolicyDelegate.m:
3087 * WebView/WebPolicyDelegatePrivate.h:
3089 2006-08-21 Maciej Stachowiak <mjs@apple.com>
3093 - move more code from WebDataSource to WebFrameLoader
3095 Also marked a few more methods in WebDataSource as likely MOVABLE in a future round, since they do not
3096 use any of WebDataSource's private data.
3098 * Loader/WebFrameLoader.h:
3099 * Loader/WebFrameLoader.m:
3100 (-[WebFrameLoader addPlugInStreamLoader:]):
3101 (-[WebFrameLoader removePlugInStreamLoader:]):
3102 (-[WebFrameLoader addSubresourceLoader:]):
3103 (-[WebFrameLoader removeSubresourceLoader:]):
3104 (-[WebFrameLoader _didReceiveAuthenticationChallenge:forResource:]):
3105 (-[WebFrameLoader _didCancelAuthenticationChallenge:forResource:]):
3106 (-[WebFrameLoader _didReceiveResponse:forResource:]):
3107 (-[WebFrameLoader _didReceiveData:contentLength:forResource:]):
3108 (-[WebFrameLoader _didFinishLoadingForResource:]):
3109 (-[WebFrameLoader _didFailLoadingWithError:forResource:]):
3110 (-[WebFrameLoader _privateBrowsingEnabled]):
3111 (-[WebFrameLoader _finishedLoadingResource]):
3112 (-[WebFrameLoader _receivedError:]):
3113 (-[WebFrameLoader _finishedLoading]):
3114 * Loader/WebMainResourceLoader.m:
3115 (-[WebMainResourceLoader didReceiveData:lengthReceived:allAtOnce:]):
3116 (-[WebMainResourceLoader didFinishLoading]):
3117 * Loader/WebNetscapePlugInStreamLoader.m:
3118 (-[WebNetscapePlugInStreamLoader didFinishLoading]):
3119 (-[WebNetscapePlugInStreamLoader didFailWithError:]):
3120 (-[WebNetscapePlugInStreamLoader cancelWithError:]):
3121 * Loader/WebSubresourceLoader.m:
3122 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
3123 (-[WebSubresourceLoader signalFinish]):
3124 (-[WebSubresourceLoader didFailWithError:]):
3125 (-[WebSubresourceLoader cancel]):
3126 * Plugins/WebNetscapePluginStream.m:
3127 (-[WebNetscapePluginStream start]):
3128 * WebView/WebDataSource.m:
3129 (-[WebDataSource _replaceSelectionWithArchive:selectReplacement:]):
3130 (-[WebDataSource _updateIconDatabaseWithURL:]):
3131 (-[WebDataSource _loadIcon]):
3132 (-[WebDataSource _setPrimaryLoadComplete:]):
3133 (-[WebDataSource _cancelledError]):
3134 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
3135 (+[WebDataSource _representationClassForMIMEType:]):
3136 (-[WebDataSource _commitLoadWithData:]):
3137 (-[WebDataSource _receivedMainResourceError:complete:]):
3138 (-[WebDataSource _iconLoaderReceivedPageIcon:]):
3139 (-[WebDataSource _isDocumentHTML]):
3140 * WebView/WebDataSourceInternal.h:
3142 2006-08-21 Brady Eidson <beidson@apple.com>
3146 Quick ICONDEBUG flag fix
3148 * Misc/WebIconDatabase.m:
3149 (-[WebIconDatabase _applicationWillTerminate:]):
3151 2006-08-21 Brady Eidson <beidson@apple.com>
3155 -Renamed an internal only method for clarity
3156 -Tweaked WebDataSource for notification purposes with the new expiring icons
3157 -Fixed a bug with the ICONDEBUG flag
3159 * Misc/WebIconDatabase.m:
3160 (-[WebIconDatabase init]):
3161 (-[WebIconDatabase iconForURL:withSize:cache:]): #ifdef bug fixed
3162 (-[WebIconDatabase _hasEntryForIconURL:]): Renamed for clarity
3163 * Misc/WebIconDatabasePrivate.h:
3164 * WebView/WebDataSource.m:
3165 (-[WebDataSource _updateIconDatabaseWithURL:]):
3166 (-[WebDataSource _notifyIconChanged:]):
3167 (-[WebDataSource _loadIcon]):
3168 (-[WebDataSource _iconLoaderReceivedPageIcon:]):
3170 2006-08-17 Maciej Stachowiak <mjs@apple.com>
3174 - pull a bit of WebDataSource code into WebFrameLoader
3176 * Loader/WebFrameLoader.m:
3177 (-[WebFrameLoader _receivedError:]):
3178 (-[WebFrameLoader webFrame]):
3179 (-[WebFrameLoader _handleFallbackContent]):
3180 (+[WebFrameLoader _canShowMIMEType:]):
3181 (+[WebFrameLoader _representationExistsForURLScheme:]):
3182 (+[WebFrameLoader _generatedMIMETypeForURLScheme:]):
3183 * WebView/WebDataSource.m:
3184 * WebView/WebDataSourceInternal.h:
3186 2006-08-17 Timothy Hatcher <timothy@apple.com>
3188 Reviewed by Kevin Decker.
3190 <rdar://problem/4606857> WebKit: WebPreferencesChangedNotification not exported in 64-bit
3194 2006-08-17 Timothy Hatcher <timothy@apple.com>
3196 Reviewed by Kevin Decker.
3198 <rdar://problem/4633896> -[WebView close] should clear all delegates and call setHostWindow:nil
3199 <rdar://problem/4649759> Crash when selecting View Source menu using Chinese (-[WebView _close])
3201 Check to make sure _private is not null. A WebView can be dealloced before _private is setup.
3202 Set the _private->closed flag at the beginning of _close to prevent reentry.
3203 Set the host window and all the delegates to nil in _close.
3205 * WebView/WebView.m:
3206 (-[WebView _close]):
3208 2006-08-16 Brady Eidson <beidson@apple.com>
3212 * Misc/WebIconDatabase.m: Pruned unused method
3213 * Misc/WebIconDatabasePrivate.h: Ditto
3216 2006-08-15 Maciej Stachowiak <mjs@apple.com>
3218 Reviewed by Adele (preliminary version) and later by Kevin.
3220 - remove most WebKit dependencies from WebMainResourceLoader.
3222 * Loader/WebFrameLoader.h:
3223 * Loader/WebFrameLoader.m:
3224 (-[WebFrameLoader cannotShowMIMETypeForURL:]):
3225 (-[WebFrameLoader interruptForPolicyChangeErrorWithRequest:]):
3226 (-[WebFrameLoader isHostedByObjectElement]):
3227 (-[WebFrameLoader isLoadingMainFrame]):
3228 (+[WebFrameLoader _canShowMIMEType:]):
3229 (+[WebFrameLoader _representationExistsForURLScheme:]):
3230 (+[WebFrameLoader _generatedMIMETypeForURLScheme:]):
3231 * Loader/WebMainResourceLoader.h:
3232 * Loader/WebMainResourceLoader.m:
3233 (-[WebMainResourceLoader interruptForPolicyChangeError]):
3234 (-[WebMainResourceLoader willSendRequest:redirectResponse:]):
3235 (isCaseInsensitiveEqual):
3236 (shouldLoadAsEmptyDocument):
3237 (-[WebMainResourceLoader continueAfterContentPolicy:response:]):
3238 (-[WebMainResourceLoader didReceiveResponse:]):
3239 (-[WebMainResourceLoader didReceiveData:lengthReceived:allAtOnce:]):
3240 (-[WebMainResourceLoader didFinishLoading]):
3241 (-[WebMainResourceLoader loadWithRequestNow:]):
3242 (-[WebMainResourceLoader loadWithRequest:]):
3244 2006-08-15 Tim Omernick <timo@apple.com>
3246 Reviewed by Kevin Decker.
3248 * Plugins/WebNetscapePluginPackage.m:
3249 (-[WebNetscapePluginPackage _unloadWithShutdown:]):
3250 Fixed a subtle problem with the 64-bit debug build -- as written, this would LOG() on 64-bit and do nothing on
3252 * Plugins/WebPluginDatabase.m:
3253 (-[WebPluginDatabase _scanForNewPlugins]):
3254 Use +[NSMutableSet set] here.
3256 2006-08-15 Tim Omernick <timo@apple.com>
3258 Reviewed by Darin Adler.
3260 <http://bugs.webkit.org/show_bug.cgi?id=8980>
3261 ASSERTION FAILED: !isLoaded (WebKit/WebKit/Plugins/WebBasePluginPackage.m:228 -[WebBasePluginPackage dealloc])
3263 <rdar://problem/4526052> intermittent assertion failure in -[WebBasePluginPackage dealloc] running layout tests (8980)
3265 * Plugins/WebPluginDatabase.h:
3266 * Plugins/WebPluginDatabase.m:
3267 (+[WebPluginDatabase installedPlugins]):
3268 Observe NSApplicationWillTerminateNotification so we can unload plug-ins on quit.
3269 (-[WebPluginDatabase plugins]):
3270 'plugins' is now a dictionary.
3271 (-[WebPluginDatabase close]):
3272 Call new -_removePlugin: method.
3273 (-[WebPluginDatabase refresh]):
3274 Moved parts of this method out into other methods: -_addPlugin:, -_removePlugin:, and -_scanForNewPlugins.
3275 (-[WebPluginDatabase _plugInPaths]):
3276 No changes; just moved in file.
3277 (-[WebPluginDatabase _addPlugin:]):
3278 New method. Refactored from -refresh. Adds a plug-in to the database.
3279 (-[WebPluginDatabase _removePlugin:]):
3280 New method. Refactored from -refresh. Remove a plug-in from the database.
3281 (-[WebPluginDatabase _scanForNewPlugins]):
3282 New method. Refactored from -refresh. Returns the list of plug-in packages on disk.
3283 (-[WebPluginDatabase _applicationWillTerminate]):
3284 New method. Called when the application terminates. Closes the plug-in database so that all plug-ins are
3285 removed from the DB (and unloaded if necessary).
3287 * Plugins/WebBasePluginPackage.h:
3288 * Plugins/WebBasePluginPackage.m:
3289 (-[WebBasePluginPackage initWithPath:]):
3290 Try to create the NSBundle first, so if the file is not a valid bundle we bail out early. This
3291 avoids some stat()s and allocations during the plug-in refresh process.
3292 (-[WebBasePluginPackage isLoaded]):
3294 (-[WebBasePluginPackage load]):
3295 Base class for plug-in packages now always loads "successfully".
3296 (-[WebBasePluginPackage dealloc]):
3297 Removed this assertion. The base plug-in package class has no concept of
3299 (-[WebBasePluginPackage finalize]):
3301 (-[WebBasePluginPackage wasRemovedFromPluginDatabase:]):
3302 Moved code to unload plug-in package to WebNetscapePluginPackage. Not all plug-in
3303 packages can be "unloaded".
3305 * Plugins/WebNetscapePluginPackage.h:
3306 * Plugins/WebNetscapePluginPackage.m:
3307 (-[WebNetscapePluginPackage _unloadWithShutdown:]):
3308 Combined old -unload and -unloadWithoutShutdown methods into this new one.
3309 (-[WebNetscapePluginPackage initWithPath:]):
3310 Call new unload method.
3311 (-[WebNetscapePluginPackage load]):
3313 (-[WebNetscapePluginPackage wasRemovedFromPluginDatabase:]):
3315 (-[WebNetscapePluginPackage open]):
3316 New method. Called when a plug-in instance starts running.
3317 (-[WebNetscapePluginPackage close]):
3318 New method. Called when a plug-in instance stops running. When all plug-in instances
3319 close the plug-in package, and the plug-in package is removed from the database, the plug-in
3322 * Plugins/WebPluginPackage.m:
3323 (-[WebPluginPackage initWithPath:]):
3324 (-[WebPluginPackage load]):
3325 Made this a bit more efficient by checking if the bundle is already loaded.
3326 (-[WebBasePluginPackage unload]):
3328 (-[WebBasePluginPackage isLoaded]):
3331 * Plugins/WebBaseNetscapePluginView.m:
3332 (-[WebBaseNetscapePluginView start]):
3333 Open the plug-in package so it remains loaded while this instance uses it.
3334 (-[WebBaseNetscapePluginView stop]):
3335 Close the plug-in package when the plug-in instance is stopped.
3337 * Plugins/WebBaseNetscapePluginStream.m:
3338 (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:]):
3339 This check is not necessary. Netscape plug-in packages are never unloaded until all their instances have
3340 been stopped, and a Netscape plug-in instance will stop its streams when it is stopped.
3341 (-[WebBaseNetscapePluginStream _destroyStream]):
3343 (-[WebBaseNetscapePluginStream finishedLoadingWithData:]):
3345 (-[WebBaseNetscapePluginStream _deliverData]):
3348 2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
3352 Build fix: DWARF and -gfull are incompatible with symbol separation.
3354 * WebKit.xcodeproj/project.pbxproj:
3356 2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
3360 http://bugs.webkit.org/show_bug.cgi?id=10394
3361 Bug 10394: WebKit Release and Production configurations should enable dead code stripping
3363 * WebKit.xcodeproj/project.pbxproj:
3365 2006-08-15 Maciej Stachowiak <mjs@apple.com>
3369 - remove WebKit dependencies from WebPlugInStreamLoader via a protocol veil of ignorance
3371 * Loader/WebNetscapePlugInStreamLoader.h:
3372 * Loader/WebNetscapePlugInStreamLoader.m:
3373 (-[WebNetscapePlugInStreamLoader initWithDelegate:frameLoader:]):
3374 * Loader/WebPlugInStreamLoaderDelegate.h: Added.
3375 * Plugins/WebBaseNetscapePluginStream.h:
3376 * Plugins/WebNetscapePluginStream.m:
3377 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
3378 * WebKit.xcodeproj/project.pbxproj:
3380 2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
3384 http://bugs.webkit.org/show_bug.cgi?id=10384
3385 Bug 10384: Switch to DWARF for Release configuration
3387 * WebKit.xcodeproj/project.pbxproj:
3389 2006-08-15 Graham Dennis <graham.dennis@gmail.com>
3393 - patch for http://bugs.webkit.org/show_bug.cgi?id=10314
3394 WebUnarchivingState archivedResourceForURL: doesn't work
3396 * WebView/WebUnarchivingState.m:
3397 (-[WebUnarchivingState archivedResourceForURL:]):
3398 Fixed to get objects from the archived resources dictionary using
3399 the URL as a string instead of as the URL itself (as this is how
3400 the data is put into the dictionary).
3402 2006-08-14 Maciej Stachowiak <mjs@apple.com>
3406 - remove many (but not all) WebKit dependencies from WebNetscapePlugInStreamLoader (it still
3407 depends on WebNetscapePluginStream).
3409 * Loader/WebFrameLoader.h:
3410 * Loader/WebFrameLoader.m:
3411 (-[WebFrameLoader fileDoesNotExistErrorWithResponse:]):
3412 * Loader/WebNetscapePlugInStreamLoader.h:
3413 * Loader/WebNetscapePlugInStreamLoader.m:
3414 (-[WebNetscapePlugInStreamLoader initWithStream:frameLoader:]):
3415 (-[WebNetscapePlugInStreamLoader releaseResources]):
3416 (-[WebNetscapePlugInStreamLoader didReceiveResponse:]):
3417 * Plugins/WebNetscapePluginStream.m:
3418 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
3420 2006-08-14 Maciej Stachowiak <mjs@apple.com>
3422 Reviewed by Tim Omernick.
3424 - fixed REGRESSION: crash when leaving youtube page while movie is still loading
3425 http://bugs.webkit.org/show_bug.cgi?id=10398
3427 * Loader/WebNetscapePlugInStreamLoader.m:
3428 (-[WebNetscapePlugInStreamLoader initWithStream:view:]): Set the frame loader for this stream.
3429 (-[WebNetscapePlugInStreamLoader cancelWithError:]): Make sure to destroy the stream as well;
3430 otherwise, when we try to clean up later, we won't have the right context.
3432 2006-08-14 David Hyatt <hyatt@apple.com>
3434 Fix for Radar bug 4478840, Safari should not reduce null events sent to
3435 plug-ins in windows that are inactive but visible.
3437 With this fix you can view videos in visible background windows on YouTube
3438 (for example) and not see any drop in frame rate.
3442 * Plugins/WebBaseNetscapePluginView.m:
3443 (-[WebBaseNetscapePluginView restartNullEvents]):
3445 2006-08-14 Maciej Stachowiak <mjs@apple.com>
3449 - removed WebKit-level dependencies from WebFormDataStream. Use WebCore version of system interface
3451 * Loader/WebFormDataStream.m:
3453 (formEventCallback):
3455 * WebCoreSupport/WebSystemInterface.m:
3456 (InitWebCoreSystemInterface):
3458 2006-08-14 Maciej Stachowiak <mjs@apple.com>
3460 Rubber stamped by Brady.
3462 - move WebFormDataStream from WebView to Loader
3464 * WebKit.xcodeproj/project.pbxproj:
3465 * WebView/WebFormDataStream.h: Removed.
3466 * WebView/WebFormDataStream.m: Removed.
3468 2006-08-13 Maciej Stachowiak <mjs@apple.com>
3472 - remove WebKit dependencies from WebSubresourceLoader, except WebFormDataStream
3474 (WebFormDataStream will be moved into the Loader directory soon)
3476 * Loader/WebFrameLoader.h:
3477 * Loader/WebFrameLoader.m:
3478 (-[WebFrameLoader _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
3479 * Loader/WebSubresourceLoader.m:
3480 (isConditionalRequest):
3481 (hasCaseInsensitivePrefix):
3484 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
3486 2006-08-13 Brady Eidson <beidson@apple.com>
3490 Relocated the WebIconLoaders
3492 * Misc/WebIconLoader.h: Moved to Loader/
3493 * Misc/WebIconLoader.m: Moved to Loader/
3494 * WebKit.xcodeproj/project.pbxproj:
3496 2006-08-13 Maciej Stachowiak <mjs@apple.com>
3500 - removed non-Loader WebKit dependencies from WebDataProtocol for
3501 real (whoops) and fix some typos.
3503 * Loader/WebDataProtocol.m:
3504 (isCaseInsensitiveEqual): Added.
3505 (+[WebDataProtocol _webIsDataProtocolURL:]): Avoid WebKit calls.
3506 (-[WebDataProtocol startLoading]): ditto
3507 * Loader/WebFrameLoader.m:
3508 (isCaseInsensitiveEqual): Fixed spelling from isCaseSensitiveEqual.
3509 (-[WebFrameLoader _canUseResourceForRequest:]): Use proper call.
3511 2006-08-13 Brady Eidson <beidson@apple.com>
3515 The way of detecting a failed icon load before was to try and construct
3516 an image from the icon and if that image construction failed, mark the icon
3518 A much more efficient way is to check for an error response. We'll still
3519 check for invalid image data, but most servers will correctly return an HTTP
3520 error on a missing icon.
3522 * Misc/WebIconLoader.m:
3523 (-[WebIconLoader didFinishLoading]): Added check for http error response
3525 2006-08-13 Maciej Stachowiak <mjs@apple.com>
3529 - remove all non-Loader dependencies from WebLoader
3531 As part of this I moved WebDataProtocol to the loader directory
3532 and removed dependencies on the rest of WebKit from that too.
3534 * Loader/WebFrameLoader.h:
3535 * Loader/WebFrameLoader.m:
3536 (-[WebFrameLoader setDefersCallbacks:]):
3537 (-[WebFrameLoader stopLoading]):
3538 (-[WebFrameLoader cancelledErrorWithRequest:]):
3539 (-[WebFrameLoader clearArchivedResources]):
3540 (-[WebFrameLoader deliverArchivedResources]):
3541 (-[WebFrameLoader deliverArchivedResourcesAfterDelay]):
3542 (isCaseSensitiveEqual):
3543 (-[WebFrameLoader _canUseResourceForRequest:]):
3544 (-[WebFrameLoader _canUseResourceWithResponse:]):
3545 (-[WebFrameLoader pendingArchivedResources]):
3546 (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
3547 (-[WebFrameLoader archiveLoadPendingForLoader:]):
3548 (-[WebFrameLoader cancelPendingArchiveLoadForLoader:]):
3549 * Loader/WebLoader.h:
3550 * Loader/WebLoader.m:
3551 (-[NSURLProtocol releaseResources]):
3552 (-[NSURLProtocol loadWithRequest:]):
3553 (-[NSURLProtocol setDefersCallbacks:]):
3554 (-[NSURLProtocol addData:allAtOnce:]):
3555 (-[NSURLProtocol resourceData]):
3556 (-[NSURLProtocol didReceiveData:lengthReceived:allAtOnce:]):
3557 (-[NSURLProtocol connection:didReceiveData:lengthReceived:]):
3558 (-[NSURLProtocol cancelWithError:]):
3559 (-[NSURLProtocol cancelledError]):
3560 * Loader/WebMainResourceLoader.m:
3561 (-[WebMainResourceLoader addData:allAtOnce:]):
3562 (-[WebMainResourceLoader didReceiveData:lengthReceived:allAtOnce:]):
3563 * Loader/WebNetscapePlugInStreamLoader.m:
3564 (-[WebNetscapePlugInStreamLoader didReceiveData:lengthReceived:allAtOnce:]):
3565 * Loader/WebSubresourceLoader.m:
3566 (-[WebSubresourceLoader didReceiveData:lengthReceived:allAtOnce:]):
3567 * WebKit.xcodeproj/project.pbxproj:
3568 * WebView/WebDataProtocol.h: Removed.
3569 * WebView/WebDataProtocol.m: Removed.
3571 2006-08-11 Tim Omernick <timo@apple.com>
3575 <http://bugs.webkit.org/show_bug.cgi?id=10111> - Menu flickers over Flash content
3576 <rdar://problem/3052546> Plugins don't work with z-index (overlapping elements, etc.)
3578 * Plugins/WebBaseNetscapePluginView.m:
3579 (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
3580 Don't just clip to the dirty region for "transparent" plug-ins -- do it for all plug-ins. This is a
3581 generally useful thing to do, as it prevents the plug-in from drawing over parts of the window that
3582 have already been drawn and are not expected to be redrawn in the same update.
3584 2006-08-11 Brady Eidson <beidson@apple.com>