1 2006-10-08 Darin Adler <darin@apple.com>
5 - passed calls that require WebHTMLView or WebFrameView calls across
8 * Loader/WebFrameLoader.h:
9 * Loader/WebFrameLoader.m:
10 (isCaseInsensitiveEqual):
11 (isBackForwardLoadType):
12 (-[WebFrameLoader opened]):
13 (-[WebFrameLoader cancelledErrorWithRequest:]):
14 (-[WebFrameLoader fileDoesNotExistErrorWithResponse:]):
15 (-[WebFrameLoader reload]):
16 (-[WebFrameLoader transitionToCommitted:]):
17 * Loader/WebFrameLoaderClient.h:
19 (-[WebFrame _forceLayout]):
20 (-[WebFrame _setDocumentViewFromPageCache:]):
21 (-[WebFrame _setCopiesOnScroll]):
23 2006-10-08 Maciej Stachowiak <mjs@apple.com>
27 - pass remaining delegate methods across client interface
29 * Loader/WebFrameLoader.m:
30 (-[WebFrameLoader _checkContentPolicyForMIMEType:andCall:withSelector:]):
31 (-[WebFrameLoader checkNewWindowPolicyForRequest:action:frameName:formState:andCall:withSelector:]):
32 (-[WebFrameLoader checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
33 (-[WebFrameLoader handleUnimplementablePolicyWithErrorCode:forURL:]):
34 (-[WebFrameLoader didFirstLayout]):
35 (-[WebFrameLoader continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
36 * Loader/WebFrameLoaderClient.h:
38 (-[WebFrame _dispatchDidFirstLayoutInFrame]):
39 (-[WebFrame _dispatchCreateWebViewWithRequest:]):
40 (-[WebFrame _dispatchShow]):
41 (-[WebFrame _dispatchDecidePolicyForMIMEType:request:decisionListener:]):
42 (-[WebFrame _dispatchDecidePolicyForNewWindowAction:request:newFrameName:decisionListener:]):
43 (-[WebFrame _dispatchDecidePolicyForNavigationAction:request:decisionListener:]):
44 (-[WebFrame _dispatchUnableToImplementPolicyWithError:]):
46 2006-10-08 Darin Adler <darin@apple.com>
50 - use WebCoreSystemInterface instead of WebSystemInterface in Loader directory
52 * Loader/WebFrameLoader.m: Update includes.
53 (-[WebFrameLoader commitProvisionalLoad:]): Use wk calls istead of WK.
54 (-[WebFrameLoader _canUseResourceWithResponse:]): Ditto.
56 * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface):
57 Added the three new symbols, and resorted the list.
59 * Loader/WebDataProtocol.m:
61 * Loader/WebMainResourceLoader.h:
62 * Loader/WebMainResourceLoader.m:
63 * Loader/WebNetscapePlugInStreamLoader.h:
64 * Loader/WebNetscapePlugInStreamLoader.m:
65 * Loader/WebSubresourceLoader.h:
66 * Loader/WebSubresourceLoader.m:
67 Changed import statements to consistently use the "" format.
69 2006-10-08 Maciej Stachowiak <mjs@apple.com>
73 - fix accidental build break due to editing while committing
75 * Loader/WebFrameLoader.m:
77 2006-10-08 Maciej Stachowiak <mjs@apple.com>
81 - move all WebFrameLoadDelegate methods across client interface
83 * Loader/WebFrameLoader.m:
84 (-[WebFrameLoader clientRedirectCancelledOrFinished:]):
85 (-[WebFrameLoader clientRedirectedTo:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
86 (-[WebFrameLoader continueFragmentScrollAfterNavigationPolicy:formState:]):
87 (-[WebFrameLoader closeOldDataSources]):
88 (-[WebFrameLoader _notifyIconChanged:]):
89 (-[WebFrameLoader prepareForLoadStart]):
90 (-[WebFrameLoader didChangeTitleForDocument:]):
91 (-[WebFrameLoader transitionToCommitted:]):
92 (-[WebFrameLoader checkLoadCompleteForThisFrame]):
93 * Loader/WebFrameLoaderClient.h:
95 (-[WebFrame _dispatchDidCancelClientRedirectForFrame]):
96 (-[WebFrame _dispatchWillPerformClientRedirectToURL:delay:fireDate:]):
97 (-[WebFrame _dispatchDidChangeLocationWithinPageForFrame]):
98 (-[WebFrame _dispatchWillCloseFrame]):
99 (-[WebFrame _dispatchDidReceiveIcon:]):
100 (-[WebFrame _dispatchDidStartProvisionalLoadForFrame]):
101 (-[WebFrame _dispatchDidReceiveTitle:]):
102 (-[WebFrame _dispatchDidCommitLoadForFrame]):
103 (-[WebFrame _dispatchDidFailProvisionalLoadWithError:]):
104 (-[WebFrame _dispatchDidFailLoadWithError:]):
105 (-[WebFrame _dispatchDidFinishLoadForFrame]):
107 2006-10-08 Darin Adler <darin@apple.com>
111 - removed some of the WebKit dependencies in WebFrameLoader
113 * Loader/WebFrameLoader.m:
114 (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
115 (-[WebFrameLoader _downloadWithLoadingConnection:request:response:proxy:]):
116 (-[WebFrameLoader reload]):
117 (-[WebFrameLoader didChangeTitleForDocument:]):
118 * Loader/WebFrameLoaderClient.h:
119 * WebView/WebFrame.m:
120 (-[WebFrame _loadItem:withLoadType:]):
121 (-[WebFrame _loadURL:referrer:intoChild:]):
122 (-[WebFrame _setTitle:forURL:]):
123 (-[WebFrame _downloadWithLoadingConnection:request:response:proxy:]):
124 * WebView/WebFrameInternal.h:
128 * Misc/WebNSURLRequestExtras.m:
129 (-[NSMutableURLRequest _web_setHTTPReferrer:]):
130 (-[NSMutableURLRequest _web_setHTTPUserAgent:]):
132 2006-10-08 Maciej Stachowiak <mjs@apple.com>
136 - pass all WebResourceLoadDelegate methods across client, removing need to include related headers
138 * Loader/WebFrameLoader.m:
139 (-[WebFrameLoader _willSendRequest:forResource:redirectResponse:]):
140 (-[WebFrameLoader _didReceiveAuthenticationChallenge:forResource:]):
141 (-[WebFrameLoader _didCancelAuthenticationChallenge:forResource:]):
142 (-[WebFrameLoader _didReceiveResponse:forResource:]):
143 (-[WebFrameLoader _didReceiveData:contentLength:forResource:]):
144 (-[WebFrameLoader _didFinishLoadingForResource:]):
145 (-[WebFrameLoader _didFailLoadingWithError:forResource:]):
146 (-[WebFrameLoader sendRemainingDelegateMessagesWithIdentifier:response:length:error:]):
147 (-[WebFrameLoader requestFromDelegateForRequest:identifier:error:]):
148 * Loader/WebFrameLoaderClient.h:
149 * WebView/WebFrame.m:
150 (-[WebFrame _dispatchDidHandleOnloadEventsForFrame]):
151 (-[WebFrame _dispatchDidReceiveServerRedirectForProvisionalLoadForFrame]):
152 (-[WebFrame _dispatchIdentifierForInitialRequest:fromDocumentLoader:]):
153 (-[WebFrame _dispatchResource:willSendRequest:redirectResponse:fromDocumentLoader:]):
154 (-[WebFrame _dispatchDidReceiveAuthenticationChallenge:forResource:fromDocumentLoader:]):
155 (-[WebFrame _dispatchDidCancelAuthenticationChallenge:forResource:fromDocumentLoader:]):
156 (-[WebFrame _dispatchResource:didReceiveResponse:fromDocumentLoader:]):
157 (-[WebFrame _dispatchResource:didReceiveContentLength:fromDocumentLoader:]):
158 (-[WebFrame _dispatchResource:didFinishLoadingFromDocumentLoader:]):
159 (-[WebFrame _dispatchResource:didFailLoadingWithError:fromDocumentLoader:]):
161 2006-10-08 Maciej Stachowiak <mjs@apple.com>
165 - started adding some _dispatch methods to WebFrameLoaderClient for delegate dispatch
167 * Loader/WebFrameLoader.m:
168 (-[WebFrameLoader startLoading]):
169 (-[WebFrameLoader didReceiveServerRedirectForProvisionalLoadForFrame]):
170 * Loader/WebFrameLoaderClient.h:
171 * WebCoreSupport/WebFrameBridge.m:
172 (-[WebFrameBridge handledOnloadEvents]):
173 * WebView/WebFrame.m:
175 (-[WebFrame _dataSourceForDocumentLoader:]):
176 (-[WebFrame _dispatchDidHandleOnloadEventsForFrame]):
177 (-[WebFrame _dispatchDidReceiveServerRedirectForProvisionalLoadForFrame]):
178 (-[WebFrame _dispatchIdentifierForInitialRequest:fromDocumentLoader:]):
179 * WebView/WebFrameInternal.h:
181 2006-10-08 Darin Adler <darin@apple.com>
185 - moved more methods to WebFrameLoader from WebFrame
187 * Loader/WebFrameLoader.h:
188 * Loader/WebFrameLoader.m:
189 (-[WebFrameLoader defersCallbacksChanged]):
190 (-[WebFrameLoader startLoadingMainResourceWithRequest:identifier:]):
191 (-[WebFrameLoader setState:]):
192 (-[WebFrameLoader clearProvisionalLoad]):
193 (-[WebFrameLoader markLoadComplete]):
194 (-[WebFrameLoader commitProvisionalLoad]):
195 (-[WebFrameLoader stopLoading]):
196 (-[WebFrameLoader startProvisionalLoad:]):
197 (-[WebFrameLoader setupForReplace]):
198 (-[WebFrameLoader _identifierForInitialRequest:]):
199 (-[WebFrameLoader _finishedLoadingResource]):
200 (-[WebFrameLoader _receivedError:]):
201 (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
202 (-[WebFrameLoader continueFragmentScrollAfterNavigationPolicy:formState:]):
203 (-[WebFrameLoader opened]):
204 (-[WebFrameLoader commitProvisionalLoad:]):
205 (-[WebFrameLoader _finishedLoading]):
206 (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
207 (-[WebFrameLoader _loadRequest:archive:]):
208 (-[WebFrameLoader reload]):
209 (-[WebFrameLoader documentLoader:mainReceivedCompleteError:]):
210 (-[WebFrameLoader subframeIsLoading]):
211 (-[WebFrameLoader checkNewWindowPolicyForRequest:action:frameName:formState:andCall:withSelector:]):
212 (-[WebFrameLoader continueAfterNewWindowPolicy:]):
213 (-[WebFrameLoader checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
214 (-[WebFrameLoader sendRemainingDelegateMessagesWithIdentifier:response:length:error:]):
215 (-[WebFrameLoader loadRequest:inFrameNamed:]):
216 (-[WebFrameLoader postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
217 (-[WebFrameLoader detachChildren]):
218 (-[WebFrameLoader detachFromParent]):
219 (-[WebFrameLoader addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
220 (-[WebFrameLoader safeLoadURL:]):
221 (-[WebFrameLoader actionInformationForLoadType:isFormSubmission:event:originalURL:]):
222 (-[WebFrameLoader actionInformationForNavigationType:event:originalURL:]):
223 (-[WebFrameLoader checkLoadComplete]):
224 * Loader/WebFrameLoaderClient.h:
225 * Loader/WebSubresourceLoader.m:
226 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
227 * WebCoreSupport/WebFrameBridge.m:
228 (-[WebFrameBridge close]):
229 (-[WebFrameBridge tokenizerProcessedData]):
230 (-[WebFrameBridge frameDetached]):
231 * WebView/WebDataSourceInternal.h:
232 * WebView/WebFrame.m:
233 (-[WebFrame _loadItem:withLoadType:]):
234 (-[WebFrame _prepareForDataSourceReplacement]):
235 (-[WebFrame _detachedFromParent1]):
236 (-[WebFrame _detachedFromParent2]):
237 (-[WebFrame _detachedFromParent3]):
238 (-[WebFrame _detachedFromParent4]):
239 (-[WebFrame _updateHistoryAfterClientRedirect]):
240 (-[WebFrame _loadedFromPageCache]):
241 * WebView/WebFrameInternal.h:
242 * WebView/WebPDFView.m:
243 (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
246 (-[WebView setDefersCallbacks:]):
248 2006-10-08 Maciej Stachowiak <mjs@apple.com>
252 - avoid need for WebKitSystemInterface in loader code, via WebCore cover for wkSupportsMultipartXMixedReplace
254 * Loader/WebDocumentLoader.m:
255 (-[WebDocumentLoader initWithRequest:]):
256 * Loader/WebMainResourceLoader.m:
257 * Loader/WebSubresourceLoader.m:
258 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
259 * WebCoreSupport/WebSystemInterface.m:
260 (InitWebCoreSystemInterface):
261 * WebView/WebDataSource.m:
262 (-[WebDataSource _initWithDocumentLoader:]):
264 2006-10-08 Darin Adler <darin@apple.com>
266 - build fix (also a fix for a crasher I forgot to commit before)
268 * Loader/WebFrameLoader.m: Added some missing includes.
269 (-[WebFrameLoader checkLoadCompleteForThisFrame]):
270 Added a needed retain/release.
272 2006-10-08 Darin Adler <darin@apple.com>
276 - quick fix to loader problem causing layout test failures
278 * Loader/WebFrameLoader.m:
279 (-[WebFrameLoader _finishedLoading]): Use a local variable for the bridge
280 that we retain/release.
281 (-[WebFrameLoader continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
284 2006-10-08 Maciej Stachowiak <mjs@apple.com>
288 - removed a few includes from WebFrameLoader, fixed up as appropriate
289 - segregated header includes into ones that need to go away to move the code and ones that don't
291 * Loader/WebFrameLoader.m:
292 (-[WebFrameLoader _privateBrowsingEnabled]):
293 (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
294 * Loader/WebFrameLoaderClient.h:
295 * WebView/WebFrame.m:
296 (-[WebFrame _privateBrowsingEnabled]):
298 2006-10-08 Darin Adler <darin@apple.com>
302 - moved a few methods from WebFrame to WebFrameLoader
304 * Loader/WebFrameLoader.h:
305 * Loader/WebFrameLoader.m:
306 (-[WebFrameLoader _setState:]):
307 (-[WebFrameLoader stopLoadingSubframes]):
308 (-[WebFrameLoader _receivedMainResourceError:complete:]):
309 (-[WebFrameLoader closeOldDataSources]):
310 (-[WebFrameLoader commitProvisionalLoad:]):
311 (-[WebFrameLoader _finishedLoading]):
312 (isBackForwardLoadType):
313 (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
314 (-[WebFrameLoader didFirstLayout]):
315 (-[WebFrameLoader frameLoadCompleted]):
316 (-[WebFrameLoader transitionToCommitted:]):
317 (-[WebFrameLoader checkLoadCompleteForThisFrame]):
318 (-[WebFrameLoader continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
319 (-[WebFrameLoader sendRemainingDelegateMessagesWithIdentifier:response:length:error:]):
320 (-[WebFrameLoader requestFromDelegateForRequest:identifier:error:]):
321 (-[WebFrameLoader loadRequest:inFrameNamed:]):
322 (-[WebFrameLoader postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
323 * Loader/WebFrameLoaderClient.h:
324 * Plugins/WebPluginController.m:
325 (-[WebPluginController webPlugInContainerLoadRequest:inFrame:]):
326 * WebCoreSupport/WebFrameBridge.h:
327 * WebCoreSupport/WebFrameBridge.m:
328 (-[WebFrameBridge initMainFrameWithPage:frameName:view:]):
329 (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]):
330 (-[WebFrameBridge dealloc]):
331 (-[WebFrameBridge frameLoader]):
332 (-[WebFrameBridge setTitle:]):
333 (-[WebFrameBridge receivedData:textEncodingName:]):
334 (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
335 (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
336 (-[WebFrameBridge objectLoadedFromCacheWithURL:response:data:]):
337 (-[WebFrameBridge syncLoadResourceWithMethod:URL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
338 (-[WebFrameBridge reportClientRedirectToURL:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
339 (-[WebFrameBridge reportClientRedirectCancelled:]):
340 (-[WebFrameBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]):
341 (-[WebFrameBridge postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
342 (-[WebFrameBridge didFirstLayout]):
343 (-[WebFrameBridge notifyIconChanged:]):
344 (-[WebFrameBridge originalRequestURL]):
345 (-[WebFrameBridge isLoadTypeReload]):
346 * WebView/WebFrame.m:
347 (-[WebFrame _opened]):
348 (-[WebFrame _checkLoadComplete]):
349 (-[WebFrame _loadItem:withLoadType:]):
350 (-[WebFrame _actionInformationForLoadType:isFormSubmission:event:originalURL:]):
351 (-[WebFrame _loadURL:referrer:intoChild:]):
352 (-[WebFrame _currentBackForwardListItemToResetTo]):
353 (-[WebFrame _updateBackground]):
354 (-[WebFrame _frameLoader]):
355 (-[WebFrame _frameLoadCompleted]):
356 (-[WebFrame _makeDocumentView]):
357 (-[WebFrame _updateHistoryForCommit]):
358 (-[WebFrame _updateHistoryForReload]):
359 (-[WebFrame _updateHistoryForStandardLoad]):
360 (-[WebFrame _updateHistoryForBackForwardNavigation]):
361 (-[WebFrame _updateHistoryForInternalLoad]):
362 (-[WebFrame _tokenForLoadErrorReset]):
363 (-[WebFrame _resetAfterLoadError:]):
364 (-[WebFrame _doNotResetAfterLoadError:]):
365 * WebView/WebFrameInternal.h:
367 2006-10-09 Mark Rowe <bdash@webkit.org>
369 Rubber-stamped by Darin.
371 * WebCoreSupport/WebFrameBridge.m:
372 (-[WebFrameBridge imageTitleForFilename:size:]): Revert accidental change to a UI_STRING that
373 is triggering an assertion failure.
375 2006-10-08 Maciej Stachowiak <mjs@apple.com>
379 - remove unneeded non-Loader header includes from WebFrameLoader.h (split WebFrameLoadType into
380 two coincidentally matching enums)
382 * Loader/WebFrameLoader.h:
383 * Loader/WebFrameLoader.m:
384 (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
385 (-[WebFrameLoader commitProvisionalLoad:]):
386 (isBackForwardLoadType):
387 (-[WebFrameLoader _loadRequest:archive:]):
388 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
389 (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
390 (-[WebFrameLoader reload]):
391 (-[WebFrameLoader isReplacing]):
392 (-[WebFrameLoader setReplacing]):
393 (-[WebFrameLoader loadType]):
394 (-[WebFrameLoader setLoadType:]):
395 (-[WebFrameLoader checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
396 (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
397 (-[WebFrameLoader loadDataSource:withLoadType:formState:]):
398 (-[WebFrameLoader didFirstLayout]):
399 * WebCoreSupport/WebFrameBridge.m:
400 * WebView/WebFrame.m:
401 (-[WebFrame _transitionToCommitted:]):
402 (-[WebFrame _provisionalLoadStarted]):
403 (-[WebFrame _opened]):
404 (-[WebFrame _checkLoadCompleteForThisFrame]):
405 (-[WebFrame _loadItem:withLoadType:]):
406 (-[WebFrame _recursiveGoToItem:fromItem:withLoadType:]):
407 (-[WebFrame _goToItem:withLoadType:]):
408 (-[WebFrame _actionInformationForLoadType:isFormSubmission:event:originalURL:]):
409 (-[WebFrame _continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
410 (-[WebFrame _loadURL:referrer:intoChild:]):
411 (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
412 (-[WebFrame _currentBackForwardListItemToResetTo]):
413 (-[WebFrame _itemForRestoringDocState]):
414 (-[WebFrame _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
415 (-[WebFrame _loadType]):
416 (-[WebFrame loadRequest:]):
417 * WebView/WebFrameInternal.h:
420 2006-10-08 Darin Adler <darin@apple.com>
424 - move WebFrameLoader creation and ownership from WebFrame to WebFrameBridge
426 * Loader/WebFrameLoader.m:
427 (-[WebFrameLoader stopLoadingSubframes]):
428 (-[WebFrameLoader closeOldDataSources]):
429 * WebCoreSupport/WebFrameBridge.h:
430 * WebCoreSupport/WebFrameBridge.m:
431 (-[WebFrameBridge initMainFrameWithPage:frameName:view:]):
432 (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]):
433 (-[WebFrameBridge dealloc]):
434 (-[WebFrameBridge loader]):
435 (-[WebFrameBridge setTitle:]):
436 (-[WebFrameBridge receivedData:textEncodingName:]):
437 (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
438 (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
439 (-[WebFrameBridge reportClientRedirectToURL:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
440 (-[WebFrameBridge reportClientRedirectCancelled:]):
441 (-[WebFrameBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]):
442 (-[WebFrameBridge didFirstLayout]):
443 (-[WebFrameBridge imageTitleForFilename:size:]):
444 (-[WebFrameBridge notifyIconChanged:]):
445 (-[WebFrameBridge originalRequestURL]):
446 (-[WebFrameBridge isLoadTypeReload]):
447 * WebView/WebFrame.m:
448 (-[NSView setWebFrame::]):
449 (-[WebFramePrivate dealloc]):
450 (-[WebFramePrivate setWebFrameView:]):
451 (-[WebFramePrivate setProvisionalItem:]):
452 (-[WebFrame _webDataRequestForData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
453 (-[WebFrame _createItem:]):
454 (-[WebFrame _createItemTreeWithTargetFrame:clippedAtTarget:]):
455 (-[WebFrame _detachFromParent]):
456 (-[WebFrame _makeDocumentView]):
457 (-[WebFrame _transitionToCommitted:]):
458 (-[WebFrame _provisionalLoadStarted]):
459 (-[WebFrame _opened]):
460 (-[WebFrame _checkLoadCompleteForThisFrame]):
461 (-[WebFrame _loadItem:withLoadType:]):
462 (-[WebFrame _recursiveGoToItem:fromItem:withLoadType:]):
463 (-[WebFrame _continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
464 (-[WebFrame _loadURL:referrer:intoChild:]):
465 (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
466 (-[WebFrame _setTitle:]):
467 (-[WebFrame _defersCallbacksChanged]):
468 (-[WebFrame _currentBackForwardListItemToResetTo]):
469 (-[WebFrame _itemForSavingDocState]):
470 (-[WebFrame _itemForRestoringDocState]):
471 (-[WebFrame _saveDocumentAndScrollState]):
472 (-[WebFrame _shouldTreatURLAsSameAsCurrent:]):
473 (-[WebFrame _loadRequest:inFrameNamed:]):
474 (-[WebFrame _initWithWebFrameView:webView:bridge:]):
475 (-[WebFrame _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
476 (-[WebFrame _frameLoader]):
477 (-[WebFrame _prepareForDataSourceReplacement]):
478 (-[WebFrame _restoreScrollPositionAndViewState]):
479 (-[WebFrame _firstLayoutDone]):
480 (-[WebFrame _loadType]):
481 (-[WebFrame frameView]):
482 (-[WebFrame provisionalDataSource]):
483 (-[WebFrame dataSource]):
484 (-[WebFrame loadRequest:]):
485 (-[WebFrame loadArchive:]):
486 (-[WebFrame stopLoading]):
487 (-[WebFrame reload]):
488 (-[WebFrame _resetBackForwardList]):
489 (-[WebFrame _invalidateCurrentItemPageCache]):
490 (-[WebFrame _provisionalItemIsTarget]):
491 (-[WebFrame _loadProvisionalItemFromPageCache]):
492 * WebView/WebFrameInternal.h:
494 2006-10-08 Maciej Stachowiak <mjs@apple.com>
498 - move remaining movable data fields from WebFrameLoader to WebFrame
500 * Loader/WebDocumentLoadState.m:
501 (-[WebDocumentLoadState commitIfReady]):
502 * Loader/WebFrameLoader.h:
503 * Loader/WebFrameLoader.m:
504 (-[WebFrameLoader provisionalLoadStarted]):
505 (-[WebFrameLoader _setState:]):
506 (-[WebFrameLoader stopLoadingSubframes]):
507 (-[WebFrameLoader stopLoading]):
508 (-[WebFrameLoader startLoading]):
509 (-[WebFrameLoader _receivedMainResourceError:complete:]):
510 (-[WebFrameLoader clientRedirectCancelledOrFinished:]):
511 (-[WebFrameLoader clientRedirectedTo:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
512 (-[WebFrameLoader shouldReloadForCurrent:andDestination:]):
513 (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
514 (-[WebFrameLoader continueFragmentScrollAfterNavigationPolicy:formState:]):
515 (-[WebFrameLoader closeOldDataSources]):
516 (-[WebFrameLoader commitProvisionalLoad:]):
517 (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
518 (-[WebFrameLoader isQuickRedirectComing]):
519 * Loader/WebFrameLoaderClient.h:
520 * WebCoreSupport/WebFrameBridge.h:
521 * WebCoreSupport/WebFrameBridge.m:
522 (-[WebFrameBridge frameLoader]):
523 (-[WebFrameBridge setTitle:]):
524 (-[WebFrameBridge reportClientRedirectToURL:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
525 (-[WebFrameBridge reportClientRedirectCancelled:]):
526 (-[WebFrameBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]):
527 * WebView/WebDataSource.m:
528 (-[WebDataSource _loadFromPageCache:]):
529 * WebView/WebFrame.m:
530 (-[NSView setWebFrame::]):
531 (-[WebFrame _addHistoryItemForFragmentScroll]):
532 (-[WebFrame _didFinishLoad]):
533 (-[WebFrame _provisionalLoadStarted]):
534 (-[WebFrame _checkLoadCompleteForThisFrame]):
535 (-[WebFrame _loadItem:withLoadType:]):
536 (-[WebFrame _loadURL:referrer:intoChild:]):
537 (-[WebFrame _frameLoadCompleted]):
538 (-[WebFrame stopLoading]):
539 (-[WebFrame _invalidateCurrentItemPageCache]):
540 * WebView/WebFrameInternal.h:
542 2006-10-08 Darin Adler <darin@apple.com>
544 Rubber stamped by Maciej.
546 - changed "document load state" to "document loader"
548 * Loader/WebDocumentLoadState.h: Removed.
549 * Loader/WebDocumentLoadState.m: Removed.
550 * Loader/WebDocumentLoader.h: Added.
551 * Loader/WebDocumentLoader.m: Added.
552 (-[WebDocumentLoader setMainDocumentError:]):
553 (-[WebDocumentLoader mainReceivedError:complete:]):
554 (-[WebDocumentLoader finishedLoading]):
555 (-[WebDocumentLoader commitLoadWithData:]):
556 (-[WebDocumentLoader setupForReplaceByMIMEType:]):
557 (-[WebDocumentLoader updateLoading]):
558 (-[WebDocumentLoader setTitle:]):
559 * Loader/WebFrameLoader.h:
560 * Loader/WebFrameLoader.m:
561 (-[WebFrameLoader dealloc]):
562 (-[WebFrameLoader activeDocumentLoader]):
563 (-[WebFrameLoader activeDataSource]):
564 (-[WebFrameLoader addPlugInStreamLoader:]):
565 (-[WebFrameLoader removePlugInStreamLoader:]):
566 (-[WebFrameLoader addSubresourceLoader:]):
567 (-[WebFrameLoader removeSubresourceLoader:]):
568 (-[WebFrameLoader dataSource]):
569 (-[WebFrameLoader setDocumentLoader:]):
570 (-[WebFrameLoader documentLoader]):
571 (-[WebFrameLoader policyDataSource]):
572 (-[WebFrameLoader setPolicyDocumentLoader:]):
573 (-[WebFrameLoader clearDataSource]):
574 (-[WebFrameLoader provisionalDataSource]):
575 (-[WebFrameLoader provisionalDocumentLoader]):
576 (-[WebFrameLoader setProvisionalDocumentLoader:]):
577 (-[WebFrameLoader _clearProvisionalDataSource]):
578 (-[WebFrameLoader _setState:]):
579 (-[WebFrameLoader clearProvisionalLoad]):
580 (-[WebFrameLoader commitProvisionalLoad]):
581 (-[WebFrameLoader stopLoading]):
582 (-[WebFrameLoader startLoading]):
583 (-[WebFrameLoader startProvisionalLoad:]):
584 (-[WebFrameLoader setupForReplace]):
585 (-[WebFrameLoader _didReceiveResponse:forResource:]):
586 (-[WebFrameLoader _originalRequest]):
587 (-[WebFrameLoader _receivedMainResourceError:complete:]):
588 (-[WebFrameLoader _receivedData:]):
589 (-[WebFrameLoader _setRequest:]):
590 (-[WebFrameLoader _isStopping]):
591 (-[WebFrameLoader _setupForReplaceByMIMEType:]):
592 (-[WebFrameLoader _setResponse:]):
593 (-[WebFrameLoader _mainReceivedError:complete:]):
594 (-[WebFrameLoader _finishedLoading]):
595 (-[WebFrameLoader _checkContentPolicyForMIMEType:andCall:withSelector:]):
596 (-[WebFrameLoader _loadRequest:archive:]):
597 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
598 (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
599 (-[WebFrameLoader reload]):
600 (-[WebFrameLoader finishedLoadingDocument:]):
601 (-[WebFrameLoader committedLoadWithDocumentLoader:data:]):
602 (-[WebFrameLoader revertToProvisionalWithDocumentLoader:]):
603 (-[WebFrameLoader documentLoader:setMainDocumentError:]):
604 (-[WebFrameLoader documentLoader:mainReceivedCompleteError:]):
605 (-[WebFrameLoader finalSetupForReplaceWithDocumentLoader:]):
606 (-[WebFrameLoader willChangeTitleForDocument:]):
607 (-[WebFrameLoader didChangeTitleForDocument:]):
608 (-[WebFrameLoader checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
609 (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
610 (-[WebFrameLoader loadDataSource:withLoadType:formState:]):
611 * Plugins/WebPluginController.m:
612 (-[WebPluginController pluginView:receivedResponse:]):
613 * WebCoreSupport/WebFrameBridge.m:
614 (-[WebFrameBridge setTitle:]):
615 (-[WebFrameBridge receivedData:textEncodingName:]):
616 * WebKit.xcodeproj/project.pbxproj:
617 * WebView/WebDataSource.m:
618 (-[WebDataSourcePrivate dealloc]):
619 (-[WebDataSource _mainDocumentError]):
620 (-[WebDataSource _loadFromPageCache:]):
621 (-[WebDataSource _bridge]):
622 (-[WebDataSource _webView]):
623 (-[WebDataSource _URLForHistory]):
624 (-[WebDataSource _documentLoader]):
625 (-[WebDataSource _initWithDocumentLoader:]):
626 (-[WebDataSource initWithRequest:]):
627 (-[WebDataSource dealloc]):
628 (-[WebDataSource data]):
629 (-[WebDataSource webFrame]):
630 (-[WebDataSource initialRequest]):
631 (-[WebDataSource request]):
632 (-[WebDataSource response]):
633 (-[WebDataSource textEncodingName]):
634 (-[WebDataSource isLoading]):
635 (-[WebDataSource unreachableURL]):
636 (-[WebDataSource webArchive]):
637 * WebView/WebDataSourceInternal.h:
638 * WebView/WebDocumentLoadStateMac.h: Removed.
639 * WebView/WebDocumentLoadStateMac.m: Removed.
640 * WebView/WebDocumentLoaderMac.h: Added.
641 * WebView/WebDocumentLoaderMac.m: Added.
642 * WebView/WebFrame.m:
643 (-[WebFrame _createItem:]):
644 (-[WebFrame _receivedMainResourceError:]):
645 (-[WebFrame _transitionToCommitted:]):
646 (-[WebFrame _opened]):
647 (-[WebFrame _checkLoadCompleteForThisFrame]):
648 (-[WebFrame _loadItem:withLoadType:]):
649 (-[WebFrame _continueFragmentScrollAfterNavigationPolicy:formState:]):
650 (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
651 (-[WebFrame _addChild:]):
652 (-[WebFrame _provisionalLoadStarted]):
653 (-[WebFrame _dataSourceForDocumentLoader:]):
654 (-[WebFrame _createDocumentLoaderWithRequest:]):
655 * WebView/WebFrameInternal.h:
656 * WebView/WebHTMLRepresentation.m:
657 (-[WebHTMLRepresentation title]):
659 (-[WebView _mainFrameOverrideEncoding]):
661 2006-10-08 Darin Adler <darin@apple.com>
665 - fix http://bugs.webkit.org/show_bug.cgi?id=11218
666 REGRESSION: Assertion failure in WebFrameLoader when going back from a file: or data: URL
668 Also added a helper function in WebFrameLoader so that checks for back/forward load types
671 * Loader/WebFrameLoader.m:
672 (-[WebFrameLoader _setPolicyDocumentLoadState:]): Fixed line of code that was setting the load
673 state to nil instead of the passed-in object.
674 (isBackForwardLoadType): Added.
675 (-[WebFrameLoader shouldReloadToHandleUnreachableURLFromRequest:]): Use isBackForwardLoadType.
676 (-[WebFrameLoader checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
678 (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]): Ditto.
680 2006-10-08 Darin Adler <darin@apple.com>
684 - fix two recently introduced leaks: one of an NSString, the other of a WebDataSource
686 * Loader/WebDocumentLoadState.m: (-[WebDocumentLoadState setTitle:]):
687 Rearranged code to avoid storage leak in case of identical title.
689 * Loader/WebFrameLoader.h: Removed _setPolicyDocumentLoadState: method
691 * Loader/WebFrameLoader.m:
692 (-[WebFrameLoader _setPolicyDocumentLoadState:]): Added logic to call detachFromFrameLoader
693 as needed if this load state is going away rather than moving on to become the provisional
695 (-[WebFrameLoader shouldReloadToHandleUnreachableURLFromRequest:]): Tweaked formatting.
696 (-[WebFrameLoader _loadRequest:archive:]): Added an assertion.
697 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]): Added an assertion.
698 (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]): Added an assertion.
699 (-[WebFrameLoader reload]): Added an assertion.
700 (-[WebFrameLoader loadDataSource:withLoadType:formState:]): Added a local variable to avoid
701 calling _documentLoadState over and over again.
703 2006-10-07 Don Gibson <dgibson77@gmail.com>
705 Reviewed/landed by Adam.
707 http://bugs.webkit.org/show_bug.cgi?id=11199
708 Update Session History when a load is committed rather than completed.
711 (WebFrame::receivedResponse):
712 (WebFrame::receivedAllData):
714 2006-10-07 Sam Weinig <sam.weinig@gmail.com>
718 Patch for http://bugs.webkit.org/show_bug.cgi?id=11198
719 Auto-generate a few more Objective-C DOM interfaces
721 * MigrateHeaders.make:
723 2006-10-07 Mark Rowe <bdash@webkit.org>
727 Fix memory leak from -[WebDocumentLoadState setTitle:].
729 * Loader/WebDocumentLoadState.m:
730 (-[WebDocumentLoadState setTitle:]): Ensure 'trimmed' is released even when length is
731 zero, and untangle the confusing logic around this case.
733 2006-10-06 Brady Eidson <beidson@apple.com>
737 Refactored a whole bunch of WebFramePrivate.h SPI to WebFrameInternal
739 * DefaultDelegates/WebDefaultContextMenuDelegate.m:
740 * History/WebHistoryItem.m:
741 * Loader/WebFrameLoader.h:
742 * Misc/WebCoreStatistics.m:
743 * Misc/WebElementDictionary.m:
744 * Plugins/WebNetscapePluginEmbeddedView.m:
745 * Plugins/WebPluginController.m:
746 * WebCoreSupport/WebViewFactory.m:
747 * WebView/WebArchiver.m:
748 * WebView/WebDataSource.m:
749 * WebView/WebFrame.m:
750 (-[WebFrame _isDescendantOfFrame:]):
751 (-[WebFrame _setShouldCreateRenderers:]):
752 (-[WebFrame _bodyBackgroundColor]):
753 (-[WebFrame _isFrameSet]):
754 (-[WebFrame _firstLayoutDone]):
755 (-[WebFrame _loadType]):
756 * WebView/WebFrameInternal.h:
757 * WebView/WebFramePrivate.h:
758 * WebView/WebHTMLRepresentation.m:
759 * WebView/WebScriptDebugDelegate.m:
761 2006-10-06 Maciej Stachowiak <mjs@apple.com>
765 - Move all delegate dispatching code out of WebDataSource.
767 * Loader/WebFrameLoader.m:
768 (-[WebFrameLoader startLoading]):
769 (-[WebFrameLoader _identifierForInitialRequest:]):
770 (-[WebFrameLoader _willSendRequest:forResource:redirectResponse:]):
771 (-[WebFrameLoader _didReceiveAuthenticationChallenge:forResource:]):
772 (-[WebFrameLoader _didCancelAuthenticationChallenge:forResource:]):
773 (-[WebFrameLoader _didReceiveResponse:forResource:]):
774 (-[WebFrameLoader _didReceiveData:contentLength:forResource:]):
775 (-[WebFrameLoader _didFinishLoadingForResource:]):
776 (-[WebFrameLoader _didFailLoadingWithError:forResource:]):
777 (-[WebFrameLoader _receivedMainResourceError:complete:]):
778 (-[WebFrameLoader _downloadWithLoadingConnection:request:response:proxy:]):
779 (-[WebFrameLoader _checkContentPolicyForMIMEType:andCall:withSelector:]):
780 * WebView/WebDataSource.m:
781 (-[WebDataSource _setLoadingFromPageCache:]):
782 (-[WebDataSource _stopLoadingWithError:]):
783 * WebView/WebDataSourceInternal.h:
785 2006-10-06 Darin Adler <darin@apple.com>
789 - moved firstLayoutDone BOOL from WebFrame to WebFrameLoader
791 * Loader/WebFrameLoader.h:
792 * Loader/WebFrameLoader.m:
793 (-[WebFrameLoader didFirstLayout]):
794 (-[WebFrameLoader provisionalLoadStarted]):
795 (-[WebFrameLoader frameLoadCompleted]):
796 (-[WebFrameLoader firstLayoutDone]):
797 * WebCoreSupport/WebFrameBridge.m: (-[WebFrameBridge didFirstLayout]):
798 * WebView/WebFrame.m:
799 (-[WebFrame _firstLayoutDone]):
800 (-[WebFrame _provisionalLoadStarted]):
801 (-[WebFrame _frameLoadCompleted]):
802 (-[WebFrame _restoreScrollPositionAndViewState]):
803 * WebView/WebFrameInternal.h:
805 2006-10-06 Darin Adler <darin@apple.com>
809 - moved more data and the corresponding code from WebFrame to WebFrameLoader
811 * Loader/WebFrameLoader.h:
812 * Loader/WebFrameLoader.m:
813 (-[WebFrameLoader cannotShowMIMETypeForURL:]):
814 (-[WebFrameLoader _checkNavigationPolicyForRequest:andCall:withSelector:]):
815 (-[WebFrameLoader shouldReloadToHandleUnreachableURLFromRequest:]):
816 (-[WebFrameLoader _loadRequest:archive:]):
817 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
818 (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
819 (-[WebFrameLoader reload]):
820 (-[WebFrameLoader invalidatePendingPolicyDecisionCallingDefaultAction:]):
821 (-[WebFrameLoader checkNewWindowPolicyForRequest:action:frameName:formState:andCall:withSelector:]):
822 (-[WebFrameLoader _continueAfterNewWindowPolicy:]):
823 (-[WebFrameLoader checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
824 (-[WebFrameLoader continueAfterNavigationPolicy:]):
825 (-[WebFrameLoader continueAfterWillSubmitForm:]):
826 (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
827 (-[WebFrameLoader loadDataSource:withLoadType:formState:]):
828 (-[WebFrameLoader handleUnimplementablePolicyWithErrorCode:forURL:]):
829 (-[WebFrameLoader delegateIsHandlingProvisionalLoadError]):
830 (-[WebFrameLoader setDelegateIsHandlingProvisionalLoadError:]):
831 * Loader/WebFrameLoaderClient.h:
832 * WebView/WebFrame.m:
833 (-[NSView setWebFrame::]):
834 (-[WebFramePrivate dealloc]):
835 (-[WebFrame _checkLoadCompleteForThisFrame]):
836 (-[WebFrame _loadItem:withLoadType:]):
837 (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
838 (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
839 (-[WebFrame _loadRequest:inFrameNamed:]):
840 (-[WebFrame stopLoading]):
841 (-[WebFrame _resetBackForwardList]):
842 (-[WebFrame _quickRedirectComing]):
843 (-[WebFrame _provisionalItemIsTarget]):
844 (-[WebFrame _loadProvisionalItemFromPageCache]):
845 * WebView/WebFrameInternal.h:
846 * WebView/WebFramePrivate.h:
848 * WebKit.xcodeproj/project.pbxproj:
850 2006-10-06 Maciej Stachowiak <mjs@apple.com>
852 Rubber stamped by Darin.
854 - removed includes of unused headers.
856 * WebView/WebDataSource.m:
858 2006-10-06 Maciej Stachowiak <mjs@apple.com>
864 * Loader/WebFrameLoader.m:
865 (-[WebFrameLoader willChangeTitleForDocumentLoadState:]):
866 (-[WebFrameLoader didChangeTitleForDocumentLoadState:]):
868 2006-10-06 Maciej Stachowiak <mjs@apple.com>
872 - move remaining movable WebDataSource fields to WebDocumentLoadState
874 * Loader/WebDocumentLoadState.h:
875 * Loader/WebDocumentLoadState.m:
876 (-[WebDocumentLoadState dealloc]):
877 (-[WebDocumentLoadState isLoadingInAPISense]):
878 (-[WebDocumentLoadState addResponse:]):
879 (-[WebDocumentLoadState stopRecordingResponses]):
880 (-[WebDocumentLoadState title]):
881 (-[WebDocumentLoadState setLastCheckedRequest:]):
882 (-[WebDocumentLoadState lastCheckedRequest]):
883 (-[WebDocumentLoadState triggeringAction]):
884 (-[WebDocumentLoadState setTriggeringAction:]):
885 (-[WebDocumentLoadState responses]):
886 (-[WebDocumentLoadState setOverrideEncoding:]):
887 (-[WebDocumentLoadState overrideEncoding]):
888 (-[WebDocumentLoadState setTitle:]):
889 * Loader/WebFrameLoader.h:
890 * Loader/WebFrameLoader.m:
891 (-[WebFrameLoader _setState:]):
892 (-[WebFrameLoader _loadRequest:archive:]):
893 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
894 (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
895 (-[WebFrameLoader reload]):
896 (-[WebFrameLoader willChangeTitleForDocumentLoadState:]):
897 (-[WebFrameLoader didChangeTitleForDocumentLoadState:]):
898 * WebCoreSupport/WebFrameBridge.m:
899 (-[WebFrameBridge setTitle:]):
900 (-[WebFrameBridge receivedData:textEncodingName:]):
901 * WebView/WebDataSource.m:
902 (-[WebDataSourcePrivate dealloc]):
903 (-[WebDataSource _didReceiveResponse:forResource:]):
904 (-[WebDataSource textEncodingName]):
905 * WebView/WebDataSourceInternal.h:
906 * WebView/WebFrame.m:
907 (-[WebFrame _opened]):
908 (-[WebFrame _checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
909 (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
910 (-[WebFrame _addChild:]):
911 (-[WebFrame _loadDataSource:withLoadType:formState:]):
912 * WebView/WebHTMLRepresentation.m:
913 (-[WebHTMLRepresentation title]):
915 (-[WebView _mainFrameOverrideEncoding]):
917 2006-10-06 Darin Adler <darin@apple.com>
921 - moved loadType into WebFrameLoader
923 * WebView/WebFramePrivate.h: Removed _setLoadType, but not _loadType because it's
924 currently used by Safari.
926 * Loader/WebFrameLoader.h:
927 * Loader/WebFrameLoader.m:
928 (-[WebFrameLoader _loadRequest:archive:]):
929 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
930 (-[WebFrameLoader isReplacing]):
931 (-[WebFrameLoader setReplacing]):
932 (-[WebFrameLoader loadType]):
933 (-[WebFrameLoader setLoadType:]):
934 * WebCoreSupport/WebFrameBridge.m:
935 (-[WebFrameBridge isLoadTypeReload]):
936 * WebView/WebFrame.m:
937 (-[WebFrame _loadType]):
938 (-[WebFrame _transitionToCommitted:]):
939 (-[WebFrame _commitProvisionalLoad:]):
940 (-[WebFrame _opened]):
941 (-[WebFrame _checkLoadCompleteForThisFrame]):
942 (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
943 (-[WebFrame _loadURL:referrer:intoChild:]):
944 (-[WebFrame _currentBackForwardListItemToResetTo]):
945 (-[WebFrame _itemForRestoringDocState]):
946 (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
947 (-[WebFrame _didFirstLayout]):
948 (-[WebFrame _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
949 (-[WebFrame _provisionalLoadStarted]):
950 (-[WebFrame loadRequest:]):
952 2006-10-06 Darin Adler <darin@apple.com>
956 - added WebFrameLoaderClient protocol -- to be used to make WebFrameLoader forget all about WebFrame
958 * Loader/WebDocumentLoadState.h: Added comment about Maciej's planned renaming here.
959 * Loader/WebFrameLoader.h:
960 * Loader/WebFrameLoader.m: Renamed webFrame to client and added the new protocol.
961 Eventually we'll be removing the dependency on WebFrame entirely.
962 * WebView/WebFrame.m: (-[WebFrame _initWithWebFrameView:webView:bridge:]): Update to call the method
965 * Loader/WebFrameLoaderClient.h: Added.
966 * WebKit.xcodeproj/project.pbxproj: Updated for new file, sorted things.
968 2006-10-06 Maciej Stachowiak <mjs@apple.com>
972 - segregate WebFrame methods into ones that should be moved into WebFrameLoader and ones that don't need to
974 Also removed useless WebFrameLoader part
976 * WebView/WebFrame.m:
977 (-[WebFramePrivate dealloc]):
979 2006-10-06 Maciej Stachowiak <mjs@apple.com>
983 - moved more data from WebDataSource to WebDocumentLoadState
985 * Loader/WebDocumentLoadState.h:
986 * Loader/WebDocumentLoadState.m:
987 (-[WebDocumentLoadState commitLoadWithData:]):
988 (-[WebDocumentLoadState prepareForLoadStart]):
989 (-[WebDocumentLoadState loadingStartedTime]):
990 (-[WebDocumentLoadState setIsClientRedirect:]):
991 (-[WebDocumentLoadState isClientRedirect]):
992 (-[WebDocumentLoadState setPrimaryLoadComplete:]):
993 (-[WebDocumentLoadState isLoadingInAPISense]):
994 * Loader/WebFrameLoader.h:
995 * Loader/WebFrameLoader.m:
996 (-[WebFrameLoader _setState:]):
997 (-[WebFrameLoader _finishedLoading]):
998 (-[WebFrameLoader documentLoadState:mainReceivedCompleteError:]):
999 (-[WebFrameLoader prepareForLoadStart]):
1000 (-[WebFrameLoader subframeIsLoading]):
1001 * WebView/WebDataSource.m:
1002 (-[WebDataSource _fileWrapperForURL:]):
1003 (-[WebDataSource _startLoading]):
1004 (-[WebDataSource _loadFromPageCache:]):
1005 (-[WebDataSource isLoading]):
1006 * WebView/WebDataSourceInternal.h:
1007 * WebView/WebFrame.m:
1008 (-[WebFrame _transitionToCommitted:]):
1009 (-[WebFrame _opened]):
1010 (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
1012 2006-10-06 Alexey Proskuryakov <ap@nypop.com>
1016 http://bugs.webkit.org/show_bug.cgi?id=11183
1017 REGRESSION: Safari loads error pages unstyled
1019 * WebView/WebFrame.m:
1020 (-[WebFrame _loadHTMLString:baseURL:unreachableURL:]):
1021 Use utf-8 encoding instead of the string's "fastest" encoding.
1023 2006-10-06 Maciej Stachowiak <mjs@apple.com>
1027 - fixed the following bugs:
1029 http://bugs.webkit.org/show_bug.cgi?id=11136
1030 "REGRESSION: Safari snippet editor doesn't work"
1031 http://bugs.webkit.org/show_bug.cgi?id=11140
1032 "REGRESSION: view source window blank"
1033 http://bugs.webkit.org/show_bug.cgi?id=11146
1034 "REGRESSION: Instead of showing the error page, Safari opens its Resources folder in the Finder"
1038 * Loader/WebDocumentLoadState.h:
1039 * Loader/WebDocumentLoadState.m:
1040 (-[WebDocumentLoadState actualRequest]): New method.
1041 * WebView/WebDataSource.m:
1042 (-[WebDataSource _startLoading]): We need to make sure not to start loading the main
1043 resource with the fake external request for an applewebdata: request.
1045 2006-10-05 Adele Peterson <adele@apple.com>
1047 Reviewed by the letter 'B'.
1051 * WebKit.xcodeproj/project.pbxproj:
1052 * WebView/WebDynamicScrollBarsView.h:
1053 * WebView/WebDynamicScrollBarsView.m:
1054 (-[WebDynamicScrollBarsView updateScrollers]):
1055 (-[WebDynamicScrollBarsView setAllowsScrolling:]):
1056 (-[WebDynamicScrollBarsView allowsScrolling]):
1057 (-[WebDynamicScrollBarsView setAllowsHorizontalScrolling:]):
1058 (-[WebDynamicScrollBarsView setAllowsVerticalScrolling:]):
1059 (-[WebDynamicScrollBarsView allowsHorizontalScrolling]):
1060 (-[WebDynamicScrollBarsView allowsVerticalScrolling]):
1061 (-[WebDynamicScrollBarsView horizontalScrollingMode]):
1062 (-[WebDynamicScrollBarsView verticalScrollingMode]):
1063 (-[WebDynamicScrollBarsView setHorizontalScrollingMode:]):
1064 (-[WebDynamicScrollBarsView setVerticalScrollingMode:]):
1065 (-[WebDynamicScrollBarsView setScrollingMode:]):
1066 * WebView/WebView.m:
1067 (-[WebView setAlwaysShowVerticalScroller:]):
1068 (-[WebView alwaysShowVerticalScroller]):
1069 (-[WebView setAlwaysShowHorizontalScroller:]):
1070 (-[WebView alwaysShowHorizontalScroller]):
1072 2006-10-05 Vladimir Olexa <vladimir.olexa@gmail.com>
1074 Reviewed by Timothy.
1076 Bug: http://bugs.webkit.org/show_bug.cgi?id=9887
1077 Continuous spell checking now remembers user's setting. The change is applied globally,
1078 meaning, both TextArea and TextField are affected when either of them enables/disables
1081 * WebView/WebPreferenceKeysPrivate.h: added a define for WebContinuousSpellCheckingEnabled
1082 * WebView/WebView.m:
1083 (-[WebViewPrivate init]): reads WebContinuousSpellCheckingEnabled from NSUserDefaults
1084 (-[WebView setContinuousSpellCheckingEnabled:]):
1085 (-[WebView isContinuousSpellCheckingEnabled]):
1087 2006-10-05 MorganL <morganl.webkit@yahoo.com>
1091 Fixes http://bugs.webkit.org/show_bug.cgi?id=11162
1094 (WebFrame::loadDataSource):
1095 (WebFrame::receivedResponse):
1097 2006-10-05 Don Gibson <dgibson77@gmail.com>
1099 Reviewed by Darin, landed by Adam.
1101 http://bugs.webkit.org/show_bug.cgi?id=11176
1102 Fix win32 build, adapt to Maciej's ResourceLoader changes.
1105 (WebFrame::loadDataSource):
1107 2006-10-05 Marvin Decker <marv.decker@gmail.com>
1111 http://bugs.webkit.org/show_bug.cgi?id=10989
1112 Provide a way for embedders to implement BrowserExtensionWin
1114 * COM/Interfaces/IWebUIDelegate.idl:
1116 (WebFrame::createNewWindow):
1119 2006-10-04 Mark Rowe <bdash@webkit.org>
1121 Reviewed by NOBODY (build fix).
1123 * WebView/WebView.m:
1124 (-[WebView scrollDOMRangeToVisible:]): Move scrollDOMRangeToVisible: into the correct category.
1126 2006-09-26 David Smith <catfish.man@gmail.com>
1128 Reviewed by Timothy.
1130 http://bugs.webkit.org/show_bug.cgi?id=3723
1131 Add -scrollDOMRangeToVisible:
1133 * WebView/WebView.m:
1134 (-[WebView scrollDOMRangeToVisible:]):
1135 * WebView/WebViewPrivate.h:
1137 2006-10-03 Graham Dennis <graham.dennis@gmail.com>
1139 Reviewed by Timothy.
1141 <http://bugs.webkit.org/show_bug.cgi?id=10338>
1142 When contentEditable, cursor doesn't change to hand
1144 Allow the behaviour of editable links to be specified by a WebPreference
1145 The preference WebKitEditableLinkBehavior has four options:
1146 - AlwaysLive: Safari 2.0 behaviour
1147 - OnlyLiveWithShiftKey: Firefox/WinIE behaviour (and prior WebKit-ToT behaviour)
1148 - LiveWhenNotFocused: Editable links are live only when their editable block is not
1149 focused, or when the shift key is pressed
1150 - DefaultBehavior: This is the same as OnlyLiveWithShiftKey.
1152 No layout tests, just a modification of a manual-test as it isn't possible to test
1155 * WebView/WebPreferenceKeysPrivate.h:
1156 * WebView/WebPreferences.m:
1157 (+[WebPreferences initialize]):
1158 (-[WebPreferences editableLinkBehavior]):
1159 (-[WebPreferences setEditableLinkBehavior:]):
1160 * WebView/WebPreferencesPrivate.h:
1161 * WebView/WebView.m:
1162 (-[WebView _updateWebCoreSettingsFromPreferences:]):
1164 2006-10-03 Justin Garcia <justin.garcia@apple.com>
1166 Reviewed by harrison
1168 execCommand("Cut"/"Copy"/"Paste") broken in editable subframes.
1170 * WebCoreSupport/WebFrameBridge.m:
1171 (-[WebFrameBridge issueCutCommand]): Issue the command on the WebHTMLView, not the WebView.
1172 (-[WebFrameBridge issueCopyCommand]): Ditto.
1173 (-[WebFrameBridge issuePasteCommand]): Ditto.
1174 (-[WebFrameBridge issuePasteAndMatchStyleCommand]): Ditto.
1175 (-[WebFrameBridge issueTransposeCommand]): Fixed formatting.
1176 (-[WebFrameBridge canPaste]): Ask the WebHTMLView, not the WebView.
1177 * WebView/WebHTMLView.m:
1178 (-[WebHTMLView copy:]): Moved to WebInternal
1179 (-[WebHTMLView cut:]): Ditto.
1180 (-[WebHTMLView paste:]): Ditto.
1181 (-[WebHTMLView pasteAsPlainText:]): Ditto.
1182 * WebView/WebHTMLViewInternal.h:
1183 * WebView/WebView.m: Removed the now unused _canPaste.
1184 * WebView/WebViewInternal.h: Ditto.
1186 2006-10-03 Justin Garcia <justin.garcia@apple.com>
1190 <rdar://problem/4763519> REGRESSION: Multipart/x-mixed-replace sub-resources fail to load
1192 * Loader/WebSubresourceLoader.m:
1193 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
1194 Enable multipart/x-mixed-replace support on the request. This line was accidently removed during
1195 some loader refactoring.
1197 2006-10-02 Adam Roben <aroben@apple.com>
1201 Add message paramter to WebView::mouse* methods to pass down to
1205 (WebView::mouseMoved):
1206 (WebView::mouseDown):
1208 (WebView::mouseDoubleClick):
1212 2006-10-02 Maciej Stachowiak <mjs@apple.com>
1216 - take away direct knowledge of WebFrame from WebDataSource
1218 * Loader/WebDocumentLoadState.h:
1219 * Loader/WebDocumentLoadState.m:
1220 (-[WebDocumentLoadState setFrameLoader:]):
1221 (-[WebDocumentLoadState detachFromFrameLoader]):
1222 * Loader/WebFrameLoader.m:
1223 (-[WebFrameLoader _setDocumentLoadState:]):
1224 (-[WebFrameLoader _setProvisionalDocumentLoadState:]):
1225 * WebView/WebDataSource.m:
1226 * WebView/WebDataSourceInternal.h:
1227 * WebView/WebDocumentLoadStateMac.m:
1228 (-[WebDocumentLoadStateMac detachFromFrameLoader]):
1229 * WebView/WebFrame.m:
1230 (-[WebFrame _loadDataSource:withLoadType:formState:]):
1232 2006-10-02 Maciej Stachowiak <mjs@apple.com>
1236 - move a big slice of data and logic from WebDataSource to WebDocumentLoadState
1238 * Loader/WebDocumentLoadState.h:
1239 * Loader/WebDocumentLoadState.m:
1240 (-[WebDocumentLoadState initWithRequest:]):
1241 (-[WebDocumentLoadState dealloc]):
1242 (-[WebDocumentLoadState originalRequestCopy]):
1243 (-[WebDocumentLoadState request]):
1244 (-[WebDocumentLoadState replaceRequestURLForAnchorScrollWithURL:]):
1245 (-[WebDocumentLoadState setRequest:]):
1246 (-[WebDocumentLoadState setResponse:]):
1247 (-[WebDocumentLoadState isStopping]):
1248 (-[WebDocumentLoadState bridge]):
1249 (-[WebDocumentLoadState setMainDocumentError:]):
1250 (-[WebDocumentLoadState mainDocumentError]):
1251 (-[WebDocumentLoadState clearErrors]):
1252 (-[WebDocumentLoadState mainReceivedError:complete:]):
1253 (-[WebDocumentLoadState stopLoading]):
1254 (-[WebDocumentLoadState setupForReplace]):
1255 (-[WebDocumentLoadState commitIfReady]):
1256 (-[WebDocumentLoadState finishedLoading]):
1257 (-[WebDocumentLoadState setCommitted:]):
1258 (-[WebDocumentLoadState isCommitted]):
1259 (-[WebDocumentLoadState setLoading:]):
1260 (-[WebDocumentLoadState isLoading]):
1261 (-[WebDocumentLoadState commitLoadWithData:]):
1262 (-[WebDocumentLoadState doesProgressiveLoadWithMIMEType:]):
1263 (-[WebDocumentLoadState receivedData:]):
1264 (-[WebDocumentLoadState setupForReplaceByMIMEType:]):
1265 (-[WebDocumentLoadState updateLoading]):
1266 (-[WebDocumentLoadState response]):
1267 * Loader/WebFrameLoader.h:
1268 * Loader/WebFrameLoader.m:
1269 (-[WebFrameLoader activeDocumentLoadState]):
1270 (-[WebFrameLoader activeDataSource]):
1271 (-[WebFrameLoader _archivedSubresourceForURL:]):
1272 (-[WebFrameLoader addPlugInStreamLoader:]):
1273 (-[WebFrameLoader removePlugInStreamLoader:]):
1274 (-[WebFrameLoader addSubresourceLoader:]):
1275 (-[WebFrameLoader removeSubresourceLoader:]):
1276 (-[WebFrameLoader documentLoadState]):
1277 (-[WebFrameLoader provisionalDocumentLoadState]):
1278 (-[WebFrameLoader stopLoading]):
1279 (-[WebFrameLoader _originalRequest]):
1280 (-[WebFrameLoader _receivedData:]):
1281 (-[WebFrameLoader _setRequest:]):
1282 (-[WebFrameLoader bridge]):
1283 (-[WebFrameLoader _handleFallbackContent]):
1284 (-[WebFrameLoader _isStopping]):
1285 (-[WebFrameLoader _setupForReplaceByMIMEType:]):
1286 (-[WebFrameLoader _setResponse:]):
1287 (-[WebFrameLoader _mainReceivedError:complete:]):
1288 (-[WebFrameLoader _finishedLoading]):
1289 (-[WebFrameLoader didReceiveServerRedirectForProvisionalLoadForFrame]):
1290 (-[WebFrameLoader finishedLoadingDocumentLoadState:]):
1291 (-[WebFrameLoader commitProvisitionalLoad]):
1292 (-[WebFrameLoader committedLoadWithDocumentLoadState:data:]):
1293 (-[WebFrameLoader isReplacing]):
1294 (-[WebFrameLoader setReplacing]):
1295 (-[WebFrameLoader revertToProvisionalWithDocumentLoadState:]):
1296 (-[WebFrameLoader documentLoadState:setMainDocumentError:]):
1297 (-[WebFrameLoader documentLoadState:mainReceivedCompleteError:]):
1298 (-[WebFrameLoader finalSetupForReplaceWithDocumentLoadState:]):
1299 * WebView/WebDataSource.m:
1300 (-[WebDataSourcePrivate dealloc]):
1301 (-[WebDataSource _prepareForLoadStart]):
1302 (-[WebDataSource _mainDocumentError]):
1303 (-[WebDataSource _finishedLoading]):
1304 (-[WebDataSource _receivedData:]):
1305 (-[WebDataSource _setMainDocumentError:]):
1306 (-[WebDataSource _clearUnarchivingState]):
1307 (-[WebDataSource _revertToProvisionalState]):
1308 (-[WebDataSource _receivedMainResourceError:complete:]):
1309 (-[WebDataSource _startLoading]):
1310 (-[WebDataSource _loadFromPageCache:]):
1311 (-[WebDataSource _bridge]):
1312 (-[WebDataSource _setPrimaryLoadComplete:]):
1313 (-[WebDataSource _URLForHistory]):
1314 (-[WebDataSource _setTitle:]):
1315 (-[WebDataSource _initWithDocumentLoadState:]):
1316 (-[WebDataSource request]):
1317 (-[WebDataSource response]):
1318 (-[WebDataSource isLoading]):
1319 (-[WebDataSource webArchive]):
1320 * WebView/WebDataSourceInternal.h:
1321 * WebView/WebDocumentLoadStateMac.m:
1322 (-[WebDocumentLoadStateMac initWithRequest:]):
1323 * WebView/WebFrame.m:
1324 (-[WebFrame _createItem:]):
1325 (-[WebFrame _receivedMainResourceError:]):
1326 (-[WebFrame _transitionToCommitted:]):
1327 (-[WebFrame _commitProvisionalLoad:]):
1328 (-[WebFrame _checkLoadCompleteForThisFrame]):
1329 (-[WebFrame _loadItem:withLoadType:]):
1330 (-[WebFrame _continueFragmentScrollAfterNavigationPolicy:formState:]):
1331 (-[WebFrame _didReceiveServerRedirectForProvisionalLoadForFrame]):
1332 (-[WebFrame _provisionalLoadStarted]):
1333 * WebView/WebFrameInternal.h:
1335 2006-10-02 Justin Garcia <justin.garcia@apple.com>
1339 <rdar://problem/4757583>
1340 REGRESSION: tabbing into page focuses wrong control on 2nd pass
1341 <rdar://problem/4757594>
1342 REGRESSION: Form field is left with secondary selection after tabbing out of WebView
1344 * WebView/WebHTMLView.m:
1345 (-[NSArray maintainsInactiveSelection]): Replace code that I removed in error in the patch
1346 for 9642. Only leave inactive editable selections in the WebHTMLView if the nextResponder
1347 is in the same WebView.
1349 2006-10-02 Maciej Stachowiak <mjs@apple.com>
1353 - remove webFrame field from WebDataSourcePrivate, it can get it from WebDocumentLoadState now
1355 * Loader/WebDocumentLoadState.h:
1356 * Loader/WebDocumentLoadState.m:
1357 (-[WebDocumentLoadState frameLoader]):
1358 * WebView/WebDataSource.m:
1359 (-[WebDataSourcePrivate dealloc]):
1360 (-[WebDataSource _revertToProvisionalState]):
1361 (-[WebDataSource _setupForReplaceByMIMEType:]):
1362 (-[WebDataSource _updateLoading]):
1363 (-[WebDataSource _startLoading]):
1364 (-[WebDataSource _setWebFrame:]):
1365 (-[WebDataSource _defersCallbacksChanged]):
1366 (-[WebDataSource _stopLoading]):
1367 (-[WebDataSource _webView]):
1368 (-[WebDataSource _stopLoadingWithError:]):
1369 (-[WebDataSource _setPrimaryLoadComplete:]):
1370 (-[WebDataSource dealloc]):
1371 (-[WebDataSource webFrame]):
1372 (-[WebDataSource isLoading]):
1374 2006-10-02 Maciej Stachowiak <mjs@apple.com>
1378 - fix crash on back/forward - reattach WebDocumentLoadState to data source when needed
1380 * WebView/WebDataSource.m:
1381 (-[WebDataSource _setWebFrame:]):
1382 (-[WebDataSource _initWithDocumentLoadState:]):
1383 * WebView/WebDataSourceInternal.h:
1385 2006-10-02 Maciej Stachowiak <mjs@apple.com>
1387 Build fix, not reviewed.
1389 - Added missing files to fix build.
1391 * WebView/WebDocumentLoadStateMac.h: Added.
1392 * WebView/WebDocumentLoadStateMac.m: Added.
1393 (-[WebDocumentLoadStateMac initWithRequest:]):
1394 (-[WebDocumentLoadStateMac dealloc]):
1395 (-[WebDocumentLoadStateMac setDataSource:]):
1396 (-[WebDocumentLoadStateMac dataSource]):
1397 (-[WebDocumentLoadStateMac setFrameLoader:]):
1399 2006-10-01 Maciej Stachowiak <mjs@apple.com>
1401 Reviewed by Brady and Oliver.
1403 - move things around so that WebDataSource and WebDocumentLoadState know about each other in
1404 the right way. This lines things up to move nearly all functionality down to WebDocumentLoadState.
1406 * Loader/WebDocumentLoadState.h:
1407 * Loader/WebDocumentLoadState.m:
1408 (-[WebDocumentLoadState initWithRequest:]):
1409 (-[WebDocumentLoadState dealloc]):
1410 (-[WebDocumentLoadState originalRequest]):
1411 * Loader/WebFrameLoader.h:
1412 * Loader/WebFrameLoader.m:
1413 (-[WebFrameLoader dealloc]):
1414 (-[WebFrameLoader addSubresourceLoader:]):
1415 (-[WebFrameLoader startLoadingMainResourceWithRequest:identifier:]):
1416 (-[WebFrameLoader dataSource]):
1417 (-[WebFrameLoader _setDocumentLoadState:]):
1418 (-[WebFrameLoader policyDataSource]):
1419 (-[WebFrameLoader _setPolicyDocumentLoadState:]):
1420 (-[WebFrameLoader clearDataSource]):
1421 (-[WebFrameLoader provisionalDataSource]):
1422 (-[WebFrameLoader _setProvisionalDocumentLoadState:]):
1423 (-[WebFrameLoader _clearProvisionalDataSource]):
1424 (-[WebFrameLoader _setState:]):
1425 (-[WebFrameLoader clearProvisionalLoad]):
1426 (-[WebFrameLoader commitProvisionalLoad]):
1427 (-[WebFrameLoader stopLoading]):
1428 (-[WebFrameLoader startLoading]):
1429 (-[WebFrameLoader startProvisionalLoad:]):
1430 (-[WebFrameLoader setupForReplace]):
1431 (-[WebFrameLoader activeDocumentLoadState]):
1432 (-[WebFrameLoader activeDataSource]):
1433 (-[WebFrameLoader _loadRequest:archive:]):
1434 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
1435 (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
1436 (-[WebFrameLoader reload]):
1437 * WebKit.xcodeproj/project.pbxproj:
1438 * WebView/WebDataSource.m:
1439 (-[WebDataSourcePrivate dealloc]):
1440 (-[WebDataSource _startLoading]):
1441 (-[WebDataSource _setWebFrame:]):
1442 (-[WebDataSource _documentLoadState]):
1443 (-[WebDataSource _initWithDocumentLoadState:]):
1444 (-[WebDataSource initWithRequest:]):
1445 (-[WebDataSource initialRequest]):
1446 (-[WebDataSource unreachableURL]):
1447 * WebView/WebDataSourceInternal.h:
1448 * WebView/WebFrame.m:
1449 (-[WebFramePrivate dealloc]):
1450 (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
1451 (-[WebFrame _loadDataSource:withLoadType:formState:]):
1452 (-[WebFrame _policyDataSource]):
1453 (-[WebFrame _shouldReloadToHandleUnreachableURLFromRequest:]):
1454 (-[WebFrame _dataSourceForDocumentLoadState:]):
1455 (-[WebFrame _createDocumentLoadStateWithRequest:]):
1456 * WebView/WebFrameInternal.h:
1458 2006-09-29 David Hyatt <hyatt@apple.com>
1460 Change the default minimum font size pref to 0 in order to allow
1461 font-size:0 to work.
1463 * WebView/WebPreferences.m:
1464 (+[WebPreferences initialize]):
1466 2006-09-28 Timothy Hatcher <timothy@apple.com>
1470 Switch the inspector over to use border-image with styled buttons and selects.
1472 * WebInspector/WebInspector.m:
1473 (-[NSWindow window]):
1474 (-[NSWindow setWebFrame:]):
1475 (-[WebInspector _updateRoot]):
1476 * WebInspector/webInspector/Images/button.png: Added.
1477 * WebInspector/webInspector/Images/buttonDivider.png: Added.
1478 * WebInspector/webInspector/Images/buttonPressed.png: Added.
1479 * WebInspector/webInspector/Images/popup.png: Added.
1480 * WebInspector/webInspector/Images/popupFill.png: Removed.
1481 * WebInspector/webInspector/Images/popupFillPressed.png: Removed.
1482 * WebInspector/webInspector/Images/popupLeft.png: Removed.
1483 * WebInspector/webInspector/Images/popupLeftPressed.png: Removed.
1484 * WebInspector/webInspector/Images/popupPressed.png: Added.
1485 * WebInspector/webInspector/Images/popupRight.png: Removed.
1486 * WebInspector/webInspector/Images/popupRightPressed.png: Removed.
1487 * WebInspector/webInspector/Images/squareButtonRight.png: Removed.
1488 * WebInspector/webInspector/Images/squareButtonRightPressed.png: Removed.
1489 * WebInspector/webInspector/inspector.css:
1490 * WebInspector/webInspector/inspector.html:
1491 * WebInspector/webInspector/inspector.js:
1493 2006-09-28 Alice Liu <alice.liu@apple.com>
1495 fixing the windows build
1498 (WebView::mouseMoved):
1499 (WebView::mouseDown):
1501 (WebView::mouseDoubleClick):
1503 2006-09-27 Justin Garcia <justin.garcia@apple.com>
1505 Reviewed by thatcher
1507 <rdar://problem/4044271>
1508 Writing Direction menu doesn't reflect the current writing direction (9773)
1510 * English.lproj/Localizable.strings: Added "Right to Left" and "Left to Right"
1511 * WebView/WebHTMLView.m:
1512 (-[NSArray validateUserInterfaceItem:]): Validate menu items that perform
1513 toggleBaseWritingDirection and changeBaseWritingDirection.
1514 Disable the menu item that changes the writing direction to NSWritingDirectionNautral
1515 because NSWritingDirectionNatural's behavior can't be implemented with CSS.
1516 Take control of the title of the menu item that performs toggleBaseWritingDirection:
1517 instead of checking/unchecking it, otherwise we wouldn't know what a check means.
1518 (-[NSArray changeBaseWritingDirection:]): ASSERT that the requested writing
1519 direction is not NSWritingDirectionNatural, since we've disabled the
1520 menu item that performs it.
1522 2006-09-27 MorganL <morganl.webkit@yahoo.com>
1524 Reviewed by Maciej, landed by Brady
1526 Update URL request associated with provisional data source on redirect.
1527 Notify IWebFrameLoadDelegate of redirects for the provisional load.
1528 Notify IWebFrameLoadDelegate of a provisional load being commited.
1530 * COM/WebDataSource.cpp:
1531 (WebDataSource::replaceRequest):
1532 * COM/WebDataSource.h:
1534 (WebFrame::receivedRedirect):
1535 (WebFrame::receivedResponse):
1536 (WebFrame::receivedData):
1538 2006-09-26 John Sullivan <sullivan@apple.com>
1542 * WebView/WebHTMLViewPrivate.h:
1543 * WebView/WebHTMLView.m:
1544 (-[WebHTMLView markAllMatchesForText:caseSensitive:limit:]):
1545 Added limit parameter, passed over the bridge. Stop the search if it hits limit.
1547 * WebView/WebViewPrivate.h:
1548 * WebView/WebView.m:
1549 (-[WebView markAllMatchesForText:caseSensitive:highlight:limit:]):
1550 Added limit parameter, passed to WebHTMLView.
1552 2006-09-26 David Harrison <harrison@apple.com>
1554 Reviewed by John and TimH.
1556 <rdar://problem/4743256> Seed: Ctrl-Y key binding does nothing when kill ring is empty
1558 Use deleteBackward: when the killring string is empty. Was always using insertText:,
1559 but that ends up early-returning if the string to insert is empty.
1561 * WebView/WebHTMLView.m:
1563 (-[NSArray yankAndSelect:]):
1565 2006-09-25 Timothy Hatcher <timothy@apple.com>
1569 Use the non-deprecated method names for getComputedStyle, setEnd and setStart.
1571 * WebInspector/WebInspector.m:
1572 (-[WebInspector _highlightNode:]):
1573 * WebView/WebHTMLView.m:
1575 (-[WebHTMLView _selectRangeInMarkedText:]):
1576 (-[WebTextCompleteController doCompletion]):
1577 * WebView/WebView.m:
1578 (-[WebView computedStyleForElement:pseudoElement:]):
1580 2006-09-22 Timothy Hatcher <timothy@apple.com>
1584 Pass all headers through unifdef to filter out BUILDING_ON_TIGER blocks
1585 if MACOSX_DEPLOYMENT_TARGET is 10.4.
1587 * MigrateHeaders.make:
1589 2006-09-20 Justin Garcia <justin.garcia@apple.com>
1593 <http://bugs.webkit.org/show_bug.cgi?id=7165>
1594 TinyMCE: Dragging & dropping content always leaves a copy when editing inside a subframe
1596 The top level WebHTMLView is responsible for performing dragging operations, but
1597 the inner view, the view that holds the drag caret, should be consulted to determine
1598 if the drag is a move drag.
1600 * WebCoreSupport/WebFrameBridge.m:
1601 (-[WebFrameBridge startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
1602 * WebKit.xcodeproj/project.pbxproj:
1603 * WebView/WebHTMLView.m:
1604 (-[NSArray dragImage:at:offset:event:pasteboard:source:slideBack:]): Don't set initatedDrag here, because
1605 it's only the top level WebHTMLView that performs this operation.
1606 (-[WebHTMLView _setInitiatedDrag:]): Added.
1607 (-[WebHTMLView _initiatedDrag]): Ditto.
1608 (-[WebHTMLView _canProcessDragWithDraggingInfo:]): Ask the innerView if it initiated the drag,
1609 not the top level view.
1610 (-[WebHTMLView _isMoveDrag]): The top level view asks the innerView if it should perform
1611 a move drag, so don't ASSERT _isTopHTMLView.
1612 (-[WebHTMLView draggingUpdatedWithDraggingInfo:actionMask:]): Ask the innerView if _isMoveDrag.
1613 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): Ditto.
1614 * WebView/WebHTMLViewInternal.h: Added two private SPI so that
1615 the top level WebHTMLView can set and get the initiatedDrag BOOL.
1617 === Safari-521.27 ===
1619 2006-09-20 Brady Eidson <beidson@apple.com>
1621 Reviewed by Tim Omernick
1623 Fixing part of a crash Tim O showed me. [WebIconDatabase init] should finish
1624 gracefully even if we can't open the database
1626 * Misc/WebIconDatabase.m:
1627 (-[WebIconDatabase init]):
1629 2006-09-20 Timothy Hatcher <timothy@apple.com>
1633 <rdar://problem/4741392> Develop a system to find what version of WebKit an app was linked with
1635 * Misc/WebKitVersionChecks.h: Added.
1636 * Misc/WebKitVersionChecks.m: Added.
1637 (WebKitLinkedOnOrAfter): Added.
1638 (WebKitLinkTimeVersion): Added.
1639 (WebKitRunTimeVersion): Added.
1640 * WebKit.xcodeproj/project.pbxproj:
1642 2006-09-20 Tim Omernick <timo@apple.com>
1646 * Misc/WebIconDatabase.m:
1647 (-[WebIconDatabase init]):
1650 2006-09-20 Brady Eidson <beidson@apple.com>
1654 Preparing to make the WebIconDatabase disabled by default - this patch tells the bridge whether its enabled or not
1656 * Misc/WebIconDatabase.m:
1657 (-[WebIconDatabase init]):
1659 2006-09-19 Brady Eidson <beidson@apple.com>
1661 Reviewed by Sarge Decker
1663 <rdar://problem/4739892> and <rdar://problem/4729797>
1664 - WebCore::IconDatabase needs to have and respect an enabled() flag
1665 - Mail on ToT WebKit crashes in IconDatabase code when mailing a page from Safari
1667 * Misc/WebIconDatabase.m:
1668 (-[WebIconDatabase init]): If preference says icons are disabled, tell the bridge
1669 (-[WebIconDatabase _isEnabled]): Ask the bridge if the database is enabled
1671 2006-09-19 Alexey Proskuryakov <ap@nypop.com>
1675 http://bugs.webkit.org/show_bug.cgi?id=10661
1676 REGRESSION: CFM plug-ins (Shockwave, SVG) are not loaded
1678 * Plugins/WebBasePluginPackage.m:
1679 (-[WebBasePluginPackage initWithPath:]): On 32-bit PowerPC, don't bail out if
1680 the bundle is nil - it can be a CFM plugin.
1682 2006-09-18 Brady Eidson <beidson@apple.com>
1686 Implement a bridge method so WebCore can find the reload type of a frame load
1688 * WebCoreSupport/WebFrameBridge.m:
1689 (-[WebFrameBridge isLoadTypeReload]):
1691 2006-09-18 Sam Weinig <sam.weinig@gmail.com>
1695 Patch for http://bugs.webkit.org/show_bug.cgi?id=10903
1696 Yet Another Objective-C Bindings Patch
1698 * MigrateHeaders.make:
1700 2006-09-17 David Harrison <harrison@apple.com>
1702 Reviewed by John Sullivan.
1704 <rdar://problem/4494340> REGRESSION: Making the font size bigger/smaller in an HTML message doesn't affect the body until you reopen it
1706 Problem was the public API -[WebView setTextSizeMultiplier] did not notify anyone that the value changed.
1708 * WebView/WebDocumentInternal.h:
1709 Add _textSizeMultiplierChanged to the _WebDocumentTextSizing protocol.
1711 * WebView/WebHTMLView.m:
1712 (-[WebHTMLView _textSizeMultiplierChanged]):
1713 Send [self _updateTextSizeMultiplier].
1715 * WebView/WebPDFView.m:
1716 (-[WebPDFView _textSizeMultiplierChanged]):
1717 ASSERT_NOT_REACHED() because WebPDFView does not track the common multiplier.
1719 * WebView/WebView.m:
1720 (-[WebView setTextSizeMultiplier:]):
1721 Send [self _notifyTextSizeMultiplierChanged];
1723 (-[WebView _performTextSizingSelector:withObject:onTrackingDocs:selForNonTrackingDocs:newScaleFactor:]):
1724 Alter the _textSizeMultiplier directly so that notification is not sent.
1727 (-[WebView _notifyTextSizeMultiplierChanged]):
1728 New. Send _textSizeMultiplierChanged to all document views that track the common multiplier.
1730 2006-09-16 Brady Eidson <beidson@apple.com>
1734 WebIconLoader is dead, long live WebCore::IconLoader
1737 * Loader/WebFrameLoader.h:
1738 * Loader/WebFrameLoader.m:
1739 (-[WebFrameLoader dealloc]):
1740 (-[WebFrameLoader commitProvisionalLoad]):
1741 * Loader/WebIconLoader.h: Removed.
1742 * Loader/WebIconLoader.m: Removed.
1743 * Misc/WebIconDatabase.h:
1744 * Misc/WebIconDatabase.m:
1745 * Misc/WebIconDatabasePrivate.h:
1746 * WebCoreSupport/WebFrameBridge.m:
1747 (-[WebFrameBridge notifyIconChanged:]):
1748 * WebCoreSupport/WebIconDatabaseBridge.h:
1749 * WebCoreSupport/WebIconDatabaseBridge.m:
1750 (-[WebIconDatabaseBridge _init]):
1751 (-[WebIconDatabaseBridge _setIconData:forIconURL:]):
1752 (-[WebIconDatabaseBridge _setHaveNoIconForIconURL:]):
1754 * WebKit.xcodeproj/project.pbxproj:
1755 * WebView/WebDataSource.m:
1756 (-[WebDataSourcePrivate dealloc]):
1757 (-[WebDataSource _stopLoading]):
1758 (-[WebDataSource _setPrimaryLoadComplete:]):
1759 * WebView/WebDataSourceInternal.h:
1761 2006-09-16 Mark Rowe <opendarwin.org@bdash.net.nz>
1765 http://bugs.webkit.org/show_bug.cgi?id=10887
1768 * MigrateHeaders.make: Remove reference to DOMEventPrivate.h.
1770 2006-09-15 Timothy Hatcher <timothy@apple.com>
1774 Make new style ObjC methods public API.
1776 * MigrateHeaders.make:
1778 2006-09-15 Sam Weinig <sam.weinig@gmail.com>
1782 Patch for http://bugs.webkit.org/show_bug.cgi?id=10870
1783 Auto-generate DOMNode for the Objective-C bindings
1785 * MigrateHeaders.make:
1787 2006-09-15 Timothy Hatcher <timothy@apple.com>
1791 Call the bridge directly for alter selection calls. All of this logic is now
1792 in WebCore's SelectionController.
1794 * WebView/WebHTMLView.m:
1795 (-[NSArray moveBackward:]):
1796 (-[NSArray moveBackwardAndModifySelection:]):
1797 (-[NSArray moveDown:]):
1798 (-[NSArray moveDownAndModifySelection:]):
1799 (-[NSArray moveForward:]):
1800 (-[NSArray moveForwardAndModifySelection:]):
1801 (-[NSArray moveLeft:]):
1802 (-[NSArray moveLeftAndModifySelection:]):
1803 (-[NSArray moveRight:]):
1804 (-[NSArray moveRightAndModifySelection:]):
1805 (-[NSArray moveToBeginningOfDocument:]):
1806 (-[NSArray moveToBeginningOfDocumentAndModifySelection:]):
1807 (-[NSArray moveToBeginningOfSentence:]):
1808 (-[NSArray moveToBeginningOfSentenceAndModifySelection:]):
1809 (-[NSArray moveToBeginningOfLine:]):
1810 (-[NSArray moveToBeginningOfLineAndModifySelection:]):
1811 (-[NSArray moveToBeginningOfParagraph:]):
1812 (-[NSArray moveToBeginningOfParagraphAndModifySelection:]):
1813 (-[NSArray moveToEndOfDocument:]):
1814 (-[NSArray moveToEndOfDocumentAndModifySelection:]):
1815 (-[NSArray moveToEndOfSentence:]):
1816 (-[NSArray moveToEndOfSentenceAndModifySelection:]):
1817 (-[NSArray moveToEndOfLine:]):
1818 (-[NSArray moveToEndOfLineAndModifySelection:]):
1819 (-[NSArray moveToEndOfParagraph:]):
1820 (-[NSArray moveToEndOfParagraphAndModifySelection:]):
1821 (-[NSArray moveParagraphBackwardAndModifySelection:]):
1822 (-[NSArray moveParagraphForwardAndModifySelection:]):
1823 (-[NSArray moveUp:]):
1824 (-[NSArray moveUpAndModifySelection:]):
1825 (-[NSArray moveWordBackward:]):
1826 (-[NSArray moveWordBackwardAndModifySelection:]):
1827 (-[NSArray moveWordForward:]):
1828 (-[NSArray moveWordForwardAndModifySelection:]):
1829 (-[NSArray moveWordLeft:]):
1830 (-[NSArray moveWordLeftAndModifySelection:]):
1831 (-[NSArray moveWordRight:]):
1832 (-[NSArray moveWordRightAndModifySelection:]):
1833 (-[NSArray pageUp:]):
1834 (-[NSArray pageDown:]):
1835 (-[NSArray pageUpAndModifySelection:]):
1836 (-[NSArray pageDownAndModifySelection:]):
1838 2006-09-15 Adam Roben <aroben@apple.com>
1840 Reviewed by eseidel.
1842 Fixes http://bugs.webkit.org/show_bug.cgi?id=10876
1843 containsItemForURLUnicode uses matchLetter instead of
1846 Small fixes for _WebCoreHistoryProvider.
1848 * History/WebHistory.m: Consistently use BUFFER_SIZE #define
1849 (-[_WebCoreHistoryProvider containsItemForURLLatin1:length:]):
1850 (-[_WebCoreHistoryProvider containsItemForURLUnicode:length:]):
1851 Replace incorrect call to matchLetter to matchUnicodeLetter
1853 2006-09-13 Brady Eidson <beidson@apple.com>
1857 Add infrastructure to support icon loads taking place in WebCore
1858 Will remove WebKit icon loaders in a later patch
1860 * WebCoreSupport/WebFrameBridge.m:
1861 (-[WebFrameBridge notifyIconChanged:]):
1862 (-[WebFrameBridge originalRequestURL]):
1863 - Nuked two old, obsolete methods
1864 - Added bridge for notifying of an icon change
1865 - Added bridge for getting the "original request URL" which is still needed
1866 until that info is available in the WebCore loaders
1868 * WebView/WebDataSource.m:
1869 (-[WebDataSource _loadIcon]):
1870 - Empty body just for now, as it still gets called - next patch will prune all the old impl out
1872 2006-09-13 Timothy Hatcher <timothy@apple.com>
1876 <rdar://problem/4726416> obsolete confusing "ADVISORY NOTE" comment in WebHistory.h
1878 Removed the "ADVISORY NOTE: This method may change for the 1.0 SDK" comments.
1880 * History/WebHistory.h:
1882 === Safari-521.26 ===
1884 2006-09-11 MorganL <morlmor@yahoo.com>
1886 Reviewed/landed by aroben.
1888 Fixes http://bugs.webkit.org/show_bug.cgi?id=10765
1889 Windows build busted due to std::copy usage in Vector.h
1891 * WebKit.vcproj/WebKit.vcproj: Define _SCL_SECURE_NO_DEPRECATE to get
1892 rid of deprecation warnings on std::copy
1894 2006-09-11 Brady Eidson <beidson@apple.com>
1896 Despite the fact that some people built okay without this change, it sure was biting me,
1897 probably because I just wiped my build directory for a fresh build -
1898 Today's earlier removal of DOMList.h needed to occur in MigrateHeaders.make, as well
1900 * MigrateHeaders.make: removed DOMList.h
1902 2006-09-10 Darin Adler <darin@apple.com>
1906 - fix http://bugs.webkit.org/show_bug.cgi?id=10547
1907 REGRESSION: Links that should open in a new window open in the same window,
1908 while opening another blank window
1910 * WebView/WebFrame.m:
1911 (-[WebFrame _continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
1912 Changed a mistaken "self" to "frame", which was the cause of the bug. Also
1913 fixed the method so that it won't crash if createWebViewWithRequest does
1914 something that has a side effect of releasing this WebView or this frame
1915 by retaining "self" and "frame" as needed. Also fixed a problem where the
1916 code to set "opener" was backwards, and would set the opener of the old
1917 frame to point to the new frame instead of vice versa.
1919 2006-09-09 Sam Weinig <sam.weinig@gmail.com>
1923 Patch for http://bugs.webkit.org/show_bug.cgi?id=10795
1924 Auto-generate the Objective-C DOM XPath bindings
1926 * MigrateHeaders.make:
1928 2006-09-09 Sam Weinig <sam.weinig@gmail.com>
1932 Patch for http://bugs.webkit.org/show_bug.cgi?id=10791
1933 Even More Objective-C DOM auto-generation cleanup
1935 * MigrateHeaders.make:
1937 2006-09-08 Tim Omernick <timo@apple.com>
1939 Reviewed by Brady Eidson.
1941 Rolled out Maciej's code cleanup from 8/22. It turns out that keeping the "loading" flag
1942 is a useful optimization, as it avoids many Objective-C method calls while polling resources
1943 for their load state.
1945 This fixes a 3-4% PLT performance regression (as measured on my MacBook Pro).
1947 * Loader/WebFrameLoader.m:
1948 (-[WebFrameLoader addPlugInStreamLoader:]):
1949 (-[WebFrameLoader removePlugInStreamLoader:]):
1950 (-[WebFrameLoader addSubresourceLoader:]):
1951 (-[WebFrameLoader removeSubresourceLoader:]):
1952 * WebView/WebDataSource.m:
1953 (-[WebDataSourcePrivate dealloc]):
1954 (-[WebDataSource _prepareForLoadStart]):
1955 (-[WebDataSource _setLoading:]):
1956 (-[WebDataSource _updateLoading]):
1957 (-[WebDataSource _startLoading]):
1958 (-[WebDataSource _stopLoading]):
1959 (-[WebDataSource _setPrimaryLoadComplete:]):
1960 (-[WebDataSource isLoading]):
1961 * WebView/WebDataSourceInternal.h:
1963 2006-09-07 Sam Weinig <sam.weinig@gmail.com>
1965 Reviewed by Darin and Tim H.
1967 Patch for http://bugs.webkit.org/show_bug.cgi?id=10774
1968 Auto-generate the Objective-C DOM Traversal bindings
1970 * MigrateHeaders.make:
1972 2006-09-07 Sam Weinig <sam.weinig@gmail.com>
1976 Patch for http://bugs.webkit.org/show_bug.cgi?id=10766
1977 Auto-generate the Objective-C DOM Events bindings
1979 * MigrateHeaders.make:
1980 * WebKit.xcodeproj/project.pbxproj:
1982 2006-09-06 Alexey Proskuryakov <ap@nypop.com>
1984 * MigrateHeaders.make: Fixed a double slash in
1985 "$(PRIVATE_HEADERS_DIR)//DOMCharacterDataPrivate.h" (this was reported
1986 to cause a build failure under certain circumstances).
1988 2006-09-05 MorganL <morlmor@yahoocom>
1990 Reviewed/landed by aroben.
1992 Fixes bug 10743: Windows build is busted.
1995 (WebView::keyPress):
1997 2006-09-05 Timothy Hatcher <timothy@apple.com>
2001 Drastically simplified the makefile for migrating headers from
2002 WebCore and JavaScriptCore. The old version was always copying the files.
2004 * MigrateHeaders.make:
2006 2006-09-05 Darin Adler <darin@apple.com>
2010 - WebKit side of changes to encoding
2012 * WebView/WebHTMLRepresentation.m: (-[WebHTMLRepresentation documentSource]):
2013 Changed to call new -[WebCoreFrameBridge stringWithData:] instead of the calling
2014 the old methods that used a CFStringEncoding: -[WebCoreFrameBridge textEncoding]
2015 and +[WebCoreFrameBridge stringWithData:textEncoding:].
2017 * WebView/WebResource.m: (-[WebResource _stringValue]): Removed special case for
2018 nil encoding name. The bridge itself now has the rule that "nil encoding name
2019 means Latin-1", so we don't need to check for nil.
2021 * WebView/WebFrame.m: (-[WebFrame _checkLoadComplete]): Retain the frame until
2022 we get the parent frame while walking up parent frames, because it's possible
2023 for _checkLoadCompleteForThisFrame to release the last reference to the frame.
2024 (Not reviewed; needed to run performance tests successfully.)
2026 2006-09-05 Timothy Hatcher <timothy@apple.com>
2030 <rdar://problem/4682225> conflicting typedefs in Netscape plug-in headers
2032 * Plugins/npfunctions.h: fix the return type for NPN_IntFromIdentifierProcPtr to be int32_t
2034 2006-09-04 Timothy Hatcher <timothy@apple.com>
2038 Bug 10714: ObjC autogeneration needs safe-guards against easily modifying the public API
2039 http://bugs.webkit.org/show_bug.cgi?id=10714
2041 - Added the new private DOM headers.
2042 - Factored out the common commands into variables.
2043 - Made WebDashboardRegion.h private again.
2044 - Rename DOMDOMImplementation.h to DOMImplementation.h when files
2045 are migrated. Also fixes up #imports.
2047 * MigrateHeaders.make:
2049 2006-09-03 Sam Weinig <sam.weinig@gmail.com>
2051 Reviewed by Darin and Tim H.
2053 - patch for http://bugs.webkit.org/show_bug.cgi?id=10711
2054 Auto-generate the Objective-C DOM Stylesheet bindings
2056 * MigrateHeaders.make:
2058 2006-09-02 Sam Weinig <sam.weinig@gmail.com>
2062 - patch for http://bugs.webkit.org/show_bug.cgi?id=10684
2063 Auto-generate the Objective-C DOM CSS bindings
2065 * MigrateHeaders.make:
2067 2006-09-01 MorganL <morlmor@yahoo.com>
2069 Reviewed by Darin. Updated/landed by Adam.
2071 Fixes http://bugs.webkit.org/show_bug.cgi?id=10553
2075 (WebFrame::initWithName):
2077 2006-09-01 Brady Eidson <beidson@apple.com>
2081 A "never should be reached" method was reached - lets not release the shared database bridge, esp
2082 since we never retain it!
2084 * Misc/WebIconDatabase.m:
2085 (-[WebIconDatabase _applicationWillTerminate:]): Don't release the bridge
2087 2006-09-01 Darin Adler <darin@apple.com>
2091 - a few small tweaks to the icon database bridge
2093 * Misc/WebIconDatabase.m: (-[WebIconDatabase init]): Updated for name change.
2095 * WebCoreSupport/WebIconDatabaseBridge.h: Removed unneeded declarations.
2096 * WebCoreSupport/WebIconDatabaseBridge.m:
2097 (-[WebIconDatabaseBridge init]): Added. Always returns nil since you're not supposed
2098 to allocate one of these.
2099 (-[WebIconDatabaseBridge _init]): Renamed from init. Used internally to make the
2100 shared instance. Added the "self = [super init]" idiom even though it's not important
2101 in this case just to be consistent.
2102 (-[WebIconDatabaseBridge releaseCachedLoaderForIconURL:]): Moved this up in the file
2103 so it can be called without declaring it in the header.
2104 (+[WebIconDatabaseBridge sharedInstance]): Renamed. Calls the new _init. Also use
2105 CFRetain for compatibility.
2106 (-[WebIconDatabaseBridge dealloc]): Emptied this out and made it just assert (false).
2107 (-[WebIconDatabaseBridge finalize]): Added and made it assert (false) too.
2109 2006-09-01 Timothy Hatcher <timothy@apple.com>
2113 Bug 10677: Omit "-webkit-text-security: none;" from the computed style list
2114 http://bugs.webkit.org/show_bug.cgi?id=10677
2116 * WebInspector/webInspector/inspector.js:
2118 2006-08-31 Sam Weinig <sam.weinig@gmail.com>
2122 - patch for http://bugs.webkit.org/show_bug.cgi?id=10669
2123 Auto-generate the remaining Objective-C HTML DOM bindings
2125 * MigrateHeaders.make:
2127 2006-08-31 Adele Peterson <adele@apple.com>
2131 WebKit part of fix for http://bugs.webkit.org/show_bug.cgi?id=10666
2132 Password: Disallow Spelling, Font, Speech, and Writing Direction context menu
2134 * DefaultDelegates/WebDefaultContextMenuDelegate.m: (-[WebDefaultUIDelegate editingContextMenuItemsForElement:defaultMenuItems:]):
2135 Check that the selection isn't in a password field before adding these items to the default editing context menu.
2136 Search In Google, Search In Spotlight, Look up in Dictionary, Spelling, Font, Speech, Writing Direction
2137 * WebView/WebHTMLView.m: (-[WebHTMLView _isSelectionInPasswordField]): Added.
2138 * WebView/WebHTMLViewPrivate.h:
2140 2006-08-31 Sam Weinig <sam.weinig@gmail.com>
2144 - patch for http://bugs.webkit.org/show_bug.cgi?id=10653
2145 Auto-generate another 20 Objective-C DOM HTML bindings
2147 * MigrateHeaders.make:
2148 * WebKit.xcodeproj/project.pbxproj:
2150 2006-08-31 Adele Peterson <adele@apple.com>
2152 Reviewed by John Sullivan.
2154 Removed wkSecureEventInput and wkSetSecureEventInput, since this can be done with API.
2156 * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface):
2158 2006-08-31 John Sullivan <sullivan@apple.com>
2160 Reviewed by Tim Omernick
2162 - fixed <rdar://problem/4711200> Loading history would be faster if it bypassed
2163 NSURL API for local files
2165 * History/WebHistory.m:
2166 (-[WebHistoryPrivate _loadHistoryGutsFromURL:savedItemsCount:collectDiscardedItemsInto:error:]):
2167 Load file URLs using [NSDictionary dictionaryWithContentsOfFile:]. I also cleaned up some minor
2168 style issues in this method, and I removed the support for old NSArray-style history files (which we
2169 stopped using before Safari 1.0).
2171 2006-08-30 Adele Peterson <adele@apple.com>
2175 WebKit part of fix for http://bugs.webkit.org/show_bug.cgi?id=10575
2176 Enable secure input mode for new password fields
2178 * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface):
2180 2006-08-30 Brady Eidson <beidson@apple.com>
2184 <rdar://problem/4707718> Change behavior so if the WebCore::IconDatabase can't open, WebKit releases the bridge and
2185 continues on as if the IconDatabase is disabled.
2187 * Misc/WebIconDatabase.m:
2188 (-[WebIconDatabase init]): Release the bridge on failure to open
2189 * WebCoreSupport/WebIconDatabaseBridge.m:
2190 (+[WebIconDatabaseBridge sharedBridgeInstance]): Moved static shared instance out as a global
2191 (-[WebIconDatabaseBridge dealloc]): Clear pointer to the shared instance
2193 2006-08-30 Timothy Hatcher <timothy@apple.com>
2197 Simplify the header copies from WebCore and JavaScriptCore.
2198 Headers that need to be migrated from the other projects need
2199 to be added to MigrateHeaders.make.
2201 * MigrateHeaders.make: Added.
2202 * WebKit.xcodeproj/project.pbxproj:
2204 2006-08-30 Sam Weinig <sam.weinig@gmail.com>
2208 - patch for http://bugs.webkit.org/show_bug.cgi?id=10640
2209 Auto-generate 10 more Objective-C DOM HTML bindings
2211 * WebKit.xcodeproj/project.pbxproj:
2213 2006-08-30 Adele Peterson <adele@apple.com>
2217 WebKit part of fix for:
2218 http://bugs.webkit.org/show_bug.cgi?id=10576
2219 Disallow copy from new password fields
2221 * WebView/WebHTMLView.m:
2222 (-[WebHTMLView _canCopy]): Now also calls across the bridge to ask if it mayCopy.
2223 (-[WebHTMLView _canCut]): Calls _canCopy now.
2224 (-[NSArray validateUserInterfaceItem:]): Calls _canCut when validating the "Cut" menu item.
2225 This used to call _canDelete (which used to be the same as _canCut), but now _canCut also checks _canCopy.
2227 2006-08-30 Karl Adam <karladam@yahoo-inc.com>
2229 Reviewed by Eric and Tim H.
2231 Bug 10634: -webView:dragDestinationActionMaskForDraggingInfo: is ignored
2232 http://bugs.webkit.org/show_bug.cgi?id=10634
2234 Remove the check for canShowFile: from _web_bestURL: since
2235 it shouldn't be concerned with whether or not the view
2236 can show the URL, merely return the most appropriate URL.
2238 * Misc/WebNSPasteboardExtras.m:
2239 (-[NSPasteboard _web_bestURL]):
2240 * Misc/WebNSViewExtras.m:
2241 (-[NSView _web_dragOperationForDraggingInfo:]):
2243 2006-08-29 Brady Eidson <beidson@apple.com>
2245 Reviewed by Kevin Decker (Sarge)
2247 <rdar://problem/4678414> - New IconDB needs to delete icons when asked
2249 * Misc/WebIconDatabase.m:
2250 (-[WebIconDatabase removeAllIcons]): Call through to WebCore to remove icons, then send notification
2252 2006-08-29 Brady Eidson <beidson@apple.com>
2256 Added a truth value check for to setIconURL:forURL so WebKit can avoid sending a notification
2257 This is a win on the iBench
2259 * Misc/WebIconDatabase.m:
2260 (-[WebIconDatabase _setIconURL:forURL:]):
2262 2006-08-29 Brady Eidson <beidson@apple.com>
2264 Reviewed by Tim Hatchers rubber stamp
2266 Removed some accidentally left-in console spew during the conversion to the new DB
2268 * Misc/WebIconDatabase.m:
2269 (objectFromPathForKey): Nuked some NSLogs
2271 2006-08-29 Tim Omernick <timo@apple.com>
2273 Reviewed by Darin Adler.
2275 <rdar://problem/4688618> REGRESSION(10.4.7-9A241): JMol java applet fails in Safari not Firefox
2277 No layout test for now because Java doesn't work in DumpRenderTree.
2279 * Plugins/WebPluginDatabase.m:
2280 (-[WebPluginDatabase refresh]):
2281 Add each plug-in MIME type to registeredMIMETypes, even if we don't register a document view class for the
2282 MIME type. This fixes -[WebPluginDatabase isMIMETypeRegistered:] and thus fallback content for Java applets
2283 (we were always rendering fallback content, if any, for Java applets).
2285 2006-08-29 Sam Weinig <sam.weinig@gmail.com>
2289 - patch for http://bugs.webkit.org/show_bug.cgi?id=10628
2290 Auto-generate the remaining Objective-C DOM bindings
2292 Auto-generates DOMHTMLCollection, DOMHTMLElement, DOMHTMLFormElement,
2293 and DOMHTMLOptionsCollection.
2295 * WebKit.xcodeproj/project.pbxproj:
2297 2006-08-28 Brady Eidson <beidson@apple.com>
2301 Short of a few small snippets that still need to be pushed to WebCore, this
2302 is a final prune of WebIconDatabase. WebFileDatabase and WebLRUFileList are gone
2303 and the small remaining snippets of WebFileDatabase code that were still important
2304 are now in static functions in WebIconDatabase.m
2306 * Loader/WebIconLoader.m:
2307 (-[WebIconLoader didFinishLoading]): Removed the flag
2308 * Misc/WebFileDatabase.h: Removed.
2309 * Misc/WebFileDatabase.m: Removed.
2310 * Misc/WebIconDatabase.m:
2311 (+[WebIconDatabase sharedIconDatabase]):
2312 (-[WebIconDatabase init]):
2313 (-[WebIconDatabase iconForURL:withSize:cache:]):
2314 (-[WebIconDatabase iconURLForURL:]):
2315 (-[WebIconDatabase defaultIconWithSize:]):
2316 (-[WebIconDatabase retainIconForURL:]):
2317 (-[WebIconDatabase releaseIconForURL:]):
2318 (-[WebIconDatabase _isEnabled]):
2319 (-[WebIconDatabase _setIconData:forIconURL:]):
2320 (-[WebIconDatabase _setHaveNoIconForIconURL:]):
2321 (-[WebIconDatabase _setIconURL:forURL:]):
2322 (-[WebIconDatabase _hasEntryForIconURL:]):
2323 (-[WebIconDatabase _applicationWillTerminate:]):
2324 (-[WebIconDatabase _resetCachedWebPreferences:]):
2325 (uniqueFilePathForKey): Added from WebFileDatabase
2326 (objectFromPathForKey): Added from WebFileDatabase
2327 (iconDataFromPathForIconURL):
2328 (-[WebIconDatabase _convertToWebCoreFormat]): Make use of static functions and local variables
2329 instead of using WebFileDatabase and WebIconDatabase variables that are now obsolete
2330 * Misc/WebIconDatabasePrivate.h: Removed alot of obsoleted members
2331 * Misc/WebLRUFileList.h: Removed.
2332 * Misc/WebLRUFileList.m: Removed.
2333 * WebKit.xcodeproj/project.pbxproj: Deleted 4 files
2334 * WebKitPrefix.h: Removed ICONDEBUG
2336 2006-08-28 Tim Omernick <timo@apple.com>
2338 Reviewed by Darin Adler.
2340 * Plugins/WebBaseNetscapePluginView.m:
2341 (-[WebBaseNetscapePluginView createPluginScriptableObject]):
2342 Removed a bogus typecast.
2344 2006-08-28 Tim Omernick <timo@apple.com>
2346 Reviewed by John Sullivan.
2348 Part of <rdar://problem/4481553> NetscapeMoviePlugIn example code scripting doesn't work in Firefox (4319)
2349 <http://bugs.webkit.org/show_bug.cgi?id=4319>: NetscapeMoviePlugIn example code scripting doesn't work
2352 * Plugins/WebBaseNetscapePluginView.h:
2353 * Plugins/WebBaseNetscapePluginView.m:
2354 (-[WebBaseNetscapePluginView createPluginScriptableObject]):
2355 Renamed this method (see corresponding WebCore ChangeLog entry for an explanation).
2358 2006-08-28 Brady Eidson <beidson@apple.com>
2360 Reviewed by Tim Hatcher's rubberstamp
2362 Rolled out my last change (16070 - pruning WebFileDatabase code) as it caused a difficult-to-track down
2363 failure in layout tests on a release build.
2365 * Misc/WebFileDatabase.h:
2366 * Misc/WebFileDatabase.m:
2367 (+[WebFileDatabaseOp opWithCode:key:object:]):
2368 (-[WebFileDatabaseOp initWithCode:key:object:]):
2369 (-[WebFileDatabaseOp opcode]):
2370 (-[WebFileDatabaseOp key]):
2371 (-[WebFileDatabaseOp object]):
2372 (-[WebFileDatabaseOp perform:]):
2373 (-[WebFileDatabaseOp dealloc]):
2374 (SetThreadPriority):
2375 (-[WebFileDatabase _createLRUList:]):
2376 (-[WebFileDatabase _truncateToSizeLimit:]):
2377 (+[WebFileDatabase _syncLoop:]):
2379 (-[WebFileDatabase setTimer]):
2380 (-[WebFileDatabase setObject:forKey:]):
2381 (-[WebFileDatabase removeObjectForKey:]):
2382 (-[WebFileDatabase removeAllObjects]):
2383 (-[WebFileDatabase objectForKey:]):
2384 (-[WebFileDatabase performSetObject:forKey:]):
2385 (-[WebFileDatabase performRemoveObjectForKey:]):
2386 (-[WebFileDatabase open]):
2387 (-[WebFileDatabase close]):
2388 (-[WebFileDatabase lazySync:]):
2389 (-[WebFileDatabase sync]):
2390 (-[WebFileDatabase sizeLimit]):
2391 (-[WebFileDatabase count]):
2392 (-[WebFileDatabase usage]):
2393 (-[WebFileDatabase setSizeLimit:]):
2394 * Misc/WebIconDatabase.m:
2395 (-[WebIconDatabase _createFileDatabase]):
2396 (-[WebIconDatabase _loadIconDictionaries]):
2397 * WebKit.xcodeproj/project.pbxproj:
2399 2006-08-28 Darin Adler <darin@apple.com>
2401 Reviewed by Tim Hatcher.
2403 * WebInspector/webInspector/inspector.js: Add "resize: none" to the list of
2404 default values for CSS properties so it will be omitted from most displays
2407 2006-08-28 Brady Eidson <beidson@apple.com>
2411 Major prune of unnecessary WebFileDatabase code. In the end, what
2412 useful code that remains in WebFileDatabase will likely be moved directly
2413 into WebIconDatabase
2415 * Misc/WebFileDatabase.h:
2416 * Misc/WebFileDatabase.m:
2417 (-[WebFileDatabase initWithPath:]):
2418 (-[WebFileDatabase objectForKey:]):
2419 (-[WebFileDatabase open]):
2420 (-[WebFileDatabase close]):
2421 * Misc/WebIconDatabase.m:
2422 (-[WebIconDatabase _createFileDatabase]):
2423 (-[WebIconDatabase _loadIconDictionaries]):
2424 * Misc/WebLRUFileList.h: Removed.
2425 * Misc/WebLRUFileList.m: Removed.
2426 * WebKit.xcodeproj/project.pbxproj:
2428 2006-08-27 Sam Weinig <sam.weinig@gmail.com>
2432 - patch for http://bugs.webkit.org/show_bug.cgi?id=4624
2433 WebCore needs autogenerated Obj-C DOM bindings
2435 First round of auto-generated Objective C DOM bindings, starting
2438 * WebKit.xcodeproj/project.pbxproj:
2440 2006-08-25 Brady Eidson <beidson@apple.com>
2442 Reviewed by Tim Hatcher
2444 Fixed up some leaks on [WebIconDatabase init]
2446 * Misc/WebIconDatabase.m:
2447 (-[WebIconDatabase init]):
2449 2006-08-24 Timothy Hatcher <timothy@apple.com>
2453 * WebView/WebFrame.m:
2454 (-[WebFrame _updateBackground]): reworded the comment about scroll view and setDrawsBackground:YES
2455 * WebView/WebView.m:
2456 (-[WebViewPrivate dealloc]): release the background color
2458 2006-08-24 Timothy Hatcher <timothy@apple.com>
2462 WebView API to allow changing the background color that draws under transparent page backgrounds.
2464 * WebView/WebFrame.m:
2465 (-[WebFrame _makeDocumentView]):
2466 (-[WebFrame _updateBackground]):
2467 * WebView/WebFrameInternal.h:
2468 * WebView/WebFrameView.m:
2469 (-[WebFrameView drawRect:]):
2470 * WebView/WebView.m:
2471 (-[WebView setBackgroundColor:]):
2472 (-[WebView backgroundColor]):
2473 (-[WebView _commonInitializationWithFrameName:groupName:]):
2474 (-[WebView setDrawsBackground:]):
2475 * WebView/WebViewPrivate.h:
2477 2006-08-24 Timothy Hatcher <timothy@apple.com>
2481 Fix for Mail stationary. Selecting a stationary item would cause this exception.
2482 *** -[WebSubresourceLoader copyWithZone:]: selector not recognized
2483 Uncaught exception - *** -[WebSubresourceLoader copyWithZone:]: selector not recognized
2485 * Loader/WebFrameLoader.m:
2486 (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
2487 Use _webkit_setObject:forUncopiedKey: when addign the resource to pendingArchivedResources.
2489 2006-08-23 Maciej Stachowiak <mjs@apple.com>
2493 - fix assertion which I accidentally changed to one that sometimes fails
2494 http://bugs.webkit.org/show_bug.cgi?id=10531
2496 * Loader/WebDocumentLoadState.m:
2497 (-[WebDocumentLoadState dealloc]):
2498 * WebView/WebDataSource.m:
2499 (-[WebDataSourcePrivate dealloc]):
2500 (-[WebDataSource dealloc]):
2502 2006-08-23 Maciej Stachowiak <mjs@apple.com>
2506 - move WebFrame code that creates WebDataSources down to WebFrameLoader, in preparation
2507 for WebFrameLoader just holding on to WebDocumentLoadState
2509 * Loader/WebFrameLoader.h:
2510 * Loader/WebFrameLoader.m:
2511 (-[WebFrameLoader _loadRequest:archive:]):
2512 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
2513 (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
2514 (-[WebFrameLoader reload]):
2515 * WebView/WebFrame.m:
2516 (-[WebFrame _loadItem:withLoadType:]):
2517 (-[WebFrame _continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
2518 (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
2519 (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
2520 (-[WebFrame _shouldReloadToHandleUnreachableURLFromRequest:]):
2521 (-[WebFrame loadRequest:]):
2522 (-[WebFrame loadArchive:]):
2523 (-[WebFrame reload]):
2524 * WebView/WebFrameInternal.h:
2525 * WebView/WebFramePrivate.h:
2526 * WebView/WebView.m:
2527 (-[WebView setCustomTextEncodingName:]):
2529 2006-08-23 Brady Eidson <beidson@apple.com>
2533 First pass at pruning unused WebIconDatabase code. Focus on removing methods that simply
2534 have no place in the new DB at all. A few renames and a few important FIXMEs result, but no
2535 functionality changes.
2537 * Loader/WebIconLoader.m:
2538 (-[WebIconLoader didFinishLoading]): Call to WebIconDatabase instead of directly to the bridge
2539 * Misc/WebIconDatabase.h:
2540 * Misc/WebIconDatabase.m:
2541 (-[WebIconDatabase init]):
2542 (-[WebIconDatabase iconForURL:withSize:cache:]):
2543 (-[WebIconDatabase iconURLForURL:]):
2544 (-[WebIconDatabase defaultIconWithSize:]):
2545 (-[WebIconDatabase retainIconForURL:]):
2546 (-[WebIconDatabase releaseIconForURL:]):
2547 (-[WebIconDatabase removeAllIcons]):
2548 (-[WebIconDatabase _setIconData:forIconURL:]):
2549 (-[WebIconDatabase _setHaveNoIconForIconURL:]):
2550 (-[WebIconDatabase _setIconURL:forURL:]):
2551 (-[WebIconDatabase _hasEntryForIconURL:]):
2552 (-[WebIconDatabase _applicationWillTerminate:]):
2553 (-[WebIconDatabase _resetCachedWebPreferences:]):
2554 * Misc/WebIconDatabasePrivate.h: Changed setIcon: to setIconData:
2556 2006-08-23 Maciej Stachowiak <mjs@apple.com>
2560 - started factoring most of the guts of WebDataSource into a new class
2562 WebDocumentLoadState is decoupled from the rest of WebKit and will
2563 be moved down to WebCore. I only moved one of the data fields of
2564 WebDataSource for now.
2566 * Loader/WebDocumentLoadState.h: Added.
2567 * Loader/WebDocumentLoadState.m: Added.
2568 (-[WebDocumentLoadState initWithRequest:]): New class.
2569 (-[WebDocumentLoadState dealloc]):
2570 (-[WebDocumentLoadState setFrameLoader:]):
2571 (-[WebDocumentLoadState setMainResourceData:]):
2572 (-[WebDocumentLoadState mainResourceData]):
2573 * Loader/WebFrameLoader.m:
2574 (-[WebFrameLoader _setDataSource:]): Remove redundant _setWebFrame: call,
2575 it would have been called already by this point.
2576 (-[WebFrameLoader _setProvisionalDataSource:]): ditto.
2577 * WebKit.xcodeproj/project.pbxproj:
2578 * WebView/WebDataSource.m:
2579 (-[WebDataSourcePrivate dealloc]):
2580 (-[WebDataSource _setWebFrame:]):
2581 (-[WebDataSource _setPrimaryLoadComplete:]):
2582 (-[WebDataSource initWithRequest:]):
2583 (-[WebDataSource data]):
2585 2006-08-23 Maciej Stachowiak <mjs@apple.com>
2589 - refactoring of WebDataSource in preparation for moving a bunch of it to a new class
2591 - minimize WebDataSourceInternal.h to be only methods called from outside WebDataSource
2592 - reduce Private category implementation to be only the SPI methods
2593 - make new Internal and FileInternal categories which contain the
2594 remainder (depending on whether they are called from outside of
2597 * WebView/WebDataSource.m:
2598 (-[WebDataSource _setMainDocumentError:]):
2599 (addTypesFromClass):
2600 (+[WebDataSource _representationClassForMIMEType:]):
2601 (-[WebDataSource _commitIfReady]):
2602 (-[WebDataSource _commitLoadWithData:]):
2603 (-[WebDataSource _doesProgressiveLoadWithMIMEType:]):
2604 (-[WebDataSource _addResponse:]):
2605 (-[WebDataSource _revertToProvisionalState]):
2606 (-[WebDataSource _mainDocumentError]):
2607 (-[WebDataSource _addSubframeArchives:]):
2608 (-[WebDataSource _fileWrapperForURL:]):
2609 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
2610 (-[WebDataSource _decidePolicyForMIMEType:decisionListener:]):
2611 (-[WebDataSource _finishedLoading]):
2612 (-[WebDataSource _setResponse:]):
2613 (-[WebDataSource _setRequest:]):
2614 (-[WebDataSource _setupForReplaceByMIMEType:]):
2615 (-[WebDataSource _receivedMainResourceError:complete:]):
2616 (-[WebDataSource _mainReceivedError:complete:]):
2617 (-[WebDataSource _defersCallbacks]):
2618 (-[WebDataSource _downloadWithLoadingConnection:request:response:proxy:]):
2619 (-[WebDataSource _didFailLoadingWithError:forResource:]):
2620 (-[WebDataSource _didFinishLoadingForResource:]):
2621 (-[WebDataSource _didReceiveData:contentLength:forResource:]):
2622 (-[WebDataSource _didReceiveResponse:forResource:]):
2623 (-[WebDataSource _didCancelAuthenticationChallenge:forResource:]):
2624 (-[WebDataSource _didReceiveAuthenticationChallenge:forResource:]):
2625 (-[WebDataSource _willSendRequest:forResource:redirectResponse:]):
2626 (-[WebDataSource _identifierForInitialRequest:]):
2627 (-[WebDataSource _archivedSubresourceForURL:]):
2628 (-[WebDataSource _startLoading]):
2629 (-[WebDataSource _stopRecordingResponses]):
2630 (-[WebDataSource _loadingStartedTime]):
2631 (-[WebDataSource _replaceSelectionWithArchive:selectReplacement:]):
2632 (-[WebDataSource _documentFragmentWithArchive:]):
2633 (-[WebDataSource _documentFragmentWithImageResource:]):
2634 (-[WebDataSource _imageElementWithImageResource:]):
2635 (-[WebDataSource _title]):
2636 (-[WebDataSource _isStopping]):
2637 (-[WebDataSource _setWebFrame:]):
2638 (-[WebDataSource _URL]):
2639 (-[WebDataSource _loadFromPageCache:]):
2640 (-[WebDataSource _popSubframeArchiveWithName:]):
2641 (-[WebDataSource _setIsClientRedirect:]):
2642 (-[WebDataSource _setURL:]):
2643 (-[WebDataSource _setLastCheckedRequest:]):
2644 (-[WebDataSource _defersCallbacksChanged]):
2645 (-[WebDataSource _lastCheckedRequest]):
2646 (-[WebDataSource _stopLoading]):
2647 (-[WebDataSource _bridge]):
2648 (-[WebDataSource _webView]):
2649 (-[WebDataSource _triggeringAction]):
2650 (-[WebDataSource _setTriggeringAction:]):
2651 (-[WebDataSource __adoptRequest:]):
2652 (-[WebDataSource _isDocumentHTML]):
2653 (-[WebDataSource _stopLoadingWithError:]):
2654 (-[WebDataSource _setPrimaryLoadComplete:]):
2655 (-[WebDataSource _responses]):
2656 (-[WebDataSource _makeRepresentation]):
2657 (-[WebDataSource _isClientRedirect]):
2658 (-[WebDataSource _originalRequest]):
2659 (-[WebDataSource _URLForHistory]):
2660 (-[WebDataSource _addToUnarchiveState:]):
2661 (-[WebDataSource _setOverrideEncoding:]):
2662 (-[WebDataSource _setIconURL:]):
2663 (-[WebDataSource _setIconURL:withType:]):
2664 (-[WebDataSource _overrideEncoding]):
2665 (-[WebDataSource _setTitle:]):
2666 * WebView/WebDataSourceInternal.h:
2668 2006-08-23 Brady Eidson <beidson@apple.com>
2670 Reviewed by John Sullivan
2673 Flip the switch to the new Icon Database
2674 Massive code pruning is coming up
2676 * WebKitPrefix.h: Flipped the switch
2678 2006-08-23 Brady Eidson <beidson@apple.com>
2681 Since I just pushed the default URL icon from WebKit to WebCore, but
2682 WebKit was still using its version of the default icon, this patch makes it
2683 use the WebCore version
2685 * Misc/WebIconDatabase.m:
2686 (-[WebIconDatabase defaultIconWithSize:]):
2688 2006-08-22 Maciej Stachowiak <mjs@apple.com>
2692 - remove "loading" flag from WebDataSource and code that manages it; it is redundat.
2694 * Loader/WebFrameLoader.m:
2695 (-[WebFrameLoader addPlugInStreamLoader:]):
2696 (-[WebFrameLoader removePlugInStreamLoader:]):
2697 (-[WebFrameLoader addSubresourceLoader:]):
2698 (-[WebFrameLoader removeSubresourceLoader:]):
2699 * WebView/WebDataSource.m:
2700 (-[WebDataSourcePrivate dealloc]):
2701 (-[WebDataSource _setPrimaryLoadComplete:]):
2702 (-[WebDataSource _stopLoading]):
2703 (-[WebDataSource _prepareForLoadStart]):
2704 (-[WebDataSource _startLoading]):
2705 (-[WebDataSource isLoading]):
2706 * WebView/WebDataSourceInternal.h:
2708 2006-08-22 Maciej Stachowiak <mjs@apple.com>
2712 <rdar://problem/4683948> REGRESSION: Assertion failure in [FrameProgressEntry addChild:forDataSource:] (fandango.com)
2714 * Loader/WebFrameLoader.m:
2715 (-[WebFrameLoader addSubresourceLoader:]): Add a WebKit-level assertion that should fire when this bad
2717 * Loader/WebSubresourceLoader.m:
2718 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]): Prevent
2719 the situation from occuring.
2721 2006-08-22 Maciej Stachowiak <mjs@apple.com>
2725 - pull more WebDataSource code into WebFrameLoader
2726 - make WebMainResourceLoader not depend on WebKit or on SPI
2728 * Loader/WebFrameLoader.h:
2729 * Loader/WebFrameLoader.m:
2730 (-[WebFrameLoader _downloadWithLoadingConnection:request:response:proxy:]):
2731 (-[WebFrameLoader _updateIconDatabaseWithURL:]):
2732 (-[WebFrameLoader _notifyIconChanged:]):
2733 (-[WebFrameLoader _iconLoaderReceivedPageIcon:]):
2734 (-[WebFrameLoader _checkNavigationPolicyForRequest:andCall:withSelector:]):
2735 (-[WebFrameLoader _checkContentPolicyForMIMEType:andCall:withSelector:]):
2736 (-[WebFrameLoader cancelContentPolicy]):
2737 * Loader/WebIconLoader.m:
2738 (-[WebIconLoader didFinishLoading]):
2739 * Loader/WebLoader.m:
2740 (-[NSURLProtocol loadWithRequest:]):
2741 (-[NSURLProtocol setDefersCallbacks:]):
2742 * Loader/WebMainResourceLoader.h:
2743 * Loader/WebMainResourceLoader.m:
2744 (-[WebMainResourceLoader initWithFrameLoader:]):
2745 (-[WebMainResourceLoader dealloc]):
2746 (-[WebMainResourceLoader cancelWithError:]):
2747 (-[WebMainResourceLoader continueAfterNavigationPolicy:formState:]):
2748 (-[WebMainResourceLoader willSendRequest:redirectResponse:]):
2749 (-[WebMainResourceLoader continueAfterContentPolicy:]):
2750 (-[WebMainResourceLoader checkContentPolicy]):
2751 (-[WebMainResourceLoader didReceiveResponse:]):
2752 * Plugins/WebPluginContainerCheck.m:
2753 * WebCoreSupport/WebSystemInterface.m:
2754 (InitWebCoreSystemInterface):
2755 * WebView/WebDataSource.m:
2756 (-[WebDataSource _loadIcon]):
2757 (-[WebDataSource _cancelledError]):
2758 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
2759 (+[WebDataSource _representationClassForMIMEType:]):
2760 (-[WebDataSource _commitLoadWithData:]):
2761 (-[WebDataSource _isDocumentHTML]):
2762 * WebView/WebDataSourceInternal.h:
2763 * WebView/WebFramePrivate.h:
2764 * WebView/WebPolicyDelegate.m:
2765 * WebView/WebPolicyDelegatePrivate.h:
2767 2006-08-21 Maciej Stachowiak <mjs@apple.com>
2771 - move more code from WebDataSource to WebFrameLoader
2773 Also marked a few more methods in WebDataSource as likely MOVABLE in a future round, since they do not
2774 use any of WebDataSource's private data.
2776 * Loader/WebFrameLoader.h:
2777 * Loader/WebFrameLoader.m:
2778 (-[WebFrameLoader addPlugInStreamLoader:]):
2779 (-[WebFrameLoader removePlugInStreamLoader:]):
2780 (-[WebFrameLoader addSubresourceLoader:]):
2781 (-[WebFrameLoader removeSubresourceLoader:]):
2782 (-[WebFrameLoader _didReceiveAuthenticationChallenge:forResource:]):
2783 (-[WebFrameLoader _didCancelAuthenticationChallenge:forResource:]):
2784 (-[WebFrameLoader _didReceiveResponse:forResource:]):
2785 (-[WebFrameLoader _didReceiveData:contentLength:forResource:]):
2786 (-[WebFrameLoader _didFinishLoadingForResource:]):
2787 (-[WebFrameLoader _didFailLoadingWithError:forResource:]):
2788 (-[WebFrameLoader _privateBrowsingEnabled]):
2789 (-[WebFrameLoader _finishedLoadingResource]):
2790 (-[WebFrameLoader _receivedError:]):
2791 (-[WebFrameLoader _finishedLoading]):
2792 * Loader/WebMainResourceLoader.m:
2793 (-[WebMainResourceLoader didReceiveData:lengthReceived:allAtOnce:]):
2794 (-[WebMainResourceLoader didFinishLoading]):
2795 * Loader/WebNetscapePlugInStreamLoader.m:
2796 (-[WebNetscapePlugInStreamLoader didFinishLoading]):
2797 (-[WebNetscapePlugInStreamLoader didFailWithError:]):
2798 (-[WebNetscapePlugInStreamLoader cancelWithError:]):
2799 * Loader/WebSubresourceLoader.m:
2800 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
2801 (-[WebSubresourceLoader signalFinish]):
2802 (-[WebSubresourceLoader didFailWithError:]):
2803 (-[WebSubresourceLoader cancel]):
2804 * Plugins/WebNetscapePluginStream.m:
2805 (-[WebNetscapePluginStream start]):
2806 * WebView/WebDataSource.m:
2807 (-[WebDataSource _replaceSelectionWithArchive:selectReplacement:]):
2808 (-[WebDataSource _updateIconDatabaseWithURL:]):
2809 (-[WebDataSource _loadIcon]):
2810 (-[WebDataSource _setPrimaryLoadComplete:]):
2811 (-[WebDataSource _cancelledError]):
2812 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
2813 (+[WebDataSource _representationClassForMIMEType:]):
2814 (-[WebDataSource _commitLoadWithData:]):
2815 (-[WebDataSource _receivedMainResourceError:complete:]):
2816 (-[WebDataSource _iconLoaderReceivedPageIcon:]):
2817 (-[WebDataSource _isDocumentHTML]):
2818 * WebView/WebDataSourceInternal.h:
2820 2006-08-21 Brady Eidson <beidson@apple.com>
2824 Quick ICONDEBUG flag fix
2826 * Misc/WebIconDatabase.m:
2827 (-[WebIconDatabase _applicationWillTerminate:]):
2829 2006-08-21 Brady Eidson <beidson@apple.com>
2833 -Renamed an internal only method for clarity
2834 -Tweaked WebDataSource for notification purposes with the new expiring icons
2835 -Fixed a bug with the ICONDEBUG flag
2837 * Misc/WebIconDatabase.m:
2838 (-[WebIconDatabase init]):
2839 (-[WebIconDatabase iconForURL:withSize:cache:]): #ifdef bug fixed
2840 (-[WebIconDatabase _hasEntryForIconURL:]): Renamed for clarity
2841 * Misc/WebIconDatabasePrivate.h:
2842 * WebView/WebDataSource.m:
2843 (-[WebDataSource _updateIconDatabaseWithURL:]):
2844 (-[WebDataSource _notifyIconChanged:]):
2845 (-[WebDataSource _loadIcon]):
2846 (-[WebDataSource _iconLoaderReceivedPageIcon:]):
2848 2006-08-17 Maciej Stachowiak <mjs@apple.com>
2852 - pull a bit of WebDataSource code into WebFrameLoader
2854 * Loader/WebFrameLoader.m:
2855 (-[WebFrameLoader _receivedError:]):
2856 (-[WebFrameLoader webFrame]):
2857 (-[WebFrameLoader _handleFallbackContent]):
2858 (+[WebFrameLoader _canShowMIMEType:]):
2859 (+[WebFrameLoader _representationExistsForURLScheme:]):
2860 (+[WebFrameLoader _generatedMIMETypeForURLScheme:]):
2861 * WebView/WebDataSource.m:
2862 * WebView/WebDataSourceInternal.h:
2864 2006-08-17 Timothy Hatcher <timothy@apple.com>
2866 Reviewed by Kevin Decker.
2868 <rdar://problem/4606857> WebKit: WebPreferencesChangedNotification not exported in 64-bit
2872 2006-08-17 Timothy Hatcher <timothy@apple.com>
2874 Reviewed by Kevin Decker.
2876 <rdar://problem/4633896> -[WebView close] should clear all delegates and call setHostWindow:nil
2877 <rdar://problem/4649759> Crash when selecting View Source menu using Chinese (-[WebView _close])
2879 Check to make sure _private is not null. A WebView can be dealloced before _private is setup.
2880 Set the _private->closed flag at the beginning of _close to prevent reentry.
2881 Set the host window and all the delegates to nil in _close.
2883 * WebView/WebView.m:
2884 (-[WebView _close]):
2886 2006-08-16 Brady Eidson <beidson@apple.com>
2890 * Misc/WebIconDatabase.m: Pruned unused method
2891 * Misc/WebIconDatabasePrivate.h: Ditto
2894 2006-08-15 Maciej Stachowiak <mjs@apple.com>
2896 Reviewed by Adele (preliminary version) and later by Kevin.
2898 - remove most WebKit dependencies from WebMainResourceLoader.
2900 * Loader/WebFrameLoader.h:
2901 * Loader/WebFrameLoader.m:
2902 (-[WebFrameLoader cannotShowMIMETypeForURL:]):
2903 (-[WebFrameLoader interruptForPolicyChangeErrorWithRequest:]):
2904 (-[WebFrameLoader isHostedByObjectElement]):
2905 (-[WebFrameLoader isLoadingMainFrame]):
2906 (+[WebFrameLoader _canShowMIMEType:]):
2907 (+[WebFrameLoader _representationExistsForURLScheme:]):
2908 (+[WebFrameLoader _generatedMIMETypeForURLScheme:]):
2909 * Loader/WebMainResourceLoader.h:
2910 * Loader/WebMainResourceLoader.m:
2911 (-[WebMainResourceLoader interruptForPolicyChangeError]):
2912 (-[WebMainResourceLoader willSendRequest:redirectResponse:]):
2913 (isCaseInsensitiveEqual):
2914 (shouldLoadAsEmptyDocument):
2915 (-[WebMainResourceLoader continueAfterContentPolicy:response:]):
2916 (-[WebMainResourceLoader didReceiveResponse:]):
2917 (-[WebMainResourceLoader didReceiveData:lengthReceived:allAtOnce:]):
2918 (-[WebMainResourceLoader didFinishLoading]):
2919 (-[WebMainResourceLoader loadWithRequestNow:]):
2920 (-[WebMainResourceLoader loadWithRequest:]):
2922 2006-08-15 Tim Omernick <timo@apple.com>
2924 Reviewed by Kevin Decker.
2926 * Plugins/WebNetscapePluginPackage.m:
2927 (-[WebNetscapePluginPackage _unloadWithShutdown:]):
2928 Fixed a subtle problem with the 64-bit debug build -- as written, this would LOG() on 64-bit and do nothing on
2930 * Plugins/WebPluginDatabase.m:
2931 (-[WebPluginDatabase _scanForNewPlugins]):
2932 Use +[NSMutableSet set] here.
2934 2006-08-15 Tim Omernick <timo@apple.com>
2936 Reviewed by Darin Adler.
2938 <http://bugs.webkit.org/show_bug.cgi?id=8980>
2939 ASSERTION FAILED: !isLoaded (WebKit/WebKit/Plugins/WebBasePluginPackage.m:228 -[WebBasePluginPackage dealloc])
2941 <rdar://problem/4526052> intermittent assertion failure in -[WebBasePluginPackage dealloc] running layout tests (8980)
2943 * Plugins/WebPluginDatabase.h:
2944 * Plugins/WebPluginDatabase.m:
2945 (+[WebPluginDatabase installedPlugins]):
2946 Observe NSApplicationWillTerminateNotification so we can unload plug-ins on quit.
2947 (-[WebPluginDatabase plugins]):
2948 'plugins' is now a dictionary.
2949 (-[WebPluginDatabase close]):
2950 Call new -_removePlugin: method.
2951 (-[WebPluginDatabase refresh]):
2952 Moved parts of this method out into other methods: -_addPlugin:, -_removePlugin:, and -_scanForNewPlugins.
2953 (-[WebPluginDatabase _plugInPaths]):
2954 No changes; just moved in file.
2955 (-[WebPluginDatabase _addPlugin:]):
2956 New method. Refactored from -refresh. Adds a plug-in to the database.
2957 (-[WebPluginDatabase _removePlugin:]):
2958 New method. Refactored from -refresh. Remove a plug-in from the database.
2959 (-[WebPluginDatabase _scanForNewPlugins]):
2960 New method. Refactored from -refresh. Returns the list of plug-in packages on disk.
2961 (-[WebPluginDatabase _applicationWillTerminate]):
2962 New method. Called when the application terminates. Closes the plug-in database so that all plug-ins are
2963 removed from the DB (and unloaded if necessary).
2965 * Plugins/WebBasePluginPackage.h:
2966 * Plugins/WebBasePluginPackage.m:
2967 (-[WebBasePluginPackage initWithPath:]):
2968 Try to create the NSBundle first, so if the file is not a valid bundle we bail out early. This
2969 avoids some stat()s and allocations during the plug-in refresh process.
2970 (-[WebBasePluginPackage isLoaded]):
2972 (-[WebBasePluginPackage load]):
2973 Base class for plug-in packages now always loads "successfully".
2974 (-[WebBasePluginPackage dealloc]):
2975 Removed this assertion. The base plug-in package class has no concept of
2977 (-[WebBasePluginPackage finalize]):
2979 (-[WebBasePluginPackage wasRemovedFromPluginDatabase:]):
2980 Moved code to unload plug-in package to WebNetscapePluginPackage. Not all plug-in
2981 packages can be "unloaded".
2983 * Plugins/WebNetscapePluginPackage.h:
2984 * Plugins/WebNetscapePluginPackage.m:
2985 (-[WebNetscapePluginPackage _unloadWithShutdown:]):
2986 Combined old -unload and -unloadWithoutShutdown methods into this new one.
2987 (-[WebNetscapePluginPackage initWithPath:]):
2988 Call new unload method.
2989 (-[WebNetscapePluginPackage load]):
2991 (-[WebNetscapePluginPackage wasRemovedFromPluginDatabase:]):
2993 (-[WebNetscapePluginPackage open]):
2994 New method. Called when a plug-in instance starts running.
2995 (-[WebNetscapePluginPackage close]):
2996 New method. Called when a plug-in instance stops running. When all plug-in instances
2997 close the plug-in package, and the plug-in package is removed from the database, the plug-in
3000 * Plugins/WebPluginPackage.m:
3001 (-[WebPluginPackage initWithPath:]):
3002 (-[WebPluginPackage load]):
3003 Made this a bit more efficient by checking if the bundle is already loaded.
3004 (-[WebBasePluginPackage unload]):
3006 (-[WebBasePluginPackage isLoaded]):
3009 * Plugins/WebBaseNetscapePluginView.m:
3010 (-[WebBaseNetscapePluginView start]):
3011 Open the plug-in package so it remains loaded while this instance uses it.
3012 (-[WebBaseNetscapePluginView stop]):
3013 Close the plug-in package when the plug-in instance is stopped.
3015 * Plugins/WebBaseNetscapePluginStream.m:
3016 (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:]):
3017 This check is not necessary. Netscape plug-in packages are never unloaded until all their instances have
3018 been stopped, and a Netscape plug-in instance will stop its streams when it is stopped.
3019 (-[WebBaseNetscapePluginStream _destroyStream]):
3021 (-[WebBaseNetscapePluginStream finishedLoadingWithData:]):
3023 (-[WebBaseNetscapePluginStream _deliverData]):
3026 2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
3030 Build fix: DWARF and -gfull are incompatible with symbol separation.
3032 * WebKit.xcodeproj/project.pbxproj:
3034 2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
3038 http://bugs.webkit.org/show_bug.cgi?id=10394
3039 Bug 10394: WebKit Release and Production configurations should enable dead code stripping
3041 * WebKit.xcodeproj/project.pbxproj:
3043 2006-08-15 Maciej Stachowiak <mjs@apple.com>
3047 - remove WebKit dependencies from WebPlugInStreamLoader via a protocol veil of ignorance
3049 * Loader/WebNetscapePlugInStreamLoader.h:
3050 * Loader/WebNetscapePlugInStreamLoader.m:
3051 (-[WebNetscapePlugInStreamLoader initWithDelegate:frameLoader:]):
3052 * Loader/WebPlugInStreamLoaderDelegate.h: Added.
3053 * Plugins/WebBaseNetscapePluginStream.h:
3054 * Plugins/WebNetscapePluginStream.m:
3055 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
3056 * WebKit.xcodeproj/project.pbxproj:
3058 2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
3062 http://bugs.webkit.org/show_bug.cgi?id=10384
3063 Bug 10384: Switch to DWARF for Release configuration
3065 * WebKit.xcodeproj/project.pbxproj:
3067 2006-08-15 Graham Dennis <graham.dennis@gmail.com>
3071 - patch for http://bugs.webkit.org/show_bug.cgi?id=10314
3072 WebUnarchivingState archivedResourceForURL: doesn't work
3074 * WebView/WebUnarchivingState.m:
3075 (-[WebUnarchivingState archivedResourceForURL:]):
3076 Fixed to get objects from the archived resources dictionary using
3077 the URL as a string instead of as the URL itself (as this is how
3078 the data is put into the dictionary).
3080 2006-08-14 Maciej Stachowiak <mjs@apple.com>
3084 - remove many (but not all) WebKit dependencies from WebNetscapePlugInStreamLoader (it still
3085 depends on WebNetscapePluginStream).
3087 * Loader/WebFrameLoader.h:
3088 * Loader/WebFrameLoader.m:
3089 (-[WebFrameLoader fileDoesNotExistErrorWithResponse:]):
3090 * Loader/WebNetscapePlugInStreamLoader.h:
3091 * Loader/WebNetscapePlugInStreamLoader.m:
3092 (-[WebNetscapePlugInStreamLoader initWithStream:frameLoader:]):
3093 (-[WebNetscapePlugInStreamLoader releaseResources]):
3094 (-[WebNetscapePlugInStreamLoader didReceiveResponse:]):
3095 * Plugins/WebNetscapePluginStream.m:
3096 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
3098 2006-08-14 Maciej Stachowiak <mjs@apple.com>
3100 Reviewed by Tim Omernick.
3102 - fixed REGRESSION: crash when leaving youtube page while movie is still loading
3103 http://bugs.webkit.org/show_bug.cgi?id=10398
3105 * Loader/WebNetscapePlugInStreamLoader.m:
3106 (-[WebNetscapePlugInStreamLoader initWithStream:view:]): Set the frame loader for this stream.
3107 (-[WebNetscapePlugInStreamLoader cancelWithError:]): Make sure to destroy the stream as well;
3108 otherwise, when we try to clean up later, we won't have the right context.
3110 2006-08-14 David Hyatt <hyatt@apple.com>
3112 Fix for Radar bug 4478840, Safari should not reduce null events sent to
3113 plug-ins in windows that are inactive but visible.
3115 With this fix you can view videos in visible background windows on YouTube
3116 (for example) and not see any drop in frame rate.
3120 * Plugins/WebBaseNetscapePluginView.m:
3121 (-[WebBaseNetscapePluginView restartNullEvents]):
3123 2006-08-14 Maciej Stachowiak <mjs@apple.com>
3127 - removed WebKit-level dependencies from WebFormDataStream. Use WebCore version of system interface
3129 * Loader/WebFormDataStream.m:
3131 (formEventCallback):
3133 * WebCoreSupport/WebSystemInterface.m:
3134 (InitWebCoreSystemInterface):
3136 2006-08-14 Maciej Stachowiak <mjs@apple.com>
3138 Rubber stamped by Brady.
3140 - move WebFormDataStream from WebView to Loader
3142 * WebKit.xcodeproj/project.pbxproj:
3143 * WebView/WebFormDataStream.h: Removed.
3144 * WebView/WebFormDataStream.m: Removed.
3146 2006-08-13 Maciej Stachowiak <mjs@apple.com>
3150 - remove WebKit dependencies from WebSubresourceLoader, except WebFormDataStream
3152 (WebFormDataStream will be moved into the Loader directory soon)
3154 * Loader/WebFrameLoader.h:
3155 * Loader/WebFrameLoader.m:
3156 (-[WebFrameLoader _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
3157 * Loader/WebSubresourceLoader.m:
3158 (isConditionalRequest):
3159 (hasCaseInsensitivePrefix):
3162 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
3164 2006-08-13 Brady Eidson <beidson@apple.com>
3168 Relocated the WebIconLoaders
3170 * Misc/WebIconLoader.h: Moved to Loader/
3171 * Misc/WebIconLoader.m: Moved to Loader/
3172 * WebKit.xcodeproj/project.pbxproj:
3174 2006-08-13 Maciej Stachowiak <mjs@apple.com>
3178 - removed non-Loader WebKit dependencies from WebDataProtocol for
3179 real (whoops) and fix some typos.
3181 * Loader/WebDataProtocol.m:
3182 (isCaseInsensitiveEqual): Added.
3183 (+[WebDataProtocol _webIsDataProtocolURL:]): Avoid WebKit calls.
3184 (-[WebDataProtocol startLoading]): ditto
3185 * Loader/WebFrameLoader.m:
3186 (isCaseInsensitiveEqual): Fixed spelling from isCaseSensitiveEqual.
3187 (-[WebFrameLoader _canUseResourceForRequest:]): Use proper call.
3189 2006-08-13 Brady Eidson <beidson@apple.com>
3193 The way of detecting a failed icon load before was to try and construct
3194 an image from the icon and if that image construction failed, mark the icon
3196 A much more efficient way is to check for an error response. We'll still
3197 check for invalid image data, but most servers will correctly return an HTTP
3198 error on a missing icon.
3200 * Misc/WebIconLoader.m:
3201 (-[WebIconLoader didFinishLoading]): Added check for http error response
3203 2006-08-13 Maciej Stachowiak <mjs@apple.com>
3207 - remove all non-Loader dependencies from WebLoader
3209 As part of this I moved WebDataProtocol to the loader directory
3210 and removed dependencies on the rest of WebKit from that too.
3212 * Loader/WebFrameLoader.h:
3213 * Loader/WebFrameLoader.m:
3214 (-[WebFrameLoader setDefersCallbacks:]):
3215 (-[WebFrameLoader stopLoading]):
3216 (-[WebFrameLoader cancelledErrorWithRequest:]):
3217 (-[WebFrameLoader clearArchivedResources]):
3218 (-[WebFrameLoader deliverArchivedResources]):
3219 (-[WebFrameLoader deliverArchivedResourcesAfterDelay]):
3220 (isCaseSensitiveEqual):
3221 (-[WebFrameLoader _canUseResourceForRequest:]):
3222 (-[WebFrameLoader _canUseResourceWithResponse:]):
3223 (-[WebFrameLoader pendingArchivedResources]):
3224 (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
3225 (-[WebFrameLoader archiveLoadPendingForLoader:]):
3226 (-[WebFrameLoader cancelPendingArchiveLoadForLoader:]):
3227 * Loader/WebLoader.h:
3228 * Loader/WebLoader.m:
3229 (-[NSURLProtocol releaseResources]):
3230 (-[NSURLProtocol loadWithRequest:]):
3231 (-[NSURLProtocol setDefersCallbacks:]):
3232 (-[NSURLProtocol addData:allAtOnce:]):
3233 (-[NSURLProtocol resourceData]):
3234 (-[NSURLProtocol didReceiveData:lengthReceived:allAtOnce:]):
3235 (-[NSURLProtocol connection:didReceiveData:lengthReceived:]):
3236 (-[NSURLProtocol cancelWithError:]):
3237 (-[NSURLProtocol cancelledError]):
3238 * Loader/WebMainResourceLoader.m:
3239 (-[WebMainResourceLoader addData:allAtOnce:]):
3240 (-[WebMainResourceLoader didReceiveData:lengthReceived:allAtOnce:]):
3241 * Loader/WebNetscapePlugInStreamLoader.m:
3242 (-[WebNetscapePlugInStreamLoader didReceiveData:lengthReceived:allAtOnce:]):
3243 * Loader/WebSubresourceLoader.m:
3244 (-[WebSubresourceLoader didReceiveData:lengthReceived:allAtOnce:]):
3245 * WebKit.xcodeproj/project.pbxproj:
3246 * WebView/WebDataProtocol.h: Removed.
3247 * WebView/WebDataProtocol.m: Removed.
3249 2006-08-11 Tim Omernick <timo@apple.com>
3253 <http://bugs.webkit.org/show_bug.cgi?id=10111> - Menu flickers over Flash content
3254 <rdar://problem/3052546> Plugins don't work with z-index (overlapping elements, etc.)
3256 * Plugins/WebBaseNetscapePluginView.m:
3257 (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
3258 Don't just clip to the dirty region for "transparent" plug-ins -- do it for all plug-ins. This is a
3259 generally useful thing to do, as it prevents the plug-in from drawing over parts of the window that
3260 have already been drawn and are not expected to be redrawn in the same update.
3262 2006-08-11 Brady Eidson <beidson@apple.com>
3264 Reviewed by John, Timo, Adele, and Darin
3266 In addition to a few style/good-practice cleanups, this patch will convert the old icon database
3267 format to the WebCore format if the WebCore db is empty (implying this conversion has yet to take
3268 place). After the conversion, it will delete all traces of the old format to free the unneeded space
3270 * Misc/WebIconDatabase.m:
3271 (-[WebIconDatabase init]):
3272 (-[WebIconDatabase _setIconURL:forURL:]): Changed the bridge's name for this method to be more clear
3273 (-[WebIconDatabase _createFileDatabase]):
3274 (-[WebIconDatabase _iconDataForIconURL:]): This grabs the raw data for use in the conversion function
3275 (-[WebIconDatabase _convertToWebCoreFormat]): This does the actual conversion
3277 2006-08-11 Tim Omernick <timo@apple.com>
3279 Reviewed by John Sullivan.
3281 Needed for <rdar://problem/4678070>.
3283 * Plugins/WebBaseNetscapePluginView.m:
3284 (-[WebBaseNetscapePluginView sendEvent:]):
3285 Changed an assertion to an early return. It should be possible to send events, especially updateEvt (for image capturing
3286 purposes), to off-screen plug-ins. It just doesn't work right now. See <rdar://problem/4318269>.
3288 2006-08-11 John Sullivan <sullivan@apple.com>
3292 - fixed <rdar://problem/4522894> Would be nice if Safari shrank pages a little if necessary
3293 to avoid printing an almost-empty page
3295 * WebView/WebHTMLView.m:
3296 (-[NSArray knowsPageRange:]):
3297 If the last page has a short-enough orphan (< 1/10 of the page height is the number I pulled
3298 out of ... the air), then we adjust the scale factor slightly and check whether this reduces
3299 the page count and thus eliminates the orphan.
3301 2006-08-07 Brady Eidson <beidson@apple.com>
3303 Reviewed by Anders and John
3305 * Misc/WebIconDatabase.m:
3306 (-[WebIconDatabase init]):
3307 (-[WebIconDatabase isIconExpiredForIconURL:]): Get if an icon expired
3308 (-[WebIconDatabase isIconExpiredForPageURL:]): Ditto
3309 (-[WebIconDatabase _setIconURL:forURL:]):
3310 (-[WebIconDatabase _sendNotificationForURL:]): Moved to WebKitPendingPublic for use outside of WebIconDatabase
3311 (-[WebIconDatabase loadIconFromURL:]): Allow a load outside the context of a page load
3312 * Misc/WebIconDatabasePrivate.h:
3314 * Misc/WebIconLoader.m:
3315 (-[WebIconLoader didFinishLoading]): fixed up the "flipping the switch" #defs a bit
3316 (-[WebIconLoader willSendRequest:redirectResponse:]): override to allow a load
3317 outside of the context of a page load
3319 * WebCoreSupport/WebIconDatabaseBridge.h: Added.
3320 * WebCoreSupport/WebIconDatabaseBridge.m: Added.
3321 (-[WebIconDatabaseBridge init]):
3322 (-[WebIconDatabaseBridge dealloc]):
3323 (-[WebIconDatabaseBridge loadIconFromURL:]): Kick off a load on an icon outside
3324 of the context of any page load
3325 (-[WebIconDatabaseBridge _setIconData:forIconURL:]): WebKit side of bridge method
3326 (-[WebIconDatabaseBridge _setHaveNoIconForIconURL:]): WebKit side of bridge method
3327 (-[WebIconDatabaseBridge releaseCachedLoaderForIconURL:]):
3328 (+[WebIconDatabaseBridge sharedBridgeInstance]): Moved this from WebCore to WebKit
3329 so both sides of the bridge get the WebKit version
3330 * WebKit.xcodeproj/project.pbxproj: Added some files
3331 * WebView/WebDataSource.m:
3332 (-[WebDataSource _loadIcon]): Added check for reload/expired icon to force
3333 a load even if we already have it
3335 2006-08-04 Sam Weinig <sam.weinig@gmail.com>
3339 - patch for http://bugs.webkit.org/show_bug.cgi?id=10192
3340 Make WebCore (and friends) compile with -Wshorten-64-to-32
3342 * Adds 'f' to float literals where expecting a float.
3343 * Use ceilf() instead of ceil() when assigning to a float.
3344 * Adds explicit casts where OK.
3346 NOTE: The -Wshorten-64-to-32 flag was not added for WebKit
3347 because there are still a few places where no error handling
3348 is in place. The flag can be added as soon as those are worked
3351 * Misc/WebNSControlExtras.m:
3352 (-[NSControl sizeToFitAndAdjustWindowHeight]):
3353 * Misc/WebNSImageExtras.m:
3354 (-[NSImage _web_scaleToMaxSize:]):
3355 * Misc/WebNSViewExtras.h:
3356 * Misc/WebNSViewExtras.m:
3357 * Plugins/WebBaseNetscapePluginView.m:
3358 (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
3359 (-[WebBaseNetscapePluginView drawRect:]):
3360 * WebCoreSupport/WebFrameBridge.m:
3361 (-[WebFrameBridge expiresTimeForResponse:]):
3362 * WebInspector/WebInspector.m:
3363 (-[NSWindow window]):
3364 (-[WebInspector treeViewScrollTo:]):
3365 (-[WebInspector _updateSystemColors]):
3366 (-[WebInspector webView:plugInViewWithArguments:]):
3367 (-[WebInspector outlineView:objectValueForTableColumn:byItem:]):
3368 * WebInspector/WebInspectorOutlineView.m:
3369 (-[WebInspectorOutlineView _highlightRow:clipRect:]):
3370 * WebInspector/WebNodeHighlight.m:
3371 (-[WebNodeHighlight initWithBounds:andRects:forView:]):
3372 * WebInspector/WebNodeHighlightView.m:
3373 (-[WebNodeHighlightView roundedRect:withRadius:]):
3374 (-[WebNodeHighlightView initWithHighlight:andRects:forView:]):
3375 (-[WebNodeHighlightView drawRect:]):
3376 * WebView/WebFrame.m:
3377 (-[WebFrame _opened]):
3378 * WebView/WebFrameView.m:
3379 (-[WebFrameView initWithFrame:]):
3380 * WebView/WebHTMLView.m:
3381 (-[WebHTMLView _dragImageForLinkElement:]):
3382 (-[WebHTMLView _web_setPrintingModeRecursive]):
3383 (-[WebHTMLView _web_clearPrintingModeRecursive]):
3384 (-[NSArray layout]):
3385 (-[NSArray _setPrinting:minimumPageWidth:maximumPageWidth:adjustViewSize:]):
3386 (-[NSArray adjustPageHeightNew:top:bottom:limit:]):
3387 (-[NSArray _scaleFactorForPrintOperation:]):
3388 (-[NSArray setPageWidthForPrinting:]):
3389 (-[NSArray _endPrintMode]):
3390 (-[NSArray knowsPageRange:]):
3391 (-[NSArray _originalFontA]):
3392 (-[NSArray _originalFontB]):
3393 (-[WebTextCompleteController _buildUI]):
3394 (-[WebTextCompleteController _placePopupWindow:]):
3395 * WebView/WebPDFView.m:
3396 (-[WebPDFView _makeTextStandardSize:]):
3397 (-[WebPDFView selectionImageForcingWhiteText:]):
3398 (-[PDFPrefUpdatingProxy forwardInvocation:]):
3399 * WebView/WebPreferences.m:
3400 (-[WebPreferences _floatValueForKey:]):
3401 * WebView/WebView.m:
3402 (-[WebView makeTextSmaller:]):
3403 (-[WebView canMakeTextStandardSize]):
3404 (-[WebView makeTextStandardSize:]):
3406 2006-08-04 David Kilzer <ddkilzer@kilzer.net>
3408 Reviewed by NOBODY (build fix).
3410 * WebCoreSupport/WebSubresourceLoader.m: REALLY moved to Loader/
3411 * WebView/WebFrameLoader.h: REALLY moved to Loader/
3412 * WebView/WebFrameLoader.m: REALLY moved to Loader/
3413 * WebView/WebLoader.h: REALLY moved to Loader/
3414 * WebView/WebLoader.m: REALLY moved to Loader/
3415 * WebView/WebMainResourceLoader.m: REALLY moved to Loader/
3417 2006-08-03 Maciej Stachowiak <mjs@apple.com>
3421 - moved all loader code that is slated to be moved down to WebCore to a new Loader directory
3423 (next step is to remove dependencies on the rest of WebKit from this directory)
3425 * Loader/WebNetscapePlugInStreamLoader.h: Added.
3426 * Loader/WebNetscapePlugInStreamLoader.m: Added. Cut out of WebNetscapePluginStream.m
3427 (-[WebNetscapePlugInStreamLoader initWithStream:view:]):
3428 (-[WebNetscapePlugInStreamLoader isDone]):
3429 (-[WebNetscapePlugInStreamLoader releaseResources]):
3430 (-[WebNetscapePlugInStreamLoader didReceiveResponse:]):
3431 (-[WebNetscapePlugInStreamLoader didReceiveData:lengthReceived:]):
3432 (-[WebNetscapePlugInStreamLoader didFinishLoading]):
3433 (-[WebNetscapePlugInStreamLoader didFailWithError:]):
3434 (-[WebNetscapePlugInStreamLoader cancelWithError:]):
3435 * Plugins/WebNetscapePluginStream.m:
3436 * WebKit.xcodeproj/project.pbxproj:
3437 * WebCoreSupport/WebSubresourceLoader.h: Moved to Loader/
3438 * WebCoreSupport/WebSubresourceLoader.m: Moved to Loader/
3439 * WebView/WebFrameLoader.h: Moved to Loader/
3440 * WebView/WebFrameLoader.m: Moved to Loader/
3441 * WebView/WebLoader.h: Moved to Loader/
3442 * WebView/WebLoader.m: Moved to Loader/
3443 * WebView/WebMainResourceLoader.h: Moved to Loader/
3444 * WebView/WebMainResourceLoader.m: Moved to Loader/
3446 2006-08-03 Tim Omernick <timo@apple.com>
3448 Reviewed by Kevin Decker.
3450 <rdar://problem/4667460> Windowless OpenGL plug-ins render incorrectly on PowerPC
3452 * Plugins/WebBaseNetscapePluginView.m:
3453 (-[WebBaseNetscapePluginView _aglOffscreenImageForDrawingInRect:]):
3454 Fixed color component swapping so that it works on both x86 and PPC. See comments.
3456 2006-08-03 Brady Eidson <beidson@apple.com>
3458 Reviewed by Tim Hatcher's rubber stamp
3459 Fixed Intel build break caused by weinig's -W change in r15781
3461 * WebView/WebView.m: wrapped cpu-dependent defs with defined() macro
3463 2006-08-03 Maciej Stachowiak <mjs@apple.com>
3467 - fixed problem that could cause assertion failures in Safari
3469 * Plugins/WebBaseNetscapePluginView.m:
3470 (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]): Don't
3471 allow a plugin to start new loads once its document is no longer the one actively loading.
3473 2006-08-03 Maciej Stachowiak <mjs@apple.com>
3477 - remove use of WebDataSource from WebLoader and subclasses, just have them talk to the
3478 WebFrameLoader instead.
3480 For now this is done by forarding all the calls.
3482 * Misc/WebIconLoader.m:
3483 (-[WebIconLoader didFinishLoading]):
3484 * Plugins/WebNetscapePluginStream.m:
3485 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
3486 (-[WebNetscapePluginStream start]):
3487 (-[WebNetscapePlugInStreamLoader didFinishLoading]):
3488 (-[WebNetscapePlugInStreamLoader didFailWithError:]):
3489 (-[WebNetscapePlugInStreamLoader cancelWithError:]):
3490 * WebCoreSupport/WebFrameBridge.m:
3491 (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
3492 (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
3493 * WebCoreSupport/WebSubresourceLoader.h:
3494 * WebCoreSupport/WebSubresourceLoader.m:
3495 (-[WebSubresourceLoader initWithLoader:frameLoader:]):
3496 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
3497 (+[WebSubresourceLoader startLoadingResource:withMethod:URL:customHeaders:referrer:forFrameLoader:]):
3498 (+[WebSubresourceLoader startLoadingResource:withMethod:URL:customHeaders:postData:referrer:forFrameLoader:]):
3499 (-[WebSubresourceLoader receivedError:]):
3500 (-[WebSubresourceLoader signalFinish]):
3501 (-[WebSubresourceLoader didFailWithError:]):
3502 (-[WebSubresourceLoader cancel]):
3503 * WebKit.xcodeproj/project.pbxproj:
3504 * WebView/WebDataSource.m:
3505 (-[WebDataSource _updateLoading]):
3506 (-[WebDataSource textEncodingName]):
3507 (-[WebDataSource _mainReceivedBytesSoFar:complete:]):
3508 * WebView/WebFrameLoader.h:
3509 * WebView/WebFrameLoader.m:
3510 (-[WebFrameLoader loadIconWithRequest:]):
3511 (-[WebFrameLoader startLoadingMainResourceWithRequest:identifier:]):
3512 (-[WebFrameLoader clearIconLoader]):
3513 (-[WebFrameLoader commitProvisionalLoad]):
3514 (-[WebFrameLoader activeDataSource]):
3515 (-[WebFrameLoader _archivedSubresourceForURL:]):
3516 (-[WebFrameLoader _defersCallbacks]):
3517 (-[WebFrameLoader _identifierForInitialRequest:]):
3518 (-[WebFrameLoader _willSendRequest:forResource:redirectResponse:]):
3519 (-[WebFrameLoader _didReceiveAuthenticationChallenge:forResource:]):
3520 (-[WebFrameLoader _didCancelAuthenticationChallenge:forResource:]):
3521 (-[WebFrameLoader _didReceiveResponse:forResource:]):
3522 (-[WebFrameLoader _didReceiveData:contentLength:forResource:]):
3523 (-[WebFrameLoader _didFinishLoadingForResource:]):
3524 (-[WebFrameLoader _didFailLoadingWithError:forResource:]):
3525 (-[WebFrameLoader _privateBrowsingEnabled]):
3526 (-[WebFrameLoader _addPlugInStreamLoader:]):
3527 (-[WebFrameLoader _removePlugInStreamLoader:]):
3528 (-[WebFrameLoader _finishedLoadingResource]):
3529 (-[WebFrameLoader _receivedError:]):
3530 (-[WebFrameLoader _addSubresourceLoader:]):
3531 (-[WebFrameLoader _removeSubresourceLoader:]):
3532 (-[WebFrameLoader _originalRequest]):
3533 (-[WebFrameLoader webFrame]):
3534 (-[WebFrameLoader _receivedMainResourceError:complete:]):
3535 (-[WebFrameLoader initialRequest]):
3536 (-[WebFrameLoader _receivedData:]):
3537 (-[WebFrameLoader _setRequest:]):
3538 (-[WebFrameLoader _downloadWithLoadingConnection:request:response:proxy:]):
3539 (-[WebFrameLoader _handleFallbackContent]):
3540 (-[WebFrameLoader _isStopping]):
3541 (-[WebFrameLoader _decidePolicyForMIMEType:decisionListener:]):
3542 (-[WebFrameLoader _setupForReplaceByMIMEType:]):
3543 (-[WebFrameLoader _setResponse:]):
3544 (-[WebFrameLoader _mainReceivedError:complete:]):
3545 (-[WebFrameLoader _finishedLoading]):
3546 (-[WebFrameLoader _mainReceivedBytesSoFar:complete:]):
3547 (-[WebFrameLoader _iconLoaderReceivedPageIcon:]):
3548 (-[WebFrameLoader _URL]):
3549 * WebView/WebLoader.h:
3550 * WebView/WebLoader.m:
3551 (-[NSURLProtocol releaseResources]):
3552 (-[NSURLProtocol loadWithRequest:]):
3553 (-[NSURLProtocol setFrameLoader:]):
3554 (-[NSURLProtocol frameLoader]):
3555 (-[NSURLProtocol willSendRequest:redirectResponse:]):
3556 (-[NSURLProtocol didReceiveAuthenticationChallenge:]):
3557 (-[NSURLProtocol didCancelAuthenticationChallenge:]):
3558 (-[NSURLProtocol didReceiveResponse:]):
3559 (-[NSURLProtocol didReceiveData:lengthReceived:]):
3560 (-[NSURLProtocol signalFinish]):
3561 (-[NSURLProtocol didFailWithError:]):
3562 (-[NSURLProtocol willCacheResponse:]):
3563 (-[NSURLProtocol cancelWithError:]):
3564 * WebView/WebMainResourceLoader.h:
3565 * WebView/WebMainResourceLoader.m:
3566 (-[WebMainResourceLoader initWithFrameLoader:]):
3567 (-[WebMainResourceLoader receivedError:]):
3568 (-[WebMainResourceLoader cancelWithError:]):
3569 (-[WebMainResourceLoader _isPostOrRedirectAfterPost:redirectResponse:]):
3570 (-[WebMainResourceLoader addData:]):
3571 (-[WebMainResourceLoader willSendRequest:redirectResponse:]):
3572 (-[WebMainResourceLoader continueAfterContentPolicy:response:]):
3573 (-[WebMainResourceLoader continueAfterContentPolicy:]):
3574 (-[WebMainResourceLoader checkContentPolicyForResponse:]):
3575 (-[WebMainResourceLoader didReceiveResponse:]):