1 2006-10-06 Darin Adler <darin@apple.com>
5 - added WebFrameLoaderClient protocol -- to be used to make WebFrameLoader forget all about WebFrame
7 * Loader/WebDocumentLoadState.h: Added comment about Maciej's planned renaming here.
8 * Loader/WebFrameLoader.h:
9 * Loader/WebFrameLoader.m: Renamed webFrame to client and added the new protocol.
10 Eventually we'll be removing the dependency on WebFrame entirely.
11 * WebView/WebFrame.m: (-[WebFrame _initWithWebFrameView:webView:bridge:]): Update to call the method
14 * Loader/WebFrameLoaderClient.h: Added.
15 * WebKit.xcodeproj/project.pbxproj: Updated for new file, sorted things.
17 2006-10-06 Maciej Stachowiak <mjs@apple.com>
21 - segregate WebFrame methods into ones that should be moved into WebFrameLoader and ones that don't need to
23 Also removed useless WebFrameLoader part
26 (-[WebFramePrivate dealloc]):
28 2006-10-06 Maciej Stachowiak <mjs@apple.com>
32 - moved more data from WebDataSource to WebDocumentLoadState
34 * Loader/WebDocumentLoadState.h:
35 * Loader/WebDocumentLoadState.m:
36 (-[WebDocumentLoadState commitLoadWithData:]):
37 (-[WebDocumentLoadState prepareForLoadStart]):
38 (-[WebDocumentLoadState loadingStartedTime]):
39 (-[WebDocumentLoadState setIsClientRedirect:]):
40 (-[WebDocumentLoadState isClientRedirect]):
41 (-[WebDocumentLoadState setPrimaryLoadComplete:]):
42 (-[WebDocumentLoadState isLoadingInAPISense]):
43 * Loader/WebFrameLoader.h:
44 * Loader/WebFrameLoader.m:
45 (-[WebFrameLoader _setState:]):
46 (-[WebFrameLoader _finishedLoading]):
47 (-[WebFrameLoader documentLoadState:mainReceivedCompleteError:]):
48 (-[WebFrameLoader prepareForLoadStart]):
49 (-[WebFrameLoader subframeIsLoading]):
50 * WebView/WebDataSource.m:
51 (-[WebDataSource _fileWrapperForURL:]):
52 (-[WebDataSource _startLoading]):
53 (-[WebDataSource _loadFromPageCache:]):
54 (-[WebDataSource isLoading]):
55 * WebView/WebDataSourceInternal.h:
57 (-[WebFrame _transitionToCommitted:]):
58 (-[WebFrame _opened]):
59 (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
61 2006-10-06 Alexey Proskuryakov <ap@nypop.com>
65 http://bugs.webkit.org/show_bug.cgi?id=11183
66 REGRESSION: Safari loads error pages unstyled
69 (-[WebFrame _loadHTMLString:baseURL:unreachableURL:]):
70 Use utf-8 encoding instead of the string's "fastest" encoding.
72 2006-10-06 Maciej Stachowiak <mjs@apple.com>
76 - fixed the following bugs:
78 http://bugs.webkit.org/show_bug.cgi?id=11136
79 "REGRESSION: Safari snippet editor doesn't work"
80 http://bugs.webkit.org/show_bug.cgi?id=11140
81 "REGRESSION: view source window blank"
82 http://bugs.webkit.org/show_bug.cgi?id=11146
83 "REGRESSION: Instead of showing the error page, Safari opens its Resources folder in the Finder"
87 * Loader/WebDocumentLoadState.h:
88 * Loader/WebDocumentLoadState.m:
89 (-[WebDocumentLoadState actualRequest]): New method.
90 * WebView/WebDataSource.m:
91 (-[WebDataSource _startLoading]): We need to make sure not to start loading the main
92 resource with the fake external request for an applewebdata: request.
94 2006-10-05 Adele Peterson <adele@apple.com>
96 Reviewed by the letter 'B'.
100 * WebKit.xcodeproj/project.pbxproj:
101 * WebView/WebDynamicScrollBarsView.h:
102 * WebView/WebDynamicScrollBarsView.m:
103 (-[WebDynamicScrollBarsView updateScrollers]):
104 (-[WebDynamicScrollBarsView setAllowsScrolling:]):
105 (-[WebDynamicScrollBarsView allowsScrolling]):
106 (-[WebDynamicScrollBarsView setAllowsHorizontalScrolling:]):
107 (-[WebDynamicScrollBarsView setAllowsVerticalScrolling:]):
108 (-[WebDynamicScrollBarsView allowsHorizontalScrolling]):
109 (-[WebDynamicScrollBarsView allowsVerticalScrolling]):
110 (-[WebDynamicScrollBarsView horizontalScrollingMode]):
111 (-[WebDynamicScrollBarsView verticalScrollingMode]):
112 (-[WebDynamicScrollBarsView setHorizontalScrollingMode:]):
113 (-[WebDynamicScrollBarsView setVerticalScrollingMode:]):
114 (-[WebDynamicScrollBarsView setScrollingMode:]):
116 (-[WebView setAlwaysShowVerticalScroller:]):
117 (-[WebView alwaysShowVerticalScroller]):
118 (-[WebView setAlwaysShowHorizontalScroller:]):
119 (-[WebView alwaysShowHorizontalScroller]):
121 2006-10-05 Vladimir Olexa <vladimir.olexa@gmail.com>
125 Bug: http://bugs.webkit.org/show_bug.cgi?id=9887
126 Continuous spell checking now remembers user's setting. The change is applied globally,
127 meaning, both TextArea and TextField are affected when either of them enables/disables
130 * WebView/WebPreferenceKeysPrivate.h: added a define for WebContinuousSpellCheckingEnabled
132 (-[WebViewPrivate init]): reads WebContinuousSpellCheckingEnabled from NSUserDefaults
133 (-[WebView setContinuousSpellCheckingEnabled:]):
134 (-[WebView isContinuousSpellCheckingEnabled]):
136 2006-10-05 MorganL <morganl.webkit@yahoo.com>
140 Fixes http://bugs.webkit.org/show_bug.cgi?id=11162
143 (WebFrame::loadDataSource):
144 (WebFrame::receivedResponse):
146 2006-10-05 Don Gibson <dgibson77@gmail.com>
148 Reviewed by Darin, landed by Adam.
150 http://bugs.webkit.org/show_bug.cgi?id=11176
151 Fix win32 build, adapt to Maciej's ResourceLoader changes.
154 (WebFrame::loadDataSource):
156 2006-10-05 Marvin Decker <marv.decker@gmail.com>
160 http://bugs.webkit.org/show_bug.cgi?id=10989
161 Provide a way for embedders to implement BrowserExtensionWin
163 * COM/Interfaces/IWebUIDelegate.idl:
165 (WebFrame::createNewWindow):
168 2006-10-04 Mark Rowe <bdash@webkit.org>
170 Reviewed by NOBODY (build fix).
173 (-[WebView scrollDOMRangeToVisible:]): Move scrollDOMRangeToVisible: into the correct category.
175 2006-09-26 David Smith <catfish.man@gmail.com>
179 http://bugs.webkit.org/show_bug.cgi?id=3723
180 Add -scrollDOMRangeToVisible:
183 (-[WebView scrollDOMRangeToVisible:]):
184 * WebView/WebViewPrivate.h:
186 2006-10-03 Graham Dennis <graham.dennis@gmail.com>
190 <http://bugs.webkit.org/show_bug.cgi?id=10338>
191 When contentEditable, cursor doesn't change to hand
193 Allow the behaviour of editable links to be specified by a WebPreference
194 The preference WebKitEditableLinkBehavior has four options:
195 - AlwaysLive: Safari 2.0 behaviour
196 - OnlyLiveWithShiftKey: Firefox/WinIE behaviour (and prior WebKit-ToT behaviour)
197 - LiveWhenNotFocused: Editable links are live only when their editable block is not
198 focused, or when the shift key is pressed
199 - DefaultBehavior: This is the same as OnlyLiveWithShiftKey.
201 No layout tests, just a modification of a manual-test as it isn't possible to test
204 * WebView/WebPreferenceKeysPrivate.h:
205 * WebView/WebPreferences.m:
206 (+[WebPreferences initialize]):
207 (-[WebPreferences editableLinkBehavior]):
208 (-[WebPreferences setEditableLinkBehavior:]):
209 * WebView/WebPreferencesPrivate.h:
211 (-[WebView _updateWebCoreSettingsFromPreferences:]):
213 2006-10-03 Justin Garcia <justin.garcia@apple.com>
217 execCommand("Cut"/"Copy"/"Paste") broken in editable subframes.
219 * WebCoreSupport/WebFrameBridge.m:
220 (-[WebFrameBridge issueCutCommand]): Issue the command on the WebHTMLView, not the WebView.
221 (-[WebFrameBridge issueCopyCommand]): Ditto.
222 (-[WebFrameBridge issuePasteCommand]): Ditto.
223 (-[WebFrameBridge issuePasteAndMatchStyleCommand]): Ditto.
224 (-[WebFrameBridge issueTransposeCommand]): Fixed formatting.
225 (-[WebFrameBridge canPaste]): Ask the WebHTMLView, not the WebView.
226 * WebView/WebHTMLView.m:
227 (-[WebHTMLView copy:]): Moved to WebInternal
228 (-[WebHTMLView cut:]): Ditto.
229 (-[WebHTMLView paste:]): Ditto.
230 (-[WebHTMLView pasteAsPlainText:]): Ditto.
231 * WebView/WebHTMLViewInternal.h:
232 * WebView/WebView.m: Removed the now unused _canPaste.
233 * WebView/WebViewInternal.h: Ditto.
235 2006-10-03 Justin Garcia <justin.garcia@apple.com>
239 <rdar://problem/4763519> REGRESSION: Multipart/x-mixed-replace sub-resources fail to load
241 * Loader/WebSubresourceLoader.m:
242 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
243 Enable multipart/x-mixed-replace support on the request. This line was accidently removed during
244 some loader refactoring.
246 2006-10-02 Adam Roben <aroben@apple.com>
250 Add message paramter to WebView::mouse* methods to pass down to
254 (WebView::mouseMoved):
255 (WebView::mouseDown):
257 (WebView::mouseDoubleClick):
261 2006-10-02 Maciej Stachowiak <mjs@apple.com>
265 - take away direct knowledge of WebFrame from WebDataSource
267 * Loader/WebDocumentLoadState.h:
268 * Loader/WebDocumentLoadState.m:
269 (-[WebDocumentLoadState setFrameLoader:]):
270 (-[WebDocumentLoadState detachFromFrameLoader]):
271 * Loader/WebFrameLoader.m:
272 (-[WebFrameLoader _setDocumentLoadState:]):
273 (-[WebFrameLoader _setProvisionalDocumentLoadState:]):
274 * WebView/WebDataSource.m:
275 * WebView/WebDataSourceInternal.h:
276 * WebView/WebDocumentLoadStateMac.m:
277 (-[WebDocumentLoadStateMac detachFromFrameLoader]):
278 * WebView/WebFrame.m:
279 (-[WebFrame _loadDataSource:withLoadType:formState:]):
281 2006-10-02 Maciej Stachowiak <mjs@apple.com>
285 - move a big slice of data and logic from WebDataSource to WebDocumentLoadState
287 * Loader/WebDocumentLoadState.h:
288 * Loader/WebDocumentLoadState.m:
289 (-[WebDocumentLoadState initWithRequest:]):
290 (-[WebDocumentLoadState dealloc]):
291 (-[WebDocumentLoadState originalRequestCopy]):
292 (-[WebDocumentLoadState request]):
293 (-[WebDocumentLoadState replaceRequestURLForAnchorScrollWithURL:]):
294 (-[WebDocumentLoadState setRequest:]):
295 (-[WebDocumentLoadState setResponse:]):
296 (-[WebDocumentLoadState isStopping]):
297 (-[WebDocumentLoadState bridge]):
298 (-[WebDocumentLoadState setMainDocumentError:]):
299 (-[WebDocumentLoadState mainDocumentError]):
300 (-[WebDocumentLoadState clearErrors]):
301 (-[WebDocumentLoadState mainReceivedError:complete:]):
302 (-[WebDocumentLoadState stopLoading]):
303 (-[WebDocumentLoadState setupForReplace]):
304 (-[WebDocumentLoadState commitIfReady]):
305 (-[WebDocumentLoadState finishedLoading]):
306 (-[WebDocumentLoadState setCommitted:]):
307 (-[WebDocumentLoadState isCommitted]):
308 (-[WebDocumentLoadState setLoading:]):
309 (-[WebDocumentLoadState isLoading]):
310 (-[WebDocumentLoadState commitLoadWithData:]):
311 (-[WebDocumentLoadState doesProgressiveLoadWithMIMEType:]):
312 (-[WebDocumentLoadState receivedData:]):
313 (-[WebDocumentLoadState setupForReplaceByMIMEType:]):
314 (-[WebDocumentLoadState updateLoading]):
315 (-[WebDocumentLoadState response]):
316 * Loader/WebFrameLoader.h:
317 * Loader/WebFrameLoader.m:
318 (-[WebFrameLoader activeDocumentLoadState]):
319 (-[WebFrameLoader activeDataSource]):
320 (-[WebFrameLoader _archivedSubresourceForURL:]):
321 (-[WebFrameLoader addPlugInStreamLoader:]):
322 (-[WebFrameLoader removePlugInStreamLoader:]):
323 (-[WebFrameLoader addSubresourceLoader:]):
324 (-[WebFrameLoader removeSubresourceLoader:]):
325 (-[WebFrameLoader documentLoadState]):
326 (-[WebFrameLoader provisionalDocumentLoadState]):
327 (-[WebFrameLoader stopLoading]):
328 (-[WebFrameLoader _originalRequest]):
329 (-[WebFrameLoader _receivedData:]):
330 (-[WebFrameLoader _setRequest:]):
331 (-[WebFrameLoader bridge]):
332 (-[WebFrameLoader _handleFallbackContent]):
333 (-[WebFrameLoader _isStopping]):
334 (-[WebFrameLoader _setupForReplaceByMIMEType:]):
335 (-[WebFrameLoader _setResponse:]):
336 (-[WebFrameLoader _mainReceivedError:complete:]):
337 (-[WebFrameLoader _finishedLoading]):
338 (-[WebFrameLoader didReceiveServerRedirectForProvisionalLoadForFrame]):
339 (-[WebFrameLoader finishedLoadingDocumentLoadState:]):
340 (-[WebFrameLoader commitProvisitionalLoad]):
341 (-[WebFrameLoader committedLoadWithDocumentLoadState:data:]):
342 (-[WebFrameLoader isReplacing]):
343 (-[WebFrameLoader setReplacing]):
344 (-[WebFrameLoader revertToProvisionalWithDocumentLoadState:]):
345 (-[WebFrameLoader documentLoadState:setMainDocumentError:]):
346 (-[WebFrameLoader documentLoadState:mainReceivedCompleteError:]):
347 (-[WebFrameLoader finalSetupForReplaceWithDocumentLoadState:]):
348 * WebView/WebDataSource.m:
349 (-[WebDataSourcePrivate dealloc]):
350 (-[WebDataSource _prepareForLoadStart]):
351 (-[WebDataSource _mainDocumentError]):
352 (-[WebDataSource _finishedLoading]):
353 (-[WebDataSource _receivedData:]):
354 (-[WebDataSource _setMainDocumentError:]):
355 (-[WebDataSource _clearUnarchivingState]):
356 (-[WebDataSource _revertToProvisionalState]):
357 (-[WebDataSource _receivedMainResourceError:complete:]):
358 (-[WebDataSource _startLoading]):
359 (-[WebDataSource _loadFromPageCache:]):
360 (-[WebDataSource _bridge]):
361 (-[WebDataSource _setPrimaryLoadComplete:]):
362 (-[WebDataSource _URLForHistory]):
363 (-[WebDataSource _setTitle:]):
364 (-[WebDataSource _initWithDocumentLoadState:]):
365 (-[WebDataSource request]):
366 (-[WebDataSource response]):
367 (-[WebDataSource isLoading]):
368 (-[WebDataSource webArchive]):
369 * WebView/WebDataSourceInternal.h:
370 * WebView/WebDocumentLoadStateMac.m:
371 (-[WebDocumentLoadStateMac initWithRequest:]):
372 * WebView/WebFrame.m:
373 (-[WebFrame _createItem:]):
374 (-[WebFrame _receivedMainResourceError:]):
375 (-[WebFrame _transitionToCommitted:]):
376 (-[WebFrame _commitProvisionalLoad:]):
377 (-[WebFrame _checkLoadCompleteForThisFrame]):
378 (-[WebFrame _loadItem:withLoadType:]):
379 (-[WebFrame _continueFragmentScrollAfterNavigationPolicy:formState:]):
380 (-[WebFrame _didReceiveServerRedirectForProvisionalLoadForFrame]):
381 (-[WebFrame _provisionalLoadStarted]):
382 * WebView/WebFrameInternal.h:
384 2006-10-02 Justin Garcia <justin.garcia@apple.com>
388 <rdar://problem/4757583>
389 REGRESSION: tabbing into page focuses wrong control on 2nd pass
390 <rdar://problem/4757594>
391 REGRESSION: Form field is left with secondary selection after tabbing out of WebView
393 * WebView/WebHTMLView.m:
394 (-[NSArray maintainsInactiveSelection]): Replace code that I removed in error in the patch
395 for 9642. Only leave inactive editable selections in the WebHTMLView if the nextResponder
396 is in the same WebView.
398 2006-10-02 Maciej Stachowiak <mjs@apple.com>
402 - remove webFrame field from WebDataSourcePrivate, it can get it from WebDocumentLoadState now
404 * Loader/WebDocumentLoadState.h:
405 * Loader/WebDocumentLoadState.m:
406 (-[WebDocumentLoadState frameLoader]):
407 * WebView/WebDataSource.m:
408 (-[WebDataSourcePrivate dealloc]):
409 (-[WebDataSource _revertToProvisionalState]):
410 (-[WebDataSource _setupForReplaceByMIMEType:]):
411 (-[WebDataSource _updateLoading]):
412 (-[WebDataSource _startLoading]):
413 (-[WebDataSource _setWebFrame:]):
414 (-[WebDataSource _defersCallbacksChanged]):
415 (-[WebDataSource _stopLoading]):
416 (-[WebDataSource _webView]):
417 (-[WebDataSource _stopLoadingWithError:]):
418 (-[WebDataSource _setPrimaryLoadComplete:]):
419 (-[WebDataSource dealloc]):
420 (-[WebDataSource webFrame]):
421 (-[WebDataSource isLoading]):
423 2006-10-02 Maciej Stachowiak <mjs@apple.com>
427 - fix crash on back/forward - reattach WebDocumentLoadState to data source when needed
429 * WebView/WebDataSource.m:
430 (-[WebDataSource _setWebFrame:]):
431 (-[WebDataSource _initWithDocumentLoadState:]):
432 * WebView/WebDataSourceInternal.h:
434 2006-10-02 Maciej Stachowiak <mjs@apple.com>
436 Build fix, not reviewed.
438 - Added missing files to fix build.
440 * WebView/WebDocumentLoadStateMac.h: Added.
441 * WebView/WebDocumentLoadStateMac.m: Added.
442 (-[WebDocumentLoadStateMac initWithRequest:]):
443 (-[WebDocumentLoadStateMac dealloc]):
444 (-[WebDocumentLoadStateMac setDataSource:]):
445 (-[WebDocumentLoadStateMac dataSource]):
446 (-[WebDocumentLoadStateMac setFrameLoader:]):
448 2006-10-01 Maciej Stachowiak <mjs@apple.com>
450 Reviewed by Brady and Oliver.
452 - move things around so that WebDataSource and WebDocumentLoadState know about each other in
453 the right way. This lines things up to move nearly all functionality down to WebDocumentLoadState.
455 * Loader/WebDocumentLoadState.h:
456 * Loader/WebDocumentLoadState.m:
457 (-[WebDocumentLoadState initWithRequest:]):
458 (-[WebDocumentLoadState dealloc]):
459 (-[WebDocumentLoadState originalRequest]):
460 * Loader/WebFrameLoader.h:
461 * Loader/WebFrameLoader.m:
462 (-[WebFrameLoader dealloc]):
463 (-[WebFrameLoader addSubresourceLoader:]):
464 (-[WebFrameLoader startLoadingMainResourceWithRequest:identifier:]):
465 (-[WebFrameLoader dataSource]):
466 (-[WebFrameLoader _setDocumentLoadState:]):
467 (-[WebFrameLoader policyDataSource]):
468 (-[WebFrameLoader _setPolicyDocumentLoadState:]):
469 (-[WebFrameLoader clearDataSource]):
470 (-[WebFrameLoader provisionalDataSource]):
471 (-[WebFrameLoader _setProvisionalDocumentLoadState:]):
472 (-[WebFrameLoader _clearProvisionalDataSource]):
473 (-[WebFrameLoader _setState:]):
474 (-[WebFrameLoader clearProvisionalLoad]):
475 (-[WebFrameLoader commitProvisionalLoad]):
476 (-[WebFrameLoader stopLoading]):
477 (-[WebFrameLoader startLoading]):
478 (-[WebFrameLoader startProvisionalLoad:]):
479 (-[WebFrameLoader setupForReplace]):
480 (-[WebFrameLoader activeDocumentLoadState]):
481 (-[WebFrameLoader activeDataSource]):
482 (-[WebFrameLoader _loadRequest:archive:]):
483 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
484 (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
485 (-[WebFrameLoader reload]):
486 * WebKit.xcodeproj/project.pbxproj:
487 * WebView/WebDataSource.m:
488 (-[WebDataSourcePrivate dealloc]):
489 (-[WebDataSource _startLoading]):
490 (-[WebDataSource _setWebFrame:]):
491 (-[WebDataSource _documentLoadState]):
492 (-[WebDataSource _initWithDocumentLoadState:]):
493 (-[WebDataSource initWithRequest:]):
494 (-[WebDataSource initialRequest]):
495 (-[WebDataSource unreachableURL]):
496 * WebView/WebDataSourceInternal.h:
497 * WebView/WebFrame.m:
498 (-[WebFramePrivate dealloc]):
499 (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
500 (-[WebFrame _loadDataSource:withLoadType:formState:]):
501 (-[WebFrame _policyDataSource]):
502 (-[WebFrame _shouldReloadToHandleUnreachableURLFromRequest:]):
503 (-[WebFrame _dataSourceForDocumentLoadState:]):
504 (-[WebFrame _createDocumentLoadStateWithRequest:]):
505 * WebView/WebFrameInternal.h:
507 2006-09-29 David Hyatt <hyatt@apple.com>
509 Change the default minimum font size pref to 0 in order to allow
512 * WebView/WebPreferences.m:
513 (+[WebPreferences initialize]):
515 2006-09-28 Timothy Hatcher <timothy@apple.com>
519 Switch the inspector over to use border-image with styled buttons and selects.
521 * WebInspector/WebInspector.m:
522 (-[NSWindow window]):
523 (-[NSWindow setWebFrame:]):
524 (-[WebInspector _updateRoot]):
525 * WebInspector/webInspector/Images/button.png: Added.
526 * WebInspector/webInspector/Images/buttonDivider.png: Added.
527 * WebInspector/webInspector/Images/buttonPressed.png: Added.
528 * WebInspector/webInspector/Images/popup.png: Added.
529 * WebInspector/webInspector/Images/popupFill.png: Removed.
530 * WebInspector/webInspector/Images/popupFillPressed.png: Removed.
531 * WebInspector/webInspector/Images/popupLeft.png: Removed.
532 * WebInspector/webInspector/Images/popupLeftPressed.png: Removed.
533 * WebInspector/webInspector/Images/popupPressed.png: Added.
534 * WebInspector/webInspector/Images/popupRight.png: Removed.
535 * WebInspector/webInspector/Images/popupRightPressed.png: Removed.
536 * WebInspector/webInspector/Images/squareButtonRight.png: Removed.
537 * WebInspector/webInspector/Images/squareButtonRightPressed.png: Removed.
538 * WebInspector/webInspector/inspector.css:
539 * WebInspector/webInspector/inspector.html:
540 * WebInspector/webInspector/inspector.js:
542 2006-09-28 Alice Liu <alice.liu@apple.com>
544 fixing the windows build
547 (WebView::mouseMoved):
548 (WebView::mouseDown):
550 (WebView::mouseDoubleClick):
552 2006-09-27 Justin Garcia <justin.garcia@apple.com>
556 <rdar://problem/4044271>
557 Writing Direction menu doesn't reflect the current writing direction (9773)
559 * English.lproj/Localizable.strings: Added "Right to Left" and "Left to Right"
560 * WebView/WebHTMLView.m:
561 (-[NSArray validateUserInterfaceItem:]): Validate menu items that perform
562 toggleBaseWritingDirection and changeBaseWritingDirection.
563 Disable the menu item that changes the writing direction to NSWritingDirectionNautral
564 because NSWritingDirectionNatural's behavior can't be implemented with CSS.
565 Take control of the title of the menu item that performs toggleBaseWritingDirection:
566 instead of checking/unchecking it, otherwise we wouldn't know what a check means.
567 (-[NSArray changeBaseWritingDirection:]): ASSERT that the requested writing
568 direction is not NSWritingDirectionNatural, since we've disabled the
569 menu item that performs it.
571 2006-09-27 MorganL <morganl.webkit@yahoo.com>
573 Reviewed by Maciej, landed by Brady
575 Update URL request associated with provisional data source on redirect.
576 Notify IWebFrameLoadDelegate of redirects for the provisional load.
577 Notify IWebFrameLoadDelegate of a provisional load being commited.
579 * COM/WebDataSource.cpp:
580 (WebDataSource::replaceRequest):
581 * COM/WebDataSource.h:
583 (WebFrame::receivedRedirect):
584 (WebFrame::receivedResponse):
585 (WebFrame::receivedData):
587 2006-09-26 John Sullivan <sullivan@apple.com>
591 * WebView/WebHTMLViewPrivate.h:
592 * WebView/WebHTMLView.m:
593 (-[WebHTMLView markAllMatchesForText:caseSensitive:limit:]):
594 Added limit parameter, passed over the bridge. Stop the search if it hits limit.
596 * WebView/WebViewPrivate.h:
598 (-[WebView markAllMatchesForText:caseSensitive:highlight:limit:]):
599 Added limit parameter, passed to WebHTMLView.
601 2006-09-26 David Harrison <harrison@apple.com>
603 Reviewed by John and TimH.
605 <rdar://problem/4743256> Seed: Ctrl-Y key binding does nothing when kill ring is empty
607 Use deleteBackward: when the killring string is empty. Was always using insertText:,
608 but that ends up early-returning if the string to insert is empty.
610 * WebView/WebHTMLView.m:
612 (-[NSArray yankAndSelect:]):
614 2006-09-25 Timothy Hatcher <timothy@apple.com>
618 Use the non-deprecated method names for getComputedStyle, setEnd and setStart.
620 * WebInspector/WebInspector.m:
621 (-[WebInspector _highlightNode:]):
622 * WebView/WebHTMLView.m:
624 (-[WebHTMLView _selectRangeInMarkedText:]):
625 (-[WebTextCompleteController doCompletion]):
627 (-[WebView computedStyleForElement:pseudoElement:]):
629 2006-09-22 Timothy Hatcher <timothy@apple.com>
633 Pass all headers through unifdef to filter out BUILDING_ON_TIGER blocks
634 if MACOSX_DEPLOYMENT_TARGET is 10.4.
636 * MigrateHeaders.make:
638 2006-09-20 Justin Garcia <justin.garcia@apple.com>
642 <http://bugs.webkit.org/show_bug.cgi?id=7165>
643 TinyMCE: Dragging & dropping content always leaves a copy when editing inside a subframe
645 The top level WebHTMLView is responsible for performing dragging operations, but
646 the inner view, the view that holds the drag caret, should be consulted to determine
647 if the drag is a move drag.
649 * WebCoreSupport/WebFrameBridge.m:
650 (-[WebFrameBridge startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
651 * WebKit.xcodeproj/project.pbxproj:
652 * WebView/WebHTMLView.m:
653 (-[NSArray dragImage:at:offset:event:pasteboard:source:slideBack:]): Don't set initatedDrag here, because
654 it's only the top level WebHTMLView that performs this operation.
655 (-[WebHTMLView _setInitiatedDrag:]): Added.
656 (-[WebHTMLView _initiatedDrag]): Ditto.
657 (-[WebHTMLView _canProcessDragWithDraggingInfo:]): Ask the innerView if it initiated the drag,
658 not the top level view.
659 (-[WebHTMLView _isMoveDrag]): The top level view asks the innerView if it should perform
660 a move drag, so don't ASSERT _isTopHTMLView.
661 (-[WebHTMLView draggingUpdatedWithDraggingInfo:actionMask:]): Ask the innerView if _isMoveDrag.
662 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): Ditto.
663 * WebView/WebHTMLViewInternal.h: Added two private SPI so that
664 the top level WebHTMLView can set and get the initiatedDrag BOOL.
666 === Safari-521.27 ===
668 2006-09-20 Brady Eidson <beidson@apple.com>
670 Reviewed by Tim Omernick
672 Fixing part of a crash Tim O showed me. [WebIconDatabase init] should finish
673 gracefully even if we can't open the database
675 * Misc/WebIconDatabase.m:
676 (-[WebIconDatabase init]):
678 2006-09-20 Timothy Hatcher <timothy@apple.com>
682 <rdar://problem/4741392> Develop a system to find what version of WebKit an app was linked with
684 * Misc/WebKitVersionChecks.h: Added.
685 * Misc/WebKitVersionChecks.m: Added.
686 (WebKitLinkedOnOrAfter): Added.
687 (WebKitLinkTimeVersion): Added.
688 (WebKitRunTimeVersion): Added.
689 * WebKit.xcodeproj/project.pbxproj:
691 2006-09-20 Tim Omernick <timo@apple.com>
695 * Misc/WebIconDatabase.m:
696 (-[WebIconDatabase init]):
699 2006-09-20 Brady Eidson <beidson@apple.com>
703 Preparing to make the WebIconDatabase disabled by default - this patch tells the bridge whether its enabled or not
705 * Misc/WebIconDatabase.m:
706 (-[WebIconDatabase init]):
708 2006-09-19 Brady Eidson <beidson@apple.com>
710 Reviewed by Sarge Decker
712 <rdar://problem/4739892> and <rdar://problem/4729797>
713 - WebCore::IconDatabase needs to have and respect an enabled() flag
714 - Mail on ToT WebKit crashes in IconDatabase code when mailing a page from Safari
716 * Misc/WebIconDatabase.m:
717 (-[WebIconDatabase init]): If preference says icons are disabled, tell the bridge
718 (-[WebIconDatabase _isEnabled]): Ask the bridge if the database is enabled
720 2006-09-19 Alexey Proskuryakov <ap@nypop.com>
724 http://bugs.webkit.org/show_bug.cgi?id=10661
725 REGRESSION: CFM plug-ins (Shockwave, SVG) are not loaded
727 * Plugins/WebBasePluginPackage.m:
728 (-[WebBasePluginPackage initWithPath:]): On 32-bit PowerPC, don't bail out if
729 the bundle is nil - it can be a CFM plugin.
731 2006-09-18 Brady Eidson <beidson@apple.com>
735 Implement a bridge method so WebCore can find the reload type of a frame load
737 * WebCoreSupport/WebFrameBridge.m:
738 (-[WebFrameBridge isLoadTypeReload]):
740 2006-09-18 Sam Weinig <sam.weinig@gmail.com>
744 Patch for http://bugs.webkit.org/show_bug.cgi?id=10903
745 Yet Another Objective-C Bindings Patch
747 * MigrateHeaders.make:
749 2006-09-17 David Harrison <harrison@apple.com>
751 Reviewed by John Sullivan.
753 <rdar://problem/4494340> REGRESSION: Making the font size bigger/smaller in an HTML message doesn't affect the body until you reopen it
755 Problem was the public API -[WebView setTextSizeMultiplier] did not notify anyone that the value changed.
757 * WebView/WebDocumentInternal.h:
758 Add _textSizeMultiplierChanged to the _WebDocumentTextSizing protocol.
760 * WebView/WebHTMLView.m:
761 (-[WebHTMLView _textSizeMultiplierChanged]):
762 Send [self _updateTextSizeMultiplier].
764 * WebView/WebPDFView.m:
765 (-[WebPDFView _textSizeMultiplierChanged]):
766 ASSERT_NOT_REACHED() because WebPDFView does not track the common multiplier.
769 (-[WebView setTextSizeMultiplier:]):
770 Send [self _notifyTextSizeMultiplierChanged];
772 (-[WebView _performTextSizingSelector:withObject:onTrackingDocs:selForNonTrackingDocs:newScaleFactor:]):
773 Alter the _textSizeMultiplier directly so that notification is not sent.
776 (-[WebView _notifyTextSizeMultiplierChanged]):
777 New. Send _textSizeMultiplierChanged to all document views that track the common multiplier.
779 2006-09-16 Brady Eidson <beidson@apple.com>
783 WebIconLoader is dead, long live WebCore::IconLoader
786 * Loader/WebFrameLoader.h:
787 * Loader/WebFrameLoader.m:
788 (-[WebFrameLoader dealloc]):
789 (-[WebFrameLoader commitProvisionalLoad]):
790 * Loader/WebIconLoader.h: Removed.
791 * Loader/WebIconLoader.m: Removed.
792 * Misc/WebIconDatabase.h:
793 * Misc/WebIconDatabase.m:
794 * Misc/WebIconDatabasePrivate.h:
795 * WebCoreSupport/WebFrameBridge.m:
796 (-[WebFrameBridge notifyIconChanged:]):
797 * WebCoreSupport/WebIconDatabaseBridge.h:
798 * WebCoreSupport/WebIconDatabaseBridge.m:
799 (-[WebIconDatabaseBridge _init]):
800 (-[WebIconDatabaseBridge _setIconData:forIconURL:]):
801 (-[WebIconDatabaseBridge _setHaveNoIconForIconURL:]):
803 * WebKit.xcodeproj/project.pbxproj:
804 * WebView/WebDataSource.m:
805 (-[WebDataSourcePrivate dealloc]):
806 (-[WebDataSource _stopLoading]):
807 (-[WebDataSource _setPrimaryLoadComplete:]):
808 * WebView/WebDataSourceInternal.h:
810 2006-09-16 Mark Rowe <opendarwin.org@bdash.net.nz>
814 http://bugs.webkit.org/show_bug.cgi?id=10887
817 * MigrateHeaders.make: Remove reference to DOMEventPrivate.h.
819 2006-09-15 Timothy Hatcher <timothy@apple.com>
823 Make new style ObjC methods public API.
825 * MigrateHeaders.make:
827 2006-09-15 Sam Weinig <sam.weinig@gmail.com>
831 Patch for http://bugs.webkit.org/show_bug.cgi?id=10870
832 Auto-generate DOMNode for the Objective-C bindings
834 * MigrateHeaders.make:
836 2006-09-15 Timothy Hatcher <timothy@apple.com>
840 Call the bridge directly for alter selection calls. All of this logic is now
841 in WebCore's SelectionController.
843 * WebView/WebHTMLView.m:
844 (-[NSArray moveBackward:]):
845 (-[NSArray moveBackwardAndModifySelection:]):
846 (-[NSArray moveDown:]):
847 (-[NSArray moveDownAndModifySelection:]):
848 (-[NSArray moveForward:]):
849 (-[NSArray moveForwardAndModifySelection:]):
850 (-[NSArray moveLeft:]):
851 (-[NSArray moveLeftAndModifySelection:]):
852 (-[NSArray moveRight:]):
853 (-[NSArray moveRightAndModifySelection:]):
854 (-[NSArray moveToBeginningOfDocument:]):
855 (-[NSArray moveToBeginningOfDocumentAndModifySelection:]):
856 (-[NSArray moveToBeginningOfSentence:]):
857 (-[NSArray moveToBeginningOfSentenceAndModifySelection:]):
858 (-[NSArray moveToBeginningOfLine:]):
859 (-[NSArray moveToBeginningOfLineAndModifySelection:]):
860 (-[NSArray moveToBeginningOfParagraph:]):
861 (-[NSArray moveToBeginningOfParagraphAndModifySelection:]):
862 (-[NSArray moveToEndOfDocument:]):
863 (-[NSArray moveToEndOfDocumentAndModifySelection:]):
864 (-[NSArray moveToEndOfSentence:]):
865 (-[NSArray moveToEndOfSentenceAndModifySelection:]):
866 (-[NSArray moveToEndOfLine:]):
867 (-[NSArray moveToEndOfLineAndModifySelection:]):
868 (-[NSArray moveToEndOfParagraph:]):
869 (-[NSArray moveToEndOfParagraphAndModifySelection:]):
870 (-[NSArray moveParagraphBackwardAndModifySelection:]):
871 (-[NSArray moveParagraphForwardAndModifySelection:]):
872 (-[NSArray moveUp:]):
873 (-[NSArray moveUpAndModifySelection:]):
874 (-[NSArray moveWordBackward:]):
875 (-[NSArray moveWordBackwardAndModifySelection:]):
876 (-[NSArray moveWordForward:]):
877 (-[NSArray moveWordForwardAndModifySelection:]):
878 (-[NSArray moveWordLeft:]):
879 (-[NSArray moveWordLeftAndModifySelection:]):
880 (-[NSArray moveWordRight:]):
881 (-[NSArray moveWordRightAndModifySelection:]):
882 (-[NSArray pageUp:]):
883 (-[NSArray pageDown:]):
884 (-[NSArray pageUpAndModifySelection:]):
885 (-[NSArray pageDownAndModifySelection:]):
887 2006-09-15 Adam Roben <aroben@apple.com>
891 Fixes http://bugs.webkit.org/show_bug.cgi?id=10876
892 containsItemForURLUnicode uses matchLetter instead of
895 Small fixes for _WebCoreHistoryProvider.
897 * History/WebHistory.m: Consistently use BUFFER_SIZE #define
898 (-[_WebCoreHistoryProvider containsItemForURLLatin1:length:]):
899 (-[_WebCoreHistoryProvider containsItemForURLUnicode:length:]):
900 Replace incorrect call to matchLetter to matchUnicodeLetter
902 2006-09-13 Brady Eidson <beidson@apple.com>
906 Add infrastructure to support icon loads taking place in WebCore
907 Will remove WebKit icon loaders in a later patch
909 * WebCoreSupport/WebFrameBridge.m:
910 (-[WebFrameBridge notifyIconChanged:]):
911 (-[WebFrameBridge originalRequestURL]):
912 - Nuked two old, obsolete methods
913 - Added bridge for notifying of an icon change
914 - Added bridge for getting the "original request URL" which is still needed
915 until that info is available in the WebCore loaders
917 * WebView/WebDataSource.m:
918 (-[WebDataSource _loadIcon]):
919 - Empty body just for now, as it still gets called - next patch will prune all the old impl out
921 2006-09-13 Timothy Hatcher <timothy@apple.com>
925 <rdar://problem/4726416> obsolete confusing "ADVISORY NOTE" comment in WebHistory.h
927 Removed the "ADVISORY NOTE: This method may change for the 1.0 SDK" comments.
929 * History/WebHistory.h:
931 === Safari-521.26 ===
933 2006-09-11 MorganL <morlmor@yahoo.com>
935 Reviewed/landed by aroben.
937 Fixes http://bugs.webkit.org/show_bug.cgi?id=10765
938 Windows build busted due to std::copy usage in Vector.h
940 * WebKit.vcproj/WebKit.vcproj: Define _SCL_SECURE_NO_DEPRECATE to get
941 rid of deprecation warnings on std::copy
943 2006-09-11 Brady Eidson <beidson@apple.com>
945 Despite the fact that some people built okay without this change, it sure was biting me,
946 probably because I just wiped my build directory for a fresh build -
947 Today's earlier removal of DOMList.h needed to occur in MigrateHeaders.make, as well
949 * MigrateHeaders.make: removed DOMList.h
951 2006-09-10 Darin Adler <darin@apple.com>
955 - fix http://bugs.webkit.org/show_bug.cgi?id=10547
956 REGRESSION: Links that should open in a new window open in the same window,
957 while opening another blank window
959 * WebView/WebFrame.m:
960 (-[WebFrame _continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
961 Changed a mistaken "self" to "frame", which was the cause of the bug. Also
962 fixed the method so that it won't crash if createWebViewWithRequest does
963 something that has a side effect of releasing this WebView or this frame
964 by retaining "self" and "frame" as needed. Also fixed a problem where the
965 code to set "opener" was backwards, and would set the opener of the old
966 frame to point to the new frame instead of vice versa.
968 2006-09-09 Sam Weinig <sam.weinig@gmail.com>
972 Patch for http://bugs.webkit.org/show_bug.cgi?id=10795
973 Auto-generate the Objective-C DOM XPath bindings
975 * MigrateHeaders.make:
977 2006-09-09 Sam Weinig <sam.weinig@gmail.com>
981 Patch for http://bugs.webkit.org/show_bug.cgi?id=10791
982 Even More Objective-C DOM auto-generation cleanup
984 * MigrateHeaders.make:
986 2006-09-08 Tim Omernick <timo@apple.com>
988 Reviewed by Brady Eidson.
990 Rolled out Maciej's code cleanup from 8/22. It turns out that keeping the "loading" flag
991 is a useful optimization, as it avoids many Objective-C method calls while polling resources
992 for their load state.
994 This fixes a 3-4% PLT performance regression (as measured on my MacBook Pro).
996 * Loader/WebFrameLoader.m:
997 (-[WebFrameLoader addPlugInStreamLoader:]):
998 (-[WebFrameLoader removePlugInStreamLoader:]):
999 (-[WebFrameLoader addSubresourceLoader:]):
1000 (-[WebFrameLoader removeSubresourceLoader:]):
1001 * WebView/WebDataSource.m:
1002 (-[WebDataSourcePrivate dealloc]):
1003 (-[WebDataSource _prepareForLoadStart]):
1004 (-[WebDataSource _setLoading:]):
1005 (-[WebDataSource _updateLoading]):
1006 (-[WebDataSource _startLoading]):
1007 (-[WebDataSource _stopLoading]):
1008 (-[WebDataSource _setPrimaryLoadComplete:]):
1009 (-[WebDataSource isLoading]):
1010 * WebView/WebDataSourceInternal.h:
1012 2006-09-07 Sam Weinig <sam.weinig@gmail.com>
1014 Reviewed by Darin and Tim H.
1016 Patch for http://bugs.webkit.org/show_bug.cgi?id=10774
1017 Auto-generate the Objective-C DOM Traversal bindings
1019 * MigrateHeaders.make:
1021 2006-09-07 Sam Weinig <sam.weinig@gmail.com>
1025 Patch for http://bugs.webkit.org/show_bug.cgi?id=10766
1026 Auto-generate the Objective-C DOM Events bindings
1028 * MigrateHeaders.make:
1029 * WebKit.xcodeproj/project.pbxproj:
1031 2006-09-06 Alexey Proskuryakov <ap@nypop.com>
1033 * MigrateHeaders.make: Fixed a double slash in
1034 "$(PRIVATE_HEADERS_DIR)//DOMCharacterDataPrivate.h" (this was reported
1035 to cause a build failure under certain circumstances).
1037 2006-09-05 MorganL <morlmor@yahoocom>
1039 Reviewed/landed by aroben.
1041 Fixes bug 10743: Windows build is busted.
1044 (WebView::keyPress):
1046 2006-09-05 Timothy Hatcher <timothy@apple.com>
1050 Drastically simplified the makefile for migrating headers from
1051 WebCore and JavaScriptCore. The old version was always copying the files.
1053 * MigrateHeaders.make:
1055 2006-09-05 Darin Adler <darin@apple.com>
1059 - WebKit side of changes to encoding
1061 * WebView/WebHTMLRepresentation.m: (-[WebHTMLRepresentation documentSource]):
1062 Changed to call new -[WebCoreFrameBridge stringWithData:] instead of the calling
1063 the old methods that used a CFStringEncoding: -[WebCoreFrameBridge textEncoding]
1064 and +[WebCoreFrameBridge stringWithData:textEncoding:].
1066 * WebView/WebResource.m: (-[WebResource _stringValue]): Removed special case for
1067 nil encoding name. The bridge itself now has the rule that "nil encoding name
1068 means Latin-1", so we don't need to check for nil.
1070 * WebView/WebFrame.m: (-[WebFrame _checkLoadComplete]): Retain the frame until
1071 we get the parent frame while walking up parent frames, because it's possible
1072 for _checkLoadCompleteForThisFrame to release the last reference to the frame.
1073 (Not reviewed; needed to run performance tests successfully.)
1075 2006-09-05 Timothy Hatcher <timothy@apple.com>
1079 <rdar://problem/4682225> conflicting typedefs in Netscape plug-in headers
1081 * Plugins/npfunctions.h: fix the return type for NPN_IntFromIdentifierProcPtr to be int32_t
1083 2006-09-04 Timothy Hatcher <timothy@apple.com>
1087 Bug 10714: ObjC autogeneration needs safe-guards against easily modifying the public API
1088 http://bugs.webkit.org/show_bug.cgi?id=10714
1090 - Added the new private DOM headers.
1091 - Factored out the common commands into variables.
1092 - Made WebDashboardRegion.h private again.
1093 - Rename DOMDOMImplementation.h to DOMImplementation.h when files
1094 are migrated. Also fixes up #imports.
1096 * MigrateHeaders.make:
1098 2006-09-03 Sam Weinig <sam.weinig@gmail.com>
1100 Reviewed by Darin and Tim H.
1102 - patch for http://bugs.webkit.org/show_bug.cgi?id=10711
1103 Auto-generate the Objective-C DOM Stylesheet bindings
1105 * MigrateHeaders.make:
1107 2006-09-02 Sam Weinig <sam.weinig@gmail.com>
1111 - patch for http://bugs.webkit.org/show_bug.cgi?id=10684
1112 Auto-generate the Objective-C DOM CSS bindings
1114 * MigrateHeaders.make:
1116 2006-09-01 MorganL <morlmor@yahoo.com>
1118 Reviewed by Darin. Updated/landed by Adam.
1120 Fixes http://bugs.webkit.org/show_bug.cgi?id=10553
1124 (WebFrame::initWithName):
1126 2006-09-01 Brady Eidson <beidson@apple.com>
1130 A "never should be reached" method was reached - lets not release the shared database bridge, esp
1131 since we never retain it!
1133 * Misc/WebIconDatabase.m:
1134 (-[WebIconDatabase _applicationWillTerminate:]): Don't release the bridge
1136 2006-09-01 Darin Adler <darin@apple.com>
1140 - a few small tweaks to the icon database bridge
1142 * Misc/WebIconDatabase.m: (-[WebIconDatabase init]): Updated for name change.
1144 * WebCoreSupport/WebIconDatabaseBridge.h: Removed unneeded declarations.
1145 * WebCoreSupport/WebIconDatabaseBridge.m:
1146 (-[WebIconDatabaseBridge init]): Added. Always returns nil since you're not supposed
1147 to allocate one of these.
1148 (-[WebIconDatabaseBridge _init]): Renamed from init. Used internally to make the
1149 shared instance. Added the "self = [super init]" idiom even though it's not important
1150 in this case just to be consistent.
1151 (-[WebIconDatabaseBridge releaseCachedLoaderForIconURL:]): Moved this up in the file
1152 so it can be called without declaring it in the header.
1153 (+[WebIconDatabaseBridge sharedInstance]): Renamed. Calls the new _init. Also use
1154 CFRetain for compatibility.
1155 (-[WebIconDatabaseBridge dealloc]): Emptied this out and made it just assert (false).
1156 (-[WebIconDatabaseBridge finalize]): Added and made it assert (false) too.
1158 2006-09-01 Timothy Hatcher <timothy@apple.com>
1162 Bug 10677: Omit "-webkit-text-security: none;" from the computed style list
1163 http://bugs.webkit.org/show_bug.cgi?id=10677
1165 * WebInspector/webInspector/inspector.js:
1167 2006-08-31 Sam Weinig <sam.weinig@gmail.com>
1171 - patch for http://bugs.webkit.org/show_bug.cgi?id=10669
1172 Auto-generate the remaining Objective-C HTML DOM bindings
1174 * MigrateHeaders.make:
1176 2006-08-31 Adele Peterson <adele@apple.com>
1180 WebKit part of fix for http://bugs.webkit.org/show_bug.cgi?id=10666
1181 Password: Disallow Spelling, Font, Speech, and Writing Direction context menu
1183 * DefaultDelegates/WebDefaultContextMenuDelegate.m: (-[WebDefaultUIDelegate editingContextMenuItemsForElement:defaultMenuItems:]):
1184 Check that the selection isn't in a password field before adding these items to the default editing context menu.
1185 Search In Google, Search In Spotlight, Look up in Dictionary, Spelling, Font, Speech, Writing Direction
1186 * WebView/WebHTMLView.m: (-[WebHTMLView _isSelectionInPasswordField]): Added.
1187 * WebView/WebHTMLViewPrivate.h:
1189 2006-08-31 Sam Weinig <sam.weinig@gmail.com>
1193 - patch for http://bugs.webkit.org/show_bug.cgi?id=10653
1194 Auto-generate another 20 Objective-C DOM HTML bindings
1196 * MigrateHeaders.make:
1197 * WebKit.xcodeproj/project.pbxproj:
1199 2006-08-31 Adele Peterson <adele@apple.com>
1201 Reviewed by John Sullivan.
1203 Removed wkSecureEventInput and wkSetSecureEventInput, since this can be done with API.
1205 * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface):
1207 2006-08-31 John Sullivan <sullivan@apple.com>
1209 Reviewed by Tim Omernick
1211 - fixed <rdar://problem/4711200> Loading history would be faster if it bypassed
1212 NSURL API for local files
1214 * History/WebHistory.m:
1215 (-[WebHistoryPrivate _loadHistoryGutsFromURL:savedItemsCount:collectDiscardedItemsInto:error:]):
1216 Load file URLs using [NSDictionary dictionaryWithContentsOfFile:]. I also cleaned up some minor
1217 style issues in this method, and I removed the support for old NSArray-style history files (which we
1218 stopped using before Safari 1.0).
1220 2006-08-30 Adele Peterson <adele@apple.com>
1224 WebKit part of fix for http://bugs.webkit.org/show_bug.cgi?id=10575
1225 Enable secure input mode for new password fields
1227 * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface):
1229 2006-08-30 Brady Eidson <beidson@apple.com>
1233 <rdar://problem/4707718> Change behavior so if the WebCore::IconDatabase can't open, WebKit releases the bridge and
1234 continues on as if the IconDatabase is disabled.
1236 * Misc/WebIconDatabase.m:
1237 (-[WebIconDatabase init]): Release the bridge on failure to open
1238 * WebCoreSupport/WebIconDatabaseBridge.m:
1239 (+[WebIconDatabaseBridge sharedBridgeInstance]): Moved static shared instance out as a global
1240 (-[WebIconDatabaseBridge dealloc]): Clear pointer to the shared instance
1242 2006-08-30 Timothy Hatcher <timothy@apple.com>
1246 Simplify the header copies from WebCore and JavaScriptCore.
1247 Headers that need to be migrated from the other projects need
1248 to be added to MigrateHeaders.make.
1250 * MigrateHeaders.make: Added.
1251 * WebKit.xcodeproj/project.pbxproj:
1253 2006-08-30 Sam Weinig <sam.weinig@gmail.com>
1257 - patch for http://bugs.webkit.org/show_bug.cgi?id=10640
1258 Auto-generate 10 more Objective-C DOM HTML bindings
1260 * WebKit.xcodeproj/project.pbxproj:
1262 2006-08-30 Adele Peterson <adele@apple.com>
1266 WebKit part of fix for:
1267 http://bugs.webkit.org/show_bug.cgi?id=10576
1268 Disallow copy from new password fields
1270 * WebView/WebHTMLView.m:
1271 (-[WebHTMLView _canCopy]): Now also calls across the bridge to ask if it mayCopy.
1272 (-[WebHTMLView _canCut]): Calls _canCopy now.
1273 (-[NSArray validateUserInterfaceItem:]): Calls _canCut when validating the "Cut" menu item.
1274 This used to call _canDelete (which used to be the same as _canCut), but now _canCut also checks _canCopy.
1276 2006-08-30 Karl Adam <karladam@yahoo-inc.com>
1278 Reviewed by Eric and Tim H.
1280 Bug 10634: -webView:dragDestinationActionMaskForDraggingInfo: is ignored
1281 http://bugs.webkit.org/show_bug.cgi?id=10634
1283 Remove the check for canShowFile: from _web_bestURL: since
1284 it shouldn't be concerned with whether or not the view
1285 can show the URL, merely return the most appropriate URL.
1287 * Misc/WebNSPasteboardExtras.m:
1288 (-[NSPasteboard _web_bestURL]):
1289 * Misc/WebNSViewExtras.m:
1290 (-[NSView _web_dragOperationForDraggingInfo:]):
1292 2006-08-29 Brady Eidson <beidson@apple.com>
1294 Reviewed by Kevin Decker (Sarge)
1296 <rdar://problem/4678414> - New IconDB needs to delete icons when asked
1298 * Misc/WebIconDatabase.m:
1299 (-[WebIconDatabase removeAllIcons]): Call through to WebCore to remove icons, then send notification
1301 2006-08-29 Brady Eidson <beidson@apple.com>
1305 Added a truth value check for to setIconURL:forURL so WebKit can avoid sending a notification
1306 This is a win on the iBench
1308 * Misc/WebIconDatabase.m:
1309 (-[WebIconDatabase _setIconURL:forURL:]):
1311 2006-08-29 Brady Eidson <beidson@apple.com>
1313 Reviewed by Tim Hatchers rubber stamp
1315 Removed some accidentally left-in console spew during the conversion to the new DB
1317 * Misc/WebIconDatabase.m:
1318 (objectFromPathForKey): Nuked some NSLogs
1320 2006-08-29 Tim Omernick <timo@apple.com>
1322 Reviewed by Darin Adler.
1324 <rdar://problem/4688618> REGRESSION(10.4.7-9A241): JMol java applet fails in Safari not Firefox
1326 No layout test for now because Java doesn't work in DumpRenderTree.
1328 * Plugins/WebPluginDatabase.m:
1329 (-[WebPluginDatabase refresh]):
1330 Add each plug-in MIME type to registeredMIMETypes, even if we don't register a document view class for the
1331 MIME type. This fixes -[WebPluginDatabase isMIMETypeRegistered:] and thus fallback content for Java applets
1332 (we were always rendering fallback content, if any, for Java applets).
1334 2006-08-29 Sam Weinig <sam.weinig@gmail.com>
1338 - patch for http://bugs.webkit.org/show_bug.cgi?id=10628
1339 Auto-generate the remaining Objective-C DOM bindings
1341 Auto-generates DOMHTMLCollection, DOMHTMLElement, DOMHTMLFormElement,
1342 and DOMHTMLOptionsCollection.
1344 * WebKit.xcodeproj/project.pbxproj:
1346 2006-08-28 Brady Eidson <beidson@apple.com>
1350 Short of a few small snippets that still need to be pushed to WebCore, this
1351 is a final prune of WebIconDatabase. WebFileDatabase and WebLRUFileList are gone
1352 and the small remaining snippets of WebFileDatabase code that were still important
1353 are now in static functions in WebIconDatabase.m
1355 * Loader/WebIconLoader.m:
1356 (-[WebIconLoader didFinishLoading]): Removed the flag
1357 * Misc/WebFileDatabase.h: Removed.
1358 * Misc/WebFileDatabase.m: Removed.
1359 * Misc/WebIconDatabase.m:
1360 (+[WebIconDatabase sharedIconDatabase]):
1361 (-[WebIconDatabase init]):
1362 (-[WebIconDatabase iconForURL:withSize:cache:]):
1363 (-[WebIconDatabase iconURLForURL:]):
1364 (-[WebIconDatabase defaultIconWithSize:]):
1365 (-[WebIconDatabase retainIconForURL:]):
1366 (-[WebIconDatabase releaseIconForURL:]):
1367 (-[WebIconDatabase _isEnabled]):
1368 (-[WebIconDatabase _setIconData:forIconURL:]):
1369 (-[WebIconDatabase _setHaveNoIconForIconURL:]):
1370 (-[WebIconDatabase _setIconURL:forURL:]):
1371 (-[WebIconDatabase _hasEntryForIconURL:]):
1372 (-[WebIconDatabase _applicationWillTerminate:]):
1373 (-[WebIconDatabase _resetCachedWebPreferences:]):
1374 (uniqueFilePathForKey): Added from WebFileDatabase
1375 (objectFromPathForKey): Added from WebFileDatabase
1376 (iconDataFromPathForIconURL):
1377 (-[WebIconDatabase _convertToWebCoreFormat]): Make use of static functions and local variables
1378 instead of using WebFileDatabase and WebIconDatabase variables that are now obsolete
1379 * Misc/WebIconDatabasePrivate.h: Removed alot of obsoleted members
1380 * Misc/WebLRUFileList.h: Removed.
1381 * Misc/WebLRUFileList.m: Removed.
1382 * WebKit.xcodeproj/project.pbxproj: Deleted 4 files
1383 * WebKitPrefix.h: Removed ICONDEBUG
1385 2006-08-28 Tim Omernick <timo@apple.com>
1387 Reviewed by Darin Adler.
1389 * Plugins/WebBaseNetscapePluginView.m:
1390 (-[WebBaseNetscapePluginView createPluginScriptableObject]):
1391 Removed a bogus typecast.
1393 2006-08-28 Tim Omernick <timo@apple.com>
1395 Reviewed by John Sullivan.
1397 Part of <rdar://problem/4481553> NetscapeMoviePlugIn example code scripting doesn't work in Firefox (4319)
1398 <http://bugs.webkit.org/show_bug.cgi?id=4319>: NetscapeMoviePlugIn example code scripting doesn't work
1401 * Plugins/WebBaseNetscapePluginView.h:
1402 * Plugins/WebBaseNetscapePluginView.m:
1403 (-[WebBaseNetscapePluginView createPluginScriptableObject]):
1404 Renamed this method (see corresponding WebCore ChangeLog entry for an explanation).
1407 2006-08-28 Brady Eidson <beidson@apple.com>
1409 Reviewed by Tim Hatcher's rubberstamp
1411 Rolled out my last change (16070 - pruning WebFileDatabase code) as it caused a difficult-to-track down
1412 failure in layout tests on a release build.
1414 * Misc/WebFileDatabase.h:
1415 * Misc/WebFileDatabase.m:
1416 (+[WebFileDatabaseOp opWithCode:key:object:]):
1417 (-[WebFileDatabaseOp initWithCode:key:object:]):
1418 (-[WebFileDatabaseOp opcode]):
1419 (-[WebFileDatabaseOp key]):
1420 (-[WebFileDatabaseOp object]):
1421 (-[WebFileDatabaseOp perform:]):
1422 (-[WebFileDatabaseOp dealloc]):
1423 (SetThreadPriority):
1424 (-[WebFileDatabase _createLRUList:]):
1425 (-[WebFileDatabase _truncateToSizeLimit:]):
1426 (+[WebFileDatabase _syncLoop:]):
1428 (-[WebFileDatabase setTimer]):
1429 (-[WebFileDatabase setObject:forKey:]):
1430 (-[WebFileDatabase removeObjectForKey:]):
1431 (-[WebFileDatabase removeAllObjects]):
1432 (-[WebFileDatabase objectForKey:]):
1433 (-[WebFileDatabase performSetObject:forKey:]):
1434 (-[WebFileDatabase performRemoveObjectForKey:]):
1435 (-[WebFileDatabase open]):
1436 (-[WebFileDatabase close]):
1437 (-[WebFileDatabase lazySync:]):
1438 (-[WebFileDatabase sync]):
1439 (-[WebFileDatabase sizeLimit]):
1440 (-[WebFileDatabase count]):
1441 (-[WebFileDatabase usage]):
1442 (-[WebFileDatabase setSizeLimit:]):
1443 * Misc/WebIconDatabase.m:
1444 (-[WebIconDatabase _createFileDatabase]):
1445 (-[WebIconDatabase _loadIconDictionaries]):
1446 * WebKit.xcodeproj/project.pbxproj:
1448 2006-08-28 Darin Adler <darin@apple.com>
1450 Reviewed by Tim Hatcher.
1452 * WebInspector/webInspector/inspector.js: Add "resize: none" to the list of
1453 default values for CSS properties so it will be omitted from most displays
1456 2006-08-28 Brady Eidson <beidson@apple.com>
1460 Major prune of unnecessary WebFileDatabase code. In the end, what
1461 useful code that remains in WebFileDatabase will likely be moved directly
1462 into WebIconDatabase
1464 * Misc/WebFileDatabase.h:
1465 * Misc/WebFileDatabase.m:
1466 (-[WebFileDatabase initWithPath:]):
1467 (-[WebFileDatabase objectForKey:]):
1468 (-[WebFileDatabase open]):
1469 (-[WebFileDatabase close]):
1470 * Misc/WebIconDatabase.m:
1471 (-[WebIconDatabase _createFileDatabase]):
1472 (-[WebIconDatabase _loadIconDictionaries]):
1473 * Misc/WebLRUFileList.h: Removed.
1474 * Misc/WebLRUFileList.m: Removed.
1475 * WebKit.xcodeproj/project.pbxproj:
1477 2006-08-27 Sam Weinig <sam.weinig@gmail.com>
1481 - patch for http://bugs.webkit.org/show_bug.cgi?id=4624
1482 WebCore needs autogenerated Obj-C DOM bindings
1484 First round of auto-generated Objective C DOM bindings, starting
1487 * WebKit.xcodeproj/project.pbxproj:
1489 2006-08-25 Brady Eidson <beidson@apple.com>
1491 Reviewed by Tim Hatcher
1493 Fixed up some leaks on [WebIconDatabase init]
1495 * Misc/WebIconDatabase.m:
1496 (-[WebIconDatabase init]):
1498 2006-08-24 Timothy Hatcher <timothy@apple.com>
1502 * WebView/WebFrame.m:
1503 (-[WebFrame _updateBackground]): reworded the comment about scroll view and setDrawsBackground:YES
1504 * WebView/WebView.m:
1505 (-[WebViewPrivate dealloc]): release the background color
1507 2006-08-24 Timothy Hatcher <timothy@apple.com>
1511 WebView API to allow changing the background color that draws under transparent page backgrounds.
1513 * WebView/WebFrame.m:
1514 (-[WebFrame _makeDocumentView]):
1515 (-[WebFrame _updateBackground]):
1516 * WebView/WebFrameInternal.h:
1517 * WebView/WebFrameView.m:
1518 (-[WebFrameView drawRect:]):
1519 * WebView/WebView.m:
1520 (-[WebView setBackgroundColor:]):
1521 (-[WebView backgroundColor]):
1522 (-[WebView _commonInitializationWithFrameName:groupName:]):
1523 (-[WebView setDrawsBackground:]):
1524 * WebView/WebViewPrivate.h:
1526 2006-08-24 Timothy Hatcher <timothy@apple.com>
1530 Fix for Mail stationary. Selecting a stationary item would cause this exception.
1531 *** -[WebSubresourceLoader copyWithZone:]: selector not recognized
1532 Uncaught exception - *** -[WebSubresourceLoader copyWithZone:]: selector not recognized
1534 * Loader/WebFrameLoader.m:
1535 (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
1536 Use _webkit_setObject:forUncopiedKey: when addign the resource to pendingArchivedResources.
1538 2006-08-23 Maciej Stachowiak <mjs@apple.com>
1542 - fix assertion which I accidentally changed to one that sometimes fails
1543 http://bugs.webkit.org/show_bug.cgi?id=10531
1545 * Loader/WebDocumentLoadState.m:
1546 (-[WebDocumentLoadState dealloc]):
1547 * WebView/WebDataSource.m:
1548 (-[WebDataSourcePrivate dealloc]):
1549 (-[WebDataSource dealloc]):
1551 2006-08-23 Maciej Stachowiak <mjs@apple.com>
1555 - move WebFrame code that creates WebDataSources down to WebFrameLoader, in preparation
1556 for WebFrameLoader just holding on to WebDocumentLoadState
1558 * Loader/WebFrameLoader.h:
1559 * Loader/WebFrameLoader.m:
1560 (-[WebFrameLoader _loadRequest:archive:]):
1561 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
1562 (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
1563 (-[WebFrameLoader reload]):
1564 * WebView/WebFrame.m:
1565 (-[WebFrame _loadItem:withLoadType:]):
1566 (-[WebFrame _continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
1567 (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
1568 (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
1569 (-[WebFrame _shouldReloadToHandleUnreachableURLFromRequest:]):
1570 (-[WebFrame loadRequest:]):
1571 (-[WebFrame loadArchive:]):
1572 (-[WebFrame reload]):
1573 * WebView/WebFrameInternal.h:
1574 * WebView/WebFramePrivate.h:
1575 * WebView/WebView.m:
1576 (-[WebView setCustomTextEncodingName:]):
1578 2006-08-23 Brady Eidson <beidson@apple.com>
1582 First pass at pruning unused WebIconDatabase code. Focus on removing methods that simply
1583 have no place in the new DB at all. A few renames and a few important FIXMEs result, but no
1584 functionality changes.
1586 * Loader/WebIconLoader.m:
1587 (-[WebIconLoader didFinishLoading]): Call to WebIconDatabase instead of directly to the bridge
1588 * Misc/WebIconDatabase.h:
1589 * Misc/WebIconDatabase.m:
1590 (-[WebIconDatabase init]):
1591 (-[WebIconDatabase iconForURL:withSize:cache:]):
1592 (-[WebIconDatabase iconURLForURL:]):
1593 (-[WebIconDatabase defaultIconWithSize:]):
1594 (-[WebIconDatabase retainIconForURL:]):
1595 (-[WebIconDatabase releaseIconForURL:]):
1596 (-[WebIconDatabase removeAllIcons]):
1597 (-[WebIconDatabase _setIconData:forIconURL:]):
1598 (-[WebIconDatabase _setHaveNoIconForIconURL:]):
1599 (-[WebIconDatabase _setIconURL:forURL:]):
1600 (-[WebIconDatabase _hasEntryForIconURL:]):
1601 (-[WebIconDatabase _applicationWillTerminate:]):
1602 (-[WebIconDatabase _resetCachedWebPreferences:]):
1603 * Misc/WebIconDatabasePrivate.h: Changed setIcon: to setIconData:
1605 2006-08-23 Maciej Stachowiak <mjs@apple.com>
1609 - started factoring most of the guts of WebDataSource into a new class
1611 WebDocumentLoadState is decoupled from the rest of WebKit and will
1612 be moved down to WebCore. I only moved one of the data fields of
1613 WebDataSource for now.
1615 * Loader/WebDocumentLoadState.h: Added.
1616 * Loader/WebDocumentLoadState.m: Added.
1617 (-[WebDocumentLoadState initWithRequest:]): New class.
1618 (-[WebDocumentLoadState dealloc]):
1619 (-[WebDocumentLoadState setFrameLoader:]):
1620 (-[WebDocumentLoadState setMainResourceData:]):
1621 (-[WebDocumentLoadState mainResourceData]):
1622 * Loader/WebFrameLoader.m:
1623 (-[WebFrameLoader _setDataSource:]): Remove redundant _setWebFrame: call,
1624 it would have been called already by this point.
1625 (-[WebFrameLoader _setProvisionalDataSource:]): ditto.
1626 * WebKit.xcodeproj/project.pbxproj:
1627 * WebView/WebDataSource.m:
1628 (-[WebDataSourcePrivate dealloc]):
1629 (-[WebDataSource _setWebFrame:]):
1630 (-[WebDataSource _setPrimaryLoadComplete:]):
1631 (-[WebDataSource initWithRequest:]):
1632 (-[WebDataSource data]):
1634 2006-08-23 Maciej Stachowiak <mjs@apple.com>
1638 - refactoring of WebDataSource in preparation for moving a bunch of it to a new class
1640 - minimize WebDataSourceInternal.h to be only methods called from outside WebDataSource
1641 - reduce Private category implementation to be only the SPI methods
1642 - make new Internal and FileInternal categories which contain the
1643 remainder (depending on whether they are called from outside of
1646 * WebView/WebDataSource.m:
1647 (-[WebDataSource _setMainDocumentError:]):
1648 (addTypesFromClass):
1649 (+[WebDataSource _representationClassForMIMEType:]):
1650 (-[WebDataSource _commitIfReady]):
1651 (-[WebDataSource _commitLoadWithData:]):
1652 (-[WebDataSource _doesProgressiveLoadWithMIMEType:]):
1653 (-[WebDataSource _addResponse:]):
1654 (-[WebDataSource _revertToProvisionalState]):
1655 (-[WebDataSource _mainDocumentError]):
1656 (-[WebDataSource _addSubframeArchives:]):
1657 (-[WebDataSource _fileWrapperForURL:]):
1658 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
1659 (-[WebDataSource _decidePolicyForMIMEType:decisionListener:]):
1660 (-[WebDataSource _finishedLoading]):
1661 (-[WebDataSource _setResponse:]):
1662 (-[WebDataSource _setRequest:]):
1663 (-[WebDataSource _setupForReplaceByMIMEType:]):
1664 (-[WebDataSource _receivedMainResourceError:complete:]):
1665 (-[WebDataSource _mainReceivedError:complete:]):
1666 (-[WebDataSource _defersCallbacks]):
1667 (-[WebDataSource _downloadWithLoadingConnection:request:response:proxy:]):
1668 (-[WebDataSource _didFailLoadingWithError:forResource:]):
1669 (-[WebDataSource _didFinishLoadingForResource:]):
1670 (-[WebDataSource _didReceiveData:contentLength:forResource:]):
1671 (-[WebDataSource _didReceiveResponse:forResource:]):
1672 (-[WebDataSource _didCancelAuthenticationChallenge:forResource:]):
1673 (-[WebDataSource _didReceiveAuthenticationChallenge:forResource:]):
1674 (-[WebDataSource _willSendRequest:forResource:redirectResponse:]):
1675 (-[WebDataSource _identifierForInitialRequest:]):
1676 (-[WebDataSource _archivedSubresourceForURL:]):
1677 (-[WebDataSource _startLoading]):
1678 (-[WebDataSource _stopRecordingResponses]):
1679 (-[WebDataSource _loadingStartedTime]):
1680 (-[WebDataSource _replaceSelectionWithArchive:selectReplacement:]):
1681 (-[WebDataSource _documentFragmentWithArchive:]):
1682 (-[WebDataSource _documentFragmentWithImageResource:]):
1683 (-[WebDataSource _imageElementWithImageResource:]):
1684 (-[WebDataSource _title]):
1685 (-[WebDataSource _isStopping]):
1686 (-[WebDataSource _setWebFrame:]):
1687 (-[WebDataSource _URL]):
1688 (-[WebDataSource _loadFromPageCache:]):
1689 (-[WebDataSource _popSubframeArchiveWithName:]):
1690 (-[WebDataSource _setIsClientRedirect:]):
1691 (-[WebDataSource _setURL:]):
1692 (-[WebDataSource _setLastCheckedRequest:]):
1693 (-[WebDataSource _defersCallbacksChanged]):
1694 (-[WebDataSource _lastCheckedRequest]):
1695 (-[WebDataSource _stopLoading]):
1696 (-[WebDataSource _bridge]):
1697 (-[WebDataSource _webView]):
1698 (-[WebDataSource _triggeringAction]):
1699 (-[WebDataSource _setTriggeringAction:]):
1700 (-[WebDataSource __adoptRequest:]):
1701 (-[WebDataSource _isDocumentHTML]):
1702 (-[WebDataSource _stopLoadingWithError:]):
1703 (-[WebDataSource _setPrimaryLoadComplete:]):
1704 (-[WebDataSource _responses]):
1705 (-[WebDataSource _makeRepresentation]):
1706 (-[WebDataSource _isClientRedirect]):
1707 (-[WebDataSource _originalRequest]):
1708 (-[WebDataSource _URLForHistory]):
1709 (-[WebDataSource _addToUnarchiveState:]):
1710 (-[WebDataSource _setOverrideEncoding:]):
1711 (-[WebDataSource _setIconURL:]):
1712 (-[WebDataSource _setIconURL:withType:]):
1713 (-[WebDataSource _overrideEncoding]):
1714 (-[WebDataSource _setTitle:]):
1715 * WebView/WebDataSourceInternal.h:
1717 2006-08-23 Brady Eidson <beidson@apple.com>
1719 Reviewed by John Sullivan
1722 Flip the switch to the new Icon Database
1723 Massive code pruning is coming up
1725 * WebKitPrefix.h: Flipped the switch
1727 2006-08-23 Brady Eidson <beidson@apple.com>
1730 Since I just pushed the default URL icon from WebKit to WebCore, but
1731 WebKit was still using its version of the default icon, this patch makes it
1732 use the WebCore version
1734 * Misc/WebIconDatabase.m:
1735 (-[WebIconDatabase defaultIconWithSize:]):
1737 2006-08-22 Maciej Stachowiak <mjs@apple.com>
1741 - remove "loading" flag from WebDataSource and code that manages it; it is redundat.
1743 * Loader/WebFrameLoader.m:
1744 (-[WebFrameLoader addPlugInStreamLoader:]):
1745 (-[WebFrameLoader removePlugInStreamLoader:]):
1746 (-[WebFrameLoader addSubresourceLoader:]):
1747 (-[WebFrameLoader removeSubresourceLoader:]):
1748 * WebView/WebDataSource.m:
1749 (-[WebDataSourcePrivate dealloc]):
1750 (-[WebDataSource _setPrimaryLoadComplete:]):
1751 (-[WebDataSource _stopLoading]):
1752 (-[WebDataSource _prepareForLoadStart]):
1753 (-[WebDataSource _startLoading]):
1754 (-[WebDataSource isLoading]):
1755 * WebView/WebDataSourceInternal.h:
1757 2006-08-22 Maciej Stachowiak <mjs@apple.com>
1761 <rdar://problem/4683948> REGRESSION: Assertion failure in [FrameProgressEntry addChild:forDataSource:] (fandango.com)
1763 * Loader/WebFrameLoader.m:
1764 (-[WebFrameLoader addSubresourceLoader:]): Add a WebKit-level assertion that should fire when this bad
1766 * Loader/WebSubresourceLoader.m:
1767 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]): Prevent
1768 the situation from occuring.
1770 2006-08-22 Maciej Stachowiak <mjs@apple.com>
1774 - pull more WebDataSource code into WebFrameLoader
1775 - make WebMainResourceLoader not depend on WebKit or on SPI
1777 * Loader/WebFrameLoader.h:
1778 * Loader/WebFrameLoader.m:
1779 (-[WebFrameLoader _downloadWithLoadingConnection:request:response:proxy:]):
1780 (-[WebFrameLoader _updateIconDatabaseWithURL:]):
1781 (-[WebFrameLoader _notifyIconChanged:]):
1782 (-[WebFrameLoader _iconLoaderReceivedPageIcon:]):
1783 (-[WebFrameLoader _checkNavigationPolicyForRequest:andCall:withSelector:]):
1784 (-[WebFrameLoader _checkContentPolicyForMIMEType:andCall:withSelector:]):
1785 (-[WebFrameLoader cancelContentPolicy]):
1786 * Loader/WebIconLoader.m:
1787 (-[WebIconLoader didFinishLoading]):
1788 * Loader/WebLoader.m:
1789 (-[NSURLProtocol loadWithRequest:]):
1790 (-[NSURLProtocol setDefersCallbacks:]):
1791 * Loader/WebMainResourceLoader.h:
1792 * Loader/WebMainResourceLoader.m:
1793 (-[WebMainResourceLoader initWithFrameLoader:]):
1794 (-[WebMainResourceLoader dealloc]):
1795 (-[WebMainResourceLoader cancelWithError:]):
1796 (-[WebMainResourceLoader continueAfterNavigationPolicy:formState:]):
1797 (-[WebMainResourceLoader willSendRequest:redirectResponse:]):
1798 (-[WebMainResourceLoader continueAfterContentPolicy:]):
1799 (-[WebMainResourceLoader checkContentPolicy]):
1800 (-[WebMainResourceLoader didReceiveResponse:]):
1801 * Plugins/WebPluginContainerCheck.m:
1802 * WebCoreSupport/WebSystemInterface.m:
1803 (InitWebCoreSystemInterface):
1804 * WebView/WebDataSource.m:
1805 (-[WebDataSource _loadIcon]):
1806 (-[WebDataSource _cancelledError]):
1807 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
1808 (+[WebDataSource _representationClassForMIMEType:]):
1809 (-[WebDataSource _commitLoadWithData:]):
1810 (-[WebDataSource _isDocumentHTML]):
1811 * WebView/WebDataSourceInternal.h:
1812 * WebView/WebFramePrivate.h:
1813 * WebView/WebPolicyDelegate.m:
1814 * WebView/WebPolicyDelegatePrivate.h:
1816 2006-08-21 Maciej Stachowiak <mjs@apple.com>
1820 - move more code from WebDataSource to WebFrameLoader
1822 Also marked a few more methods in WebDataSource as likely MOVABLE in a future round, since they do not
1823 use any of WebDataSource's private data.
1825 * Loader/WebFrameLoader.h:
1826 * Loader/WebFrameLoader.m:
1827 (-[WebFrameLoader addPlugInStreamLoader:]):
1828 (-[WebFrameLoader removePlugInStreamLoader:]):
1829 (-[WebFrameLoader addSubresourceLoader:]):
1830 (-[WebFrameLoader removeSubresourceLoader:]):
1831 (-[WebFrameLoader _didReceiveAuthenticationChallenge:forResource:]):
1832 (-[WebFrameLoader _didCancelAuthenticationChallenge:forResource:]):
1833 (-[WebFrameLoader _didReceiveResponse:forResource:]):
1834 (-[WebFrameLoader _didReceiveData:contentLength:forResource:]):
1835 (-[WebFrameLoader _didFinishLoadingForResource:]):
1836 (-[WebFrameLoader _didFailLoadingWithError:forResource:]):
1837 (-[WebFrameLoader _privateBrowsingEnabled]):
1838 (-[WebFrameLoader _finishedLoadingResource]):
1839 (-[WebFrameLoader _receivedError:]):
1840 (-[WebFrameLoader _finishedLoading]):
1841 * Loader/WebMainResourceLoader.m:
1842 (-[WebMainResourceLoader didReceiveData:lengthReceived:allAtOnce:]):
1843 (-[WebMainResourceLoader didFinishLoading]):
1844 * Loader/WebNetscapePlugInStreamLoader.m:
1845 (-[WebNetscapePlugInStreamLoader didFinishLoading]):
1846 (-[WebNetscapePlugInStreamLoader didFailWithError:]):
1847 (-[WebNetscapePlugInStreamLoader cancelWithError:]):
1848 * Loader/WebSubresourceLoader.m:
1849 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
1850 (-[WebSubresourceLoader signalFinish]):
1851 (-[WebSubresourceLoader didFailWithError:]):
1852 (-[WebSubresourceLoader cancel]):
1853 * Plugins/WebNetscapePluginStream.m:
1854 (-[WebNetscapePluginStream start]):
1855 * WebView/WebDataSource.m:
1856 (-[WebDataSource _replaceSelectionWithArchive:selectReplacement:]):
1857 (-[WebDataSource _updateIconDatabaseWithURL:]):
1858 (-[WebDataSource _loadIcon]):
1859 (-[WebDataSource _setPrimaryLoadComplete:]):
1860 (-[WebDataSource _cancelledError]):
1861 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
1862 (+[WebDataSource _representationClassForMIMEType:]):
1863 (-[WebDataSource _commitLoadWithData:]):
1864 (-[WebDataSource _receivedMainResourceError:complete:]):
1865 (-[WebDataSource _iconLoaderReceivedPageIcon:]):
1866 (-[WebDataSource _isDocumentHTML]):
1867 * WebView/WebDataSourceInternal.h:
1869 2006-08-21 Brady Eidson <beidson@apple.com>
1873 Quick ICONDEBUG flag fix
1875 * Misc/WebIconDatabase.m:
1876 (-[WebIconDatabase _applicationWillTerminate:]):
1878 2006-08-21 Brady Eidson <beidson@apple.com>
1882 -Renamed an internal only method for clarity
1883 -Tweaked WebDataSource for notification purposes with the new expiring icons
1884 -Fixed a bug with the ICONDEBUG flag
1886 * Misc/WebIconDatabase.m:
1887 (-[WebIconDatabase init]):
1888 (-[WebIconDatabase iconForURL:withSize:cache:]): #ifdef bug fixed
1889 (-[WebIconDatabase _hasEntryForIconURL:]): Renamed for clarity
1890 * Misc/WebIconDatabasePrivate.h:
1891 * WebView/WebDataSource.m:
1892 (-[WebDataSource _updateIconDatabaseWithURL:]):
1893 (-[WebDataSource _notifyIconChanged:]):
1894 (-[WebDataSource _loadIcon]):
1895 (-[WebDataSource _iconLoaderReceivedPageIcon:]):
1897 2006-08-17 Maciej Stachowiak <mjs@apple.com>
1901 - pull a bit of WebDataSource code into WebFrameLoader
1903 * Loader/WebFrameLoader.m:
1904 (-[WebFrameLoader _receivedError:]):
1905 (-[WebFrameLoader webFrame]):
1906 (-[WebFrameLoader _handleFallbackContent]):
1907 (+[WebFrameLoader _canShowMIMEType:]):
1908 (+[WebFrameLoader _representationExistsForURLScheme:]):
1909 (+[WebFrameLoader _generatedMIMETypeForURLScheme:]):
1910 * WebView/WebDataSource.m:
1911 * WebView/WebDataSourceInternal.h:
1913 2006-08-17 Timothy Hatcher <timothy@apple.com>
1915 Reviewed by Kevin Decker.
1917 <rdar://problem/4606857> WebKit: WebPreferencesChangedNotification not exported in 64-bit
1921 2006-08-17 Timothy Hatcher <timothy@apple.com>
1923 Reviewed by Kevin Decker.
1925 <rdar://problem/4633896> -[WebView close] should clear all delegates and call setHostWindow:nil
1926 <rdar://problem/4649759> Crash when selecting View Source menu using Chinese (-[WebView _close])
1928 Check to make sure _private is not null. A WebView can be dealloced before _private is setup.
1929 Set the _private->closed flag at the beginning of _close to prevent reentry.
1930 Set the host window and all the delegates to nil in _close.
1932 * WebView/WebView.m:
1933 (-[WebView _close]):
1935 2006-08-16 Brady Eidson <beidson@apple.com>
1939 * Misc/WebIconDatabase.m: Pruned unused method
1940 * Misc/WebIconDatabasePrivate.h: Ditto
1943 2006-08-15 Maciej Stachowiak <mjs@apple.com>
1945 Reviewed by Adele (preliminary version) and later by Kevin.
1947 - remove most WebKit dependencies from WebMainResourceLoader.
1949 * Loader/WebFrameLoader.h:
1950 * Loader/WebFrameLoader.m:
1951 (-[WebFrameLoader cannotShowMIMETypeForURL:]):
1952 (-[WebFrameLoader interruptForPolicyChangeErrorWithRequest:]):
1953 (-[WebFrameLoader isHostedByObjectElement]):
1954 (-[WebFrameLoader isLoadingMainFrame]):
1955 (+[WebFrameLoader _canShowMIMEType:]):
1956 (+[WebFrameLoader _representationExistsForURLScheme:]):
1957 (+[WebFrameLoader _generatedMIMETypeForURLScheme:]):
1958 * Loader/WebMainResourceLoader.h:
1959 * Loader/WebMainResourceLoader.m:
1960 (-[WebMainResourceLoader interruptForPolicyChangeError]):
1961 (-[WebMainResourceLoader willSendRequest:redirectResponse:]):
1962 (isCaseInsensitiveEqual):
1963 (shouldLoadAsEmptyDocument):
1964 (-[WebMainResourceLoader continueAfterContentPolicy:response:]):
1965 (-[WebMainResourceLoader didReceiveResponse:]):
1966 (-[WebMainResourceLoader didReceiveData:lengthReceived:allAtOnce:]):
1967 (-[WebMainResourceLoader didFinishLoading]):
1968 (-[WebMainResourceLoader loadWithRequestNow:]):
1969 (-[WebMainResourceLoader loadWithRequest:]):
1971 2006-08-15 Tim Omernick <timo@apple.com>
1973 Reviewed by Kevin Decker.
1975 * Plugins/WebNetscapePluginPackage.m:
1976 (-[WebNetscapePluginPackage _unloadWithShutdown:]):
1977 Fixed a subtle problem with the 64-bit debug build -- as written, this would LOG() on 64-bit and do nothing on
1979 * Plugins/WebPluginDatabase.m:
1980 (-[WebPluginDatabase _scanForNewPlugins]):
1981 Use +[NSMutableSet set] here.
1983 2006-08-15 Tim Omernick <timo@apple.com>
1985 Reviewed by Darin Adler.
1987 <http://bugs.webkit.org/show_bug.cgi?id=8980>
1988 ASSERTION FAILED: !isLoaded (WebKit/WebKit/Plugins/WebBasePluginPackage.m:228 -[WebBasePluginPackage dealloc])
1990 <rdar://problem/4526052> intermittent assertion failure in -[WebBasePluginPackage dealloc] running layout tests (8980)
1992 * Plugins/WebPluginDatabase.h:
1993 * Plugins/WebPluginDatabase.m:
1994 (+[WebPluginDatabase installedPlugins]):
1995 Observe NSApplicationWillTerminateNotification so we can unload plug-ins on quit.
1996 (-[WebPluginDatabase plugins]):
1997 'plugins' is now a dictionary.
1998 (-[WebPluginDatabase close]):
1999 Call new -_removePlugin: method.
2000 (-[WebPluginDatabase refresh]):
2001 Moved parts of this method out into other methods: -_addPlugin:, -_removePlugin:, and -_scanForNewPlugins.
2002 (-[WebPluginDatabase _plugInPaths]):
2003 No changes; just moved in file.
2004 (-[WebPluginDatabase _addPlugin:]):
2005 New method. Refactored from -refresh. Adds a plug-in to the database.
2006 (-[WebPluginDatabase _removePlugin:]):
2007 New method. Refactored from -refresh. Remove a plug-in from the database.
2008 (-[WebPluginDatabase _scanForNewPlugins]):
2009 New method. Refactored from -refresh. Returns the list of plug-in packages on disk.
2010 (-[WebPluginDatabase _applicationWillTerminate]):
2011 New method. Called when the application terminates. Closes the plug-in database so that all plug-ins are
2012 removed from the DB (and unloaded if necessary).
2014 * Plugins/WebBasePluginPackage.h:
2015 * Plugins/WebBasePluginPackage.m:
2016 (-[WebBasePluginPackage initWithPath:]):
2017 Try to create the NSBundle first, so if the file is not a valid bundle we bail out early. This
2018 avoids some stat()s and allocations during the plug-in refresh process.
2019 (-[WebBasePluginPackage isLoaded]):
2021 (-[WebBasePluginPackage load]):
2022 Base class for plug-in packages now always loads "successfully".
2023 (-[WebBasePluginPackage dealloc]):
2024 Removed this assertion. The base plug-in package class has no concept of
2026 (-[WebBasePluginPackage finalize]):
2028 (-[WebBasePluginPackage wasRemovedFromPluginDatabase:]):
2029 Moved code to unload plug-in package to WebNetscapePluginPackage. Not all plug-in
2030 packages can be "unloaded".
2032 * Plugins/WebNetscapePluginPackage.h:
2033 * Plugins/WebNetscapePluginPackage.m:
2034 (-[WebNetscapePluginPackage _unloadWithShutdown:]):
2035 Combined old -unload and -unloadWithoutShutdown methods into this new one.
2036 (-[WebNetscapePluginPackage initWithPath:]):
2037 Call new unload method.
2038 (-[WebNetscapePluginPackage load]):
2040 (-[WebNetscapePluginPackage wasRemovedFromPluginDatabase:]):
2042 (-[WebNetscapePluginPackage open]):
2043 New method. Called when a plug-in instance starts running.
2044 (-[WebNetscapePluginPackage close]):
2045 New method. Called when a plug-in instance stops running. When all plug-in instances
2046 close the plug-in package, and the plug-in package is removed from the database, the plug-in
2049 * Plugins/WebPluginPackage.m:
2050 (-[WebPluginPackage initWithPath:]):
2051 (-[WebPluginPackage load]):
2052 Made this a bit more efficient by checking if the bundle is already loaded.
2053 (-[WebBasePluginPackage unload]):
2055 (-[WebBasePluginPackage isLoaded]):
2058 * Plugins/WebBaseNetscapePluginView.m:
2059 (-[WebBaseNetscapePluginView start]):
2060 Open the plug-in package so it remains loaded while this instance uses it.
2061 (-[WebBaseNetscapePluginView stop]):
2062 Close the plug-in package when the plug-in instance is stopped.
2064 * Plugins/WebBaseNetscapePluginStream.m:
2065 (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:]):
2066 This check is not necessary. Netscape plug-in packages are never unloaded until all their instances have
2067 been stopped, and a Netscape plug-in instance will stop its streams when it is stopped.
2068 (-[WebBaseNetscapePluginStream _destroyStream]):
2070 (-[WebBaseNetscapePluginStream finishedLoadingWithData:]):
2072 (-[WebBaseNetscapePluginStream _deliverData]):
2075 2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
2079 Build fix: DWARF and -gfull are incompatible with symbol separation.
2081 * WebKit.xcodeproj/project.pbxproj:
2083 2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
2087 http://bugs.webkit.org/show_bug.cgi?id=10394
2088 Bug 10394: WebKit Release and Production configurations should enable dead code stripping
2090 * WebKit.xcodeproj/project.pbxproj:
2092 2006-08-15 Maciej Stachowiak <mjs@apple.com>
2096 - remove WebKit dependencies from WebPlugInStreamLoader via a protocol veil of ignorance
2098 * Loader/WebNetscapePlugInStreamLoader.h:
2099 * Loader/WebNetscapePlugInStreamLoader.m:
2100 (-[WebNetscapePlugInStreamLoader initWithDelegate:frameLoader:]):
2101 * Loader/WebPlugInStreamLoaderDelegate.h: Added.
2102 * Plugins/WebBaseNetscapePluginStream.h:
2103 * Plugins/WebNetscapePluginStream.m:
2104 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
2105 * WebKit.xcodeproj/project.pbxproj:
2107 2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
2111 http://bugs.webkit.org/show_bug.cgi?id=10384
2112 Bug 10384: Switch to DWARF for Release configuration
2114 * WebKit.xcodeproj/project.pbxproj:
2116 2006-08-15 Graham Dennis <graham.dennis@gmail.com>
2120 - patch for http://bugs.webkit.org/show_bug.cgi?id=10314
2121 WebUnarchivingState archivedResourceForURL: doesn't work
2123 * WebView/WebUnarchivingState.m:
2124 (-[WebUnarchivingState archivedResourceForURL:]):
2125 Fixed to get objects from the archived resources dictionary using
2126 the URL as a string instead of as the URL itself (as this is how
2127 the data is put into the dictionary).
2129 2006-08-14 Maciej Stachowiak <mjs@apple.com>
2133 - remove many (but not all) WebKit dependencies from WebNetscapePlugInStreamLoader (it still
2134 depends on WebNetscapePluginStream).
2136 * Loader/WebFrameLoader.h:
2137 * Loader/WebFrameLoader.m:
2138 (-[WebFrameLoader fileDoesNotExistErrorWithResponse:]):
2139 * Loader/WebNetscapePlugInStreamLoader.h:
2140 * Loader/WebNetscapePlugInStreamLoader.m:
2141 (-[WebNetscapePlugInStreamLoader initWithStream:frameLoader:]):
2142 (-[WebNetscapePlugInStreamLoader releaseResources]):
2143 (-[WebNetscapePlugInStreamLoader didReceiveResponse:]):
2144 * Plugins/WebNetscapePluginStream.m:
2145 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
2147 2006-08-14 Maciej Stachowiak <mjs@apple.com>
2149 Reviewed by Tim Omernick.
2151 - fixed REGRESSION: crash when leaving youtube page while movie is still loading
2152 http://bugs.webkit.org/show_bug.cgi?id=10398
2154 * Loader/WebNetscapePlugInStreamLoader.m:
2155 (-[WebNetscapePlugInStreamLoader initWithStream:view:]): Set the frame loader for this stream.
2156 (-[WebNetscapePlugInStreamLoader cancelWithError:]): Make sure to destroy the stream as well;
2157 otherwise, when we try to clean up later, we won't have the right context.
2159 2006-08-14 David Hyatt <hyatt@apple.com>
2161 Fix for Radar bug 4478840, Safari should not reduce null events sent to
2162 plug-ins in windows that are inactive but visible.
2164 With this fix you can view videos in visible background windows on YouTube
2165 (for example) and not see any drop in frame rate.
2169 * Plugins/WebBaseNetscapePluginView.m:
2170 (-[WebBaseNetscapePluginView restartNullEvents]):
2172 2006-08-14 Maciej Stachowiak <mjs@apple.com>
2176 - removed WebKit-level dependencies from WebFormDataStream. Use WebCore version of system interface
2178 * Loader/WebFormDataStream.m:
2180 (formEventCallback):
2182 * WebCoreSupport/WebSystemInterface.m:
2183 (InitWebCoreSystemInterface):
2185 2006-08-14 Maciej Stachowiak <mjs@apple.com>
2187 Rubber stamped by Brady.
2189 - move WebFormDataStream from WebView to Loader
2191 * WebKit.xcodeproj/project.pbxproj:
2192 * WebView/WebFormDataStream.h: Removed.
2193 * WebView/WebFormDataStream.m: Removed.
2195 2006-08-13 Maciej Stachowiak <mjs@apple.com>
2199 - remove WebKit dependencies from WebSubresourceLoader, except WebFormDataStream
2201 (WebFormDataStream will be moved into the Loader directory soon)
2203 * Loader/WebFrameLoader.h:
2204 * Loader/WebFrameLoader.m:
2205 (-[WebFrameLoader _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
2206 * Loader/WebSubresourceLoader.m:
2207 (isConditionalRequest):
2208 (hasCaseInsensitivePrefix):
2211 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
2213 2006-08-13 Brady Eidson <beidson@apple.com>
2217 Relocated the WebIconLoaders
2219 * Misc/WebIconLoader.h: Moved to Loader/
2220 * Misc/WebIconLoader.m: Moved to Loader/
2221 * WebKit.xcodeproj/project.pbxproj:
2223 2006-08-13 Maciej Stachowiak <mjs@apple.com>
2227 - removed non-Loader WebKit dependencies from WebDataProtocol for
2228 real (whoops) and fix some typos.
2230 * Loader/WebDataProtocol.m:
2231 (isCaseInsensitiveEqual): Added.
2232 (+[WebDataProtocol _webIsDataProtocolURL:]): Avoid WebKit calls.
2233 (-[WebDataProtocol startLoading]): ditto
2234 * Loader/WebFrameLoader.m:
2235 (isCaseInsensitiveEqual): Fixed spelling from isCaseSensitiveEqual.
2236 (-[WebFrameLoader _canUseResourceForRequest:]): Use proper call.
2238 2006-08-13 Brady Eidson <beidson@apple.com>
2242 The way of detecting a failed icon load before was to try and construct
2243 an image from the icon and if that image construction failed, mark the icon
2245 A much more efficient way is to check for an error response. We'll still
2246 check for invalid image data, but most servers will correctly return an HTTP
2247 error on a missing icon.
2249 * Misc/WebIconLoader.m:
2250 (-[WebIconLoader didFinishLoading]): Added check for http error response
2252 2006-08-13 Maciej Stachowiak <mjs@apple.com>
2256 - remove all non-Loader dependencies from WebLoader
2258 As part of this I moved WebDataProtocol to the loader directory
2259 and removed dependencies on the rest of WebKit from that too.
2261 * Loader/WebFrameLoader.h:
2262 * Loader/WebFrameLoader.m:
2263 (-[WebFrameLoader setDefersCallbacks:]):
2264 (-[WebFrameLoader stopLoading]):
2265 (-[WebFrameLoader cancelledErrorWithRequest:]):
2266 (-[WebFrameLoader clearArchivedResources]):
2267 (-[WebFrameLoader deliverArchivedResources]):
2268 (-[WebFrameLoader deliverArchivedResourcesAfterDelay]):
2269 (isCaseSensitiveEqual):
2270 (-[WebFrameLoader _canUseResourceForRequest:]):
2271 (-[WebFrameLoader _canUseResourceWithResponse:]):
2272 (-[WebFrameLoader pendingArchivedResources]):
2273 (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
2274 (-[WebFrameLoader archiveLoadPendingForLoader:]):
2275 (-[WebFrameLoader cancelPendingArchiveLoadForLoader:]):
2276 * Loader/WebLoader.h:
2277 * Loader/WebLoader.m:
2278 (-[NSURLProtocol releaseResources]):
2279 (-[NSURLProtocol loadWithRequest:]):
2280 (-[NSURLProtocol setDefersCallbacks:]):
2281 (-[NSURLProtocol addData:allAtOnce:]):
2282 (-[NSURLProtocol resourceData]):
2283 (-[NSURLProtocol didReceiveData:lengthReceived:allAtOnce:]):
2284 (-[NSURLProtocol connection:didReceiveData:lengthReceived:]):
2285 (-[NSURLProtocol cancelWithError:]):
2286 (-[NSURLProtocol cancelledError]):
2287 * Loader/WebMainResourceLoader.m:
2288 (-[WebMainResourceLoader addData:allAtOnce:]):
2289 (-[WebMainResourceLoader didReceiveData:lengthReceived:allAtOnce:]):
2290 * Loader/WebNetscapePlugInStreamLoader.m:
2291 (-[WebNetscapePlugInStreamLoader didReceiveData:lengthReceived:allAtOnce:]):
2292 * Loader/WebSubresourceLoader.m:
2293 (-[WebSubresourceLoader didReceiveData:lengthReceived:allAtOnce:]):
2294 * WebKit.xcodeproj/project.pbxproj:
2295 * WebView/WebDataProtocol.h: Removed.
2296 * WebView/WebDataProtocol.m: Removed.
2298 2006-08-11 Tim Omernick <timo@apple.com>
2302 <http://bugs.webkit.org/show_bug.cgi?id=10111> - Menu flickers over Flash content
2303 <rdar://problem/3052546> Plugins don't work with z-index (overlapping elements, etc.)
2305 * Plugins/WebBaseNetscapePluginView.m:
2306 (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
2307 Don't just clip to the dirty region for "transparent" plug-ins -- do it for all plug-ins. This is a
2308 generally useful thing to do, as it prevents the plug-in from drawing over parts of the window that
2309 have already been drawn and are not expected to be redrawn in the same update.
2311 2006-08-11 Brady Eidson <beidson@apple.com>
2313 Reviewed by John, Timo, Adele, and Darin
2315 In addition to a few style/good-practice cleanups, this patch will convert the old icon database
2316 format to the WebCore format if the WebCore db is empty (implying this conversion has yet to take
2317 place). After the conversion, it will delete all traces of the old format to free the unneeded space
2319 * Misc/WebIconDatabase.m:
2320 (-[WebIconDatabase init]):
2321 (-[WebIconDatabase _setIconURL:forURL:]): Changed the bridge's name for this method to be more clear
2322 (-[WebIconDatabase _createFileDatabase]):
2323 (-[WebIconDatabase _iconDataForIconURL:]): This grabs the raw data for use in the conversion function
2324 (-[WebIconDatabase _convertToWebCoreFormat]): This does the actual conversion
2326 2006-08-11 Tim Omernick <timo@apple.com>
2328 Reviewed by John Sullivan.
2330 Needed for <rdar://problem/4678070>.
2332 * Plugins/WebBaseNetscapePluginView.m:
2333 (-[WebBaseNetscapePluginView sendEvent:]):
2334 Changed an assertion to an early return. It should be possible to send events, especially updateEvt (for image capturing
2335 purposes), to off-screen plug-ins. It just doesn't work right now. See <rdar://problem/4318269>.
2337 2006-08-11 John Sullivan <sullivan@apple.com>
2341 - fixed <rdar://problem/4522894> Would be nice if Safari shrank pages a little if necessary
2342 to avoid printing an almost-empty page
2344 * WebView/WebHTMLView.m:
2345 (-[NSArray knowsPageRange:]):
2346 If the last page has a short-enough orphan (< 1/10 of the page height is the number I pulled
2347 out of ... the air), then we adjust the scale factor slightly and check whether this reduces
2348 the page count and thus eliminates the orphan.
2350 2006-08-07 Brady Eidson <beidson@apple.com>
2352 Reviewed by Anders and John
2354 * Misc/WebIconDatabase.m:
2355 (-[WebIconDatabase init]):
2356 (-[WebIconDatabase isIconExpiredForIconURL:]): Get if an icon expired
2357 (-[WebIconDatabase isIconExpiredForPageURL:]): Ditto
2358 (-[WebIconDatabase _setIconURL:forURL:]):
2359 (-[WebIconDatabase _sendNotificationForURL:]): Moved to WebKitPendingPublic for use outside of WebIconDatabase
2360 (-[WebIconDatabase loadIconFromURL:]): Allow a load outside the context of a page load
2361 * Misc/WebIconDatabasePrivate.h:
2363 * Misc/WebIconLoader.m:
2364 (-[WebIconLoader didFinishLoading]): fixed up the "flipping the switch" #defs a bit
2365 (-[WebIconLoader willSendRequest:redirectResponse:]): override to allow a load
2366 outside of the context of a page load
2368 * WebCoreSupport/WebIconDatabaseBridge.h: Added.
2369 * WebCoreSupport/WebIconDatabaseBridge.m: Added.
2370 (-[WebIconDatabaseBridge init]):
2371 (-[WebIconDatabaseBridge dealloc]):
2372 (-[WebIconDatabaseBridge loadIconFromURL:]): Kick off a load on an icon outside
2373 of the context of any page load
2374 (-[WebIconDatabaseBridge _setIconData:forIconURL:]): WebKit side of bridge method
2375 (-[WebIconDatabaseBridge _setHaveNoIconForIconURL:]): WebKit side of bridge method
2376 (-[WebIconDatabaseBridge releaseCachedLoaderForIconURL:]):
2377 (+[WebIconDatabaseBridge sharedBridgeInstance]): Moved this from WebCore to WebKit
2378 so both sides of the bridge get the WebKit version
2379 * WebKit.xcodeproj/project.pbxproj: Added some files
2380 * WebView/WebDataSource.m:
2381 (-[WebDataSource _loadIcon]): Added check for reload/expired icon to force
2382 a load even if we already have it
2384 2006-08-04 Sam Weinig <sam.weinig@gmail.com>
2388 - patch for http://bugs.webkit.org/show_bug.cgi?id=10192
2389 Make WebCore (and friends) compile with -Wshorten-64-to-32
2391 * Adds 'f' to float literals where expecting a float.
2392 * Use ceilf() instead of ceil() when assigning to a float.
2393 * Adds explicit casts where OK.
2395 NOTE: The -Wshorten-64-to-32 flag was not added for WebKit
2396 because there are still a few places where no error handling
2397 is in place. The flag can be added as soon as those are worked
2400 * Misc/WebNSControlExtras.m:
2401 (-[NSControl sizeToFitAndAdjustWindowHeight]):
2402 * Misc/WebNSImageExtras.m:
2403 (-[NSImage _web_scaleToMaxSize:]):
2404 * Misc/WebNSViewExtras.h:
2405 * Misc/WebNSViewExtras.m:
2406 * Plugins/WebBaseNetscapePluginView.m:
2407 (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
2408 (-[WebBaseNetscapePluginView drawRect:]):
2409 * WebCoreSupport/WebFrameBridge.m:
2410 (-[WebFrameBridge expiresTimeForResponse:]):
2411 * WebInspector/WebInspector.m:
2412 (-[NSWindow window]):
2413 (-[WebInspector treeViewScrollTo:]):
2414 (-[WebInspector _updateSystemColors]):
2415 (-[WebInspector webView:plugInViewWithArguments:]):
2416 (-[WebInspector outlineView:objectValueForTableColumn:byItem:]):
2417 * WebInspector/WebInspectorOutlineView.m:
2418 (-[WebInspectorOutlineView _highlightRow:clipRect:]):
2419 * WebInspector/WebNodeHighlight.m:
2420 (-[WebNodeHighlight initWithBounds:andRects:forView:]):
2421 * WebInspector/WebNodeHighlightView.m:
2422 (-[WebNodeHighlightView roundedRect:withRadius:]):
2423 (-[WebNodeHighlightView initWithHighlight:andRects:forView:]):
2424 (-[WebNodeHighlightView drawRect:]):
2425 * WebView/WebFrame.m:
2426 (-[WebFrame _opened]):
2427 * WebView/WebFrameView.m:
2428 (-[WebFrameView initWithFrame:]):
2429 * WebView/WebHTMLView.m:
2430 (-[WebHTMLView _dragImageForLinkElement:]):
2431 (-[WebHTMLView _web_setPrintingModeRecursive]):
2432 (-[WebHTMLView _web_clearPrintingModeRecursive]):
2433 (-[NSArray layout]):
2434 (-[NSArray _setPrinting:minimumPageWidth:maximumPageWidth:adjustViewSize:]):
2435 (-[NSArray adjustPageHeightNew:top:bottom:limit:]):
2436 (-[NSArray _scaleFactorForPrintOperation:]):
2437 (-[NSArray setPageWidthForPrinting:]):
2438 (-[NSArray _endPrintMode]):
2439 (-[NSArray knowsPageRange:]):
2440 (-[NSArray _originalFontA]):
2441 (-[NSArray _originalFontB]):
2442 (-[WebTextCompleteController _buildUI]):
2443 (-[WebTextCompleteController _placePopupWindow:]):
2444 * WebView/WebPDFView.m:
2445 (-[WebPDFView _makeTextStandardSize:]):
2446 (-[WebPDFView selectionImageForcingWhiteText:]):
2447 (-[PDFPrefUpdatingProxy forwardInvocation:]):
2448 * WebView/WebPreferences.m:
2449 (-[WebPreferences _floatValueForKey:]):
2450 * WebView/WebView.m:
2451 (-[WebView makeTextSmaller:]):
2452 (-[WebView canMakeTextStandardSize]):
2453 (-[WebView makeTextStandardSize:]):
2455 2006-08-04 David Kilzer <ddkilzer@kilzer.net>
2457 Reviewed by NOBODY (build fix).
2459 * WebCoreSupport/WebSubresourceLoader.m: REALLY moved to Loader/
2460 * WebView/WebFrameLoader.h: REALLY moved to Loader/
2461 * WebView/WebFrameLoader.m: REALLY moved to Loader/
2462 * WebView/WebLoader.h: REALLY moved to Loader/
2463 * WebView/WebLoader.m: REALLY moved to Loader/
2464 * WebView/WebMainResourceLoader.m: REALLY moved to Loader/
2466 2006-08-03 Maciej Stachowiak <mjs@apple.com>
2470 - moved all loader code that is slated to be moved down to WebCore to a new Loader directory
2472 (next step is to remove dependencies on the rest of WebKit from this directory)
2474 * Loader/WebNetscapePlugInStreamLoader.h: Added.
2475 * Loader/WebNetscapePlugInStreamLoader.m: Added. Cut out of WebNetscapePluginStream.m
2476 (-[WebNetscapePlugInStreamLoader initWithStream:view:]):
2477 (-[WebNetscapePlugInStreamLoader isDone]):
2478 (-[WebNetscapePlugInStreamLoader releaseResources]):
2479 (-[WebNetscapePlugInStreamLoader didReceiveResponse:]):
2480 (-[WebNetscapePlugInStreamLoader didReceiveData:lengthReceived:]):
2481 (-[WebNetscapePlugInStreamLoader didFinishLoading]):
2482 (-[WebNetscapePlugInStreamLoader didFailWithError:]):
2483 (-[WebNetscapePlugInStreamLoader cancelWithError:]):
2484 * Plugins/WebNetscapePluginStream.m:
2485 * WebKit.xcodeproj/project.pbxproj:
2486 * WebCoreSupport/WebSubresourceLoader.h: Moved to Loader/
2487 * WebCoreSupport/WebSubresourceLoader.m: Moved to Loader/
2488 * WebView/WebFrameLoader.h: Moved to Loader/
2489 * WebView/WebFrameLoader.m: Moved to Loader/
2490 * WebView/WebLoader.h: Moved to Loader/
2491 * WebView/WebLoader.m: Moved to Loader/
2492 * WebView/WebMainResourceLoader.h: Moved to Loader/
2493 * WebView/WebMainResourceLoader.m: Moved to Loader/
2495 2006-08-03 Tim Omernick <timo@apple.com>
2497 Reviewed by Kevin Decker.
2499 <rdar://problem/4667460> Windowless OpenGL plug-ins render incorrectly on PowerPC
2501 * Plugins/WebBaseNetscapePluginView.m:
2502 (-[WebBaseNetscapePluginView _aglOffscreenImageForDrawingInRect:]):
2503 Fixed color component swapping so that it works on both x86 and PPC. See comments.
2505 2006-08-03 Brady Eidson <beidson@apple.com>
2507 Reviewed by Tim Hatcher's rubber stamp
2508 Fixed Intel build break caused by weinig's -W change in r15781
2510 * WebView/WebView.m: wrapped cpu-dependent defs with defined() macro
2512 2006-08-03 Maciej Stachowiak <mjs@apple.com>
2516 - fixed problem that could cause assertion failures in Safari
2518 * Plugins/WebBaseNetscapePluginView.m:
2519 (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]): Don't
2520 allow a plugin to start new loads once its document is no longer the one actively loading.
2522 2006-08-03 Maciej Stachowiak <mjs@apple.com>
2526 - remove use of WebDataSource from WebLoader and subclasses, just have them talk to the
2527 WebFrameLoader instead.
2529 For now this is done by forarding all the calls.
2531 * Misc/WebIconLoader.m:
2532 (-[WebIconLoader didFinishLoading]):
2533 * Plugins/WebNetscapePluginStream.m:
2534 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
2535 (-[WebNetscapePluginStream start]):
2536 (-[WebNetscapePlugInStreamLoader didFinishLoading]):
2537 (-[WebNetscapePlugInStreamLoader didFailWithError:]):
2538 (-[WebNetscapePlugInStreamLoader cancelWithError:]):
2539 * WebCoreSupport/WebFrameBridge.m:
2540 (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
2541 (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
2542 * WebCoreSupport/WebSubresourceLoader.h:
2543 * WebCoreSupport/WebSubresourceLoader.m:
2544 (-[WebSubresourceLoader initWithLoader:frameLoader:]):
2545 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
2546 (+[WebSubresourceLoader startLoadingResource:withMethod:URL:customHeaders:referrer:forFrameLoader:]):
2547 (+[WebSubresourceLoader startLoadingResource:withMethod:URL:customHeaders:postData:referrer:forFrameLoader:]):
2548 (-[WebSubresourceLoader receivedError:]):
2549 (-[WebSubresourceLoader signalFinish]):
2550 (-[WebSubresourceLoader didFailWithError:]):
2551 (-[WebSubresourceLoader cancel]):
2552 * WebKit.xcodeproj/project.pbxproj:
2553 * WebView/WebDataSource.m:
2554 (-[WebDataSource _updateLoading]):
2555 (-[WebDataSource textEncodingName]):
2556 (-[WebDataSource _mainReceivedBytesSoFar:complete:]):
2557 * WebView/WebFrameLoader.h:
2558 * WebView/WebFrameLoader.m:
2559 (-[WebFrameLoader loadIconWithRequest:]):
2560 (-[WebFrameLoader startLoadingMainResourceWithRequest:identifier:]):
2561 (-[WebFrameLoader clearIconLoader]):
2562 (-[WebFrameLoader commitProvisionalLoad]):
2563 (-[WebFrameLoader activeDataSource]):
2564 (-[WebFrameLoader _archivedSubresourceForURL:]):
2565 (-[WebFrameLoader _defersCallbacks]):
2566 (-[WebFrameLoader _identifierForInitialRequest:]):
2567 (-[WebFrameLoader _willSendRequest:forResource:redirectResponse:]):
2568 (-[WebFrameLoader _didReceiveAuthenticationChallenge:forResource:]):
2569 (-[WebFrameLoader _didCancelAuthenticationChallenge:forResource:]):
2570 (-[WebFrameLoader _didReceiveResponse:forResource:]):
2571 (-[WebFrameLoader _didReceiveData:contentLength:forResource:]):
2572 (-[WebFrameLoader _didFinishLoadingForResource:]):
2573 (-[WebFrameLoader _didFailLoadingWithError:forResource:]):
2574 (-[WebFrameLoader _privateBrowsingEnabled]):
2575 (-[WebFrameLoader _addPlugInStreamLoader:]):
2576 (-[WebFrameLoader _removePlugInStreamLoader:]):
2577 (-[WebFrameLoader _finishedLoadingResource]):
2578 (-[WebFrameLoader _receivedError:]):
2579 (-[WebFrameLoader _addSubresourceLoader:]):
2580 (-[WebFrameLoader _removeSubresourceLoader:]):
2581 (-[WebFrameLoader _originalRequest]):
2582 (-[WebFrameLoader webFrame]):
2583 (-[WebFrameLoader _receivedMainResourceError:complete:]):
2584 (-[WebFrameLoader initialRequest]):
2585 (-[WebFrameLoader _receivedData:]):
2586 (-[WebFrameLoader _setRequest:]):
2587 (-[WebFrameLoader _downloadWithLoadingConnection:request:response:proxy:]):
2588 (-[WebFrameLoader _handleFallbackContent]):
2589 (-[WebFrameLoader _isStopping]):
2590 (-[WebFrameLoader _decidePolicyForMIMEType:decisionListener:]):
2591 (-[WebFrameLoader _setupForReplaceByMIMEType:]):
2592 (-[WebFrameLoader _setResponse:]):
2593 (-[WebFrameLoader _mainReceivedError:complete:]):
2594 (-[WebFrameLoader _finishedLoading]):
2595 (-[WebFrameLoader _mainReceivedBytesSoFar:complete:]):
2596 (-[WebFrameLoader _iconLoaderReceivedPageIcon:]):
2597 (-[WebFrameLoader _URL]):
2598 * WebView/WebLoader.h:
2599 * WebView/WebLoader.m:
2600 (-[NSURLProtocol releaseResources]):
2601 (-[NSURLProtocol loadWithRequest:]):
2602 (-[NSURLProtocol setFrameLoader:]):
2603 (-[NSURLProtocol frameLoader]):
2604 (-[NSURLProtocol willSendRequest:redirectResponse:]):
2605 (-[NSURLProtocol didReceiveAuthenticationChallenge:]):
2606 (-[NSURLProtocol didCancelAuthenticationChallenge:]):
2607 (-[NSURLProtocol didReceiveResponse:]):
2608 (-[NSURLProtocol didReceiveData:lengthReceived:]):
2609 (-[NSURLProtocol signalFinish]):
2610 (-[NSURLProtocol didFailWithError:]):
2611 (-[NSURLProtocol willCacheResponse:]):
2612 (-[NSURLProtocol cancelWithError:]):
2613 * WebView/WebMainResourceLoader.h:
2614 * WebView/WebMainResourceLoader.m:
2615 (-[WebMainResourceLoader initWithFrameLoader:]):
2616 (-[WebMainResourceLoader receivedError:]):
2617 (-[WebMainResourceLoader cancelWithError:]):
2618 (-[WebMainResourceLoader _isPostOrRedirectAfterPost:redirectResponse:]):
2619 (-[WebMainResourceLoader addData:]):
2620 (-[WebMainResourceLoader willSendRequest:redirectResponse:]):
2621 (-[WebMainResourceLoader continueAfterContentPolicy:response:]):
2622 (-[WebMainResourceLoader continueAfterContentPolicy:]):
2623 (-[WebMainResourceLoader checkContentPolicyForResponse:]):
2624 (-[WebMainResourceLoader didReceiveResponse:]):
2625 (-[WebMainResourceLoader didReceiveData:lengthReceived:]):
2626 (-[WebMainResourceLoader didFinishLoading]):
2627 (-[WebMainResourceLoader didFailWithError:]):
2628 (-[WebMainResourceLoader loadWithRequestNow:]):
2630 2006-08-03 Sam Weinig <sam.weinig@gmail.com>
2634 - patch for http://bugs.webkit.org/show_bug.cgi?id=10176
2635 Make WebCore compile with -Wundef
2637 * Adds -Wundef flag to Xcode project
2638 * Converts #ifs to #ifdef and #ifndefs where needed.
2640 * Carbon/CarbonUtils.m:
2641 * Carbon/CarbonWindowAdapter.m:
2642 * Carbon/HIViewAdapter.m:
2643 (+[NSView bindHIViewToNSView:nsView:]):
2644 * Carbon/HIWebView.m:
2645 (HIWebViewEventHandler):
2646 * Misc/WebFileDatabase.m:
2647 (UniqueFilePathForKey):
2648 * Misc/WebNSWindowExtras.m:
2649 (swizzleInstanceMethod):
2650 * Misc/WebTypesInternal.h:
2651 * Plugins/WebNetscapeDeprecatedFunctions.c:
2652 * Plugins/WebNetscapeDeprecatedFunctions.h:
2653 * Plugins/WebNetscapePluginPackage.h:
2654 * Plugins/WebNetscapePluginPackage.m:
2655 (-[WebNetscapePluginPackage unloadWithoutShutdown]):
2656 (-[WebNetscapePluginPackage load]):
2657 * WebKit.xcodeproj/project.pbxproj:
2659 2006-08-03 Darin Adler <darin@apple.com>
2661 Reviewed by Eric Seidel.
2665 * WebView/WebFrame.m: (-[WebFramePrivate dealloc]): Release the frame loader.
2667 2006-08-02 Timothy Hatcher <timothy@apple.com>
2669 Rubber stamped by Maciej.
2671 Adding back resultsWithXpathQuery, removed by Darin's earlier change.
2672 This function is called from ObjC, but not used from JavaScript.
2674 * WebInspector/webInspector/inspector.js:
2676 2006-08-02 Timothy Hatcher <timothy@apple.com>
2680 Bug 10200: [Drosera] Deadlock between Drosera and Safari while loading page
2681 http://bugs.webkit.org/show_bug.cgi?id=10200
2683 Prevent reentrancy in our debugger callbacks. This was causing a deadlock in Drosera because
2684 suspendProcessIfPaused was being called during a DO call into Safari.
2686 Preventing reentrancy also prevents scripts that Drosera injects and evaluates from showing
2687 up in rare cases (such as a iframe loading about:blank). I thought this would prevent cases
2688 where you call a function from the console and expect it to break on a breakpoint in them, but
2689 this appears to never have worked even without this change. When that is figured out we can
2690 reconsider a better solution to reentrancy. I have filed that as bug 10214.
2692 I also removed the NSRunLoop runMode:beforeDate: calls since DO handles this for us since
2693 we don't use "onway void" as the return type for the callbacks. Note: using onway void for
2694 the listener callbacks causes bad synchronization issues and obscure crashes.
2696 * DefaultDelegates/WebScriptDebugServer.m:
2697 (-[WebScriptDebugServer webView:didLoadMainResourceForDataSource:]):
2698 (-[WebScriptDebugServer webView:didParseSource:baseLineNumber:fromURL:sourceId:forWebFrame:]):
2699 (-[WebScriptDebugServer webView:failedToParseSource:baseLineNumber:fromURL:withError:forWebFrame:]):
2700 (-[WebScriptDebugServer webView:didEnterCallFrame:sourceId:line:forWebFrame:]):
2701 (-[WebScriptDebugServer webView:willExecuteStatement:sourceId:line:forWebFrame:]):
2702 (-[WebScriptDebugServer webView:willLeaveCallFrame:sourceId:line:forWebFrame:]):
2703 (-[WebScriptDebugServer webView:exceptionWasRaised:sourceId:line:forWebFrame:]):
2704 * DefaultDelegates/WebScriptDebugServerPrivate.h:
2706 2006-08-02 Maciej Stachowiak <mjs@apple.com>
2710 - fix assertion failure on layout tests by stopping plugins from loading at a clearly defined time
2711 - add more assertions for safety
2713 * WebView/WebDataSource.m:
2714 (-[WebDataSourcePrivate dealloc]): Removed obsolete comment.
2715 (-[WebDataSource _updateLoading]): Add assertion ensuring this method is only called
2716 at a time when this data source is the one that might be loading for a frame.
2717 (-[WebDataSource _stopLoading]): Stop loading plugins as a FIXME suggests we should.
2718 * WebView/WebFrameLoader.m:
2719 (-[WebFrameLoader isLoadingPlugIns]): New helper method.
2720 (-[WebFrameLoader isLoading]): Consider plugin loads too - otherwise we won't stop them
2721 at stopLoading time.
2723 2006-08-02 Adam Roben <aroben@apple.com>
2727 - Rename TransferJob to ResourceLoader (this file was forgotten in an
2728 earlier change by Maciej)
2732 2006-08-01 Maciej Stachowiak <mjs@apple.com>
2736 - Change things around so WebFrameLoader tracks the main and provisional data source,
2737 as well as the frame load state, pulling much code out of WebFrame along the way.
2739 The most significant aspects of this change are:
2741 - management of WebDataSources and WebFrameState was moved into WebFrameLoader
2742 - there is now just one WebFrameLoader shared between the primary and provisional data source
2744 * WebKit.xcodeproj/project.pbxproj:
2745 * WebView/WebDataSource.m:
2746 (-[WebDataSourcePrivate dealloc]):
2747 (-[WebDataSource _updateLoading]):
2748 (-[WebDataSource _loadIcon]):
2749 (-[WebDataSource _setPrimaryLoadComplete:]):
2750 (-[WebDataSource _stopLoading]):
2751 (-[WebDataSource _startLoading]):
2752 (-[WebDataSource _addSubresourceLoader:]):
2753 (-[WebDataSource _removeSubresourceLoader:]):
2754 (-[WebDataSource _addPlugInStreamLoader:]):
2755 (-[WebDataSource _removePlugInStreamLoader:]):
2756 (-[WebDataSource _defersCallbacksChanged]):
2757 (-[WebDataSource _stopLoadingWithError:]):
2758 (-[WebDataSource _revertToProvisionalState]):
2759 (-[WebDataSource _setupForReplaceByMIMEType:]):
2760 (-[WebDataSource initWithRequest:]):
2761 (-[WebDataSource data]):
2762 (-[WebDataSource isLoading]):
2763 * WebView/WebFrame.m:
2764 (-[WebFramePrivate init]):
2765 (-[WebFramePrivate dealloc]):
2766 (-[WebFrame _closeOldDataSources]):
2767 (-[WebFrame _detachFromParent]):
2768 (-[WebFrame _makeDocumentView]):
2769 (-[WebFrame _receivedMainResourceError:]):
2770 (-[WebFrame _transitionToCommitted:]):
2771 (+[WebFrame _timeOfLastCompletedLoad]):
2772 (-[WebFrame _checkLoadCompleteForThisFrame]):
2773 (-[WebFrame _loadItem:withLoadType:]):
2774 (-[WebFrame _continueAfterWillSubmitForm:]):
2775 (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
2776 (-[WebFrame _initWithWebFrameView:webView:bridge:]):
2777 (-[WebFrame _frameLoader]):
2778 (-[WebFrame _provisionalLoadStarted]):
2779 (-[WebFrame _prepareForDataSourceReplacement]):
2780 (-[WebFrame _frameLoadCompleted]):
2781 (-[WebFrame provisionalDataSource]):
2782 (-[WebFrame dataSource]):
2783 (-[WebFrame stopLoading]):
2784 * WebView/WebFrameInternal.h:
2785 * WebView/WebFrameLoader.h:
2786 * WebView/WebFrameLoader.m:
2787 (-[WebFrameLoader initWithWebFrame:]):
2788 (-[WebFrameLoader dealloc]):
2789 (-[WebFrameLoader dataSource]):
2790 (-[WebFrameLoader _setDataSource:]):
2791 (-[WebFrameLoader clearDataSource]):
2792 (-[WebFrameLoader provisionalDataSource]):
2793 (-[WebFrameLoader _setProvisionalDataSource:]):
2794 (-[WebFrameLoader _clearProvisionalDataSource]):
2795 (-[WebFrameLoader state]):
2796 (+[WebFrameLoader timeOfLastCompletedLoad]):
2797 (-[WebFrameLoader _setState:]):
2798 (-[WebFrameLoader clearProvisionalLoad]):
2799 (-[WebFrameLoader markLoadComplete]):
2800 (-[WebFrameLoader commitProvisionalLoad]):
2801 (-[WebFrameLoader stopLoading]):
2802 (-[WebFrameLoader startLoading]):
2803 (-[WebFrameLoader startProvisionalLoad:]):
2804 (-[WebFrameLoader setupForReplace]):
2805 * WebView/WebFramePrivate.h:
2807 2006-08-01 Tim Omernick <timo@apple.com>
2809 Reviewed by John Sullivan.
2811 <rdar://problem/4480737> Flash crashes after it replaces itself via a document.write()
2813 I kind of hate to do this, but this is the best way to work around buggy plug-ins like Flash that assume that
2814 NPP_Destroy() cannot be called while the browser is calling one of its other plug-in functions. The classic
2815 situation is a plug-in that replaces itself via an NPN_Invoke() that executes a document.write().
2817 * Plugins/WebBaseNetscapePluginView.h:
2818 * Plugins/WebBaseNetscapePluginView.m:
2819 (-[WebBaseNetscapePluginView sendEvent:]):
2820 Call -willCallPlugInFunction and -didCallPlugInFunction around calls to the NPP_* functions.
2821 (-[WebBaseNetscapePluginView setWindowIfNecessary]):
2823 (-[WebBaseNetscapePluginView start]):
2824 It should not be possible to start a plug-in instance while we are calling into it (one of those chicken/egg
2825 problems). Added a sanity-checking assertion.
2826 (-[WebBaseNetscapePluginView stop]):
2827 If we're already calling a plug-in function, do not call NPP_Destroy(). The plug-in function we are calling
2828 may assume that its instance->pdata, or other memory freed by NPP_Destroy(), is valid and unchanged until said
2829 plugin-function returns.
2830 (-[WebBaseNetscapePluginView pluginScriptableObject]):
2831 Call -willCallPlugInFunction and -didCallPlugInFunction around calls to the NPP_* functions.
2832 (-[WebBaseNetscapePluginView willCallPlugInFunction]):
2833 Increment plug-in function call depth.
2834 (-[WebBaseNetscapePluginView didCallPlugInFunction]):
2835 Decrement plug-in function call depth. Stop if we're supposed to stop.
2836 (-[WebBaseNetscapePluginView evaluateJavaScriptPluginRequest:]):
2837 Call -willCallPlugInFunction and -didCallPlugInFunction around calls to the NPP_* functions.
2838 (-[WebBaseNetscapePluginView webFrame:didFinishLoadWithReason:]):
2840 (-[WebBaseNetscapePluginView _printedPluginBitmap]):
2843 * Plugins/WebBaseNetscapePluginStream.m:
2844 (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:]):
2845 Call -willCallPlugInFunction and -didCallPlugInFunction around calls to the NPP_* functions.
2846 (-[WebBaseNetscapePluginStream _destroyStream]):
2848 (-[WebBaseNetscapePluginStream _deliverData]):
2851 2006-08-01 Maciej Stachowiak <mjs@apple.com>
2853 - fix build after last change
2855 * WebView/WebFrame.m:
2856 (-[WebFrame _checkLoadCompleteForThisFrame]):
2858 2006-08-01 Maciej Stachowiak <mjs@apple.com>
2862 - revert part of my last fix that broke the Safari bookmarks view
2864 * WebView/WebFrame.m:
2865 (-[WebFrame _checkLoadCompleteForThisFrame]): still send layout message for non-HTML views
2867 2006-08-01 Tim Omernick <timo@apple.com>
2871 Fixed an assertion failure I ran into while debugging <rdar://problem/4652683>.
2873 * Plugins/WebNetscapePluginEmbeddedView.m:
2874 (-[WebNetscapePluginEmbeddedView redeliverStream]):
2875 Don't clear the "instance" ivar here. This code was refactored here from the old WebNetscapePluginRepresentation,
2876 which also had an "instance" ivar. It is never appropriate to clear a plug-in view's instance. That is done when
2877 the plug-in is destroyed.
2879 2006-08-01 Maciej Stachowiak <mjs@apple.com>
2883 - some refactoring in preparation for moving more stuff to WebFrameLoader.
2885 * WebView/WebFrame.m:
2886 (-[WebFrame _clearDataSource]):
2887 (-[WebFrame _detachFromParent]):
2888 (-[WebFrame _commitProvisionalLoad]):
2889 (-[WebFrame _transitionToCommitted:]):
2890 (-[WebFrame _clearProvisionalLoad]):
2891 (-[WebFrame _markLoadComplete]):
2892 (-[WebFrame _checkLoadCompleteForThisFrame]):
2893 (-[WebFrame _startProvisionalLoad:]):
2894 (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
2895 (-[WebFrame stopLoading]):
2897 2006-07-31 Maciej Stachowiak <mjs@apple.com>
2899 Reviewed by Tim Hatcher.
2901 - renamed TransferJob to ResourceLoader in WebCore
2904 (WebFrame::loadDataSource):
2905 (WebFrame::receivedRedirect):
2906 (WebFrame::receivedResponse):
2907 (WebFrame::receivedData):
2908 (WebFrame::receivedAllData):
2909 (WebFrame::setStatusText):
2912 2006-07-31 Darin Adler <darin@apple.com>
2916 - omit the margin and padding boxes for display types where they are ignored
2917 - use CSS instead of properties for table spacing and padding as suggested by Tim H.
2919 * WebInspector/webInspector/inspector.css: Added rules for spacing and padding.
2920 Added rules that hide the margin and padding boxes (borders and all but the center cell)
2921 when the hide attribute is present.
2922 * WebInspector/webInspector/inspector.html: Added classes for the rules above.
2923 Removed cellpadding and cellspacing attributes.
2924 * WebInspector/webInspector/inspector.js: Added code to hide/show the margin and
2925 padding boxes based on the display type.
2927 2006-07-31 Duncan Wilcox <duncan@mclink.it>
2931 Fixes <http://bugs.webkit.org/show_bug.cgi?id=10159>
2932 "REGRESSION: delegate returning no menu elements crashes webkit"
2934 No automated test, because there's no way to programmatically open a context menu,
2935 no manual test because there's no way to customize the context menu delegate.
2937 * WebView/WebView.m:
2938 (-[WebView _menuForElement:defaultItems:]): Make sure the context menu returned
2939 some menu items before accessing the first one.
2941 2006-07-31 Timothy Hatcher <timothy@apple.com>
2945 <rdar://problem/4658194> REGRESSION: "Search in Google"
2946 and "Search in Spotlight" fail to work on text selected in a frame
2948 Use selectedFrame to get the frame with the text selection.
2950 * WebView/WebView.m:
2951 (-[WebView _searchWithGoogleFromMenu:]):
2952 (-[WebView _searchWithSpotlightFromMenu:]):
2954 2006-07-31 Darin Adler <darin@apple.com>
2956 Reviewed by Tim Hatcher.
2958 - http://bugs.webkit.org/show_bug.cgi?id=10168
2959 add a first cut at a Metrics pane to the inspector
2961 * WebInspector/webInspector/inspector.css: Add styles for the new metrics pane.
2962 * WebInspector/webInspector/inspector.html: Add the new metrics pane, starting with
2963 the table to show the box model.
2964 * WebInspector/webInspector/inspector.js: Add the new metrics pane. Add back some
2965 "title" attributes so we have more tooltips. Removed the optional parameter to
2968 2006-07-31 Anders Carlsson <acarlsson@apple.com>
2972 * Plugins/WebPluginDatabase.m:
2973 (-[WebPluginDatabase refresh]):
2974 Create a mutable set instead of a mutable array.
2976 2006-07-30 Darin Adler <darin@apple.com>
2978 Reviewed by Tim Hatcher.
2980 * WebInspector/webInspector/inspector.js: Fix bug where a null property value
2981 leads to an empty style pane.
2983 2006-07-30 Darin Adler <darin@apple.com>
2985 Reviewed by Tim Hatcher.
2987 - http://bugs.webkit.org/show_bug.cgi?id=10163
2988 some improvements for the inspector
2990 * WebInspector/WebInspector.m:
2991 (+[WebInspector sharedWebInspector:]): Fixed bug that could cause the inspector
2992 to be garbage collected if used in an application with GC enabled.
2993 (-[WebInspector dealloc]): Removed a call to a non-existent close method.
2994 (-[WebInspector window]): Added a custom WebPreferences object and called
2995 setPrivateBrowsingEnabled:YES so the inspector won't appear in the history menu.
2996 Also call setProhibitsMainFrameScrolling:YES to try to get rid of trouble where
2997 the inspector scrolls when dragging.
2999 * WebInspector/webInspector/inspector.css: Added style for the new color swatch,
3000 and JavaScript properties. More of the style should be shared between the panes,
3001 but this should be OK for now.
3003 * WebInspector/webInspector/inspector.html: Added a first cut at a JavaScript
3004 properties pane. Needs work, but better than nothing.
3006 * WebInspector/webInspector/inspector.js: Lots of improvements:
3007 - Omit "typical" property values from computed style display, making it much shorter.
3008 - Use the words "black", "white", and "transparent" when appropriate for color values.
3009 - Refactored the loaded() function to get rid of repetitive scrollbar setup.
3010 - Added a new scrollarea for the JavaScript properties pane.
3011 - Simplified refreshScrollbars() -- we now refresh all scrollbars every time, which does no harm.
3012 - Removed unused resultsWithXpathQuery().
3013 - Use [] instead of "new Array()" and {} instead of "new Object()".
3014 - Removed unused xpathForNode().
3015 - Changed style pane to display the style for a text node's parent instead of saying
3016 it can't display the style for text.
3017 - Fixed regression I caused a while back by checking the length of a computed style
3018 and not trying to display anything if its length is 0. Before this change and the
3019 corresponding change in WebCore, we'd see a complete list of all styles with the
3020 empty string as the value for each one.
3021 - Changed the name of the computedStyle flag on the style rules array to isComputedStyle
3022 to make it easier to understand it's a boolean.
3023 - Fixed an error in the code that does !important scanning where it was trying to
3024 do a special case for computed style, but was checking the computed style flag on
3026 - Added populateStyleListItem() function to factor out things in common between the
3027 items in the top level list and the expanded tree for shorthand properties.
3028 - Added code to make a color swatch next to the textual representation for any
3029 property that contains a color.
3030 - Implemented a first cut at a simple JavaScript properties pane.
3032 2006-07-29 Darin Adler <darin@apple.com>
3034 - Removed tabs from these source files that still had them.
3035 We don't use them; that way source files look fine in editors
3036 that have tabs set to 8 spaces or to 4 spaces.
3037 - Removed allow-tabs Subversion property from the files too.
3039 * DefaultDelegates/WebDefaultPolicyDelegate.m:
3040 * History/WebHistory.m:
3041 * Misc/WebDownload.m:
3042 * Misc/WebIconDatabase.m:
3043 * Misc/WebKitErrors.m:
3044 * Misc/WebKitLogging.m:
3045 * Misc/WebNSDataExtras.m:
3046 * Misc/WebNSFileManagerExtras.m:
3047 * Panels/WebPanelAuthenticationHandler.m:
3048 * Plugins/WebBaseNetscapePluginView.m:
3049 * Plugins/npfunctions.h:
3050 * WebCoreSupport/WebSubresourceLoader.m:
3051 * WebView/WebMainResourceLoader.m:
3052 * WebView/WebView.h:
3053 * WebView/WebView.m:
3055 2006-07-29 Sam Weinig <sam.weinig@gmail.com>
3059 - patch for http://bugs.webkit.org/show_bug.cgi?id=10080
3060 Adopt pedantic changes from the Unity project to improve
3061 cross-compiler compatibility
3064 * Adding missing newline to the end of the file.
3065 * Turning on gcc warning for missing newline at the end of a source file
3066 (GCC_WARN_ABOUT_MISSING_NEWLINE in Xcode, -Wnewline in gcc).
3068 * WebKit.xcodeproj/project.pbxproj:
3069 * WebView/WebResourcePrivate.h:
3071 2006-07-29 Mitz Pettel <opendarwin.org@mitzpettel.com>
3073 Reviewed by John Sullivan.
3075 - fix http://bugs.webkit.org/show_bug.cgi?id=9984
3076 ASSERTION FAILURE: _private->mouseDownEvent != nil
3077 (WebKit/WebView/WebHTMLView.m:4863 -[WebHTMLView(WebInternal) _delegateDragSourceActionMask])
3079 * WebView/WebHTMLView.m:
3080 (-[WebHTMLView _setMouseDownEvent:]): Moved into the WebHTMLViewFileInternal category and changed
3082 (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
3083 Copy the hit HTMLView's mouse down event to the top HTMLView.
3084 (-[WebHTMLView acceptsFirstMouse:]): Added a call to _setMouseDownEvent:nil before returning.
3085 (-[WebHTMLView shouldDelayWindowOrderingForEvent:]): Added a call to _setMouseDownEvent:nil
3087 (-[WebHTMLView mouseUp:]): Added a call to _setMouseDownEvent:nil to clear the event set in
3088 mouseDown: (and used during dragging).
3089 (-[WebHTMLView _delegateDragSourceActionMask]): Copy the hit HTMLView's mouse down event to
3092 2006-07-28 Timothy Hatcher <timothy@apple.com>
3096 <rdar://problem/4657473> REGRESSION: Spell check not available from contextual menu in Mail
3098 The context menu code should be checking isContentEditable
3099 on DOMNode not just DOMElement. This is needed because DOMText
3100 will be the node class of any text that is clicked.
3102 * DefaultDelegates/WebDefaultContextMenuDelegate.m:
3103 (-[WebDefaultUIDelegate webView:contextMenuItemsForElement:defaultMenuItems:]):
3105 2006-07-25 Geoffrey Garen <ggaren@apple.com>
3107 Reviewed by Maciej, inspired by John.
3109 - Fixed <rdar://problem/4651931> 1% REGRESSION on iBench HTML due to
3110 repeated requests for non-existent favicon
3112 An optimization to avoid serializing favicon data for missing icons had stomped an
3113 optimization to avoid GETing a missing favicon more than once. The solution
3114 is a happy marriage of optimizations, ensuring that we *retain* the missing
3115 favicon's "i am missing" data without posting a notification or saving it to disk.
3117 * Misc/WebIconDatabase.m:
3118 (-[WebIconDatabase _setIconURL:forURL:]):
3120 2006-07-25 David Harrison <harrison@apple.com>
3122 Reviewed by timo and Darin.
3124 <rdar://problem/4618584> "Paste and Match Style" is not working in Mail (add SPI)
3126 * WebKit.xcodeproj/project.pbxproj:
3127 * WebView/WebView.m:
3128 (-[WebView replaceSelectionWithNode:]):
3129 (-[WebView _replaceSelectionWithNode:matchStyle:]):
3130 * WebView/WebViewPrivate.h:
3131 (-[WebView _replaceSelectionWithNode:matchStyle::]):
3132 New SPI that is same as replaceSelectionWithNode: with added parameter whether to match existing style.
3134 2006-07-24 Darin Adler <darin@apple.com>
3136 Reviewed by Adele and Justin.
3138 - update for change to require context when creating fragments from text
3139 (needed to handle whitespace properly)
3141 * WebView/WebHTMLView.m:
3142 (-[WebHTMLView _documentFragmentFromPasteboard:inContext:allowPlainText:chosePlainText:]):
3143 Added context parameter, pass through to bridge.
3144 (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]): Pass selection range as context
3145 when calling above method.
3146 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): Pass drag caret as context when
3147 calling above method.
3149 2006-07-24 Maciej Stachowiak <mjs@apple.com>
3153 - fix <rdar://problem/4609195> Help Viewer loads empty window (not getting didFailLoadingWithError: callback)
3154 (without re-introducing http://bugs.webkit.org/show_bug.cgi?id=10062 )
3156 * WebView/WebLoader.h:
3157 * WebView/WebMainResourceLoader.m:
3158 (-[WebMainResourceLoader receivedError:]): Copy in some code from the base class to do it in the proper
3159 order, surrounding the call to [ds _receivedMainResourceError:error complete:YES].
3161 2006-07-24 Anders Carlsson <acarlsson@apple.com>
3165 * Misc/WebIconDatabase.m:
3166 (-[WebIconDatabase removeAllIcons]):
3167 Make an array of the keys and iterate through it to avoid modifying the
3168 dictionary while enumerating it.
3170 2006-07-24 Timothy Hatcher <timothy@apple.com>
3172 Reviewed by John and Darin.
3174 <rdar://problem/4634290> Cannot selectively install a custom
3175 scroller that differs from the default Aqua frame size.
3177 Adds two new private methods to WebFrameView that allows
3178 an application to set a custom scroll view class. This is needed
3179 if the application wants to install a custom scroller that is wider
3180 than the typical scroller, because NSScrollView does the content
3181 rect calculations in a class method (ignoring custom scrollers.)
3182 The _setScrollViewClass method requires the class to be a subclass
3183 of WebDynamicScrollBarView, or nil can be passed to reset to the default class.
3184 A new scroll view of the specified class will then replace the previous
3185 one without the need to reload content of the frame.
3187 * WebView/WebFrameView.m:
3188 (-[WebFrameView _customScrollViewClass]):
3189 (-[WebFrameView _setCustomScrollViewClass:]):
3190 * WebView/WebFrameViewPrivate.h:
3192 2006-07-24 Alexey Proskuryakov <ap@nypop.com>
3196 Fix http://bugs.webkit.org/show_bug.cgi?id=10009
3197 REGRESSION: Schubert-IT PDF Plug-in not working for full page (works in frames)
3199 * WebView/WebView.m:
3200 (+[WebView _viewClass:andRepresentationClass:forMIMEType:]): If we've got a type supported by WebPDFView,
3201 make sure to initialize the plugin database, in case a plugin wants to handle it.
3203 2006-07-23 Mark Rowe <opendarwin.org@bdash.net.nz>
3207 Bug 9686: [Drosera] Need the ability to break into Drosera on Javascript exceptions
3208 http://bugs.webkit.org/show_bug.cgi?id=9686
3210 WebKit portion of the fix.
3212 * DefaultDelegates/WebDefaultScriptDebugDelegate.m:
3213 (-[WebDefaultScriptDebugDelegate webView:exceptionWasRaised:sourceId:line:forWebFrame:]):
3214 * DefaultDelegates/WebScriptDebugServer.h:
3215 * DefaultDelegates/WebScriptDebugServer.m:
3216 (-[WebScriptDebugServer webView:exceptionWasRaised:sourceId:line:forWebFrame:]): Notify
3217 listeners that an exception has been raised.
3218 * WebView/WebScriptDebugDelegate.h:
3219 * WebView/WebScriptDebugDelegate.m:
3220 (-[WebScriptCallFrame exceptionRaised:sourceId:line:]): Dispatch through to delegate and
3221 WebScriptDebugServer.
3223 2006-07-23 Adele Peterson <adele@apple.com>
3227 - Fix for <rdar://problem/4646276> CrashTracer: 7 crashes in Safari at com.apple.WebCore: WebCore::RenderTableSection::paint + 155
3229 * WebView/WebHTMLView.m: (-[WebHTMLView _web_layoutIfNeededRecursive:testDirtyRect:]):
3230 needsDisplay was returning NO even though the view has a dirty rect (see <rdar://problem/4647062>). Since we know about
3231 the dirty rect, we don't actually need to check needsDisplay.
3233 2006-07-22 Timothy Hatcher <timothy@apple.com>
3237 Bug 10062: REGRESSION: dom/xhtml/level2/html/HTMLIFrameElement11.xhtml asserts/crashes
3238 http://bugs.webkit.org/show_bug.cgi?id=10062
3240 2006-07-21 Timothy Hatcher <timothy@apple.com>
3244 <rdar://problem/4609195> Help Viewer loads empty window
3245 (not getting didFailLoadingWithError: callback)
3247 Call super's didFailWithError before _receivedMainResourceError
3248 because _receivedMainResourceError will cause the datasource's
3249 frame to be set to nil before the didFailLoadingWithError delegate
3250 callback is sent. (This order is needed now that WebDataSource does
3251 not hold on to the WebView; it uses the WebFrame to get to the WebView.
3252 If the WebFrame is nil we can't get to the WebView's resource load delegate.)
3254 * WebView/WebMainResourceLoader.m:
3255 (-[WebMainResourceLoader receivedError:]):
3258 2006-07-22 Timothy Hatcher <timothy@apple.com>
3262 <rdar://problem/4646318> REGRESSION: Ctrl-clicking on a selection containing a word doesn't display a complete contextual menu
3264 Show the editing context menu if the WebView is editible.
3265 The original change only checked if the DOM element was editable,
3266 and isContentEditable returns NO if entire WebView is editable.
3268 * DefaultDelegates/WebDefaultContextMenuDelegate.m:
3269 (-[WebDefaultUIDelegate webView:contextMenuItemsForElement:defaultMenuItems:]):
3271 2006-07-21 Timothy Hatcher <timothy@apple.com>
3275 <rdar://problem/4609195> Help Viewer loads empty window
3276 (not getting didFailLoadingWithError: callback)
3278 Call super's didFailWithError before _receivedMainResourceError
3279 because _receivedMainResourceError will cause the datasource's
3280 frame to be set to nil before the didFailLoadingWithError delegate
3281 callback is sent. (This order is needed now that WebDataSource does
3282 not hold on to the WebView; it uses the WebFrame to get to the WebView.
3283 If the WebFrame is nil we can't get to the WebView's resource load delegate.)
3285 * WebView/WebMainResourceLoader.m:
3286 (-[WebMainResourceLoader receivedError:]):
3288 === Safari-521.20 ===
3290 2006-07-21 Timothy Hatcher <timothy@apple.com>
3294 <rdar://problem/4607572> REGRESSION (521.10.1 - 521.13): most context menu items missing when a form field is focused (common on google.com) (9680)
3296 Do not use _isEditable call since that only checks if the current
3297 selection or frame is editible. We now check if the currently clicked element
3298 is a content editible area, a textarea, an isindex or an input element that
3299 return YES to _isTextField.
3301 * DefaultDelegates/WebDefaultContextMenuDelegate.m:
3302 (-[WebDefaultUIDelegate webView:contextMenuItemsForElement:defaultMenuItems:]):
3304 2006-07-20 John Sullivan <sullivan@apple.com>
3308 - WebKit part of fix for:
3309 <rdar://problem/4557386> REGRESSION (419.3-521.19): repro Safari world leak involving
3310 closing tabs after clicking in a web page
3312 * WebCoreSupport/WebFrameBridge.m:
3313 (-[WebFrameBridge textViewWasFirstResponderAtMouseDownTime:]):
3314 renamed to be more specific (formerly wasFirstResponderAtMouseDownTime:)
3316 * WebView/WebHTMLViewInternal.h:
3317 * WebView/WebHTMLView.m:
3318 (-[WebTextCompleteController dealloc]):
3319 updated for name change
3320 (-[NSArray _setMouseDownEvent:]):
3321 Now only retains the first responder if it's a textView, since that's the only case that the only client
3322 actually cares about. This avoids a reference cycle caused by retaining self. This is the only substantive
3323 part of the patch; all the rest is just renaming for clarity, and comments.
3324 (-[NSArray mouseDown:]):
3325 updated for name change
3326 (-[WebHTMLView _textViewWasFirstResponderAtMouseDownTime:]):
3327 renamed to be more specific (formerly _wasFirstResponderAtMouseDownTime:)
3329 2006-07-19 Tim Omernick <timo@apple.com>
3333 <rdar://problem/4523432> safari crashed right after disabling "block pop up windows" (or other WebPreferences changes)
3335 * Plugins/WebBaseNetscapePluginView.m:
3336 (-[WebBaseNetscapePluginView viewWillMoveToSuperview:]):
3337 Stop the plug-in when it is removed from its superview. It is not sufficient to do this in -viewWillMoveToWindow:nil, because
3338 the WebView might still has a hostWindow at that point, which prevents the plug-in from being destroyed.
3339 There is no need to start the plug-in when moving into a superview. -viewDidMoveToWindow takes care of that.
3341 === Safari-521.19 ===
3343 2006-07-17 Tim Omernick <timo@apple.com>
3347 <rdar://problem/4612079> need a way to prevent pages from scrolling to reveal elements that are focused
3350 * WebView/WebViewPrivate.h:
3351 * WebView/WebView.m:
3352 (-[WebView setProhibitsMainFrameScrolling:]):
3353 New method. Prohibits scrolling in the WebView's main frame. Used to "lock" a WebView to a specific
3356 2006-07-17 Timothy Hatcher <timothy@apple.com>
3360 <rdar://problem/4635311> REGRESSION: WebKit should call windowScriptObjectAvailable before attaching the script debugger
3362 * WebCoreSupport/WebFrameBridge.m:
3363 (-[WebFrameBridge windowObjectCleared]):
3365 2006-07-17 Timothy Hatcher <timothy@apple.com>
3369 <rdar://problem/4634874> WebScriptObject and WebUndefined are no longer defined by WebKit
3371 Copy WebScriptObject.h from WebCore's private headers, not JavaScriptCore.
3373 * WebKit.xcodeproj/project.pbxproj:
3375 2006-07-17 John Sullivan <sullivan@apple.com>
3377 Reviewed by Tim Omernick.
3379 - fixed <rdar://problem/4604366> Orange Find highlight displays text in wrong size on PDF pages
3380 if they're not at "actual size"
3382 To match WebHTMLView, I made the methods that return attributed strings take the view's scale
3383 factor into account.
3385 * WebView/WebPDFView.m:
3386 (-[WebPDFView _scaledAttributedString:]):
3387 new helper method, takes an attributed string and returns one that's scaled by the view's
3388 current scale factor
3389 (-[WebPDFView attributedString]):
3390 pass result through _scaledAttributedString:
3391 (-[WebPDFView selectedAttributedString]):
3394 2006-07-17 Justin Garcia <justin.garcia@apple.com>
3398 Rolled the first fix for:
3399 <http://bugs.webkit.org/show_bug.cgi?id=9642>
3400 GMail Editor: Operations that use drop down menus blow away the selection
3401 back in and removed the call to _clearSelectionInOtherFrames from
3402 -[WebHTMLView becomeFirstResponder] to fix the bug.
3404 * WebView/WebHTMLView.m:
3405 (-[NSArray maintainsInactiveSelection]):
3406 (-[NSArray becomeFirstResponder]):
3407 * WebView/WebView.m:
3408 (-[WebView maintainsInactiveSelection]):
3410 2006-07-15 Darin Adler <darin@apple.com>
3412 Reviewed by John Sullivan.
3414 - fix http://bugs.webkit.org/show_bug.cgi?id=9928
3415 REGRESSION: Text Encoding menu inoperative (after gcc protocol build fix)
3417 * WebView/WebHTMLView.m:
3418 (-[WebHTMLView _documentRange]): Moved into WebHTMLViewFileInternal category.
3419 (-[WebHTMLView selectionRect]): Moved into WebDocumentPrivateProtocols category.
3420 (-[WebHTMLView selectionView]): Ditto.
3421 (-[WebHTMLView selectionImageForcingWhiteText:]): Ditto.
3422 (-[WebHTMLView selectionImageRect]): Ditto.
3423 (-[WebHTMLView pasteboardTypesForSelection]): Ditto.
3424 (-[WebHTMLView selectAll]): Ditto.
3425 (-[WebHTMLView deselectAll]): Ditto.
3426 (-[WebHTMLView string]): Ditto.
3427 (-[WebHTMLView _attributeStringFromDOMRange:]): Ditto.
3428 (-[WebHTMLView attributedString]): Ditto.
3429 (-[WebHTMLView selectedString]): Ditto.
3430 (-[WebHTMLView selectedAttributedString]): Ditto.
3431 (-[WebHTMLView supportsTextEncoding]): Ditto.
3432 (-[WebHTMLView _canProcessDragWithDraggingInfo:]): Moved into WebDocumentInternalProtocols.
3433 (-[WebHTMLView _isMoveDrag]): Ditto.
3434 (-[WebHTMLView _isNSColorDrag:]): Ditto.
3435 (-[WebHTMLView draggingUpdatedWithDraggingInfo:actionMask:]): Ditto.
3436 (-[WebHTMLView draggingCancelledWithDraggingInfo:]): Ditto.
3437 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): Ditto.
3438 (-[WebHTMLView elementAtPoint:]): Ditto.
3439 (-[WebHTMLView elementAtPoint:allowShadowContent:]): Ditto.
3441 * WebKit.xcodeproj/project.pbxproj: Let Xcode 2.3 do its thing.
3443 === Safari-521.17 ===
3445 2006-07-14 Timothy Hatcher <timothy@apple.com>
3447 Rolling out this fix from r15358 since it isn't resolved.
3449 2006-07-11 Justin Garcia <justin.garcia@apple.com>
3451 Reviewed by levi & thatcher
3453 <http://bugs.webkit.org/show_bug.cgi?id=9642>
3454 GMail Editor: Operations that use drop down menus blow away the selection
3456 * WebView/WebHTMLView.m:
3457 (-[WebHTMLView maintainsInactiveSelection]): Maintain an inactive selection
3458 when resigning as first responder if the selection is editable
3459 or if the WebView tells us to.
3460 * WebView/WebView.m:
3461 (-[WebView maintainsInactiveSelection]): Just because a WebView is
3462 editable doesn't mean selections inside subframes will be. Return
3465 2006-07-14 Timothy Hatcher <timothy@apple.com>
3467 <rdar://problem/4623957> SWB: gcc-5412 (new?) objc warning causes WebCore project failure
3469 Build fix with the new GCC. Removes forward declarations of protocols.
3471 * Misc/WebSearchableTextView.h:
3472 * WebCoreSupport/WebSubresourceLoader.h:
3473 * WebKit.xcodeproj/project.pbxproj:
3474 * WebView/WebDocumentInternal.h:
3475 * WebView/WebDocumentPrivate.h:
3476 * WebView/WebHTMLView.h:
3477 * WebView/WebPDFView.h:
3478 * WebView/WebScriptDebugDelegatePrivate.h:
3480 2006-06-28 Darin Adler <darin@apple.com>
3484 - fix http://bugs.webkit.org/show_bug.cgi?id=9625
3485 <rdar://problem/4604703>
3486 REGRESSION: Focus not removed from password field after ctrl-click in text field
3488 * WebView/WebHTMLView.m: (-[WebHTMLView menuForEvent:]): Set handlingMouseDownEvent to
3489 YES while calling sendContextMenuEvent: on the bridge.
3491 2006-07-14 Timothy Hatcher <timothy@apple.com>
3495 Moved JavaScriptCore to be a public framework.
3497 * WebKit.xcodeproj/project.pbxproj:
3499 2006-07-13 Mitz Pettel <opendarwin.org@mitzpettel.com>
3503 - fix http://bugs.webkit.org/show_bug.cgi?id=9795
3504 REGRESSION: Crash in [WebHTMLView(WebPrivate)
3505 _updateMouseoverWithEvent:]
3506 and http://bugs.webkit.org/show_bug.cgi?id=9850
3507 REGRESSION: Assertion failure (SHOULD NEVER BE REACHED) in -
3508 [WebHTMLView(WebPrivate) removeTrackingRect:]
3510 * WebView/WebHTMLView.m:
3511 (-[WebHTMLView _updateMouseoverWithEvent:]): Return immediately if
3512 the view has already been closed.
3514 2006-07-13 David Harrison <harrison@apple.com>
3516 Reviewed by Justin and Levi.
3518 <rdar://problem/4620743> REGRESSION: Option-Delete doesn't delete words during typing
3521 editing/deleting/delete-by-word-001.html
3522 editing/deleting/delete-by-word-002.html
3524 * WebView/WebHTMLView.m:
3525 (-[WebHTMLView _deleteRange:killRing:prepend:smartDeleteOK:deletionAction:granularity:]):
3527 2006-07-13 Timothy Hatcher <timothy@apple.com>
3529 Rolling out this earlier change (r15378) now that it is fixed on AGL's end.
3530 Fixes <rdar://problem/4624865> Restore 64-bit OpenGL plug-in support once AGL is 64-bit
3532 <rdar://problem/4624858> AGL isn't 64-bit yet; temporarily remove it from WebKit 64-bit build
3534 * Plugins/WebBaseNetscapePluginView.h:
3535 * Plugins/WebBaseNetscapePluginView.m:
3537 2006-07-13 Timothy Hatcher <timothy@apple.com>
3541 <rdar://problem/4616920> REGRESSION: tabbing in mail moves focus
3542 to next control instead of inserting a tab space.
3544 Change editible WebView's tabKeyCyclesThroughElements to NO only
3545 if the setTabKeyCyclesThroughElements SPI wasn't called.
3547 * WebView/WebView.m:
3548 (-[WebView setEditable:]):
3550 2006-07-12 Anders Carlsson <acarlsson@apple.com>
3554 http://bugs.webkit.org/show_bug.cgi?id=9624
3555 REGRESSION: After ctrl-clicking in a EMPTY input or textarea field, the contextual menu shows "Search in Google" and "Search in Spotlight" as active menu items
3557 * DefaultDelegates/WebDefaultContextMenuDelegate.m:
3558 (-[WebDefaultUIDelegate editingContextMenuItemsForElement:defaultMenuItems:]):
3559 Don't create Dictionary, Spotlight or Google lookup items if there's no selection.
3561 2006-07-12 Mark Rowe <opendarwin.org@bdash.net.nz>
3563 Reviewed by Timothy.
3565 http://bugs.webkit.org/show_bug.cgi?id=9868
3566 Applications shown in Drosera's "Attach" window remain after exit
3568 * DefaultDelegates/WebScriptDebugServer.m:
3569 (-[WebScriptDebugServer init]): Register for NSApplicationWillTerminateNotification so we will