1 2006-10-08 Maciej Stachowiak <mjs@apple.com>
5 - pass remaining delegate methods across client interface
7 * Loader/WebFrameLoader.m:
8 (-[WebFrameLoader _checkContentPolicyForMIMEType:andCall:withSelector:]):
9 (-[WebFrameLoader checkNewWindowPolicyForRequest:action:frameName:formState:andCall:withSelector:]):
10 (-[WebFrameLoader checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
11 (-[WebFrameLoader handleUnimplementablePolicyWithErrorCode:forURL:]):
12 (-[WebFrameLoader didFirstLayout]):
13 (-[WebFrameLoader continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
14 * Loader/WebFrameLoaderClient.h:
16 (-[WebFrame _dispatchDidFirstLayoutInFrame]):
17 (-[WebFrame _dispatchCreateWebViewWithRequest:]):
18 (-[WebFrame _dispatchShow]):
19 (-[WebFrame _dispatchDecidePolicyForMIMEType:request:decisionListener:]):
20 (-[WebFrame _dispatchDecidePolicyForNewWindowAction:request:newFrameName:decisionListener:]):
21 (-[WebFrame _dispatchDecidePolicyForNavigationAction:request:decisionListener:]):
22 (-[WebFrame _dispatchUnableToImplementPolicyWithError:]):
24 2006-10-08 Darin Adler <darin@apple.com>
28 - use WebCoreSystemInterface instead of WebSystemInterface in Loader directory
30 * Loader/WebFrameLoader.m: Update includes.
31 (-[WebFrameLoader commitProvisionalLoad:]): Use wk calls istead of WK.
32 (-[WebFrameLoader _canUseResourceWithResponse:]): Ditto.
34 * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface):
35 Added the three new symbols, and resorted the list.
37 * Loader/WebDataProtocol.m:
39 * Loader/WebMainResourceLoader.h:
40 * Loader/WebMainResourceLoader.m:
41 * Loader/WebNetscapePlugInStreamLoader.h:
42 * Loader/WebNetscapePlugInStreamLoader.m:
43 * Loader/WebSubresourceLoader.h:
44 * Loader/WebSubresourceLoader.m:
45 Changed import statements to consistently use the "" format.
47 2006-10-08 Maciej Stachowiak <mjs@apple.com>
51 - fix accidental build break due to editing while committing
53 * Loader/WebFrameLoader.m:
55 2006-10-08 Maciej Stachowiak <mjs@apple.com>
59 - move all WebFrameLoadDelegate methods across client interface
61 * Loader/WebFrameLoader.m:
62 (-[WebFrameLoader clientRedirectCancelledOrFinished:]):
63 (-[WebFrameLoader clientRedirectedTo:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
64 (-[WebFrameLoader continueFragmentScrollAfterNavigationPolicy:formState:]):
65 (-[WebFrameLoader closeOldDataSources]):
66 (-[WebFrameLoader _notifyIconChanged:]):
67 (-[WebFrameLoader prepareForLoadStart]):
68 (-[WebFrameLoader didChangeTitleForDocument:]):
69 (-[WebFrameLoader transitionToCommitted:]):
70 (-[WebFrameLoader checkLoadCompleteForThisFrame]):
71 * Loader/WebFrameLoaderClient.h:
73 (-[WebFrame _dispatchDidCancelClientRedirectForFrame]):
74 (-[WebFrame _dispatchWillPerformClientRedirectToURL:delay:fireDate:]):
75 (-[WebFrame _dispatchDidChangeLocationWithinPageForFrame]):
76 (-[WebFrame _dispatchWillCloseFrame]):
77 (-[WebFrame _dispatchDidReceiveIcon:]):
78 (-[WebFrame _dispatchDidStartProvisionalLoadForFrame]):
79 (-[WebFrame _dispatchDidReceiveTitle:]):
80 (-[WebFrame _dispatchDidCommitLoadForFrame]):
81 (-[WebFrame _dispatchDidFailProvisionalLoadWithError:]):
82 (-[WebFrame _dispatchDidFailLoadWithError:]):
83 (-[WebFrame _dispatchDidFinishLoadForFrame]):
85 2006-10-08 Darin Adler <darin@apple.com>
89 - removed some of the WebKit dependencies in WebFrameLoader
91 * Loader/WebFrameLoader.m:
92 (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
93 (-[WebFrameLoader _downloadWithLoadingConnection:request:response:proxy:]):
94 (-[WebFrameLoader reload]):
95 (-[WebFrameLoader didChangeTitleForDocument:]):
96 * Loader/WebFrameLoaderClient.h:
98 (-[WebFrame _loadItem:withLoadType:]):
99 (-[WebFrame _loadURL:referrer:intoChild:]):
100 (-[WebFrame _setTitle:forURL:]):
101 (-[WebFrame _downloadWithLoadingConnection:request:response:proxy:]):
102 * WebView/WebFrameInternal.h:
106 * Misc/WebNSURLRequestExtras.m:
107 (-[NSMutableURLRequest _web_setHTTPReferrer:]):
108 (-[NSMutableURLRequest _web_setHTTPUserAgent:]):
110 2006-10-08 Maciej Stachowiak <mjs@apple.com>
114 - pass all WebResourceLoadDelegate methods across client, removing need to include related headers
116 * Loader/WebFrameLoader.m:
117 (-[WebFrameLoader _willSendRequest:forResource:redirectResponse:]):
118 (-[WebFrameLoader _didReceiveAuthenticationChallenge:forResource:]):
119 (-[WebFrameLoader _didCancelAuthenticationChallenge:forResource:]):
120 (-[WebFrameLoader _didReceiveResponse:forResource:]):
121 (-[WebFrameLoader _didReceiveData:contentLength:forResource:]):
122 (-[WebFrameLoader _didFinishLoadingForResource:]):
123 (-[WebFrameLoader _didFailLoadingWithError:forResource:]):
124 (-[WebFrameLoader sendRemainingDelegateMessagesWithIdentifier:response:length:error:]):
125 (-[WebFrameLoader requestFromDelegateForRequest:identifier:error:]):
126 * Loader/WebFrameLoaderClient.h:
127 * WebView/WebFrame.m:
128 (-[WebFrame _dispatchDidHandleOnloadEventsForFrame]):
129 (-[WebFrame _dispatchDidReceiveServerRedirectForProvisionalLoadForFrame]):
130 (-[WebFrame _dispatchIdentifierForInitialRequest:fromDocumentLoader:]):
131 (-[WebFrame _dispatchResource:willSendRequest:redirectResponse:fromDocumentLoader:]):
132 (-[WebFrame _dispatchDidReceiveAuthenticationChallenge:forResource:fromDocumentLoader:]):
133 (-[WebFrame _dispatchDidCancelAuthenticationChallenge:forResource:fromDocumentLoader:]):
134 (-[WebFrame _dispatchResource:didReceiveResponse:fromDocumentLoader:]):
135 (-[WebFrame _dispatchResource:didReceiveContentLength:fromDocumentLoader:]):
136 (-[WebFrame _dispatchResource:didFinishLoadingFromDocumentLoader:]):
137 (-[WebFrame _dispatchResource:didFailLoadingWithError:fromDocumentLoader:]):
139 2006-10-08 Maciej Stachowiak <mjs@apple.com>
143 - started adding some _dispatch methods to WebFrameLoaderClient for delegate dispatch
145 * Loader/WebFrameLoader.m:
146 (-[WebFrameLoader startLoading]):
147 (-[WebFrameLoader didReceiveServerRedirectForProvisionalLoadForFrame]):
148 * Loader/WebFrameLoaderClient.h:
149 * WebCoreSupport/WebFrameBridge.m:
150 (-[WebFrameBridge handledOnloadEvents]):
151 * WebView/WebFrame.m:
153 (-[WebFrame _dataSourceForDocumentLoader:]):
154 (-[WebFrame _dispatchDidHandleOnloadEventsForFrame]):
155 (-[WebFrame _dispatchDidReceiveServerRedirectForProvisionalLoadForFrame]):
156 (-[WebFrame _dispatchIdentifierForInitialRequest:fromDocumentLoader:]):
157 * WebView/WebFrameInternal.h:
159 2006-10-08 Darin Adler <darin@apple.com>
163 - moved more methods to WebFrameLoader from WebFrame
165 * Loader/WebFrameLoader.h:
166 * Loader/WebFrameLoader.m:
167 (-[WebFrameLoader defersCallbacksChanged]):
168 (-[WebFrameLoader startLoadingMainResourceWithRequest:identifier:]):
169 (-[WebFrameLoader setState:]):
170 (-[WebFrameLoader clearProvisionalLoad]):
171 (-[WebFrameLoader markLoadComplete]):
172 (-[WebFrameLoader commitProvisionalLoad]):
173 (-[WebFrameLoader stopLoading]):
174 (-[WebFrameLoader startProvisionalLoad:]):
175 (-[WebFrameLoader setupForReplace]):
176 (-[WebFrameLoader _identifierForInitialRequest:]):
177 (-[WebFrameLoader _finishedLoadingResource]):
178 (-[WebFrameLoader _receivedError:]):
179 (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
180 (-[WebFrameLoader continueFragmentScrollAfterNavigationPolicy:formState:]):
181 (-[WebFrameLoader opened]):
182 (-[WebFrameLoader commitProvisionalLoad:]):
183 (-[WebFrameLoader _finishedLoading]):
184 (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
185 (-[WebFrameLoader _loadRequest:archive:]):
186 (-[WebFrameLoader reload]):
187 (-[WebFrameLoader documentLoader:mainReceivedCompleteError:]):
188 (-[WebFrameLoader subframeIsLoading]):
189 (-[WebFrameLoader checkNewWindowPolicyForRequest:action:frameName:formState:andCall:withSelector:]):
190 (-[WebFrameLoader continueAfterNewWindowPolicy:]):
191 (-[WebFrameLoader checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
192 (-[WebFrameLoader sendRemainingDelegateMessagesWithIdentifier:response:length:error:]):
193 (-[WebFrameLoader loadRequest:inFrameNamed:]):
194 (-[WebFrameLoader postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
195 (-[WebFrameLoader detachChildren]):
196 (-[WebFrameLoader detachFromParent]):
197 (-[WebFrameLoader addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
198 (-[WebFrameLoader safeLoadURL:]):
199 (-[WebFrameLoader actionInformationForLoadType:isFormSubmission:event:originalURL:]):
200 (-[WebFrameLoader actionInformationForNavigationType:event:originalURL:]):
201 (-[WebFrameLoader checkLoadComplete]):
202 * Loader/WebFrameLoaderClient.h:
203 * Loader/WebSubresourceLoader.m:
204 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
205 * WebCoreSupport/WebFrameBridge.m:
206 (-[WebFrameBridge close]):
207 (-[WebFrameBridge tokenizerProcessedData]):
208 (-[WebFrameBridge frameDetached]):
209 * WebView/WebDataSourceInternal.h:
210 * WebView/WebFrame.m:
211 (-[WebFrame _loadItem:withLoadType:]):
212 (-[WebFrame _prepareForDataSourceReplacement]):
213 (-[WebFrame _detachedFromParent1]):
214 (-[WebFrame _detachedFromParent2]):
215 (-[WebFrame _detachedFromParent3]):
216 (-[WebFrame _detachedFromParent4]):
217 (-[WebFrame _updateHistoryAfterClientRedirect]):
218 (-[WebFrame _loadedFromPageCache]):
219 * WebView/WebFrameInternal.h:
220 * WebView/WebPDFView.m:
221 (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
224 (-[WebView setDefersCallbacks:]):
226 2006-10-08 Maciej Stachowiak <mjs@apple.com>
230 - avoid need for WebKitSystemInterface in loader code, via WebCore cover for wkSupportsMultipartXMixedReplace
232 * Loader/WebDocumentLoader.m:
233 (-[WebDocumentLoader initWithRequest:]):
234 * Loader/WebMainResourceLoader.m:
235 * Loader/WebSubresourceLoader.m:
236 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
237 * WebCoreSupport/WebSystemInterface.m:
238 (InitWebCoreSystemInterface):
239 * WebView/WebDataSource.m:
240 (-[WebDataSource _initWithDocumentLoader:]):
242 2006-10-08 Darin Adler <darin@apple.com>
244 - build fix (also a fix for a crasher I forgot to commit before)
246 * Loader/WebFrameLoader.m: Added some missing includes.
247 (-[WebFrameLoader checkLoadCompleteForThisFrame]):
248 Added a needed retain/release.
250 2006-10-08 Darin Adler <darin@apple.com>
254 - quick fix to loader problem causing layout test failures
256 * Loader/WebFrameLoader.m:
257 (-[WebFrameLoader _finishedLoading]): Use a local variable for the bridge
258 that we retain/release.
259 (-[WebFrameLoader continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
262 2006-10-08 Maciej Stachowiak <mjs@apple.com>
266 - removed a few includes from WebFrameLoader, fixed up as appropriate
267 - segregated header includes into ones that need to go away to move the code and ones that don't
269 * Loader/WebFrameLoader.m:
270 (-[WebFrameLoader _privateBrowsingEnabled]):
271 (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
272 * Loader/WebFrameLoaderClient.h:
273 * WebView/WebFrame.m:
274 (-[WebFrame _privateBrowsingEnabled]):
276 2006-10-08 Darin Adler <darin@apple.com>
280 - moved a few methods from WebFrame to WebFrameLoader
282 * Loader/WebFrameLoader.h:
283 * Loader/WebFrameLoader.m:
284 (-[WebFrameLoader _setState:]):
285 (-[WebFrameLoader stopLoadingSubframes]):
286 (-[WebFrameLoader _receivedMainResourceError:complete:]):
287 (-[WebFrameLoader closeOldDataSources]):
288 (-[WebFrameLoader commitProvisionalLoad:]):
289 (-[WebFrameLoader _finishedLoading]):
290 (isBackForwardLoadType):
291 (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
292 (-[WebFrameLoader didFirstLayout]):
293 (-[WebFrameLoader frameLoadCompleted]):
294 (-[WebFrameLoader transitionToCommitted:]):
295 (-[WebFrameLoader checkLoadCompleteForThisFrame]):
296 (-[WebFrameLoader continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
297 (-[WebFrameLoader sendRemainingDelegateMessagesWithIdentifier:response:length:error:]):
298 (-[WebFrameLoader requestFromDelegateForRequest:identifier:error:]):
299 (-[WebFrameLoader loadRequest:inFrameNamed:]):
300 (-[WebFrameLoader postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
301 * Loader/WebFrameLoaderClient.h:
302 * Plugins/WebPluginController.m:
303 (-[WebPluginController webPlugInContainerLoadRequest:inFrame:]):
304 * WebCoreSupport/WebFrameBridge.h:
305 * WebCoreSupport/WebFrameBridge.m:
306 (-[WebFrameBridge initMainFrameWithPage:frameName:view:]):
307 (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]):
308 (-[WebFrameBridge dealloc]):
309 (-[WebFrameBridge frameLoader]):
310 (-[WebFrameBridge setTitle:]):
311 (-[WebFrameBridge receivedData:textEncodingName:]):
312 (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
313 (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
314 (-[WebFrameBridge objectLoadedFromCacheWithURL:response:data:]):
315 (-[WebFrameBridge syncLoadResourceWithMethod:URL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
316 (-[WebFrameBridge reportClientRedirectToURL:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
317 (-[WebFrameBridge reportClientRedirectCancelled:]):
318 (-[WebFrameBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]):
319 (-[WebFrameBridge postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
320 (-[WebFrameBridge didFirstLayout]):
321 (-[WebFrameBridge notifyIconChanged:]):
322 (-[WebFrameBridge originalRequestURL]):
323 (-[WebFrameBridge isLoadTypeReload]):
324 * WebView/WebFrame.m:
325 (-[WebFrame _opened]):
326 (-[WebFrame _checkLoadComplete]):
327 (-[WebFrame _loadItem:withLoadType:]):
328 (-[WebFrame _actionInformationForLoadType:isFormSubmission:event:originalURL:]):
329 (-[WebFrame _loadURL:referrer:intoChild:]):
330 (-[WebFrame _currentBackForwardListItemToResetTo]):
331 (-[WebFrame _updateBackground]):
332 (-[WebFrame _frameLoader]):
333 (-[WebFrame _frameLoadCompleted]):
334 (-[WebFrame _makeDocumentView]):
335 (-[WebFrame _updateHistoryForCommit]):
336 (-[WebFrame _updateHistoryForReload]):
337 (-[WebFrame _updateHistoryForStandardLoad]):
338 (-[WebFrame _updateHistoryForBackForwardNavigation]):
339 (-[WebFrame _updateHistoryForInternalLoad]):
340 (-[WebFrame _tokenForLoadErrorReset]):
341 (-[WebFrame _resetAfterLoadError:]):
342 (-[WebFrame _doNotResetAfterLoadError:]):
343 * WebView/WebFrameInternal.h:
345 2006-10-09 Mark Rowe <bdash@webkit.org>
347 Rubber-stamped by Darin.
349 * WebCoreSupport/WebFrameBridge.m:
350 (-[WebFrameBridge imageTitleForFilename:size:]): Revert accidental change to a UI_STRING that
351 is triggering an assertion failure.
353 2006-10-08 Maciej Stachowiak <mjs@apple.com>
357 - remove unneeded non-Loader header includes from WebFrameLoader.h (split WebFrameLoadType into
358 two coincidentally matching enums)
360 * Loader/WebFrameLoader.h:
361 * Loader/WebFrameLoader.m:
362 (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
363 (-[WebFrameLoader commitProvisionalLoad:]):
364 (isBackForwardLoadType):
365 (-[WebFrameLoader _loadRequest:archive:]):
366 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
367 (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
368 (-[WebFrameLoader reload]):
369 (-[WebFrameLoader isReplacing]):
370 (-[WebFrameLoader setReplacing]):
371 (-[WebFrameLoader loadType]):
372 (-[WebFrameLoader setLoadType:]):
373 (-[WebFrameLoader checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
374 (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
375 (-[WebFrameLoader loadDataSource:withLoadType:formState:]):
376 (-[WebFrameLoader didFirstLayout]):
377 * WebCoreSupport/WebFrameBridge.m:
378 * WebView/WebFrame.m:
379 (-[WebFrame _transitionToCommitted:]):
380 (-[WebFrame _provisionalLoadStarted]):
381 (-[WebFrame _opened]):
382 (-[WebFrame _checkLoadCompleteForThisFrame]):
383 (-[WebFrame _loadItem:withLoadType:]):
384 (-[WebFrame _recursiveGoToItem:fromItem:withLoadType:]):
385 (-[WebFrame _goToItem:withLoadType:]):
386 (-[WebFrame _actionInformationForLoadType:isFormSubmission:event:originalURL:]):
387 (-[WebFrame _continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
388 (-[WebFrame _loadURL:referrer:intoChild:]):
389 (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
390 (-[WebFrame _currentBackForwardListItemToResetTo]):
391 (-[WebFrame _itemForRestoringDocState]):
392 (-[WebFrame _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
393 (-[WebFrame _loadType]):
394 (-[WebFrame loadRequest:]):
395 * WebView/WebFrameInternal.h:
398 2006-10-08 Darin Adler <darin@apple.com>
402 - move WebFrameLoader creation and ownership from WebFrame to WebFrameBridge
404 * Loader/WebFrameLoader.m:
405 (-[WebFrameLoader stopLoadingSubframes]):
406 (-[WebFrameLoader closeOldDataSources]):
407 * WebCoreSupport/WebFrameBridge.h:
408 * WebCoreSupport/WebFrameBridge.m:
409 (-[WebFrameBridge initMainFrameWithPage:frameName:view:]):
410 (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]):
411 (-[WebFrameBridge dealloc]):
412 (-[WebFrameBridge loader]):
413 (-[WebFrameBridge setTitle:]):
414 (-[WebFrameBridge receivedData:textEncodingName:]):
415 (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
416 (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
417 (-[WebFrameBridge reportClientRedirectToURL:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
418 (-[WebFrameBridge reportClientRedirectCancelled:]):
419 (-[WebFrameBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]):
420 (-[WebFrameBridge didFirstLayout]):
421 (-[WebFrameBridge imageTitleForFilename:size:]):
422 (-[WebFrameBridge notifyIconChanged:]):
423 (-[WebFrameBridge originalRequestURL]):
424 (-[WebFrameBridge isLoadTypeReload]):
425 * WebView/WebFrame.m:
426 (-[NSView setWebFrame::]):
427 (-[WebFramePrivate dealloc]):
428 (-[WebFramePrivate setWebFrameView:]):
429 (-[WebFramePrivate setProvisionalItem:]):
430 (-[WebFrame _webDataRequestForData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
431 (-[WebFrame _createItem:]):
432 (-[WebFrame _createItemTreeWithTargetFrame:clippedAtTarget:]):
433 (-[WebFrame _detachFromParent]):
434 (-[WebFrame _makeDocumentView]):
435 (-[WebFrame _transitionToCommitted:]):
436 (-[WebFrame _provisionalLoadStarted]):
437 (-[WebFrame _opened]):
438 (-[WebFrame _checkLoadCompleteForThisFrame]):
439 (-[WebFrame _loadItem:withLoadType:]):
440 (-[WebFrame _recursiveGoToItem:fromItem:withLoadType:]):
441 (-[WebFrame _continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
442 (-[WebFrame _loadURL:referrer:intoChild:]):
443 (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
444 (-[WebFrame _setTitle:]):
445 (-[WebFrame _defersCallbacksChanged]):
446 (-[WebFrame _currentBackForwardListItemToResetTo]):
447 (-[WebFrame _itemForSavingDocState]):
448 (-[WebFrame _itemForRestoringDocState]):
449 (-[WebFrame _saveDocumentAndScrollState]):
450 (-[WebFrame _shouldTreatURLAsSameAsCurrent:]):
451 (-[WebFrame _loadRequest:inFrameNamed:]):
452 (-[WebFrame _initWithWebFrameView:webView:bridge:]):
453 (-[WebFrame _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
454 (-[WebFrame _frameLoader]):
455 (-[WebFrame _prepareForDataSourceReplacement]):
456 (-[WebFrame _restoreScrollPositionAndViewState]):
457 (-[WebFrame _firstLayoutDone]):
458 (-[WebFrame _loadType]):
459 (-[WebFrame frameView]):
460 (-[WebFrame provisionalDataSource]):
461 (-[WebFrame dataSource]):
462 (-[WebFrame loadRequest:]):
463 (-[WebFrame loadArchive:]):
464 (-[WebFrame stopLoading]):
465 (-[WebFrame reload]):
466 (-[WebFrame _resetBackForwardList]):
467 (-[WebFrame _invalidateCurrentItemPageCache]):
468 (-[WebFrame _provisionalItemIsTarget]):
469 (-[WebFrame _loadProvisionalItemFromPageCache]):
470 * WebView/WebFrameInternal.h:
472 2006-10-08 Maciej Stachowiak <mjs@apple.com>
476 - move remaining movable data fields from WebFrameLoader to WebFrame
478 * Loader/WebDocumentLoadState.m:
479 (-[WebDocumentLoadState commitIfReady]):
480 * Loader/WebFrameLoader.h:
481 * Loader/WebFrameLoader.m:
482 (-[WebFrameLoader provisionalLoadStarted]):
483 (-[WebFrameLoader _setState:]):
484 (-[WebFrameLoader stopLoadingSubframes]):
485 (-[WebFrameLoader stopLoading]):
486 (-[WebFrameLoader startLoading]):
487 (-[WebFrameLoader _receivedMainResourceError:complete:]):
488 (-[WebFrameLoader clientRedirectCancelledOrFinished:]):
489 (-[WebFrameLoader clientRedirectedTo:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
490 (-[WebFrameLoader shouldReloadForCurrent:andDestination:]):
491 (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
492 (-[WebFrameLoader continueFragmentScrollAfterNavigationPolicy:formState:]):
493 (-[WebFrameLoader closeOldDataSources]):
494 (-[WebFrameLoader commitProvisionalLoad:]):
495 (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
496 (-[WebFrameLoader isQuickRedirectComing]):
497 * Loader/WebFrameLoaderClient.h:
498 * WebCoreSupport/WebFrameBridge.h:
499 * WebCoreSupport/WebFrameBridge.m:
500 (-[WebFrameBridge frameLoader]):
501 (-[WebFrameBridge setTitle:]):
502 (-[WebFrameBridge reportClientRedirectToURL:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
503 (-[WebFrameBridge reportClientRedirectCancelled:]):
504 (-[WebFrameBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]):
505 * WebView/WebDataSource.m:
506 (-[WebDataSource _loadFromPageCache:]):
507 * WebView/WebFrame.m:
508 (-[NSView setWebFrame::]):
509 (-[WebFrame _addHistoryItemForFragmentScroll]):
510 (-[WebFrame _didFinishLoad]):
511 (-[WebFrame _provisionalLoadStarted]):
512 (-[WebFrame _checkLoadCompleteForThisFrame]):
513 (-[WebFrame _loadItem:withLoadType:]):
514 (-[WebFrame _loadURL:referrer:intoChild:]):
515 (-[WebFrame _frameLoadCompleted]):
516 (-[WebFrame stopLoading]):
517 (-[WebFrame _invalidateCurrentItemPageCache]):
518 * WebView/WebFrameInternal.h:
520 2006-10-08 Darin Adler <darin@apple.com>
522 Rubber stamped by Maciej.
524 - changed "document load state" to "document loader"
526 * Loader/WebDocumentLoadState.h: Removed.
527 * Loader/WebDocumentLoadState.m: Removed.
528 * Loader/WebDocumentLoader.h: Added.
529 * Loader/WebDocumentLoader.m: Added.
530 (-[WebDocumentLoader setMainDocumentError:]):
531 (-[WebDocumentLoader mainReceivedError:complete:]):
532 (-[WebDocumentLoader finishedLoading]):
533 (-[WebDocumentLoader commitLoadWithData:]):
534 (-[WebDocumentLoader setupForReplaceByMIMEType:]):
535 (-[WebDocumentLoader updateLoading]):
536 (-[WebDocumentLoader setTitle:]):
537 * Loader/WebFrameLoader.h:
538 * Loader/WebFrameLoader.m:
539 (-[WebFrameLoader dealloc]):
540 (-[WebFrameLoader activeDocumentLoader]):
541 (-[WebFrameLoader activeDataSource]):
542 (-[WebFrameLoader addPlugInStreamLoader:]):
543 (-[WebFrameLoader removePlugInStreamLoader:]):
544 (-[WebFrameLoader addSubresourceLoader:]):
545 (-[WebFrameLoader removeSubresourceLoader:]):
546 (-[WebFrameLoader dataSource]):
547 (-[WebFrameLoader setDocumentLoader:]):
548 (-[WebFrameLoader documentLoader]):
549 (-[WebFrameLoader policyDataSource]):
550 (-[WebFrameLoader setPolicyDocumentLoader:]):
551 (-[WebFrameLoader clearDataSource]):
552 (-[WebFrameLoader provisionalDataSource]):
553 (-[WebFrameLoader provisionalDocumentLoader]):
554 (-[WebFrameLoader setProvisionalDocumentLoader:]):
555 (-[WebFrameLoader _clearProvisionalDataSource]):
556 (-[WebFrameLoader _setState:]):
557 (-[WebFrameLoader clearProvisionalLoad]):
558 (-[WebFrameLoader commitProvisionalLoad]):
559 (-[WebFrameLoader stopLoading]):
560 (-[WebFrameLoader startLoading]):
561 (-[WebFrameLoader startProvisionalLoad:]):
562 (-[WebFrameLoader setupForReplace]):
563 (-[WebFrameLoader _didReceiveResponse:forResource:]):
564 (-[WebFrameLoader _originalRequest]):
565 (-[WebFrameLoader _receivedMainResourceError:complete:]):
566 (-[WebFrameLoader _receivedData:]):
567 (-[WebFrameLoader _setRequest:]):
568 (-[WebFrameLoader _isStopping]):
569 (-[WebFrameLoader _setupForReplaceByMIMEType:]):
570 (-[WebFrameLoader _setResponse:]):
571 (-[WebFrameLoader _mainReceivedError:complete:]):
572 (-[WebFrameLoader _finishedLoading]):
573 (-[WebFrameLoader _checkContentPolicyForMIMEType:andCall:withSelector:]):
574 (-[WebFrameLoader _loadRequest:archive:]):
575 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
576 (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
577 (-[WebFrameLoader reload]):
578 (-[WebFrameLoader finishedLoadingDocument:]):
579 (-[WebFrameLoader committedLoadWithDocumentLoader:data:]):
580 (-[WebFrameLoader revertToProvisionalWithDocumentLoader:]):
581 (-[WebFrameLoader documentLoader:setMainDocumentError:]):
582 (-[WebFrameLoader documentLoader:mainReceivedCompleteError:]):
583 (-[WebFrameLoader finalSetupForReplaceWithDocumentLoader:]):
584 (-[WebFrameLoader willChangeTitleForDocument:]):
585 (-[WebFrameLoader didChangeTitleForDocument:]):
586 (-[WebFrameLoader checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
587 (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
588 (-[WebFrameLoader loadDataSource:withLoadType:formState:]):
589 * Plugins/WebPluginController.m:
590 (-[WebPluginController pluginView:receivedResponse:]):
591 * WebCoreSupport/WebFrameBridge.m:
592 (-[WebFrameBridge setTitle:]):
593 (-[WebFrameBridge receivedData:textEncodingName:]):
594 * WebKit.xcodeproj/project.pbxproj:
595 * WebView/WebDataSource.m:
596 (-[WebDataSourcePrivate dealloc]):
597 (-[WebDataSource _mainDocumentError]):
598 (-[WebDataSource _loadFromPageCache:]):
599 (-[WebDataSource _bridge]):
600 (-[WebDataSource _webView]):
601 (-[WebDataSource _URLForHistory]):
602 (-[WebDataSource _documentLoader]):
603 (-[WebDataSource _initWithDocumentLoader:]):
604 (-[WebDataSource initWithRequest:]):
605 (-[WebDataSource dealloc]):
606 (-[WebDataSource data]):
607 (-[WebDataSource webFrame]):
608 (-[WebDataSource initialRequest]):
609 (-[WebDataSource request]):
610 (-[WebDataSource response]):
611 (-[WebDataSource textEncodingName]):
612 (-[WebDataSource isLoading]):
613 (-[WebDataSource unreachableURL]):
614 (-[WebDataSource webArchive]):
615 * WebView/WebDataSourceInternal.h:
616 * WebView/WebDocumentLoadStateMac.h: Removed.
617 * WebView/WebDocumentLoadStateMac.m: Removed.
618 * WebView/WebDocumentLoaderMac.h: Added.
619 * WebView/WebDocumentLoaderMac.m: Added.
620 * WebView/WebFrame.m:
621 (-[WebFrame _createItem:]):
622 (-[WebFrame _receivedMainResourceError:]):
623 (-[WebFrame _transitionToCommitted:]):
624 (-[WebFrame _opened]):
625 (-[WebFrame _checkLoadCompleteForThisFrame]):
626 (-[WebFrame _loadItem:withLoadType:]):
627 (-[WebFrame _continueFragmentScrollAfterNavigationPolicy:formState:]):
628 (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
629 (-[WebFrame _addChild:]):
630 (-[WebFrame _provisionalLoadStarted]):
631 (-[WebFrame _dataSourceForDocumentLoader:]):
632 (-[WebFrame _createDocumentLoaderWithRequest:]):
633 * WebView/WebFrameInternal.h:
634 * WebView/WebHTMLRepresentation.m:
635 (-[WebHTMLRepresentation title]):
637 (-[WebView _mainFrameOverrideEncoding]):
639 2006-10-08 Darin Adler <darin@apple.com>
643 - fix http://bugs.webkit.org/show_bug.cgi?id=11218
644 REGRESSION: Assertion failure in WebFrameLoader when going back from a file: or data: URL
646 Also added a helper function in WebFrameLoader so that checks for back/forward load types
649 * Loader/WebFrameLoader.m:
650 (-[WebFrameLoader _setPolicyDocumentLoadState:]): Fixed line of code that was setting the load
651 state to nil instead of the passed-in object.
652 (isBackForwardLoadType): Added.
653 (-[WebFrameLoader shouldReloadToHandleUnreachableURLFromRequest:]): Use isBackForwardLoadType.
654 (-[WebFrameLoader checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
656 (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]): Ditto.
658 2006-10-08 Darin Adler <darin@apple.com>
662 - fix two recently introduced leaks: one of an NSString, the other of a WebDataSource
664 * Loader/WebDocumentLoadState.m: (-[WebDocumentLoadState setTitle:]):
665 Rearranged code to avoid storage leak in case of identical title.
667 * Loader/WebFrameLoader.h: Removed _setPolicyDocumentLoadState: method
669 * Loader/WebFrameLoader.m:
670 (-[WebFrameLoader _setPolicyDocumentLoadState:]): Added logic to call detachFromFrameLoader
671 as needed if this load state is going away rather than moving on to become the provisional
673 (-[WebFrameLoader shouldReloadToHandleUnreachableURLFromRequest:]): Tweaked formatting.
674 (-[WebFrameLoader _loadRequest:archive:]): Added an assertion.
675 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]): Added an assertion.
676 (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]): Added an assertion.
677 (-[WebFrameLoader reload]): Added an assertion.
678 (-[WebFrameLoader loadDataSource:withLoadType:formState:]): Added a local variable to avoid
679 calling _documentLoadState over and over again.
681 2006-10-07 Don Gibson <dgibson77@gmail.com>
683 Reviewed/landed by Adam.
685 http://bugs.webkit.org/show_bug.cgi?id=11199
686 Update Session History when a load is committed rather than completed.
689 (WebFrame::receivedResponse):
690 (WebFrame::receivedAllData):
692 2006-10-07 Sam Weinig <sam.weinig@gmail.com>
696 Patch for http://bugs.webkit.org/show_bug.cgi?id=11198
697 Auto-generate a few more Objective-C DOM interfaces
699 * MigrateHeaders.make:
701 2006-10-07 Mark Rowe <bdash@webkit.org>
705 Fix memory leak from -[WebDocumentLoadState setTitle:].
707 * Loader/WebDocumentLoadState.m:
708 (-[WebDocumentLoadState setTitle:]): Ensure 'trimmed' is released even when length is
709 zero, and untangle the confusing logic around this case.
711 2006-10-06 Brady Eidson <beidson@apple.com>
715 Refactored a whole bunch of WebFramePrivate.h SPI to WebFrameInternal
717 * DefaultDelegates/WebDefaultContextMenuDelegate.m:
718 * History/WebHistoryItem.m:
719 * Loader/WebFrameLoader.h:
720 * Misc/WebCoreStatistics.m:
721 * Misc/WebElementDictionary.m:
722 * Plugins/WebNetscapePluginEmbeddedView.m:
723 * Plugins/WebPluginController.m:
724 * WebCoreSupport/WebViewFactory.m:
725 * WebView/WebArchiver.m:
726 * WebView/WebDataSource.m:
727 * WebView/WebFrame.m:
728 (-[WebFrame _isDescendantOfFrame:]):
729 (-[WebFrame _setShouldCreateRenderers:]):
730 (-[WebFrame _bodyBackgroundColor]):
731 (-[WebFrame _isFrameSet]):
732 (-[WebFrame _firstLayoutDone]):
733 (-[WebFrame _loadType]):
734 * WebView/WebFrameInternal.h:
735 * WebView/WebFramePrivate.h:
736 * WebView/WebHTMLRepresentation.m:
737 * WebView/WebScriptDebugDelegate.m:
739 2006-10-06 Maciej Stachowiak <mjs@apple.com>
743 - Move all delegate dispatching code out of WebDataSource.
745 * Loader/WebFrameLoader.m:
746 (-[WebFrameLoader startLoading]):
747 (-[WebFrameLoader _identifierForInitialRequest:]):
748 (-[WebFrameLoader _willSendRequest:forResource:redirectResponse:]):
749 (-[WebFrameLoader _didReceiveAuthenticationChallenge:forResource:]):
750 (-[WebFrameLoader _didCancelAuthenticationChallenge:forResource:]):
751 (-[WebFrameLoader _didReceiveResponse:forResource:]):
752 (-[WebFrameLoader _didReceiveData:contentLength:forResource:]):
753 (-[WebFrameLoader _didFinishLoadingForResource:]):
754 (-[WebFrameLoader _didFailLoadingWithError:forResource:]):
755 (-[WebFrameLoader _receivedMainResourceError:complete:]):
756 (-[WebFrameLoader _downloadWithLoadingConnection:request:response:proxy:]):
757 (-[WebFrameLoader _checkContentPolicyForMIMEType:andCall:withSelector:]):
758 * WebView/WebDataSource.m:
759 (-[WebDataSource _setLoadingFromPageCache:]):
760 (-[WebDataSource _stopLoadingWithError:]):
761 * WebView/WebDataSourceInternal.h:
763 2006-10-06 Darin Adler <darin@apple.com>
767 - moved firstLayoutDone BOOL from WebFrame to WebFrameLoader
769 * Loader/WebFrameLoader.h:
770 * Loader/WebFrameLoader.m:
771 (-[WebFrameLoader didFirstLayout]):
772 (-[WebFrameLoader provisionalLoadStarted]):
773 (-[WebFrameLoader frameLoadCompleted]):
774 (-[WebFrameLoader firstLayoutDone]):
775 * WebCoreSupport/WebFrameBridge.m: (-[WebFrameBridge didFirstLayout]):
776 * WebView/WebFrame.m:
777 (-[WebFrame _firstLayoutDone]):
778 (-[WebFrame _provisionalLoadStarted]):
779 (-[WebFrame _frameLoadCompleted]):
780 (-[WebFrame _restoreScrollPositionAndViewState]):
781 * WebView/WebFrameInternal.h:
783 2006-10-06 Darin Adler <darin@apple.com>
787 - moved more data and the corresponding code from WebFrame to WebFrameLoader
789 * Loader/WebFrameLoader.h:
790 * Loader/WebFrameLoader.m:
791 (-[WebFrameLoader cannotShowMIMETypeForURL:]):
792 (-[WebFrameLoader _checkNavigationPolicyForRequest:andCall:withSelector:]):
793 (-[WebFrameLoader shouldReloadToHandleUnreachableURLFromRequest:]):
794 (-[WebFrameLoader _loadRequest:archive:]):
795 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
796 (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
797 (-[WebFrameLoader reload]):
798 (-[WebFrameLoader invalidatePendingPolicyDecisionCallingDefaultAction:]):
799 (-[WebFrameLoader checkNewWindowPolicyForRequest:action:frameName:formState:andCall:withSelector:]):
800 (-[WebFrameLoader _continueAfterNewWindowPolicy:]):
801 (-[WebFrameLoader checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
802 (-[WebFrameLoader continueAfterNavigationPolicy:]):
803 (-[WebFrameLoader continueAfterWillSubmitForm:]):
804 (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
805 (-[WebFrameLoader loadDataSource:withLoadType:formState:]):
806 (-[WebFrameLoader handleUnimplementablePolicyWithErrorCode:forURL:]):
807 (-[WebFrameLoader delegateIsHandlingProvisionalLoadError]):
808 (-[WebFrameLoader setDelegateIsHandlingProvisionalLoadError:]):
809 * Loader/WebFrameLoaderClient.h:
810 * WebView/WebFrame.m:
811 (-[NSView setWebFrame::]):
812 (-[WebFramePrivate dealloc]):
813 (-[WebFrame _checkLoadCompleteForThisFrame]):
814 (-[WebFrame _loadItem:withLoadType:]):
815 (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
816 (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
817 (-[WebFrame _loadRequest:inFrameNamed:]):
818 (-[WebFrame stopLoading]):
819 (-[WebFrame _resetBackForwardList]):
820 (-[WebFrame _quickRedirectComing]):
821 (-[WebFrame _provisionalItemIsTarget]):
822 (-[WebFrame _loadProvisionalItemFromPageCache]):
823 * WebView/WebFrameInternal.h:
824 * WebView/WebFramePrivate.h:
826 * WebKit.xcodeproj/project.pbxproj:
828 2006-10-06 Maciej Stachowiak <mjs@apple.com>
830 Rubber stamped by Darin.
832 - removed includes of unused headers.
834 * WebView/WebDataSource.m:
836 2006-10-06 Maciej Stachowiak <mjs@apple.com>
842 * Loader/WebFrameLoader.m:
843 (-[WebFrameLoader willChangeTitleForDocumentLoadState:]):
844 (-[WebFrameLoader didChangeTitleForDocumentLoadState:]):
846 2006-10-06 Maciej Stachowiak <mjs@apple.com>
850 - move remaining movable WebDataSource fields to WebDocumentLoadState
852 * Loader/WebDocumentLoadState.h:
853 * Loader/WebDocumentLoadState.m:
854 (-[WebDocumentLoadState dealloc]):
855 (-[WebDocumentLoadState isLoadingInAPISense]):
856 (-[WebDocumentLoadState addResponse:]):
857 (-[WebDocumentLoadState stopRecordingResponses]):
858 (-[WebDocumentLoadState title]):
859 (-[WebDocumentLoadState setLastCheckedRequest:]):
860 (-[WebDocumentLoadState lastCheckedRequest]):
861 (-[WebDocumentLoadState triggeringAction]):
862 (-[WebDocumentLoadState setTriggeringAction:]):
863 (-[WebDocumentLoadState responses]):
864 (-[WebDocumentLoadState setOverrideEncoding:]):
865 (-[WebDocumentLoadState overrideEncoding]):
866 (-[WebDocumentLoadState setTitle:]):
867 * Loader/WebFrameLoader.h:
868 * Loader/WebFrameLoader.m:
869 (-[WebFrameLoader _setState:]):
870 (-[WebFrameLoader _loadRequest:archive:]):
871 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
872 (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
873 (-[WebFrameLoader reload]):
874 (-[WebFrameLoader willChangeTitleForDocumentLoadState:]):
875 (-[WebFrameLoader didChangeTitleForDocumentLoadState:]):
876 * WebCoreSupport/WebFrameBridge.m:
877 (-[WebFrameBridge setTitle:]):
878 (-[WebFrameBridge receivedData:textEncodingName:]):
879 * WebView/WebDataSource.m:
880 (-[WebDataSourcePrivate dealloc]):
881 (-[WebDataSource _didReceiveResponse:forResource:]):
882 (-[WebDataSource textEncodingName]):
883 * WebView/WebDataSourceInternal.h:
884 * WebView/WebFrame.m:
885 (-[WebFrame _opened]):
886 (-[WebFrame _checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
887 (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
888 (-[WebFrame _addChild:]):
889 (-[WebFrame _loadDataSource:withLoadType:formState:]):
890 * WebView/WebHTMLRepresentation.m:
891 (-[WebHTMLRepresentation title]):
893 (-[WebView _mainFrameOverrideEncoding]):
895 2006-10-06 Darin Adler <darin@apple.com>
899 - moved loadType into WebFrameLoader
901 * WebView/WebFramePrivate.h: Removed _setLoadType, but not _loadType because it's
902 currently used by Safari.
904 * Loader/WebFrameLoader.h:
905 * Loader/WebFrameLoader.m:
906 (-[WebFrameLoader _loadRequest:archive:]):
907 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
908 (-[WebFrameLoader isReplacing]):
909 (-[WebFrameLoader setReplacing]):
910 (-[WebFrameLoader loadType]):
911 (-[WebFrameLoader setLoadType:]):
912 * WebCoreSupport/WebFrameBridge.m:
913 (-[WebFrameBridge isLoadTypeReload]):
914 * WebView/WebFrame.m:
915 (-[WebFrame _loadType]):
916 (-[WebFrame _transitionToCommitted:]):
917 (-[WebFrame _commitProvisionalLoad:]):
918 (-[WebFrame _opened]):
919 (-[WebFrame _checkLoadCompleteForThisFrame]):
920 (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
921 (-[WebFrame _loadURL:referrer:intoChild:]):
922 (-[WebFrame _currentBackForwardListItemToResetTo]):
923 (-[WebFrame _itemForRestoringDocState]):
924 (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
925 (-[WebFrame _didFirstLayout]):
926 (-[WebFrame _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
927 (-[WebFrame _provisionalLoadStarted]):
928 (-[WebFrame loadRequest:]):
930 2006-10-06 Darin Adler <darin@apple.com>
934 - added WebFrameLoaderClient protocol -- to be used to make WebFrameLoader forget all about WebFrame
936 * Loader/WebDocumentLoadState.h: Added comment about Maciej's planned renaming here.
937 * Loader/WebFrameLoader.h:
938 * Loader/WebFrameLoader.m: Renamed webFrame to client and added the new protocol.
939 Eventually we'll be removing the dependency on WebFrame entirely.
940 * WebView/WebFrame.m: (-[WebFrame _initWithWebFrameView:webView:bridge:]): Update to call the method
943 * Loader/WebFrameLoaderClient.h: Added.
944 * WebKit.xcodeproj/project.pbxproj: Updated for new file, sorted things.
946 2006-10-06 Maciej Stachowiak <mjs@apple.com>
950 - segregate WebFrame methods into ones that should be moved into WebFrameLoader and ones that don't need to
952 Also removed useless WebFrameLoader part
954 * WebView/WebFrame.m:
955 (-[WebFramePrivate dealloc]):
957 2006-10-06 Maciej Stachowiak <mjs@apple.com>
961 - moved more data from WebDataSource to WebDocumentLoadState
963 * Loader/WebDocumentLoadState.h:
964 * Loader/WebDocumentLoadState.m:
965 (-[WebDocumentLoadState commitLoadWithData:]):
966 (-[WebDocumentLoadState prepareForLoadStart]):
967 (-[WebDocumentLoadState loadingStartedTime]):
968 (-[WebDocumentLoadState setIsClientRedirect:]):
969 (-[WebDocumentLoadState isClientRedirect]):
970 (-[WebDocumentLoadState setPrimaryLoadComplete:]):
971 (-[WebDocumentLoadState isLoadingInAPISense]):
972 * Loader/WebFrameLoader.h:
973 * Loader/WebFrameLoader.m:
974 (-[WebFrameLoader _setState:]):
975 (-[WebFrameLoader _finishedLoading]):
976 (-[WebFrameLoader documentLoadState:mainReceivedCompleteError:]):
977 (-[WebFrameLoader prepareForLoadStart]):
978 (-[WebFrameLoader subframeIsLoading]):
979 * WebView/WebDataSource.m:
980 (-[WebDataSource _fileWrapperForURL:]):
981 (-[WebDataSource _startLoading]):
982 (-[WebDataSource _loadFromPageCache:]):
983 (-[WebDataSource isLoading]):
984 * WebView/WebDataSourceInternal.h:
985 * WebView/WebFrame.m:
986 (-[WebFrame _transitionToCommitted:]):
987 (-[WebFrame _opened]):
988 (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
990 2006-10-06 Alexey Proskuryakov <ap@nypop.com>
994 http://bugs.webkit.org/show_bug.cgi?id=11183
995 REGRESSION: Safari loads error pages unstyled
997 * WebView/WebFrame.m:
998 (-[WebFrame _loadHTMLString:baseURL:unreachableURL:]):
999 Use utf-8 encoding instead of the string's "fastest" encoding.
1001 2006-10-06 Maciej Stachowiak <mjs@apple.com>
1005 - fixed the following bugs:
1007 http://bugs.webkit.org/show_bug.cgi?id=11136
1008 "REGRESSION: Safari snippet editor doesn't work"
1009 http://bugs.webkit.org/show_bug.cgi?id=11140
1010 "REGRESSION: view source window blank"
1011 http://bugs.webkit.org/show_bug.cgi?id=11146
1012 "REGRESSION: Instead of showing the error page, Safari opens its Resources folder in the Finder"
1016 * Loader/WebDocumentLoadState.h:
1017 * Loader/WebDocumentLoadState.m:
1018 (-[WebDocumentLoadState actualRequest]): New method.
1019 * WebView/WebDataSource.m:
1020 (-[WebDataSource _startLoading]): We need to make sure not to start loading the main
1021 resource with the fake external request for an applewebdata: request.
1023 2006-10-05 Adele Peterson <adele@apple.com>
1025 Reviewed by the letter 'B'.
1029 * WebKit.xcodeproj/project.pbxproj:
1030 * WebView/WebDynamicScrollBarsView.h:
1031 * WebView/WebDynamicScrollBarsView.m:
1032 (-[WebDynamicScrollBarsView updateScrollers]):
1033 (-[WebDynamicScrollBarsView setAllowsScrolling:]):
1034 (-[WebDynamicScrollBarsView allowsScrolling]):
1035 (-[WebDynamicScrollBarsView setAllowsHorizontalScrolling:]):
1036 (-[WebDynamicScrollBarsView setAllowsVerticalScrolling:]):
1037 (-[WebDynamicScrollBarsView allowsHorizontalScrolling]):
1038 (-[WebDynamicScrollBarsView allowsVerticalScrolling]):
1039 (-[WebDynamicScrollBarsView horizontalScrollingMode]):
1040 (-[WebDynamicScrollBarsView verticalScrollingMode]):
1041 (-[WebDynamicScrollBarsView setHorizontalScrollingMode:]):
1042 (-[WebDynamicScrollBarsView setVerticalScrollingMode:]):
1043 (-[WebDynamicScrollBarsView setScrollingMode:]):
1044 * WebView/WebView.m:
1045 (-[WebView setAlwaysShowVerticalScroller:]):
1046 (-[WebView alwaysShowVerticalScroller]):
1047 (-[WebView setAlwaysShowHorizontalScroller:]):
1048 (-[WebView alwaysShowHorizontalScroller]):
1050 2006-10-05 Vladimir Olexa <vladimir.olexa@gmail.com>
1052 Reviewed by Timothy.
1054 Bug: http://bugs.webkit.org/show_bug.cgi?id=9887
1055 Continuous spell checking now remembers user's setting. The change is applied globally,
1056 meaning, both TextArea and TextField are affected when either of them enables/disables
1059 * WebView/WebPreferenceKeysPrivate.h: added a define for WebContinuousSpellCheckingEnabled
1060 * WebView/WebView.m:
1061 (-[WebViewPrivate init]): reads WebContinuousSpellCheckingEnabled from NSUserDefaults
1062 (-[WebView setContinuousSpellCheckingEnabled:]):
1063 (-[WebView isContinuousSpellCheckingEnabled]):
1065 2006-10-05 MorganL <morganl.webkit@yahoo.com>
1069 Fixes http://bugs.webkit.org/show_bug.cgi?id=11162
1072 (WebFrame::loadDataSource):
1073 (WebFrame::receivedResponse):
1075 2006-10-05 Don Gibson <dgibson77@gmail.com>
1077 Reviewed by Darin, landed by Adam.
1079 http://bugs.webkit.org/show_bug.cgi?id=11176
1080 Fix win32 build, adapt to Maciej's ResourceLoader changes.
1083 (WebFrame::loadDataSource):
1085 2006-10-05 Marvin Decker <marv.decker@gmail.com>
1089 http://bugs.webkit.org/show_bug.cgi?id=10989
1090 Provide a way for embedders to implement BrowserExtensionWin
1092 * COM/Interfaces/IWebUIDelegate.idl:
1094 (WebFrame::createNewWindow):
1097 2006-10-04 Mark Rowe <bdash@webkit.org>
1099 Reviewed by NOBODY (build fix).
1101 * WebView/WebView.m:
1102 (-[WebView scrollDOMRangeToVisible:]): Move scrollDOMRangeToVisible: into the correct category.
1104 2006-09-26 David Smith <catfish.man@gmail.com>
1106 Reviewed by Timothy.
1108 http://bugs.webkit.org/show_bug.cgi?id=3723
1109 Add -scrollDOMRangeToVisible:
1111 * WebView/WebView.m:
1112 (-[WebView scrollDOMRangeToVisible:]):
1113 * WebView/WebViewPrivate.h:
1115 2006-10-03 Graham Dennis <graham.dennis@gmail.com>
1117 Reviewed by Timothy.
1119 <http://bugs.webkit.org/show_bug.cgi?id=10338>
1120 When contentEditable, cursor doesn't change to hand
1122 Allow the behaviour of editable links to be specified by a WebPreference
1123 The preference WebKitEditableLinkBehavior has four options:
1124 - AlwaysLive: Safari 2.0 behaviour
1125 - OnlyLiveWithShiftKey: Firefox/WinIE behaviour (and prior WebKit-ToT behaviour)
1126 - LiveWhenNotFocused: Editable links are live only when their editable block is not
1127 focused, or when the shift key is pressed
1128 - DefaultBehavior: This is the same as OnlyLiveWithShiftKey.
1130 No layout tests, just a modification of a manual-test as it isn't possible to test
1133 * WebView/WebPreferenceKeysPrivate.h:
1134 * WebView/WebPreferences.m:
1135 (+[WebPreferences initialize]):
1136 (-[WebPreferences editableLinkBehavior]):
1137 (-[WebPreferences setEditableLinkBehavior:]):
1138 * WebView/WebPreferencesPrivate.h:
1139 * WebView/WebView.m:
1140 (-[WebView _updateWebCoreSettingsFromPreferences:]):
1142 2006-10-03 Justin Garcia <justin.garcia@apple.com>
1144 Reviewed by harrison
1146 execCommand("Cut"/"Copy"/"Paste") broken in editable subframes.
1148 * WebCoreSupport/WebFrameBridge.m:
1149 (-[WebFrameBridge issueCutCommand]): Issue the command on the WebHTMLView, not the WebView.
1150 (-[WebFrameBridge issueCopyCommand]): Ditto.
1151 (-[WebFrameBridge issuePasteCommand]): Ditto.
1152 (-[WebFrameBridge issuePasteAndMatchStyleCommand]): Ditto.
1153 (-[WebFrameBridge issueTransposeCommand]): Fixed formatting.
1154 (-[WebFrameBridge canPaste]): Ask the WebHTMLView, not the WebView.
1155 * WebView/WebHTMLView.m:
1156 (-[WebHTMLView copy:]): Moved to WebInternal
1157 (-[WebHTMLView cut:]): Ditto.
1158 (-[WebHTMLView paste:]): Ditto.
1159 (-[WebHTMLView pasteAsPlainText:]): Ditto.
1160 * WebView/WebHTMLViewInternal.h:
1161 * WebView/WebView.m: Removed the now unused _canPaste.
1162 * WebView/WebViewInternal.h: Ditto.
1164 2006-10-03 Justin Garcia <justin.garcia@apple.com>
1168 <rdar://problem/4763519> REGRESSION: Multipart/x-mixed-replace sub-resources fail to load
1170 * Loader/WebSubresourceLoader.m:
1171 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
1172 Enable multipart/x-mixed-replace support on the request. This line was accidently removed during
1173 some loader refactoring.
1175 2006-10-02 Adam Roben <aroben@apple.com>
1179 Add message paramter to WebView::mouse* methods to pass down to
1183 (WebView::mouseMoved):
1184 (WebView::mouseDown):
1186 (WebView::mouseDoubleClick):
1190 2006-10-02 Maciej Stachowiak <mjs@apple.com>
1194 - take away direct knowledge of WebFrame from WebDataSource
1196 * Loader/WebDocumentLoadState.h:
1197 * Loader/WebDocumentLoadState.m:
1198 (-[WebDocumentLoadState setFrameLoader:]):
1199 (-[WebDocumentLoadState detachFromFrameLoader]):
1200 * Loader/WebFrameLoader.m:
1201 (-[WebFrameLoader _setDocumentLoadState:]):
1202 (-[WebFrameLoader _setProvisionalDocumentLoadState:]):
1203 * WebView/WebDataSource.m:
1204 * WebView/WebDataSourceInternal.h:
1205 * WebView/WebDocumentLoadStateMac.m:
1206 (-[WebDocumentLoadStateMac detachFromFrameLoader]):
1207 * WebView/WebFrame.m:
1208 (-[WebFrame _loadDataSource:withLoadType:formState:]):
1210 2006-10-02 Maciej Stachowiak <mjs@apple.com>
1214 - move a big slice of data and logic from WebDataSource to WebDocumentLoadState
1216 * Loader/WebDocumentLoadState.h:
1217 * Loader/WebDocumentLoadState.m:
1218 (-[WebDocumentLoadState initWithRequest:]):
1219 (-[WebDocumentLoadState dealloc]):
1220 (-[WebDocumentLoadState originalRequestCopy]):
1221 (-[WebDocumentLoadState request]):
1222 (-[WebDocumentLoadState replaceRequestURLForAnchorScrollWithURL:]):
1223 (-[WebDocumentLoadState setRequest:]):
1224 (-[WebDocumentLoadState setResponse:]):
1225 (-[WebDocumentLoadState isStopping]):
1226 (-[WebDocumentLoadState bridge]):
1227 (-[WebDocumentLoadState setMainDocumentError:]):
1228 (-[WebDocumentLoadState mainDocumentError]):
1229 (-[WebDocumentLoadState clearErrors]):
1230 (-[WebDocumentLoadState mainReceivedError:complete:]):
1231 (-[WebDocumentLoadState stopLoading]):
1232 (-[WebDocumentLoadState setupForReplace]):
1233 (-[WebDocumentLoadState commitIfReady]):
1234 (-[WebDocumentLoadState finishedLoading]):
1235 (-[WebDocumentLoadState setCommitted:]):
1236 (-[WebDocumentLoadState isCommitted]):
1237 (-[WebDocumentLoadState setLoading:]):
1238 (-[WebDocumentLoadState isLoading]):
1239 (-[WebDocumentLoadState commitLoadWithData:]):
1240 (-[WebDocumentLoadState doesProgressiveLoadWithMIMEType:]):
1241 (-[WebDocumentLoadState receivedData:]):
1242 (-[WebDocumentLoadState setupForReplaceByMIMEType:]):
1243 (-[WebDocumentLoadState updateLoading]):
1244 (-[WebDocumentLoadState response]):
1245 * Loader/WebFrameLoader.h:
1246 * Loader/WebFrameLoader.m:
1247 (-[WebFrameLoader activeDocumentLoadState]):
1248 (-[WebFrameLoader activeDataSource]):
1249 (-[WebFrameLoader _archivedSubresourceForURL:]):
1250 (-[WebFrameLoader addPlugInStreamLoader:]):
1251 (-[WebFrameLoader removePlugInStreamLoader:]):
1252 (-[WebFrameLoader addSubresourceLoader:]):
1253 (-[WebFrameLoader removeSubresourceLoader:]):
1254 (-[WebFrameLoader documentLoadState]):
1255 (-[WebFrameLoader provisionalDocumentLoadState]):
1256 (-[WebFrameLoader stopLoading]):
1257 (-[WebFrameLoader _originalRequest]):
1258 (-[WebFrameLoader _receivedData:]):
1259 (-[WebFrameLoader _setRequest:]):
1260 (-[WebFrameLoader bridge]):
1261 (-[WebFrameLoader _handleFallbackContent]):
1262 (-[WebFrameLoader _isStopping]):
1263 (-[WebFrameLoader _setupForReplaceByMIMEType:]):
1264 (-[WebFrameLoader _setResponse:]):
1265 (-[WebFrameLoader _mainReceivedError:complete:]):
1266 (-[WebFrameLoader _finishedLoading]):
1267 (-[WebFrameLoader didReceiveServerRedirectForProvisionalLoadForFrame]):
1268 (-[WebFrameLoader finishedLoadingDocumentLoadState:]):
1269 (-[WebFrameLoader commitProvisitionalLoad]):
1270 (-[WebFrameLoader committedLoadWithDocumentLoadState:data:]):
1271 (-[WebFrameLoader isReplacing]):
1272 (-[WebFrameLoader setReplacing]):
1273 (-[WebFrameLoader revertToProvisionalWithDocumentLoadState:]):
1274 (-[WebFrameLoader documentLoadState:setMainDocumentError:]):
1275 (-[WebFrameLoader documentLoadState:mainReceivedCompleteError:]):
1276 (-[WebFrameLoader finalSetupForReplaceWithDocumentLoadState:]):
1277 * WebView/WebDataSource.m:
1278 (-[WebDataSourcePrivate dealloc]):
1279 (-[WebDataSource _prepareForLoadStart]):
1280 (-[WebDataSource _mainDocumentError]):
1281 (-[WebDataSource _finishedLoading]):
1282 (-[WebDataSource _receivedData:]):
1283 (-[WebDataSource _setMainDocumentError:]):
1284 (-[WebDataSource _clearUnarchivingState]):
1285 (-[WebDataSource _revertToProvisionalState]):
1286 (-[WebDataSource _receivedMainResourceError:complete:]):
1287 (-[WebDataSource _startLoading]):
1288 (-[WebDataSource _loadFromPageCache:]):
1289 (-[WebDataSource _bridge]):
1290 (-[WebDataSource _setPrimaryLoadComplete:]):
1291 (-[WebDataSource _URLForHistory]):
1292 (-[WebDataSource _setTitle:]):
1293 (-[WebDataSource _initWithDocumentLoadState:]):
1294 (-[WebDataSource request]):
1295 (-[WebDataSource response]):
1296 (-[WebDataSource isLoading]):
1297 (-[WebDataSource webArchive]):
1298 * WebView/WebDataSourceInternal.h:
1299 * WebView/WebDocumentLoadStateMac.m:
1300 (-[WebDocumentLoadStateMac initWithRequest:]):
1301 * WebView/WebFrame.m:
1302 (-[WebFrame _createItem:]):
1303 (-[WebFrame _receivedMainResourceError:]):
1304 (-[WebFrame _transitionToCommitted:]):
1305 (-[WebFrame _commitProvisionalLoad:]):
1306 (-[WebFrame _checkLoadCompleteForThisFrame]):
1307 (-[WebFrame _loadItem:withLoadType:]):
1308 (-[WebFrame _continueFragmentScrollAfterNavigationPolicy:formState:]):
1309 (-[WebFrame _didReceiveServerRedirectForProvisionalLoadForFrame]):
1310 (-[WebFrame _provisionalLoadStarted]):
1311 * WebView/WebFrameInternal.h:
1313 2006-10-02 Justin Garcia <justin.garcia@apple.com>
1317 <rdar://problem/4757583>
1318 REGRESSION: tabbing into page focuses wrong control on 2nd pass
1319 <rdar://problem/4757594>
1320 REGRESSION: Form field is left with secondary selection after tabbing out of WebView
1322 * WebView/WebHTMLView.m:
1323 (-[NSArray maintainsInactiveSelection]): Replace code that I removed in error in the patch
1324 for 9642. Only leave inactive editable selections in the WebHTMLView if the nextResponder
1325 is in the same WebView.
1327 2006-10-02 Maciej Stachowiak <mjs@apple.com>
1331 - remove webFrame field from WebDataSourcePrivate, it can get it from WebDocumentLoadState now
1333 * Loader/WebDocumentLoadState.h:
1334 * Loader/WebDocumentLoadState.m:
1335 (-[WebDocumentLoadState frameLoader]):
1336 * WebView/WebDataSource.m:
1337 (-[WebDataSourcePrivate dealloc]):
1338 (-[WebDataSource _revertToProvisionalState]):
1339 (-[WebDataSource _setupForReplaceByMIMEType:]):
1340 (-[WebDataSource _updateLoading]):
1341 (-[WebDataSource _startLoading]):
1342 (-[WebDataSource _setWebFrame:]):
1343 (-[WebDataSource _defersCallbacksChanged]):
1344 (-[WebDataSource _stopLoading]):
1345 (-[WebDataSource _webView]):
1346 (-[WebDataSource _stopLoadingWithError:]):
1347 (-[WebDataSource _setPrimaryLoadComplete:]):
1348 (-[WebDataSource dealloc]):
1349 (-[WebDataSource webFrame]):
1350 (-[WebDataSource isLoading]):
1352 2006-10-02 Maciej Stachowiak <mjs@apple.com>
1356 - fix crash on back/forward - reattach WebDocumentLoadState to data source when needed
1358 * WebView/WebDataSource.m:
1359 (-[WebDataSource _setWebFrame:]):
1360 (-[WebDataSource _initWithDocumentLoadState:]):
1361 * WebView/WebDataSourceInternal.h:
1363 2006-10-02 Maciej Stachowiak <mjs@apple.com>
1365 Build fix, not reviewed.
1367 - Added missing files to fix build.
1369 * WebView/WebDocumentLoadStateMac.h: Added.
1370 * WebView/WebDocumentLoadStateMac.m: Added.
1371 (-[WebDocumentLoadStateMac initWithRequest:]):
1372 (-[WebDocumentLoadStateMac dealloc]):
1373 (-[WebDocumentLoadStateMac setDataSource:]):
1374 (-[WebDocumentLoadStateMac dataSource]):
1375 (-[WebDocumentLoadStateMac setFrameLoader:]):
1377 2006-10-01 Maciej Stachowiak <mjs@apple.com>
1379 Reviewed by Brady and Oliver.
1381 - move things around so that WebDataSource and WebDocumentLoadState know about each other in
1382 the right way. This lines things up to move nearly all functionality down to WebDocumentLoadState.
1384 * Loader/WebDocumentLoadState.h:
1385 * Loader/WebDocumentLoadState.m:
1386 (-[WebDocumentLoadState initWithRequest:]):
1387 (-[WebDocumentLoadState dealloc]):
1388 (-[WebDocumentLoadState originalRequest]):
1389 * Loader/WebFrameLoader.h:
1390 * Loader/WebFrameLoader.m:
1391 (-[WebFrameLoader dealloc]):
1392 (-[WebFrameLoader addSubresourceLoader:]):
1393 (-[WebFrameLoader startLoadingMainResourceWithRequest:identifier:]):
1394 (-[WebFrameLoader dataSource]):
1395 (-[WebFrameLoader _setDocumentLoadState:]):
1396 (-[WebFrameLoader policyDataSource]):
1397 (-[WebFrameLoader _setPolicyDocumentLoadState:]):
1398 (-[WebFrameLoader clearDataSource]):
1399 (-[WebFrameLoader provisionalDataSource]):
1400 (-[WebFrameLoader _setProvisionalDocumentLoadState:]):
1401 (-[WebFrameLoader _clearProvisionalDataSource]):
1402 (-[WebFrameLoader _setState:]):
1403 (-[WebFrameLoader clearProvisionalLoad]):
1404 (-[WebFrameLoader commitProvisionalLoad]):
1405 (-[WebFrameLoader stopLoading]):
1406 (-[WebFrameLoader startLoading]):
1407 (-[WebFrameLoader startProvisionalLoad:]):
1408 (-[WebFrameLoader setupForReplace]):
1409 (-[WebFrameLoader activeDocumentLoadState]):
1410 (-[WebFrameLoader activeDataSource]):
1411 (-[WebFrameLoader _loadRequest:archive:]):
1412 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
1413 (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
1414 (-[WebFrameLoader reload]):
1415 * WebKit.xcodeproj/project.pbxproj:
1416 * WebView/WebDataSource.m:
1417 (-[WebDataSourcePrivate dealloc]):
1418 (-[WebDataSource _startLoading]):
1419 (-[WebDataSource _setWebFrame:]):
1420 (-[WebDataSource _documentLoadState]):
1421 (-[WebDataSource _initWithDocumentLoadState:]):
1422 (-[WebDataSource initWithRequest:]):
1423 (-[WebDataSource initialRequest]):
1424 (-[WebDataSource unreachableURL]):
1425 * WebView/WebDataSourceInternal.h:
1426 * WebView/WebFrame.m:
1427 (-[WebFramePrivate dealloc]):
1428 (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
1429 (-[WebFrame _loadDataSource:withLoadType:formState:]):
1430 (-[WebFrame _policyDataSource]):
1431 (-[WebFrame _shouldReloadToHandleUnreachableURLFromRequest:]):
1432 (-[WebFrame _dataSourceForDocumentLoadState:]):
1433 (-[WebFrame _createDocumentLoadStateWithRequest:]):
1434 * WebView/WebFrameInternal.h:
1436 2006-09-29 David Hyatt <hyatt@apple.com>
1438 Change the default minimum font size pref to 0 in order to allow
1439 font-size:0 to work.
1441 * WebView/WebPreferences.m:
1442 (+[WebPreferences initialize]):
1444 2006-09-28 Timothy Hatcher <timothy@apple.com>
1448 Switch the inspector over to use border-image with styled buttons and selects.
1450 * WebInspector/WebInspector.m:
1451 (-[NSWindow window]):
1452 (-[NSWindow setWebFrame:]):
1453 (-[WebInspector _updateRoot]):
1454 * WebInspector/webInspector/Images/button.png: Added.
1455 * WebInspector/webInspector/Images/buttonDivider.png: Added.
1456 * WebInspector/webInspector/Images/buttonPressed.png: Added.
1457 * WebInspector/webInspector/Images/popup.png: Added.
1458 * WebInspector/webInspector/Images/popupFill.png: Removed.
1459 * WebInspector/webInspector/Images/popupFillPressed.png: Removed.
1460 * WebInspector/webInspector/Images/popupLeft.png: Removed.
1461 * WebInspector/webInspector/Images/popupLeftPressed.png: Removed.
1462 * WebInspector/webInspector/Images/popupPressed.png: Added.
1463 * WebInspector/webInspector/Images/popupRight.png: Removed.
1464 * WebInspector/webInspector/Images/popupRightPressed.png: Removed.
1465 * WebInspector/webInspector/Images/squareButtonRight.png: Removed.
1466 * WebInspector/webInspector/Images/squareButtonRightPressed.png: Removed.
1467 * WebInspector/webInspector/inspector.css:
1468 * WebInspector/webInspector/inspector.html:
1469 * WebInspector/webInspector/inspector.js:
1471 2006-09-28 Alice Liu <alice.liu@apple.com>
1473 fixing the windows build
1476 (WebView::mouseMoved):
1477 (WebView::mouseDown):
1479 (WebView::mouseDoubleClick):
1481 2006-09-27 Justin Garcia <justin.garcia@apple.com>
1483 Reviewed by thatcher
1485 <rdar://problem/4044271>
1486 Writing Direction menu doesn't reflect the current writing direction (9773)
1488 * English.lproj/Localizable.strings: Added "Right to Left" and "Left to Right"
1489 * WebView/WebHTMLView.m:
1490 (-[NSArray validateUserInterfaceItem:]): Validate menu items that perform
1491 toggleBaseWritingDirection and changeBaseWritingDirection.
1492 Disable the menu item that changes the writing direction to NSWritingDirectionNautral
1493 because NSWritingDirectionNatural's behavior can't be implemented with CSS.
1494 Take control of the title of the menu item that performs toggleBaseWritingDirection:
1495 instead of checking/unchecking it, otherwise we wouldn't know what a check means.
1496 (-[NSArray changeBaseWritingDirection:]): ASSERT that the requested writing
1497 direction is not NSWritingDirectionNatural, since we've disabled the
1498 menu item that performs it.
1500 2006-09-27 MorganL <morganl.webkit@yahoo.com>
1502 Reviewed by Maciej, landed by Brady
1504 Update URL request associated with provisional data source on redirect.
1505 Notify IWebFrameLoadDelegate of redirects for the provisional load.
1506 Notify IWebFrameLoadDelegate of a provisional load being commited.
1508 * COM/WebDataSource.cpp:
1509 (WebDataSource::replaceRequest):
1510 * COM/WebDataSource.h:
1512 (WebFrame::receivedRedirect):
1513 (WebFrame::receivedResponse):
1514 (WebFrame::receivedData):
1516 2006-09-26 John Sullivan <sullivan@apple.com>
1520 * WebView/WebHTMLViewPrivate.h:
1521 * WebView/WebHTMLView.m:
1522 (-[WebHTMLView markAllMatchesForText:caseSensitive:limit:]):
1523 Added limit parameter, passed over the bridge. Stop the search if it hits limit.
1525 * WebView/WebViewPrivate.h:
1526 * WebView/WebView.m:
1527 (-[WebView markAllMatchesForText:caseSensitive:highlight:limit:]):
1528 Added limit parameter, passed to WebHTMLView.
1530 2006-09-26 David Harrison <harrison@apple.com>
1532 Reviewed by John and TimH.
1534 <rdar://problem/4743256> Seed: Ctrl-Y key binding does nothing when kill ring is empty
1536 Use deleteBackward: when the killring string is empty. Was always using insertText:,
1537 but that ends up early-returning if the string to insert is empty.
1539 * WebView/WebHTMLView.m:
1541 (-[NSArray yankAndSelect:]):
1543 2006-09-25 Timothy Hatcher <timothy@apple.com>
1547 Use the non-deprecated method names for getComputedStyle, setEnd and setStart.
1549 * WebInspector/WebInspector.m:
1550 (-[WebInspector _highlightNode:]):
1551 * WebView/WebHTMLView.m:
1553 (-[WebHTMLView _selectRangeInMarkedText:]):
1554 (-[WebTextCompleteController doCompletion]):
1555 * WebView/WebView.m:
1556 (-[WebView computedStyleForElement:pseudoElement:]):
1558 2006-09-22 Timothy Hatcher <timothy@apple.com>
1562 Pass all headers through unifdef to filter out BUILDING_ON_TIGER blocks
1563 if MACOSX_DEPLOYMENT_TARGET is 10.4.
1565 * MigrateHeaders.make:
1567 2006-09-20 Justin Garcia <justin.garcia@apple.com>
1571 <http://bugs.webkit.org/show_bug.cgi?id=7165>
1572 TinyMCE: Dragging & dropping content always leaves a copy when editing inside a subframe
1574 The top level WebHTMLView is responsible for performing dragging operations, but
1575 the inner view, the view that holds the drag caret, should be consulted to determine
1576 if the drag is a move drag.
1578 * WebCoreSupport/WebFrameBridge.m:
1579 (-[WebFrameBridge startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
1580 * WebKit.xcodeproj/project.pbxproj:
1581 * WebView/WebHTMLView.m:
1582 (-[NSArray dragImage:at:offset:event:pasteboard:source:slideBack:]): Don't set initatedDrag here, because
1583 it's only the top level WebHTMLView that performs this operation.
1584 (-[WebHTMLView _setInitiatedDrag:]): Added.
1585 (-[WebHTMLView _initiatedDrag]): Ditto.
1586 (-[WebHTMLView _canProcessDragWithDraggingInfo:]): Ask the innerView if it initiated the drag,
1587 not the top level view.
1588 (-[WebHTMLView _isMoveDrag]): The top level view asks the innerView if it should perform
1589 a move drag, so don't ASSERT _isTopHTMLView.
1590 (-[WebHTMLView draggingUpdatedWithDraggingInfo:actionMask:]): Ask the innerView if _isMoveDrag.
1591 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): Ditto.
1592 * WebView/WebHTMLViewInternal.h: Added two private SPI so that
1593 the top level WebHTMLView can set and get the initiatedDrag BOOL.
1595 === Safari-521.27 ===
1597 2006-09-20 Brady Eidson <beidson@apple.com>
1599 Reviewed by Tim Omernick
1601 Fixing part of a crash Tim O showed me. [WebIconDatabase init] should finish
1602 gracefully even if we can't open the database
1604 * Misc/WebIconDatabase.m:
1605 (-[WebIconDatabase init]):
1607 2006-09-20 Timothy Hatcher <timothy@apple.com>
1611 <rdar://problem/4741392> Develop a system to find what version of WebKit an app was linked with
1613 * Misc/WebKitVersionChecks.h: Added.
1614 * Misc/WebKitVersionChecks.m: Added.
1615 (WebKitLinkedOnOrAfter): Added.
1616 (WebKitLinkTimeVersion): Added.
1617 (WebKitRunTimeVersion): Added.
1618 * WebKit.xcodeproj/project.pbxproj:
1620 2006-09-20 Tim Omernick <timo@apple.com>
1624 * Misc/WebIconDatabase.m:
1625 (-[WebIconDatabase init]):
1628 2006-09-20 Brady Eidson <beidson@apple.com>
1632 Preparing to make the WebIconDatabase disabled by default - this patch tells the bridge whether its enabled or not
1634 * Misc/WebIconDatabase.m:
1635 (-[WebIconDatabase init]):
1637 2006-09-19 Brady Eidson <beidson@apple.com>
1639 Reviewed by Sarge Decker
1641 <rdar://problem/4739892> and <rdar://problem/4729797>
1642 - WebCore::IconDatabase needs to have and respect an enabled() flag
1643 - Mail on ToT WebKit crashes in IconDatabase code when mailing a page from Safari
1645 * Misc/WebIconDatabase.m:
1646 (-[WebIconDatabase init]): If preference says icons are disabled, tell the bridge
1647 (-[WebIconDatabase _isEnabled]): Ask the bridge if the database is enabled
1649 2006-09-19 Alexey Proskuryakov <ap@nypop.com>
1653 http://bugs.webkit.org/show_bug.cgi?id=10661
1654 REGRESSION: CFM plug-ins (Shockwave, SVG) are not loaded
1656 * Plugins/WebBasePluginPackage.m:
1657 (-[WebBasePluginPackage initWithPath:]): On 32-bit PowerPC, don't bail out if
1658 the bundle is nil - it can be a CFM plugin.
1660 2006-09-18 Brady Eidson <beidson@apple.com>
1664 Implement a bridge method so WebCore can find the reload type of a frame load
1666 * WebCoreSupport/WebFrameBridge.m:
1667 (-[WebFrameBridge isLoadTypeReload]):
1669 2006-09-18 Sam Weinig <sam.weinig@gmail.com>
1673 Patch for http://bugs.webkit.org/show_bug.cgi?id=10903
1674 Yet Another Objective-C Bindings Patch
1676 * MigrateHeaders.make:
1678 2006-09-17 David Harrison <harrison@apple.com>
1680 Reviewed by John Sullivan.
1682 <rdar://problem/4494340> REGRESSION: Making the font size bigger/smaller in an HTML message doesn't affect the body until you reopen it
1684 Problem was the public API -[WebView setTextSizeMultiplier] did not notify anyone that the value changed.
1686 * WebView/WebDocumentInternal.h:
1687 Add _textSizeMultiplierChanged to the _WebDocumentTextSizing protocol.
1689 * WebView/WebHTMLView.m:
1690 (-[WebHTMLView _textSizeMultiplierChanged]):
1691 Send [self _updateTextSizeMultiplier].
1693 * WebView/WebPDFView.m:
1694 (-[WebPDFView _textSizeMultiplierChanged]):
1695 ASSERT_NOT_REACHED() because WebPDFView does not track the common multiplier.
1697 * WebView/WebView.m:
1698 (-[WebView setTextSizeMultiplier:]):
1699 Send [self _notifyTextSizeMultiplierChanged];
1701 (-[WebView _performTextSizingSelector:withObject:onTrackingDocs:selForNonTrackingDocs:newScaleFactor:]):
1702 Alter the _textSizeMultiplier directly so that notification is not sent.
1705 (-[WebView _notifyTextSizeMultiplierChanged]):
1706 New. Send _textSizeMultiplierChanged to all document views that track the common multiplier.
1708 2006-09-16 Brady Eidson <beidson@apple.com>
1712 WebIconLoader is dead, long live WebCore::IconLoader
1715 * Loader/WebFrameLoader.h:
1716 * Loader/WebFrameLoader.m:
1717 (-[WebFrameLoader dealloc]):
1718 (-[WebFrameLoader commitProvisionalLoad]):
1719 * Loader/WebIconLoader.h: Removed.
1720 * Loader/WebIconLoader.m: Removed.
1721 * Misc/WebIconDatabase.h:
1722 * Misc/WebIconDatabase.m:
1723 * Misc/WebIconDatabasePrivate.h:
1724 * WebCoreSupport/WebFrameBridge.m:
1725 (-[WebFrameBridge notifyIconChanged:]):
1726 * WebCoreSupport/WebIconDatabaseBridge.h:
1727 * WebCoreSupport/WebIconDatabaseBridge.m:
1728 (-[WebIconDatabaseBridge _init]):
1729 (-[WebIconDatabaseBridge _setIconData:forIconURL:]):
1730 (-[WebIconDatabaseBridge _setHaveNoIconForIconURL:]):
1732 * WebKit.xcodeproj/project.pbxproj:
1733 * WebView/WebDataSource.m:
1734 (-[WebDataSourcePrivate dealloc]):
1735 (-[WebDataSource _stopLoading]):
1736 (-[WebDataSource _setPrimaryLoadComplete:]):
1737 * WebView/WebDataSourceInternal.h:
1739 2006-09-16 Mark Rowe <opendarwin.org@bdash.net.nz>
1743 http://bugs.webkit.org/show_bug.cgi?id=10887
1746 * MigrateHeaders.make: Remove reference to DOMEventPrivate.h.
1748 2006-09-15 Timothy Hatcher <timothy@apple.com>
1752 Make new style ObjC methods public API.
1754 * MigrateHeaders.make:
1756 2006-09-15 Sam Weinig <sam.weinig@gmail.com>
1760 Patch for http://bugs.webkit.org/show_bug.cgi?id=10870
1761 Auto-generate DOMNode for the Objective-C bindings
1763 * MigrateHeaders.make:
1765 2006-09-15 Timothy Hatcher <timothy@apple.com>
1769 Call the bridge directly for alter selection calls. All of this logic is now
1770 in WebCore's SelectionController.
1772 * WebView/WebHTMLView.m:
1773 (-[NSArray moveBackward:]):
1774 (-[NSArray moveBackwardAndModifySelection:]):
1775 (-[NSArray moveDown:]):
1776 (-[NSArray moveDownAndModifySelection:]):
1777 (-[NSArray moveForward:]):
1778 (-[NSArray moveForwardAndModifySelection:]):
1779 (-[NSArray moveLeft:]):
1780 (-[NSArray moveLeftAndModifySelection:]):
1781 (-[NSArray moveRight:]):
1782 (-[NSArray moveRightAndModifySelection:]):
1783 (-[NSArray moveToBeginningOfDocument:]):
1784 (-[NSArray moveToBeginningOfDocumentAndModifySelection:]):
1785 (-[NSArray moveToBeginningOfSentence:]):
1786 (-[NSArray moveToBeginningOfSentenceAndModifySelection:]):
1787 (-[NSArray moveToBeginningOfLine:]):
1788 (-[NSArray moveToBeginningOfLineAndModifySelection:]):
1789 (-[NSArray moveToBeginningOfParagraph:]):
1790 (-[NSArray moveToBeginningOfParagraphAndModifySelection:]):
1791 (-[NSArray moveToEndOfDocument:]):
1792 (-[NSArray moveToEndOfDocumentAndModifySelection:]):
1793 (-[NSArray moveToEndOfSentence:]):
1794 (-[NSArray moveToEndOfSentenceAndModifySelection:]):
1795 (-[NSArray moveToEndOfLine:]):
1796 (-[NSArray moveToEndOfLineAndModifySelection:]):
1797 (-[NSArray moveToEndOfParagraph:]):
1798 (-[NSArray moveToEndOfParagraphAndModifySelection:]):
1799 (-[NSArray moveParagraphBackwardAndModifySelection:]):
1800 (-[NSArray moveParagraphForwardAndModifySelection:]):
1801 (-[NSArray moveUp:]):
1802 (-[NSArray moveUpAndModifySelection:]):
1803 (-[NSArray moveWordBackward:]):
1804 (-[NSArray moveWordBackwardAndModifySelection:]):
1805 (-[NSArray moveWordForward:]):
1806 (-[NSArray moveWordForwardAndModifySelection:]):
1807 (-[NSArray moveWordLeft:]):
1808 (-[NSArray moveWordLeftAndModifySelection:]):
1809 (-[NSArray moveWordRight:]):
1810 (-[NSArray moveWordRightAndModifySelection:]):
1811 (-[NSArray pageUp:]):
1812 (-[NSArray pageDown:]):
1813 (-[NSArray pageUpAndModifySelection:]):
1814 (-[NSArray pageDownAndModifySelection:]):
1816 2006-09-15 Adam Roben <aroben@apple.com>
1818 Reviewed by eseidel.
1820 Fixes http://bugs.webkit.org/show_bug.cgi?id=10876
1821 containsItemForURLUnicode uses matchLetter instead of
1824 Small fixes for _WebCoreHistoryProvider.
1826 * History/WebHistory.m: Consistently use BUFFER_SIZE #define
1827 (-[_WebCoreHistoryProvider containsItemForURLLatin1:length:]):
1828 (-[_WebCoreHistoryProvider containsItemForURLUnicode:length:]):
1829 Replace incorrect call to matchLetter to matchUnicodeLetter
1831 2006-09-13 Brady Eidson <beidson@apple.com>
1835 Add infrastructure to support icon loads taking place in WebCore
1836 Will remove WebKit icon loaders in a later patch
1838 * WebCoreSupport/WebFrameBridge.m:
1839 (-[WebFrameBridge notifyIconChanged:]):
1840 (-[WebFrameBridge originalRequestURL]):
1841 - Nuked two old, obsolete methods
1842 - Added bridge for notifying of an icon change
1843 - Added bridge for getting the "original request URL" which is still needed
1844 until that info is available in the WebCore loaders
1846 * WebView/WebDataSource.m:
1847 (-[WebDataSource _loadIcon]):
1848 - Empty body just for now, as it still gets called - next patch will prune all the old impl out
1850 2006-09-13 Timothy Hatcher <timothy@apple.com>
1854 <rdar://problem/4726416> obsolete confusing "ADVISORY NOTE" comment in WebHistory.h
1856 Removed the "ADVISORY NOTE: This method may change for the 1.0 SDK" comments.
1858 * History/WebHistory.h:
1860 === Safari-521.26 ===
1862 2006-09-11 MorganL <morlmor@yahoo.com>
1864 Reviewed/landed by aroben.
1866 Fixes http://bugs.webkit.org/show_bug.cgi?id=10765
1867 Windows build busted due to std::copy usage in Vector.h
1869 * WebKit.vcproj/WebKit.vcproj: Define _SCL_SECURE_NO_DEPRECATE to get
1870 rid of deprecation warnings on std::copy
1872 2006-09-11 Brady Eidson <beidson@apple.com>
1874 Despite the fact that some people built okay without this change, it sure was biting me,
1875 probably because I just wiped my build directory for a fresh build -
1876 Today's earlier removal of DOMList.h needed to occur in MigrateHeaders.make, as well
1878 * MigrateHeaders.make: removed DOMList.h
1880 2006-09-10 Darin Adler <darin@apple.com>
1884 - fix http://bugs.webkit.org/show_bug.cgi?id=10547
1885 REGRESSION: Links that should open in a new window open in the same window,
1886 while opening another blank window
1888 * WebView/WebFrame.m:
1889 (-[WebFrame _continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
1890 Changed a mistaken "self" to "frame", which was the cause of the bug. Also
1891 fixed the method so that it won't crash if createWebViewWithRequest does
1892 something that has a side effect of releasing this WebView or this frame
1893 by retaining "self" and "frame" as needed. Also fixed a problem where the
1894 code to set "opener" was backwards, and would set the opener of the old
1895 frame to point to the new frame instead of vice versa.
1897 2006-09-09 Sam Weinig <sam.weinig@gmail.com>
1901 Patch for http://bugs.webkit.org/show_bug.cgi?id=10795
1902 Auto-generate the Objective-C DOM XPath bindings
1904 * MigrateHeaders.make:
1906 2006-09-09 Sam Weinig <sam.weinig@gmail.com>
1910 Patch for http://bugs.webkit.org/show_bug.cgi?id=10791
1911 Even More Objective-C DOM auto-generation cleanup
1913 * MigrateHeaders.make:
1915 2006-09-08 Tim Omernick <timo@apple.com>
1917 Reviewed by Brady Eidson.
1919 Rolled out Maciej's code cleanup from 8/22. It turns out that keeping the "loading" flag
1920 is a useful optimization, as it avoids many Objective-C method calls while polling resources
1921 for their load state.
1923 This fixes a 3-4% PLT performance regression (as measured on my MacBook Pro).
1925 * Loader/WebFrameLoader.m:
1926 (-[WebFrameLoader addPlugInStreamLoader:]):
1927 (-[WebFrameLoader removePlugInStreamLoader:]):
1928 (-[WebFrameLoader addSubresourceLoader:]):
1929 (-[WebFrameLoader removeSubresourceLoader:]):
1930 * WebView/WebDataSource.m:
1931 (-[WebDataSourcePrivate dealloc]):
1932 (-[WebDataSource _prepareForLoadStart]):
1933 (-[WebDataSource _setLoading:]):
1934 (-[WebDataSource _updateLoading]):
1935 (-[WebDataSource _startLoading]):
1936 (-[WebDataSource _stopLoading]):
1937 (-[WebDataSource _setPrimaryLoadComplete:]):
1938 (-[WebDataSource isLoading]):
1939 * WebView/WebDataSourceInternal.h:
1941 2006-09-07 Sam Weinig <sam.weinig@gmail.com>
1943 Reviewed by Darin and Tim H.
1945 Patch for http://bugs.webkit.org/show_bug.cgi?id=10774
1946 Auto-generate the Objective-C DOM Traversal bindings
1948 * MigrateHeaders.make:
1950 2006-09-07 Sam Weinig <sam.weinig@gmail.com>
1954 Patch for http://bugs.webkit.org/show_bug.cgi?id=10766
1955 Auto-generate the Objective-C DOM Events bindings
1957 * MigrateHeaders.make:
1958 * WebKit.xcodeproj/project.pbxproj:
1960 2006-09-06 Alexey Proskuryakov <ap@nypop.com>
1962 * MigrateHeaders.make: Fixed a double slash in
1963 "$(PRIVATE_HEADERS_DIR)//DOMCharacterDataPrivate.h" (this was reported
1964 to cause a build failure under certain circumstances).
1966 2006-09-05 MorganL <morlmor@yahoocom>
1968 Reviewed/landed by aroben.
1970 Fixes bug 10743: Windows build is busted.
1973 (WebView::keyPress):
1975 2006-09-05 Timothy Hatcher <timothy@apple.com>
1979 Drastically simplified the makefile for migrating headers from
1980 WebCore and JavaScriptCore. The old version was always copying the files.
1982 * MigrateHeaders.make:
1984 2006-09-05 Darin Adler <darin@apple.com>
1988 - WebKit side of changes to encoding
1990 * WebView/WebHTMLRepresentation.m: (-[WebHTMLRepresentation documentSource]):
1991 Changed to call new -[WebCoreFrameBridge stringWithData:] instead of the calling
1992 the old methods that used a CFStringEncoding: -[WebCoreFrameBridge textEncoding]
1993 and +[WebCoreFrameBridge stringWithData:textEncoding:].
1995 * WebView/WebResource.m: (-[WebResource _stringValue]): Removed special case for
1996 nil encoding name. The bridge itself now has the rule that "nil encoding name
1997 means Latin-1", so we don't need to check for nil.
1999 * WebView/WebFrame.m: (-[WebFrame _checkLoadComplete]): Retain the frame until
2000 we get the parent frame while walking up parent frames, because it's possible
2001 for _checkLoadCompleteForThisFrame to release the last reference to the frame.
2002 (Not reviewed; needed to run performance tests successfully.)
2004 2006-09-05 Timothy Hatcher <timothy@apple.com>
2008 <rdar://problem/4682225> conflicting typedefs in Netscape plug-in headers
2010 * Plugins/npfunctions.h: fix the return type for NPN_IntFromIdentifierProcPtr to be int32_t
2012 2006-09-04 Timothy Hatcher <timothy@apple.com>
2016 Bug 10714: ObjC autogeneration needs safe-guards against easily modifying the public API
2017 http://bugs.webkit.org/show_bug.cgi?id=10714
2019 - Added the new private DOM headers.
2020 - Factored out the common commands into variables.
2021 - Made WebDashboardRegion.h private again.
2022 - Rename DOMDOMImplementation.h to DOMImplementation.h when files
2023 are migrated. Also fixes up #imports.
2025 * MigrateHeaders.make:
2027 2006-09-03 Sam Weinig <sam.weinig@gmail.com>
2029 Reviewed by Darin and Tim H.
2031 - patch for http://bugs.webkit.org/show_bug.cgi?id=10711
2032 Auto-generate the Objective-C DOM Stylesheet bindings
2034 * MigrateHeaders.make:
2036 2006-09-02 Sam Weinig <sam.weinig@gmail.com>
2040 - patch for http://bugs.webkit.org/show_bug.cgi?id=10684
2041 Auto-generate the Objective-C DOM CSS bindings
2043 * MigrateHeaders.make:
2045 2006-09-01 MorganL <morlmor@yahoo.com>
2047 Reviewed by Darin. Updated/landed by Adam.
2049 Fixes http://bugs.webkit.org/show_bug.cgi?id=10553
2053 (WebFrame::initWithName):
2055 2006-09-01 Brady Eidson <beidson@apple.com>
2059 A "never should be reached" method was reached - lets not release the shared database bridge, esp
2060 since we never retain it!
2062 * Misc/WebIconDatabase.m:
2063 (-[WebIconDatabase _applicationWillTerminate:]): Don't release the bridge
2065 2006-09-01 Darin Adler <darin@apple.com>
2069 - a few small tweaks to the icon database bridge
2071 * Misc/WebIconDatabase.m: (-[WebIconDatabase init]): Updated for name change.
2073 * WebCoreSupport/WebIconDatabaseBridge.h: Removed unneeded declarations.
2074 * WebCoreSupport/WebIconDatabaseBridge.m:
2075 (-[WebIconDatabaseBridge init]): Added. Always returns nil since you're not supposed
2076 to allocate one of these.
2077 (-[WebIconDatabaseBridge _init]): Renamed from init. Used internally to make the
2078 shared instance. Added the "self = [super init]" idiom even though it's not important
2079 in this case just to be consistent.
2080 (-[WebIconDatabaseBridge releaseCachedLoaderForIconURL:]): Moved this up in the file
2081 so it can be called without declaring it in the header.
2082 (+[WebIconDatabaseBridge sharedInstance]): Renamed. Calls the new _init. Also use
2083 CFRetain for compatibility.
2084 (-[WebIconDatabaseBridge dealloc]): Emptied this out and made it just assert (false).
2085 (-[WebIconDatabaseBridge finalize]): Added and made it assert (false) too.
2087 2006-09-01 Timothy Hatcher <timothy@apple.com>
2091 Bug 10677: Omit "-webkit-text-security: none;" from the computed style list
2092 http://bugs.webkit.org/show_bug.cgi?id=10677
2094 * WebInspector/webInspector/inspector.js:
2096 2006-08-31 Sam Weinig <sam.weinig@gmail.com>
2100 - patch for http://bugs.webkit.org/show_bug.cgi?id=10669
2101 Auto-generate the remaining Objective-C HTML DOM bindings
2103 * MigrateHeaders.make:
2105 2006-08-31 Adele Peterson <adele@apple.com>
2109 WebKit part of fix for http://bugs.webkit.org/show_bug.cgi?id=10666
2110 Password: Disallow Spelling, Font, Speech, and Writing Direction context menu
2112 * DefaultDelegates/WebDefaultContextMenuDelegate.m: (-[WebDefaultUIDelegate editingContextMenuItemsForElement:defaultMenuItems:]):
2113 Check that the selection isn't in a password field before adding these items to the default editing context menu.
2114 Search In Google, Search In Spotlight, Look up in Dictionary, Spelling, Font, Speech, Writing Direction
2115 * WebView/WebHTMLView.m: (-[WebHTMLView _isSelectionInPasswordField]): Added.
2116 * WebView/WebHTMLViewPrivate.h:
2118 2006-08-31 Sam Weinig <sam.weinig@gmail.com>
2122 - patch for http://bugs.webkit.org/show_bug.cgi?id=10653
2123 Auto-generate another 20 Objective-C DOM HTML bindings
2125 * MigrateHeaders.make:
2126 * WebKit.xcodeproj/project.pbxproj:
2128 2006-08-31 Adele Peterson <adele@apple.com>
2130 Reviewed by John Sullivan.
2132 Removed wkSecureEventInput and wkSetSecureEventInput, since this can be done with API.
2134 * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface):
2136 2006-08-31 John Sullivan <sullivan@apple.com>
2138 Reviewed by Tim Omernick
2140 - fixed <rdar://problem/4711200> Loading history would be faster if it bypassed
2141 NSURL API for local files
2143 * History/WebHistory.m:
2144 (-[WebHistoryPrivate _loadHistoryGutsFromURL:savedItemsCount:collectDiscardedItemsInto:error:]):
2145 Load file URLs using [NSDictionary dictionaryWithContentsOfFile:]. I also cleaned up some minor
2146 style issues in this method, and I removed the support for old NSArray-style history files (which we
2147 stopped using before Safari 1.0).
2149 2006-08-30 Adele Peterson <adele@apple.com>
2153 WebKit part of fix for http://bugs.webkit.org/show_bug.cgi?id=10575
2154 Enable secure input mode for new password fields
2156 * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface):
2158 2006-08-30 Brady Eidson <beidson@apple.com>
2162 <rdar://problem/4707718> Change behavior so if the WebCore::IconDatabase can't open, WebKit releases the bridge and
2163 continues on as if the IconDatabase is disabled.
2165 * Misc/WebIconDatabase.m:
2166 (-[WebIconDatabase init]): Release the bridge on failure to open
2167 * WebCoreSupport/WebIconDatabaseBridge.m:
2168 (+[WebIconDatabaseBridge sharedBridgeInstance]): Moved static shared instance out as a global
2169 (-[WebIconDatabaseBridge dealloc]): Clear pointer to the shared instance
2171 2006-08-30 Timothy Hatcher <timothy@apple.com>
2175 Simplify the header copies from WebCore and JavaScriptCore.
2176 Headers that need to be migrated from the other projects need
2177 to be added to MigrateHeaders.make.
2179 * MigrateHeaders.make: Added.
2180 * WebKit.xcodeproj/project.pbxproj:
2182 2006-08-30 Sam Weinig <sam.weinig@gmail.com>
2186 - patch for http://bugs.webkit.org/show_bug.cgi?id=10640
2187 Auto-generate 10 more Objective-C DOM HTML bindings
2189 * WebKit.xcodeproj/project.pbxproj:
2191 2006-08-30 Adele Peterson <adele@apple.com>
2195 WebKit part of fix for:
2196 http://bugs.webkit.org/show_bug.cgi?id=10576
2197 Disallow copy from new password fields
2199 * WebView/WebHTMLView.m:
2200 (-[WebHTMLView _canCopy]): Now also calls across the bridge to ask if it mayCopy.
2201 (-[WebHTMLView _canCut]): Calls _canCopy now.
2202 (-[NSArray validateUserInterfaceItem:]): Calls _canCut when validating the "Cut" menu item.
2203 This used to call _canDelete (which used to be the same as _canCut), but now _canCut also checks _canCopy.
2205 2006-08-30 Karl Adam <karladam@yahoo-inc.com>
2207 Reviewed by Eric and Tim H.
2209 Bug 10634: -webView:dragDestinationActionMaskForDraggingInfo: is ignored
2210 http://bugs.webkit.org/show_bug.cgi?id=10634
2212 Remove the check for canShowFile: from _web_bestURL: since
2213 it shouldn't be concerned with whether or not the view
2214 can show the URL, merely return the most appropriate URL.
2216 * Misc/WebNSPasteboardExtras.m:
2217 (-[NSPasteboard _web_bestURL]):
2218 * Misc/WebNSViewExtras.m:
2219 (-[NSView _web_dragOperationForDraggingInfo:]):
2221 2006-08-29 Brady Eidson <beidson@apple.com>
2223 Reviewed by Kevin Decker (Sarge)
2225 <rdar://problem/4678414> - New IconDB needs to delete icons when asked
2227 * Misc/WebIconDatabase.m:
2228 (-[WebIconDatabase removeAllIcons]): Call through to WebCore to remove icons, then send notification
2230 2006-08-29 Brady Eidson <beidson@apple.com>
2234 Added a truth value check for to setIconURL:forURL so WebKit can avoid sending a notification
2235 This is a win on the iBench
2237 * Misc/WebIconDatabase.m:
2238 (-[WebIconDatabase _setIconURL:forURL:]):
2240 2006-08-29 Brady Eidson <beidson@apple.com>
2242 Reviewed by Tim Hatchers rubber stamp
2244 Removed some accidentally left-in console spew during the conversion to the new DB
2246 * Misc/WebIconDatabase.m:
2247 (objectFromPathForKey): Nuked some NSLogs
2249 2006-08-29 Tim Omernick <timo@apple.com>
2251 Reviewed by Darin Adler.
2253 <rdar://problem/4688618> REGRESSION(10.4.7-9A241): JMol java applet fails in Safari not Firefox
2255 No layout test for now because Java doesn't work in DumpRenderTree.
2257 * Plugins/WebPluginDatabase.m:
2258 (-[WebPluginDatabase refresh]):
2259 Add each plug-in MIME type to registeredMIMETypes, even if we don't register a document view class for the
2260 MIME type. This fixes -[WebPluginDatabase isMIMETypeRegistered:] and thus fallback content for Java applets
2261 (we were always rendering fallback content, if any, for Java applets).
2263 2006-08-29 Sam Weinig <sam.weinig@gmail.com>
2267 - patch for http://bugs.webkit.org/show_bug.cgi?id=10628
2268 Auto-generate the remaining Objective-C DOM bindings
2270 Auto-generates DOMHTMLCollection, DOMHTMLElement, DOMHTMLFormElement,
2271 and DOMHTMLOptionsCollection.
2273 * WebKit.xcodeproj/project.pbxproj:
2275 2006-08-28 Brady Eidson <beidson@apple.com>
2279 Short of a few small snippets that still need to be pushed to WebCore, this
2280 is a final prune of WebIconDatabase. WebFileDatabase and WebLRUFileList are gone
2281 and the small remaining snippets of WebFileDatabase code that were still important
2282 are now in static functions in WebIconDatabase.m
2284 * Loader/WebIconLoader.m:
2285 (-[WebIconLoader didFinishLoading]): Removed the flag
2286 * Misc/WebFileDatabase.h: Removed.
2287 * Misc/WebFileDatabase.m: Removed.
2288 * Misc/WebIconDatabase.m:
2289 (+[WebIconDatabase sharedIconDatabase]):
2290 (-[WebIconDatabase init]):
2291 (-[WebIconDatabase iconForURL:withSize:cache:]):
2292 (-[WebIconDatabase iconURLForURL:]):
2293 (-[WebIconDatabase defaultIconWithSize:]):
2294 (-[WebIconDatabase retainIconForURL:]):
2295 (-[WebIconDatabase releaseIconForURL:]):
2296 (-[WebIconDatabase _isEnabled]):
2297 (-[WebIconDatabase _setIconData:forIconURL:]):
2298 (-[WebIconDatabase _setHaveNoIconForIconURL:]):
2299 (-[WebIconDatabase _setIconURL:forURL:]):
2300 (-[WebIconDatabase _hasEntryForIconURL:]):
2301 (-[WebIconDatabase _applicationWillTerminate:]):
2302 (-[WebIconDatabase _resetCachedWebPreferences:]):
2303 (uniqueFilePathForKey): Added from WebFileDatabase
2304 (objectFromPathForKey): Added from WebFileDatabase
2305 (iconDataFromPathForIconURL):
2306 (-[WebIconDatabase _convertToWebCoreFormat]): Make use of static functions and local variables
2307 instead of using WebFileDatabase and WebIconDatabase variables that are now obsolete
2308 * Misc/WebIconDatabasePrivate.h: Removed alot of obsoleted members
2309 * Misc/WebLRUFileList.h: Removed.
2310 * Misc/WebLRUFileList.m: Removed.
2311 * WebKit.xcodeproj/project.pbxproj: Deleted 4 files
2312 * WebKitPrefix.h: Removed ICONDEBUG
2314 2006-08-28 Tim Omernick <timo@apple.com>
2316 Reviewed by Darin Adler.
2318 * Plugins/WebBaseNetscapePluginView.m:
2319 (-[WebBaseNetscapePluginView createPluginScriptableObject]):
2320 Removed a bogus typecast.
2322 2006-08-28 Tim Omernick <timo@apple.com>
2324 Reviewed by John Sullivan.
2326 Part of <rdar://problem/4481553> NetscapeMoviePlugIn example code scripting doesn't work in Firefox (4319)
2327 <http://bugs.webkit.org/show_bug.cgi?id=4319>: NetscapeMoviePlugIn example code scripting doesn't work
2330 * Plugins/WebBaseNetscapePluginView.h:
2331 * Plugins/WebBaseNetscapePluginView.m:
2332 (-[WebBaseNetscapePluginView createPluginScriptableObject]):
2333 Renamed this method (see corresponding WebCore ChangeLog entry for an explanation).
2336 2006-08-28 Brady Eidson <beidson@apple.com>
2338 Reviewed by Tim Hatcher's rubberstamp
2340 Rolled out my last change (16070 - pruning WebFileDatabase code) as it caused a difficult-to-track down
2341 failure in layout tests on a release build.
2343 * Misc/WebFileDatabase.h:
2344 * Misc/WebFileDatabase.m:
2345 (+[WebFileDatabaseOp opWithCode:key:object:]):
2346 (-[WebFileDatabaseOp initWithCode:key:object:]):
2347 (-[WebFileDatabaseOp opcode]):
2348 (-[WebFileDatabaseOp key]):
2349 (-[WebFileDatabaseOp object]):
2350 (-[WebFileDatabaseOp perform:]):
2351 (-[WebFileDatabaseOp dealloc]):
2352 (SetThreadPriority):
2353 (-[WebFileDatabase _createLRUList:]):
2354 (-[WebFileDatabase _truncateToSizeLimit:]):
2355 (+[WebFileDatabase _syncLoop:]):
2357 (-[WebFileDatabase setTimer]):
2358 (-[WebFileDatabase setObject:forKey:]):
2359 (-[WebFileDatabase removeObjectForKey:]):
2360 (-[WebFileDatabase removeAllObjects]):
2361 (-[WebFileDatabase objectForKey:]):
2362 (-[WebFileDatabase performSetObject:forKey:]):
2363 (-[WebFileDatabase performRemoveObjectForKey:]):
2364 (-[WebFileDatabase open]):
2365 (-[WebFileDatabase close]):
2366 (-[WebFileDatabase lazySync:]):
2367 (-[WebFileDatabase sync]):
2368 (-[WebFileDatabase sizeLimit]):
2369 (-[WebFileDatabase count]):
2370 (-[WebFileDatabase usage]):
2371 (-[WebFileDatabase setSizeLimit:]):
2372 * Misc/WebIconDatabase.m:
2373 (-[WebIconDatabase _createFileDatabase]):
2374 (-[WebIconDatabase _loadIconDictionaries]):
2375 * WebKit.xcodeproj/project.pbxproj:
2377 2006-08-28 Darin Adler <darin@apple.com>
2379 Reviewed by Tim Hatcher.
2381 * WebInspector/webInspector/inspector.js: Add "resize: none" to the list of
2382 default values for CSS properties so it will be omitted from most displays
2385 2006-08-28 Brady Eidson <beidson@apple.com>
2389 Major prune of unnecessary WebFileDatabase code. In the end, what
2390 useful code that remains in WebFileDatabase will likely be moved directly
2391 into WebIconDatabase
2393 * Misc/WebFileDatabase.h:
2394 * Misc/WebFileDatabase.m:
2395 (-[WebFileDatabase initWithPath:]):
2396 (-[WebFileDatabase objectForKey:]):
2397 (-[WebFileDatabase open]):
2398 (-[WebFileDatabase close]):
2399 * Misc/WebIconDatabase.m:
2400 (-[WebIconDatabase _createFileDatabase]):
2401 (-[WebIconDatabase _loadIconDictionaries]):
2402 * Misc/WebLRUFileList.h: Removed.
2403 * Misc/WebLRUFileList.m: Removed.
2404 * WebKit.xcodeproj/project.pbxproj:
2406 2006-08-27 Sam Weinig <sam.weinig@gmail.com>
2410 - patch for http://bugs.webkit.org/show_bug.cgi?id=4624
2411 WebCore needs autogenerated Obj-C DOM bindings
2413 First round of auto-generated Objective C DOM bindings, starting
2416 * WebKit.xcodeproj/project.pbxproj:
2418 2006-08-25 Brady Eidson <beidson@apple.com>
2420 Reviewed by Tim Hatcher
2422 Fixed up some leaks on [WebIconDatabase init]
2424 * Misc/WebIconDatabase.m:
2425 (-[WebIconDatabase init]):
2427 2006-08-24 Timothy Hatcher <timothy@apple.com>
2431 * WebView/WebFrame.m:
2432 (-[WebFrame _updateBackground]): reworded the comment about scroll view and setDrawsBackground:YES
2433 * WebView/WebView.m:
2434 (-[WebViewPrivate dealloc]): release the background color
2436 2006-08-24 Timothy Hatcher <timothy@apple.com>
2440 WebView API to allow changing the background color that draws under transparent page backgrounds.
2442 * WebView/WebFrame.m:
2443 (-[WebFrame _makeDocumentView]):
2444 (-[WebFrame _updateBackground]):
2445 * WebView/WebFrameInternal.h:
2446 * WebView/WebFrameView.m:
2447 (-[WebFrameView drawRect:]):
2448 * WebView/WebView.m:
2449 (-[WebView setBackgroundColor:]):
2450 (-[WebView backgroundColor]):
2451 (-[WebView _commonInitializationWithFrameName:groupName:]):
2452 (-[WebView setDrawsBackground:]):
2453 * WebView/WebViewPrivate.h:
2455 2006-08-24 Timothy Hatcher <timothy@apple.com>
2459 Fix for Mail stationary. Selecting a stationary item would cause this exception.
2460 *** -[WebSubresourceLoader copyWithZone:]: selector not recognized
2461 Uncaught exception - *** -[WebSubresourceLoader copyWithZone:]: selector not recognized
2463 * Loader/WebFrameLoader.m:
2464 (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
2465 Use _webkit_setObject:forUncopiedKey: when addign the resource to pendingArchivedResources.
2467 2006-08-23 Maciej Stachowiak <mjs@apple.com>
2471 - fix assertion which I accidentally changed to one that sometimes fails
2472 http://bugs.webkit.org/show_bug.cgi?id=10531
2474 * Loader/WebDocumentLoadState.m:
2475 (-[WebDocumentLoadState dealloc]):
2476 * WebView/WebDataSource.m:
2477 (-[WebDataSourcePrivate dealloc]):
2478 (-[WebDataSource dealloc]):
2480 2006-08-23 Maciej Stachowiak <mjs@apple.com>
2484 - move WebFrame code that creates WebDataSources down to WebFrameLoader, in preparation
2485 for WebFrameLoader just holding on to WebDocumentLoadState
2487 * Loader/WebFrameLoader.h:
2488 * Loader/WebFrameLoader.m:
2489 (-[WebFrameLoader _loadRequest:archive:]):
2490 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
2491 (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
2492 (-[WebFrameLoader reload]):
2493 * WebView/WebFrame.m:
2494 (-[WebFrame _loadItem:withLoadType:]):
2495 (-[WebFrame _continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
2496 (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
2497 (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
2498 (-[WebFrame _shouldReloadToHandleUnreachableURLFromRequest:]):
2499 (-[WebFrame loadRequest:]):
2500 (-[WebFrame loadArchive:]):
2501 (-[WebFrame reload]):
2502 * WebView/WebFrameInternal.h:
2503 * WebView/WebFramePrivate.h:
2504 * WebView/WebView.m:
2505 (-[WebView setCustomTextEncodingName:]):
2507 2006-08-23 Brady Eidson <beidson@apple.com>
2511 First pass at pruning unused WebIconDatabase code. Focus on removing methods that simply
2512 have no place in the new DB at all. A few renames and a few important FIXMEs result, but no
2513 functionality changes.
2515 * Loader/WebIconLoader.m:
2516 (-[WebIconLoader didFinishLoading]): Call to WebIconDatabase instead of directly to the bridge
2517 * Misc/WebIconDatabase.h:
2518 * Misc/WebIconDatabase.m:
2519 (-[WebIconDatabase init]):
2520 (-[WebIconDatabase iconForURL:withSize:cache:]):
2521 (-[WebIconDatabase iconURLForURL:]):
2522 (-[WebIconDatabase defaultIconWithSize:]):
2523 (-[WebIconDatabase retainIconForURL:]):
2524 (-[WebIconDatabase releaseIconForURL:]):
2525 (-[WebIconDatabase removeAllIcons]):
2526 (-[WebIconDatabase _setIconData:forIconURL:]):
2527 (-[WebIconDatabase _setHaveNoIconForIconURL:]):
2528 (-[WebIconDatabase _setIconURL:forURL:]):
2529 (-[WebIconDatabase _hasEntryForIconURL:]):
2530 (-[WebIconDatabase _applicationWillTerminate:]):
2531 (-[WebIconDatabase _resetCachedWebPreferences:]):
2532 * Misc/WebIconDatabasePrivate.h: Changed setIcon: to setIconData:
2534 2006-08-23 Maciej Stachowiak <mjs@apple.com>
2538 - started factoring most of the guts of WebDataSource into a new class
2540 WebDocumentLoadState is decoupled from the rest of WebKit and will
2541 be moved down to WebCore. I only moved one of the data fields of
2542 WebDataSource for now.
2544 * Loader/WebDocumentLoadState.h: Added.
2545 * Loader/WebDocumentLoadState.m: Added.
2546 (-[WebDocumentLoadState initWithRequest:]): New class.
2547 (-[WebDocumentLoadState dealloc]):
2548 (-[WebDocumentLoadState setFrameLoader:]):
2549 (-[WebDocumentLoadState setMainResourceData:]):
2550 (-[WebDocumentLoadState mainResourceData]):
2551 * Loader/WebFrameLoader.m:
2552 (-[WebFrameLoader _setDataSource:]): Remove redundant _setWebFrame: call,
2553 it would have been called already by this point.
2554 (-[WebFrameLoader _setProvisionalDataSource:]): ditto.
2555 * WebKit.xcodeproj/project.pbxproj:
2556 * WebView/WebDataSource.m:
2557 (-[WebDataSourcePrivate dealloc]):
2558 (-[WebDataSource _setWebFrame:]):
2559 (-[WebDataSource _setPrimaryLoadComplete:]):
2560 (-[WebDataSource initWithRequest:]):
2561 (-[WebDataSource data]):
2563 2006-08-23 Maciej Stachowiak <mjs@apple.com>
2567 - refactoring of WebDataSource in preparation for moving a bunch of it to a new class
2569 - minimize WebDataSourceInternal.h to be only methods called from outside WebDataSource
2570 - reduce Private category implementation to be only the SPI methods
2571 - make new Internal and FileInternal categories which contain the
2572 remainder (depending on whether they are called from outside of
2575 * WebView/WebDataSource.m:
2576 (-[WebDataSource _setMainDocumentError:]):
2577 (addTypesFromClass):
2578 (+[WebDataSource _representationClassForMIMEType:]):
2579 (-[WebDataSource _commitIfReady]):
2580 (-[WebDataSource _commitLoadWithData:]):
2581 (-[WebDataSource _doesProgressiveLoadWithMIMEType:]):
2582 (-[WebDataSource _addResponse:]):
2583 (-[WebDataSource _revertToProvisionalState]):
2584 (-[WebDataSource _mainDocumentError]):
2585 (-[WebDataSource _addSubframeArchives:]):
2586 (-[WebDataSource _fileWrapperForURL:]):
2587 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
2588 (-[WebDataSource _decidePolicyForMIMEType:decisionListener:]):
2589 (-[WebDataSource _finishedLoading]):
2590 (-[WebDataSource _setResponse:]):
2591 (-[WebDataSource _setRequest:]):
2592 (-[WebDataSource _setupForReplaceByMIMEType:]):
2593 (-[WebDataSource _receivedMainResourceError:complete:]):
2594 (-[WebDataSource _mainReceivedError:complete:]):
2595 (-[WebDataSource _defersCallbacks]):
2596 (-[WebDataSource _downloadWithLoadingConnection:request:response:proxy:]):
2597 (-[WebDataSource _didFailLoadingWithError:forResource:]):
2598 (-[WebDataSource _didFinishLoadingForResource:]):
2599 (-[WebDataSource _didReceiveData:contentLength:forResource:]):
2600 (-[WebDataSource _didReceiveResponse:forResource:]):
2601 (-[WebDataSource _didCancelAuthenticationChallenge:forResource:]):
2602 (-[WebDataSource _didReceiveAuthenticationChallenge:forResource:]):
2603 (-[WebDataSource _willSendRequest:forResource:redirectResponse:]):
2604 (-[WebDataSource _identifierForInitialRequest:]):
2605 (-[WebDataSource _archivedSubresourceForURL:]):
2606 (-[WebDataSource _startLoading]):
2607 (-[WebDataSource _stopRecordingResponses]):
2608 (-[WebDataSource _loadingStartedTime]):
2609 (-[WebDataSource _replaceSelectionWithArchive:selectReplacement:]):
2610 (-[WebDataSource _documentFragmentWithArchive:]):
2611 (-[WebDataSource _documentFragmentWithImageResource:]):
2612 (-[WebDataSource _imageElementWithImageResource:]):
2613 (-[WebDataSource _title]):
2614 (-[WebDataSource _isStopping]):
2615 (-[WebDataSource _setWebFrame:]):
2616 (-[WebDataSource _URL]):
2617 (-[WebDataSource _loadFromPageCache:]):
2618 (-[WebDataSource _popSubframeArchiveWithName:]):
2619 (-[WebDataSource _setIsClientRedirect:]):
2620 (-[WebDataSource _setURL:]):
2621 (-[WebDataSource _setLastCheckedRequest:]):
2622 (-[WebDataSource _defersCallbacksChanged]):
2623 (-[WebDataSource _lastCheckedRequest]):
2624 (-[WebDataSource _stopLoading]):
2625 (-[WebDataSource _bridge]):
2626 (-[WebDataSource _webView]):
2627 (-[WebDataSource _triggeringAction]):
2628 (-[WebDataSource _setTriggeringAction:]):
2629 (-[WebDataSource __adoptRequest:]):
2630 (-[WebDataSource _isDocumentHTML]):
2631 (-[WebDataSource _stopLoadingWithError:]):
2632 (-[WebDataSource _setPrimaryLoadComplete:]):
2633 (-[WebDataSource _responses]):
2634 (-[WebDataSource _makeRepresentation]):
2635 (-[WebDataSource _isClientRedirect]):
2636 (-[WebDataSource _originalRequest]):
2637 (-[WebDataSource _URLForHistory]):
2638 (-[WebDataSource _addToUnarchiveState:]):
2639 (-[WebDataSource _setOverrideEncoding:]):
2640 (-[WebDataSource _setIconURL:]):
2641 (-[WebDataSource _setIconURL:withType:]):
2642 (-[WebDataSource _overrideEncoding]):
2643 (-[WebDataSource _setTitle:]):
2644 * WebView/WebDataSourceInternal.h:
2646 2006-08-23 Brady Eidson <beidson@apple.com>
2648 Reviewed by John Sullivan
2651 Flip the switch to the new Icon Database
2652 Massive code pruning is coming up
2654 * WebKitPrefix.h: Flipped the switch
2656 2006-08-23 Brady Eidson <beidson@apple.com>
2659 Since I just pushed the default URL icon from WebKit to WebCore, but
2660 WebKit was still using its version of the default icon, this patch makes it
2661 use the WebCore version
2663 * Misc/WebIconDatabase.m:
2664 (-[WebIconDatabase defaultIconWithSize:]):
2666 2006-08-22 Maciej Stachowiak <mjs@apple.com>
2670 - remove "loading" flag from WebDataSource and code that manages it; it is redundat.
2672 * Loader/WebFrameLoader.m:
2673 (-[WebFrameLoader addPlugInStreamLoader:]):
2674 (-[WebFrameLoader removePlugInStreamLoader:]):
2675 (-[WebFrameLoader addSubresourceLoader:]):
2676 (-[WebFrameLoader removeSubresourceLoader:]):
2677 * WebView/WebDataSource.m:
2678 (-[WebDataSourcePrivate dealloc]):
2679 (-[WebDataSource _setPrimaryLoadComplete:]):
2680 (-[WebDataSource _stopLoading]):
2681 (-[WebDataSource _prepareForLoadStart]):
2682 (-[WebDataSource _startLoading]):
2683 (-[WebDataSource isLoading]):
2684 * WebView/WebDataSourceInternal.h:
2686 2006-08-22 Maciej Stachowiak <mjs@apple.com>
2690 <rdar://problem/4683948> REGRESSION: Assertion failure in [FrameProgressEntry addChild:forDataSource:] (fandango.com)
2692 * Loader/WebFrameLoader.m:
2693 (-[WebFrameLoader addSubresourceLoader:]): Add a WebKit-level assertion that should fire when this bad
2695 * Loader/WebSubresourceLoader.m:
2696 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]): Prevent
2697 the situation from occuring.
2699 2006-08-22 Maciej Stachowiak <mjs@apple.com>
2703 - pull more WebDataSource code into WebFrameLoader
2704 - make WebMainResourceLoader not depend on WebKit or on SPI
2706 * Loader/WebFrameLoader.h:
2707 * Loader/WebFrameLoader.m:
2708 (-[WebFrameLoader _downloadWithLoadingConnection:request:response:proxy:]):
2709 (-[WebFrameLoader _updateIconDatabaseWithURL:]):
2710 (-[WebFrameLoader _notifyIconChanged:]):
2711 (-[WebFrameLoader _iconLoaderReceivedPageIcon:]):
2712 (-[WebFrameLoader _checkNavigationPolicyForRequest:andCall:withSelector:]):
2713 (-[WebFrameLoader _checkContentPolicyForMIMEType:andCall:withSelector:]):
2714 (-[WebFrameLoader cancelContentPolicy]):
2715 * Loader/WebIconLoader.m:
2716 (-[WebIconLoader didFinishLoading]):
2717 * Loader/WebLoader.m:
2718 (-[NSURLProtocol loadWithRequest:]):
2719 (-[NSURLProtocol setDefersCallbacks:]):
2720 * Loader/WebMainResourceLoader.h:
2721 * Loader/WebMainResourceLoader.m:
2722 (-[WebMainResourceLoader initWithFrameLoader:]):
2723 (-[WebMainResourceLoader dealloc]):
2724 (-[WebMainResourceLoader cancelWithError:]):
2725 (-[WebMainResourceLoader continueAfterNavigationPolicy:formState:]):
2726 (-[WebMainResourceLoader willSendRequest:redirectResponse:]):
2727 (-[WebMainResourceLoader continueAfterContentPolicy:]):
2728 (-[WebMainResourceLoader checkContentPolicy]):
2729 (-[WebMainResourceLoader didReceiveResponse:]):
2730 * Plugins/WebPluginContainerCheck.m:
2731 * WebCoreSupport/WebSystemInterface.m:
2732 (InitWebCoreSystemInterface):
2733 * WebView/WebDataSource.m:
2734 (-[WebDataSource _loadIcon]):
2735 (-[WebDataSource _cancelledError]):
2736 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
2737 (+[WebDataSource _representationClassForMIMEType:]):
2738 (-[WebDataSource _commitLoadWithData:]):
2739 (-[WebDataSource _isDocumentHTML]):
2740 * WebView/WebDataSourceInternal.h:
2741 * WebView/WebFramePrivate.h:
2742 * WebView/WebPolicyDelegate.m:
2743 * WebView/WebPolicyDelegatePrivate.h:
2745 2006-08-21 Maciej Stachowiak <mjs@apple.com>
2749 - move more code from WebDataSource to WebFrameLoader
2751 Also marked a few more methods in WebDataSource as likely MOVABLE in a future round, since they do not
2752 use any of WebDataSource's private data.
2754 * Loader/WebFrameLoader.h:
2755 * Loader/WebFrameLoader.m:
2756 (-[WebFrameLoader addPlugInStreamLoader:]):
2757 (-[WebFrameLoader removePlugInStreamLoader:]):
2758 (-[WebFrameLoader addSubresourceLoader:]):
2759 (-[WebFrameLoader removeSubresourceLoader:]):
2760 (-[WebFrameLoader _didReceiveAuthenticationChallenge:forResource:]):
2761 (-[WebFrameLoader _didCancelAuthenticationChallenge:forResource:]):
2762 (-[WebFrameLoader _didReceiveResponse:forResource:]):
2763 (-[WebFrameLoader _didReceiveData:contentLength:forResource:]):
2764 (-[WebFrameLoader _didFinishLoadingForResource:]):
2765 (-[WebFrameLoader _didFailLoadingWithError:forResource:]):
2766 (-[WebFrameLoader _privateBrowsingEnabled]):
2767 (-[WebFrameLoader _finishedLoadingResource]):
2768 (-[WebFrameLoader _receivedError:]):
2769 (-[WebFrameLoader _finishedLoading]):
2770 * Loader/WebMainResourceLoader.m:
2771 (-[WebMainResourceLoader didReceiveData:lengthReceived:allAtOnce:]):
2772 (-[WebMainResourceLoader didFinishLoading]):
2773 * Loader/WebNetscapePlugInStreamLoader.m:
2774 (-[WebNetscapePlugInStreamLoader didFinishLoading]):
2775 (-[WebNetscapePlugInStreamLoader didFailWithError:]):
2776 (-[WebNetscapePlugInStreamLoader cancelWithError:]):
2777 * Loader/WebSubresourceLoader.m:
2778 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
2779 (-[WebSubresourceLoader signalFinish]):
2780 (-[WebSubresourceLoader didFailWithError:]):
2781 (-[WebSubresourceLoader cancel]):
2782 * Plugins/WebNetscapePluginStream.m:
2783 (-[WebNetscapePluginStream start]):
2784 * WebView/WebDataSource.m:
2785 (-[WebDataSource _replaceSelectionWithArchive:selectReplacement:]):
2786 (-[WebDataSource _updateIconDatabaseWithURL:]):
2787 (-[WebDataSource _loadIcon]):
2788 (-[WebDataSource _setPrimaryLoadComplete:]):
2789 (-[WebDataSource _cancelledError]):
2790 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
2791 (+[WebDataSource _representationClassForMIMEType:]):
2792 (-[WebDataSource _commitLoadWithData:]):
2793 (-[WebDataSource _receivedMainResourceError:complete:]):
2794 (-[WebDataSource _iconLoaderReceivedPageIcon:]):
2795 (-[WebDataSource _isDocumentHTML]):
2796 * WebView/WebDataSourceInternal.h:
2798 2006-08-21 Brady Eidson <beidson@apple.com>
2802 Quick ICONDEBUG flag fix
2804 * Misc/WebIconDatabase.m:
2805 (-[WebIconDatabase _applicationWillTerminate:]):
2807 2006-08-21 Brady Eidson <beidson@apple.com>
2811 -Renamed an internal only method for clarity
2812 -Tweaked WebDataSource for notification purposes with the new expiring icons
2813 -Fixed a bug with the ICONDEBUG flag
2815 * Misc/WebIconDatabase.m:
2816 (-[WebIconDatabase init]):
2817 (-[WebIconDatabase iconForURL:withSize:cache:]): #ifdef bug fixed
2818 (-[WebIconDatabase _hasEntryForIconURL:]): Renamed for clarity
2819 * Misc/WebIconDatabasePrivate.h:
2820 * WebView/WebDataSource.m:
2821 (-[WebDataSource _updateIconDatabaseWithURL:]):
2822 (-[WebDataSource _notifyIconChanged:]):
2823 (-[WebDataSource _loadIcon]):
2824 (-[WebDataSource _iconLoaderReceivedPageIcon:]):
2826 2006-08-17 Maciej Stachowiak <mjs@apple.com>
2830 - pull a bit of WebDataSource code into WebFrameLoader
2832 * Loader/WebFrameLoader.m:
2833 (-[WebFrameLoader _receivedError:]):
2834 (-[WebFrameLoader webFrame]):
2835 (-[WebFrameLoader _handleFallbackContent]):
2836 (+[WebFrameLoader _canShowMIMEType:]):
2837 (+[WebFrameLoader _representationExistsForURLScheme:]):
2838 (+[WebFrameLoader _generatedMIMETypeForURLScheme:]):
2839 * WebView/WebDataSource.m:
2840 * WebView/WebDataSourceInternal.h:
2842 2006-08-17 Timothy Hatcher <timothy@apple.com>
2844 Reviewed by Kevin Decker.
2846 <rdar://problem/4606857> WebKit: WebPreferencesChangedNotification not exported in 64-bit
2850 2006-08-17 Timothy Hatcher <timothy@apple.com>
2852 Reviewed by Kevin Decker.
2854 <rdar://problem/4633896> -[WebView close] should clear all delegates and call setHostWindow:nil
2855 <rdar://problem/4649759> Crash when selecting View Source menu using Chinese (-[WebView _close])
2857 Check to make sure _private is not null. A WebView can be dealloced before _private is setup.
2858 Set the _private->closed flag at the beginning of _close to prevent reentry.
2859 Set the host window and all the delegates to nil in _close.
2861 * WebView/WebView.m:
2862 (-[WebView _close]):
2864 2006-08-16 Brady Eidson <beidson@apple.com>
2868 * Misc/WebIconDatabase.m: Pruned unused method
2869 * Misc/WebIconDatabasePrivate.h: Ditto
2872 2006-08-15 Maciej Stachowiak <mjs@apple.com>
2874 Reviewed by Adele (preliminary version) and later by Kevin.
2876 - remove most WebKit dependencies from WebMainResourceLoader.
2878 * Loader/WebFrameLoader.h:
2879 * Loader/WebFrameLoader.m:
2880 (-[WebFrameLoader cannotShowMIMETypeForURL:]):
2881 (-[WebFrameLoader interruptForPolicyChangeErrorWithRequest:]):
2882 (-[WebFrameLoader isHostedByObjectElement]):
2883 (-[WebFrameLoader isLoadingMainFrame]):
2884 (+[WebFrameLoader _canShowMIMEType:]):
2885 (+[WebFrameLoader _representationExistsForURLScheme:]):
2886 (+[WebFrameLoader _generatedMIMETypeForURLScheme:]):
2887 * Loader/WebMainResourceLoader.h:
2888 * Loader/WebMainResourceLoader.m:
2889 (-[WebMainResourceLoader interruptForPolicyChangeError]):
2890 (-[WebMainResourceLoader willSendRequest:redirectResponse:]):
2891 (isCaseInsensitiveEqual):
2892 (shouldLoadAsEmptyDocument):
2893 (-[WebMainResourceLoader continueAfterContentPolicy:response:]):
2894 (-[WebMainResourceLoader didReceiveResponse:]):
2895 (-[WebMainResourceLoader didReceiveData:lengthReceived:allAtOnce:]):
2896 (-[WebMainResourceLoader didFinishLoading]):
2897 (-[WebMainResourceLoader loadWithRequestNow:]):
2898 (-[WebMainResourceLoader loadWithRequest:]):
2900 2006-08-15 Tim Omernick <timo@apple.com>
2902 Reviewed by Kevin Decker.
2904 * Plugins/WebNetscapePluginPackage.m:
2905 (-[WebNetscapePluginPackage _unloadWithShutdown:]):
2906 Fixed a subtle problem with the 64-bit debug build -- as written, this would LOG() on 64-bit and do nothing on
2908 * Plugins/WebPluginDatabase.m:
2909 (-[WebPluginDatabase _scanForNewPlugins]):
2910 Use +[NSMutableSet set] here.
2912 2006-08-15 Tim Omernick <timo@apple.com>
2914 Reviewed by Darin Adler.
2916 <http://bugs.webkit.org/show_bug.cgi?id=8980>
2917 ASSERTION FAILED: !isLoaded (WebKit/WebKit/Plugins/WebBasePluginPackage.m:228 -[WebBasePluginPackage dealloc])
2919 <rdar://problem/4526052> intermittent assertion failure in -[WebBasePluginPackage dealloc] running layout tests (8980)
2921 * Plugins/WebPluginDatabase.h:
2922 * Plugins/WebPluginDatabase.m:
2923 (+[WebPluginDatabase installedPlugins]):
2924 Observe NSApplicationWillTerminateNotification so we can unload plug-ins on quit.
2925 (-[WebPluginDatabase plugins]):
2926 'plugins' is now a dictionary.
2927 (-[WebPluginDatabase close]):
2928 Call new -_removePlugin: method.
2929 (-[WebPluginDatabase refresh]):
2930 Moved parts of this method out into other methods: -_addPlugin:, -_removePlugin:, and -_scanForNewPlugins.
2931 (-[WebPluginDatabase _plugInPaths]):
2932 No changes; just moved in file.
2933 (-[WebPluginDatabase _addPlugin:]):
2934 New method. Refactored from -refresh. Adds a plug-in to the database.
2935 (-[WebPluginDatabase _removePlugin:]):
2936 New method. Refactored from -refresh. Remove a plug-in from the database.
2937 (-[WebPluginDatabase _scanForNewPlugins]):
2938 New method. Refactored from -refresh. Returns the list of plug-in packages on disk.
2939 (-[WebPluginDatabase _applicationWillTerminate]):
2940 New method. Called when the application terminates. Closes the plug-in database so that all plug-ins are
2941 removed from the DB (and unloaded if necessary).
2943 * Plugins/WebBasePluginPackage.h:
2944 * Plugins/WebBasePluginPackage.m:
2945 (-[WebBasePluginPackage initWithPath:]):
2946 Try to create the NSBundle first, so if the file is not a valid bundle we bail out early. This
2947 avoids some stat()s and allocations during the plug-in refresh process.
2948 (-[WebBasePluginPackage isLoaded]):
2950 (-[WebBasePluginPackage load]):
2951 Base class for plug-in packages now always loads "successfully".
2952 (-[WebBasePluginPackage dealloc]):
2953 Removed this assertion. The base plug-in package class has no concept of
2955 (-[WebBasePluginPackage finalize]):
2957 (-[WebBasePluginPackage wasRemovedFromPluginDatabase:]):
2958 Moved code to unload plug-in package to WebNetscapePluginPackage. Not all plug-in
2959 packages can be "unloaded".
2961 * Plugins/WebNetscapePluginPackage.h:
2962 * Plugins/WebNetscapePluginPackage.m:
2963 (-[WebNetscapePluginPackage _unloadWithShutdown:]):
2964 Combined old -unload and -unloadWithoutShutdown methods into this new one.
2965 (-[WebNetscapePluginPackage initWithPath:]):
2966 Call new unload method.
2967 (-[WebNetscapePluginPackage load]):
2969 (-[WebNetscapePluginPackage wasRemovedFromPluginDatabase:]):
2971 (-[WebNetscapePluginPackage open]):
2972 New method. Called when a plug-in instance starts running.
2973 (-[WebNetscapePluginPackage close]):
2974 New method. Called when a plug-in instance stops running. When all plug-in instances
2975 close the plug-in package, and the plug-in package is removed from the database, the plug-in
2978 * Plugins/WebPluginPackage.m:
2979 (-[WebPluginPackage initWithPath:]):
2980 (-[WebPluginPackage load]):
2981 Made this a bit more efficient by checking if the bundle is already loaded.
2982 (-[WebBasePluginPackage unload]):
2984 (-[WebBasePluginPackage isLoaded]):
2987 * Plugins/WebBaseNetscapePluginView.m:
2988 (-[WebBaseNetscapePluginView start]):
2989 Open the plug-in package so it remains loaded while this instance uses it.
2990 (-[WebBaseNetscapePluginView stop]):
2991 Close the plug-in package when the plug-in instance is stopped.
2993 * Plugins/WebBaseNetscapePluginStream.m:
2994 (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:]):
2995 This check is not necessary. Netscape plug-in packages are never unloaded until all their instances have
2996 been stopped, and a Netscape plug-in instance will stop its streams when it is stopped.
2997 (-[WebBaseNetscapePluginStream _destroyStream]):
2999 (-[WebBaseNetscapePluginStream finishedLoadingWithData:]):
3001 (-[WebBaseNetscapePluginStream _deliverData]):
3004 2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
3008 Build fix: DWARF and -gfull are incompatible with symbol separation.
3010 * WebKit.xcodeproj/project.pbxproj:
3012 2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
3016 http://bugs.webkit.org/show_bug.cgi?id=10394
3017 Bug 10394: WebKit Release and Production configurations should enable dead code stripping
3019 * WebKit.xcodeproj/project.pbxproj:
3021 2006-08-15 Maciej Stachowiak <mjs@apple.com>
3025 - remove WebKit dependencies from WebPlugInStreamLoader via a protocol veil of ignorance
3027 * Loader/WebNetscapePlugInStreamLoader.h:
3028 * Loader/WebNetscapePlugInStreamLoader.m:
3029 (-[WebNetscapePlugInStreamLoader initWithDelegate:frameLoader:]):
3030 * Loader/WebPlugInStreamLoaderDelegate.h: Added.
3031 * Plugins/WebBaseNetscapePluginStream.h:
3032 * Plugins/WebNetscapePluginStream.m:
3033 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
3034 * WebKit.xcodeproj/project.pbxproj:
3036 2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
3040 http://bugs.webkit.org/show_bug.cgi?id=10384
3041 Bug 10384: Switch to DWARF for Release configuration
3043 * WebKit.xcodeproj/project.pbxproj:
3045 2006-08-15 Graham Dennis <graham.dennis@gmail.com>
3049 - patch for http://bugs.webkit.org/show_bug.cgi?id=10314
3050 WebUnarchivingState archivedResourceForURL: doesn't work
3052 * WebView/WebUnarchivingState.m:
3053 (-[WebUnarchivingState archivedResourceForURL:]):
3054 Fixed to get objects from the archived resources dictionary using
3055 the URL as a string instead of as the URL itself (as this is how
3056 the data is put into the dictionary).
3058 2006-08-14 Maciej Stachowiak <mjs@apple.com>
3062 - remove many (but not all) WebKit dependencies from WebNetscapePlugInStreamLoader (it still
3063 depends on WebNetscapePluginStream).
3065 * Loader/WebFrameLoader.h:
3066 * Loader/WebFrameLoader.m:
3067 (-[WebFrameLoader fileDoesNotExistErrorWithResponse:]):
3068 * Loader/WebNetscapePlugInStreamLoader.h:
3069 * Loader/WebNetscapePlugInStreamLoader.m:
3070 (-[WebNetscapePlugInStreamLoader initWithStream:frameLoader:]):
3071 (-[WebNetscapePlugInStreamLoader releaseResources]):
3072 (-[WebNetscapePlugInStreamLoader didReceiveResponse:]):
3073 * Plugins/WebNetscapePluginStream.m:
3074 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
3076 2006-08-14 Maciej Stachowiak <mjs@apple.com>
3078 Reviewed by Tim Omernick.
3080 - fixed REGRESSION: crash when leaving youtube page while movie is still loading
3081 http://bugs.webkit.org/show_bug.cgi?id=10398
3083 * Loader/WebNetscapePlugInStreamLoader.m:
3084 (-[WebNetscapePlugInStreamLoader initWithStream:view:]): Set the frame loader for this stream.
3085 (-[WebNetscapePlugInStreamLoader cancelWithError:]): Make sure to destroy the stream as well;
3086 otherwise, when we try to clean up later, we won't have the right context.
3088 2006-08-14 David Hyatt <hyatt@apple.com>
3090 Fix for Radar bug 4478840, Safari should not reduce null events sent to
3091 plug-ins in windows that are inactive but visible.
3093 With this fix you can view videos in visible background windows on YouTube
3094 (for example) and not see any drop in frame rate.
3098 * Plugins/WebBaseNetscapePluginView.m:
3099 (-[WebBaseNetscapePluginView restartNullEvents]):
3101 2006-08-14 Maciej Stachowiak <mjs@apple.com>
3105 - removed WebKit-level dependencies from WebFormDataStream. Use WebCore version of system interface
3107 * Loader/WebFormDataStream.m:
3109 (formEventCallback):
3111 * WebCoreSupport/WebSystemInterface.m:
3112 (InitWebCoreSystemInterface):
3114 2006-08-14 Maciej Stachowiak <mjs@apple.com>
3116 Rubber stamped by Brady.
3118 - move WebFormDataStream from WebView to Loader
3120 * WebKit.xcodeproj/project.pbxproj:
3121 * WebView/WebFormDataStream.h: Removed.
3122 * WebView/WebFormDataStream.m: Removed.
3124 2006-08-13 Maciej Stachowiak <mjs@apple.com>
3128 - remove WebKit dependencies from WebSubresourceLoader, except WebFormDataStream
3130 (WebFormDataStream will be moved into the Loader directory soon)
3132 * Loader/WebFrameLoader.h:
3133 * Loader/WebFrameLoader.m:
3134 (-[WebFrameLoader _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
3135 * Loader/WebSubresourceLoader.m:
3136 (isConditionalRequest):
3137 (hasCaseInsensitivePrefix):
3140 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
3142 2006-08-13 Brady Eidson <beidson@apple.com>
3146 Relocated the WebIconLoaders
3148 * Misc/WebIconLoader.h: Moved to Loader/
3149 * Misc/WebIconLoader.m: Moved to Loader/
3150 * WebKit.xcodeproj/project.pbxproj:
3152 2006-08-13 Maciej Stachowiak <mjs@apple.com>
3156 - removed non-Loader WebKit dependencies from WebDataProtocol for
3157 real (whoops) and fix some typos.
3159 * Loader/WebDataProtocol.m:
3160 (isCaseInsensitiveEqual): Added.
3161 (+[WebDataProtocol _webIsDataProtocolURL:]): Avoid WebKit calls.
3162 (-[WebDataProtocol startLoading]): ditto
3163 * Loader/WebFrameLoader.m:
3164 (isCaseInsensitiveEqual): Fixed spelling from isCaseSensitiveEqual.
3165 (-[WebFrameLoader _canUseResourceForRequest:]): Use proper call.
3167 2006-08-13 Brady Eidson <beidson@apple.com>
3171 The way of detecting a failed icon load before was to try and construct
3172 an image from the icon and if that image construction failed, mark the icon
3174 A much more efficient way is to check for an error response. We'll still
3175 check for invalid image data, but most servers will correctly return an HTTP
3176 error on a missing icon.
3178 * Misc/WebIconLoader.m:
3179 (-[WebIconLoader didFinishLoading]): Added check for http error response
3181 2006-08-13 Maciej Stachowiak <mjs@apple.com>
3185 - remove all non-Loader dependencies from WebLoader
3187 As part of this I moved WebDataProtocol to the loader directory
3188 and removed dependencies on the rest of WebKit from that too.
3190 * Loader/WebFrameLoader.h:
3191 * Loader/WebFrameLoader.m:
3192 (-[WebFrameLoader setDefersCallbacks:]):
3193 (-[WebFrameLoader stopLoading]):
3194 (-[WebFrameLoader cancelledErrorWithRequest:]):
3195 (-[WebFrameLoader clearArchivedResources]):
3196 (-[WebFrameLoader deliverArchivedResources]):
3197 (-[WebFrameLoader deliverArchivedResourcesAfterDelay]):
3198 (isCaseSensitiveEqual):
3199 (-[WebFrameLoader _canUseResourceForRequest:]):
3200 (-[WebFrameLoader _canUseResourceWithResponse:]):
3201 (-[WebFrameLoader pendingArchivedResources]):
3202 (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
3203 (-[WebFrameLoader archiveLoadPendingForLoader:]):
3204 (-[WebFrameLoader cancelPendingArchiveLoadForLoader:]):
3205 * Loader/WebLoader.h:
3206 * Loader/WebLoader.m:
3207 (-[NSURLProtocol releaseResources]):
3208 (-[NSURLProtocol loadWithRequest:]):
3209 (-[NSURLProtocol setDefersCallbacks:]):
3210 (-[NSURLProtocol addData:allAtOnce:]):
3211 (-[NSURLProtocol resourceData]):
3212 (-[NSURLProtocol didReceiveData:lengthReceived:allAtOnce:]):
3213 (-[NSURLProtocol connection:didReceiveData:lengthReceived:]):
3214 (-[NSURLProtocol cancelWithError:]):
3215 (-[NSURLProtocol cancelledError]):
3216 * Loader/WebMainResourceLoader.m:
3217 (-[WebMainResourceLoader addData:allAtOnce:]):
3218 (-[WebMainResourceLoader didReceiveData:lengthReceived:allAtOnce:]):
3219 * Loader/WebNetscapePlugInStreamLoader.m:
3220 (-[WebNetscapePlugInStreamLoader didReceiveData:lengthReceived:allAtOnce:]):
3221 * Loader/WebSubresourceLoader.m:
3222 (-[WebSubresourceLoader didReceiveData:lengthReceived:allAtOnce:]):
3223 * WebKit.xcodeproj/project.pbxproj:
3224 * WebView/WebDataProtocol.h: Removed.
3225 * WebView/WebDataProtocol.m: Removed.
3227 2006-08-11 Tim Omernick <timo@apple.com>
3231 <http://bugs.webkit.org/show_bug.cgi?id=10111> - Menu flickers over Flash content
3232 <rdar://problem/3052546> Plugins don't work with z-index (overlapping elements, etc.)
3234 * Plugins/WebBaseNetscapePluginView.m:
3235 (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
3236 Don't just clip to the dirty region for "transparent" plug-ins -- do it for all plug-ins. This is a
3237 generally useful thing to do, as it prevents the plug-in from drawing over parts of the window that
3238 have already been drawn and are not expected to be redrawn in the same update.
3240 2006-08-11 Brady Eidson <beidson@apple.com>
3242 Reviewed by John, Timo, Adele, and Darin
3244 In addition to a few style/good-practice cleanups, this patch will convert the old icon database
3245 format to the WebCore format if the WebCore db is empty (implying this conversion has yet to take
3246 place). After the conversion, it will delete all traces of the old format to free the unneeded space
3248 * Misc/WebIconDatabase.m:
3249 (-[WebIconDatabase init]):
3250 (-[WebIconDatabase _setIconURL:forURL:]): Changed the bridge's name for this method to be more clear
3251 (-[WebIconDatabase _createFileDatabase]):
3252 (-[WebIconDatabase _iconDataForIconURL:]): This grabs the raw data for use in the conversion function
3253 (-[WebIconDatabase _convertToWebCoreFormat]): This does the actual conversion
3255 2006-08-11 Tim Omernick <timo@apple.com>
3257 Reviewed by John Sullivan.
3259 Needed for <rdar://problem/4678070>.
3261 * Plugins/WebBaseNetscapePluginView.m:
3262 (-[WebBaseNetscapePluginView sendEvent:]):
3263 Changed an assertion to an early return. It should be possible to send events, especially updateEvt (for image capturing
3264 purposes), to off-screen plug-ins. It just doesn't work right now. See <rdar://problem/4318269>.
3266 2006-08-11 John Sullivan <sullivan@apple.com>
3270 - fixed <rdar://problem/4522894> Would be nice if Safari shrank pages a little if necessary
3271 to avoid printing an almost-empty page
3273 * WebView/WebHTMLView.m:
3274 (-[NSArray knowsPageRange:]):
3275 If the last page has a short-enough orphan (< 1/10 of the page height is the number I pulled
3276 out of ... the air), then we adjust the scale factor slightly and check whether this reduces
3277 the page count and thus eliminates the orphan.
3279 2006-08-07 Brady Eidson <beidson@apple.com>
3281 Reviewed by Anders and John
3283 * Misc/WebIconDatabase.m:
3284 (-[WebIconDatabase init]):
3285 (-[WebIconDatabase isIconExpiredForIconURL:]): Get if an icon expired
3286 (-[WebIconDatabase isIconExpiredForPageURL:]): Ditto
3287 (-[WebIconDatabase _setIconURL:forURL:]):
3288 (-[WebIconDatabase _sendNotificationForURL:]): Moved to WebKitPendingPublic for use outside of WebIconDatabase
3289 (-[WebIconDatabase loadIconFromURL:]): Allow a load outside the context of a page load
3290 * Misc/WebIconDatabasePrivate.h:
3292 * Misc/WebIconLoader.m:
3293 (-[WebIconLoader didFinishLoading]): fixed up the "flipping the switch" #defs a bit
3294 (-[WebIconLoader willSendRequest:redirectResponse:]): override to allow a load
3295 outside of the context of a page load
3297 * WebCoreSupport/WebIconDatabaseBridge.h: Added.
3298 * WebCoreSupport/WebIconDatabaseBridge.m: Added.
3299 (-[WebIconDatabaseBridge init]):
3300 (-[WebIconDatabaseBridge dealloc]):
3301 (-[WebIconDatabaseBridge loadIconFromURL:]): Kick off a load on an icon outside
3302 of the context of any page load
3303 (-[WebIconDatabaseBridge _setIconData:forIconURL:]): WebKit side of bridge method
3304 (-[WebIconDatabaseBridge _setHaveNoIconForIconURL:]): WebKit side of bridge method
3305 (-[WebIconDatabaseBridge releaseCachedLoaderForIconURL:]):
3306 (+[WebIconDatabaseBridge sharedBridgeInstance]): Moved this from WebCore to WebKit
3307 so both sides of the bridge get the WebKit version
3308 * WebKit.xcodeproj/project.pbxproj: Added some files
3309 * WebView/WebDataSource.m:
3310 (-[WebDataSource _loadIcon]): Added check for reload/expired icon to force
3311 a load even if we already have it
3313 2006-08-04 Sam Weinig <sam.weinig@gmail.com>
3317 - patch for http://bugs.webkit.org/show_bug.cgi?id=10192
3318 Make WebCore (and friends) compile with -Wshorten-64-to-32
3320 * Adds 'f' to float literals where expecting a float.
3321 * Use ceilf() instead of ceil() when assigning to a float.
3322 * Adds explicit casts where OK.
3324 NOTE: The -Wshorten-64-to-32 flag was not added for WebKit
3325 because there are still a few places where no error handling
3326 is in place. The flag can be added as soon as those are worked
3329 * Misc/WebNSControlExtras.m:
3330 (-[NSControl sizeToFitAndAdjustWindowHeight]):
3331 * Misc/WebNSImageExtras.m:
3332 (-[NSImage _web_scaleToMaxSize:]):
3333 * Misc/WebNSViewExtras.h:
3334 * Misc/WebNSViewExtras.m:
3335 * Plugins/WebBaseNetscapePluginView.m:
3336 (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
3337 (-[WebBaseNetscapePluginView drawRect:]):
3338 * WebCoreSupport/WebFrameBridge.m:
3339 (-[WebFrameBridge expiresTimeForResponse:]):
3340 * WebInspector/WebInspector.m:
3341 (-[NSWindow window]):
3342 (-[WebInspector treeViewScrollTo:]):
3343 (-[WebInspector _updateSystemColors]):
3344 (-[WebInspector webView:plugInViewWithArguments:]):
3345 (-[WebInspector outlineView:objectValueForTableColumn:byItem:]):
3346 * WebInspector/WebInspectorOutlineView.m:
3347 (-[WebInspectorOutlineView _highlightRow:clipRect:]):
3348 * WebInspector/WebNodeHighlight.m:
3349 (-[WebNodeHighlight initWithBounds:andRects:forView:]):
3350 * WebInspector/WebNodeHighlightView.m:
3351 (-[WebNodeHighlightView roundedRect:withRadius:]):
3352 (-[WebNodeHighlightView initWithHighlight:andRects:forView:]):
3353 (-[WebNodeHighlightView drawRect:]):
3354 * WebView/WebFrame.m:
3355 (-[WebFrame _opened]):
3356 * WebView/WebFrameView.m:
3357 (-[WebFrameView initWithFrame:]):
3358 * WebView/WebHTMLView.m:
3359 (-[WebHTMLView _dragImageForLinkElement:]):
3360 (-[WebHTMLView _web_setPrintingModeRecursive]):
3361 (-[WebHTMLView _web_clearPrintingModeRecursive]):
3362 (-[NSArray layout]):
3363 (-[NSArray _setPrinting:minimumPageWidth:maximumPageWidth:adjustViewSize:]):
3364 (-[NSArray adjustPageHeightNew:top:bottom:limit:]):
3365 (-[NSArray _scaleFactorForPrintOperation:]):
3366 (-[NSArray setPageWidthForPrinting:]):
3367 (-[NSArray _endPrintMode]):
3368 (-[NSArray knowsPageRange:]):
3369 (-[NSArray _originalFontA]):
3370 (-[NSArray _originalFontB]):
3371 (-[WebTextCompleteController _buildUI]):
3372 (-[WebTextCompleteController _placePopupWindow:]):
3373 * WebView/WebPDFView.m:
3374 (-[WebPDFView _makeTextStandardSize:]):
3375 (-[WebPDFView selectionImageForcingWhiteText:]):
3376 (-[PDFPrefUpdatingProxy forwardInvocation:]):
3377 * WebView/WebPreferences.m:
3378 (-[WebPreferences _floatValueForKey:]):
3379 * WebView/WebView.m:
3380 (-[WebView makeTextSmaller:]):
3381 (-[WebView canMakeTextStandardSize]):
3382 (-[WebView makeTextStandardSize:]):
3384 2006-08-04 David Kilzer <ddkilzer@kilzer.net>
3386 Reviewed by NOBODY (build fix).
3388 * WebCoreSupport/WebSubresourceLoader.m: REALLY moved to Loader/
3389 * WebView/WebFrameLoader.h: REALLY moved to Loader/
3390 * WebView/WebFrameLoader.m: REALLY moved to Loader/
3391 * WebView/WebLoader.h: REALLY moved to Loader/
3392 * WebView/WebLoader.m: REALLY moved to Loader/
3393 * WebView/WebMainResourceLoader.m: REALLY moved to Loader/
3395 2006-08-03 Maciej Stachowiak <mjs@apple.com>
3399 - moved all loader code that is slated to be moved down to WebCore to a new Loader directory
3401 (next step is to remove dependencies on the rest of WebKit from this directory)
3403 * Loader/WebNetscapePlugInStreamLoader.h: Added.
3404 * Loader/WebNetscapePlugInStreamLoader.m: Added. Cut out of WebNetscapePluginStream.m
3405 (-[WebNetscapePlugInStreamLoader initWithStream:view:]):
3406 (-[WebNetscapePlugInStreamLoader isDone]):
3407 (-[WebNetscapePlugInStreamLoader releaseResources]):
3408 (-[WebNetscapePlugInStreamLoader didReceiveResponse:]):
3409 (-[WebNetscapePlugInStreamLoader didReceiveData:lengthReceived:]):
3410 (-[WebNetscapePlugInStreamLoader didFinishLoading]):
3411 (-[WebNetscapePlugInStreamLoader didFailWithError:]):
3412 (-[WebNetscapePlugInStreamLoader cancelWithError:]):
3413 * Plugins/WebNetscapePluginStream.m:
3414 * WebKit.xcodeproj/project.pbxproj:
3415 * WebCoreSupport/WebSubresourceLoader.h: Moved to Loader/
3416 * WebCoreSupport/WebSubresourceLoader.m: Moved to Loader/
3417 * WebView/WebFrameLoader.h: Moved to Loader/
3418 * WebView/WebFrameLoader.m: Moved to Loader/
3419 * WebView/WebLoader.h: Moved to Loader/
3420 * WebView/WebLoader.m: Moved to Loader/
3421 * WebView/WebMainResourceLoader.h: Moved to Loader/
3422 * WebView/WebMainResourceLoader.m: Moved to Loader/
3424 2006-08-03 Tim Omernick <timo@apple.com>
3426 Reviewed by Kevin Decker.
3428 <rdar://problem/4667460> Windowless OpenGL plug-ins render incorrectly on PowerPC
3430 * Plugins/WebBaseNetscapePluginView.m:
3431 (-[WebBaseNetscapePluginView _aglOffscreenImageForDrawingInRect:]):
3432 Fixed color component swapping so that it works on both x86 and PPC. See comments.
3434 2006-08-03 Brady Eidson <beidson@apple.com>
3436 Reviewed by Tim Hatcher's rubber stamp
3437 Fixed Intel build break caused by weinig's -W change in r15781
3439 * WebView/WebView.m: wrapped cpu-dependent defs with defined() macro
3441 2006-08-03 Maciej Stachowiak <mjs@apple.com>
3445 - fixed problem that could cause assertion failures in Safari
3447 * Plugins/WebBaseNetscapePluginView.m:
3448 (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]): Don't
3449 allow a plugin to start new loads once its document is no longer the one actively loading.
3451 2006-08-03 Maciej Stachowiak <mjs@apple.com>
3455 - remove use of WebDataSource from WebLoader and subclasses, just have them talk to the
3456 WebFrameLoader instead.
3458 For now this is done by forarding all the calls.
3460 * Misc/WebIconLoader.m:
3461 (-[WebIconLoader didFinishLoading]):
3462 * Plugins/WebNetscapePluginStream.m:
3463 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
3464 (-[WebNetscapePluginStream start]):
3465 (-[WebNetscapePlugInStreamLoader didFinishLoading]):
3466 (-[WebNetscapePlugInStreamLoader didFailWithError:]):
3467 (-[WebNetscapePlugInStreamLoader cancelWithError:]):
3468 * WebCoreSupport/WebFrameBridge.m:
3469 (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
3470 (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
3471 * WebCoreSupport/WebSubresourceLoader.h:
3472 * WebCoreSupport/WebSubresourceLoader.m:
3473 (-[WebSubresourceLoader initWithLoader:frameLoader:]):
3474 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
3475 (+[WebSubresourceLoader startLoadingResource:withMethod:URL:customHeaders:referrer:forFrameLoader:]):
3476 (+[WebSubresourceLoader startLoadingResource:withMethod:URL:customHeaders:postData:referrer:forFrameLoader:]):
3477 (-[WebSubresourceLoader receivedError:]):
3478 (-[WebSubresourceLoader signalFinish]):
3479 (-[WebSubresourceLoader didFailWithError:]):
3480 (-[WebSubresourceLoader cancel]):
3481 * WebKit.xcodeproj/project.pbxproj:
3482 * WebView/WebDataSource.m:
3483 (-[WebDataSource _updateLoading]):
3484 (-[WebDataSource textEncodingName]):
3485 (-[WebDataSource _mainReceivedBytesSoFar:complete:]):
3486 * WebView/WebFrameLoader.h:
3487 * WebView/WebFrameLoader.m:
3488 (-[WebFrameLoader loadIconWithRequest:]):
3489 (-[WebFrameLoader startLoadingMainResourceWithRequest:identifier:]):
3490 (-[WebFrameLoader clearIconLoader]):
3491 (-[WebFrameLoader commitProvisionalLoad]):
3492 (-[WebFrameLoader activeDataSource]):
3493 (-[WebFrameLoader _archivedSubresourceForURL:]):
3494 (-[WebFrameLoader _defersCallbacks]):
3495 (-[WebFrameLoader _identifierForInitialRequest:]):
3496 (-[WebFrameLoader _willSendRequest:forResource:redirectResponse:]):
3497 (-[WebFrameLoader _didReceiveAuthenticationChallenge:forResource:]):
3498 (-[WebFrameLoader _didCancelAuthenticationChallenge:forResource:]):
3499 (-[WebFrameLoader _didReceiveResponse:forResource:]):
3500 (-[WebFrameLoader _didReceiveData:contentLength:forResource:]):
3501 (-[WebFrameLoader _didFinishLoadingForResource:]):
3502 (-[WebFrameLoader _didFailLoadingWithError:forResource:]):
3503 (-[WebFrameLoader _privateBrowsingEnabled]):
3504 (-[WebFrameLoader _addPlugInStreamLoader:]):
3505 (-[WebFrameLoader _removePlugInStreamLoader:]):
3506 (-[WebFrameLoader _finishedLoadingResource]):
3507 (-[WebFrameLoader _receivedError:]):
3508 (-[WebFrameLoader _addSubresourceLoader:]):
3509 (-[WebFrameLoader _removeSubresourceLoader:]):
3510 (-[WebFrameLoader _originalRequest]):
3511 (-[WebFrameLoader webFrame]):
3512 (-[WebFrameLoader _receivedMainResourceError:complete:]):
3513 (-[WebFrameLoader initialRequest]):
3514 (-[WebFrameLoader _receivedData:]):
3515 (-[WebFrameLoader _setRequest:]):
3516 (-[WebFrameLoader _downloadWithLoadingConnection:request:response:proxy:]):
3517 (-[WebFrameLoader _handleFallbackContent]):
3518 (-[WebFrameLoader _isStopping]):
3519 (-[WebFrameLoader _decidePolicyForMIMEType:decisionListener:]):
3520 (-[WebFrameLoader _setupForReplaceByMIMEType:]):
3521 (-[WebFrameLoader _setResponse:]):
3522 (-[WebFrameLoader _mainReceivedError:complete:]):
3523 (-[WebFrameLoader _finishedLoading]):
3524 (-[WebFrameLoader _mainReceivedBytesSoFar:complete:]):
3525 (-[WebFrameLoader _iconLoaderReceivedPageIcon:]):
3526 (-[WebFrameLoader _URL]):
3527 * WebView/WebLoader.h:
3528 * WebView/WebLoader.m:
3529 (-[NSURLProtocol releaseResources]):
3530 (-[NSURLProtocol loadWithRequest:]):
3531 (-[NSURLProtocol setFrameLoader:]):
3532 (-[NSURLProtocol frameLoader]):
3533 (-[NSURLProtocol willSendRequest:redirectResponse:]):
3534 (-[NSURLProtocol didReceiveAuthenticationChallenge:]):
3535 (-[NSURLProtocol didCancelAuthenticationChallenge:]):
3536 (-[NSURLProtocol didReceiveResponse:]):
3537 (-[NSURLProtocol didReceiveData:lengthReceived:]):
3538 (-[NSURLProtocol signalFinish]):
3539 (-[NSURLProtocol didFailWithError:]):
3540 (-[NSURLProtocol willCacheResponse:]):
3541 (-[NSURLProtocol cancelWithError:]):
3542 * WebView/WebMainResourceLoader.h:
3543 * WebView/WebMainResourceLoader.m:
3544 (-[WebMainResourceLoader initWithFrameLoader:]):
3545 (-[WebMainResourceLoader receivedError:]):
3546 (-[WebMainResourceLoader cancelWithError:]):
3547 (-[WebMainResourceLoader _isPostOrRedirectAfterPost:redirectResponse:]):
3548 (-[WebMainResourceLoader addData:]):
3549 (-[WebMainResourceLoader willSendRequest:redirectResponse:]):
3550 (-[WebMainResourceLoader continueAfterContentPolicy:response:]):
3551 (-[WebMainResourceLoader continueAfterContentPolicy:]):
3552 (-[WebMainResourceLoader checkContentPolicyForResponse:]):
3553 (-[WebMainResourceLoader didReceiveResponse:]):
3554 (-[WebMainResourceLoader didReceiveData:lengthReceived:]):
3555 (-[WebMainResourceLoader didFinishLoading]):
3556 (-[WebMainResourceLoader didFailWithError:]):
3557 (-[WebMainResourceLoader loadWithRequestNow:]):
3559 2006-08-03 Sam Weinig <sam.weinig@gmail.com>
3563 - patch for http://bugs.webkit.org/show_bug.cgi?id=10176
3564 Make WebCore compile with -Wundef
3566 * Adds -Wundef flag to Xcode project
3567 * Converts #ifs to #ifdef and #ifndefs where needed.
3569 * Carbon/CarbonUtils.m:
3570 * Carbon/CarbonWindowAdapter.m:
3571 * Carbon/HIViewAdapter.m:
3572 (+[NSView bindHIViewToNSView:nsView:]):
3573 * Carbon/HIWebView.m:
3574 (HIWebViewEventHandler):
3575 * Misc/WebFileDatabase.m:
3576 (UniqueFilePathForKey):
3577 * Misc/WebNSWindowExtras.m:
3578 (swizzleInstanceMethod):
3579 * Misc/WebTypesInternal.h:
3580 * Plugins/WebNetscapeDeprecatedFunctions.c:
3581 * Plugins/WebNetscapeDeprecatedFunctions.h:
3582 * Plugins/WebNetscapePluginPackage.h:
3583 * Plugins/WebNetscapePluginPackage.m:
3584 (-[WebNetscapePluginPackage unloadWithoutShutdown]):
3585 (-[WebNetscapePluginPackage load]):
3586 * WebKit.xcodeproj/project.pbxproj:
3588 2006-08-03 Darin Adler <darin@apple.com>
3590 Reviewed by Eric Seidel.
3594 * WebView/WebFrame.m: (-[WebFramePrivate dealloc]): Release the frame loader.
3596 2006-08-02 Timothy Hatcher <timothy@apple.com>
3598 Rubber stamped by Maciej.
3600 Adding back resultsWithXpathQuery, removed by Darin's earlier change.
3601 This function is called from ObjC, but not used from JavaScript.
3603 * WebInspector/webInspector/inspector.js:
3605 2006-08-02 Timothy Hatcher <timothy@apple.com>
3609 Bug 10200: [Drosera] Deadlock between Drosera and Safari while loading page
3610 http://bugs.webkit.org/show_bug.cgi?id=10200
3612 Prevent reentrancy in our debugger callbacks. This was causing a deadlock in Drosera because
3613 suspendProcessIfPaused was being called during a DO call into Safari.
3615 Preventing reentrancy also prevents scripts that Drosera injects and evaluates from showing
3616 up in rare cases (such as a iframe loading about:blank). I thought this would prevent cases
3617 where you call a function from the console and expect it to break on a breakpoint in them, but
3618 this appears to never have worked even without this change. When that is figured out we can
3619 reconsider a better solution to reentrancy. I have filed that as bug 10214.
3621 I also removed the NSRunLoop runMode:beforeDate: calls since DO handles this for us since
3622 we don't use "onway void" as the return type for the callbacks. Note: using onway void for
3623 the listener callbacks causes bad synchronization issues and obscure crashes.
3625 * DefaultDelegates/WebScriptDebugServer.m:
3626 (-[WebScriptDebugServer webView:didLoadMainResourceForDataSource:]):
3627 (-[WebScriptDebugServer webView:didParseSource:baseLineNumber:fromURL:sourceId:forWebFrame:]):
3628 (-[WebScriptDebugServer webView:failedToParseSource:baseLineNumber:fromURL:withError:forWebFrame:]):
3629 (-[WebScriptDebugServer webView:didEnterCallFrame:sourceId:line:forWebFrame:]):
3630 (-[WebScriptDebugServer webView:willExecuteStatement:sourceId:line:forWebFrame:]):
3631 (-[WebScriptDebugServer webView:willLeaveCallFrame:sourceId:line:forWebFrame:]):
3632 (-[WebScriptDebugServer webView:exceptionWasRaised:sourceId:line:forWebFrame:]):
3633 * DefaultDelegates/WebScriptDebugServerPrivate.h:
3635 2006-08-02 Maciej Stachowiak <mjs@apple.com>
3639 - fix assertion failure on layout tests by stopping plugins from loading at a clearly defined time
3640 - add more assertions for safety
3642 * WebView/WebDataSource.m:
3643 (-[WebDataSourcePrivate dealloc]): Removed obsolete comment.
3644 (-[WebDataSource _updateLoading]): Add assertion ensuring this method is only called
3645 at a time when this data source is the one that might be loading for a frame.
3646 (-[WebDataSource _stopLoading]): Stop loading plugins as a FIXME suggests we should.
3647 * WebView/WebFrameLoader.m:
3648 (-[WebFrameLoader isLoadingPlugIns]): New helper method.
3649 (-[WebFrameLoader isLoading]): Consider plugin loads too - otherwise we won't stop them
3650 at stopLoading time.
3652 2006-08-02 Adam Roben <aroben@apple.com>
3656 - Rename TransferJob to ResourceLoader (this file was forgotten in an
3657 earlier change by Maciej)
3661 2006-08-01 Maciej Stachowiak <mjs@apple.com>
3665 - Change things around so WebFrameLoader tracks the main and provisional data source,
3666 as well as the frame load state, pulling much code out of WebFrame along the way.
3668 The most significant aspects of this change are:
3670 - management of WebDataSources and WebFrameState was moved into WebFrameLoader
3671 - there is now just one WebFrameLoader shared between the primary and provisional data source
3673 * WebKit.xcodeproj/project.pbxproj:
3674 * WebView/WebDataSource.m:
3675 (-[WebDataSourcePrivate dealloc]):
3676 (-[WebDataSource _updateLoading]):
3677 (-[WebDataSource _loadIcon]):
3678 (-[WebDataSource _setPrimaryLoadComplete:]):
3679 (-[WebDataSource _stopLoading]):
3680 (-[WebDataSource _startLoading]):
3681 (-[WebDataSource _addSubresourceLoader:]):
3682 (-[WebDataSource _removeSubresourceLoader:]):
3683 (-[WebDataSource _addPlugInStreamLoader:]):
3684 (-[WebDataSource _removePlugInStreamLoader:]):
3685 (-[WebDataSource _defersCallbacksChanged]):
3686 (-[WebDataSource _stopLoadingWithError:]):
3687 (-[WebDataSource _revertToProvisionalState]):
3688 (-[WebDataSource _setupForReplaceByMIMEType:]):
3689 (-[WebDataSource initWithRequest:]):
3690 (-[WebDataSource data]):
3691 (-[WebDataSource isLoading]):
3692 * WebView/WebFrame.m:
3693 (-[WebFramePrivate init]):
3694 (-[WebFramePrivate dealloc]):
3695 (-[WebFrame _closeOldDataSources]):
3696 (-[WebFrame _detachFromParent]):
3697 (-[WebFrame _makeDocumentView]):
3698 (-[WebFrame _receivedMainResourceError:]):
3699 (-[WebFrame _transitionToCommitted:]):
3700 (+[WebFrame _timeOfLastCompletedLoad]):
3701 (-[WebFrame _checkLoadCompleteForThisFrame]):
3702 (-[WebFrame _loadItem:withLoadType:]):
3703 (-[WebFrame _continueAfterWillSubmitForm:]):
3704 (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
3705 (-[WebFrame _initWithWebFrameView:webView:bridge:]):
3706 (-[WebFrame _frameLoader]):
3707 (-[WebFrame _provisionalLoadStarted]):
3708 (-[WebFrame _prepareForDataSourceReplacement]):
3709 (-[WebFrame _frameLoadCompleted]):
3710 (-[WebFrame provisionalDataSource]):
3711 (-[WebFrame dataSource]):
3712 (-[WebFrame stopLoading]):
3713 * WebView/WebFrameInternal.h:
3714 * WebView/WebFrameLoader.h:
3715 * WebView/WebFrameLoader.m:
3716 (-[WebFrameLoader initWithWebFrame:]):
3717 (-[WebFrameLoader dealloc]):
3718 (-[WebFrameLoader dataSource]):
3719 (-[WebFrameLoader _setDataSource:]):
3720 (-[WebFrameLoader clearDataSource]):
3721 (-[WebFrameLoader provisionalDataSource]):
3722 (-[WebFrameLoader _setProvisionalDataSource:]):
3723 (-[WebFrameLoader _clearProvisionalDataSource]):
3724 (-[WebFrameLoader state]):
3725 (+[WebFrameLoader timeOfLastCompletedLoad]):
3726 (-[WebFrameLoader _setState:]):
3727 (-[WebFrameLoader clearProvisionalLoad]):
3728 (-[WebFrameLoader markLoadComplete]):
3729 (-[WebFrameLoader commitProvisionalLoad]):
3730 (-[WebFrameLoader stopLoading]):
3731 (-[WebFrameLoader startLoading]):
3732 (-[WebFrameLoader startProvisionalLoad:]):
3733 (-[WebFrameLoader setupForReplace]):
3734 * WebView/WebFramePrivate.h:
3736 2006-08-01 Tim Omernick <timo@apple.com>
3738 Reviewed by John Sullivan.
3740 <rdar://problem/4480737> Flash crashes after it replaces itself via a document.write()
3742 I kind of hate to do this, but this is the best way to work around buggy plug-ins like Flash that assume that
3743 NPP_Destroy() cannot be called while the browser is calling one of its other plug-in functions. The classic
3744 situation is a plug-in that replaces itself via an NPN_Invoke() that executes a document.write().
3746 * Plugins/WebBaseNetscapePluginView.h:
3747 * Plugins/WebBaseNetscapePluginView.m:
3748 (-[WebBaseNetscapePluginView sendEvent:]):
3749 Call -willCallPlugInFunction and -didCallPlugInFunction around calls to the NPP_* functions.
3750 (-[WebBaseNetscapePluginView setWindowIfNecessary]):
3752 (-[WebBaseNetscapePluginView start]):
3753 It should not be possible to start a plug-in instance while we are calling into it (one of those chicken/egg
3754 problems). Added a sanity-checking assertion.
3755 (-[WebBaseNetscapePluginView stop]):
3756 If we're already calling a plug-in function, do not call NPP_Destroy(). The plug-in function we are calling
3757 may assume that its instance->pdata, or other memory freed by NPP_Destroy(), is valid and unchanged until said
3758 plugin-function returns.
3759 (-[WebBaseNetscapePluginView pluginScriptableObject]):
3760 Call -willCallPlugInFunction and -didCallPlugInFunction around calls to the NPP_* functions.
3761 (-[WebBaseNetscapePluginView willCallPlugInFunction]):
3762 Increment plug-in function call depth.
3763 (-[WebBaseNetscapePluginView didCallPlugInFunction]):
3764 Decrement plug-in function call depth. Stop if we're supposed to stop.
3765 (-[WebBaseNetscapePluginView evaluateJavaScriptPluginRequest:]):
3766 Call -willCallPlugInFunction and -didCallPlugInFunction around calls to the NPP_* functions.
3767 (-[WebBaseNetscapePluginView webFrame:didFinishLoadWithReason:]):
3769 (-[WebBaseNetscapePluginView _printedPluginBitmap]):
3772 * Plugins/WebBaseNetscapePluginStream.m:
3773 (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:]):
3774 Call -willCallPlugInFunction and -didCallPlugInFunction around calls to the NPP_* functions.
3775 (-[WebBaseNetscapePluginStream _destroyStream]):
3777 (-[WebBaseNetscapePluginStream _deliverData]):
3780 2006-08-01 Maciej Stachowiak <mjs@apple.com>
3782 - fix build after last change
3784 * WebView/WebFrame.m:
3785 (-[WebFrame _checkLoadCompleteForThisFrame]):
3787 2006-08-01 Maciej Stachowiak <mjs@apple.com>
3791 - revert part of my last fix that broke the Safari bookmarks view
3793 * WebView/WebFrame.m:
3794 (-[WebFrame _checkLoadCompleteForThisFrame]): still send layout message for non-HTML views
3796 2006-08-01 Tim Omernick <timo@apple.com>
3800 Fixed an assertion failure I ran into while debugging <rdar://problem/4652683>.
3802 * Plugins/WebNetscapePluginEmbeddedView.m:
3803 (-[WebNetscapePluginEmbeddedView redeliverStream]):
3804 Don't clear the "instance" ivar here. This code was refactored here from the old WebNetscapePluginRepresentation,
3805 which also had an "instance" ivar. It is never appropriate to clear a plug-in view's instance. That is done when
3806 the plug-in is destroyed.
3808 2006-08-01 Maciej Stachowiak <mjs@apple.com>
3812 - some refactoring in preparation for moving more stuff to WebFrameLoader.
3814 * WebView/WebFrame.m:
3815 (-[WebFrame _clearDataSource]):
3816 (-[WebFrame _detachFromParent]):
3817 (-[WebFrame _commitProvisionalLoad]):
3818 (-[WebFrame _transitionToCommitted:]):
3819 (-[WebFrame _clearProvisionalLoad]):
3820 (-[WebFrame _markLoadComplete]):
3821 (-[WebFrame _checkLoadCompleteForThisFrame]):
3822 (-[WebFrame _startProvisionalLoad:]):
3823 (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
3824 (-[WebFrame stopLoading]):
3826 2006-07-31 Maciej Stachowiak <mjs@apple.com>
3828 Reviewed by Tim Hatcher.
3830 - renamed TransferJob to ResourceLoader in WebCore
3833 (WebFrame::loadDataSource):
3834 (WebFrame::receivedRedirect):
3835 (WebFrame::receivedResponse):
3836 (WebFrame::receivedData):
3837 (WebFrame::receivedAllData):
3838 (WebFrame::setStatusText):
3841 2006-07-31 Darin Adler <darin@apple.com>
3845 - omit the margin and padding boxes for display types where they are ignored
3846 - use CSS instead of properties for table spacing and padding as suggested by Tim H.
3848 * WebInspector/webInspector/inspector.css: Added rules for spacing and padding.
3849 Added rules that hide the margin and padding boxes (borders and all but the center cell)
3850 when the hide attribute is present.
3851 * WebInspector/webInspector/inspector.html: Added classes for the rules above.
3852 Removed cellpadding and cellspacing attributes.
3853 * WebInspector/webInspector/inspector.js: Added code to hide/show the margin and
3854 padding boxes based on the display type.
3856 2006-07-31 Duncan Wilcox <duncan@mclink.it>
3860 Fixes <http://bugs.webkit.org/show_bug.cgi?id=10159>
3861 "REGRESSION: delegate returning no menu elements crashes webkit"
3863 No automated test, because there's no way to programmatically open a context menu,
3864 no manual test because there's no way to customize the context menu delegate.
3866 * WebView/WebView.m:
3867 (-[WebView _menuForElement:defaultItems:]): Make sure the context menu returned
3868 some menu items before accessing the first one.
3870 2006-07-31 Timothy Hatcher <timothy@apple.com>
3874 <rdar://problem/4658194> REGRESSION: "Search in Google"
3875 and "Search in Spotlight" fail to work on text selected in a frame
3877 Use selectedFrame to get the frame with the text selection.
3879 * WebView/WebView.m:
3880 (-[WebView _searchWithGoogleFromMenu:]):
3881 (-[WebView _searchWithSpotlightFromMenu:]):
3883 2006-07-31 Darin Adler <darin@apple.com>
3885 Reviewed by Tim Hatcher.
3887 - http://bugs.webkit.org/show_bug.cgi?id=10168
3888 add a first cut at a Metrics pane to the inspector
3890 * WebInspector/webInspector/inspector.css: Add styles for the new metrics pane.
3891 * WebInspector/webInspector/inspector.html: Add the new metrics pane, starting with
3892 the table to show the box model.
3893 * WebInspector/webInspector/inspector.js: Add the new metrics pane. Add back some
3894 "title" attributes so we have more tooltips. Removed the optional parameter to
3897 2006-07-31 Anders Carlsson <acarlsson@apple.com>
3901 * Plugins/WebPluginDatabase.m:
3902 (-[WebPluginDatabase refresh]):
3903 Create a mutable set instead of a mutable array.
3905 2006-07-30 Darin Adler <darin@apple.com>
3907 Reviewed by Tim Hatcher.
3909 * WebInspector/webInspector/inspector.js: Fix bug where a null property value
3910 leads to an empty style pane.
3912 2006-07-30 Darin Adler <darin@apple.com>
3914 Reviewed by Tim Hatcher.
3916 - http://bugs.webkit.org/show_bug.cgi?id=10163
3917 some improvements for the inspector
3919 * WebInspector/WebInspector.m:
3920 (+[WebInspector sharedWebInspector:]): Fixed bug that could cause the inspector
3921 to be garbage collected if used in an application with GC enabled.
3922 (-[WebInspector dealloc]): Removed a call to a non-existent close method.
3923 (-[WebInspector window]): Added a custom WebPreferences object and called
3924 setPrivateBrowsingEnabled:YES so the inspector won't appear in the history menu.
3925 Also call setProhibitsMainFrameScrolling:YES to try to get rid of trouble where
3926 the inspector scrolls when dragging.
3928 * WebInspector/webInspector/inspector.css: Added style for the new color swatch,
3929 and JavaScript properties. More of the style should be shared between the panes,
3930 but this should be OK for now.
3932 * WebInspector/webInspector/inspector.html: Added a first cut at a JavaScript
3933 properties pane. Needs work, but better than nothing.
3935 * WebInspector/webInspector/inspector.js: Lots of improvements:
3936 - Omit "typical" property values from computed style display, making it much shorter.
3937 - Use the words "black", "white", and "transparent" when appropriate for color values.
3938 - Refactored the loaded() function to get rid of repetitive scrollbar setup.
3939 - Added a new scrollarea for the JavaScript properties pane.
3940 - Simplified refreshScrollbars() -- we now refresh all scrollbars every time, which does no harm.
3941 - Removed unused resultsWithXpathQuery().
3942 - Use [] instead of "new Array()" and {} instead of "new Object()".
3943 - Removed unused xpathForNode().
3944 - Changed style pane to display the style for a text node's parent instead of saying
3945 it can't display the style for text.
3946 - Fixed regression I caused a while back by checking the length of a computed style
3947 and not trying to display anything if its length is 0. Before this change and the
3948 corresponding change in WebCore, we'd see a complete list of all styles with the
3949 empty string as the value for each one.
3950 - Changed the name of the computedStyle flag on the style rules array to isComputedStyle
3951 to make it easier to understand it's a boolean.
3952 - Fixed an error in the code that does !important scanning where it was trying to
3953 do a special case for computed style, but was checking the computed style flag on
3955 - Added populateStyleListItem() function to factor out things in common between the
3956 items in the top level list and the expanded tree for shorthand properties.
3957 - Added code to make a color swatch next to the textual representation for any
3958 property that contains a color.
3959 - Implemented a first cut at a simple JavaScript properties pane.
3961 2006-07-29 Darin Adler <darin@apple.com>
3963 - Removed tabs from these source files that still had them.
3964 We don't use them; that way source files look fine in editors
3965 that have tabs set to 8 spaces or to 4 spaces.
3966 - Removed allow-tabs Subversion property from the files too.
3968 * DefaultDelegates/WebDefaultPolicyDelegate.m:
3969 * History/WebHistory.m:
3970 * Misc/WebDownload.m:
3971 * Misc/WebIconDatabase.m:
3972 * Misc/WebKitErrors.m:
3973 * Misc/WebKitLogging.m:
3974 * Misc/WebNSDataExtras.m:
3975 * Misc/WebNSFileManagerExtras.m:
3976 * Panels/WebPanelAuthenticationHandler.m:
3977 * Plugins/WebBaseNetscapePluginView.m:
3978 * Plugins/npfunctions.h:
3979 * WebCoreSupport/WebSubresourceLoader.m:
3980 * WebView/WebMainResourceLoader.m:
3981 * WebView/WebView.h:
3982 * WebView/WebView.m:
3984 2006-07-29 Sam Weinig <sam.weinig@gmail.com>
3988 - patch for http://bugs.webkit.org/show_bug.cgi?id=10080
3989 Adopt pedantic changes from the Unity project to improve
3990 cross-compiler compatibility
3993 * Adding missing newline to the end of the file.
3994 * Turning on gcc warning for missing newline at the end of a source file
3995 (GCC_WARN_ABOUT_MISSING_NEWLINE in Xcode, -Wnewline in gcc).
3997 * WebKit.xcodeproj/project.pbxproj:
3998 * WebView/WebResourcePrivate.h:
4000 2006-07-29 Mitz Pettel <opendarwin.org@mitzpettel.com>
4002 Reviewed by John Sullivan.
4004 - fix http://bugs.webkit.org/show_bug.cgi?id=9984
4005 ASSERTION FAILURE: _private->mouseDownEvent != nil
4006 (WebKit/WebView/WebHTMLView.m:4863 -[WebHTMLView(WebInternal) _delegateDragSourceActionMask])
4008 * WebView/WebHTMLView.m:
4009 (-[WebHTMLView _setMouseDownEvent:]): Moved into the WebHTMLViewFileInternal category and changed
4011 (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
4012 Copy the hit HTMLView's mouse down event to the top HTMLView.
4013 (-[WebHTMLView acceptsFirstMouse:]): Added a call to _setMouseDownEvent:nil before returning.
4014 (-[WebHTMLView shouldDelayWindowOrderingForEvent:]): Added a call to _setMouseDownEvent:nil
4016 (-[WebHTMLView mouseUp:]): Added a call to _setMouseDownEvent:nil to clear the event set in
4017 mouseDown: (and used during dragging).
4018 (-[WebHTMLView _delegateDragSourceActionMask]): Copy the hit HTMLView's mouse down event to
4021 2006-07-28 Timothy Hatcher <timothy@apple.com>
4025 <rdar://problem/4657473> REGRESSION: Spell check not available from contextual menu in Mail
4027 The context menu code should be checking isContentEditable
4028 on DOMNode not just DOMElement. This is needed because DOMText
4029 will be the node class of any text that is clicked.
4031 * DefaultDelegates/WebDefaultContextMenuDelegate.m:
4032 (-[WebDefaultUIDelegate webView:contextMenuItemsForElement:defaultMenuItems:]):
4034 2006-07-25 Geoffrey Garen <ggaren@apple.com>
4036 Reviewed by Maciej, inspired by John.
4038 - Fixed <rdar://problem/4651931> 1% REGRESSION on iBench HTML due to
4039 repeated requests for non-existent favicon
4041 An optimization to avoid serializing favicon data for missing icons had stomped an
4042 optimization to avoid GETing a missing favicon more than once. The solution
4043 is a happy marriage of optimizations, ensuring that we *retain* the missing
4044 favicon's "i am missing" data without posting a notification or saving it to disk.
4046 * Misc/WebIconDatabase.m:
4047 (-[WebIconDatabase _setIconURL:forURL:]):
4049 2006-07-25 David Harrison <harrison@apple.com>
4051 Reviewed by timo and Darin.
4053 <rdar://problem/4618584> "Paste and Match Style" is not working in Mail (add SPI)
4055 * WebKit.xcodeproj/project.pbxproj:
4056 * WebView/WebView.m:
4057 (-[WebView replaceSelectionWithNode:]):
4058 (-[WebView _replaceSelectionWithNode:matchStyle:]):
4059 * WebView/WebViewPrivate.h:
4060 (-[WebView _replaceSelectionWithNode:matchStyle::]):
4061 New SPI that is same as replaceSelectionWithNode: with added parameter whether to match existing style.
4063 2006-07-24 Darin Adler <darin@apple.com>
4065 Reviewed by Adele and Justin.
4067 - update for change to require context when creating fragments from text
4068 (needed to handle whitespace properly)
4070 * WebView/WebHTMLView.m:
4071 (-[WebHTMLView _documentFragmentFromPasteboard:inContext:allowPlainText:chosePlainText:]):
4072 Added context parameter, pass through to bridge.
4073 (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]): Pass selection range as context
4074 when calling above method.
4075 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): Pass drag caret as context when
4076 calling above method.
4078 2006-07-24 Maciej Stachowiak <mjs@apple.com>
4082 - fix <rdar://problem/4609195> Help Viewer loads empty window (not getting didFailLoadingWithError: callback)
4083 (without re-introducing http://bugs.webkit.org/show_bug.cgi?id=10062 )
4085 * WebView/WebLoader.h:
4086 * WebView/WebMainResourceLoader.m:
4087 (-[WebMainResourceLoader receivedError:]): Copy in some code from the base class to do it in the proper
4088 order, surrounding the call to [ds _receivedMainResourceError:error complete:YES].
4090 2006-07-24 Anders Carlsson <acarlsson@apple.com>
4094 * Misc/WebIconDatabase.m:
4095 (-[WebIconDatabase removeAllIcons]):
4096 Make an array of the keys and iterate through it to avoid modifying the
4097 dictionary while enumerating it.
4099 2006-07-24 Timothy Hatcher <timothy@apple.com>
4101 Reviewed by John and Darin.
4103 <rdar://problem/4634290> Cannot selectively install a custom
4104 scroller that differs from the default Aqua frame size.
4106 Adds two new private methods to WebFrameView that allows
4107 an application to set a custom scroll view class. This is needed
4108 if the application wants to install a custom scroller that is wider
4109 than the typical scroller, because NSScrollView does the content
4110 rect calculations in a class method (ignoring custom scrollers.)
4111 The _setScrollViewClass method requires the class to be a subclass
4112 of WebDynamicScrollBarView, or nil can be passed to reset to the default class.
4113 A new scroll view of the specified class will then replace the previous
4114 one without the need to reload content of the frame.
4116 * WebView/WebFrameView.m:
4117 (-[WebFrameView _customScrollViewClass]):
4118 (-[WebFrameView _setCustomScrollViewClass:]):
4119 * WebView/WebFrameViewPrivate.h:
4121 2006-07-24 Alexey Proskuryakov <ap@nypop.com>
4125 Fix http://bugs.webkit.org/show_bug.cgi?id=10009
4126 REGRESSION: Schubert-IT PDF Plug-in not working for full page (works in frames)
4128 * WebView/WebView.m:
4129 (+[WebView _viewClass:andRepresentationClass:forMIMEType:]): If we've got a type supported by WebPDFView,
4130 make sure to initialize the plugin database, in case a plugin wants to handle it.
4132 2006-07-23 Mark Rowe <opendarwin.org@bdash.net.nz>
4136 Bug 9686: [Drosera] Need the ability to break into Drosera on Javascript exceptions
4137 http://bugs.webkit.org/show_bug.cgi?id=9686
4139 WebKit portion of the fix.
4141 * DefaultDelegates/WebDefaultScriptDebugDelegate.m:
4142 (-[WebDefaultScriptDebugDelegate webView:exceptionWasRaised:sourceId:line:forWebFrame:]):
4143 * DefaultDelegates/WebScriptDebugServer.h:
4144 * DefaultDelegates/WebScriptDebugServer.m:
4145 (-[WebScriptDebugServer webView:exceptionWasRaised:sourceId:line:forWebFrame:]): Notify
4146 listeners that an exception has been raised.
4147 * WebView/WebScriptDebugDelegate.h:
4148 * WebView/WebScriptDebugDelegate.m:
4149 (-[WebScriptCallFrame exceptionRaised:sourceId:line:]): Dispatch through to delegate and
4150 WebScriptDebugServer.
4152 2006-07-23 Adele Peterson <adele@apple.com>
4156 - Fix for <rdar://problem/4646276> CrashTracer: 7 crashes in Safari at com.apple.WebCore: WebCore::RenderTableSection::paint + 155
4158 * WebView/WebHTMLView.m: (-[WebHTMLView _web_layoutIfNeededRecursive:testDirtyRect:]):
4159 needsDisplay was returning NO even though the view has a dirty rect (see <rdar://problem/4647062>). Since we know about
4160 the dirty rect, we don't actually need to check needsDisplay.
4162 2006-07-22 Timothy Hatcher <timothy@apple.com>
4166 Bug 10062: REGRESSION: dom/xhtml/level2/html/HTMLIFrameElement11.xhtml asserts/crashes
4167 http://bugs.webkit.org/show_bug.cgi?id=10062
4169 2006-07-21 Timothy Hatcher <timothy@apple.com>
4173 <rdar://problem/4609195> Help Viewer loads empty window
4174 (not getting didFailLoadingWithError: callback)
4176 Call super's didFailWithError before _receivedMainResourceError
4177 because _receivedMainResourceError will cause the datasource's
4178 frame to be set to nil before the didFailLoadingWithError delegate
4179 callback is sent. (This order is needed now that WebDataSource does
4180 not hold on to the WebView; it uses the WebFrame to get to the WebView.
4181 If the WebFrame is nil we can't get to the WebView's resource load delegate.)
4183 * WebView/WebMainResourceLoader.m:
4184 (-[WebMainResourceLoader receivedError:]):
4187 2006-07-22 Timothy Hatcher <timothy@apple.com>
4191 <rdar://problem/4646318> REGRESSION: Ctrl-clicking on a selection containing a word doesn't display a complete contextual menu