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