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