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