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