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