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