1 2006-10-09 Brady Eidson <beidson@apple.com>
3 A *real* fake fix for the layouttest problem until the real fix
5 * Loader/WebFrameLoader.m:
6 (-[WebFrameLoader _notifyIconChanged:]):
8 2006-10-09 Brady Eidson <beidson@apple.com>
10 Quick layouttest fix until I make the real fix
12 * Loader/WebFrameLoader.m:
14 2006-10-09 Maciej Stachowiak <mjs@apple.com>
18 - wean WebFrameLoader from WebDataSource private stuff
20 (actually just tweaks tot he above to make merging my future
21 patches easier since Darin did a lot of the same stuff)
23 * Loader/WebDocumentLoader.h:
24 * Loader/WebDocumentLoader.m:
25 (-[WebDocumentLoader URLForHistory]):
26 * Loader/WebFrameLoader.m:
27 (-[WebFrameLoader _loadRequest:archive:]):
28 (-[WebFrameLoader revertToProvisionalWithDocumentLoader:]):
29 (-[WebFrameLoader documentLoader:setMainDocumentError:]):
30 (-[WebFrameLoader finalSetupForReplaceWithDocumentLoader:]):
31 (-[WebFrameLoader didChangeTitleForDocument:]):
32 (-[WebFrameLoader loadDocumentLoader:withLoadType:formState:]):
33 * Loader/WebFrameLoaderClient.h:
34 * WebView/WebDataSource.m:
35 (-[WebDataSource _URLForHistory]):
37 (-[WebFrame _addDocumentLoader:toUnarchiveState:]):
38 (-[WebFrame _revertToProvisionalStateForDocumentLoader:]):
39 (-[WebFrame _setMainDocumentError:forDocumentLoader:]):
40 (-[WebFrame _clearUnarchivingStateForLoader:]):
42 2006-10-09 Darin Adler <darin@apple.com>
46 - eliminated WebFrameLoader dependency on WebDataSourceInternal.h,
47 WebIconDatabasePrivate.h, and WebKitErrorsPrivate.h, along with
48 most but not all references to WebView
50 * Loader/WebFrameLoader.h:
51 * Loader/WebFrameLoader.m:
52 (-[WebFrameLoader removePlugInStreamLoader:]):
53 (-[WebFrameLoader _receivedMainResourceError:complete:]):
54 (-[WebFrameLoader _notifyIconChanged:]):
55 (-[WebFrameLoader cancelledErrorWithRequest:]):
56 (-[WebFrameLoader fileDoesNotExistErrorWithResponse:]):
57 (-[WebFrameLoader handleUnimplementablePolicyWithError:]):
58 (-[WebFrameLoader cannotShowMIMETypeWithResponse:]):
59 (-[WebFrameLoader interruptForPolicyChangeErrorWithRequest:]):
60 (-[WebFrameLoader _loadRequest:archive:]):
61 (-[WebFrameLoader finishedLoadingDocument:]):
62 (-[WebFrameLoader committedLoadWithDocumentLoader:data:]):
63 (-[WebFrameLoader revertToProvisionalWithDocumentLoader:]):
64 (-[WebFrameLoader documentLoader:setMainDocumentError:]):
65 (-[WebFrameLoader finalSetupForReplaceWithDocumentLoader:]):
66 (-[WebFrameLoader didChangeTitleForDocument:]):
67 (-[WebFrameLoader continueAfterNavigationPolicy:]):
68 (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
69 (-[WebFrameLoader loadDocumentLoader:withLoadType:formState:]):
70 (-[WebFrameLoader transitionToCommitted:]):
71 (-[WebFrameLoader checkLoadCompleteForThisFrame]):
72 (-[WebFrameLoader requestFromDelegateForRequest:identifier:error:]):
73 (-[WebFrameLoader addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
74 (-[WebFrameLoader checkLoadComplete]):
75 * Loader/WebFrameLoaderClient.h:
76 * Loader/WebMainResourceLoader.m:
77 (-[WebMainResourceLoader continueAfterContentPolicy:response:]):
79 (-[WebFrame _addDocumentLoader:toUnarchiveState:]):
80 (-[WebFrame _formDelegate]):
81 (-[WebFrame _finishedLoadingDocument:]):
82 (-[WebFrame _committedLoadWithDocumentLoader:data:]):
83 (-[WebFrame _revertToProvisionalWithDocumentLoader:]):
84 (-[WebFrame _documentLoader:setMainDocumentError:]):
85 (-[WebFrame _finalSetupForReplaceWithDocumentLoader:]):
86 (-[WebFrame _URLForHistoryForDocumentLoader:]):
87 (-[WebFrame _cancelledErrorWithRequest:]):
88 (-[WebFrame _cannotShowURLErrorWithRequest:]):
89 (-[WebFrame _interruptForPolicyChangeErrorWithRequest:]):
90 (-[WebFrame _cannotShowMIMETypeErrorWithResponse:]):
91 (-[WebFrame _fileDoesNotExistErrorWithResponse:]):
92 (-[WebFrame _shouldFallBackForError:]):
93 (-[WebFrame _hasWebView]):
94 (-[WebFrame _mainFrameURL]):
95 * WebView/WebFrameInternal.h:
97 2006-10-09 Maciej Stachowiak <mjs@apple.com>
99 Reviewed, landed, tweaked a bit by Darin.
101 - removed most uses of WebFrameBridge from WebFrameLoader
102 (WebCoreFrameBridge use is OK)
104 * Loader/WebDocumentLoader.m:
105 (-[WebDocumentLoader bridge]):
106 * Loader/WebFrameLoader.h:
107 * Loader/WebFrameLoader.m:
108 (-[WebFrameLoader initWithFrame:client:]):
109 (-[WebFrameLoader defersCallbacksChanged]):
110 (-[WebFrameLoader defersCallbacks]):
111 (-[WebFrameLoader provisionalLoadStarted]):
112 (-[WebFrameLoader stopLoadingSubframes]):
113 (-[WebFrameLoader _willSendRequest:forResource:redirectResponse:]):
114 (-[WebFrameLoader _receivedMainResourceError:complete:]):
115 (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
116 (-[WebFrameLoader continueFragmentScrollAfterNavigationPolicy:formState:]):
117 (-[WebFrameLoader closeOldDataSources]):
118 (-[WebFrameLoader commitProvisionalLoad:]):
119 (-[WebFrameLoader bridge]):
120 (-[WebFrameLoader _handleFallbackContent]):
121 (-[WebFrameLoader _finishedLoading]):
122 (-[WebFrameLoader reload]):
123 (-[WebFrameLoader checkNavigationPolicyForRequest:documentLoader:formState:andCall:withSelector:]):
124 (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
125 (-[WebFrameLoader transitionToCommitted:]):
126 (-[WebFrameLoader continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
127 (-[WebFrameLoader loadRequest:inFrameNamed:]):
128 (-[WebFrameLoader postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
129 (-[WebFrameLoader detachFromParent]):
130 (-[WebFrameLoader addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
131 (-[WebFrameLoader safeLoadURL:]):
132 (-[WebFrameLoader actionInformationForLoadType:isFormSubmission:event:originalURL:]):
133 * WebCoreSupport/WebFrameBridge.m:
134 (-[WebFrameBridge initMainFrameWithPage:frameName:view:]):
135 (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]):
136 * WebView/WebFrame.m:
137 (-[WebFrame _atMostOneFrameHasSelection]):
138 * WebView/WebFrameInternal.h:
140 2006-10-09 Darin Adler <darin@apple.com>
144 - removed almost all direct use of WebView from WebFrameLoader
146 * Loader/WebFrameLoader.m:
147 (-[WebFrameLoader defersCallbacksChanged]):
148 (-[WebFrameLoader defersCallbacks]):
149 (-[WebFrameLoader clearProvisionalLoad]):
150 (-[WebFrameLoader _willSendRequest:forResource:redirectResponse:]):
151 (-[WebFrameLoader _didReceiveResponse:forResource:]):
152 (-[WebFrameLoader _didReceiveData:contentLength:forResource:]):
153 (-[WebFrameLoader _didFinishLoadingForResource:]):
154 (-[WebFrameLoader _didFailLoadingWithError:forResource:]):
155 (-[WebFrameLoader closeOldDataSources]):
156 (-[WebFrameLoader _notifyIconChanged:]):
157 (-[WebFrameLoader prepareForLoadStart]):
158 (-[WebFrameLoader willChangeTitleForDocument:]):
159 (-[WebFrameLoader didChangeTitleForDocument:]):
160 (-[WebFrameLoader continueAfterNewWindowPolicy:]):
161 (-[WebFrameLoader continueAfterNavigationPolicy:]):
162 (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
163 (-[WebFrameLoader didFirstLayout]):
164 (-[WebFrameLoader transitionToCommitted:]):
165 (-[WebFrameLoader checkLoadCompleteForThisFrame]):
166 (-[WebFrameLoader addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
167 * Loader/WebFrameLoaderClient.h:
168 * WebKit.xcodeproj/project.pbxproj:
169 * WebView/WebFrame.m:
170 (-[WebFrame _currentBackForwardListItemToResetTo]):
171 (-[WebFrame _hasBackForwardList]):
172 (-[WebFrame _resetBackForwardList]):
173 (-[WebFrame _dispatchDidReceiveIcon:]):
174 (-[WebFrame _dispatchDidStartProvisionalLoadForFrame]):
175 (-[WebFrame _dispatchDidCommitLoadForFrame]):
176 (-[WebFrame _dispatchDidFailProvisionalLoadWithError:]):
177 (-[WebFrame _dispatchDidFailLoadWithError:]):
178 (-[WebFrame _dispatchDidFinishLoadForFrame]):
179 (-[WebFrame _progressStarted]):
180 (-[WebFrame _progressCompleted]):
181 (-[WebFrame _incrementProgressForIdentifier:response:]):
182 (-[WebFrame _incrementProgressForIdentifier:data:]):
183 (-[WebFrame _completeProgressForIdentifier:]):
184 (-[WebFrame _setMainFrameDocumentReady:]):
185 (-[WebFrame _willChangeTitleForDocument:]):
186 (-[WebFrame _didChangeTitleForDocument:]):
187 (-[WebFrame _startDownloadWithRequest:]):
189 2006-10-09 Maciej Stachowiak <mjs@apple.com>
194 - moved WebFormState into Loader directory and tweaked to avoid WebKit dependencies
196 * Loader/WebDocumentLoader.h:
197 * Loader/WebFormState.h: Added.
198 * Loader/WebFormState.m: Added.
199 (-[WebFormState initWithForm:values:sourceFrame:]):
200 (-[WebFormState dealloc]):
201 (-[WebFormState form]):
202 (-[WebFormState values]):
203 (-[WebFormState sourceFrame]):
204 * Loader/WebFrameLoader.h:
205 * Loader/WebFrameLoader.m:
206 (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
207 (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
208 (-[WebFrameLoader postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
209 * WebKit.xcodeproj/project.pbxproj:
210 * WebView/WebFrame.m:
211 * WebView/WebFrameInternal.h:
213 2006-10-09 Maciej Stachowiak <mjs@apple.com>
217 - remove dependency on WebNSURLRequestExtras.h
219 * Loader/WebFrameLoader.h:
220 * Loader/WebFrameLoader.m:
221 (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
222 (-[WebFrameLoader postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
223 (-[WebFrameLoader addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
225 2006-10-09 Maciej Stachowiak <mjs@apple.com>
229 - removed unneeded logging code so I can take WebKitLogging.h out and remove a WebKit dependency
231 * Loader/WebFrameLoader.m:
232 (-[WebFrameLoader setState:]):
233 (-[WebFrameLoader clientRedirectCancelledOrFinished:]):
234 (-[WebFrameLoader clientRedirectedTo:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
235 (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
236 (-[WebFrameLoader continueFragmentScrollAfterNavigationPolicy:formState:]):
237 (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
238 (-[WebFrameLoader checkLoadCompleteForThisFrame]):
240 2006-10-09 Maciej Stachowiak <mjs@apple.com>
244 - remove WebDataSource from the WebFrameLoader interface (and thereby from a lot of internal use)
246 * Loader/WebDocumentLoader.h:
247 * Loader/WebDocumentLoader.m:
248 (-[WebDocumentLoader dealloc]):
249 (-[WebDocumentLoader initialRequest]):
250 (-[WebDocumentLoader URL]):
251 (-[WebDocumentLoader unreachableURL]):
252 * Loader/WebFrameLoader.h:
253 * Loader/WebFrameLoader.m:
254 (-[WebFrameLoader setState:]):
255 (-[WebFrameLoader startLoading]):
256 (-[WebFrameLoader startProvisionalLoad:]):
257 (-[WebFrameLoader clientRedirectedTo:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
258 (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
259 (-[WebFrameLoader opened]):
260 (-[WebFrameLoader commitProvisionalLoad:]):
261 (-[WebFrameLoader initialRequest]):
262 (-[WebFrameLoader _finishedLoading]):
263 (-[WebFrameLoader _notifyIconChanged:]):
264 (-[WebFrameLoader _URL]):
265 (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
266 (-[WebFrameLoader _checkNavigationPolicyForRequest:andCall:withSelector:]):
267 (-[WebFrameLoader shouldReloadToHandleUnreachableURLFromRequest:]):
268 (-[WebFrameLoader _loadRequest:archive:]):
269 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
270 (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
271 (-[WebFrameLoader reload]):
272 (-[WebFrameLoader checkNavigationPolicyForRequest:documentLoader:formState:andCall:withSelector:]):
273 (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
274 (-[WebFrameLoader loadDocumentLoader:withLoadType:formState:]):
275 (-[WebFrameLoader frameLoadCompleted]):
276 (-[WebFrameLoader transitionToCommitted:]):
277 (-[WebFrameLoader checkLoadCompleteForThisFrame]):
278 (-[WebFrameLoader safeLoadURL:]):
279 * Loader/WebFrameLoaderClient.h:
280 * Plugins/WebBaseNetscapePluginView.m:
281 (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]):
282 * WebCoreSupport/WebFrameBridge.m:
283 (-[WebFrameBridge originalRequestURL]):
284 * WebView/WebDataSource.m:
285 (-[WebDataSource _URL]):
286 (-[WebDataSource dealloc]):
287 (-[WebDataSource initialRequest]):
288 (-[WebDataSource unreachableURL]):
289 * WebView/WebFrame.m:
290 (-[WebFrame _loadItem:withLoadType:]):
291 (-[WebFrame _prepareForDataSourceReplacement]):
292 (-[WebFrame provisionalDataSource]):
293 (-[WebFrame dataSource]):
294 (-[WebFrame _makeDocumentView]):
295 (-[WebFrame _updateHistoryForReload]):
296 (-[WebFrame _updateHistoryForStandardLoad]):
297 (-[WebFrame _updateHistoryForInternalLoad]):
298 (-[WebFrame _forceLayoutForNonHTML]):
299 (-[WebFrame _clearLoadingFromPageCacheForDocumentLoader:]):
300 (-[WebFrame _isDocumentLoaderLoadingFromPageCache:]):
301 (-[WebFrame _archivedSubresourceForURL:fromDocumentLoader:]):
302 (-[WebFrame _makeRepresentationForDocumentLoader:]):
304 2006-10-09 Maciej Stachowiak <mjs@apple.com>
308 - removed need for WebFrameLoader to now about WebDocumentLoaderMac
310 * Loader/WebFrameLoader.m:
311 (-[WebFrameLoader loadDataSource:withLoadType:formState:]):
312 * WebView/WebDocumentLoaderMac.h:
313 * WebView/WebDocumentLoaderMac.m:
314 (-[WebDocumentLoaderMac setFrameLoader:]):
315 (-[WebDocumentLoaderMac detachFromFrameLoader]):
317 2006-10-09 Darin Adler <darin@apple.com>
321 - passed calls that require WebScriptDebugServer across the client interface
323 * Loader/WebFrameLoader.m:
324 (-[WebFrameLoader _finishedLoading]):
325 (-[WebFrameLoader documentLoader:mainReceivedCompleteError:]):
326 * Loader/WebFrameLoaderClient.h:
327 * WebView/WebFrame.m:
328 (-[WebFrame _dispatchDidLoadMainResourceForDocumentLoader:]):
330 2006-10-08 Darin Adler <darin@apple.com>
334 - passed calls that require WebHTMLView or WebFrameView calls across
337 * Loader/WebFrameLoader.h:
338 * Loader/WebFrameLoader.m:
339 (isCaseInsensitiveEqual):
340 (isBackForwardLoadType):
341 (-[WebFrameLoader opened]):
342 (-[WebFrameLoader cancelledErrorWithRequest:]):
343 (-[WebFrameLoader fileDoesNotExistErrorWithResponse:]):
344 (-[WebFrameLoader reload]):
345 (-[WebFrameLoader transitionToCommitted:]):
346 * Loader/WebFrameLoaderClient.h:
347 * WebView/WebFrame.m:
348 (-[WebFrame _forceLayout]):
349 (-[WebFrame _setDocumentViewFromPageCache:]):
350 (-[WebFrame _setCopiesOnScroll]):
352 2006-10-08 Maciej Stachowiak <mjs@apple.com>
356 - pass remaining delegate methods across client interface
358 * Loader/WebFrameLoader.m:
359 (-[WebFrameLoader _checkContentPolicyForMIMEType:andCall:withSelector:]):
360 (-[WebFrameLoader checkNewWindowPolicyForRequest:action:frameName:formState:andCall:withSelector:]):
361 (-[WebFrameLoader checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
362 (-[WebFrameLoader handleUnimplementablePolicyWithErrorCode:forURL:]):
363 (-[WebFrameLoader didFirstLayout]):
364 (-[WebFrameLoader continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
365 * Loader/WebFrameLoaderClient.h:
366 * WebView/WebFrame.m:
367 (-[WebFrame _dispatchDidFirstLayoutInFrame]):
368 (-[WebFrame _dispatchCreateWebViewWithRequest:]):
369 (-[WebFrame _dispatchShow]):
370 (-[WebFrame _dispatchDecidePolicyForMIMEType:request:decisionListener:]):
371 (-[WebFrame _dispatchDecidePolicyForNewWindowAction:request:newFrameName:decisionListener:]):
372 (-[WebFrame _dispatchDecidePolicyForNavigationAction:request:decisionListener:]):
373 (-[WebFrame _dispatchUnableToImplementPolicyWithError:]):
375 2006-10-08 Darin Adler <darin@apple.com>
379 - use WebCoreSystemInterface instead of WebSystemInterface in Loader directory
381 * Loader/WebFrameLoader.m: Update includes.
382 (-[WebFrameLoader commitProvisionalLoad:]): Use wk calls istead of WK.
383 (-[WebFrameLoader _canUseResourceWithResponse:]): Ditto.
385 * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface):
386 Added the three new symbols, and resorted the list.
388 * Loader/WebDataProtocol.m:
389 * Loader/WebLoader.m:
390 * Loader/WebMainResourceLoader.h:
391 * Loader/WebMainResourceLoader.m:
392 * Loader/WebNetscapePlugInStreamLoader.h:
393 * Loader/WebNetscapePlugInStreamLoader.m:
394 * Loader/WebSubresourceLoader.h:
395 * Loader/WebSubresourceLoader.m:
396 Changed import statements to consistently use the "" format.
398 2006-10-08 Maciej Stachowiak <mjs@apple.com>
402 - fix accidental build break due to editing while committing
404 * Loader/WebFrameLoader.m:
406 2006-10-08 Maciej Stachowiak <mjs@apple.com>
410 - move all WebFrameLoadDelegate methods across client interface
412 * Loader/WebFrameLoader.m:
413 (-[WebFrameLoader clientRedirectCancelledOrFinished:]):
414 (-[WebFrameLoader clientRedirectedTo:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
415 (-[WebFrameLoader continueFragmentScrollAfterNavigationPolicy:formState:]):
416 (-[WebFrameLoader closeOldDataSources]):
417 (-[WebFrameLoader _notifyIconChanged:]):
418 (-[WebFrameLoader prepareForLoadStart]):
419 (-[WebFrameLoader didChangeTitleForDocument:]):
420 (-[WebFrameLoader transitionToCommitted:]):
421 (-[WebFrameLoader checkLoadCompleteForThisFrame]):
422 * Loader/WebFrameLoaderClient.h:
423 * WebView/WebFrame.m:
424 (-[WebFrame _dispatchDidCancelClientRedirectForFrame]):
425 (-[WebFrame _dispatchWillPerformClientRedirectToURL:delay:fireDate:]):
426 (-[WebFrame _dispatchDidChangeLocationWithinPageForFrame]):
427 (-[WebFrame _dispatchWillCloseFrame]):
428 (-[WebFrame _dispatchDidReceiveIcon:]):
429 (-[WebFrame _dispatchDidStartProvisionalLoadForFrame]):
430 (-[WebFrame _dispatchDidReceiveTitle:]):
431 (-[WebFrame _dispatchDidCommitLoadForFrame]):
432 (-[WebFrame _dispatchDidFailProvisionalLoadWithError:]):
433 (-[WebFrame _dispatchDidFailLoadWithError:]):
434 (-[WebFrame _dispatchDidFinishLoadForFrame]):
436 2006-10-08 Darin Adler <darin@apple.com>
440 - removed some of the WebKit dependencies in WebFrameLoader
442 * Loader/WebFrameLoader.m:
443 (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
444 (-[WebFrameLoader _downloadWithLoadingConnection:request:response:proxy:]):
445 (-[WebFrameLoader reload]):
446 (-[WebFrameLoader didChangeTitleForDocument:]):
447 * Loader/WebFrameLoaderClient.h:
448 * WebView/WebFrame.m:
449 (-[WebFrame _loadItem:withLoadType:]):
450 (-[WebFrame _loadURL:referrer:intoChild:]):
451 (-[WebFrame _setTitle:forURL:]):
452 (-[WebFrame _downloadWithLoadingConnection:request:response:proxy:]):
453 * WebView/WebFrameInternal.h:
457 * Misc/WebNSURLRequestExtras.m:
458 (-[NSMutableURLRequest _web_setHTTPReferrer:]):
459 (-[NSMutableURLRequest _web_setHTTPUserAgent:]):
461 2006-10-08 Maciej Stachowiak <mjs@apple.com>
465 - pass all WebResourceLoadDelegate methods across client, removing need to include related headers
467 * Loader/WebFrameLoader.m:
468 (-[WebFrameLoader _willSendRequest:forResource:redirectResponse:]):
469 (-[WebFrameLoader _didReceiveAuthenticationChallenge:forResource:]):
470 (-[WebFrameLoader _didCancelAuthenticationChallenge:forResource:]):
471 (-[WebFrameLoader _didReceiveResponse:forResource:]):
472 (-[WebFrameLoader _didReceiveData:contentLength:forResource:]):
473 (-[WebFrameLoader _didFinishLoadingForResource:]):
474 (-[WebFrameLoader _didFailLoadingWithError:forResource:]):
475 (-[WebFrameLoader sendRemainingDelegateMessagesWithIdentifier:response:length:error:]):
476 (-[WebFrameLoader requestFromDelegateForRequest:identifier:error:]):
477 * Loader/WebFrameLoaderClient.h:
478 * WebView/WebFrame.m:
479 (-[WebFrame _dispatchDidHandleOnloadEventsForFrame]):
480 (-[WebFrame _dispatchDidReceiveServerRedirectForProvisionalLoadForFrame]):
481 (-[WebFrame _dispatchIdentifierForInitialRequest:fromDocumentLoader:]):
482 (-[WebFrame _dispatchResource:willSendRequest:redirectResponse:fromDocumentLoader:]):
483 (-[WebFrame _dispatchDidReceiveAuthenticationChallenge:forResource:fromDocumentLoader:]):
484 (-[WebFrame _dispatchDidCancelAuthenticationChallenge:forResource:fromDocumentLoader:]):
485 (-[WebFrame _dispatchResource:didReceiveResponse:fromDocumentLoader:]):
486 (-[WebFrame _dispatchResource:didReceiveContentLength:fromDocumentLoader:]):
487 (-[WebFrame _dispatchResource:didFinishLoadingFromDocumentLoader:]):
488 (-[WebFrame _dispatchResource:didFailLoadingWithError:fromDocumentLoader:]):
490 2006-10-08 Maciej Stachowiak <mjs@apple.com>
494 - started adding some _dispatch methods to WebFrameLoaderClient for delegate dispatch
496 * Loader/WebFrameLoader.m:
497 (-[WebFrameLoader startLoading]):
498 (-[WebFrameLoader didReceiveServerRedirectForProvisionalLoadForFrame]):
499 * Loader/WebFrameLoaderClient.h:
500 * WebCoreSupport/WebFrameBridge.m:
501 (-[WebFrameBridge handledOnloadEvents]):
502 * WebView/WebFrame.m:
504 (-[WebFrame _dataSourceForDocumentLoader:]):
505 (-[WebFrame _dispatchDidHandleOnloadEventsForFrame]):
506 (-[WebFrame _dispatchDidReceiveServerRedirectForProvisionalLoadForFrame]):
507 (-[WebFrame _dispatchIdentifierForInitialRequest:fromDocumentLoader:]):
508 * WebView/WebFrameInternal.h:
510 2006-10-08 Darin Adler <darin@apple.com>
514 - moved more methods to WebFrameLoader from WebFrame
516 * Loader/WebFrameLoader.h:
517 * Loader/WebFrameLoader.m:
518 (-[WebFrameLoader defersCallbacksChanged]):
519 (-[WebFrameLoader startLoadingMainResourceWithRequest:identifier:]):
520 (-[WebFrameLoader setState:]):
521 (-[WebFrameLoader clearProvisionalLoad]):
522 (-[WebFrameLoader markLoadComplete]):
523 (-[WebFrameLoader commitProvisionalLoad]):
524 (-[WebFrameLoader stopLoading]):
525 (-[WebFrameLoader startProvisionalLoad:]):
526 (-[WebFrameLoader setupForReplace]):
527 (-[WebFrameLoader _identifierForInitialRequest:]):
528 (-[WebFrameLoader _finishedLoadingResource]):
529 (-[WebFrameLoader _receivedError:]):
530 (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
531 (-[WebFrameLoader continueFragmentScrollAfterNavigationPolicy:formState:]):
532 (-[WebFrameLoader opened]):
533 (-[WebFrameLoader commitProvisionalLoad:]):
534 (-[WebFrameLoader _finishedLoading]):
535 (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
536 (-[WebFrameLoader _loadRequest:archive:]):
537 (-[WebFrameLoader reload]):
538 (-[WebFrameLoader documentLoader:mainReceivedCompleteError:]):
539 (-[WebFrameLoader subframeIsLoading]):
540 (-[WebFrameLoader checkNewWindowPolicyForRequest:action:frameName:formState:andCall:withSelector:]):
541 (-[WebFrameLoader continueAfterNewWindowPolicy:]):
542 (-[WebFrameLoader checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
543 (-[WebFrameLoader sendRemainingDelegateMessagesWithIdentifier:response:length:error:]):
544 (-[WebFrameLoader loadRequest:inFrameNamed:]):
545 (-[WebFrameLoader postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
546 (-[WebFrameLoader detachChildren]):
547 (-[WebFrameLoader detachFromParent]):
548 (-[WebFrameLoader addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
549 (-[WebFrameLoader safeLoadURL:]):
550 (-[WebFrameLoader actionInformationForLoadType:isFormSubmission:event:originalURL:]):
551 (-[WebFrameLoader actionInformationForNavigationType:event:originalURL:]):
552 (-[WebFrameLoader checkLoadComplete]):
553 * Loader/WebFrameLoaderClient.h:
554 * Loader/WebSubresourceLoader.m:
555 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
556 * WebCoreSupport/WebFrameBridge.m:
557 (-[WebFrameBridge close]):
558 (-[WebFrameBridge tokenizerProcessedData]):
559 (-[WebFrameBridge frameDetached]):
560 * WebView/WebDataSourceInternal.h:
561 * WebView/WebFrame.m:
562 (-[WebFrame _loadItem:withLoadType:]):
563 (-[WebFrame _prepareForDataSourceReplacement]):
564 (-[WebFrame _detachedFromParent1]):
565 (-[WebFrame _detachedFromParent2]):
566 (-[WebFrame _detachedFromParent3]):
567 (-[WebFrame _detachedFromParent4]):
568 (-[WebFrame _updateHistoryAfterClientRedirect]):
569 (-[WebFrame _loadedFromPageCache]):
570 * WebView/WebFrameInternal.h:
571 * WebView/WebPDFView.m:
572 (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
575 (-[WebView setDefersCallbacks:]):
577 2006-10-08 Maciej Stachowiak <mjs@apple.com>
581 - avoid need for WebKitSystemInterface in loader code, via WebCore cover for wkSupportsMultipartXMixedReplace
583 * Loader/WebDocumentLoader.m:
584 (-[WebDocumentLoader initWithRequest:]):
585 * Loader/WebMainResourceLoader.m:
586 * Loader/WebSubresourceLoader.m:
587 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
588 * WebCoreSupport/WebSystemInterface.m:
589 (InitWebCoreSystemInterface):
590 * WebView/WebDataSource.m:
591 (-[WebDataSource _initWithDocumentLoader:]):
593 2006-10-08 Darin Adler <darin@apple.com>
595 - build fix (also a fix for a crasher I forgot to commit before)
597 * Loader/WebFrameLoader.m: Added some missing includes.
598 (-[WebFrameLoader checkLoadCompleteForThisFrame]):
599 Added a needed retain/release.
601 2006-10-08 Darin Adler <darin@apple.com>
605 - quick fix to loader problem causing layout test failures
607 * Loader/WebFrameLoader.m:
608 (-[WebFrameLoader _finishedLoading]): Use a local variable for the bridge
609 that we retain/release.
610 (-[WebFrameLoader continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
613 2006-10-08 Maciej Stachowiak <mjs@apple.com>
617 - removed a few includes from WebFrameLoader, fixed up as appropriate
618 - segregated header includes into ones that need to go away to move the code and ones that don't
620 * Loader/WebFrameLoader.m:
621 (-[WebFrameLoader _privateBrowsingEnabled]):
622 (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
623 * Loader/WebFrameLoaderClient.h:
624 * WebView/WebFrame.m:
625 (-[WebFrame _privateBrowsingEnabled]):
627 2006-10-08 Darin Adler <darin@apple.com>
631 - moved a few methods from WebFrame to WebFrameLoader
633 * Loader/WebFrameLoader.h:
634 * Loader/WebFrameLoader.m:
635 (-[WebFrameLoader _setState:]):
636 (-[WebFrameLoader stopLoadingSubframes]):
637 (-[WebFrameLoader _receivedMainResourceError:complete:]):
638 (-[WebFrameLoader closeOldDataSources]):
639 (-[WebFrameLoader commitProvisionalLoad:]):
640 (-[WebFrameLoader _finishedLoading]):
641 (isBackForwardLoadType):
642 (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
643 (-[WebFrameLoader didFirstLayout]):
644 (-[WebFrameLoader frameLoadCompleted]):
645 (-[WebFrameLoader transitionToCommitted:]):
646 (-[WebFrameLoader checkLoadCompleteForThisFrame]):
647 (-[WebFrameLoader continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
648 (-[WebFrameLoader sendRemainingDelegateMessagesWithIdentifier:response:length:error:]):
649 (-[WebFrameLoader requestFromDelegateForRequest:identifier:error:]):
650 (-[WebFrameLoader loadRequest:inFrameNamed:]):
651 (-[WebFrameLoader postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
652 * Loader/WebFrameLoaderClient.h:
653 * Plugins/WebPluginController.m:
654 (-[WebPluginController webPlugInContainerLoadRequest:inFrame:]):
655 * WebCoreSupport/WebFrameBridge.h:
656 * WebCoreSupport/WebFrameBridge.m:
657 (-[WebFrameBridge initMainFrameWithPage:frameName:view:]):
658 (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]):
659 (-[WebFrameBridge dealloc]):
660 (-[WebFrameBridge frameLoader]):
661 (-[WebFrameBridge setTitle:]):
662 (-[WebFrameBridge receivedData:textEncodingName:]):
663 (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
664 (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
665 (-[WebFrameBridge objectLoadedFromCacheWithURL:response:data:]):
666 (-[WebFrameBridge syncLoadResourceWithMethod:URL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
667 (-[WebFrameBridge reportClientRedirectToURL:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
668 (-[WebFrameBridge reportClientRedirectCancelled:]):
669 (-[WebFrameBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]):
670 (-[WebFrameBridge postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
671 (-[WebFrameBridge didFirstLayout]):
672 (-[WebFrameBridge notifyIconChanged:]):
673 (-[WebFrameBridge originalRequestURL]):
674 (-[WebFrameBridge isLoadTypeReload]):
675 * WebView/WebFrame.m:
676 (-[WebFrame _opened]):
677 (-[WebFrame _checkLoadComplete]):
678 (-[WebFrame _loadItem:withLoadType:]):
679 (-[WebFrame _actionInformationForLoadType:isFormSubmission:event:originalURL:]):
680 (-[WebFrame _loadURL:referrer:intoChild:]):
681 (-[WebFrame _currentBackForwardListItemToResetTo]):
682 (-[WebFrame _updateBackground]):
683 (-[WebFrame _frameLoader]):
684 (-[WebFrame _frameLoadCompleted]):
685 (-[WebFrame _makeDocumentView]):
686 (-[WebFrame _updateHistoryForCommit]):
687 (-[WebFrame _updateHistoryForReload]):
688 (-[WebFrame _updateHistoryForStandardLoad]):
689 (-[WebFrame _updateHistoryForBackForwardNavigation]):
690 (-[WebFrame _updateHistoryForInternalLoad]):
691 (-[WebFrame _tokenForLoadErrorReset]):
692 (-[WebFrame _resetAfterLoadError:]):
693 (-[WebFrame _doNotResetAfterLoadError:]):
694 * WebView/WebFrameInternal.h:
696 2006-10-09 Mark Rowe <bdash@webkit.org>
698 Rubber-stamped by Darin.
700 * WebCoreSupport/WebFrameBridge.m:
701 (-[WebFrameBridge imageTitleForFilename:size:]): Revert accidental change to a UI_STRING that
702 is triggering an assertion failure.
704 2006-10-08 Maciej Stachowiak <mjs@apple.com>
708 - remove unneeded non-Loader header includes from WebFrameLoader.h (split WebFrameLoadType into
709 two coincidentally matching enums)
711 * Loader/WebFrameLoader.h:
712 * Loader/WebFrameLoader.m:
713 (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
714 (-[WebFrameLoader commitProvisionalLoad:]):
715 (isBackForwardLoadType):
716 (-[WebFrameLoader _loadRequest:archive:]):
717 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
718 (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
719 (-[WebFrameLoader reload]):
720 (-[WebFrameLoader isReplacing]):
721 (-[WebFrameLoader setReplacing]):
722 (-[WebFrameLoader loadType]):
723 (-[WebFrameLoader setLoadType:]):
724 (-[WebFrameLoader checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
725 (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
726 (-[WebFrameLoader loadDataSource:withLoadType:formState:]):
727 (-[WebFrameLoader didFirstLayout]):
728 * WebCoreSupport/WebFrameBridge.m:
729 * WebView/WebFrame.m:
730 (-[WebFrame _transitionToCommitted:]):
731 (-[WebFrame _provisionalLoadStarted]):
732 (-[WebFrame _opened]):
733 (-[WebFrame _checkLoadCompleteForThisFrame]):
734 (-[WebFrame _loadItem:withLoadType:]):
735 (-[WebFrame _recursiveGoToItem:fromItem:withLoadType:]):
736 (-[WebFrame _goToItem:withLoadType:]):
737 (-[WebFrame _actionInformationForLoadType:isFormSubmission:event:originalURL:]):
738 (-[WebFrame _continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
739 (-[WebFrame _loadURL:referrer:intoChild:]):
740 (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
741 (-[WebFrame _currentBackForwardListItemToResetTo]):
742 (-[WebFrame _itemForRestoringDocState]):
743 (-[WebFrame _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
744 (-[WebFrame _loadType]):
745 (-[WebFrame loadRequest:]):
746 * WebView/WebFrameInternal.h:
749 2006-10-08 Darin Adler <darin@apple.com>
753 - move WebFrameLoader creation and ownership from WebFrame to WebFrameBridge
755 * Loader/WebFrameLoader.m:
756 (-[WebFrameLoader stopLoadingSubframes]):
757 (-[WebFrameLoader closeOldDataSources]):
758 * WebCoreSupport/WebFrameBridge.h:
759 * WebCoreSupport/WebFrameBridge.m:
760 (-[WebFrameBridge initMainFrameWithPage:frameName:view:]):
761 (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]):
762 (-[WebFrameBridge dealloc]):
763 (-[WebFrameBridge loader]):
764 (-[WebFrameBridge setTitle:]):
765 (-[WebFrameBridge receivedData:textEncodingName:]):
766 (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
767 (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
768 (-[WebFrameBridge reportClientRedirectToURL:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
769 (-[WebFrameBridge reportClientRedirectCancelled:]):
770 (-[WebFrameBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]):
771 (-[WebFrameBridge didFirstLayout]):
772 (-[WebFrameBridge imageTitleForFilename:size:]):
773 (-[WebFrameBridge notifyIconChanged:]):
774 (-[WebFrameBridge originalRequestURL]):
775 (-[WebFrameBridge isLoadTypeReload]):
776 * WebView/WebFrame.m:
777 (-[NSView setWebFrame::]):
778 (-[WebFramePrivate dealloc]):
779 (-[WebFramePrivate setWebFrameView:]):
780 (-[WebFramePrivate setProvisionalItem:]):
781 (-[WebFrame _webDataRequestForData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
782 (-[WebFrame _createItem:]):
783 (-[WebFrame _createItemTreeWithTargetFrame:clippedAtTarget:]):
784 (-[WebFrame _detachFromParent]):
785 (-[WebFrame _makeDocumentView]):
786 (-[WebFrame _transitionToCommitted:]):
787 (-[WebFrame _provisionalLoadStarted]):
788 (-[WebFrame _opened]):
789 (-[WebFrame _checkLoadCompleteForThisFrame]):
790 (-[WebFrame _loadItem:withLoadType:]):
791 (-[WebFrame _recursiveGoToItem:fromItem:withLoadType:]):
792 (-[WebFrame _continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
793 (-[WebFrame _loadURL:referrer:intoChild:]):
794 (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
795 (-[WebFrame _setTitle:]):
796 (-[WebFrame _defersCallbacksChanged]):
797 (-[WebFrame _currentBackForwardListItemToResetTo]):
798 (-[WebFrame _itemForSavingDocState]):
799 (-[WebFrame _itemForRestoringDocState]):
800 (-[WebFrame _saveDocumentAndScrollState]):
801 (-[WebFrame _shouldTreatURLAsSameAsCurrent:]):
802 (-[WebFrame _loadRequest:inFrameNamed:]):
803 (-[WebFrame _initWithWebFrameView:webView:bridge:]):
804 (-[WebFrame _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
805 (-[WebFrame _frameLoader]):
806 (-[WebFrame _prepareForDataSourceReplacement]):
807 (-[WebFrame _restoreScrollPositionAndViewState]):
808 (-[WebFrame _firstLayoutDone]):
809 (-[WebFrame _loadType]):
810 (-[WebFrame frameView]):
811 (-[WebFrame provisionalDataSource]):
812 (-[WebFrame dataSource]):
813 (-[WebFrame loadRequest:]):
814 (-[WebFrame loadArchive:]):
815 (-[WebFrame stopLoading]):
816 (-[WebFrame reload]):
817 (-[WebFrame _resetBackForwardList]):
818 (-[WebFrame _invalidateCurrentItemPageCache]):
819 (-[WebFrame _provisionalItemIsTarget]):
820 (-[WebFrame _loadProvisionalItemFromPageCache]):
821 * WebView/WebFrameInternal.h:
823 2006-10-08 Maciej Stachowiak <mjs@apple.com>
827 - move remaining movable data fields from WebFrameLoader to WebFrame
829 * Loader/WebDocumentLoadState.m:
830 (-[WebDocumentLoadState commitIfReady]):
831 * Loader/WebFrameLoader.h:
832 * Loader/WebFrameLoader.m:
833 (-[WebFrameLoader provisionalLoadStarted]):
834 (-[WebFrameLoader _setState:]):
835 (-[WebFrameLoader stopLoadingSubframes]):
836 (-[WebFrameLoader stopLoading]):
837 (-[WebFrameLoader startLoading]):
838 (-[WebFrameLoader _receivedMainResourceError:complete:]):
839 (-[WebFrameLoader clientRedirectCancelledOrFinished:]):
840 (-[WebFrameLoader clientRedirectedTo:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
841 (-[WebFrameLoader shouldReloadForCurrent:andDestination:]):
842 (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
843 (-[WebFrameLoader continueFragmentScrollAfterNavigationPolicy:formState:]):
844 (-[WebFrameLoader closeOldDataSources]):
845 (-[WebFrameLoader commitProvisionalLoad:]):
846 (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
847 (-[WebFrameLoader isQuickRedirectComing]):
848 * Loader/WebFrameLoaderClient.h:
849 * WebCoreSupport/WebFrameBridge.h:
850 * WebCoreSupport/WebFrameBridge.m:
851 (-[WebFrameBridge frameLoader]):
852 (-[WebFrameBridge setTitle:]):
853 (-[WebFrameBridge reportClientRedirectToURL:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
854 (-[WebFrameBridge reportClientRedirectCancelled:]):
855 (-[WebFrameBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]):
856 * WebView/WebDataSource.m:
857 (-[WebDataSource _loadFromPageCache:]):
858 * WebView/WebFrame.m:
859 (-[NSView setWebFrame::]):
860 (-[WebFrame _addHistoryItemForFragmentScroll]):
861 (-[WebFrame _didFinishLoad]):
862 (-[WebFrame _provisionalLoadStarted]):
863 (-[WebFrame _checkLoadCompleteForThisFrame]):
864 (-[WebFrame _loadItem:withLoadType:]):
865 (-[WebFrame _loadURL:referrer:intoChild:]):
866 (-[WebFrame _frameLoadCompleted]):
867 (-[WebFrame stopLoading]):
868 (-[WebFrame _invalidateCurrentItemPageCache]):
869 * WebView/WebFrameInternal.h:
871 2006-10-08 Darin Adler <darin@apple.com>
873 Rubber stamped by Maciej.
875 - changed "document load state" to "document loader"
877 * Loader/WebDocumentLoadState.h: Removed.
878 * Loader/WebDocumentLoadState.m: Removed.
879 * Loader/WebDocumentLoader.h: Added.
880 * Loader/WebDocumentLoader.m: Added.
881 (-[WebDocumentLoader setMainDocumentError:]):
882 (-[WebDocumentLoader mainReceivedError:complete:]):
883 (-[WebDocumentLoader finishedLoading]):
884 (-[WebDocumentLoader commitLoadWithData:]):
885 (-[WebDocumentLoader setupForReplaceByMIMEType:]):
886 (-[WebDocumentLoader updateLoading]):
887 (-[WebDocumentLoader setTitle:]):
888 * Loader/WebFrameLoader.h:
889 * Loader/WebFrameLoader.m:
890 (-[WebFrameLoader dealloc]):
891 (-[WebFrameLoader activeDocumentLoader]):
892 (-[WebFrameLoader activeDataSource]):
893 (-[WebFrameLoader addPlugInStreamLoader:]):
894 (-[WebFrameLoader removePlugInStreamLoader:]):
895 (-[WebFrameLoader addSubresourceLoader:]):
896 (-[WebFrameLoader removeSubresourceLoader:]):
897 (-[WebFrameLoader dataSource]):
898 (-[WebFrameLoader setDocumentLoader:]):
899 (-[WebFrameLoader documentLoader]):
900 (-[WebFrameLoader policyDataSource]):
901 (-[WebFrameLoader setPolicyDocumentLoader:]):
902 (-[WebFrameLoader clearDataSource]):
903 (-[WebFrameLoader provisionalDataSource]):
904 (-[WebFrameLoader provisionalDocumentLoader]):
905 (-[WebFrameLoader setProvisionalDocumentLoader:]):
906 (-[WebFrameLoader _clearProvisionalDataSource]):
907 (-[WebFrameLoader _setState:]):
908 (-[WebFrameLoader clearProvisionalLoad]):
909 (-[WebFrameLoader commitProvisionalLoad]):
910 (-[WebFrameLoader stopLoading]):
911 (-[WebFrameLoader startLoading]):
912 (-[WebFrameLoader startProvisionalLoad:]):
913 (-[WebFrameLoader setupForReplace]):
914 (-[WebFrameLoader _didReceiveResponse:forResource:]):
915 (-[WebFrameLoader _originalRequest]):
916 (-[WebFrameLoader _receivedMainResourceError:complete:]):
917 (-[WebFrameLoader _receivedData:]):
918 (-[WebFrameLoader _setRequest:]):
919 (-[WebFrameLoader _isStopping]):
920 (-[WebFrameLoader _setupForReplaceByMIMEType:]):
921 (-[WebFrameLoader _setResponse:]):
922 (-[WebFrameLoader _mainReceivedError:complete:]):
923 (-[WebFrameLoader _finishedLoading]):
924 (-[WebFrameLoader _checkContentPolicyForMIMEType:andCall:withSelector:]):
925 (-[WebFrameLoader _loadRequest:archive:]):
926 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
927 (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
928 (-[WebFrameLoader reload]):
929 (-[WebFrameLoader finishedLoadingDocument:]):
930 (-[WebFrameLoader committedLoadWithDocumentLoader:data:]):
931 (-[WebFrameLoader revertToProvisionalWithDocumentLoader:]):
932 (-[WebFrameLoader documentLoader:setMainDocumentError:]):
933 (-[WebFrameLoader documentLoader:mainReceivedCompleteError:]):
934 (-[WebFrameLoader finalSetupForReplaceWithDocumentLoader:]):
935 (-[WebFrameLoader willChangeTitleForDocument:]):
936 (-[WebFrameLoader didChangeTitleForDocument:]):
937 (-[WebFrameLoader checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
938 (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
939 (-[WebFrameLoader loadDataSource:withLoadType:formState:]):
940 * Plugins/WebPluginController.m:
941 (-[WebPluginController pluginView:receivedResponse:]):
942 * WebCoreSupport/WebFrameBridge.m:
943 (-[WebFrameBridge setTitle:]):
944 (-[WebFrameBridge receivedData:textEncodingName:]):
945 * WebKit.xcodeproj/project.pbxproj:
946 * WebView/WebDataSource.m:
947 (-[WebDataSourcePrivate dealloc]):
948 (-[WebDataSource _mainDocumentError]):
949 (-[WebDataSource _loadFromPageCache:]):
950 (-[WebDataSource _bridge]):
951 (-[WebDataSource _webView]):
952 (-[WebDataSource _URLForHistory]):
953 (-[WebDataSource _documentLoader]):
954 (-[WebDataSource _initWithDocumentLoader:]):
955 (-[WebDataSource initWithRequest:]):
956 (-[WebDataSource dealloc]):
957 (-[WebDataSource data]):
958 (-[WebDataSource webFrame]):
959 (-[WebDataSource initialRequest]):
960 (-[WebDataSource request]):
961 (-[WebDataSource response]):
962 (-[WebDataSource textEncodingName]):
963 (-[WebDataSource isLoading]):
964 (-[WebDataSource unreachableURL]):
965 (-[WebDataSource webArchive]):
966 * WebView/WebDataSourceInternal.h:
967 * WebView/WebDocumentLoadStateMac.h: Removed.
968 * WebView/WebDocumentLoadStateMac.m: Removed.
969 * WebView/WebDocumentLoaderMac.h: Added.
970 * WebView/WebDocumentLoaderMac.m: Added.
971 * WebView/WebFrame.m:
972 (-[WebFrame _createItem:]):
973 (-[WebFrame _receivedMainResourceError:]):
974 (-[WebFrame _transitionToCommitted:]):
975 (-[WebFrame _opened]):
976 (-[WebFrame _checkLoadCompleteForThisFrame]):
977 (-[WebFrame _loadItem:withLoadType:]):
978 (-[WebFrame _continueFragmentScrollAfterNavigationPolicy:formState:]):
979 (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
980 (-[WebFrame _addChild:]):
981 (-[WebFrame _provisionalLoadStarted]):
982 (-[WebFrame _dataSourceForDocumentLoader:]):
983 (-[WebFrame _createDocumentLoaderWithRequest:]):
984 * WebView/WebFrameInternal.h:
985 * WebView/WebHTMLRepresentation.m:
986 (-[WebHTMLRepresentation title]):
988 (-[WebView _mainFrameOverrideEncoding]):
990 2006-10-08 Darin Adler <darin@apple.com>
994 - fix http://bugs.webkit.org/show_bug.cgi?id=11218
995 REGRESSION: Assertion failure in WebFrameLoader when going back from a file: or data: URL
997 Also added a helper function in WebFrameLoader so that checks for back/forward load types
1000 * Loader/WebFrameLoader.m:
1001 (-[WebFrameLoader _setPolicyDocumentLoadState:]): Fixed line of code that was setting the load
1002 state to nil instead of the passed-in object.
1003 (isBackForwardLoadType): Added.
1004 (-[WebFrameLoader shouldReloadToHandleUnreachableURLFromRequest:]): Use isBackForwardLoadType.
1005 (-[WebFrameLoader checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
1007 (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]): Ditto.
1009 2006-10-08 Darin Adler <darin@apple.com>
1013 - fix two recently introduced leaks: one of an NSString, the other of a WebDataSource
1015 * Loader/WebDocumentLoadState.m: (-[WebDocumentLoadState setTitle:]):
1016 Rearranged code to avoid storage leak in case of identical title.
1018 * Loader/WebFrameLoader.h: Removed _setPolicyDocumentLoadState: method
1020 * Loader/WebFrameLoader.m:
1021 (-[WebFrameLoader _setPolicyDocumentLoadState:]): Added logic to call detachFromFrameLoader
1022 as needed if this load state is going away rather than moving on to become the provisional
1024 (-[WebFrameLoader shouldReloadToHandleUnreachableURLFromRequest:]): Tweaked formatting.
1025 (-[WebFrameLoader _loadRequest:archive:]): Added an assertion.
1026 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]): Added an assertion.
1027 (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]): Added an assertion.
1028 (-[WebFrameLoader reload]): Added an assertion.
1029 (-[WebFrameLoader loadDataSource:withLoadType:formState:]): Added a local variable to avoid
1030 calling _documentLoadState over and over again.
1032 2006-10-07 Don Gibson <dgibson77@gmail.com>
1034 Reviewed/landed by Adam.
1036 http://bugs.webkit.org/show_bug.cgi?id=11199
1037 Update Session History when a load is committed rather than completed.
1040 (WebFrame::receivedResponse):
1041 (WebFrame::receivedAllData):
1043 2006-10-07 Sam Weinig <sam.weinig@gmail.com>
1047 Patch for http://bugs.webkit.org/show_bug.cgi?id=11198
1048 Auto-generate a few more Objective-C DOM interfaces
1050 * MigrateHeaders.make:
1052 2006-10-07 Mark Rowe <bdash@webkit.org>
1056 Fix memory leak from -[WebDocumentLoadState setTitle:].
1058 * Loader/WebDocumentLoadState.m:
1059 (-[WebDocumentLoadState setTitle:]): Ensure 'trimmed' is released even when length is
1060 zero, and untangle the confusing logic around this case.
1062 2006-10-06 Brady Eidson <beidson@apple.com>
1066 Refactored a whole bunch of WebFramePrivate.h SPI to WebFrameInternal
1068 * DefaultDelegates/WebDefaultContextMenuDelegate.m:
1069 * History/WebHistoryItem.m:
1070 * Loader/WebFrameLoader.h:
1071 * Misc/WebCoreStatistics.m:
1072 * Misc/WebElementDictionary.m:
1073 * Plugins/WebNetscapePluginEmbeddedView.m:
1074 * Plugins/WebPluginController.m:
1075 * WebCoreSupport/WebViewFactory.m:
1076 * WebView/WebArchiver.m:
1077 * WebView/WebDataSource.m:
1078 * WebView/WebFrame.m:
1079 (-[WebFrame _isDescendantOfFrame:]):
1080 (-[WebFrame _setShouldCreateRenderers:]):
1081 (-[WebFrame _bodyBackgroundColor]):
1082 (-[WebFrame _isFrameSet]):
1083 (-[WebFrame _firstLayoutDone]):
1084 (-[WebFrame _loadType]):
1085 * WebView/WebFrameInternal.h:
1086 * WebView/WebFramePrivate.h:
1087 * WebView/WebHTMLRepresentation.m:
1088 * WebView/WebScriptDebugDelegate.m:
1090 2006-10-06 Maciej Stachowiak <mjs@apple.com>
1094 - Move all delegate dispatching code out of WebDataSource.
1096 * Loader/WebFrameLoader.m:
1097 (-[WebFrameLoader startLoading]):
1098 (-[WebFrameLoader _identifierForInitialRequest:]):
1099 (-[WebFrameLoader _willSendRequest:forResource:redirectResponse:]):
1100 (-[WebFrameLoader _didReceiveAuthenticationChallenge:forResource:]):
1101 (-[WebFrameLoader _didCancelAuthenticationChallenge:forResource:]):
1102 (-[WebFrameLoader _didReceiveResponse:forResource:]):
1103 (-[WebFrameLoader _didReceiveData:contentLength:forResource:]):
1104 (-[WebFrameLoader _didFinishLoadingForResource:]):
1105 (-[WebFrameLoader _didFailLoadingWithError:forResource:]):
1106 (-[WebFrameLoader _receivedMainResourceError:complete:]):
1107 (-[WebFrameLoader _downloadWithLoadingConnection:request:response:proxy:]):
1108 (-[WebFrameLoader _checkContentPolicyForMIMEType:andCall:withSelector:]):
1109 * WebView/WebDataSource.m:
1110 (-[WebDataSource _setLoadingFromPageCache:]):
1111 (-[WebDataSource _stopLoadingWithError:]):
1112 * WebView/WebDataSourceInternal.h:
1114 2006-10-06 Darin Adler <darin@apple.com>
1118 - moved firstLayoutDone BOOL from WebFrame to WebFrameLoader
1120 * Loader/WebFrameLoader.h:
1121 * Loader/WebFrameLoader.m:
1122 (-[WebFrameLoader didFirstLayout]):
1123 (-[WebFrameLoader provisionalLoadStarted]):
1124 (-[WebFrameLoader frameLoadCompleted]):
1125 (-[WebFrameLoader firstLayoutDone]):
1126 * WebCoreSupport/WebFrameBridge.m: (-[WebFrameBridge didFirstLayout]):
1127 * WebView/WebFrame.m:
1128 (-[WebFrame _firstLayoutDone]):
1129 (-[WebFrame _provisionalLoadStarted]):
1130 (-[WebFrame _frameLoadCompleted]):
1131 (-[WebFrame _restoreScrollPositionAndViewState]):
1132 * WebView/WebFrameInternal.h:
1134 2006-10-06 Darin Adler <darin@apple.com>
1138 - moved more data and the corresponding code from WebFrame to WebFrameLoader
1140 * Loader/WebFrameLoader.h:
1141 * Loader/WebFrameLoader.m:
1142 (-[WebFrameLoader cannotShowMIMETypeForURL:]):
1143 (-[WebFrameLoader _checkNavigationPolicyForRequest:andCall:withSelector:]):
1144 (-[WebFrameLoader shouldReloadToHandleUnreachableURLFromRequest:]):
1145 (-[WebFrameLoader _loadRequest:archive:]):
1146 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
1147 (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
1148 (-[WebFrameLoader reload]):
1149 (-[WebFrameLoader invalidatePendingPolicyDecisionCallingDefaultAction:]):
1150 (-[WebFrameLoader checkNewWindowPolicyForRequest:action:frameName:formState:andCall:withSelector:]):
1151 (-[WebFrameLoader _continueAfterNewWindowPolicy:]):
1152 (-[WebFrameLoader checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
1153 (-[WebFrameLoader continueAfterNavigationPolicy:]):
1154 (-[WebFrameLoader continueAfterWillSubmitForm:]):
1155 (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
1156 (-[WebFrameLoader loadDataSource:withLoadType:formState:]):
1157 (-[WebFrameLoader handleUnimplementablePolicyWithErrorCode:forURL:]):
1158 (-[WebFrameLoader delegateIsHandlingProvisionalLoadError]):
1159 (-[WebFrameLoader setDelegateIsHandlingProvisionalLoadError:]):
1160 * Loader/WebFrameLoaderClient.h:
1161 * WebView/WebFrame.m:
1162 (-[NSView setWebFrame::]):
1163 (-[WebFramePrivate dealloc]):
1164 (-[WebFrame _checkLoadCompleteForThisFrame]):
1165 (-[WebFrame _loadItem:withLoadType:]):
1166 (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
1167 (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
1168 (-[WebFrame _loadRequest:inFrameNamed:]):
1169 (-[WebFrame stopLoading]):
1170 (-[WebFrame _resetBackForwardList]):
1171 (-[WebFrame _quickRedirectComing]):
1172 (-[WebFrame _provisionalItemIsTarget]):
1173 (-[WebFrame _loadProvisionalItemFromPageCache]):
1174 * WebView/WebFrameInternal.h:
1175 * WebView/WebFramePrivate.h:
1177 * WebKit.xcodeproj/project.pbxproj:
1179 2006-10-06 Maciej Stachowiak <mjs@apple.com>
1181 Rubber stamped by Darin.
1183 - removed includes of unused headers.
1185 * WebView/WebDataSource.m:
1187 2006-10-06 Maciej Stachowiak <mjs@apple.com>
1191 - fix build breakage
1193 * Loader/WebFrameLoader.m:
1194 (-[WebFrameLoader willChangeTitleForDocumentLoadState:]):
1195 (-[WebFrameLoader didChangeTitleForDocumentLoadState:]):
1197 2006-10-06 Maciej Stachowiak <mjs@apple.com>
1201 - move remaining movable WebDataSource fields to WebDocumentLoadState
1203 * Loader/WebDocumentLoadState.h:
1204 * Loader/WebDocumentLoadState.m:
1205 (-[WebDocumentLoadState dealloc]):
1206 (-[WebDocumentLoadState isLoadingInAPISense]):
1207 (-[WebDocumentLoadState addResponse:]):
1208 (-[WebDocumentLoadState stopRecordingResponses]):
1209 (-[WebDocumentLoadState title]):
1210 (-[WebDocumentLoadState setLastCheckedRequest:]):
1211 (-[WebDocumentLoadState lastCheckedRequest]):
1212 (-[WebDocumentLoadState triggeringAction]):
1213 (-[WebDocumentLoadState setTriggeringAction:]):
1214 (-[WebDocumentLoadState responses]):
1215 (-[WebDocumentLoadState setOverrideEncoding:]):
1216 (-[WebDocumentLoadState overrideEncoding]):
1217 (-[WebDocumentLoadState setTitle:]):
1218 * Loader/WebFrameLoader.h:
1219 * Loader/WebFrameLoader.m:
1220 (-[WebFrameLoader _setState:]):
1221 (-[WebFrameLoader _loadRequest:archive:]):
1222 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
1223 (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
1224 (-[WebFrameLoader reload]):
1225 (-[WebFrameLoader willChangeTitleForDocumentLoadState:]):
1226 (-[WebFrameLoader didChangeTitleForDocumentLoadState:]):
1227 * WebCoreSupport/WebFrameBridge.m:
1228 (-[WebFrameBridge setTitle:]):
1229 (-[WebFrameBridge receivedData:textEncodingName:]):
1230 * WebView/WebDataSource.m:
1231 (-[WebDataSourcePrivate dealloc]):
1232 (-[WebDataSource _didReceiveResponse:forResource:]):
1233 (-[WebDataSource textEncodingName]):
1234 * WebView/WebDataSourceInternal.h:
1235 * WebView/WebFrame.m:
1236 (-[WebFrame _opened]):
1237 (-[WebFrame _checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
1238 (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
1239 (-[WebFrame _addChild:]):
1240 (-[WebFrame _loadDataSource:withLoadType:formState:]):
1241 * WebView/WebHTMLRepresentation.m:
1242 (-[WebHTMLRepresentation title]):
1243 * WebView/WebView.m:
1244 (-[WebView _mainFrameOverrideEncoding]):
1246 2006-10-06 Darin Adler <darin@apple.com>
1250 - moved loadType into WebFrameLoader
1252 * WebView/WebFramePrivate.h: Removed _setLoadType, but not _loadType because it's
1253 currently used by Safari.
1255 * Loader/WebFrameLoader.h:
1256 * Loader/WebFrameLoader.m:
1257 (-[WebFrameLoader _loadRequest:archive:]):
1258 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
1259 (-[WebFrameLoader isReplacing]):
1260 (-[WebFrameLoader setReplacing]):
1261 (-[WebFrameLoader loadType]):
1262 (-[WebFrameLoader setLoadType:]):
1263 * WebCoreSupport/WebFrameBridge.m:
1264 (-[WebFrameBridge isLoadTypeReload]):
1265 * WebView/WebFrame.m:
1266 (-[WebFrame _loadType]):
1267 (-[WebFrame _transitionToCommitted:]):
1268 (-[WebFrame _commitProvisionalLoad:]):
1269 (-[WebFrame _opened]):
1270 (-[WebFrame _checkLoadCompleteForThisFrame]):
1271 (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
1272 (-[WebFrame _loadURL:referrer:intoChild:]):
1273 (-[WebFrame _currentBackForwardListItemToResetTo]):
1274 (-[WebFrame _itemForRestoringDocState]):
1275 (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
1276 (-[WebFrame _didFirstLayout]):
1277 (-[WebFrame _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
1278 (-[WebFrame _provisionalLoadStarted]):
1279 (-[WebFrame loadRequest:]):
1281 2006-10-06 Darin Adler <darin@apple.com>
1285 - added WebFrameLoaderClient protocol -- to be used to make WebFrameLoader forget all about WebFrame
1287 * Loader/WebDocumentLoadState.h: Added comment about Maciej's planned renaming here.
1288 * Loader/WebFrameLoader.h:
1289 * Loader/WebFrameLoader.m: Renamed webFrame to client and added the new protocol.
1290 Eventually we'll be removing the dependency on WebFrame entirely.
1291 * WebView/WebFrame.m: (-[WebFrame _initWithWebFrameView:webView:bridge:]): Update to call the method
1294 * Loader/WebFrameLoaderClient.h: Added.
1295 * WebKit.xcodeproj/project.pbxproj: Updated for new file, sorted things.
1297 2006-10-06 Maciej Stachowiak <mjs@apple.com>
1301 - segregate WebFrame methods into ones that should be moved into WebFrameLoader and ones that don't need to
1303 Also removed useless WebFrameLoader part
1305 * WebView/WebFrame.m:
1306 (-[WebFramePrivate dealloc]):
1308 2006-10-06 Maciej Stachowiak <mjs@apple.com>
1312 - moved more data from WebDataSource to WebDocumentLoadState
1314 * Loader/WebDocumentLoadState.h:
1315 * Loader/WebDocumentLoadState.m:
1316 (-[WebDocumentLoadState commitLoadWithData:]):
1317 (-[WebDocumentLoadState prepareForLoadStart]):
1318 (-[WebDocumentLoadState loadingStartedTime]):
1319 (-[WebDocumentLoadState setIsClientRedirect:]):
1320 (-[WebDocumentLoadState isClientRedirect]):
1321 (-[WebDocumentLoadState setPrimaryLoadComplete:]):
1322 (-[WebDocumentLoadState isLoadingInAPISense]):
1323 * Loader/WebFrameLoader.h:
1324 * Loader/WebFrameLoader.m:
1325 (-[WebFrameLoader _setState:]):
1326 (-[WebFrameLoader _finishedLoading]):
1327 (-[WebFrameLoader documentLoadState:mainReceivedCompleteError:]):
1328 (-[WebFrameLoader prepareForLoadStart]):
1329 (-[WebFrameLoader subframeIsLoading]):
1330 * WebView/WebDataSource.m:
1331 (-[WebDataSource _fileWrapperForURL:]):
1332 (-[WebDataSource _startLoading]):
1333 (-[WebDataSource _loadFromPageCache:]):
1334 (-[WebDataSource isLoading]):
1335 * WebView/WebDataSourceInternal.h:
1336 * WebView/WebFrame.m:
1337 (-[WebFrame _transitionToCommitted:]):
1338 (-[WebFrame _opened]):
1339 (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
1341 2006-10-06 Alexey Proskuryakov <ap@nypop.com>
1345 http://bugs.webkit.org/show_bug.cgi?id=11183
1346 REGRESSION: Safari loads error pages unstyled
1348 * WebView/WebFrame.m:
1349 (-[WebFrame _loadHTMLString:baseURL:unreachableURL:]):
1350 Use utf-8 encoding instead of the string's "fastest" encoding.
1352 2006-10-06 Maciej Stachowiak <mjs@apple.com>
1356 - fixed the following bugs:
1358 http://bugs.webkit.org/show_bug.cgi?id=11136
1359 "REGRESSION: Safari snippet editor doesn't work"
1360 http://bugs.webkit.org/show_bug.cgi?id=11140
1361 "REGRESSION: view source window blank"
1362 http://bugs.webkit.org/show_bug.cgi?id=11146
1363 "REGRESSION: Instead of showing the error page, Safari opens its Resources folder in the Finder"
1367 * Loader/WebDocumentLoadState.h:
1368 * Loader/WebDocumentLoadState.m:
1369 (-[WebDocumentLoadState actualRequest]): New method.
1370 * WebView/WebDataSource.m:
1371 (-[WebDataSource _startLoading]): We need to make sure not to start loading the main
1372 resource with the fake external request for an applewebdata: request.
1374 2006-10-05 Adele Peterson <adele@apple.com>
1376 Reviewed by the letter 'B'.
1380 * WebKit.xcodeproj/project.pbxproj:
1381 * WebView/WebDynamicScrollBarsView.h:
1382 * WebView/WebDynamicScrollBarsView.m:
1383 (-[WebDynamicScrollBarsView updateScrollers]):
1384 (-[WebDynamicScrollBarsView setAllowsScrolling:]):
1385 (-[WebDynamicScrollBarsView allowsScrolling]):
1386 (-[WebDynamicScrollBarsView setAllowsHorizontalScrolling:]):
1387 (-[WebDynamicScrollBarsView setAllowsVerticalScrolling:]):
1388 (-[WebDynamicScrollBarsView allowsHorizontalScrolling]):
1389 (-[WebDynamicScrollBarsView allowsVerticalScrolling]):
1390 (-[WebDynamicScrollBarsView horizontalScrollingMode]):
1391 (-[WebDynamicScrollBarsView verticalScrollingMode]):
1392 (-[WebDynamicScrollBarsView setHorizontalScrollingMode:]):
1393 (-[WebDynamicScrollBarsView setVerticalScrollingMode:]):
1394 (-[WebDynamicScrollBarsView setScrollingMode:]):
1395 * WebView/WebView.m:
1396 (-[WebView setAlwaysShowVerticalScroller:]):
1397 (-[WebView alwaysShowVerticalScroller]):
1398 (-[WebView setAlwaysShowHorizontalScroller:]):
1399 (-[WebView alwaysShowHorizontalScroller]):
1401 2006-10-05 Vladimir Olexa <vladimir.olexa@gmail.com>
1403 Reviewed by Timothy.
1405 Bug: http://bugs.webkit.org/show_bug.cgi?id=9887
1406 Continuous spell checking now remembers user's setting. The change is applied globally,
1407 meaning, both TextArea and TextField are affected when either of them enables/disables
1410 * WebView/WebPreferenceKeysPrivate.h: added a define for WebContinuousSpellCheckingEnabled
1411 * WebView/WebView.m:
1412 (-[WebViewPrivate init]): reads WebContinuousSpellCheckingEnabled from NSUserDefaults
1413 (-[WebView setContinuousSpellCheckingEnabled:]):
1414 (-[WebView isContinuousSpellCheckingEnabled]):
1416 2006-10-05 MorganL <morganl.webkit@yahoo.com>
1420 Fixes http://bugs.webkit.org/show_bug.cgi?id=11162
1423 (WebFrame::loadDataSource):
1424 (WebFrame::receivedResponse):
1426 2006-10-05 Don Gibson <dgibson77@gmail.com>
1428 Reviewed by Darin, landed by Adam.
1430 http://bugs.webkit.org/show_bug.cgi?id=11176
1431 Fix win32 build, adapt to Maciej's ResourceLoader changes.
1434 (WebFrame::loadDataSource):
1436 2006-10-05 Marvin Decker <marv.decker@gmail.com>
1440 http://bugs.webkit.org/show_bug.cgi?id=10989
1441 Provide a way for embedders to implement BrowserExtensionWin
1443 * COM/Interfaces/IWebUIDelegate.idl:
1445 (WebFrame::createNewWindow):
1448 2006-10-04 Mark Rowe <bdash@webkit.org>
1450 Reviewed by NOBODY (build fix).
1452 * WebView/WebView.m:
1453 (-[WebView scrollDOMRangeToVisible:]): Move scrollDOMRangeToVisible: into the correct category.
1455 2006-09-26 David Smith <catfish.man@gmail.com>
1457 Reviewed by Timothy.
1459 http://bugs.webkit.org/show_bug.cgi?id=3723
1460 Add -scrollDOMRangeToVisible:
1462 * WebView/WebView.m:
1463 (-[WebView scrollDOMRangeToVisible:]):
1464 * WebView/WebViewPrivate.h:
1466 2006-10-03 Graham Dennis <graham.dennis@gmail.com>
1468 Reviewed by Timothy.
1470 <http://bugs.webkit.org/show_bug.cgi?id=10338>
1471 When contentEditable, cursor doesn't change to hand
1473 Allow the behaviour of editable links to be specified by a WebPreference
1474 The preference WebKitEditableLinkBehavior has four options:
1475 - AlwaysLive: Safari 2.0 behaviour
1476 - OnlyLiveWithShiftKey: Firefox/WinIE behaviour (and prior WebKit-ToT behaviour)
1477 - LiveWhenNotFocused: Editable links are live only when their editable block is not
1478 focused, or when the shift key is pressed
1479 - DefaultBehavior: This is the same as OnlyLiveWithShiftKey.
1481 No layout tests, just a modification of a manual-test as it isn't possible to test
1484 * WebView/WebPreferenceKeysPrivate.h:
1485 * WebView/WebPreferences.m:
1486 (+[WebPreferences initialize]):
1487 (-[WebPreferences editableLinkBehavior]):
1488 (-[WebPreferences setEditableLinkBehavior:]):
1489 * WebView/WebPreferencesPrivate.h:
1490 * WebView/WebView.m:
1491 (-[WebView _updateWebCoreSettingsFromPreferences:]):
1493 2006-10-03 Justin Garcia <justin.garcia@apple.com>
1495 Reviewed by harrison
1497 execCommand("Cut"/"Copy"/"Paste") broken in editable subframes.
1499 * WebCoreSupport/WebFrameBridge.m:
1500 (-[WebFrameBridge issueCutCommand]): Issue the command on the WebHTMLView, not the WebView.
1501 (-[WebFrameBridge issueCopyCommand]): Ditto.
1502 (-[WebFrameBridge issuePasteCommand]): Ditto.
1503 (-[WebFrameBridge issuePasteAndMatchStyleCommand]): Ditto.
1504 (-[WebFrameBridge issueTransposeCommand]): Fixed formatting.
1505 (-[WebFrameBridge canPaste]): Ask the WebHTMLView, not the WebView.
1506 * WebView/WebHTMLView.m:
1507 (-[WebHTMLView copy:]): Moved to WebInternal
1508 (-[WebHTMLView cut:]): Ditto.
1509 (-[WebHTMLView paste:]): Ditto.
1510 (-[WebHTMLView pasteAsPlainText:]): Ditto.
1511 * WebView/WebHTMLViewInternal.h:
1512 * WebView/WebView.m: Removed the now unused _canPaste.
1513 * WebView/WebViewInternal.h: Ditto.
1515 2006-10-03 Justin Garcia <justin.garcia@apple.com>
1519 <rdar://problem/4763519> REGRESSION: Multipart/x-mixed-replace sub-resources fail to load
1521 * Loader/WebSubresourceLoader.m:
1522 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
1523 Enable multipart/x-mixed-replace support on the request. This line was accidently removed during
1524 some loader refactoring.
1526 2006-10-02 Adam Roben <aroben@apple.com>
1530 Add message paramter to WebView::mouse* methods to pass down to
1534 (WebView::mouseMoved):
1535 (WebView::mouseDown):
1537 (WebView::mouseDoubleClick):
1541 2006-10-02 Maciej Stachowiak <mjs@apple.com>
1545 - take away direct knowledge of WebFrame from WebDataSource
1547 * Loader/WebDocumentLoadState.h:
1548 * Loader/WebDocumentLoadState.m:
1549 (-[WebDocumentLoadState setFrameLoader:]):
1550 (-[WebDocumentLoadState detachFromFrameLoader]):
1551 * Loader/WebFrameLoader.m:
1552 (-[WebFrameLoader _setDocumentLoadState:]):
1553 (-[WebFrameLoader _setProvisionalDocumentLoadState:]):
1554 * WebView/WebDataSource.m:
1555 * WebView/WebDataSourceInternal.h:
1556 * WebView/WebDocumentLoadStateMac.m:
1557 (-[WebDocumentLoadStateMac detachFromFrameLoader]):
1558 * WebView/WebFrame.m:
1559 (-[WebFrame _loadDataSource:withLoadType:formState:]):
1561 2006-10-02 Maciej Stachowiak <mjs@apple.com>
1565 - move a big slice of data and logic from WebDataSource to WebDocumentLoadState
1567 * Loader/WebDocumentLoadState.h:
1568 * Loader/WebDocumentLoadState.m:
1569 (-[WebDocumentLoadState initWithRequest:]):
1570 (-[WebDocumentLoadState dealloc]):
1571 (-[WebDocumentLoadState originalRequestCopy]):
1572 (-[WebDocumentLoadState request]):
1573 (-[WebDocumentLoadState replaceRequestURLForAnchorScrollWithURL:]):
1574 (-[WebDocumentLoadState setRequest:]):
1575 (-[WebDocumentLoadState setResponse:]):
1576 (-[WebDocumentLoadState isStopping]):
1577 (-[WebDocumentLoadState bridge]):
1578 (-[WebDocumentLoadState setMainDocumentError:]):
1579 (-[WebDocumentLoadState mainDocumentError]):
1580 (-[WebDocumentLoadState clearErrors]):
1581 (-[WebDocumentLoadState mainReceivedError:complete:]):
1582 (-[WebDocumentLoadState stopLoading]):
1583 (-[WebDocumentLoadState setupForReplace]):
1584 (-[WebDocumentLoadState commitIfReady]):
1585 (-[WebDocumentLoadState finishedLoading]):
1586 (-[WebDocumentLoadState setCommitted:]):
1587 (-[WebDocumentLoadState isCommitted]):
1588 (-[WebDocumentLoadState setLoading:]):
1589 (-[WebDocumentLoadState isLoading]):
1590 (-[WebDocumentLoadState commitLoadWithData:]):
1591 (-[WebDocumentLoadState doesProgressiveLoadWithMIMEType:]):
1592 (-[WebDocumentLoadState receivedData:]):
1593 (-[WebDocumentLoadState setupForReplaceByMIMEType:]):
1594 (-[WebDocumentLoadState updateLoading]):
1595 (-[WebDocumentLoadState response]):
1596 * Loader/WebFrameLoader.h:
1597 * Loader/WebFrameLoader.m:
1598 (-[WebFrameLoader activeDocumentLoadState]):
1599 (-[WebFrameLoader activeDataSource]):
1600 (-[WebFrameLoader _archivedSubresourceForURL:]):
1601 (-[WebFrameLoader addPlugInStreamLoader:]):
1602 (-[WebFrameLoader removePlugInStreamLoader:]):
1603 (-[WebFrameLoader addSubresourceLoader:]):
1604 (-[WebFrameLoader removeSubresourceLoader:]):
1605 (-[WebFrameLoader documentLoadState]):
1606 (-[WebFrameLoader provisionalDocumentLoadState]):
1607 (-[WebFrameLoader stopLoading]):
1608 (-[WebFrameLoader _originalRequest]):
1609 (-[WebFrameLoader _receivedData:]):
1610 (-[WebFrameLoader _setRequest:]):
1611 (-[WebFrameLoader bridge]):
1612 (-[WebFrameLoader _handleFallbackContent]):
1613 (-[WebFrameLoader _isStopping]):
1614 (-[WebFrameLoader _setupForReplaceByMIMEType:]):
1615 (-[WebFrameLoader _setResponse:]):
1616 (-[WebFrameLoader _mainReceivedError:complete:]):
1617 (-[WebFrameLoader _finishedLoading]):
1618 (-[WebFrameLoader didReceiveServerRedirectForProvisionalLoadForFrame]):
1619 (-[WebFrameLoader finishedLoadingDocumentLoadState:]):
1620 (-[WebFrameLoader commitProvisitionalLoad]):
1621 (-[WebFrameLoader committedLoadWithDocumentLoadState:data:]):
1622 (-[WebFrameLoader isReplacing]):
1623 (-[WebFrameLoader setReplacing]):
1624 (-[WebFrameLoader revertToProvisionalWithDocumentLoadState:]):
1625 (-[WebFrameLoader documentLoadState:setMainDocumentError:]):
1626 (-[WebFrameLoader documentLoadState:mainReceivedCompleteError:]):
1627 (-[WebFrameLoader finalSetupForReplaceWithDocumentLoadState:]):
1628 * WebView/WebDataSource.m:
1629 (-[WebDataSourcePrivate dealloc]):
1630 (-[WebDataSource _prepareForLoadStart]):
1631 (-[WebDataSource _mainDocumentError]):
1632 (-[WebDataSource _finishedLoading]):
1633 (-[WebDataSource _receivedData:]):
1634 (-[WebDataSource _setMainDocumentError:]):
1635 (-[WebDataSource _clearUnarchivingState]):
1636 (-[WebDataSource _revertToProvisionalState]):
1637 (-[WebDataSource _receivedMainResourceError:complete:]):
1638 (-[WebDataSource _startLoading]):
1639 (-[WebDataSource _loadFromPageCache:]):
1640 (-[WebDataSource _bridge]):
1641 (-[WebDataSource _setPrimaryLoadComplete:]):
1642 (-[WebDataSource _URLForHistory]):
1643 (-[WebDataSource _setTitle:]):
1644 (-[WebDataSource _initWithDocumentLoadState:]):
1645 (-[WebDataSource request]):
1646 (-[WebDataSource response]):
1647 (-[WebDataSource isLoading]):
1648 (-[WebDataSource webArchive]):
1649 * WebView/WebDataSourceInternal.h:
1650 * WebView/WebDocumentLoadStateMac.m:
1651 (-[WebDocumentLoadStateMac initWithRequest:]):
1652 * WebView/WebFrame.m:
1653 (-[WebFrame _createItem:]):
1654 (-[WebFrame _receivedMainResourceError:]):
1655 (-[WebFrame _transitionToCommitted:]):
1656 (-[WebFrame _commitProvisionalLoad:]):
1657 (-[WebFrame _checkLoadCompleteForThisFrame]):
1658 (-[WebFrame _loadItem:withLoadType:]):
1659 (-[WebFrame _continueFragmentScrollAfterNavigationPolicy:formState:]):
1660 (-[WebFrame _didReceiveServerRedirectForProvisionalLoadForFrame]):
1661 (-[WebFrame _provisionalLoadStarted]):
1662 * WebView/WebFrameInternal.h:
1664 2006-10-02 Justin Garcia <justin.garcia@apple.com>
1668 <rdar://problem/4757583>
1669 REGRESSION: tabbing into page focuses wrong control on 2nd pass
1670 <rdar://problem/4757594>
1671 REGRESSION: Form field is left with secondary selection after tabbing out of WebView
1673 * WebView/WebHTMLView.m:
1674 (-[NSArray maintainsInactiveSelection]): Replace code that I removed in error in the patch
1675 for 9642. Only leave inactive editable selections in the WebHTMLView if the nextResponder
1676 is in the same WebView.
1678 2006-10-02 Maciej Stachowiak <mjs@apple.com>
1682 - remove webFrame field from WebDataSourcePrivate, it can get it from WebDocumentLoadState now
1684 * Loader/WebDocumentLoadState.h:
1685 * Loader/WebDocumentLoadState.m:
1686 (-[WebDocumentLoadState frameLoader]):
1687 * WebView/WebDataSource.m:
1688 (-[WebDataSourcePrivate dealloc]):
1689 (-[WebDataSource _revertToProvisionalState]):
1690 (-[WebDataSource _setupForReplaceByMIMEType:]):
1691 (-[WebDataSource _updateLoading]):
1692 (-[WebDataSource _startLoading]):
1693 (-[WebDataSource _setWebFrame:]):
1694 (-[WebDataSource _defersCallbacksChanged]):
1695 (-[WebDataSource _stopLoading]):
1696 (-[WebDataSource _webView]):
1697 (-[WebDataSource _stopLoadingWithError:]):
1698 (-[WebDataSource _setPrimaryLoadComplete:]):
1699 (-[WebDataSource dealloc]):
1700 (-[WebDataSource webFrame]):
1701 (-[WebDataSource isLoading]):
1703 2006-10-02 Maciej Stachowiak <mjs@apple.com>
1707 - fix crash on back/forward - reattach WebDocumentLoadState to data source when needed
1709 * WebView/WebDataSource.m:
1710 (-[WebDataSource _setWebFrame:]):
1711 (-[WebDataSource _initWithDocumentLoadState:]):
1712 * WebView/WebDataSourceInternal.h:
1714 2006-10-02 Maciej Stachowiak <mjs@apple.com>
1716 Build fix, not reviewed.
1718 - Added missing files to fix build.
1720 * WebView/WebDocumentLoadStateMac.h: Added.
1721 * WebView/WebDocumentLoadStateMac.m: Added.
1722 (-[WebDocumentLoadStateMac initWithRequest:]):
1723 (-[WebDocumentLoadStateMac dealloc]):
1724 (-[WebDocumentLoadStateMac setDataSource:]):
1725 (-[WebDocumentLoadStateMac dataSource]):
1726 (-[WebDocumentLoadStateMac setFrameLoader:]):
1728 2006-10-01 Maciej Stachowiak <mjs@apple.com>
1730 Reviewed by Brady and Oliver.
1732 - move things around so that WebDataSource and WebDocumentLoadState know about each other in
1733 the right way. This lines things up to move nearly all functionality down to WebDocumentLoadState.
1735 * Loader/WebDocumentLoadState.h:
1736 * Loader/WebDocumentLoadState.m:
1737 (-[WebDocumentLoadState initWithRequest:]):
1738 (-[WebDocumentLoadState dealloc]):
1739 (-[WebDocumentLoadState originalRequest]):
1740 * Loader/WebFrameLoader.h:
1741 * Loader/WebFrameLoader.m:
1742 (-[WebFrameLoader dealloc]):
1743 (-[WebFrameLoader addSubresourceLoader:]):
1744 (-[WebFrameLoader startLoadingMainResourceWithRequest:identifier:]):
1745 (-[WebFrameLoader dataSource]):
1746 (-[WebFrameLoader _setDocumentLoadState:]):
1747 (-[WebFrameLoader policyDataSource]):
1748 (-[WebFrameLoader _setPolicyDocumentLoadState:]):
1749 (-[WebFrameLoader clearDataSource]):
1750 (-[WebFrameLoader provisionalDataSource]):
1751 (-[WebFrameLoader _setProvisionalDocumentLoadState:]):
1752 (-[WebFrameLoader _clearProvisionalDataSource]):
1753 (-[WebFrameLoader _setState:]):
1754 (-[WebFrameLoader clearProvisionalLoad]):
1755 (-[WebFrameLoader commitProvisionalLoad]):
1756 (-[WebFrameLoader stopLoading]):
1757 (-[WebFrameLoader startLoading]):
1758 (-[WebFrameLoader startProvisionalLoad:]):
1759 (-[WebFrameLoader setupForReplace]):
1760 (-[WebFrameLoader activeDocumentLoadState]):
1761 (-[WebFrameLoader activeDataSource]):
1762 (-[WebFrameLoader _loadRequest:archive:]):
1763 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
1764 (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
1765 (-[WebFrameLoader reload]):
1766 * WebKit.xcodeproj/project.pbxproj:
1767 * WebView/WebDataSource.m:
1768 (-[WebDataSourcePrivate dealloc]):
1769 (-[WebDataSource _startLoading]):
1770 (-[WebDataSource _setWebFrame:]):
1771 (-[WebDataSource _documentLoadState]):
1772 (-[WebDataSource _initWithDocumentLoadState:]):
1773 (-[WebDataSource initWithRequest:]):
1774 (-[WebDataSource initialRequest]):
1775 (-[WebDataSource unreachableURL]):
1776 * WebView/WebDataSourceInternal.h:
1777 * WebView/WebFrame.m:
1778 (-[WebFramePrivate dealloc]):
1779 (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
1780 (-[WebFrame _loadDataSource:withLoadType:formState:]):
1781 (-[WebFrame _policyDataSource]):
1782 (-[WebFrame _shouldReloadToHandleUnreachableURLFromRequest:]):
1783 (-[WebFrame _dataSourceForDocumentLoadState:]):
1784 (-[WebFrame _createDocumentLoadStateWithRequest:]):
1785 * WebView/WebFrameInternal.h:
1787 2006-09-29 David Hyatt <hyatt@apple.com>
1789 Change the default minimum font size pref to 0 in order to allow
1790 font-size:0 to work.
1792 * WebView/WebPreferences.m:
1793 (+[WebPreferences initialize]):
1795 2006-09-28 Timothy Hatcher <timothy@apple.com>
1799 Switch the inspector over to use border-image with styled buttons and selects.
1801 * WebInspector/WebInspector.m:
1802 (-[NSWindow window]):
1803 (-[NSWindow setWebFrame:]):
1804 (-[WebInspector _updateRoot]):
1805 * WebInspector/webInspector/Images/button.png: Added.
1806 * WebInspector/webInspector/Images/buttonDivider.png: Added.
1807 * WebInspector/webInspector/Images/buttonPressed.png: Added.
1808 * WebInspector/webInspector/Images/popup.png: Added.
1809 * WebInspector/webInspector/Images/popupFill.png: Removed.
1810 * WebInspector/webInspector/Images/popupFillPressed.png: Removed.
1811 * WebInspector/webInspector/Images/popupLeft.png: Removed.
1812 * WebInspector/webInspector/Images/popupLeftPressed.png: Removed.
1813 * WebInspector/webInspector/Images/popupPressed.png: Added.
1814 * WebInspector/webInspector/Images/popupRight.png: Removed.
1815 * WebInspector/webInspector/Images/popupRightPressed.png: Removed.
1816 * WebInspector/webInspector/Images/squareButtonRight.png: Removed.
1817 * WebInspector/webInspector/Images/squareButtonRightPressed.png: Removed.
1818 * WebInspector/webInspector/inspector.css:
1819 * WebInspector/webInspector/inspector.html:
1820 * WebInspector/webInspector/inspector.js:
1822 2006-09-28 Alice Liu <alice.liu@apple.com>
1824 fixing the windows build
1827 (WebView::mouseMoved):
1828 (WebView::mouseDown):
1830 (WebView::mouseDoubleClick):
1832 2006-09-27 Justin Garcia <justin.garcia@apple.com>
1834 Reviewed by thatcher
1836 <rdar://problem/4044271>
1837 Writing Direction menu doesn't reflect the current writing direction (9773)
1839 * English.lproj/Localizable.strings: Added "Right to Left" and "Left to Right"
1840 * WebView/WebHTMLView.m:
1841 (-[NSArray validateUserInterfaceItem:]): Validate menu items that perform
1842 toggleBaseWritingDirection and changeBaseWritingDirection.
1843 Disable the menu item that changes the writing direction to NSWritingDirectionNautral
1844 because NSWritingDirectionNatural's behavior can't be implemented with CSS.
1845 Take control of the title of the menu item that performs toggleBaseWritingDirection:
1846 instead of checking/unchecking it, otherwise we wouldn't know what a check means.
1847 (-[NSArray changeBaseWritingDirection:]): ASSERT that the requested writing
1848 direction is not NSWritingDirectionNatural, since we've disabled the
1849 menu item that performs it.
1851 2006-09-27 MorganL <morganl.webkit@yahoo.com>
1853 Reviewed by Maciej, landed by Brady
1855 Update URL request associated with provisional data source on redirect.
1856 Notify IWebFrameLoadDelegate of redirects for the provisional load.
1857 Notify IWebFrameLoadDelegate of a provisional load being commited.
1859 * COM/WebDataSource.cpp:
1860 (WebDataSource::replaceRequest):
1861 * COM/WebDataSource.h:
1863 (WebFrame::receivedRedirect):
1864 (WebFrame::receivedResponse):
1865 (WebFrame::receivedData):
1867 2006-09-26 John Sullivan <sullivan@apple.com>
1871 * WebView/WebHTMLViewPrivate.h:
1872 * WebView/WebHTMLView.m:
1873 (-[WebHTMLView markAllMatchesForText:caseSensitive:limit:]):
1874 Added limit parameter, passed over the bridge. Stop the search if it hits limit.
1876 * WebView/WebViewPrivate.h:
1877 * WebView/WebView.m:
1878 (-[WebView markAllMatchesForText:caseSensitive:highlight:limit:]):
1879 Added limit parameter, passed to WebHTMLView.
1881 2006-09-26 David Harrison <harrison@apple.com>
1883 Reviewed by John and TimH.
1885 <rdar://problem/4743256> Seed: Ctrl-Y key binding does nothing when kill ring is empty
1887 Use deleteBackward: when the killring string is empty. Was always using insertText:,
1888 but that ends up early-returning if the string to insert is empty.
1890 * WebView/WebHTMLView.m:
1892 (-[NSArray yankAndSelect:]):
1894 2006-09-25 Timothy Hatcher <timothy@apple.com>
1898 Use the non-deprecated method names for getComputedStyle, setEnd and setStart.
1900 * WebInspector/WebInspector.m:
1901 (-[WebInspector _highlightNode:]):
1902 * WebView/WebHTMLView.m:
1904 (-[WebHTMLView _selectRangeInMarkedText:]):
1905 (-[WebTextCompleteController doCompletion]):
1906 * WebView/WebView.m:
1907 (-[WebView computedStyleForElement:pseudoElement:]):
1909 2006-09-22 Timothy Hatcher <timothy@apple.com>
1913 Pass all headers through unifdef to filter out BUILDING_ON_TIGER blocks
1914 if MACOSX_DEPLOYMENT_TARGET is 10.4.
1916 * MigrateHeaders.make:
1918 2006-09-20 Justin Garcia <justin.garcia@apple.com>
1922 <http://bugs.webkit.org/show_bug.cgi?id=7165>
1923 TinyMCE: Dragging & dropping content always leaves a copy when editing inside a subframe
1925 The top level WebHTMLView is responsible for performing dragging operations, but
1926 the inner view, the view that holds the drag caret, should be consulted to determine
1927 if the drag is a move drag.
1929 * WebCoreSupport/WebFrameBridge.m:
1930 (-[WebFrameBridge startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
1931 * WebKit.xcodeproj/project.pbxproj:
1932 * WebView/WebHTMLView.m:
1933 (-[NSArray dragImage:at:offset:event:pasteboard:source:slideBack:]): Don't set initatedDrag here, because
1934 it's only the top level WebHTMLView that performs this operation.
1935 (-[WebHTMLView _setInitiatedDrag:]): Added.
1936 (-[WebHTMLView _initiatedDrag]): Ditto.
1937 (-[WebHTMLView _canProcessDragWithDraggingInfo:]): Ask the innerView if it initiated the drag,
1938 not the top level view.
1939 (-[WebHTMLView _isMoveDrag]): The top level view asks the innerView if it should perform
1940 a move drag, so don't ASSERT _isTopHTMLView.
1941 (-[WebHTMLView draggingUpdatedWithDraggingInfo:actionMask:]): Ask the innerView if _isMoveDrag.
1942 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): Ditto.
1943 * WebView/WebHTMLViewInternal.h: Added two private SPI so that
1944 the top level WebHTMLView can set and get the initiatedDrag BOOL.
1946 === Safari-521.27 ===
1948 2006-09-20 Brady Eidson <beidson@apple.com>
1950 Reviewed by Tim Omernick
1952 Fixing part of a crash Tim O showed me. [WebIconDatabase init] should finish
1953 gracefully even if we can't open the database
1955 * Misc/WebIconDatabase.m:
1956 (-[WebIconDatabase init]):
1958 2006-09-20 Timothy Hatcher <timothy@apple.com>
1962 <rdar://problem/4741392> Develop a system to find what version of WebKit an app was linked with
1964 * Misc/WebKitVersionChecks.h: Added.
1965 * Misc/WebKitVersionChecks.m: Added.
1966 (WebKitLinkedOnOrAfter): Added.
1967 (WebKitLinkTimeVersion): Added.
1968 (WebKitRunTimeVersion): Added.
1969 * WebKit.xcodeproj/project.pbxproj:
1971 2006-09-20 Tim Omernick <timo@apple.com>
1975 * Misc/WebIconDatabase.m:
1976 (-[WebIconDatabase init]):
1979 2006-09-20 Brady Eidson <beidson@apple.com>
1983 Preparing to make the WebIconDatabase disabled by default - this patch tells the bridge whether its enabled or not
1985 * Misc/WebIconDatabase.m:
1986 (-[WebIconDatabase init]):
1988 2006-09-19 Brady Eidson <beidson@apple.com>
1990 Reviewed by Sarge Decker
1992 <rdar://problem/4739892> and <rdar://problem/4729797>
1993 - WebCore::IconDatabase needs to have and respect an enabled() flag
1994 - Mail on ToT WebKit crashes in IconDatabase code when mailing a page from Safari
1996 * Misc/WebIconDatabase.m:
1997 (-[WebIconDatabase init]): If preference says icons are disabled, tell the bridge
1998 (-[WebIconDatabase _isEnabled]): Ask the bridge if the database is enabled
2000 2006-09-19 Alexey Proskuryakov <ap@nypop.com>
2004 http://bugs.webkit.org/show_bug.cgi?id=10661
2005 REGRESSION: CFM plug-ins (Shockwave, SVG) are not loaded
2007 * Plugins/WebBasePluginPackage.m:
2008 (-[WebBasePluginPackage initWithPath:]): On 32-bit PowerPC, don't bail out if
2009 the bundle is nil - it can be a CFM plugin.
2011 2006-09-18 Brady Eidson <beidson@apple.com>
2015 Implement a bridge method so WebCore can find the reload type of a frame load
2017 * WebCoreSupport/WebFrameBridge.m:
2018 (-[WebFrameBridge isLoadTypeReload]):
2020 2006-09-18 Sam Weinig <sam.weinig@gmail.com>
2024 Patch for http://bugs.webkit.org/show_bug.cgi?id=10903
2025 Yet Another Objective-C Bindings Patch
2027 * MigrateHeaders.make:
2029 2006-09-17 David Harrison <harrison@apple.com>
2031 Reviewed by John Sullivan.
2033 <rdar://problem/4494340> REGRESSION: Making the font size bigger/smaller in an HTML message doesn't affect the body until you reopen it
2035 Problem was the public API -[WebView setTextSizeMultiplier] did not notify anyone that the value changed.
2037 * WebView/WebDocumentInternal.h:
2038 Add _textSizeMultiplierChanged to the _WebDocumentTextSizing protocol.
2040 * WebView/WebHTMLView.m:
2041 (-[WebHTMLView _textSizeMultiplierChanged]):
2042 Send [self _updateTextSizeMultiplier].
2044 * WebView/WebPDFView.m:
2045 (-[WebPDFView _textSizeMultiplierChanged]):
2046 ASSERT_NOT_REACHED() because WebPDFView does not track the common multiplier.
2048 * WebView/WebView.m:
2049 (-[WebView setTextSizeMultiplier:]):
2050 Send [self _notifyTextSizeMultiplierChanged];
2052 (-[WebView _performTextSizingSelector:withObject:onTrackingDocs:selForNonTrackingDocs:newScaleFactor:]):
2053 Alter the _textSizeMultiplier directly so that notification is not sent.
2056 (-[WebView _notifyTextSizeMultiplierChanged]):
2057 New. Send _textSizeMultiplierChanged to all document views that track the common multiplier.
2059 2006-09-16 Brady Eidson <beidson@apple.com>
2063 WebIconLoader is dead, long live WebCore::IconLoader
2066 * Loader/WebFrameLoader.h:
2067 * Loader/WebFrameLoader.m:
2068 (-[WebFrameLoader dealloc]):
2069 (-[WebFrameLoader commitProvisionalLoad]):
2070 * Loader/WebIconLoader.h: Removed.
2071 * Loader/WebIconLoader.m: Removed.
2072 * Misc/WebIconDatabase.h:
2073 * Misc/WebIconDatabase.m:
2074 * Misc/WebIconDatabasePrivate.h:
2075 * WebCoreSupport/WebFrameBridge.m:
2076 (-[WebFrameBridge notifyIconChanged:]):
2077 * WebCoreSupport/WebIconDatabaseBridge.h:
2078 * WebCoreSupport/WebIconDatabaseBridge.m:
2079 (-[WebIconDatabaseBridge _init]):
2080 (-[WebIconDatabaseBridge _setIconData:forIconURL:]):
2081 (-[WebIconDatabaseBridge _setHaveNoIconForIconURL:]):
2083 * WebKit.xcodeproj/project.pbxproj:
2084 * WebView/WebDataSource.m:
2085 (-[WebDataSourcePrivate dealloc]):
2086 (-[WebDataSource _stopLoading]):
2087 (-[WebDataSource _setPrimaryLoadComplete:]):
2088 * WebView/WebDataSourceInternal.h:
2090 2006-09-16 Mark Rowe <opendarwin.org@bdash.net.nz>
2094 http://bugs.webkit.org/show_bug.cgi?id=10887
2097 * MigrateHeaders.make: Remove reference to DOMEventPrivate.h.
2099 2006-09-15 Timothy Hatcher <timothy@apple.com>
2103 Make new style ObjC methods public API.
2105 * MigrateHeaders.make:
2107 2006-09-15 Sam Weinig <sam.weinig@gmail.com>
2111 Patch for http://bugs.webkit.org/show_bug.cgi?id=10870
2112 Auto-generate DOMNode for the Objective-C bindings
2114 * MigrateHeaders.make:
2116 2006-09-15 Timothy Hatcher <timothy@apple.com>
2120 Call the bridge directly for alter selection calls. All of this logic is now
2121 in WebCore's SelectionController.
2123 * WebView/WebHTMLView.m:
2124 (-[NSArray moveBackward:]):
2125 (-[NSArray moveBackwardAndModifySelection:]):
2126 (-[NSArray moveDown:]):
2127 (-[NSArray moveDownAndModifySelection:]):
2128 (-[NSArray moveForward:]):
2129 (-[NSArray moveForwardAndModifySelection:]):
2130 (-[NSArray moveLeft:]):
2131 (-[NSArray moveLeftAndModifySelection:]):
2132 (-[NSArray moveRight:]):
2133 (-[NSArray moveRightAndModifySelection:]):
2134 (-[NSArray moveToBeginningOfDocument:]):
2135 (-[NSArray moveToBeginningOfDocumentAndModifySelection:]):
2136 (-[NSArray moveToBeginningOfSentence:]):
2137 (-[NSArray moveToBeginningOfSentenceAndModifySelection:]):
2138 (-[NSArray moveToBeginningOfLine:]):
2139 (-[NSArray moveToBeginningOfLineAndModifySelection:]):
2140 (-[NSArray moveToBeginningOfParagraph:]):
2141 (-[NSArray moveToBeginningOfParagraphAndModifySelection:]):
2142 (-[NSArray moveToEndOfDocument:]):
2143 (-[NSArray moveToEndOfDocumentAndModifySelection:]):
2144 (-[NSArray moveToEndOfSentence:]):
2145 (-[NSArray moveToEndOfSentenceAndModifySelection:]):
2146 (-[NSArray moveToEndOfLine:]):
2147 (-[NSArray moveToEndOfLineAndModifySelection:]):
2148 (-[NSArray moveToEndOfParagraph:]):
2149 (-[NSArray moveToEndOfParagraphAndModifySelection:]):
2150 (-[NSArray moveParagraphBackwardAndModifySelection:]):
2151 (-[NSArray moveParagraphForwardAndModifySelection:]):
2152 (-[NSArray moveUp:]):
2153 (-[NSArray moveUpAndModifySelection:]):
2154 (-[NSArray moveWordBackward:]):
2155 (-[NSArray moveWordBackwardAndModifySelection:]):
2156 (-[NSArray moveWordForward:]):
2157 (-[NSArray moveWordForwardAndModifySelection:]):
2158 (-[NSArray moveWordLeft:]):
2159 (-[NSArray moveWordLeftAndModifySelection:]):
2160 (-[NSArray moveWordRight:]):
2161 (-[NSArray moveWordRightAndModifySelection:]):
2162 (-[NSArray pageUp:]):
2163 (-[NSArray pageDown:]):
2164 (-[NSArray pageUpAndModifySelection:]):
2165 (-[NSArray pageDownAndModifySelection:]):
2167 2006-09-15 Adam Roben <aroben@apple.com>
2169 Reviewed by eseidel.
2171 Fixes http://bugs.webkit.org/show_bug.cgi?id=10876
2172 containsItemForURLUnicode uses matchLetter instead of
2175 Small fixes for _WebCoreHistoryProvider.
2177 * History/WebHistory.m: Consistently use BUFFER_SIZE #define
2178 (-[_WebCoreHistoryProvider containsItemForURLLatin1:length:]):
2179 (-[_WebCoreHistoryProvider containsItemForURLUnicode:length:]):
2180 Replace incorrect call to matchLetter to matchUnicodeLetter
2182 2006-09-13 Brady Eidson <beidson@apple.com>
2186 Add infrastructure to support icon loads taking place in WebCore
2187 Will remove WebKit icon loaders in a later patch
2189 * WebCoreSupport/WebFrameBridge.m:
2190 (-[WebFrameBridge notifyIconChanged:]):
2191 (-[WebFrameBridge originalRequestURL]):
2192 - Nuked two old, obsolete methods
2193 - Added bridge for notifying of an icon change
2194 - Added bridge for getting the "original request URL" which is still needed
2195 until that info is available in the WebCore loaders
2197 * WebView/WebDataSource.m:
2198 (-[WebDataSource _loadIcon]):
2199 - Empty body just for now, as it still gets called - next patch will prune all the old impl out
2201 2006-09-13 Timothy Hatcher <timothy@apple.com>
2205 <rdar://problem/4726416> obsolete confusing "ADVISORY NOTE" comment in WebHistory.h
2207 Removed the "ADVISORY NOTE: This method may change for the 1.0 SDK" comments.
2209 * History/WebHistory.h:
2211 === Safari-521.26 ===
2213 2006-09-11 MorganL <morlmor@yahoo.com>
2215 Reviewed/landed by aroben.
2217 Fixes http://bugs.webkit.org/show_bug.cgi?id=10765
2218 Windows build busted due to std::copy usage in Vector.h
2220 * WebKit.vcproj/WebKit.vcproj: Define _SCL_SECURE_NO_DEPRECATE to get
2221 rid of deprecation warnings on std::copy
2223 2006-09-11 Brady Eidson <beidson@apple.com>
2225 Despite the fact that some people built okay without this change, it sure was biting me,
2226 probably because I just wiped my build directory for a fresh build -
2227 Today's earlier removal of DOMList.h needed to occur in MigrateHeaders.make, as well
2229 * MigrateHeaders.make: removed DOMList.h
2231 2006-09-10 Darin Adler <darin@apple.com>
2235 - fix http://bugs.webkit.org/show_bug.cgi?id=10547
2236 REGRESSION: Links that should open in a new window open in the same window,
2237 while opening another blank window
2239 * WebView/WebFrame.m:
2240 (-[WebFrame _continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
2241 Changed a mistaken "self" to "frame", which was the cause of the bug. Also
2242 fixed the method so that it won't crash if createWebViewWithRequest does
2243 something that has a side effect of releasing this WebView or this frame
2244 by retaining "self" and "frame" as needed. Also fixed a problem where the
2245 code to set "opener" was backwards, and would set the opener of the old
2246 frame to point to the new frame instead of vice versa.
2248 2006-09-09 Sam Weinig <sam.weinig@gmail.com>
2252 Patch for http://bugs.webkit.org/show_bug.cgi?id=10795
2253 Auto-generate the Objective-C DOM XPath bindings
2255 * MigrateHeaders.make:
2257 2006-09-09 Sam Weinig <sam.weinig@gmail.com>
2261 Patch for http://bugs.webkit.org/show_bug.cgi?id=10791
2262 Even More Objective-C DOM auto-generation cleanup
2264 * MigrateHeaders.make:
2266 2006-09-08 Tim Omernick <timo@apple.com>
2268 Reviewed by Brady Eidson.
2270 Rolled out Maciej's code cleanup from 8/22. It turns out that keeping the "loading" flag
2271 is a useful optimization, as it avoids many Objective-C method calls while polling resources
2272 for their load state.
2274 This fixes a 3-4% PLT performance regression (as measured on my MacBook Pro).
2276 * Loader/WebFrameLoader.m:
2277 (-[WebFrameLoader addPlugInStreamLoader:]):
2278 (-[WebFrameLoader removePlugInStreamLoader:]):
2279 (-[WebFrameLoader addSubresourceLoader:]):
2280 (-[WebFrameLoader removeSubresourceLoader:]):
2281 * WebView/WebDataSource.m:
2282 (-[WebDataSourcePrivate dealloc]):
2283 (-[WebDataSource _prepareForLoadStart]):
2284 (-[WebDataSource _setLoading:]):
2285 (-[WebDataSource _updateLoading]):
2286 (-[WebDataSource _startLoading]):
2287 (-[WebDataSource _stopLoading]):
2288 (-[WebDataSource _setPrimaryLoadComplete:]):
2289 (-[WebDataSource isLoading]):
2290 * WebView/WebDataSourceInternal.h:
2292 2006-09-07 Sam Weinig <sam.weinig@gmail.com>
2294 Reviewed by Darin and Tim H.
2296 Patch for http://bugs.webkit.org/show_bug.cgi?id=10774
2297 Auto-generate the Objective-C DOM Traversal bindings
2299 * MigrateHeaders.make:
2301 2006-09-07 Sam Weinig <sam.weinig@gmail.com>
2305 Patch for http://bugs.webkit.org/show_bug.cgi?id=10766
2306 Auto-generate the Objective-C DOM Events bindings
2308 * MigrateHeaders.make:
2309 * WebKit.xcodeproj/project.pbxproj:
2311 2006-09-06 Alexey Proskuryakov <ap@nypop.com>
2313 * MigrateHeaders.make: Fixed a double slash in
2314 "$(PRIVATE_HEADERS_DIR)//DOMCharacterDataPrivate.h" (this was reported
2315 to cause a build failure under certain circumstances).
2317 2006-09-05 MorganL <morlmor@yahoocom>
2319 Reviewed/landed by aroben.
2321 Fixes bug 10743: Windows build is busted.
2324 (WebView::keyPress):
2326 2006-09-05 Timothy Hatcher <timothy@apple.com>
2330 Drastically simplified the makefile for migrating headers from
2331 WebCore and JavaScriptCore. The old version was always copying the files.
2333 * MigrateHeaders.make:
2335 2006-09-05 Darin Adler <darin@apple.com>
2339 - WebKit side of changes to encoding
2341 * WebView/WebHTMLRepresentation.m: (-[WebHTMLRepresentation documentSource]):
2342 Changed to call new -[WebCoreFrameBridge stringWithData:] instead of the calling
2343 the old methods that used a CFStringEncoding: -[WebCoreFrameBridge textEncoding]
2344 and +[WebCoreFrameBridge stringWithData:textEncoding:].
2346 * WebView/WebResource.m: (-[WebResource _stringValue]): Removed special case for
2347 nil encoding name. The bridge itself now has the rule that "nil encoding name
2348 means Latin-1", so we don't need to check for nil.
2350 * WebView/WebFrame.m: (-[WebFrame _checkLoadComplete]): Retain the frame until
2351 we get the parent frame while walking up parent frames, because it's possible
2352 for _checkLoadCompleteForThisFrame to release the last reference to the frame.
2353 (Not reviewed; needed to run performance tests successfully.)
2355 2006-09-05 Timothy Hatcher <timothy@apple.com>
2359 <rdar://problem/4682225> conflicting typedefs in Netscape plug-in headers
2361 * Plugins/npfunctions.h: fix the return type for NPN_IntFromIdentifierProcPtr to be int32_t
2363 2006-09-04 Timothy Hatcher <timothy@apple.com>
2367 Bug 10714: ObjC autogeneration needs safe-guards against easily modifying the public API
2368 http://bugs.webkit.org/show_bug.cgi?id=10714
2370 - Added the new private DOM headers.
2371 - Factored out the common commands into variables.
2372 - Made WebDashboardRegion.h private again.
2373 - Rename DOMDOMImplementation.h to DOMImplementation.h when files
2374 are migrated. Also fixes up #imports.
2376 * MigrateHeaders.make:
2378 2006-09-03 Sam Weinig <sam.weinig@gmail.com>
2380 Reviewed by Darin and Tim H.
2382 - patch for http://bugs.webkit.org/show_bug.cgi?id=10711
2383 Auto-generate the Objective-C DOM Stylesheet bindings
2385 * MigrateHeaders.make:
2387 2006-09-02 Sam Weinig <sam.weinig@gmail.com>
2391 - patch for http://bugs.webkit.org/show_bug.cgi?id=10684
2392 Auto-generate the Objective-C DOM CSS bindings
2394 * MigrateHeaders.make:
2396 2006-09-01 MorganL <morlmor@yahoo.com>
2398 Reviewed by Darin. Updated/landed by Adam.
2400 Fixes http://bugs.webkit.org/show_bug.cgi?id=10553
2404 (WebFrame::initWithName):
2406 2006-09-01 Brady Eidson <beidson@apple.com>
2410 A "never should be reached" method was reached - lets not release the shared database bridge, esp
2411 since we never retain it!
2413 * Misc/WebIconDatabase.m:
2414 (-[WebIconDatabase _applicationWillTerminate:]): Don't release the bridge
2416 2006-09-01 Darin Adler <darin@apple.com>
2420 - a few small tweaks to the icon database bridge
2422 * Misc/WebIconDatabase.m: (-[WebIconDatabase init]): Updated for name change.
2424 * WebCoreSupport/WebIconDatabaseBridge.h: Removed unneeded declarations.
2425 * WebCoreSupport/WebIconDatabaseBridge.m:
2426 (-[WebIconDatabaseBridge init]): Added. Always returns nil since you're not supposed
2427 to allocate one of these.
2428 (-[WebIconDatabaseBridge _init]): Renamed from init. Used internally to make the
2429 shared instance. Added the "self = [super init]" idiom even though it's not important
2430 in this case just to be consistent.
2431 (-[WebIconDatabaseBridge releaseCachedLoaderForIconURL:]): Moved this up in the file
2432 so it can be called without declaring it in the header.
2433 (+[WebIconDatabaseBridge sharedInstance]): Renamed. Calls the new _init. Also use
2434 CFRetain for compatibility.
2435 (-[WebIconDatabaseBridge dealloc]): Emptied this out and made it just assert (false).
2436 (-[WebIconDatabaseBridge finalize]): Added and made it assert (false) too.
2438 2006-09-01 Timothy Hatcher <timothy@apple.com>
2442 Bug 10677: Omit "-webkit-text-security: none;" from the computed style list
2443 http://bugs.webkit.org/show_bug.cgi?id=10677
2445 * WebInspector/webInspector/inspector.js:
2447 2006-08-31 Sam Weinig <sam.weinig@gmail.com>
2451 - patch for http://bugs.webkit.org/show_bug.cgi?id=10669
2452 Auto-generate the remaining Objective-C HTML DOM bindings
2454 * MigrateHeaders.make:
2456 2006-08-31 Adele Peterson <adele@apple.com>
2460 WebKit part of fix for http://bugs.webkit.org/show_bug.cgi?id=10666
2461 Password: Disallow Spelling, Font, Speech, and Writing Direction context menu
2463 * DefaultDelegates/WebDefaultContextMenuDelegate.m: (-[WebDefaultUIDelegate editingContextMenuItemsForElement:defaultMenuItems:]):
2464 Check that the selection isn't in a password field before adding these items to the default editing context menu.
2465 Search In Google, Search In Spotlight, Look up in Dictionary, Spelling, Font, Speech, Writing Direction
2466 * WebView/WebHTMLView.m: (-[WebHTMLView _isSelectionInPasswordField]): Added.
2467 * WebView/WebHTMLViewPrivate.h:
2469 2006-08-31 Sam Weinig <sam.weinig@gmail.com>
2473 - patch for http://bugs.webkit.org/show_bug.cgi?id=10653
2474 Auto-generate another 20 Objective-C DOM HTML bindings
2476 * MigrateHeaders.make:
2477 * WebKit.xcodeproj/project.pbxproj:
2479 2006-08-31 Adele Peterson <adele@apple.com>
2481 Reviewed by John Sullivan.
2483 Removed wkSecureEventInput and wkSetSecureEventInput, since this can be done with API.
2485 * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface):
2487 2006-08-31 John Sullivan <sullivan@apple.com>
2489 Reviewed by Tim Omernick
2491 - fixed <rdar://problem/4711200> Loading history would be faster if it bypassed
2492 NSURL API for local files
2494 * History/WebHistory.m:
2495 (-[WebHistoryPrivate _loadHistoryGutsFromURL:savedItemsCount:collectDiscardedItemsInto:error:]):
2496 Load file URLs using [NSDictionary dictionaryWithContentsOfFile:]. I also cleaned up some minor
2497 style issues in this method, and I removed the support for old NSArray-style history files (which we
2498 stopped using before Safari 1.0).
2500 2006-08-30 Adele Peterson <adele@apple.com>
2504 WebKit part of fix for http://bugs.webkit.org/show_bug.cgi?id=10575
2505 Enable secure input mode for new password fields
2507 * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface):
2509 2006-08-30 Brady Eidson <beidson@apple.com>
2513 <rdar://problem/4707718> Change behavior so if the WebCore::IconDatabase can't open, WebKit releases the bridge and
2514 continues on as if the IconDatabase is disabled.
2516 * Misc/WebIconDatabase.m:
2517 (-[WebIconDatabase init]): Release the bridge on failure to open
2518 * WebCoreSupport/WebIconDatabaseBridge.m:
2519 (+[WebIconDatabaseBridge sharedBridgeInstance]): Moved static shared instance out as a global
2520 (-[WebIconDatabaseBridge dealloc]): Clear pointer to the shared instance
2522 2006-08-30 Timothy Hatcher <timothy@apple.com>
2526 Simplify the header copies from WebCore and JavaScriptCore.
2527 Headers that need to be migrated from the other projects need
2528 to be added to MigrateHeaders.make.
2530 * MigrateHeaders.make: Added.
2531 * WebKit.xcodeproj/project.pbxproj:
2533 2006-08-30 Sam Weinig <sam.weinig@gmail.com>
2537 - patch for http://bugs.webkit.org/show_bug.cgi?id=10640
2538 Auto-generate 10 more Objective-C DOM HTML bindings
2540 * WebKit.xcodeproj/project.pbxproj:
2542 2006-08-30 Adele Peterson <adele@apple.com>
2546 WebKit part of fix for:
2547 http://bugs.webkit.org/show_bug.cgi?id=10576
2548 Disallow copy from new password fields
2550 * WebView/WebHTMLView.m:
2551 (-[WebHTMLView _canCopy]): Now also calls across the bridge to ask if it mayCopy.
2552 (-[WebHTMLView _canCut]): Calls _canCopy now.
2553 (-[NSArray validateUserInterfaceItem:]): Calls _canCut when validating the "Cut" menu item.
2554 This used to call _canDelete (which used to be the same as _canCut), but now _canCut also checks _canCopy.
2556 2006-08-30 Karl Adam <karladam@yahoo-inc.com>
2558 Reviewed by Eric and Tim H.
2560 Bug 10634: -webView:dragDestinationActionMaskForDraggingInfo: is ignored
2561 http://bugs.webkit.org/show_bug.cgi?id=10634
2563 Remove the check for canShowFile: from _web_bestURL: since
2564 it shouldn't be concerned with whether or not the view
2565 can show the URL, merely return the most appropriate URL.
2567 * Misc/WebNSPasteboardExtras.m:
2568 (-[NSPasteboard _web_bestURL]):
2569 * Misc/WebNSViewExtras.m:
2570 (-[NSView _web_dragOperationForDraggingInfo:]):
2572 2006-08-29 Brady Eidson <beidson@apple.com>
2574 Reviewed by Kevin Decker (Sarge)
2576 <rdar://problem/4678414> - New IconDB needs to delete icons when asked
2578 * Misc/WebIconDatabase.m:
2579 (-[WebIconDatabase removeAllIcons]): Call through to WebCore to remove icons, then send notification
2581 2006-08-29 Brady Eidson <beidson@apple.com>
2585 Added a truth value check for to setIconURL:forURL so WebKit can avoid sending a notification
2586 This is a win on the iBench
2588 * Misc/WebIconDatabase.m:
2589 (-[WebIconDatabase _setIconURL:forURL:]):
2591 2006-08-29 Brady Eidson <beidson@apple.com>
2593 Reviewed by Tim Hatchers rubber stamp
2595 Removed some accidentally left-in console spew during the conversion to the new DB
2597 * Misc/WebIconDatabase.m:
2598 (objectFromPathForKey): Nuked some NSLogs
2600 2006-08-29 Tim Omernick <timo@apple.com>
2602 Reviewed by Darin Adler.
2604 <rdar://problem/4688618> REGRESSION(10.4.7-9A241): JMol java applet fails in Safari not Firefox
2606 No layout test for now because Java doesn't work in DumpRenderTree.
2608 * Plugins/WebPluginDatabase.m:
2609 (-[WebPluginDatabase refresh]):
2610 Add each plug-in MIME type to registeredMIMETypes, even if we don't register a document view class for the
2611 MIME type. This fixes -[WebPluginDatabase isMIMETypeRegistered:] and thus fallback content for Java applets
2612 (we were always rendering fallback content, if any, for Java applets).
2614 2006-08-29 Sam Weinig <sam.weinig@gmail.com>
2618 - patch for http://bugs.webkit.org/show_bug.cgi?id=10628
2619 Auto-generate the remaining Objective-C DOM bindings
2621 Auto-generates DOMHTMLCollection, DOMHTMLElement, DOMHTMLFormElement,
2622 and DOMHTMLOptionsCollection.
2624 * WebKit.xcodeproj/project.pbxproj:
2626 2006-08-28 Brady Eidson <beidson@apple.com>
2630 Short of a few small snippets that still need to be pushed to WebCore, this
2631 is a final prune of WebIconDatabase. WebFileDatabase and WebLRUFileList are gone
2632 and the small remaining snippets of WebFileDatabase code that were still important
2633 are now in static functions in WebIconDatabase.m
2635 * Loader/WebIconLoader.m:
2636 (-[WebIconLoader didFinishLoading]): Removed the flag
2637 * Misc/WebFileDatabase.h: Removed.
2638 * Misc/WebFileDatabase.m: Removed.
2639 * Misc/WebIconDatabase.m:
2640 (+[WebIconDatabase sharedIconDatabase]):
2641 (-[WebIconDatabase init]):
2642 (-[WebIconDatabase iconForURL:withSize:cache:]):
2643 (-[WebIconDatabase iconURLForURL:]):
2644 (-[WebIconDatabase defaultIconWithSize:]):
2645 (-[WebIconDatabase retainIconForURL:]):
2646 (-[WebIconDatabase releaseIconForURL:]):
2647 (-[WebIconDatabase _isEnabled]):
2648 (-[WebIconDatabase _setIconData:forIconURL:]):
2649 (-[WebIconDatabase _setHaveNoIconForIconURL:]):
2650 (-[WebIconDatabase _setIconURL:forURL:]):
2651 (-[WebIconDatabase _hasEntryForIconURL:]):
2652 (-[WebIconDatabase _applicationWillTerminate:]):
2653 (-[WebIconDatabase _resetCachedWebPreferences:]):
2654 (uniqueFilePathForKey): Added from WebFileDatabase
2655 (objectFromPathForKey): Added from WebFileDatabase
2656 (iconDataFromPathForIconURL):
2657 (-[WebIconDatabase _convertToWebCoreFormat]): Make use of static functions and local variables
2658 instead of using WebFileDatabase and WebIconDatabase variables that are now obsolete
2659 * Misc/WebIconDatabasePrivate.h: Removed alot of obsoleted members
2660 * Misc/WebLRUFileList.h: Removed.
2661 * Misc/WebLRUFileList.m: Removed.
2662 * WebKit.xcodeproj/project.pbxproj: Deleted 4 files
2663 * WebKitPrefix.h: Removed ICONDEBUG
2665 2006-08-28 Tim Omernick <timo@apple.com>
2667 Reviewed by Darin Adler.
2669 * Plugins/WebBaseNetscapePluginView.m:
2670 (-[WebBaseNetscapePluginView createPluginScriptableObject]):
2671 Removed a bogus typecast.
2673 2006-08-28 Tim Omernick <timo@apple.com>
2675 Reviewed by John Sullivan.
2677 Part of <rdar://problem/4481553> NetscapeMoviePlugIn example code scripting doesn't work in Firefox (4319)
2678 <http://bugs.webkit.org/show_bug.cgi?id=4319>: NetscapeMoviePlugIn example code scripting doesn't work
2681 * Plugins/WebBaseNetscapePluginView.h:
2682 * Plugins/WebBaseNetscapePluginView.m:
2683 (-[WebBaseNetscapePluginView createPluginScriptableObject]):
2684 Renamed this method (see corresponding WebCore ChangeLog entry for an explanation).
2687 2006-08-28 Brady Eidson <beidson@apple.com>
2689 Reviewed by Tim Hatcher's rubberstamp
2691 Rolled out my last change (16070 - pruning WebFileDatabase code) as it caused a difficult-to-track down
2692 failure in layout tests on a release build.
2694 * Misc/WebFileDatabase.h:
2695 * Misc/WebFileDatabase.m:
2696 (+[WebFileDatabaseOp opWithCode:key:object:]):
2697 (-[WebFileDatabaseOp initWithCode:key:object:]):
2698 (-[WebFileDatabaseOp opcode]):
2699 (-[WebFileDatabaseOp key]):
2700 (-[WebFileDatabaseOp object]):
2701 (-[WebFileDatabaseOp perform:]):
2702 (-[WebFileDatabaseOp dealloc]):
2703 (SetThreadPriority):
2704 (-[WebFileDatabase _createLRUList:]):
2705 (-[WebFileDatabase _truncateToSizeLimit:]):
2706 (+[WebFileDatabase _syncLoop:]):
2708 (-[WebFileDatabase setTimer]):
2709 (-[WebFileDatabase setObject:forKey:]):
2710 (-[WebFileDatabase removeObjectForKey:]):
2711 (-[WebFileDatabase removeAllObjects]):
2712 (-[WebFileDatabase objectForKey:]):
2713 (-[WebFileDatabase performSetObject:forKey:]):
2714 (-[WebFileDatabase performRemoveObjectForKey:]):
2715 (-[WebFileDatabase open]):
2716 (-[WebFileDatabase close]):
2717 (-[WebFileDatabase lazySync:]):
2718 (-[WebFileDatabase sync]):
2719 (-[WebFileDatabase sizeLimit]):
2720 (-[WebFileDatabase count]):
2721 (-[WebFileDatabase usage]):
2722 (-[WebFileDatabase setSizeLimit:]):
2723 * Misc/WebIconDatabase.m:
2724 (-[WebIconDatabase _createFileDatabase]):
2725 (-[WebIconDatabase _loadIconDictionaries]):
2726 * WebKit.xcodeproj/project.pbxproj:
2728 2006-08-28 Darin Adler <darin@apple.com>
2730 Reviewed by Tim Hatcher.
2732 * WebInspector/webInspector/inspector.js: Add "resize: none" to the list of
2733 default values for CSS properties so it will be omitted from most displays
2736 2006-08-28 Brady Eidson <beidson@apple.com>
2740 Major prune of unnecessary WebFileDatabase code. In the end, what
2741 useful code that remains in WebFileDatabase will likely be moved directly
2742 into WebIconDatabase
2744 * Misc/WebFileDatabase.h:
2745 * Misc/WebFileDatabase.m:
2746 (-[WebFileDatabase initWithPath:]):
2747 (-[WebFileDatabase objectForKey:]):
2748 (-[WebFileDatabase open]):
2749 (-[WebFileDatabase close]):
2750 * Misc/WebIconDatabase.m:
2751 (-[WebIconDatabase _createFileDatabase]):
2752 (-[WebIconDatabase _loadIconDictionaries]):
2753 * Misc/WebLRUFileList.h: Removed.
2754 * Misc/WebLRUFileList.m: Removed.
2755 * WebKit.xcodeproj/project.pbxproj:
2757 2006-08-27 Sam Weinig <sam.weinig@gmail.com>
2761 - patch for http://bugs.webkit.org/show_bug.cgi?id=4624
2762 WebCore needs autogenerated Obj-C DOM bindings
2764 First round of auto-generated Objective C DOM bindings, starting
2767 * WebKit.xcodeproj/project.pbxproj:
2769 2006-08-25 Brady Eidson <beidson@apple.com>
2771 Reviewed by Tim Hatcher
2773 Fixed up some leaks on [WebIconDatabase init]
2775 * Misc/WebIconDatabase.m:
2776 (-[WebIconDatabase init]):
2778 2006-08-24 Timothy Hatcher <timothy@apple.com>
2782 * WebView/WebFrame.m:
2783 (-[WebFrame _updateBackground]): reworded the comment about scroll view and setDrawsBackground:YES
2784 * WebView/WebView.m:
2785 (-[WebViewPrivate dealloc]): release the background color
2787 2006-08-24 Timothy Hatcher <timothy@apple.com>
2791 WebView API to allow changing the background color that draws under transparent page backgrounds.
2793 * WebView/WebFrame.m:
2794 (-[WebFrame _makeDocumentView]):
2795 (-[WebFrame _updateBackground]):
2796 * WebView/WebFrameInternal.h:
2797 * WebView/WebFrameView.m:
2798 (-[WebFrameView drawRect:]):
2799 * WebView/WebView.m:
2800 (-[WebView setBackgroundColor:]):
2801 (-[WebView backgroundColor]):
2802 (-[WebView _commonInitializationWithFrameName:groupName:]):
2803 (-[WebView setDrawsBackground:]):
2804 * WebView/WebViewPrivate.h:
2806 2006-08-24 Timothy Hatcher <timothy@apple.com>
2810 Fix for Mail stationary. Selecting a stationary item would cause this exception.
2811 *** -[WebSubresourceLoader copyWithZone:]: selector not recognized
2812 Uncaught exception - *** -[WebSubresourceLoader copyWithZone:]: selector not recognized
2814 * Loader/WebFrameLoader.m:
2815 (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
2816 Use _webkit_setObject:forUncopiedKey: when addign the resource to pendingArchivedResources.
2818 2006-08-23 Maciej Stachowiak <mjs@apple.com>
2822 - fix assertion which I accidentally changed to one that sometimes fails
2823 http://bugs.webkit.org/show_bug.cgi?id=10531
2825 * Loader/WebDocumentLoadState.m:
2826 (-[WebDocumentLoadState dealloc]):
2827 * WebView/WebDataSource.m:
2828 (-[WebDataSourcePrivate dealloc]):
2829 (-[WebDataSource dealloc]):
2831 2006-08-23 Maciej Stachowiak <mjs@apple.com>
2835 - move WebFrame code that creates WebDataSources down to WebFrameLoader, in preparation
2836 for WebFrameLoader just holding on to WebDocumentLoadState
2838 * Loader/WebFrameLoader.h:
2839 * Loader/WebFrameLoader.m:
2840 (-[WebFrameLoader _loadRequest:archive:]):
2841 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
2842 (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
2843 (-[WebFrameLoader reload]):
2844 * WebView/WebFrame.m:
2845 (-[WebFrame _loadItem:withLoadType:]):
2846 (-[WebFrame _continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
2847 (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
2848 (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
2849 (-[WebFrame _shouldReloadToHandleUnreachableURLFromRequest:]):
2850 (-[WebFrame loadRequest:]):
2851 (-[WebFrame loadArchive:]):
2852 (-[WebFrame reload]):
2853 * WebView/WebFrameInternal.h:
2854 * WebView/WebFramePrivate.h:
2855 * WebView/WebView.m:
2856 (-[WebView setCustomTextEncodingName:]):
2858 2006-08-23 Brady Eidson <beidson@apple.com>
2862 First pass at pruning unused WebIconDatabase code. Focus on removing methods that simply
2863 have no place in the new DB at all. A few renames and a few important FIXMEs result, but no
2864 functionality changes.
2866 * Loader/WebIconLoader.m:
2867 (-[WebIconLoader didFinishLoading]): Call to WebIconDatabase instead of directly to the bridge
2868 * Misc/WebIconDatabase.h:
2869 * Misc/WebIconDatabase.m:
2870 (-[WebIconDatabase init]):
2871 (-[WebIconDatabase iconForURL:withSize:cache:]):
2872 (-[WebIconDatabase iconURLForURL:]):
2873 (-[WebIconDatabase defaultIconWithSize:]):
2874 (-[WebIconDatabase retainIconForURL:]):
2875 (-[WebIconDatabase releaseIconForURL:]):
2876 (-[WebIconDatabase removeAllIcons]):
2877 (-[WebIconDatabase _setIconData:forIconURL:]):
2878 (-[WebIconDatabase _setHaveNoIconForIconURL:]):
2879 (-[WebIconDatabase _setIconURL:forURL:]):
2880 (-[WebIconDatabase _hasEntryForIconURL:]):
2881 (-[WebIconDatabase _applicationWillTerminate:]):
2882 (-[WebIconDatabase _resetCachedWebPreferences:]):
2883 * Misc/WebIconDatabasePrivate.h: Changed setIcon: to setIconData:
2885 2006-08-23 Maciej Stachowiak <mjs@apple.com>
2889 - started factoring most of the guts of WebDataSource into a new class
2891 WebDocumentLoadState is decoupled from the rest of WebKit and will
2892 be moved down to WebCore. I only moved one of the data fields of
2893 WebDataSource for now.
2895 * Loader/WebDocumentLoadState.h: Added.
2896 * Loader/WebDocumentLoadState.m: Added.
2897 (-[WebDocumentLoadState initWithRequest:]): New class.
2898 (-[WebDocumentLoadState dealloc]):
2899 (-[WebDocumentLoadState setFrameLoader:]):
2900 (-[WebDocumentLoadState setMainResourceData:]):
2901 (-[WebDocumentLoadState mainResourceData]):
2902 * Loader/WebFrameLoader.m:
2903 (-[WebFrameLoader _setDataSource:]): Remove redundant _setWebFrame: call,
2904 it would have been called already by this point.
2905 (-[WebFrameLoader _setProvisionalDataSource:]): ditto.
2906 * WebKit.xcodeproj/project.pbxproj:
2907 * WebView/WebDataSource.m:
2908 (-[WebDataSourcePrivate dealloc]):
2909 (-[WebDataSource _setWebFrame:]):
2910 (-[WebDataSource _setPrimaryLoadComplete:]):
2911 (-[WebDataSource initWithRequest:]):
2912 (-[WebDataSource data]):
2914 2006-08-23 Maciej Stachowiak <mjs@apple.com>
2918 - refactoring of WebDataSource in preparation for moving a bunch of it to a new class
2920 - minimize WebDataSourceInternal.h to be only methods called from outside WebDataSource
2921 - reduce Private category implementation to be only the SPI methods
2922 - make new Internal and FileInternal categories which contain the
2923 remainder (depending on whether they are called from outside of
2926 * WebView/WebDataSource.m:
2927 (-[WebDataSource _setMainDocumentError:]):
2928 (addTypesFromClass):
2929 (+[WebDataSource _representationClassForMIMEType:]):
2930 (-[WebDataSource _commitIfReady]):
2931 (-[WebDataSource _commitLoadWithData:]):
2932 (-[WebDataSource _doesProgressiveLoadWithMIMEType:]):
2933 (-[WebDataSource _addResponse:]):
2934 (-[WebDataSource _revertToProvisionalState]):
2935 (-[WebDataSource _mainDocumentError]):
2936 (-[WebDataSource _addSubframeArchives:]):
2937 (-[WebDataSource _fileWrapperForURL:]):
2938 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
2939 (-[WebDataSource _decidePolicyForMIMEType:decisionListener:]):
2940 (-[WebDataSource _finishedLoading]):
2941 (-[WebDataSource _setResponse:]):
2942 (-[WebDataSource _setRequest:]):
2943 (-[WebDataSource _setupForReplaceByMIMEType:]):
2944 (-[WebDataSource _receivedMainResourceError:complete:]):
2945 (-[WebDataSource _mainReceivedError:complete:]):
2946 (-[WebDataSource _defersCallbacks]):
2947 (-[WebDataSource _downloadWithLoadingConnection:request:response:proxy:]):
2948 (-[WebDataSource _didFailLoadingWithError:forResource:]):
2949 (-[WebDataSource _didFinishLoadingForResource:]):
2950 (-[WebDataSource _didReceiveData:contentLength:forResource:]):
2951 (-[WebDataSource _didReceiveResponse:forResource:]):
2952 (-[WebDataSource _didCancelAuthenticationChallenge:forResource:]):
2953 (-[WebDataSource _didReceiveAuthenticationChallenge:forResource:]):
2954 (-[WebDataSource _willSendRequest:forResource:redirectResponse:]):
2955 (-[WebDataSource _identifierForInitialRequest:]):
2956 (-[WebDataSource _archivedSubresourceForURL:]):
2957 (-[WebDataSource _startLoading]):
2958 (-[WebDataSource _stopRecordingResponses]):
2959 (-[WebDataSource _loadingStartedTime]):
2960 (-[WebDataSource _replaceSelectionWithArchive:selectReplacement:]):
2961 (-[WebDataSource _documentFragmentWithArchive:]):
2962 (-[WebDataSource _documentFragmentWithImageResource:]):
2963 (-[WebDataSource _imageElementWithImageResource:]):
2964 (-[WebDataSource _title]):
2965 (-[WebDataSource _isStopping]):
2966 (-[WebDataSource _setWebFrame:]):
2967 (-[WebDataSource _URL]):
2968 (-[WebDataSource _loadFromPageCache:]):
2969 (-[WebDataSource _popSubframeArchiveWithName:]):
2970 (-[WebDataSource _setIsClientRedirect:]):
2971 (-[WebDataSource _setURL:]):
2972 (-[WebDataSource _setLastCheckedRequest:]):
2973 (-[WebDataSource _defersCallbacksChanged]):
2974 (-[WebDataSource _lastCheckedRequest]):
2975 (-[WebDataSource _stopLoading]):
2976 (-[WebDataSource _bridge]):
2977 (-[WebDataSource _webView]):
2978 (-[WebDataSource _triggeringAction]):
2979 (-[WebDataSource _setTriggeringAction:]):
2980 (-[WebDataSource __adoptRequest:]):
2981 (-[WebDataSource _isDocumentHTML]):
2982 (-[WebDataSource _stopLoadingWithError:]):
2983 (-[WebDataSource _setPrimaryLoadComplete:]):
2984 (-[WebDataSource _responses]):
2985 (-[WebDataSource _makeRepresentation]):
2986 (-[WebDataSource _isClientRedirect]):
2987 (-[WebDataSource _originalRequest]):
2988 (-[WebDataSource _URLForHistory]):
2989 (-[WebDataSource _addToUnarchiveState:]):
2990 (-[WebDataSource _setOverrideEncoding:]):
2991 (-[WebDataSource _setIconURL:]):
2992 (-[WebDataSource _setIconURL:withType:]):
2993 (-[WebDataSource _overrideEncoding]):
2994 (-[WebDataSource _setTitle:]):
2995 * WebView/WebDataSourceInternal.h:
2997 2006-08-23 Brady Eidson <beidson@apple.com>
2999 Reviewed by John Sullivan
3002 Flip the switch to the new Icon Database
3003 Massive code pruning is coming up
3005 * WebKitPrefix.h: Flipped the switch
3007 2006-08-23 Brady Eidson <beidson@apple.com>
3010 Since I just pushed the default URL icon from WebKit to WebCore, but
3011 WebKit was still using its version of the default icon, this patch makes it
3012 use the WebCore version
3014 * Misc/WebIconDatabase.m:
3015 (-[WebIconDatabase defaultIconWithSize:]):
3017 2006-08-22 Maciej Stachowiak <mjs@apple.com>
3021 - remove "loading" flag from WebDataSource and code that manages it; it is redundat.
3023 * Loader/WebFrameLoader.m:
3024 (-[WebFrameLoader addPlugInStreamLoader:]):
3025 (-[WebFrameLoader removePlugInStreamLoader:]):
3026 (-[WebFrameLoader addSubresourceLoader:]):
3027 (-[WebFrameLoader removeSubresourceLoader:]):
3028 * WebView/WebDataSource.m:
3029 (-[WebDataSourcePrivate dealloc]):
3030 (-[WebDataSource _setPrimaryLoadComplete:]):
3031 (-[WebDataSource _stopLoading]):
3032 (-[WebDataSource _prepareForLoadStart]):
3033 (-[WebDataSource _startLoading]):
3034 (-[WebDataSource isLoading]):
3035 * WebView/WebDataSourceInternal.h:
3037 2006-08-22 Maciej Stachowiak <mjs@apple.com>
3041 <rdar://problem/4683948> REGRESSION: Assertion failure in [FrameProgressEntry addChild:forDataSource:] (fandango.com)
3043 * Loader/WebFrameLoader.m:
3044 (-[WebFrameLoader addSubresourceLoader:]): Add a WebKit-level assertion that should fire when this bad
3046 * Loader/WebSubresourceLoader.m:
3047 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]): Prevent
3048 the situation from occuring.
3050 2006-08-22 Maciej Stachowiak <mjs@apple.com>
3054 - pull more WebDataSource code into WebFrameLoader
3055 - make WebMainResourceLoader not depend on WebKit or on SPI
3057 * Loader/WebFrameLoader.h:
3058 * Loader/WebFrameLoader.m:
3059 (-[WebFrameLoader _downloadWithLoadingConnection:request:response:proxy:]):
3060 (-[WebFrameLoader _updateIconDatabaseWithURL:]):
3061 (-[WebFrameLoader _notifyIconChanged:]):
3062 (-[WebFrameLoader _iconLoaderReceivedPageIcon:]):
3063 (-[WebFrameLoader _checkNavigationPolicyForRequest:andCall:withSelector:]):
3064 (-[WebFrameLoader _checkContentPolicyForMIMEType:andCall:withSelector:]):
3065 (-[WebFrameLoader cancelContentPolicy]):
3066 * Loader/WebIconLoader.m:
3067 (-[WebIconLoader didFinishLoading]):
3068 * Loader/WebLoader.m:
3069 (-[NSURLProtocol loadWithRequest:]):
3070 (-[NSURLProtocol setDefersCallbacks:]):
3071 * Loader/WebMainResourceLoader.h:
3072 * Loader/WebMainResourceLoader.m:
3073 (-[WebMainResourceLoader initWithFrameLoader:]):
3074 (-[WebMainResourceLoader dealloc]):
3075 (-[WebMainResourceLoader cancelWithError:]):
3076 (-[WebMainResourceLoader continueAfterNavigationPolicy:formState:]):
3077 (-[WebMainResourceLoader willSendRequest:redirectResponse:]):
3078 (-[WebMainResourceLoader continueAfterContentPolicy:]):
3079 (-[WebMainResourceLoader checkContentPolicy]):
3080 (-[WebMainResourceLoader didReceiveResponse:]):
3081 * Plugins/WebPluginContainerCheck.m:
3082 * WebCoreSupport/WebSystemInterface.m:
3083 (InitWebCoreSystemInterface):
3084 * WebView/WebDataSource.m:
3085 (-[WebDataSource _loadIcon]):
3086 (-[WebDataSource _cancelledError]):
3087 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
3088 (+[WebDataSource _representationClassForMIMEType:]):
3089 (-[WebDataSource _commitLoadWithData:]):
3090 (-[WebDataSource _isDocumentHTML]):
3091 * WebView/WebDataSourceInternal.h:
3092 * WebView/WebFramePrivate.h:
3093 * WebView/WebPolicyDelegate.m:
3094 * WebView/WebPolicyDelegatePrivate.h:
3096 2006-08-21 Maciej Stachowiak <mjs@apple.com>
3100 - move more code from WebDataSource to WebFrameLoader
3102 Also marked a few more methods in WebDataSource as likely MOVABLE in a future round, since they do not
3103 use any of WebDataSource's private data.
3105 * Loader/WebFrameLoader.h:
3106 * Loader/WebFrameLoader.m:
3107 (-[WebFrameLoader addPlugInStreamLoader:]):
3108 (-[WebFrameLoader removePlugInStreamLoader:]):
3109 (-[WebFrameLoader addSubresourceLoader:]):
3110 (-[WebFrameLoader removeSubresourceLoader:]):
3111 (-[WebFrameLoader _didReceiveAuthenticationChallenge:forResource:]):
3112 (-[WebFrameLoader _didCancelAuthenticationChallenge:forResource:]):
3113 (-[WebFrameLoader _didReceiveResponse:forResource:]):
3114 (-[WebFrameLoader _didReceiveData:contentLength:forResource:]):
3115 (-[WebFrameLoader _didFinishLoadingForResource:]):
3116 (-[WebFrameLoader _didFailLoadingWithError:forResource:]):
3117 (-[WebFrameLoader _privateBrowsingEnabled]):
3118 (-[WebFrameLoader _finishedLoadingResource]):
3119 (-[WebFrameLoader _receivedError:]):
3120 (-[WebFrameLoader _finishedLoading]):
3121 * Loader/WebMainResourceLoader.m:
3122 (-[WebMainResourceLoader didReceiveData:lengthReceived:allAtOnce:]):
3123 (-[WebMainResourceLoader didFinishLoading]):
3124 * Loader/WebNetscapePlugInStreamLoader.m:
3125 (-[WebNetscapePlugInStreamLoader didFinishLoading]):
3126 (-[WebNetscapePlugInStreamLoader didFailWithError:]):
3127 (-[WebNetscapePlugInStreamLoader cancelWithError:]):
3128 * Loader/WebSubresourceLoader.m:
3129 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
3130 (-[WebSubresourceLoader signalFinish]):
3131 (-[WebSubresourceLoader didFailWithError:]):
3132 (-[WebSubresourceLoader cancel]):
3133 * Plugins/WebNetscapePluginStream.m:
3134 (-[WebNetscapePluginStream start]):
3135 * WebView/WebDataSource.m:
3136 (-[WebDataSource _replaceSelectionWithArchive:selectReplacement:]):
3137 (-[WebDataSource _updateIconDatabaseWithURL:]):
3138 (-[WebDataSource _loadIcon]):
3139 (-[WebDataSource _setPrimaryLoadComplete:]):
3140 (-[WebDataSource _cancelledError]):
3141 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
3142 (+[WebDataSource _representationClassForMIMEType:]):
3143 (-[WebDataSource _commitLoadWithData:]):
3144 (-[WebDataSource _receivedMainResourceError:complete:]):
3145 (-[WebDataSource _iconLoaderReceivedPageIcon:]):
3146 (-[WebDataSource _isDocumentHTML]):
3147 * WebView/WebDataSourceInternal.h:
3149 2006-08-21 Brady Eidson <beidson@apple.com>
3153 Quick ICONDEBUG flag fix
3155 * Misc/WebIconDatabase.m:
3156 (-[WebIconDatabase _applicationWillTerminate:]):
3158 2006-08-21 Brady Eidson <beidson@apple.com>
3162 -Renamed an internal only method for clarity
3163 -Tweaked WebDataSource for notification purposes with the new expiring icons
3164 -Fixed a bug with the ICONDEBUG flag
3166 * Misc/WebIconDatabase.m:
3167 (-[WebIconDatabase init]):
3168 (-[WebIconDatabase iconForURL:withSize:cache:]): #ifdef bug fixed
3169 (-[WebIconDatabase _hasEntryForIconURL:]): Renamed for clarity
3170 * Misc/WebIconDatabasePrivate.h:
3171 * WebView/WebDataSource.m:
3172 (-[WebDataSource _updateIconDatabaseWithURL:]):
3173 (-[WebDataSource _notifyIconChanged:]):
3174 (-[WebDataSource _loadIcon]):
3175 (-[WebDataSource _iconLoaderReceivedPageIcon:]):
3177 2006-08-17 Maciej Stachowiak <mjs@apple.com>
3181 - pull a bit of WebDataSource code into WebFrameLoader
3183 * Loader/WebFrameLoader.m:
3184 (-[WebFrameLoader _receivedError:]):
3185 (-[WebFrameLoader webFrame]):
3186 (-[WebFrameLoader _handleFallbackContent]):
3187 (+[WebFrameLoader _canShowMIMEType:]):
3188 (+[WebFrameLoader _representationExistsForURLScheme:]):
3189 (+[WebFrameLoader _generatedMIMETypeForURLScheme:]):
3190 * WebView/WebDataSource.m:
3191 * WebView/WebDataSourceInternal.h:
3193 2006-08-17 Timothy Hatcher <timothy@apple.com>
3195 Reviewed by Kevin Decker.
3197 <rdar://problem/4606857> WebKit: WebPreferencesChangedNotification not exported in 64-bit
3201 2006-08-17 Timothy Hatcher <timothy@apple.com>
3203 Reviewed by Kevin Decker.
3205 <rdar://problem/4633896> -[WebView close] should clear all delegates and call setHostWindow:nil
3206 <rdar://problem/4649759> Crash when selecting View Source menu using Chinese (-[WebView _close])
3208 Check to make sure _private is not null. A WebView can be dealloced before _private is setup.
3209 Set the _private->closed flag at the beginning of _close to prevent reentry.
3210 Set the host window and all the delegates to nil in _close.
3212 * WebView/WebView.m:
3213 (-[WebView _close]):
3215 2006-08-16 Brady Eidson <beidson@apple.com>
3219 * Misc/WebIconDatabase.m: Pruned unused method
3220 * Misc/WebIconDatabasePrivate.h: Ditto
3223 2006-08-15 Maciej Stachowiak <mjs@apple.com>
3225 Reviewed by Adele (preliminary version) and later by Kevin.
3227 - remove most WebKit dependencies from WebMainResourceLoader.
3229 * Loader/WebFrameLoader.h:
3230 * Loader/WebFrameLoader.m:
3231 (-[WebFrameLoader cannotShowMIMETypeForURL:]):
3232 (-[WebFrameLoader interruptForPolicyChangeErrorWithRequest:]):
3233 (-[WebFrameLoader isHostedByObjectElement]):
3234 (-[WebFrameLoader isLoadingMainFrame]):
3235 (+[WebFrameLoader _canShowMIMEType:]):
3236 (+[WebFrameLoader _representationExistsForURLScheme:]):
3237 (+[WebFrameLoader _generatedMIMETypeForURLScheme:]):
3238 * Loader/WebMainResourceLoader.h:
3239 * Loader/WebMainResourceLoader.m:
3240 (-[WebMainResourceLoader interruptForPolicyChangeError]):
3241 (-[WebMainResourceLoader willSendRequest:redirectResponse:]):
3242 (isCaseInsensitiveEqual):
3243 (shouldLoadAsEmptyDocument):
3244 (-[WebMainResourceLoader continueAfterContentPolicy:response:]):
3245 (-[WebMainResourceLoader didReceiveResponse:]):
3246 (-[WebMainResourceLoader didReceiveData:lengthReceived:allAtOnce:]):
3247 (-[WebMainResourceLoader didFinishLoading]):
3248 (-[WebMainResourceLoader loadWithRequestNow:]):
3249 (-[WebMainResourceLoader loadWithRequest:]):
3251 2006-08-15 Tim Omernick <timo@apple.com>
3253 Reviewed by Kevin Decker.
3255 * Plugins/WebNetscapePluginPackage.m:
3256 (-[WebNetscapePluginPackage _unloadWithShutdown:]):
3257 Fixed a subtle problem with the 64-bit debug build -- as written, this would LOG() on 64-bit and do nothing on
3259 * Plugins/WebPluginDatabase.m:
3260 (-[WebPluginDatabase _scanForNewPlugins]):
3261 Use +[NSMutableSet set] here.
3263 2006-08-15 Tim Omernick <timo@apple.com>
3265 Reviewed by Darin Adler.
3267 <http://bugs.webkit.org/show_bug.cgi?id=8980>
3268 ASSERTION FAILED: !isLoaded (WebKit/WebKit/Plugins/WebBasePluginPackage.m:228 -[WebBasePluginPackage dealloc])
3270 <rdar://problem/4526052> intermittent assertion failure in -[WebBasePluginPackage dealloc] running layout tests (8980)
3272 * Plugins/WebPluginDatabase.h:
3273 * Plugins/WebPluginDatabase.m:
3274 (+[WebPluginDatabase installedPlugins]):
3275 Observe NSApplicationWillTerminateNotification so we can unload plug-ins on quit.
3276 (-[WebPluginDatabase plugins]):
3277 'plugins' is now a dictionary.
3278 (-[WebPluginDatabase close]):
3279 Call new -_removePlugin: method.
3280 (-[WebPluginDatabase refresh]):
3281 Moved parts of this method out into other methods: -_addPlugin:, -_removePlugin:, and -_scanForNewPlugins.
3282 (-[WebPluginDatabase _plugInPaths]):
3283 No changes; just moved in file.
3284 (-[WebPluginDatabase _addPlugin:]):
3285 New method. Refactored from -refresh. Adds a plug-in to the database.
3286 (-[WebPluginDatabase _removePlugin:]):
3287 New method. Refactored from -refresh. Remove a plug-in from the database.
3288 (-[WebPluginDatabase _scanForNewPlugins]):
3289 New method. Refactored from -refresh. Returns the list of plug-in packages on disk.
3290 (-[WebPluginDatabase _applicationWillTerminate]):
3291 New method. Called when the application terminates. Closes the plug-in database so that all plug-ins are
3292 removed from the DB (and unloaded if necessary).
3294 * Plugins/WebBasePluginPackage.h:
3295 * Plugins/WebBasePluginPackage.m:
3296 (-[WebBasePluginPackage initWithPath:]):
3297 Try to create the NSBundle first, so if the file is not a valid bundle we bail out early. This
3298 avoids some stat()s and allocations during the plug-in refresh process.
3299 (-[WebBasePluginPackage isLoaded]):
3301 (-[WebBasePluginPackage load]):
3302 Base class for plug-in packages now always loads "successfully".
3303 (-[WebBasePluginPackage dealloc]):
3304 Removed this assertion. The base plug-in package class has no concept of
3306 (-[WebBasePluginPackage finalize]):
3308 (-[WebBasePluginPackage wasRemovedFromPluginDatabase:]):
3309 Moved code to unload plug-in package to WebNetscapePluginPackage. Not all plug-in
3310 packages can be "unloaded".
3312 * Plugins/WebNetscapePluginPackage.h:
3313 * Plugins/WebNetscapePluginPackage.m:
3314 (-[WebNetscapePluginPackage _unloadWithShutdown:]):
3315 Combined old -unload and -unloadWithoutShutdown methods into this new one.
3316 (-[WebNetscapePluginPackage initWithPath:]):
3317 Call new unload method.
3318 (-[WebNetscapePluginPackage load]):
3320 (-[WebNetscapePluginPackage wasRemovedFromPluginDatabase:]):
3322 (-[WebNetscapePluginPackage open]):
3323 New method. Called when a plug-in instance starts running.
3324 (-[WebNetscapePluginPackage close]):
3325 New method. Called when a plug-in instance stops running. When all plug-in instances
3326 close the plug-in package, and the plug-in package is removed from the database, the plug-in
3329 * Plugins/WebPluginPackage.m:
3330 (-[WebPluginPackage initWithPath:]):
3331 (-[WebPluginPackage load]):
3332 Made this a bit more efficient by checking if the bundle is already loaded.
3333 (-[WebBasePluginPackage unload]):
3335 (-[WebBasePluginPackage isLoaded]):
3338 * Plugins/WebBaseNetscapePluginView.m:
3339 (-[WebBaseNetscapePluginView start]):
3340 Open the plug-in package so it remains loaded while this instance uses it.
3341 (-[WebBaseNetscapePluginView stop]):
3342 Close the plug-in package when the plug-in instance is stopped.
3344 * Plugins/WebBaseNetscapePluginStream.m:
3345 (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:]):
3346 This check is not necessary. Netscape plug-in packages are never unloaded until all their instances have
3347 been stopped, and a Netscape plug-in instance will stop its streams when it is stopped.
3348 (-[WebBaseNetscapePluginStream _destroyStream]):
3350 (-[WebBaseNetscapePluginStream finishedLoadingWithData:]):
3352 (-[WebBaseNetscapePluginStream _deliverData]):
3355 2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
3359 Build fix: DWARF and -gfull are incompatible with symbol separation.
3361 * WebKit.xcodeproj/project.pbxproj:
3363 2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
3367 http://bugs.webkit.org/show_bug.cgi?id=10394
3368 Bug 10394: WebKit Release and Production configurations should enable dead code stripping
3370 * WebKit.xcodeproj/project.pbxproj:
3372 2006-08-15 Maciej Stachowiak <mjs@apple.com>
3376 - remove WebKit dependencies from WebPlugInStreamLoader via a protocol veil of ignorance
3378 * Loader/WebNetscapePlugInStreamLoader.h:
3379 * Loader/WebNetscapePlugInStreamLoader.m:
3380 (-[WebNetscapePlugInStreamLoader initWithDelegate:frameLoader:]):
3381 * Loader/WebPlugInStreamLoaderDelegate.h: Added.
3382 * Plugins/WebBaseNetscapePluginStream.h:
3383 * Plugins/WebNetscapePluginStream.m:
3384 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
3385 * WebKit.xcodeproj/project.pbxproj:
3387 2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
3391 http://bugs.webkit.org/show_bug.cgi?id=10384
3392 Bug 10384: Switch to DWARF for Release configuration
3394 * WebKit.xcodeproj/project.pbxproj:
3396 2006-08-15 Graham Dennis <graham.dennis@gmail.com>
3400 - patch for http://bugs.webkit.org/show_bug.cgi?id=10314
3401 WebUnarchivingState archivedResourceForURL: doesn't work
3403 * WebView/WebUnarchivingState.m:
3404 (-[WebUnarchivingState archivedResourceForURL:]):
3405 Fixed to get objects from the archived resources dictionary using
3406 the URL as a string instead of as the URL itself (as this is how
3407 the data is put into the dictionary).
3409 2006-08-14 Maciej Stachowiak <mjs@apple.com>
3413 - remove many (but not all) WebKit dependencies from WebNetscapePlugInStreamLoader (it still
3414 depends on WebNetscapePluginStream).
3416 * Loader/WebFrameLoader.h:
3417 * Loader/WebFrameLoader.m:
3418 (-[WebFrameLoader fileDoesNotExistErrorWithResponse:]):
3419 * Loader/WebNetscapePlugInStreamLoader.h:
3420 * Loader/WebNetscapePlugInStreamLoader.m:
3421 (-[WebNetscapePlugInStreamLoader initWithStream:frameLoader:]):
3422 (-[WebNetscapePlugInStreamLoader releaseResources]):
3423 (-[WebNetscapePlugInStreamLoader didReceiveResponse:]):
3424 * Plugins/WebNetscapePluginStream.m:
3425 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
3427 2006-08-14 Maciej Stachowiak <mjs@apple.com>
3429 Reviewed by Tim Omernick.
3431 - fixed REGRESSION: crash when leaving youtube page while movie is still loading
3432 http://bugs.webkit.org/show_bug.cgi?id=10398
3434 * Loader/WebNetscapePlugInStreamLoader.m:
3435 (-[WebNetscapePlugInStreamLoader initWithStream:view:]): Set the frame loader for this stream.
3436 (-[WebNetscapePlugInStreamLoader cancelWithError:]): Make sure to destroy the stream as well;
3437 otherwise, when we try to clean up later, we won't have the right context.
3439 2006-08-14 David Hyatt <hyatt@apple.com>
3441 Fix for Radar bug 4478840, Safari should not reduce null events sent to
3442 plug-ins in windows that are inactive but visible.
3444 With this fix you can view videos in visible background windows on YouTube
3445 (for example) and not see any drop in frame rate.
3449 * Plugins/WebBaseNetscapePluginView.m:
3450 (-[WebBaseNetscapePluginView restartNullEvents]):
3452 2006-08-14 Maciej Stachowiak <mjs@apple.com>
3456 - removed WebKit-level dependencies from WebFormDataStream. Use WebCore version of system interface
3458 * Loader/WebFormDataStream.m:
3460 (formEventCallback):
3462 * WebCoreSupport/WebSystemInterface.m:
3463 (InitWebCoreSystemInterface):
3465 2006-08-14 Maciej Stachowiak <mjs@apple.com>
3467 Rubber stamped by Brady.
3469 - move WebFormDataStream from WebView to Loader
3471 * WebKit.xcodeproj/project.pbxproj:
3472 * WebView/WebFormDataStream.h: Removed.
3473 * WebView/WebFormDataStream.m: Removed.
3475 2006-08-13 Maciej Stachowiak <mjs@apple.com>
3479 - remove WebKit dependencies from WebSubresourceLoader, except WebFormDataStream
3481 (WebFormDataStream will be moved into the Loader directory soon)
3483 * Loader/WebFrameLoader.h:
3484 * Loader/WebFrameLoader.m:
3485 (-[WebFrameLoader _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
3486 * Loader/WebSubresourceLoader.m:
3487 (isConditionalRequest):
3488 (hasCaseInsensitivePrefix):
3491 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
3493 2006-08-13 Brady Eidson <beidson@apple.com>
3497 Relocated the WebIconLoaders
3499 * Misc/WebIconLoader.h: Moved to Loader/
3500 * Misc/WebIconLoader.m: Moved to Loader/
3501 * WebKit.xcodeproj/project.pbxproj:
3503 2006-08-13 Maciej Stachowiak <mjs@apple.com>
3507 - removed non-Loader WebKit dependencies from WebDataProtocol for
3508 real (whoops) and fix some typos.
3510 * Loader/WebDataProtocol.m:
3511 (isCaseInsensitiveEqual): Added.
3512 (+[WebDataProtocol _webIsDataProtocolURL:]): Avoid WebKit calls.
3513 (-[WebDataProtocol startLoading]): ditto
3514 * Loader/WebFrameLoader.m:
3515 (isCaseInsensitiveEqual): Fixed spelling from isCaseSensitiveEqual.
3516 (-[WebFrameLoader _canUseResourceForRequest:]): Use proper call.
3518 2006-08-13 Brady Eidson <beidson@apple.com>
3522 The way of detecting a failed icon load before was to try and construct
3523 an image from the icon and if that image construction failed, mark the icon
3525 A much more efficient way is to check for an error response. We'll still
3526 check for invalid image data, but most servers will correctly return an HTTP
3527 error on a missing icon.
3529 * Misc/WebIconLoader.m:
3530 (-[WebIconLoader didFinishLoading]): Added check for http error response
3532 2006-08-13 Maciej Stachowiak <mjs@apple.com>
3536 - remove all non-Loader dependencies from WebLoader
3538 As part of this I moved WebDataProtocol to the loader directory
3539 and removed dependencies on the rest of WebKit from that too.
3541 * Loader/WebFrameLoader.h:
3542 * Loader/WebFrameLoader.m:
3543 (-[WebFrameLoader setDefersCallbacks:]):
3544 (-[WebFrameLoader stopLoading]):
3545 (-[WebFrameLoader cancelledErrorWithRequest:]):
3546 (-[WebFrameLoader clearArchivedResources]):
3547 (-[WebFrameLoader deliverArchivedResources]):
3548 (-[WebFrameLoader deliverArchivedResourcesAfterDelay]):
3549 (isCaseSensitiveEqual):
3550 (-[WebFrameLoader _canUseResourceForRequest:]):
3551 (-[WebFrameLoader _canUseResourceWithResponse:]):
3552 (-[WebFrameLoader pendingArchivedResources]):
3553 (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
3554 (-[WebFrameLoader archiveLoadPendingForLoader:]):
3555 (-[WebFrameLoader cancelPendingArchiveLoadForLoader:]):
3556 * Loader/WebLoader.h:
3557 * Loader/WebLoader.m:
3558 (-[NSURLProtocol releaseResources]):
3559 (-[NSURLProtocol loadWithRequest:]):
3560 (-[NSURLProtocol setDefersCallbacks:]):
3561 (-[NSURLProtocol addData:allAtOnce:]):
3562 (-[NSURLProtocol resourceData]):
3563 (-[NSURLProtocol didReceiveData:lengthReceived:allAtOnce:]):
3564 (-[NSURLProtocol connection:didReceiveData:lengthReceived:]):
3565 (-[NSURLProtocol cancelWithError:]):
3566 (-[NSURLProtocol cancelledError]):
3567 * Loader/WebMainResourceLoader.m:
3568 (-[WebMainResourceLoader addData:allAtOnce:]):
3569 (-[WebMainResourceLoader didReceiveData:lengthReceived:allAtOnce:]):
3570 * Loader/WebNetscapePlugInStreamLoader.m:
3571 (-[WebNetscapePlugInStreamLoader didReceiveData:lengthReceived:allAtOnce:]):
3572 * Loader/WebSubresourceLoader.m:
3573 (-[WebSubresourceLoader didReceiveData:lengthReceived:allAtOnce:]):
3574 * WebKit.xcodeproj/project.pbxproj:
3575 * WebView/WebDataProtocol.h: Removed.
3576 * WebView/WebDataProtocol.m: Removed.
3578 2006-08-11 Tim Omernick <timo@apple.com>
3582 <http://bugs.webkit.org/show_bug.cgi?id=10111> - Menu flickers over Flash content
3583 <rdar://problem/3052546> Plugins don't work with z-index (overlapping elements, etc.)
3585 * Plugins/WebBaseNetscapePluginView.m:
3586 (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
3587 Don't just clip to the dirty region for "transparent" plug-ins -- do it for all plug-ins. This is a
3588 generally useful thing to do, as it prevents the plug-in from drawing over parts of the window that
3589 have already been drawn and are not expected to be redrawn in the same update.
3591 2006-08-11 Brady Eidson <beidson@apple.com>
3593 Reviewed by John, Timo, Adele, and Darin
3595 In addition to a few style/good-practice cleanups, this patch will convert the old icon database
3596 format to the WebCore format if the WebCore db is empty (implying this conversion has yet to take
3597 place). After the conversion, it will delete all traces of the old format to free the unneeded space
3599 * Misc/WebIconDatabase.m:
3600 (-[WebIconDatabase init]):
3601 (-[WebIconDatabase _setIconURL:forURL:]): Changed the bridge's name for this method to be more clear
3602 (-[WebIconDatabase _createFileDatabase]):
3603 (-[WebIconDatabase _iconDataForIconURL:]): This grabs the raw data for use in the conversion function
3604 (-[WebIconDatabase _convertToWebCoreFormat]): This does the actual conversion
3606 2006-08-11 Tim Omernick <timo@apple.com>
3608 Reviewed by John Sullivan.
3610 Needed for <rdar://problem/4678070>.
3612 * Plugins/WebBaseNetscapePluginView.m:
3613 (-[WebBaseNetscapePluginView sendEvent:]):
3614 Changed an assertion to an early return. It should be possible to send events, especially updateEvt (for image capturing
3615 purposes), to off-screen plug-ins. It just doesn't work right now. See <rdar://problem/4318269>.
3617 2006-08-11 John Sullivan <sullivan@apple.com>
3621 - fixed <rdar://problem/4522894> Would be nice if Safari shrank pages a little if necessary
3622 to avoid printing an almost-empty page
3624 * WebView/WebHTMLView.m:
3625 (-[NSArray knowsPageRange:]):
3626 If the last page has a short-enough orphan (< 1/10 of the page height is the number I pulled
3627 out of ... the air), then we adjust the scale factor slightly and check whether this reduces
3628 the page count and thus eliminates the orphan.
3630 2006-08-07 Brady Eidson <beidson@apple.com>
3632 Reviewed by Anders and John
3634 * Misc/WebIconDatabase.m:
3635 (-[WebIconDatabase init]):
3636 (-[WebIconDatabase isIconExpiredForIconURL:]): Get if an icon expired
3637 (-[WebIconDatabase isIconExpiredForPageURL:]): Ditto
3638 (-[WebIconDatabase _setIconURL:forURL:]):
3639 (-[WebIconDatabase _sendNotificationForURL:]): Moved to WebKitPendingPublic for use outside of WebIconDatabase
3640 (-[WebIconDatabase loadIconFromURL:]): Allow a load outside the context of a page load
3641 * Misc/WebIconDatabasePrivate.h:
3643 * Misc/WebIconLoader.m:
3644 (-[WebIconLoader didFinishLoading]): fixed up the "flipping the switch" #defs a bit
3645 (-[WebIconLoader willSendRequest:redirectResponse:]): override to allow a load
3646 outside of the context of a page load
3648 * WebCoreSupport/WebIconDatabaseBridge.h: Added.
3649 * WebCoreSupport/WebIconDatabaseBridge.m: Added.
3650 (-[WebIconDatabaseBridge init]):
3651 (-[WebIconDatabaseBridge dealloc]):
3652 (-[WebIconDatabaseBridge loadIconFromURL:]): Kick off a load on an icon outside
3653 of the context of any page load
3654 (-[WebIconDatabaseBridge _setIconData:forIconURL:]): WebKit side of bridge method
3655 (-[WebIconDatabaseBridge _setHaveNoIconForIconURL:]): WebKit side of bridge method
3656 (-[WebIconDatabaseBridge releaseCachedLoaderForIconURL:]):
3657 (+[WebIconDatabaseBridge sharedBridgeInstance]): Moved this from WebCore to WebKit
3658 so both sides of the bridge get the WebKit version
3659 * WebKit.xcodeproj/project.pbxproj: Added some files
3660 * WebView/WebDataSource.m:
3661 (-[WebDataSource _loadIcon]): Added check for reload/expired icon to force
3662 a load even if we already have it
3664 2006-08-04 Sam Weinig <sam.weinig@gmail.com>
3668 - patch for http://bugs.webkit.org/show_bug.cgi?id=10192
3669 Make WebCore (and friends) compile with -Wshorten-64-to-32
3671 * Adds 'f' to float literals where expecting a float.
3672 * Use ceilf() instead of ceil() when assigning to a float.
3673 * Adds explicit casts where OK.
3675 NOTE: The -Wshorten-64-to-32 flag was not added for WebKit
3676 because there are still a few places where no error handling
3677 is in place. The flag can be added as soon as those are worked
3680 * Misc/WebNSControlExtras.m:
3681 (-[NSControl sizeToFitAndAdjustWindowHeight]):
3682 * Misc/WebNSImageExtras.m:
3683 (-[NSImage _web_scaleToMaxSize:]):
3684 * Misc/WebNSViewExtras.h:
3685 * Misc/WebNSViewExtras.m:
3686 * Plugins/WebBaseNetscapePluginView.m:
3687 (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
3688 (-[WebBaseNetscapePluginView drawRect:]):
3689 * WebCoreSupport/WebFrameBridge.m:
3690 (-[WebFrameBridge expiresTimeForResponse:]):
3691 * WebInspector/WebInspector.m:
3692 (-[NSWindow window]):
3693 (-[WebInspector treeViewScrollTo:]):
3694 (-[WebInspector _updateSystemColors]):
3695 (-[WebInspector webView:plugInViewWithArguments:]):
3696 (-[WebInspector outlineView:objectValueForTableColumn:byItem:]):
3697 * WebInspector/WebInspectorOutlineView.m:
3698 (-[WebInspectorOutlineView _highlightRow:clipRect:]):
3699 * WebInspector/WebNodeHighlight.m:
3700 (-[WebNodeHighlight initWithBounds:andRects:forView:]):
3701 * WebInspector/WebNodeHighlightView.m:
3702 (-[WebNodeHighlightView roundedRect:withRadius:]):
3703 (-[WebNodeHighlightView initWithHighlight:andRects:forView:]):
3704 (-[WebNodeHighlightView drawRect:]):
3705 * WebView/WebFrame.m:
3706 (-[WebFrame _opened]):
3707 * WebView/WebFrameView.m:
3708 (-[WebFrameView initWithFrame:]):
3709 * WebView/WebHTMLView.m:
3710 (-[WebHTMLView _dragImageForLinkElement:]):
3711 (-[WebHTMLView _web_setPrintingModeRecursive]):
3712 (-[WebHTMLView _web_clearPrintingModeRecursive]):
3713 (-[NSArray layout]):
3714 (-[NSArray _setPrinting:minimumPageWidth:maximumPageWidth:adjustViewSize:]):
3715 (-[NSArray adjustPageHeightNew:top:bottom:limit:]):
3716 (-[NSArray _scaleFactorForPrintOperation:]):
3717 (-[NSArray setPageWidthForPrinting:]):
3718 (-[NSArray _endPrintMode]):
3719 (-[NSArray knowsPageRange:]):
3720 (-[NSArray _originalFontA]):
3721 (-[NSArray _originalFontB]):
3722 (-[WebTextCompleteController _buildUI]):
3723 (-[WebTextCompleteController _placePopupWindow:]):
3724 * WebView/WebPDFView.m:
3725 (-[WebPDFView _makeTextStandardSize:]):
3726 (-[WebPDFView selectionImageForcingWhiteText:]):
3727 (-[PDFPrefUpdatingProxy forwardInvocation:]):
3728 * WebView/WebPreferences.m:
3729 (-[WebPreferences _floatValueForKey:]):
3730 * WebView/WebView.m:
3731 (-[WebView makeTextSmaller:]):
3732 (-[WebView canMakeTextStandardSize]):
3733 (-[WebView makeTextStandardSize:]):
3735 2006-08-04 David Kilzer <ddkilzer@kilzer.net>
3737 Reviewed by NOBODY (build fix).
3739 * WebCoreSupport/WebSubresourceLoader.m: REALLY moved to Loader/
3740 * WebView/WebFrameLoader.h: REALLY moved to Loader/
3741 * WebView/WebFrameLoader.m: REALLY moved to Loader/
3742 * WebView/WebLoader.h: REALLY moved to Loader/
3743 * WebView/WebLoader.m: REALLY moved to Loader/
3744 * WebView/WebMainResourceLoader.m: REALLY moved to Loader/
3746 2006-08-03 Maciej Stachowiak <mjs@apple.com>
3750 - moved all loader code that is slated to be moved down to WebCore to a new Loader directory
3752 (next step is to remove dependencies on the rest of WebKit from this directory)
3754 * Loader/WebNetscapePlugInStreamLoader.h: Added.
3755 * Loader/WebNetscapePlugInStreamLoader.m: Added. Cut out of WebNetscapePluginStream.m
3756 (-[WebNetscapePlugInStreamLoader initWithStream:view:]):
3757 (-[WebNetscapePlugInStreamLoader isDone]):
3758 (-[WebNetscapePlugInStreamLoader releaseResources]):
3759 (-[WebNetscapePlugInStreamLoader didReceiveResponse:]):
3760 (-[WebNetscapePlugInStreamLoader didReceiveData:lengthReceived:]):
3761 (-[WebNetscapePlugInStreamLoader didFinishLoading]):
3762 (-[WebNetscapePlugInStreamLoader didFailWithError:]):
3763 (-[WebNetscapePlugInStreamLoader cancelWithError:]):
3764 * Plugins/WebNetscapePluginStream.m:
3765 * WebKit.xcodeproj/project.pbxproj:
3766 * WebCoreSupport/WebSubresourceLoader.h: Moved to Loader/
3767 * WebCoreSupport/WebSubresourceLoader.m: Moved to Loader/
3768 * WebView/WebFrameLoader.h: Moved to Loader/
3769 * WebView/WebFrameLoader.m: Moved to Loader/
3770 * WebView/WebLoader.h: Moved to Loader/
3771 * WebView/WebLoader.m: Moved to Loader/
3772 * WebView/WebMainResourceLoader.h: Moved to Loader/
3773 * WebView/WebMainResourceLoader.m: Moved to Loader/
3775 2006-08-03 Tim Omernick <timo@apple.com>
3777 Reviewed by Kevin Decker.
3779 <rdar://problem/4667460> Windowless OpenGL plug-ins render incorrectly on PowerPC
3781 * Plugins/WebBaseNetscapePluginView.m:
3782 (-[WebBaseNetscapePluginView _aglOffscreenImageForDrawingInRect:]):
3783 Fixed color component swapping so that it works on both x86 and PPC. See comments.
3785 2006-08-03 Brady Eidson <beidson@apple.com>
3787 Reviewed by Tim Hatcher's rubber stamp
3788 Fixed Intel build break caused by weinig's -W change in r15781
3790 * WebView/WebView.m: wrapped cpu-dependent defs with defined() macro
3792 2006-08-03 Maciej Stachowiak <mjs@apple.com>
3796 - fixed problem that could cause assertion failures in Safari
3798 * Plugins/WebBaseNetscapePluginView.m:
3799 (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]): Don't
3800 allow a plugin to start new loads once its document is no longer the one actively loading.
3802 2006-08-03 Maciej Stachowiak <mjs@apple.com>
3806 - remove use of WebDataSource from WebLoader and subclasses, just have them talk to the
3807 WebFrameLoader instead.
3809 For now this is done by forarding all the calls.
3811 * Misc/WebIconLoader.m:
3812 (-[WebIconLoader didFinishLoading]):
3813 * Plugins/WebNetscapePluginStream.m:
3814 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
3815 (-[WebNetscapePluginStream start]):
3816 (-[WebNetscapePlugInStreamLoader didFinishLoading]):
3817 (-[WebNetscapePlugInStreamLoader didFailWithError:]):
3818 (-[WebNetscapePlugInStreamLoader cancelWithError:]):
3819 * WebCoreSupport/WebFrameBridge.m:
3820 (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
3821 (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
3822 * WebCoreSupport/WebSubresourceLoader.h:
3823 * WebCoreSupport/WebSubresourceLoader.m:
3824 (-[WebSubresourceLoader initWithLoader:frameLoader:]):
3825 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
3826 (+[WebSubresourceLoader startLoadingResource:withMethod:URL:customHeaders:referrer:forFrameLoader:]):
3827 (+[WebSubresourceLoader startLoadingResource:withMethod:URL:customHeaders:postData:referrer:forFrameLoader:]):
3828 (-[WebSubresourceLoader receivedError:]):
3829 (-[WebSubresourceLoader signalFinish]):
3830 (-[WebSubresourceLoader didFailWithError:]):
3831 (-[WebSubresourceLoader cancel]):
3832 * WebKit.xcodeproj/project.pbxproj:
3833 * WebView/WebDataSource.m:
3834 (-[WebDataSource _updateLoading]):
3835 (-[WebDataSource textEncodingName]):
3836 (-[WebDataSource _mainReceivedBytesSoFar:complete:]):
3837 * WebView/WebFrameLoader.h:
3838 * WebView/WebFrameLoader.m:
3839 (-[WebFrameLoader loadIconWithRequest:]):
3840 (-[WebFrameLoader startLoadingMainResourceWithRequest:identifier:]):
3841 (-[WebFrameLoader clearIconLoader]):
3842 (-[WebFrameLoader commitProvisionalLoad]):
3843 (-[WebFrameLoader activeDataSource]):
3844 (-[WebFrameLoader _archivedSubresourceForURL:]):
3845 (-[WebFrameLoader _defersCallbacks]):
3846 (-[WebFrameLoader _identifierForInitialRequest:]):
3847 (-[WebFrameLoader _willSendRequest:forResource:redirectResponse:]):
3848 (-[WebFrameLoader _didReceiveAuthenticationChallenge:forResource:]):
3849 (-[WebFrameLoader _didCancelAuthenticationChallenge:forResource:]):
3850 (-[WebFrameLoader _didReceiveResponse:forResource:]):
3851 (-[WebFrameLoader _didReceiveData:contentLength:forResource:]):
3852 (-[WebFrameLoader _didFinishLoadingForResource:]):
3853 (-[WebFrameLoader _didFailLoadingWithError:forResource:]):
3854 (-[WebFrameLoader _privateBrowsingEnabled]):
3855 (-[WebFrameLoader _addPlugInStreamLoader:]):
3856 (-[WebFrameLoader _removePlugInStreamLoader:]):
3857 (-[WebFrameLoader _finishedLoadingResource]):
3858 (-[WebFrameLoader _receivedError:]):
3859 (-[WebFrameLoader _addSubresourceLoader:]):
3860 (-[WebFrameLoader _removeSubresourceLoader:]):
3861 (-[WebFrameLoader _originalRequest]):
3862 (-[WebFrameLoader webFrame]):
3863 (-[WebFrameLoader _receivedMainResourceError:complete:]):
3864 (-[WebFrameLoader initialRequest]):
3865 (-[WebFrameLoader _receivedData:]):
3866 (-[WebFrameLoader _setRequest:]):
3867 (-[WebFrameLoader _downloadWithLoadingConnection:request:response:proxy:]):
3868 (-[WebFrameLoader _handleFallbackContent]):
3869 (-[WebFrameLoader _isStopping]):
3870 (-[WebFrameLoader _decidePolicyForMIMEType:decisionListener:]):
3871 (-[WebFrameLoader _setupForReplaceByMIMEType:]):
3872 (-[WebFrameLoader _setResponse:]):
3873 (-[WebFrameLoader _mainReceivedError:complete:]):
3874 (-[WebFrameLoader _finishedLoading]):
3875 (-[WebFrameLoader _mainReceivedBytesSoFar:complete:]):
3876 (-[WebFrameLoader _iconLoaderReceivedPageIcon:]):
3877 (-[WebFrameLoader _URL]):
3878 * WebView/WebLoader.h:
3879 * WebView/WebLoader.m:
3880 (-[NSURLProtocol releaseResources]):
3881 (-[NSURLProtocol loadWithRequest:]):
3882 (-[NSURLProtocol setFrameLoader:]):
3883 (-[NSURLProtocol frameLoader]):
3884 (-[NSURLProtocol willSendRequest:redirectResponse:]):
3885 (-[NSURLProtocol didReceiveAuthenticationChallenge:]):
3886 (-[NSURLProtocol didCancelAuthenticationChallenge:]):
3887 (-[NSURLProtocol didReceiveResponse:]):
3888 (-[NSURLProtocol didReceiveData:lengthReceived:]):
3889 (-[NSURLProtocol signalFinish]):
3890 (-[NSURLProtocol didFailWithError:]):
3891 (-[NSURLProtocol willCacheResponse:]):
3892 (-[NSURLProtocol cancelWithError:]):
3893 * WebView/WebMainResourceLoader.h:
3894 * WebView/WebMainResourceLoader.m:
3895 (-[WebMainResourceLoader initWithFrameLoader:]):
3896 (-[WebMainResourceLoader receivedError:]):
3897 (-[WebMainResourceLoader cancelWithError:]):
3898 (-[WebMainResourceLoader _isPostOrRedirectAfterPost:redirectResponse:]):
3899 (-[WebMainResourceLoader addData:]):
3900 (-[WebMainResourceLoader willSendRequest:redirectResponse:]):
3901 (-[WebMainResourceLoader continueAfterContentPolicy:response:]):
3902 (-[WebMainResourceLoader continueAfterContentPolicy:]):
3903 (-[WebMainResourceLoader checkContentPolicyForResponse:]):
3904 (-[WebMainResourceLoader didReceiveResponse:]):
3905 (-[WebMainResourceLoader didReceiveData:lengthReceived:]):
3906 (-[WebMainResourceLoader didFinishLoading]):
3907 (-[WebMainResourceLoader didFailWithError:]):
3908 (-[WebMainResourceLoader loadWithRequestNow:]):
3910 2006-08-03 Sam Weinig <sam.weinig@gmail.com>
3914 - patch for http://bugs.webkit.org/show_bug.cgi?id=10176
3915 Make WebCore compile with -Wundef
3917 * Adds -Wundef flag to Xcode project
3918 * Converts #ifs to #ifdef and #ifndefs where needed.
3920 * Carbon/CarbonUtils.m:
3921 * Carbon/CarbonWindowAdapter.m:
3922 * Carbon/HIViewAdapter.m:
3923 (+[NSView bindHIViewToNSView:nsView:]):
3924 * Carbon/HIWebView.m:
3925 (HIWebViewEventHandler):
3926 * Misc/WebFileDatabase.m:
3927 (UniqueFilePathForKey):
3928 * Misc/WebNSWindowExtras.m:
3929 (swizzleInstanceMethod):
3930 * Misc/WebTypesInternal.h:
3931 * Plugins/WebNetscapeDeprecatedFunctions.c:
3932 * Plugins/WebNetscapeDeprecatedFunctions.h:
3933 * Plugins/WebNetscapePluginPackage.h:
3934 * Plugins/WebNetscapePluginPackage.m:
3935 (-[WebNetscapePluginPackage unloadWithoutShutdown]):
3936 (-[WebNetscapePluginPackage load]):
3937 * WebKit.xcodeproj/project.pbxproj:
3939 2006-08-03 Darin Adler <darin@apple.com>
3941 Reviewed by Eric Seidel.
3945 * WebView/WebFrame.m: (-[WebFramePrivate dealloc]): Release the frame loader.
3947 2006-08-02 Timothy Hatcher <timothy@apple.com>
3949 Rubber stamped by Maciej.
3951 Adding back resultsWithXpathQuery, removed by Darin's earlier change.
3952 This function is called from ObjC, but not used from JavaScript.
3954 * WebInspector/webInspector/inspector.js:
3956 2006-08-02 Timothy Hatcher <timothy@apple.com>
3960 Bug 10200: [Drosera] Deadlock between Drosera and Safari while loading page
3961 http://bugs.webkit.org/show_bug.cgi?id=10200
3963 Prevent reentrancy in our debugger callbacks. This was causing a deadlock in Drosera because
3964 suspendProcessIfPaused was being called during a DO call into Safari.
3966 Preventing reentrancy also prevents scripts that Drosera injects and evaluates from showing
3967 up in rare cases (such as a iframe loading about:blank). I thought this would prevent cases
3968 where you call a function from the console and expect it to break on a breakpoint in them, but
3969 this appears to never have worked even without this change. When that is figured out we can
3970 reconsider a better solution to reentrancy. I have filed that as bug 10214.
3972 I also removed the NSRunLoop runMode:beforeDate: calls since DO handles this for us since
3973 we don't use "onway void" as the return type for the callbacks. Note: using onway void for
3974 the listener callbacks causes bad synchronization issues and obscure crashes.
3976 * DefaultDelegates/WebScriptDebugServer.m:
3977 (-[WebScriptDebugServer webView:didLoadMainResourceForDataSource:]):
3978 (-[WebScriptDebugServer webView:didParseSource:baseLineNumber:fromURL:sourceId:forWebFrame:]):
3979 (-[WebScriptDebugServer webView:failedToParseSource:baseLineNumber:fromURL:withError:forWebFrame:]):
3980 (-[WebScriptDebugServer webView:didEnterCallFrame:sourceId:line:forWebFrame:]):
3981 (-[WebScriptDebugServer webView:willExecuteStatement:sourceId:line:forWebFrame:]):
3982 (-[WebScriptDebugServer webView:willLeaveCallFrame:sourceId:line:forWebFrame:]):
3983 (-[WebScriptDebugServer webView:exceptionWasRaised:sourceId:line:forWebFrame:]):
3984 * DefaultDelegates/WebScriptDebugServerPrivate.h:
3986 2006-08-02 Maciej Stachowiak <mjs@apple.com>
3990 - fix assertion failure on layout tests by stopping plugins from loading at a clearly defined time
3991 - add more assertions for safety
3993 * WebView/WebDataSource.m:
3994 (-[WebDataSourcePrivate dealloc]): Removed obsolete comment.
3995 (-[WebDataSource _updateLoading]): Add assertion ensuring this method is only called
3996 at a time when this data source is the one that might be loading for a frame.
3997 (-[WebDataSource _stopLoading]): Stop loading plugins as a FIXME suggests we should.
3998 * WebView/WebFrameLoader.m:
3999 (-[WebFrameLoader isLoadingPlugIns]): New helper method.
4000 (-[WebFrameLoader isLoading]): Consider plugin loads too - otherwise we won't stop them
4001 at stopLoading time.
4003 2006-08-02 Adam Roben <aroben@apple.com>
4007 - Rename TransferJob to ResourceLoader (this file was forgotten in an
4008 earlier change by Maciej)
4012 2006-08-01 Maciej Stachowiak <mjs@apple.com>
4016 - Change things around so WebFrameLoader tracks the main and provisional data source,
4017 as well as the frame load state, pulling much code out of WebFrame along the way.
4019 The most significant aspects of this change are:
4021 - management of WebDataSources and WebFrameState was moved into WebFrameLoader
4022 - there is now just one WebFrameLoader shared between the primary and provisional data source
4024 * WebKit.xcodeproj/project.pbxproj:
4025 * WebView/WebDataSource.m:
4026 (-[WebDataSourcePrivate dealloc]):
4027 (-[WebDataSource _updateLoading]):
4028 (-[WebDataSource _loadIcon]):
4029 (-[WebDataSource _setPrimaryLoadComplete:]):
4030 (-[WebDataSource _stopLoading]):
4031 (-[WebDataSource _startLoading]):
4032 (-[WebDataSource _addSubresourceLoader:]):
4033 (-[WebDataSource _removeSubresourceLoader:]):
4034 (-[WebDataSource _addPlugInStreamLoader:]):
4035 (-[WebDataSource _removePlugInStreamLoader:]):
4036 (-[WebDataSource _defersCallbacksChanged]):
4037 (-[WebDataSource _stopLoadingWithError:]):
4038 (-[WebDataSource _revertToProvisionalState]):
4039 (-[WebDataSource _setupForReplaceByMIMEType:]):
4040 (-[WebDataSource initWithRequest:]):
4041 (-[WebDataSource data]):
4042 (-[WebDataSource isLoading]):
4043 * WebView/WebFrame.m:
4044 (-[WebFramePrivate init]):
4045 (-[WebFramePrivate dealloc]):
4046 (-[WebFrame _closeOldDataSources]):
4047 (-[WebFrame _detachFromParent]):
4048 (-[WebFrame _makeDocumentView]):
4049 (-[WebFrame _receivedMainResourceError:]):
4050 (-[WebFrame _transitionToCommitted:]):
4051 (+[WebFrame _timeOfLastCompletedLoad]):
4052 (-[WebFrame _checkLoadCompleteForThisFrame]):
4053 (-[WebFrame _loadItem:withLoadType:]):
4054 (-[WebFrame _continueAfterWillSubmitForm:]):
4055 (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
4056 (-[WebFrame _initWithWebFrameView:webView:bridge:]):
4057 (-[WebFrame _frameLoader]):
4058 (-[WebFrame _provisionalLoadStarted]):
4059 (-[WebFrame _prepareForDataSourceReplacement]):
4060 (-[WebFrame _frameLoadCompleted]):
4061 (-[WebFrame provisionalDataSource]):
4062 (-[WebFrame dataSource]):
4063 (-[WebFrame stopLoading]):
4064 * WebView/WebFrameInternal.h:
4065 * WebView/WebFrameLoader.h:
4066 * WebView/WebFrameLoader.m:
4067 (-[WebFrameLoader initWithWebFrame:]):
4068 (-[WebFrameLoader dealloc]):
4069 (-[WebFrameLoader dataSource]):
4070 (-[WebFrameLoader _setDataSource:]):
4071 (-[WebFrameLoader clearDataSource]):
4072 (-[WebFrameLoader provisionalDataSource]):
4073 (-[WebFrameLoader _setProvisionalDataSource:]):
4074 (-[WebFrameLoader _clearProvisionalDataSource]):
4075 (-[WebFrameLoader state]):
4076 (+[WebFrameLoader timeOfLastCompletedLoad]):
4077 (-[WebFrameLoader _setState:]):
4078 (-[WebFrameLoader clearProvisionalLoad]):
4079 (-[WebFrameLoader markLoadComplete]):
4080 (-[WebFrameLoader commitProvisionalLoad]):
4081 (-[WebFrameLoader stopLoading]):
4082 (-[WebFrameLoader startLoading]):
4083 (-[WebFrameLoader startProvisionalLoad:]):
4084 (-[WebFrameLoader setupForReplace]):
4085 * WebView/WebFramePrivate.h:
4087 2006-08-01 Tim Omernick <timo@apple.com>
4089 Reviewed by John Sullivan.
4091 <rdar://problem/4480737> Flash crashes after it replaces itself via a document.write()
4093 I kind of hate to do this, but this is the best way to work around buggy plug-ins like Flash that assume that
4094 NPP_Destroy() cannot be called while the browser is calling one of its other plug-in functions. The classic
4095 situation is a plug-in that replaces itself via an NPN_Invoke() that executes a document.write().
4097 * Plugins/WebBaseNetscapePluginView.h:
4098 * Plugins/WebBaseNetscapePluginView.m:
4099 (-[WebBaseNetscapePluginView sendEvent:]):
4100 Call -willCallPlugInFunction and -didCallPlugInFunction around calls to the NPP_* functions.
4101 (-[WebBaseNetscapePluginView setWindowIfNecessary]):
4103 (-[WebBaseNetscapePluginView start]):
4104 It should not be possible to start a plug-in instance while we are calling into it (one of those chicken/egg
4105 problems). Added a sanity-checking assertion.
4106 (-[WebBaseNetscapePluginView stop]):
4107 If we're already calling a plug-in function, do not call NPP_Destroy(). The plug-in function we are calling
4108 may assume that its instance->pdata, or other memory freed by NPP_Destroy(), is valid and unchanged until said
4109 plugin-function returns.
4110 (-[WebBaseNetscapePluginView pluginScriptableObject]):
4111 Call -willCallPlugInFunction and -didCallPlugInFunction around calls to the NPP_* functions.
4112 (-[WebBaseNetscapePluginView willCallPlugInFunction]):
4113 Increment plug-in function call depth.
4114 (-[WebBaseNetscapePluginView didCallPlugInFunction]):
4115 Decrement plug-in function call depth. Stop if we're supposed to stop.
4116 (-[WebBaseNetscapePluginView evaluateJavaScriptPluginRequest:]):
4117 Call -willCallPlugInFunction and -didCallPlugInFunction around calls to the NPP_* functions.
4118 (-[WebBaseNetscapePluginView webFrame:didFinishLoadWithReason:]):
4120 (-[WebBaseNetscapePluginView _printedPluginBitmap]):
4123 * Plugins/WebBaseNetscapePluginStream.m:
4124 (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:]):
4125 Call -willCallPlugInFunction and -didCallPlugInFunction around calls to the NPP_* functions.
4126 (-[WebBaseNetscapePluginStream _destroyStream]):
4128 (-[WebBaseNetscapePluginStream _deliverData]):
4131 2006-08-01 Maciej Stachowiak <mjs@apple.com>
4133 - fix build after last change
4135 * WebView/WebFrame.m:
4136 (-[WebFrame _checkLoadCompleteForThisFrame]):
4138 2006-08-01 Maciej Stachowiak <mjs@apple.com>
4142 - revert part of my last fix that broke the Safari bookmarks view
4144 * WebView/WebFrame.m:
4145 (-[WebFrame _checkLoadCompleteForThisFrame]): still send layout message for non-HTML views
4147 2006-08-01 Tim Omernick <timo@apple.com>
4151 Fixed an assertion failure I ran into while debugging <rdar://problem/4652683>.
4153 * Plugins/WebNetscapePluginEmbeddedView.m:
4154 (-[WebNetscapePluginEmbeddedView redeliverStream]):
4155 Don't clear the "instance" ivar here. This code was refactored here from the old WebNetscapePluginRepresentation,
4156 which also had an "instance" ivar. It is never appropriate to clear a plug-in view's instance. That is done when
4157 the plug-in is destroyed.
4159 2006-08-01 Maciej Stachowiak <mjs@apple.com>
4163 - some refactoring in preparation for moving more stuff to WebFrameLoader.
4165 * WebView/WebFrame.m:
4166 (-[WebFrame _clearDataSource]):
4167 (-[WebFrame _detachFromParent]):
4168 (-[WebFrame _commitProvisionalLoad]):
4169 (-[WebFrame _transitionToCommitted:]):
4170 (-[WebFrame _clearProvisionalLoad]):
4171 (-[WebFrame _markLoadComplete]):
4172 (-[WebFrame _checkLoadCompleteForThisFrame]):
4173 (-[WebFrame _startProvisionalLoad:]):
4174 (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
4175 (-[WebFrame stopLoading]):
4177 2006-07-31 Maciej Stachowiak <mjs@apple.com>
4179 Reviewed by Tim Hatcher.
4181 - renamed TransferJob to ResourceLoader in WebCore
4184 (WebFrame::loadDataSource):
4185 (WebFrame::receivedRedirect):
4186 (WebFrame::receivedResponse):
4187 (WebFrame::receivedData):
4188 (WebFrame::receivedAllData):
4189 (WebFrame::setStatusText):
4192 2006-07-31 Darin Adler <darin@apple.com>
4196 - omit the margin and padding boxes for display types where they are ignored
4197 - use CSS instead of properties for table spacing and padding as suggested by Tim H.
4199 * WebInspector/webInspector/inspector.css: Added rules for spacing and padding.
4200 Added rules that hide the margin and padding boxes (borders and all but the center cell)
4201 when the hide attribute is present.