1 2006-10-04 Mark Rowe <bdash@webkit.org>
3 Reviewed by NOBODY (build fix).
6 (-[WebView scrollDOMRangeToVisible:]): Move scrollDOMRangeToVisible: into the correct category.
8 2006-09-26 David Smith <catfish.man@gmail.com>
12 http://bugs.webkit.org/show_bug.cgi?id=3723
13 Add -scrollDOMRangeToVisible:
16 (-[WebView scrollDOMRangeToVisible:]):
17 * WebView/WebViewPrivate.h:
19 2006-10-03 Graham Dennis <graham.dennis@gmail.com>
23 <http://bugs.webkit.org/show_bug.cgi?id=10338>
24 When contentEditable, cursor doesn't change to hand
26 Allow the behaviour of editable links to be specified by a WebPreference
27 The preference WebKitEditableLinkBehavior has four options:
28 - AlwaysLive: Safari 2.0 behaviour
29 - OnlyLiveWithShiftKey: Firefox/WinIE behaviour (and prior WebKit-ToT behaviour)
30 - LiveWhenNotFocused: Editable links are live only when their editable block is not
31 focused, or when the shift key is pressed
32 - DefaultBehavior: This is the same as OnlyLiveWithShiftKey.
34 No layout tests, just a modification of a manual-test as it isn't possible to test
37 * WebView/WebPreferenceKeysPrivate.h:
38 * WebView/WebPreferences.m:
39 (+[WebPreferences initialize]):
40 (-[WebPreferences editableLinkBehavior]):
41 (-[WebPreferences setEditableLinkBehavior:]):
42 * WebView/WebPreferencesPrivate.h:
44 (-[WebView _updateWebCoreSettingsFromPreferences:]):
46 2006-10-03 Justin Garcia <justin.garcia@apple.com>
50 execCommand("Cut"/"Copy"/"Paste") broken in editable subframes.
52 * WebCoreSupport/WebFrameBridge.m:
53 (-[WebFrameBridge issueCutCommand]): Issue the command on the WebHTMLView, not the WebView.
54 (-[WebFrameBridge issueCopyCommand]): Ditto.
55 (-[WebFrameBridge issuePasteCommand]): Ditto.
56 (-[WebFrameBridge issuePasteAndMatchStyleCommand]): Ditto.
57 (-[WebFrameBridge issueTransposeCommand]): Fixed formatting.
58 (-[WebFrameBridge canPaste]): Ask the WebHTMLView, not the WebView.
59 * WebView/WebHTMLView.m:
60 (-[WebHTMLView copy:]): Moved to WebInternal
61 (-[WebHTMLView cut:]): Ditto.
62 (-[WebHTMLView paste:]): Ditto.
63 (-[WebHTMLView pasteAsPlainText:]): Ditto.
64 * WebView/WebHTMLViewInternal.h:
65 * WebView/WebView.m: Removed the now unused _canPaste.
66 * WebView/WebViewInternal.h: Ditto.
68 2006-10-03 Justin Garcia <justin.garcia@apple.com>
72 <rdar://problem/4763519> REGRESSION: Multipart/x-mixed-replace sub-resources fail to load
74 * Loader/WebSubresourceLoader.m:
75 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
76 Enable multipart/x-mixed-replace support on the request. This line was accidently removed during
77 some loader refactoring.
79 2006-10-02 Adam Roben <aroben@apple.com>
83 Add message paramter to WebView::mouse* methods to pass down to
87 (WebView::mouseMoved):
90 (WebView::mouseDoubleClick):
94 2006-10-02 Maciej Stachowiak <mjs@apple.com>
98 - take away direct knowledge of WebFrame from WebDataSource
100 * Loader/WebDocumentLoadState.h:
101 * Loader/WebDocumentLoadState.m:
102 (-[WebDocumentLoadState setFrameLoader:]):
103 (-[WebDocumentLoadState detachFromFrameLoader]):
104 * Loader/WebFrameLoader.m:
105 (-[WebFrameLoader _setDocumentLoadState:]):
106 (-[WebFrameLoader _setProvisionalDocumentLoadState:]):
107 * WebView/WebDataSource.m:
108 * WebView/WebDataSourceInternal.h:
109 * WebView/WebDocumentLoadStateMac.m:
110 (-[WebDocumentLoadStateMac detachFromFrameLoader]):
111 * WebView/WebFrame.m:
112 (-[WebFrame _loadDataSource:withLoadType:formState:]):
114 2006-10-02 Maciej Stachowiak <mjs@apple.com>
118 - move a big slice of data and logic from WebDataSource to WebDocumentLoadState
120 * Loader/WebDocumentLoadState.h:
121 * Loader/WebDocumentLoadState.m:
122 (-[WebDocumentLoadState initWithRequest:]):
123 (-[WebDocumentLoadState dealloc]):
124 (-[WebDocumentLoadState originalRequestCopy]):
125 (-[WebDocumentLoadState request]):
126 (-[WebDocumentLoadState replaceRequestURLForAnchorScrollWithURL:]):
127 (-[WebDocumentLoadState setRequest:]):
128 (-[WebDocumentLoadState setResponse:]):
129 (-[WebDocumentLoadState isStopping]):
130 (-[WebDocumentLoadState bridge]):
131 (-[WebDocumentLoadState setMainDocumentError:]):
132 (-[WebDocumentLoadState mainDocumentError]):
133 (-[WebDocumentLoadState clearErrors]):
134 (-[WebDocumentLoadState mainReceivedError:complete:]):
135 (-[WebDocumentLoadState stopLoading]):
136 (-[WebDocumentLoadState setupForReplace]):
137 (-[WebDocumentLoadState commitIfReady]):
138 (-[WebDocumentLoadState finishedLoading]):
139 (-[WebDocumentLoadState setCommitted:]):
140 (-[WebDocumentLoadState isCommitted]):
141 (-[WebDocumentLoadState setLoading:]):
142 (-[WebDocumentLoadState isLoading]):
143 (-[WebDocumentLoadState commitLoadWithData:]):
144 (-[WebDocumentLoadState doesProgressiveLoadWithMIMEType:]):
145 (-[WebDocumentLoadState receivedData:]):
146 (-[WebDocumentLoadState setupForReplaceByMIMEType:]):
147 (-[WebDocumentLoadState updateLoading]):
148 (-[WebDocumentLoadState response]):
149 * Loader/WebFrameLoader.h:
150 * Loader/WebFrameLoader.m:
151 (-[WebFrameLoader activeDocumentLoadState]):
152 (-[WebFrameLoader activeDataSource]):
153 (-[WebFrameLoader _archivedSubresourceForURL:]):
154 (-[WebFrameLoader addPlugInStreamLoader:]):
155 (-[WebFrameLoader removePlugInStreamLoader:]):
156 (-[WebFrameLoader addSubresourceLoader:]):
157 (-[WebFrameLoader removeSubresourceLoader:]):
158 (-[WebFrameLoader documentLoadState]):
159 (-[WebFrameLoader provisionalDocumentLoadState]):
160 (-[WebFrameLoader stopLoading]):
161 (-[WebFrameLoader _originalRequest]):
162 (-[WebFrameLoader _receivedData:]):
163 (-[WebFrameLoader _setRequest:]):
164 (-[WebFrameLoader bridge]):
165 (-[WebFrameLoader _handleFallbackContent]):
166 (-[WebFrameLoader _isStopping]):
167 (-[WebFrameLoader _setupForReplaceByMIMEType:]):
168 (-[WebFrameLoader _setResponse:]):
169 (-[WebFrameLoader _mainReceivedError:complete:]):
170 (-[WebFrameLoader _finishedLoading]):
171 (-[WebFrameLoader didReceiveServerRedirectForProvisionalLoadForFrame]):
172 (-[WebFrameLoader finishedLoadingDocumentLoadState:]):
173 (-[WebFrameLoader commitProvisitionalLoad]):
174 (-[WebFrameLoader committedLoadWithDocumentLoadState:data:]):
175 (-[WebFrameLoader isReplacing]):
176 (-[WebFrameLoader setReplacing]):
177 (-[WebFrameLoader revertToProvisionalWithDocumentLoadState:]):
178 (-[WebFrameLoader documentLoadState:setMainDocumentError:]):
179 (-[WebFrameLoader documentLoadState:mainReceivedCompleteError:]):
180 (-[WebFrameLoader finalSetupForReplaceWithDocumentLoadState:]):
181 * WebView/WebDataSource.m:
182 (-[WebDataSourcePrivate dealloc]):
183 (-[WebDataSource _prepareForLoadStart]):
184 (-[WebDataSource _mainDocumentError]):
185 (-[WebDataSource _finishedLoading]):
186 (-[WebDataSource _receivedData:]):
187 (-[WebDataSource _setMainDocumentError:]):
188 (-[WebDataSource _clearUnarchivingState]):
189 (-[WebDataSource _revertToProvisionalState]):
190 (-[WebDataSource _receivedMainResourceError:complete:]):
191 (-[WebDataSource _startLoading]):
192 (-[WebDataSource _loadFromPageCache:]):
193 (-[WebDataSource _bridge]):
194 (-[WebDataSource _setPrimaryLoadComplete:]):
195 (-[WebDataSource _URLForHistory]):
196 (-[WebDataSource _setTitle:]):
197 (-[WebDataSource _initWithDocumentLoadState:]):
198 (-[WebDataSource request]):
199 (-[WebDataSource response]):
200 (-[WebDataSource isLoading]):
201 (-[WebDataSource webArchive]):
202 * WebView/WebDataSourceInternal.h:
203 * WebView/WebDocumentLoadStateMac.m:
204 (-[WebDocumentLoadStateMac initWithRequest:]):
205 * WebView/WebFrame.m:
206 (-[WebFrame _createItem:]):
207 (-[WebFrame _receivedMainResourceError:]):
208 (-[WebFrame _transitionToCommitted:]):
209 (-[WebFrame _commitProvisionalLoad:]):
210 (-[WebFrame _checkLoadCompleteForThisFrame]):
211 (-[WebFrame _loadItem:withLoadType:]):
212 (-[WebFrame _continueFragmentScrollAfterNavigationPolicy:formState:]):
213 (-[WebFrame _didReceiveServerRedirectForProvisionalLoadForFrame]):
214 (-[WebFrame _provisionalLoadStarted]):
215 * WebView/WebFrameInternal.h:
217 2006-10-02 Justin Garcia <justin.garcia@apple.com>
221 <rdar://problem/4757583>
222 REGRESSION: tabbing into page focuses wrong control on 2nd pass
223 <rdar://problem/4757594>
224 REGRESSION: Form field is left with secondary selection after tabbing out of WebView
226 * WebView/WebHTMLView.m:
227 (-[NSArray maintainsInactiveSelection]): Replace code that I removed in error in the patch
228 for 9642. Only leave inactive editable selections in the WebHTMLView if the nextResponder
229 is in the same WebView.
231 2006-10-02 Maciej Stachowiak <mjs@apple.com>
235 - remove webFrame field from WebDataSourcePrivate, it can get it from WebDocumentLoadState now
237 * Loader/WebDocumentLoadState.h:
238 * Loader/WebDocumentLoadState.m:
239 (-[WebDocumentLoadState frameLoader]):
240 * WebView/WebDataSource.m:
241 (-[WebDataSourcePrivate dealloc]):
242 (-[WebDataSource _revertToProvisionalState]):
243 (-[WebDataSource _setupForReplaceByMIMEType:]):
244 (-[WebDataSource _updateLoading]):
245 (-[WebDataSource _startLoading]):
246 (-[WebDataSource _setWebFrame:]):
247 (-[WebDataSource _defersCallbacksChanged]):
248 (-[WebDataSource _stopLoading]):
249 (-[WebDataSource _webView]):
250 (-[WebDataSource _stopLoadingWithError:]):
251 (-[WebDataSource _setPrimaryLoadComplete:]):
252 (-[WebDataSource dealloc]):
253 (-[WebDataSource webFrame]):
254 (-[WebDataSource isLoading]):
256 2006-10-02 Maciej Stachowiak <mjs@apple.com>
260 - fix crash on back/forward - reattach WebDocumentLoadState to data source when needed
262 * WebView/WebDataSource.m:
263 (-[WebDataSource _setWebFrame:]):
264 (-[WebDataSource _initWithDocumentLoadState:]):
265 * WebView/WebDataSourceInternal.h:
267 2006-10-02 Maciej Stachowiak <mjs@apple.com>
269 Build fix, not reviewed.
271 - Added missing files to fix build.
273 * WebView/WebDocumentLoadStateMac.h: Added.
274 * WebView/WebDocumentLoadStateMac.m: Added.
275 (-[WebDocumentLoadStateMac initWithRequest:]):
276 (-[WebDocumentLoadStateMac dealloc]):
277 (-[WebDocumentLoadStateMac setDataSource:]):
278 (-[WebDocumentLoadStateMac dataSource]):
279 (-[WebDocumentLoadStateMac setFrameLoader:]):
281 2006-10-01 Maciej Stachowiak <mjs@apple.com>
283 Reviewed by Brady and Oliver.
285 - move things around so that WebDataSource and WebDocumentLoadState know about each other in
286 the right way. This lines things up to move nearly all functionality down to WebDocumentLoadState.
288 * Loader/WebDocumentLoadState.h:
289 * Loader/WebDocumentLoadState.m:
290 (-[WebDocumentLoadState initWithRequest:]):
291 (-[WebDocumentLoadState dealloc]):
292 (-[WebDocumentLoadState originalRequest]):
293 * Loader/WebFrameLoader.h:
294 * Loader/WebFrameLoader.m:
295 (-[WebFrameLoader dealloc]):
296 (-[WebFrameLoader addSubresourceLoader:]):
297 (-[WebFrameLoader startLoadingMainResourceWithRequest:identifier:]):
298 (-[WebFrameLoader dataSource]):
299 (-[WebFrameLoader _setDocumentLoadState:]):
300 (-[WebFrameLoader policyDataSource]):
301 (-[WebFrameLoader _setPolicyDocumentLoadState:]):
302 (-[WebFrameLoader clearDataSource]):
303 (-[WebFrameLoader provisionalDataSource]):
304 (-[WebFrameLoader _setProvisionalDocumentLoadState:]):
305 (-[WebFrameLoader _clearProvisionalDataSource]):
306 (-[WebFrameLoader _setState:]):
307 (-[WebFrameLoader clearProvisionalLoad]):
308 (-[WebFrameLoader commitProvisionalLoad]):
309 (-[WebFrameLoader stopLoading]):
310 (-[WebFrameLoader startLoading]):
311 (-[WebFrameLoader startProvisionalLoad:]):
312 (-[WebFrameLoader setupForReplace]):
313 (-[WebFrameLoader activeDocumentLoadState]):
314 (-[WebFrameLoader activeDataSource]):
315 (-[WebFrameLoader _loadRequest:archive:]):
316 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
317 (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
318 (-[WebFrameLoader reload]):
319 * WebKit.xcodeproj/project.pbxproj:
320 * WebView/WebDataSource.m:
321 (-[WebDataSourcePrivate dealloc]):
322 (-[WebDataSource _startLoading]):
323 (-[WebDataSource _setWebFrame:]):
324 (-[WebDataSource _documentLoadState]):
325 (-[WebDataSource _initWithDocumentLoadState:]):
326 (-[WebDataSource initWithRequest:]):
327 (-[WebDataSource initialRequest]):
328 (-[WebDataSource unreachableURL]):
329 * WebView/WebDataSourceInternal.h:
330 * WebView/WebFrame.m:
331 (-[WebFramePrivate dealloc]):
332 (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
333 (-[WebFrame _loadDataSource:withLoadType:formState:]):
334 (-[WebFrame _policyDataSource]):
335 (-[WebFrame _shouldReloadToHandleUnreachableURLFromRequest:]):
336 (-[WebFrame _dataSourceForDocumentLoadState:]):
337 (-[WebFrame _createDocumentLoadStateWithRequest:]):
338 * WebView/WebFrameInternal.h:
340 2006-09-29 David Hyatt <hyatt@apple.com>
342 Change the default minimum font size pref to 0 in order to allow
345 * WebView/WebPreferences.m:
346 (+[WebPreferences initialize]):
348 2006-09-28 Timothy Hatcher <timothy@apple.com>
352 Switch the inspector over to use border-image with styled buttons and selects.
354 * WebInspector/WebInspector.m:
355 (-[NSWindow window]):
356 (-[NSWindow setWebFrame:]):
357 (-[WebInspector _updateRoot]):
358 * WebInspector/webInspector/Images/button.png: Added.
359 * WebInspector/webInspector/Images/buttonDivider.png: Added.
360 * WebInspector/webInspector/Images/buttonPressed.png: Added.
361 * WebInspector/webInspector/Images/popup.png: Added.
362 * WebInspector/webInspector/Images/popupFill.png: Removed.
363 * WebInspector/webInspector/Images/popupFillPressed.png: Removed.
364 * WebInspector/webInspector/Images/popupLeft.png: Removed.
365 * WebInspector/webInspector/Images/popupLeftPressed.png: Removed.
366 * WebInspector/webInspector/Images/popupPressed.png: Added.
367 * WebInspector/webInspector/Images/popupRight.png: Removed.
368 * WebInspector/webInspector/Images/popupRightPressed.png: Removed.
369 * WebInspector/webInspector/Images/squareButtonRight.png: Removed.
370 * WebInspector/webInspector/Images/squareButtonRightPressed.png: Removed.
371 * WebInspector/webInspector/inspector.css:
372 * WebInspector/webInspector/inspector.html:
373 * WebInspector/webInspector/inspector.js:
375 2006-09-28 Alice Liu <alice.liu@apple.com>
377 fixing the windows build
380 (WebView::mouseMoved):
381 (WebView::mouseDown):
383 (WebView::mouseDoubleClick):
385 2006-09-27 Justin Garcia <justin.garcia@apple.com>
389 <rdar://problem/4044271>
390 Writing Direction menu doesn't reflect the current writing direction (9773)
392 * English.lproj/Localizable.strings: Added "Right to Left" and "Left to Right"
393 * WebView/WebHTMLView.m:
394 (-[NSArray validateUserInterfaceItem:]): Validate menu items that perform
395 toggleBaseWritingDirection and changeBaseWritingDirection.
396 Disable the menu item that changes the writing direction to NSWritingDirectionNautral
397 because NSWritingDirectionNatural's behavior can't be implemented with CSS.
398 Take control of the title of the menu item that performs toggleBaseWritingDirection:
399 instead of checking/unchecking it, otherwise we wouldn't know what a check means.
400 (-[NSArray changeBaseWritingDirection:]): ASSERT that the requested writing
401 direction is not NSWritingDirectionNatural, since we've disabled the
402 menu item that performs it.
404 2006-09-27 MorganL <morganl.webkit@yahoo.com>
406 Reviewed by Maciej, landed by Brady
408 Update URL request associated with provisional data source on redirect.
409 Notify IWebFrameLoadDelegate of redirects for the provisional load.
410 Notify IWebFrameLoadDelegate of a provisional load being commited.
412 * COM/WebDataSource.cpp:
413 (WebDataSource::replaceRequest):
414 * COM/WebDataSource.h:
416 (WebFrame::receivedRedirect):
417 (WebFrame::receivedResponse):
418 (WebFrame::receivedData):
420 2006-09-26 John Sullivan <sullivan@apple.com>
424 * WebView/WebHTMLViewPrivate.h:
425 * WebView/WebHTMLView.m:
426 (-[WebHTMLView markAllMatchesForText:caseSensitive:limit:]):
427 Added limit parameter, passed over the bridge. Stop the search if it hits limit.
429 * WebView/WebViewPrivate.h:
431 (-[WebView markAllMatchesForText:caseSensitive:highlight:limit:]):
432 Added limit parameter, passed to WebHTMLView.
434 2006-09-26 David Harrison <harrison@apple.com>
436 Reviewed by John and TimH.
438 <rdar://problem/4743256> Seed: Ctrl-Y key binding does nothing when kill ring is empty
440 Use deleteBackward: when the killring string is empty. Was always using insertText:,
441 but that ends up early-returning if the string to insert is empty.
443 * WebView/WebHTMLView.m:
445 (-[NSArray yankAndSelect:]):
447 2006-09-25 Timothy Hatcher <timothy@apple.com>
451 Use the non-deprecated method names for getComputedStyle, setEnd and setStart.
453 * WebInspector/WebInspector.m:
454 (-[WebInspector _highlightNode:]):
455 * WebView/WebHTMLView.m:
457 (-[WebHTMLView _selectRangeInMarkedText:]):
458 (-[WebTextCompleteController doCompletion]):
460 (-[WebView computedStyleForElement:pseudoElement:]):
462 2006-09-22 Timothy Hatcher <timothy@apple.com>
466 Pass all headers through unifdef to filter out BUILDING_ON_TIGER blocks
467 if MACOSX_DEPLOYMENT_TARGET is 10.4.
469 * MigrateHeaders.make:
471 2006-09-20 Justin Garcia <justin.garcia@apple.com>
475 <http://bugs.webkit.org/show_bug.cgi?id=7165>
476 TinyMCE: Dragging & dropping content always leaves a copy when editing inside a subframe
478 The top level WebHTMLView is responsible for performing dragging operations, but
479 the inner view, the view that holds the drag caret, should be consulted to determine
480 if the drag is a move drag.
482 * WebCoreSupport/WebFrameBridge.m:
483 (-[WebFrameBridge startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
484 * WebKit.xcodeproj/project.pbxproj:
485 * WebView/WebHTMLView.m:
486 (-[NSArray dragImage:at:offset:event:pasteboard:source:slideBack:]): Don't set initatedDrag here, because
487 it's only the top level WebHTMLView that performs this operation.
488 (-[WebHTMLView _setInitiatedDrag:]): Added.
489 (-[WebHTMLView _initiatedDrag]): Ditto.
490 (-[WebHTMLView _canProcessDragWithDraggingInfo:]): Ask the innerView if it initiated the drag,
491 not the top level view.
492 (-[WebHTMLView _isMoveDrag]): The top level view asks the innerView if it should perform
493 a move drag, so don't ASSERT _isTopHTMLView.
494 (-[WebHTMLView draggingUpdatedWithDraggingInfo:actionMask:]): Ask the innerView if _isMoveDrag.
495 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): Ditto.
496 * WebView/WebHTMLViewInternal.h: Added two private SPI so that
497 the top level WebHTMLView can set and get the initiatedDrag BOOL.
499 === Safari-521.27 ===
501 2006-09-20 Brady Eidson <beidson@apple.com>
503 Reviewed by Tim Omernick
505 Fixing part of a crash Tim O showed me. [WebIconDatabase init] should finish
506 gracefully even if we can't open the database
508 * Misc/WebIconDatabase.m:
509 (-[WebIconDatabase init]):
511 2006-09-20 Timothy Hatcher <timothy@apple.com>
515 <rdar://problem/4741392> Develop a system to find what version of WebKit an app was linked with
517 * Misc/WebKitVersionChecks.h: Added.
518 * Misc/WebKitVersionChecks.m: Added.
519 (WebKitLinkedOnOrAfter): Added.
520 (WebKitLinkTimeVersion): Added.
521 (WebKitRunTimeVersion): Added.
522 * WebKit.xcodeproj/project.pbxproj:
524 2006-09-20 Tim Omernick <timo@apple.com>
528 * Misc/WebIconDatabase.m:
529 (-[WebIconDatabase init]):
532 2006-09-20 Brady Eidson <beidson@apple.com>
536 Preparing to make the WebIconDatabase disabled by default - this patch tells the bridge whether its enabled or not
538 * Misc/WebIconDatabase.m:
539 (-[WebIconDatabase init]):
541 2006-09-19 Brady Eidson <beidson@apple.com>
543 Reviewed by Sarge Decker
545 <rdar://problem/4739892> and <rdar://problem/4729797>
546 - WebCore::IconDatabase needs to have and respect an enabled() flag
547 - Mail on ToT WebKit crashes in IconDatabase code when mailing a page from Safari
549 * Misc/WebIconDatabase.m:
550 (-[WebIconDatabase init]): If preference says icons are disabled, tell the bridge
551 (-[WebIconDatabase _isEnabled]): Ask the bridge if the database is enabled
553 2006-09-19 Alexey Proskuryakov <ap@nypop.com>
557 http://bugs.webkit.org/show_bug.cgi?id=10661
558 REGRESSION: CFM plug-ins (Shockwave, SVG) are not loaded
560 * Plugins/WebBasePluginPackage.m:
561 (-[WebBasePluginPackage initWithPath:]): On 32-bit PowerPC, don't bail out if
562 the bundle is nil - it can be a CFM plugin.
564 2006-09-18 Brady Eidson <beidson@apple.com>
568 Implement a bridge method so WebCore can find the reload type of a frame load
570 * WebCoreSupport/WebFrameBridge.m:
571 (-[WebFrameBridge isLoadTypeReload]):
573 2006-09-18 Sam Weinig <sam.weinig@gmail.com>
577 Patch for http://bugs.webkit.org/show_bug.cgi?id=10903
578 Yet Another Objective-C Bindings Patch
580 * MigrateHeaders.make:
582 2006-09-17 David Harrison <harrison@apple.com>
584 Reviewed by John Sullivan.
586 <rdar://problem/4494340> REGRESSION: Making the font size bigger/smaller in an HTML message doesn't affect the body until you reopen it
588 Problem was the public API -[WebView setTextSizeMultiplier] did not notify anyone that the value changed.
590 * WebView/WebDocumentInternal.h:
591 Add _textSizeMultiplierChanged to the _WebDocumentTextSizing protocol.
593 * WebView/WebHTMLView.m:
594 (-[WebHTMLView _textSizeMultiplierChanged]):
595 Send [self _updateTextSizeMultiplier].
597 * WebView/WebPDFView.m:
598 (-[WebPDFView _textSizeMultiplierChanged]):
599 ASSERT_NOT_REACHED() because WebPDFView does not track the common multiplier.
602 (-[WebView setTextSizeMultiplier:]):
603 Send [self _notifyTextSizeMultiplierChanged];
605 (-[WebView _performTextSizingSelector:withObject:onTrackingDocs:selForNonTrackingDocs:newScaleFactor:]):
606 Alter the _textSizeMultiplier directly so that notification is not sent.
609 (-[WebView _notifyTextSizeMultiplierChanged]):
610 New. Send _textSizeMultiplierChanged to all document views that track the common multiplier.
612 2006-09-16 Brady Eidson <beidson@apple.com>
616 WebIconLoader is dead, long live WebCore::IconLoader
619 * Loader/WebFrameLoader.h:
620 * Loader/WebFrameLoader.m:
621 (-[WebFrameLoader dealloc]):
622 (-[WebFrameLoader commitProvisionalLoad]):
623 * Loader/WebIconLoader.h: Removed.
624 * Loader/WebIconLoader.m: Removed.
625 * Misc/WebIconDatabase.h:
626 * Misc/WebIconDatabase.m:
627 * Misc/WebIconDatabasePrivate.h:
628 * WebCoreSupport/WebFrameBridge.m:
629 (-[WebFrameBridge notifyIconChanged:]):
630 * WebCoreSupport/WebIconDatabaseBridge.h:
631 * WebCoreSupport/WebIconDatabaseBridge.m:
632 (-[WebIconDatabaseBridge _init]):
633 (-[WebIconDatabaseBridge _setIconData:forIconURL:]):
634 (-[WebIconDatabaseBridge _setHaveNoIconForIconURL:]):
636 * WebKit.xcodeproj/project.pbxproj:
637 * WebView/WebDataSource.m:
638 (-[WebDataSourcePrivate dealloc]):
639 (-[WebDataSource _stopLoading]):
640 (-[WebDataSource _setPrimaryLoadComplete:]):
641 * WebView/WebDataSourceInternal.h:
643 2006-09-16 Mark Rowe <opendarwin.org@bdash.net.nz>
647 http://bugs.webkit.org/show_bug.cgi?id=10887
650 * MigrateHeaders.make: Remove reference to DOMEventPrivate.h.
652 2006-09-15 Timothy Hatcher <timothy@apple.com>
656 Make new style ObjC methods public API.
658 * MigrateHeaders.make:
660 2006-09-15 Sam Weinig <sam.weinig@gmail.com>
664 Patch for http://bugs.webkit.org/show_bug.cgi?id=10870
665 Auto-generate DOMNode for the Objective-C bindings
667 * MigrateHeaders.make:
669 2006-09-15 Timothy Hatcher <timothy@apple.com>
673 Call the bridge directly for alter selection calls. All of this logic is now
674 in WebCore's SelectionController.
676 * WebView/WebHTMLView.m:
677 (-[NSArray moveBackward:]):
678 (-[NSArray moveBackwardAndModifySelection:]):
679 (-[NSArray moveDown:]):
680 (-[NSArray moveDownAndModifySelection:]):
681 (-[NSArray moveForward:]):
682 (-[NSArray moveForwardAndModifySelection:]):
683 (-[NSArray moveLeft:]):
684 (-[NSArray moveLeftAndModifySelection:]):
685 (-[NSArray moveRight:]):
686 (-[NSArray moveRightAndModifySelection:]):
687 (-[NSArray moveToBeginningOfDocument:]):
688 (-[NSArray moveToBeginningOfDocumentAndModifySelection:]):
689 (-[NSArray moveToBeginningOfSentence:]):
690 (-[NSArray moveToBeginningOfSentenceAndModifySelection:]):
691 (-[NSArray moveToBeginningOfLine:]):
692 (-[NSArray moveToBeginningOfLineAndModifySelection:]):
693 (-[NSArray moveToBeginningOfParagraph:]):
694 (-[NSArray moveToBeginningOfParagraphAndModifySelection:]):
695 (-[NSArray moveToEndOfDocument:]):
696 (-[NSArray moveToEndOfDocumentAndModifySelection:]):
697 (-[NSArray moveToEndOfSentence:]):
698 (-[NSArray moveToEndOfSentenceAndModifySelection:]):
699 (-[NSArray moveToEndOfLine:]):
700 (-[NSArray moveToEndOfLineAndModifySelection:]):
701 (-[NSArray moveToEndOfParagraph:]):
702 (-[NSArray moveToEndOfParagraphAndModifySelection:]):
703 (-[NSArray moveParagraphBackwardAndModifySelection:]):
704 (-[NSArray moveParagraphForwardAndModifySelection:]):
705 (-[NSArray moveUp:]):
706 (-[NSArray moveUpAndModifySelection:]):
707 (-[NSArray moveWordBackward:]):
708 (-[NSArray moveWordBackwardAndModifySelection:]):
709 (-[NSArray moveWordForward:]):
710 (-[NSArray moveWordForwardAndModifySelection:]):
711 (-[NSArray moveWordLeft:]):
712 (-[NSArray moveWordLeftAndModifySelection:]):
713 (-[NSArray moveWordRight:]):
714 (-[NSArray moveWordRightAndModifySelection:]):
715 (-[NSArray pageUp:]):
716 (-[NSArray pageDown:]):
717 (-[NSArray pageUpAndModifySelection:]):
718 (-[NSArray pageDownAndModifySelection:]):
720 2006-09-15 Adam Roben <aroben@apple.com>
724 Fixes http://bugs.webkit.org/show_bug.cgi?id=10876
725 containsItemForURLUnicode uses matchLetter instead of
728 Small fixes for _WebCoreHistoryProvider.
730 * History/WebHistory.m: Consistently use BUFFER_SIZE #define
731 (-[_WebCoreHistoryProvider containsItemForURLLatin1:length:]):
732 (-[_WebCoreHistoryProvider containsItemForURLUnicode:length:]):
733 Replace incorrect call to matchLetter to matchUnicodeLetter
735 2006-09-13 Brady Eidson <beidson@apple.com>
739 Add infrastructure to support icon loads taking place in WebCore
740 Will remove WebKit icon loaders in a later patch
742 * WebCoreSupport/WebFrameBridge.m:
743 (-[WebFrameBridge notifyIconChanged:]):
744 (-[WebFrameBridge originalRequestURL]):
745 - Nuked two old, obsolete methods
746 - Added bridge for notifying of an icon change
747 - Added bridge for getting the "original request URL" which is still needed
748 until that info is available in the WebCore loaders
750 * WebView/WebDataSource.m:
751 (-[WebDataSource _loadIcon]):
752 - Empty body just for now, as it still gets called - next patch will prune all the old impl out
754 2006-09-13 Timothy Hatcher <timothy@apple.com>
758 <rdar://problem/4726416> obsolete confusing "ADVISORY NOTE" comment in WebHistory.h
760 Removed the "ADVISORY NOTE: This method may change for the 1.0 SDK" comments.
762 * History/WebHistory.h:
764 === Safari-521.26 ===
766 2006-09-11 MorganL <morlmor@yahoo.com>
768 Reviewed/landed by aroben.
770 Fixes http://bugs.webkit.org/show_bug.cgi?id=10765
771 Windows build busted due to std::copy usage in Vector.h
773 * WebKit.vcproj/WebKit.vcproj: Define _SCL_SECURE_NO_DEPRECATE to get
774 rid of deprecation warnings on std::copy
776 2006-09-11 Brady Eidson <beidson@apple.com>
778 Despite the fact that some people built okay without this change, it sure was biting me,
779 probably because I just wiped my build directory for a fresh build -
780 Today's earlier removal of DOMList.h needed to occur in MigrateHeaders.make, as well
782 * MigrateHeaders.make: removed DOMList.h
784 2006-09-10 Darin Adler <darin@apple.com>
788 - fix http://bugs.webkit.org/show_bug.cgi?id=10547
789 REGRESSION: Links that should open in a new window open in the same window,
790 while opening another blank window
792 * WebView/WebFrame.m:
793 (-[WebFrame _continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
794 Changed a mistaken "self" to "frame", which was the cause of the bug. Also
795 fixed the method so that it won't crash if createWebViewWithRequest does
796 something that has a side effect of releasing this WebView or this frame
797 by retaining "self" and "frame" as needed. Also fixed a problem where the
798 code to set "opener" was backwards, and would set the opener of the old
799 frame to point to the new frame instead of vice versa.
801 2006-09-09 Sam Weinig <sam.weinig@gmail.com>
805 Patch for http://bugs.webkit.org/show_bug.cgi?id=10795
806 Auto-generate the Objective-C DOM XPath bindings
808 * MigrateHeaders.make:
810 2006-09-09 Sam Weinig <sam.weinig@gmail.com>
814 Patch for http://bugs.webkit.org/show_bug.cgi?id=10791
815 Even More Objective-C DOM auto-generation cleanup
817 * MigrateHeaders.make:
819 2006-09-08 Tim Omernick <timo@apple.com>
821 Reviewed by Brady Eidson.
823 Rolled out Maciej's code cleanup from 8/22. It turns out that keeping the "loading" flag
824 is a useful optimization, as it avoids many Objective-C method calls while polling resources
825 for their load state.
827 This fixes a 3-4% PLT performance regression (as measured on my MacBook Pro).
829 * Loader/WebFrameLoader.m:
830 (-[WebFrameLoader addPlugInStreamLoader:]):
831 (-[WebFrameLoader removePlugInStreamLoader:]):
832 (-[WebFrameLoader addSubresourceLoader:]):
833 (-[WebFrameLoader removeSubresourceLoader:]):
834 * WebView/WebDataSource.m:
835 (-[WebDataSourcePrivate dealloc]):
836 (-[WebDataSource _prepareForLoadStart]):
837 (-[WebDataSource _setLoading:]):
838 (-[WebDataSource _updateLoading]):
839 (-[WebDataSource _startLoading]):
840 (-[WebDataSource _stopLoading]):
841 (-[WebDataSource _setPrimaryLoadComplete:]):
842 (-[WebDataSource isLoading]):
843 * WebView/WebDataSourceInternal.h:
845 2006-09-07 Sam Weinig <sam.weinig@gmail.com>
847 Reviewed by Darin and Tim H.
849 Patch for http://bugs.webkit.org/show_bug.cgi?id=10774
850 Auto-generate the Objective-C DOM Traversal bindings
852 * MigrateHeaders.make:
854 2006-09-07 Sam Weinig <sam.weinig@gmail.com>
858 Patch for http://bugs.webkit.org/show_bug.cgi?id=10766
859 Auto-generate the Objective-C DOM Events bindings
861 * MigrateHeaders.make:
862 * WebKit.xcodeproj/project.pbxproj:
864 2006-09-06 Alexey Proskuryakov <ap@nypop.com>
866 * MigrateHeaders.make: Fixed a double slash in
867 "$(PRIVATE_HEADERS_DIR)//DOMCharacterDataPrivate.h" (this was reported
868 to cause a build failure under certain circumstances).
870 2006-09-05 MorganL <morlmor@yahoocom>
872 Reviewed/landed by aroben.
874 Fixes bug 10743: Windows build is busted.
879 2006-09-05 Timothy Hatcher <timothy@apple.com>
883 Drastically simplified the makefile for migrating headers from
884 WebCore and JavaScriptCore. The old version was always copying the files.
886 * MigrateHeaders.make:
888 2006-09-05 Darin Adler <darin@apple.com>
892 - WebKit side of changes to encoding
894 * WebView/WebHTMLRepresentation.m: (-[WebHTMLRepresentation documentSource]):
895 Changed to call new -[WebCoreFrameBridge stringWithData:] instead of the calling
896 the old methods that used a CFStringEncoding: -[WebCoreFrameBridge textEncoding]
897 and +[WebCoreFrameBridge stringWithData:textEncoding:].
899 * WebView/WebResource.m: (-[WebResource _stringValue]): Removed special case for
900 nil encoding name. The bridge itself now has the rule that "nil encoding name
901 means Latin-1", so we don't need to check for nil.
903 * WebView/WebFrame.m: (-[WebFrame _checkLoadComplete]): Retain the frame until
904 we get the parent frame while walking up parent frames, because it's possible
905 for _checkLoadCompleteForThisFrame to release the last reference to the frame.
906 (Not reviewed; needed to run performance tests successfully.)
908 2006-09-05 Timothy Hatcher <timothy@apple.com>
912 <rdar://problem/4682225> conflicting typedefs in Netscape plug-in headers
914 * Plugins/npfunctions.h: fix the return type for NPN_IntFromIdentifierProcPtr to be int32_t
916 2006-09-04 Timothy Hatcher <timothy@apple.com>
920 Bug 10714: ObjC autogeneration needs safe-guards against easily modifying the public API
921 http://bugs.webkit.org/show_bug.cgi?id=10714
923 - Added the new private DOM headers.
924 - Factored out the common commands into variables.
925 - Made WebDashboardRegion.h private again.
926 - Rename DOMDOMImplementation.h to DOMImplementation.h when files
927 are migrated. Also fixes up #imports.
929 * MigrateHeaders.make:
931 2006-09-03 Sam Weinig <sam.weinig@gmail.com>
933 Reviewed by Darin and Tim H.
935 - patch for http://bugs.webkit.org/show_bug.cgi?id=10711
936 Auto-generate the Objective-C DOM Stylesheet bindings
938 * MigrateHeaders.make:
940 2006-09-02 Sam Weinig <sam.weinig@gmail.com>
944 - patch for http://bugs.webkit.org/show_bug.cgi?id=10684
945 Auto-generate the Objective-C DOM CSS bindings
947 * MigrateHeaders.make:
949 2006-09-01 MorganL <morlmor@yahoo.com>
951 Reviewed by Darin. Updated/landed by Adam.
953 Fixes http://bugs.webkit.org/show_bug.cgi?id=10553
957 (WebFrame::initWithName):
959 2006-09-01 Brady Eidson <beidson@apple.com>
963 A "never should be reached" method was reached - lets not release the shared database bridge, esp
964 since we never retain it!
966 * Misc/WebIconDatabase.m:
967 (-[WebIconDatabase _applicationWillTerminate:]): Don't release the bridge
969 2006-09-01 Darin Adler <darin@apple.com>
973 - a few small tweaks to the icon database bridge
975 * Misc/WebIconDatabase.m: (-[WebIconDatabase init]): Updated for name change.
977 * WebCoreSupport/WebIconDatabaseBridge.h: Removed unneeded declarations.
978 * WebCoreSupport/WebIconDatabaseBridge.m:
979 (-[WebIconDatabaseBridge init]): Added. Always returns nil since you're not supposed
980 to allocate one of these.
981 (-[WebIconDatabaseBridge _init]): Renamed from init. Used internally to make the
982 shared instance. Added the "self = [super init]" idiom even though it's not important
983 in this case just to be consistent.
984 (-[WebIconDatabaseBridge releaseCachedLoaderForIconURL:]): Moved this up in the file
985 so it can be called without declaring it in the header.
986 (+[WebIconDatabaseBridge sharedInstance]): Renamed. Calls the new _init. Also use
987 CFRetain for compatibility.
988 (-[WebIconDatabaseBridge dealloc]): Emptied this out and made it just assert (false).
989 (-[WebIconDatabaseBridge finalize]): Added and made it assert (false) too.
991 2006-09-01 Timothy Hatcher <timothy@apple.com>
995 Bug 10677: Omit "-webkit-text-security: none;" from the computed style list
996 http://bugs.webkit.org/show_bug.cgi?id=10677
998 * WebInspector/webInspector/inspector.js:
1000 2006-08-31 Sam Weinig <sam.weinig@gmail.com>
1004 - patch for http://bugs.webkit.org/show_bug.cgi?id=10669
1005 Auto-generate the remaining Objective-C HTML DOM bindings
1007 * MigrateHeaders.make:
1009 2006-08-31 Adele Peterson <adele@apple.com>
1013 WebKit part of fix for http://bugs.webkit.org/show_bug.cgi?id=10666
1014 Password: Disallow Spelling, Font, Speech, and Writing Direction context menu
1016 * DefaultDelegates/WebDefaultContextMenuDelegate.m: (-[WebDefaultUIDelegate editingContextMenuItemsForElement:defaultMenuItems:]):
1017 Check that the selection isn't in a password field before adding these items to the default editing context menu.
1018 Search In Google, Search In Spotlight, Look up in Dictionary, Spelling, Font, Speech, Writing Direction
1019 * WebView/WebHTMLView.m: (-[WebHTMLView _isSelectionInPasswordField]): Added.
1020 * WebView/WebHTMLViewPrivate.h:
1022 2006-08-31 Sam Weinig <sam.weinig@gmail.com>
1026 - patch for http://bugs.webkit.org/show_bug.cgi?id=10653
1027 Auto-generate another 20 Objective-C DOM HTML bindings
1029 * MigrateHeaders.make:
1030 * WebKit.xcodeproj/project.pbxproj:
1032 2006-08-31 Adele Peterson <adele@apple.com>
1034 Reviewed by John Sullivan.
1036 Removed wkSecureEventInput and wkSetSecureEventInput, since this can be done with API.
1038 * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface):
1040 2006-08-31 John Sullivan <sullivan@apple.com>
1042 Reviewed by Tim Omernick
1044 - fixed <rdar://problem/4711200> Loading history would be faster if it bypassed
1045 NSURL API for local files
1047 * History/WebHistory.m:
1048 (-[WebHistoryPrivate _loadHistoryGutsFromURL:savedItemsCount:collectDiscardedItemsInto:error:]):
1049 Load file URLs using [NSDictionary dictionaryWithContentsOfFile:]. I also cleaned up some minor
1050 style issues in this method, and I removed the support for old NSArray-style history files (which we
1051 stopped using before Safari 1.0).
1053 2006-08-30 Adele Peterson <adele@apple.com>
1057 WebKit part of fix for http://bugs.webkit.org/show_bug.cgi?id=10575
1058 Enable secure input mode for new password fields
1060 * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface):
1062 2006-08-30 Brady Eidson <beidson@apple.com>
1066 <rdar://problem/4707718> Change behavior so if the WebCore::IconDatabase can't open, WebKit releases the bridge and
1067 continues on as if the IconDatabase is disabled.
1069 * Misc/WebIconDatabase.m:
1070 (-[WebIconDatabase init]): Release the bridge on failure to open
1071 * WebCoreSupport/WebIconDatabaseBridge.m:
1072 (+[WebIconDatabaseBridge sharedBridgeInstance]): Moved static shared instance out as a global
1073 (-[WebIconDatabaseBridge dealloc]): Clear pointer to the shared instance
1075 2006-08-30 Timothy Hatcher <timothy@apple.com>
1079 Simplify the header copies from WebCore and JavaScriptCore.
1080 Headers that need to be migrated from the other projects need
1081 to be added to MigrateHeaders.make.
1083 * MigrateHeaders.make: Added.
1084 * WebKit.xcodeproj/project.pbxproj:
1086 2006-08-30 Sam Weinig <sam.weinig@gmail.com>
1090 - patch for http://bugs.webkit.org/show_bug.cgi?id=10640
1091 Auto-generate 10 more Objective-C DOM HTML bindings
1093 * WebKit.xcodeproj/project.pbxproj:
1095 2006-08-30 Adele Peterson <adele@apple.com>
1099 WebKit part of fix for:
1100 http://bugs.webkit.org/show_bug.cgi?id=10576
1101 Disallow copy from new password fields
1103 * WebView/WebHTMLView.m:
1104 (-[WebHTMLView _canCopy]): Now also calls across the bridge to ask if it mayCopy.
1105 (-[WebHTMLView _canCut]): Calls _canCopy now.
1106 (-[NSArray validateUserInterfaceItem:]): Calls _canCut when validating the "Cut" menu item.
1107 This used to call _canDelete (which used to be the same as _canCut), but now _canCut also checks _canCopy.
1109 2006-08-30 Karl Adam <karladam@yahoo-inc.com>
1111 Reviewed by Eric and Tim H.
1113 Bug 10634: -webView:dragDestinationActionMaskForDraggingInfo: is ignored
1114 http://bugs.webkit.org/show_bug.cgi?id=10634
1116 Remove the check for canShowFile: from _web_bestURL: since
1117 it shouldn't be concerned with whether or not the view
1118 can show the URL, merely return the most appropriate URL.
1120 * Misc/WebNSPasteboardExtras.m:
1121 (-[NSPasteboard _web_bestURL]):
1122 * Misc/WebNSViewExtras.m:
1123 (-[NSView _web_dragOperationForDraggingInfo:]):
1125 2006-08-29 Brady Eidson <beidson@apple.com>
1127 Reviewed by Kevin Decker (Sarge)
1129 <rdar://problem/4678414> - New IconDB needs to delete icons when asked
1131 * Misc/WebIconDatabase.m:
1132 (-[WebIconDatabase removeAllIcons]): Call through to WebCore to remove icons, then send notification
1134 2006-08-29 Brady Eidson <beidson@apple.com>
1138 Added a truth value check for to setIconURL:forURL so WebKit can avoid sending a notification
1139 This is a win on the iBench
1141 * Misc/WebIconDatabase.m:
1142 (-[WebIconDatabase _setIconURL:forURL:]):
1144 2006-08-29 Brady Eidson <beidson@apple.com>
1146 Reviewed by Tim Hatchers rubber stamp
1148 Removed some accidentally left-in console spew during the conversion to the new DB
1150 * Misc/WebIconDatabase.m:
1151 (objectFromPathForKey): Nuked some NSLogs
1153 2006-08-29 Tim Omernick <timo@apple.com>
1155 Reviewed by Darin Adler.
1157 <rdar://problem/4688618> REGRESSION(10.4.7-9A241): JMol java applet fails in Safari not Firefox
1159 No layout test for now because Java doesn't work in DumpRenderTree.
1161 * Plugins/WebPluginDatabase.m:
1162 (-[WebPluginDatabase refresh]):
1163 Add each plug-in MIME type to registeredMIMETypes, even if we don't register a document view class for the
1164 MIME type. This fixes -[WebPluginDatabase isMIMETypeRegistered:] and thus fallback content for Java applets
1165 (we were always rendering fallback content, if any, for Java applets).
1167 2006-08-29 Sam Weinig <sam.weinig@gmail.com>
1171 - patch for http://bugs.webkit.org/show_bug.cgi?id=10628
1172 Auto-generate the remaining Objective-C DOM bindings
1174 Auto-generates DOMHTMLCollection, DOMHTMLElement, DOMHTMLFormElement,
1175 and DOMHTMLOptionsCollection.
1177 * WebKit.xcodeproj/project.pbxproj:
1179 2006-08-28 Brady Eidson <beidson@apple.com>
1183 Short of a few small snippets that still need to be pushed to WebCore, this
1184 is a final prune of WebIconDatabase. WebFileDatabase and WebLRUFileList are gone
1185 and the small remaining snippets of WebFileDatabase code that were still important
1186 are now in static functions in WebIconDatabase.m
1188 * Loader/WebIconLoader.m:
1189 (-[WebIconLoader didFinishLoading]): Removed the flag
1190 * Misc/WebFileDatabase.h: Removed.
1191 * Misc/WebFileDatabase.m: Removed.
1192 * Misc/WebIconDatabase.m:
1193 (+[WebIconDatabase sharedIconDatabase]):
1194 (-[WebIconDatabase init]):
1195 (-[WebIconDatabase iconForURL:withSize:cache:]):
1196 (-[WebIconDatabase iconURLForURL:]):
1197 (-[WebIconDatabase defaultIconWithSize:]):
1198 (-[WebIconDatabase retainIconForURL:]):
1199 (-[WebIconDatabase releaseIconForURL:]):
1200 (-[WebIconDatabase _isEnabled]):
1201 (-[WebIconDatabase _setIconData:forIconURL:]):
1202 (-[WebIconDatabase _setHaveNoIconForIconURL:]):
1203 (-[WebIconDatabase _setIconURL:forURL:]):
1204 (-[WebIconDatabase _hasEntryForIconURL:]):
1205 (-[WebIconDatabase _applicationWillTerminate:]):
1206 (-[WebIconDatabase _resetCachedWebPreferences:]):
1207 (uniqueFilePathForKey): Added from WebFileDatabase
1208 (objectFromPathForKey): Added from WebFileDatabase
1209 (iconDataFromPathForIconURL):
1210 (-[WebIconDatabase _convertToWebCoreFormat]): Make use of static functions and local variables
1211 instead of using WebFileDatabase and WebIconDatabase variables that are now obsolete
1212 * Misc/WebIconDatabasePrivate.h: Removed alot of obsoleted members
1213 * Misc/WebLRUFileList.h: Removed.
1214 * Misc/WebLRUFileList.m: Removed.
1215 * WebKit.xcodeproj/project.pbxproj: Deleted 4 files
1216 * WebKitPrefix.h: Removed ICONDEBUG
1218 2006-08-28 Tim Omernick <timo@apple.com>
1220 Reviewed by Darin Adler.
1222 * Plugins/WebBaseNetscapePluginView.m:
1223 (-[WebBaseNetscapePluginView createPluginScriptableObject]):
1224 Removed a bogus typecast.
1226 2006-08-28 Tim Omernick <timo@apple.com>
1228 Reviewed by John Sullivan.
1230 Part of <rdar://problem/4481553> NetscapeMoviePlugIn example code scripting doesn't work in Firefox (4319)
1231 <http://bugs.webkit.org/show_bug.cgi?id=4319>: NetscapeMoviePlugIn example code scripting doesn't work
1234 * Plugins/WebBaseNetscapePluginView.h:
1235 * Plugins/WebBaseNetscapePluginView.m:
1236 (-[WebBaseNetscapePluginView createPluginScriptableObject]):
1237 Renamed this method (see corresponding WebCore ChangeLog entry for an explanation).
1240 2006-08-28 Brady Eidson <beidson@apple.com>
1242 Reviewed by Tim Hatcher's rubberstamp
1244 Rolled out my last change (16070 - pruning WebFileDatabase code) as it caused a difficult-to-track down
1245 failure in layout tests on a release build.
1247 * Misc/WebFileDatabase.h:
1248 * Misc/WebFileDatabase.m:
1249 (+[WebFileDatabaseOp opWithCode:key:object:]):
1250 (-[WebFileDatabaseOp initWithCode:key:object:]):
1251 (-[WebFileDatabaseOp opcode]):
1252 (-[WebFileDatabaseOp key]):
1253 (-[WebFileDatabaseOp object]):
1254 (-[WebFileDatabaseOp perform:]):
1255 (-[WebFileDatabaseOp dealloc]):
1256 (SetThreadPriority):
1257 (-[WebFileDatabase _createLRUList:]):
1258 (-[WebFileDatabase _truncateToSizeLimit:]):
1259 (+[WebFileDatabase _syncLoop:]):
1261 (-[WebFileDatabase setTimer]):
1262 (-[WebFileDatabase setObject:forKey:]):
1263 (-[WebFileDatabase removeObjectForKey:]):
1264 (-[WebFileDatabase removeAllObjects]):
1265 (-[WebFileDatabase objectForKey:]):
1266 (-[WebFileDatabase performSetObject:forKey:]):
1267 (-[WebFileDatabase performRemoveObjectForKey:]):
1268 (-[WebFileDatabase open]):
1269 (-[WebFileDatabase close]):
1270 (-[WebFileDatabase lazySync:]):
1271 (-[WebFileDatabase sync]):
1272 (-[WebFileDatabase sizeLimit]):
1273 (-[WebFileDatabase count]):
1274 (-[WebFileDatabase usage]):
1275 (-[WebFileDatabase setSizeLimit:]):
1276 * Misc/WebIconDatabase.m:
1277 (-[WebIconDatabase _createFileDatabase]):
1278 (-[WebIconDatabase _loadIconDictionaries]):
1279 * WebKit.xcodeproj/project.pbxproj:
1281 2006-08-28 Darin Adler <darin@apple.com>
1283 Reviewed by Tim Hatcher.
1285 * WebInspector/webInspector/inspector.js: Add "resize: none" to the list of
1286 default values for CSS properties so it will be omitted from most displays
1289 2006-08-28 Brady Eidson <beidson@apple.com>
1293 Major prune of unnecessary WebFileDatabase code. In the end, what
1294 useful code that remains in WebFileDatabase will likely be moved directly
1295 into WebIconDatabase
1297 * Misc/WebFileDatabase.h:
1298 * Misc/WebFileDatabase.m:
1299 (-[WebFileDatabase initWithPath:]):
1300 (-[WebFileDatabase objectForKey:]):
1301 (-[WebFileDatabase open]):
1302 (-[WebFileDatabase close]):
1303 * Misc/WebIconDatabase.m:
1304 (-[WebIconDatabase _createFileDatabase]):
1305 (-[WebIconDatabase _loadIconDictionaries]):
1306 * Misc/WebLRUFileList.h: Removed.
1307 * Misc/WebLRUFileList.m: Removed.
1308 * WebKit.xcodeproj/project.pbxproj:
1310 2006-08-27 Sam Weinig <sam.weinig@gmail.com>
1314 - patch for http://bugs.webkit.org/show_bug.cgi?id=4624
1315 WebCore needs autogenerated Obj-C DOM bindings
1317 First round of auto-generated Objective C DOM bindings, starting
1320 * WebKit.xcodeproj/project.pbxproj:
1322 2006-08-25 Brady Eidson <beidson@apple.com>
1324 Reviewed by Tim Hatcher
1326 Fixed up some leaks on [WebIconDatabase init]
1328 * Misc/WebIconDatabase.m:
1329 (-[WebIconDatabase init]):
1331 2006-08-24 Timothy Hatcher <timothy@apple.com>
1335 * WebView/WebFrame.m:
1336 (-[WebFrame _updateBackground]): reworded the comment about scroll view and setDrawsBackground:YES
1337 * WebView/WebView.m:
1338 (-[WebViewPrivate dealloc]): release the background color
1340 2006-08-24 Timothy Hatcher <timothy@apple.com>
1344 WebView API to allow changing the background color that draws under transparent page backgrounds.
1346 * WebView/WebFrame.m:
1347 (-[WebFrame _makeDocumentView]):
1348 (-[WebFrame _updateBackground]):
1349 * WebView/WebFrameInternal.h:
1350 * WebView/WebFrameView.m:
1351 (-[WebFrameView drawRect:]):
1352 * WebView/WebView.m:
1353 (-[WebView setBackgroundColor:]):
1354 (-[WebView backgroundColor]):
1355 (-[WebView _commonInitializationWithFrameName:groupName:]):
1356 (-[WebView setDrawsBackground:]):
1357 * WebView/WebViewPrivate.h:
1359 2006-08-24 Timothy Hatcher <timothy@apple.com>
1363 Fix for Mail stationary. Selecting a stationary item would cause this exception.
1364 *** -[WebSubresourceLoader copyWithZone:]: selector not recognized
1365 Uncaught exception - *** -[WebSubresourceLoader copyWithZone:]: selector not recognized
1367 * Loader/WebFrameLoader.m:
1368 (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
1369 Use _webkit_setObject:forUncopiedKey: when addign the resource to pendingArchivedResources.
1371 2006-08-23 Maciej Stachowiak <mjs@apple.com>
1375 - fix assertion which I accidentally changed to one that sometimes fails
1376 http://bugs.webkit.org/show_bug.cgi?id=10531
1378 * Loader/WebDocumentLoadState.m:
1379 (-[WebDocumentLoadState dealloc]):
1380 * WebView/WebDataSource.m:
1381 (-[WebDataSourcePrivate dealloc]):
1382 (-[WebDataSource dealloc]):
1384 2006-08-23 Maciej Stachowiak <mjs@apple.com>
1388 - move WebFrame code that creates WebDataSources down to WebFrameLoader, in preparation
1389 for WebFrameLoader just holding on to WebDocumentLoadState
1391 * Loader/WebFrameLoader.h:
1392 * Loader/WebFrameLoader.m:
1393 (-[WebFrameLoader _loadRequest:archive:]):
1394 (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
1395 (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
1396 (-[WebFrameLoader reload]):
1397 * WebView/WebFrame.m:
1398 (-[WebFrame _loadItem:withLoadType:]):
1399 (-[WebFrame _continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
1400 (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
1401 (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
1402 (-[WebFrame _shouldReloadToHandleUnreachableURLFromRequest:]):
1403 (-[WebFrame loadRequest:]):
1404 (-[WebFrame loadArchive:]):
1405 (-[WebFrame reload]):
1406 * WebView/WebFrameInternal.h:
1407 * WebView/WebFramePrivate.h:
1408 * WebView/WebView.m:
1409 (-[WebView setCustomTextEncodingName:]):
1411 2006-08-23 Brady Eidson <beidson@apple.com>
1415 First pass at pruning unused WebIconDatabase code. Focus on removing methods that simply
1416 have no place in the new DB at all. A few renames and a few important FIXMEs result, but no
1417 functionality changes.
1419 * Loader/WebIconLoader.m:
1420 (-[WebIconLoader didFinishLoading]): Call to WebIconDatabase instead of directly to the bridge
1421 * Misc/WebIconDatabase.h:
1422 * Misc/WebIconDatabase.m:
1423 (-[WebIconDatabase init]):
1424 (-[WebIconDatabase iconForURL:withSize:cache:]):
1425 (-[WebIconDatabase iconURLForURL:]):
1426 (-[WebIconDatabase defaultIconWithSize:]):
1427 (-[WebIconDatabase retainIconForURL:]):
1428 (-[WebIconDatabase releaseIconForURL:]):
1429 (-[WebIconDatabase removeAllIcons]):
1430 (-[WebIconDatabase _setIconData:forIconURL:]):
1431 (-[WebIconDatabase _setHaveNoIconForIconURL:]):
1432 (-[WebIconDatabase _setIconURL:forURL:]):
1433 (-[WebIconDatabase _hasEntryForIconURL:]):
1434 (-[WebIconDatabase _applicationWillTerminate:]):
1435 (-[WebIconDatabase _resetCachedWebPreferences:]):
1436 * Misc/WebIconDatabasePrivate.h: Changed setIcon: to setIconData:
1438 2006-08-23 Maciej Stachowiak <mjs@apple.com>
1442 - started factoring most of the guts of WebDataSource into a new class
1444 WebDocumentLoadState is decoupled from the rest of WebKit and will
1445 be moved down to WebCore. I only moved one of the data fields of
1446 WebDataSource for now.
1448 * Loader/WebDocumentLoadState.h: Added.
1449 * Loader/WebDocumentLoadState.m: Added.
1450 (-[WebDocumentLoadState initWithRequest:]): New class.
1451 (-[WebDocumentLoadState dealloc]):
1452 (-[WebDocumentLoadState setFrameLoader:]):
1453 (-[WebDocumentLoadState setMainResourceData:]):
1454 (-[WebDocumentLoadState mainResourceData]):
1455 * Loader/WebFrameLoader.m:
1456 (-[WebFrameLoader _setDataSource:]): Remove redundant _setWebFrame: call,
1457 it would have been called already by this point.
1458 (-[WebFrameLoader _setProvisionalDataSource:]): ditto.
1459 * WebKit.xcodeproj/project.pbxproj:
1460 * WebView/WebDataSource.m:
1461 (-[WebDataSourcePrivate dealloc]):
1462 (-[WebDataSource _setWebFrame:]):
1463 (-[WebDataSource _setPrimaryLoadComplete:]):
1464 (-[WebDataSource initWithRequest:]):
1465 (-[WebDataSource data]):
1467 2006-08-23 Maciej Stachowiak <mjs@apple.com>
1471 - refactoring of WebDataSource in preparation for moving a bunch of it to a new class
1473 - minimize WebDataSourceInternal.h to be only methods called from outside WebDataSource
1474 - reduce Private category implementation to be only the SPI methods
1475 - make new Internal and FileInternal categories which contain the
1476 remainder (depending on whether they are called from outside of
1479 * WebView/WebDataSource.m:
1480 (-[WebDataSource _setMainDocumentError:]):
1481 (addTypesFromClass):
1482 (+[WebDataSource _representationClassForMIMEType:]):
1483 (-[WebDataSource _commitIfReady]):
1484 (-[WebDataSource _commitLoadWithData:]):
1485 (-[WebDataSource _doesProgressiveLoadWithMIMEType:]):
1486 (-[WebDataSource _addResponse:]):
1487 (-[WebDataSource _revertToProvisionalState]):
1488 (-[WebDataSource _mainDocumentError]):
1489 (-[WebDataSource _addSubframeArchives:]):
1490 (-[WebDataSource _fileWrapperForURL:]):
1491 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
1492 (-[WebDataSource _decidePolicyForMIMEType:decisionListener:]):
1493 (-[WebDataSource _finishedLoading]):
1494 (-[WebDataSource _setResponse:]):
1495 (-[WebDataSource _setRequest:]):
1496 (-[WebDataSource _setupForReplaceByMIMEType:]):
1497 (-[WebDataSource _receivedMainResourceError:complete:]):
1498 (-[WebDataSource _mainReceivedError:complete:]):
1499 (-[WebDataSource _defersCallbacks]):
1500 (-[WebDataSource _downloadWithLoadingConnection:request:response:proxy:]):
1501 (-[WebDataSource _didFailLoadingWithError:forResource:]):
1502 (-[WebDataSource _didFinishLoadingForResource:]):
1503 (-[WebDataSource _didReceiveData:contentLength:forResource:]):
1504 (-[WebDataSource _didReceiveResponse:forResource:]):
1505 (-[WebDataSource _didCancelAuthenticationChallenge:forResource:]):
1506 (-[WebDataSource _didReceiveAuthenticationChallenge:forResource:]):
1507 (-[WebDataSource _willSendRequest:forResource:redirectResponse:]):
1508 (-[WebDataSource _identifierForInitialRequest:]):
1509 (-[WebDataSource _archivedSubresourceForURL:]):
1510 (-[WebDataSource _startLoading]):
1511 (-[WebDataSource _stopRecordingResponses]):
1512 (-[WebDataSource _loadingStartedTime]):
1513 (-[WebDataSource _replaceSelectionWithArchive:selectReplacement:]):
1514 (-[WebDataSource _documentFragmentWithArchive:]):
1515 (-[WebDataSource _documentFragmentWithImageResource:]):
1516 (-[WebDataSource _imageElementWithImageResource:]):
1517 (-[WebDataSource _title]):
1518 (-[WebDataSource _isStopping]):
1519 (-[WebDataSource _setWebFrame:]):
1520 (-[WebDataSource _URL]):
1521 (-[WebDataSource _loadFromPageCache:]):
1522 (-[WebDataSource _popSubframeArchiveWithName:]):
1523 (-[WebDataSource _setIsClientRedirect:]):
1524 (-[WebDataSource _setURL:]):
1525 (-[WebDataSource _setLastCheckedRequest:]):
1526 (-[WebDataSource _defersCallbacksChanged]):
1527 (-[WebDataSource _lastCheckedRequest]):
1528 (-[WebDataSource _stopLoading]):
1529 (-[WebDataSource _bridge]):
1530 (-[WebDataSource _webView]):
1531 (-[WebDataSource _triggeringAction]):
1532 (-[WebDataSource _setTriggeringAction:]):
1533 (-[WebDataSource __adoptRequest:]):
1534 (-[WebDataSource _isDocumentHTML]):
1535 (-[WebDataSource _stopLoadingWithError:]):
1536 (-[WebDataSource _setPrimaryLoadComplete:]):
1537 (-[WebDataSource _responses]):
1538 (-[WebDataSource _makeRepresentation]):
1539 (-[WebDataSource _isClientRedirect]):
1540 (-[WebDataSource _originalRequest]):
1541 (-[WebDataSource _URLForHistory]):
1542 (-[WebDataSource _addToUnarchiveState:]):
1543 (-[WebDataSource _setOverrideEncoding:]):
1544 (-[WebDataSource _setIconURL:]):
1545 (-[WebDataSource _setIconURL:withType:]):
1546 (-[WebDataSource _overrideEncoding]):
1547 (-[WebDataSource _setTitle:]):
1548 * WebView/WebDataSourceInternal.h:
1550 2006-08-23 Brady Eidson <beidson@apple.com>
1552 Reviewed by John Sullivan
1555 Flip the switch to the new Icon Database
1556 Massive code pruning is coming up
1558 * WebKitPrefix.h: Flipped the switch
1560 2006-08-23 Brady Eidson <beidson@apple.com>
1563 Since I just pushed the default URL icon from WebKit to WebCore, but
1564 WebKit was still using its version of the default icon, this patch makes it
1565 use the WebCore version
1567 * Misc/WebIconDatabase.m:
1568 (-[WebIconDatabase defaultIconWithSize:]):
1570 2006-08-22 Maciej Stachowiak <mjs@apple.com>
1574 - remove "loading" flag from WebDataSource and code that manages it; it is redundat.
1576 * Loader/WebFrameLoader.m:
1577 (-[WebFrameLoader addPlugInStreamLoader:]):
1578 (-[WebFrameLoader removePlugInStreamLoader:]):
1579 (-[WebFrameLoader addSubresourceLoader:]):
1580 (-[WebFrameLoader removeSubresourceLoader:]):
1581 * WebView/WebDataSource.m:
1582 (-[WebDataSourcePrivate dealloc]):
1583 (-[WebDataSource _setPrimaryLoadComplete:]):
1584 (-[WebDataSource _stopLoading]):
1585 (-[WebDataSource _prepareForLoadStart]):
1586 (-[WebDataSource _startLoading]):
1587 (-[WebDataSource isLoading]):
1588 * WebView/WebDataSourceInternal.h:
1590 2006-08-22 Maciej Stachowiak <mjs@apple.com>
1594 <rdar://problem/4683948> REGRESSION: Assertion failure in [FrameProgressEntry addChild:forDataSource:] (fandango.com)
1596 * Loader/WebFrameLoader.m:
1597 (-[WebFrameLoader addSubresourceLoader:]): Add a WebKit-level assertion that should fire when this bad
1599 * Loader/WebSubresourceLoader.m:
1600 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]): Prevent
1601 the situation from occuring.
1603 2006-08-22 Maciej Stachowiak <mjs@apple.com>
1607 - pull more WebDataSource code into WebFrameLoader
1608 - make WebMainResourceLoader not depend on WebKit or on SPI
1610 * Loader/WebFrameLoader.h:
1611 * Loader/WebFrameLoader.m:
1612 (-[WebFrameLoader _downloadWithLoadingConnection:request:response:proxy:]):
1613 (-[WebFrameLoader _updateIconDatabaseWithURL:]):
1614 (-[WebFrameLoader _notifyIconChanged:]):
1615 (-[WebFrameLoader _iconLoaderReceivedPageIcon:]):
1616 (-[WebFrameLoader _checkNavigationPolicyForRequest:andCall:withSelector:]):
1617 (-[WebFrameLoader _checkContentPolicyForMIMEType:andCall:withSelector:]):
1618 (-[WebFrameLoader cancelContentPolicy]):
1619 * Loader/WebIconLoader.m:
1620 (-[WebIconLoader didFinishLoading]):
1621 * Loader/WebLoader.m:
1622 (-[NSURLProtocol loadWithRequest:]):
1623 (-[NSURLProtocol setDefersCallbacks:]):
1624 * Loader/WebMainResourceLoader.h:
1625 * Loader/WebMainResourceLoader.m:
1626 (-[WebMainResourceLoader initWithFrameLoader:]):
1627 (-[WebMainResourceLoader dealloc]):
1628 (-[WebMainResourceLoader cancelWithError:]):
1629 (-[WebMainResourceLoader continueAfterNavigationPolicy:formState:]):
1630 (-[WebMainResourceLoader willSendRequest:redirectResponse:]):
1631 (-[WebMainResourceLoader continueAfterContentPolicy:]):
1632 (-[WebMainResourceLoader checkContentPolicy]):
1633 (-[WebMainResourceLoader didReceiveResponse:]):
1634 * Plugins/WebPluginContainerCheck.m:
1635 * WebCoreSupport/WebSystemInterface.m:
1636 (InitWebCoreSystemInterface):
1637 * WebView/WebDataSource.m:
1638 (-[WebDataSource _loadIcon]):
1639 (-[WebDataSource _cancelledError]):
1640 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
1641 (+[WebDataSource _representationClassForMIMEType:]):
1642 (-[WebDataSource _commitLoadWithData:]):
1643 (-[WebDataSource _isDocumentHTML]):
1644 * WebView/WebDataSourceInternal.h:
1645 * WebView/WebFramePrivate.h:
1646 * WebView/WebPolicyDelegate.m:
1647 * WebView/WebPolicyDelegatePrivate.h:
1649 2006-08-21 Maciej Stachowiak <mjs@apple.com>
1653 - move more code from WebDataSource to WebFrameLoader
1655 Also marked a few more methods in WebDataSource as likely MOVABLE in a future round, since they do not
1656 use any of WebDataSource's private data.
1658 * Loader/WebFrameLoader.h:
1659 * Loader/WebFrameLoader.m:
1660 (-[WebFrameLoader addPlugInStreamLoader:]):
1661 (-[WebFrameLoader removePlugInStreamLoader:]):
1662 (-[WebFrameLoader addSubresourceLoader:]):
1663 (-[WebFrameLoader removeSubresourceLoader:]):
1664 (-[WebFrameLoader _didReceiveAuthenticationChallenge:forResource:]):
1665 (-[WebFrameLoader _didCancelAuthenticationChallenge:forResource:]):
1666 (-[WebFrameLoader _didReceiveResponse:forResource:]):
1667 (-[WebFrameLoader _didReceiveData:contentLength:forResource:]):
1668 (-[WebFrameLoader _didFinishLoadingForResource:]):
1669 (-[WebFrameLoader _didFailLoadingWithError:forResource:]):
1670 (-[WebFrameLoader _privateBrowsingEnabled]):
1671 (-[WebFrameLoader _finishedLoadingResource]):
1672 (-[WebFrameLoader _receivedError:]):
1673 (-[WebFrameLoader _finishedLoading]):
1674 * Loader/WebMainResourceLoader.m:
1675 (-[WebMainResourceLoader didReceiveData:lengthReceived:allAtOnce:]):
1676 (-[WebMainResourceLoader didFinishLoading]):
1677 * Loader/WebNetscapePlugInStreamLoader.m:
1678 (-[WebNetscapePlugInStreamLoader didFinishLoading]):
1679 (-[WebNetscapePlugInStreamLoader didFailWithError:]):
1680 (-[WebNetscapePlugInStreamLoader cancelWithError:]):
1681 * Loader/WebSubresourceLoader.m:
1682 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
1683 (-[WebSubresourceLoader signalFinish]):
1684 (-[WebSubresourceLoader didFailWithError:]):
1685 (-[WebSubresourceLoader cancel]):
1686 * Plugins/WebNetscapePluginStream.m:
1687 (-[WebNetscapePluginStream start]):
1688 * WebView/WebDataSource.m:
1689 (-[WebDataSource _replaceSelectionWithArchive:selectReplacement:]):
1690 (-[WebDataSource _updateIconDatabaseWithURL:]):
1691 (-[WebDataSource _loadIcon]):
1692 (-[WebDataSource _setPrimaryLoadComplete:]):
1693 (-[WebDataSource _cancelledError]):
1694 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
1695 (+[WebDataSource _representationClassForMIMEType:]):
1696 (-[WebDataSource _commitLoadWithData:]):
1697 (-[WebDataSource _receivedMainResourceError:complete:]):
1698 (-[WebDataSource _iconLoaderReceivedPageIcon:]):
1699 (-[WebDataSource _isDocumentHTML]):
1700 * WebView/WebDataSourceInternal.h:
1702 2006-08-21 Brady Eidson <beidson@apple.com>
1706 Quick ICONDEBUG flag fix
1708 * Misc/WebIconDatabase.m:
1709 (-[WebIconDatabase _applicationWillTerminate:]):
1711 2006-08-21 Brady Eidson <beidson@apple.com>
1715 -Renamed an internal only method for clarity
1716 -Tweaked WebDataSource for notification purposes with the new expiring icons
1717 -Fixed a bug with the ICONDEBUG flag
1719 * Misc/WebIconDatabase.m:
1720 (-[WebIconDatabase init]):
1721 (-[WebIconDatabase iconForURL:withSize:cache:]): #ifdef bug fixed
1722 (-[WebIconDatabase _hasEntryForIconURL:]): Renamed for clarity
1723 * Misc/WebIconDatabasePrivate.h:
1724 * WebView/WebDataSource.m:
1725 (-[WebDataSource _updateIconDatabaseWithURL:]):
1726 (-[WebDataSource _notifyIconChanged:]):
1727 (-[WebDataSource _loadIcon]):
1728 (-[WebDataSource _iconLoaderReceivedPageIcon:]):
1730 2006-08-17 Maciej Stachowiak <mjs@apple.com>
1734 - pull a bit of WebDataSource code into WebFrameLoader
1736 * Loader/WebFrameLoader.m:
1737 (-[WebFrameLoader _receivedError:]):
1738 (-[WebFrameLoader webFrame]):
1739 (-[WebFrameLoader _handleFallbackContent]):
1740 (+[WebFrameLoader _canShowMIMEType:]):
1741 (+[WebFrameLoader _representationExistsForURLScheme:]):
1742 (+[WebFrameLoader _generatedMIMETypeForURLScheme:]):
1743 * WebView/WebDataSource.m:
1744 * WebView/WebDataSourceInternal.h:
1746 2006-08-17 Timothy Hatcher <timothy@apple.com>
1748 Reviewed by Kevin Decker.
1750 <rdar://problem/4606857> WebKit: WebPreferencesChangedNotification not exported in 64-bit
1754 2006-08-17 Timothy Hatcher <timothy@apple.com>
1756 Reviewed by Kevin Decker.
1758 <rdar://problem/4633896> -[WebView close] should clear all delegates and call setHostWindow:nil
1759 <rdar://problem/4649759> Crash when selecting View Source menu using Chinese (-[WebView _close])
1761 Check to make sure _private is not null. A WebView can be dealloced before _private is setup.
1762 Set the _private->closed flag at the beginning of _close to prevent reentry.
1763 Set the host window and all the delegates to nil in _close.
1765 * WebView/WebView.m:
1766 (-[WebView _close]):
1768 2006-08-16 Brady Eidson <beidson@apple.com>
1772 * Misc/WebIconDatabase.m: Pruned unused method
1773 * Misc/WebIconDatabasePrivate.h: Ditto
1776 2006-08-15 Maciej Stachowiak <mjs@apple.com>
1778 Reviewed by Adele (preliminary version) and later by Kevin.
1780 - remove most WebKit dependencies from WebMainResourceLoader.
1782 * Loader/WebFrameLoader.h:
1783 * Loader/WebFrameLoader.m:
1784 (-[WebFrameLoader cannotShowMIMETypeForURL:]):
1785 (-[WebFrameLoader interruptForPolicyChangeErrorWithRequest:]):
1786 (-[WebFrameLoader isHostedByObjectElement]):
1787 (-[WebFrameLoader isLoadingMainFrame]):
1788 (+[WebFrameLoader _canShowMIMEType:]):
1789 (+[WebFrameLoader _representationExistsForURLScheme:]):
1790 (+[WebFrameLoader _generatedMIMETypeForURLScheme:]):
1791 * Loader/WebMainResourceLoader.h:
1792 * Loader/WebMainResourceLoader.m:
1793 (-[WebMainResourceLoader interruptForPolicyChangeError]):
1794 (-[WebMainResourceLoader willSendRequest:redirectResponse:]):
1795 (isCaseInsensitiveEqual):
1796 (shouldLoadAsEmptyDocument):
1797 (-[WebMainResourceLoader continueAfterContentPolicy:response:]):
1798 (-[WebMainResourceLoader didReceiveResponse:]):
1799 (-[WebMainResourceLoader didReceiveData:lengthReceived:allAtOnce:]):
1800 (-[WebMainResourceLoader didFinishLoading]):
1801 (-[WebMainResourceLoader loadWithRequestNow:]):
1802 (-[WebMainResourceLoader loadWithRequest:]):
1804 2006-08-15 Tim Omernick <timo@apple.com>
1806 Reviewed by Kevin Decker.
1808 * Plugins/WebNetscapePluginPackage.m:
1809 (-[WebNetscapePluginPackage _unloadWithShutdown:]):
1810 Fixed a subtle problem with the 64-bit debug build -- as written, this would LOG() on 64-bit and do nothing on
1812 * Plugins/WebPluginDatabase.m:
1813 (-[WebPluginDatabase _scanForNewPlugins]):
1814 Use +[NSMutableSet set] here.
1816 2006-08-15 Tim Omernick <timo@apple.com>
1818 Reviewed by Darin Adler.
1820 <http://bugs.webkit.org/show_bug.cgi?id=8980>
1821 ASSERTION FAILED: !isLoaded (WebKit/WebKit/Plugins/WebBasePluginPackage.m:228 -[WebBasePluginPackage dealloc])
1823 <rdar://problem/4526052> intermittent assertion failure in -[WebBasePluginPackage dealloc] running layout tests (8980)
1825 * Plugins/WebPluginDatabase.h:
1826 * Plugins/WebPluginDatabase.m:
1827 (+[WebPluginDatabase installedPlugins]):
1828 Observe NSApplicationWillTerminateNotification so we can unload plug-ins on quit.
1829 (-[WebPluginDatabase plugins]):
1830 'plugins' is now a dictionary.
1831 (-[WebPluginDatabase close]):
1832 Call new -_removePlugin: method.
1833 (-[WebPluginDatabase refresh]):
1834 Moved parts of this method out into other methods: -_addPlugin:, -_removePlugin:, and -_scanForNewPlugins.
1835 (-[WebPluginDatabase _plugInPaths]):
1836 No changes; just moved in file.
1837 (-[WebPluginDatabase _addPlugin:]):
1838 New method. Refactored from -refresh. Adds a plug-in to the database.
1839 (-[WebPluginDatabase _removePlugin:]):
1840 New method. Refactored from -refresh. Remove a plug-in from the database.
1841 (-[WebPluginDatabase _scanForNewPlugins]):
1842 New method. Refactored from -refresh. Returns the list of plug-in packages on disk.
1843 (-[WebPluginDatabase _applicationWillTerminate]):
1844 New method. Called when the application terminates. Closes the plug-in database so that all plug-ins are
1845 removed from the DB (and unloaded if necessary).
1847 * Plugins/WebBasePluginPackage.h:
1848 * Plugins/WebBasePluginPackage.m:
1849 (-[WebBasePluginPackage initWithPath:]):
1850 Try to create the NSBundle first, so if the file is not a valid bundle we bail out early. This
1851 avoids some stat()s and allocations during the plug-in refresh process.
1852 (-[WebBasePluginPackage isLoaded]):
1854 (-[WebBasePluginPackage load]):
1855 Base class for plug-in packages now always loads "successfully".
1856 (-[WebBasePluginPackage dealloc]):
1857 Removed this assertion. The base plug-in package class has no concept of
1859 (-[WebBasePluginPackage finalize]):
1861 (-[WebBasePluginPackage wasRemovedFromPluginDatabase:]):
1862 Moved code to unload plug-in package to WebNetscapePluginPackage. Not all plug-in
1863 packages can be "unloaded".
1865 * Plugins/WebNetscapePluginPackage.h:
1866 * Plugins/WebNetscapePluginPackage.m:
1867 (-[WebNetscapePluginPackage _unloadWithShutdown:]):
1868 Combined old -unload and -unloadWithoutShutdown methods into this new one.
1869 (-[WebNetscapePluginPackage initWithPath:]):
1870 Call new unload method.
1871 (-[WebNetscapePluginPackage load]):
1873 (-[WebNetscapePluginPackage wasRemovedFromPluginDatabase:]):
1875 (-[WebNetscapePluginPackage open]):
1876 New method. Called when a plug-in instance starts running.
1877 (-[WebNetscapePluginPackage close]):
1878 New method. Called when a plug-in instance stops running. When all plug-in instances
1879 close the plug-in package, and the plug-in package is removed from the database, the plug-in
1882 * Plugins/WebPluginPackage.m:
1883 (-[WebPluginPackage initWithPath:]):
1884 (-[WebPluginPackage load]):
1885 Made this a bit more efficient by checking if the bundle is already loaded.
1886 (-[WebBasePluginPackage unload]):
1888 (-[WebBasePluginPackage isLoaded]):
1891 * Plugins/WebBaseNetscapePluginView.m:
1892 (-[WebBaseNetscapePluginView start]):
1893 Open the plug-in package so it remains loaded while this instance uses it.
1894 (-[WebBaseNetscapePluginView stop]):
1895 Close the plug-in package when the plug-in instance is stopped.
1897 * Plugins/WebBaseNetscapePluginStream.m:
1898 (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:]):
1899 This check is not necessary. Netscape plug-in packages are never unloaded until all their instances have
1900 been stopped, and a Netscape plug-in instance will stop its streams when it is stopped.
1901 (-[WebBaseNetscapePluginStream _destroyStream]):
1903 (-[WebBaseNetscapePluginStream finishedLoadingWithData:]):
1905 (-[WebBaseNetscapePluginStream _deliverData]):
1908 2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
1912 Build fix: DWARF and -gfull are incompatible with symbol separation.
1914 * WebKit.xcodeproj/project.pbxproj:
1916 2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
1920 http://bugs.webkit.org/show_bug.cgi?id=10394
1921 Bug 10394: WebKit Release and Production configurations should enable dead code stripping
1923 * WebKit.xcodeproj/project.pbxproj:
1925 2006-08-15 Maciej Stachowiak <mjs@apple.com>
1929 - remove WebKit dependencies from WebPlugInStreamLoader via a protocol veil of ignorance
1931 * Loader/WebNetscapePlugInStreamLoader.h:
1932 * Loader/WebNetscapePlugInStreamLoader.m:
1933 (-[WebNetscapePlugInStreamLoader initWithDelegate:frameLoader:]):
1934 * Loader/WebPlugInStreamLoaderDelegate.h: Added.
1935 * Plugins/WebBaseNetscapePluginStream.h:
1936 * Plugins/WebNetscapePluginStream.m:
1937 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
1938 * WebKit.xcodeproj/project.pbxproj:
1940 2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
1944 http://bugs.webkit.org/show_bug.cgi?id=10384
1945 Bug 10384: Switch to DWARF for Release configuration
1947 * WebKit.xcodeproj/project.pbxproj:
1949 2006-08-15 Graham Dennis <graham.dennis@gmail.com>
1953 - patch for http://bugs.webkit.org/show_bug.cgi?id=10314
1954 WebUnarchivingState archivedResourceForURL: doesn't work
1956 * WebView/WebUnarchivingState.m:
1957 (-[WebUnarchivingState archivedResourceForURL:]):
1958 Fixed to get objects from the archived resources dictionary using
1959 the URL as a string instead of as the URL itself (as this is how
1960 the data is put into the dictionary).
1962 2006-08-14 Maciej Stachowiak <mjs@apple.com>
1966 - remove many (but not all) WebKit dependencies from WebNetscapePlugInStreamLoader (it still
1967 depends on WebNetscapePluginStream).
1969 * Loader/WebFrameLoader.h:
1970 * Loader/WebFrameLoader.m:
1971 (-[WebFrameLoader fileDoesNotExistErrorWithResponse:]):
1972 * Loader/WebNetscapePlugInStreamLoader.h:
1973 * Loader/WebNetscapePlugInStreamLoader.m:
1974 (-[WebNetscapePlugInStreamLoader initWithStream:frameLoader:]):
1975 (-[WebNetscapePlugInStreamLoader releaseResources]):
1976 (-[WebNetscapePlugInStreamLoader didReceiveResponse:]):
1977 * Plugins/WebNetscapePluginStream.m:
1978 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
1980 2006-08-14 Maciej Stachowiak <mjs@apple.com>
1982 Reviewed by Tim Omernick.
1984 - fixed REGRESSION: crash when leaving youtube page while movie is still loading
1985 http://bugs.webkit.org/show_bug.cgi?id=10398
1987 * Loader/WebNetscapePlugInStreamLoader.m:
1988 (-[WebNetscapePlugInStreamLoader initWithStream:view:]): Set the frame loader for this stream.
1989 (-[WebNetscapePlugInStreamLoader cancelWithError:]): Make sure to destroy the stream as well;
1990 otherwise, when we try to clean up later, we won't have the right context.
1992 2006-08-14 David Hyatt <hyatt@apple.com>
1994 Fix for Radar bug 4478840, Safari should not reduce null events sent to
1995 plug-ins in windows that are inactive but visible.
1997 With this fix you can view videos in visible background windows on YouTube
1998 (for example) and not see any drop in frame rate.
2002 * Plugins/WebBaseNetscapePluginView.m:
2003 (-[WebBaseNetscapePluginView restartNullEvents]):
2005 2006-08-14 Maciej Stachowiak <mjs@apple.com>
2009 - removed WebKit-level dependencies from WebFormDataStream. Use WebCore version of system interface
2011 * Loader/WebFormDataStream.m:
2013 (formEventCallback):
2015 * WebCoreSupport/WebSystemInterface.m:
2016 (InitWebCoreSystemInterface):
2018 2006-08-14 Maciej Stachowiak <mjs@apple.com>
2020 Rubber stamped by Brady.
2022 - move WebFormDataStream from WebView to Loader
2024 * WebKit.xcodeproj/project.pbxproj:
2025 * WebView/WebFormDataStream.h: Removed.
2026 * WebView/WebFormDataStream.m: Removed.
2028 2006-08-13 Maciej Stachowiak <mjs@apple.com>
2032 - remove WebKit dependencies from WebSubresourceLoader, except WebFormDataStream
2034 (WebFormDataStream will be moved into the Loader directory soon)
2036 * Loader/WebFrameLoader.h:
2037 * Loader/WebFrameLoader.m:
2038 (-[WebFrameLoader _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
2039 * Loader/WebSubresourceLoader.m:
2040 (isConditionalRequest):
2041 (hasCaseInsensitivePrefix):
2044 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
2046 2006-08-13 Brady Eidson <beidson@apple.com>
2050 Relocated the WebIconLoaders
2052 * Misc/WebIconLoader.h: Moved to Loader/
2053 * Misc/WebIconLoader.m: Moved to Loader/
2054 * WebKit.xcodeproj/project.pbxproj:
2056 2006-08-13 Maciej Stachowiak <mjs@apple.com>
2060 - removed non-Loader WebKit dependencies from WebDataProtocol for
2061 real (whoops) and fix some typos.
2063 * Loader/WebDataProtocol.m:
2064 (isCaseInsensitiveEqual): Added.
2065 (+[WebDataProtocol _webIsDataProtocolURL:]): Avoid WebKit calls.
2066 (-[WebDataProtocol startLoading]): ditto
2067 * Loader/WebFrameLoader.m:
2068 (isCaseInsensitiveEqual): Fixed spelling from isCaseSensitiveEqual.
2069 (-[WebFrameLoader _canUseResourceForRequest:]): Use proper call.
2071 2006-08-13 Brady Eidson <beidson@apple.com>
2075 The way of detecting a failed icon load before was to try and construct
2076 an image from the icon and if that image construction failed, mark the icon
2078 A much more efficient way is to check for an error response. We'll still
2079 check for invalid image data, but most servers will correctly return an HTTP
2080 error on a missing icon.
2082 * Misc/WebIconLoader.m:
2083 (-[WebIconLoader didFinishLoading]): Added check for http error response
2085 2006-08-13 Maciej Stachowiak <mjs@apple.com>
2089 - remove all non-Loader dependencies from WebLoader
2091 As part of this I moved WebDataProtocol to the loader directory
2092 and removed dependencies on the rest of WebKit from that too.
2094 * Loader/WebFrameLoader.h:
2095 * Loader/WebFrameLoader.m:
2096 (-[WebFrameLoader setDefersCallbacks:]):
2097 (-[WebFrameLoader stopLoading]):
2098 (-[WebFrameLoader cancelledErrorWithRequest:]):
2099 (-[WebFrameLoader clearArchivedResources]):
2100 (-[WebFrameLoader deliverArchivedResources]):
2101 (-[WebFrameLoader deliverArchivedResourcesAfterDelay]):
2102 (isCaseSensitiveEqual):
2103 (-[WebFrameLoader _canUseResourceForRequest:]):
2104 (-[WebFrameLoader _canUseResourceWithResponse:]):
2105 (-[WebFrameLoader pendingArchivedResources]):
2106 (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
2107 (-[WebFrameLoader archiveLoadPendingForLoader:]):
2108 (-[WebFrameLoader cancelPendingArchiveLoadForLoader:]):
2109 * Loader/WebLoader.h:
2110 * Loader/WebLoader.m:
2111 (-[NSURLProtocol releaseResources]):
2112 (-[NSURLProtocol loadWithRequest:]):
2113 (-[NSURLProtocol setDefersCallbacks:]):
2114 (-[NSURLProtocol addData:allAtOnce:]):
2115 (-[NSURLProtocol resourceData]):
2116 (-[NSURLProtocol didReceiveData:lengthReceived:allAtOnce:]):
2117 (-[NSURLProtocol connection:didReceiveData:lengthReceived:]):
2118 (-[NSURLProtocol cancelWithError:]):
2119 (-[NSURLProtocol cancelledError]):
2120 * Loader/WebMainResourceLoader.m:
2121 (-[WebMainResourceLoader addData:allAtOnce:]):
2122 (-[WebMainResourceLoader didReceiveData:lengthReceived:allAtOnce:]):
2123 * Loader/WebNetscapePlugInStreamLoader.m:
2124 (-[WebNetscapePlugInStreamLoader didReceiveData:lengthReceived:allAtOnce:]):
2125 * Loader/WebSubresourceLoader.m:
2126 (-[WebSubresourceLoader didReceiveData:lengthReceived:allAtOnce:]):
2127 * WebKit.xcodeproj/project.pbxproj:
2128 * WebView/WebDataProtocol.h: Removed.
2129 * WebView/WebDataProtocol.m: Removed.
2131 2006-08-11 Tim Omernick <timo@apple.com>
2135 <http://bugs.webkit.org/show_bug.cgi?id=10111> - Menu flickers over Flash content
2136 <rdar://problem/3052546> Plugins don't work with z-index (overlapping elements, etc.)
2138 * Plugins/WebBaseNetscapePluginView.m:
2139 (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
2140 Don't just clip to the dirty region for "transparent" plug-ins -- do it for all plug-ins. This is a
2141 generally useful thing to do, as it prevents the plug-in from drawing over parts of the window that
2142 have already been drawn and are not expected to be redrawn in the same update.
2144 2006-08-11 Brady Eidson <beidson@apple.com>
2146 Reviewed by John, Timo, Adele, and Darin
2148 In addition to a few style/good-practice cleanups, this patch will convert the old icon database
2149 format to the WebCore format if the WebCore db is empty (implying this conversion has yet to take
2150 place). After the conversion, it will delete all traces of the old format to free the unneeded space
2152 * Misc/WebIconDatabase.m:
2153 (-[WebIconDatabase init]):
2154 (-[WebIconDatabase _setIconURL:forURL:]): Changed the bridge's name for this method to be more clear
2155 (-[WebIconDatabase _createFileDatabase]):
2156 (-[WebIconDatabase _iconDataForIconURL:]): This grabs the raw data for use in the conversion function
2157 (-[WebIconDatabase _convertToWebCoreFormat]): This does the actual conversion
2159 2006-08-11 Tim Omernick <timo@apple.com>
2161 Reviewed by John Sullivan.
2163 Needed for <rdar://problem/4678070>.
2165 * Plugins/WebBaseNetscapePluginView.m:
2166 (-[WebBaseNetscapePluginView sendEvent:]):
2167 Changed an assertion to an early return. It should be possible to send events, especially updateEvt (for image capturing
2168 purposes), to off-screen plug-ins. It just doesn't work right now. See <rdar://problem/4318269>.
2170 2006-08-11 John Sullivan <sullivan@apple.com>
2174 - fixed <rdar://problem/4522894> Would be nice if Safari shrank pages a little if necessary
2175 to avoid printing an almost-empty page
2177 * WebView/WebHTMLView.m:
2178 (-[NSArray knowsPageRange:]):
2179 If the last page has a short-enough orphan (< 1/10 of the page height is the number I pulled
2180 out of ... the air), then we adjust the scale factor slightly and check whether this reduces
2181 the page count and thus eliminates the orphan.
2183 2006-08-07 Brady Eidson <beidson@apple.com>
2185 Reviewed by Anders and John
2187 * Misc/WebIconDatabase.m:
2188 (-[WebIconDatabase init]):
2189 (-[WebIconDatabase isIconExpiredForIconURL:]): Get if an icon expired
2190 (-[WebIconDatabase isIconExpiredForPageURL:]): Ditto
2191 (-[WebIconDatabase _setIconURL:forURL:]):
2192 (-[WebIconDatabase _sendNotificationForURL:]): Moved to WebKitPendingPublic for use outside of WebIconDatabase
2193 (-[WebIconDatabase loadIconFromURL:]): Allow a load outside the context of a page load
2194 * Misc/WebIconDatabasePrivate.h:
2196 * Misc/WebIconLoader.m:
2197 (-[WebIconLoader didFinishLoading]): fixed up the "flipping the switch" #defs a bit
2198 (-[WebIconLoader willSendRequest:redirectResponse:]): override to allow a load
2199 outside of the context of a page load
2201 * WebCoreSupport/WebIconDatabaseBridge.h: Added.
2202 * WebCoreSupport/WebIconDatabaseBridge.m: Added.
2203 (-[WebIconDatabaseBridge init]):
2204 (-[WebIconDatabaseBridge dealloc]):
2205 (-[WebIconDatabaseBridge loadIconFromURL:]): Kick off a load on an icon outside
2206 of the context of any page load
2207 (-[WebIconDatabaseBridge _setIconData:forIconURL:]): WebKit side of bridge method
2208 (-[WebIconDatabaseBridge _setHaveNoIconForIconURL:]): WebKit side of bridge method
2209 (-[WebIconDatabaseBridge releaseCachedLoaderForIconURL:]):
2210 (+[WebIconDatabaseBridge sharedBridgeInstance]): Moved this from WebCore to WebKit
2211 so both sides of the bridge get the WebKit version
2212 * WebKit.xcodeproj/project.pbxproj: Added some files
2213 * WebView/WebDataSource.m:
2214 (-[WebDataSource _loadIcon]): Added check for reload/expired icon to force
2215 a load even if we already have it
2217 2006-08-04 Sam Weinig <sam.weinig@gmail.com>
2221 - patch for http://bugs.webkit.org/show_bug.cgi?id=10192
2222 Make WebCore (and friends) compile with -Wshorten-64-to-32
2224 * Adds 'f' to float literals where expecting a float.
2225 * Use ceilf() instead of ceil() when assigning to a float.
2226 * Adds explicit casts where OK.
2228 NOTE: The -Wshorten-64-to-32 flag was not added for WebKit
2229 because there are still a few places where no error handling
2230 is in place. The flag can be added as soon as those are worked
2233 * Misc/WebNSControlExtras.m:
2234 (-[NSControl sizeToFitAndAdjustWindowHeight]):
2235 * Misc/WebNSImageExtras.m:
2236 (-[NSImage _web_scaleToMaxSize:]):
2237 * Misc/WebNSViewExtras.h:
2238 * Misc/WebNSViewExtras.m:
2239 * Plugins/WebBaseNetscapePluginView.m:
2240 (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
2241 (-[WebBaseNetscapePluginView drawRect:]):
2242 * WebCoreSupport/WebFrameBridge.m:
2243 (-[WebFrameBridge expiresTimeForResponse:]):
2244 * WebInspector/WebInspector.m:
2245 (-[NSWindow window]):
2246 (-[WebInspector treeViewScrollTo:]):
2247 (-[WebInspector _updateSystemColors]):
2248 (-[WebInspector webView:plugInViewWithArguments:]):
2249 (-[WebInspector outlineView:objectValueForTableColumn:byItem:]):
2250 * WebInspector/WebInspectorOutlineView.m:
2251 (-[WebInspectorOutlineView _highlightRow:clipRect:]):
2252 * WebInspector/WebNodeHighlight.m:
2253 (-[WebNodeHighlight initWithBounds:andRects:forView:]):
2254 * WebInspector/WebNodeHighlightView.m:
2255 (-[WebNodeHighlightView roundedRect:withRadius:]):
2256 (-[WebNodeHighlightView initWithHighlight:andRects:forView:]):
2257 (-[WebNodeHighlightView drawRect:]):
2258 * WebView/WebFrame.m:
2259 (-[WebFrame _opened]):
2260 * WebView/WebFrameView.m:
2261 (-[WebFrameView initWithFrame:]):
2262 * WebView/WebHTMLView.m:
2263 (-[WebHTMLView _dragImageForLinkElement:]):
2264 (-[WebHTMLView _web_setPrintingModeRecursive]):
2265 (-[WebHTMLView _web_clearPrintingModeRecursive]):
2266 (-[NSArray layout]):
2267 (-[NSArray _setPrinting:minimumPageWidth:maximumPageWidth:adjustViewSize:]):
2268 (-[NSArray adjustPageHeightNew:top:bottom:limit:]):
2269 (-[NSArray _scaleFactorForPrintOperation:]):
2270 (-[NSArray setPageWidthForPrinting:]):
2271 (-[NSArray _endPrintMode]):
2272 (-[NSArray knowsPageRange:]):
2273 (-[NSArray _originalFontA]):
2274 (-[NSArray _originalFontB]):
2275 (-[WebTextCompleteController _buildUI]):
2276 (-[WebTextCompleteController _placePopupWindow:]):
2277 * WebView/WebPDFView.m:
2278 (-[WebPDFView _makeTextStandardSize:]):
2279 (-[WebPDFView selectionImageForcingWhiteText:]):
2280 (-[PDFPrefUpdatingProxy forwardInvocation:]):
2281 * WebView/WebPreferences.m:
2282 (-[WebPreferences _floatValueForKey:]):
2283 * WebView/WebView.m:
2284 (-[WebView makeTextSmaller:]):
2285 (-[WebView canMakeTextStandardSize]):
2286 (-[WebView makeTextStandardSize:]):
2288 2006-08-04 David Kilzer <ddkilzer@kilzer.net>
2290 Reviewed by NOBODY (build fix).
2292 * WebCoreSupport/WebSubresourceLoader.m: REALLY moved to Loader/
2293 * WebView/WebFrameLoader.h: REALLY moved to Loader/
2294 * WebView/WebFrameLoader.m: REALLY moved to Loader/
2295 * WebView/WebLoader.h: REALLY moved to Loader/
2296 * WebView/WebLoader.m: REALLY moved to Loader/
2297 * WebView/WebMainResourceLoader.m: REALLY moved to Loader/
2299 2006-08-03 Maciej Stachowiak <mjs@apple.com>
2303 - moved all loader code that is slated to be moved down to WebCore to a new Loader directory
2305 (next step is to remove dependencies on the rest of WebKit from this directory)
2307 * Loader/WebNetscapePlugInStreamLoader.h: Added.
2308 * Loader/WebNetscapePlugInStreamLoader.m: Added. Cut out of WebNetscapePluginStream.m
2309 (-[WebNetscapePlugInStreamLoader initWithStream:view:]):
2310 (-[WebNetscapePlugInStreamLoader isDone]):
2311 (-[WebNetscapePlugInStreamLoader releaseResources]):
2312 (-[WebNetscapePlugInStreamLoader didReceiveResponse:]):
2313 (-[WebNetscapePlugInStreamLoader didReceiveData:lengthReceived:]):
2314 (-[WebNetscapePlugInStreamLoader didFinishLoading]):
2315 (-[WebNetscapePlugInStreamLoader didFailWithError:]):
2316 (-[WebNetscapePlugInStreamLoader cancelWithError:]):
2317 * Plugins/WebNetscapePluginStream.m:
2318 * WebKit.xcodeproj/project.pbxproj:
2319 * WebCoreSupport/WebSubresourceLoader.h: Moved to Loader/
2320 * WebCoreSupport/WebSubresourceLoader.m: Moved to Loader/
2321 * WebView/WebFrameLoader.h: Moved to Loader/
2322 * WebView/WebFrameLoader.m: Moved to Loader/
2323 * WebView/WebLoader.h: Moved to Loader/
2324 * WebView/WebLoader.m: Moved to Loader/
2325 * WebView/WebMainResourceLoader.h: Moved to Loader/
2326 * WebView/WebMainResourceLoader.m: Moved to Loader/
2328 2006-08-03 Tim Omernick <timo@apple.com>
2330 Reviewed by Kevin Decker.
2332 <rdar://problem/4667460> Windowless OpenGL plug-ins render incorrectly on PowerPC
2334 * Plugins/WebBaseNetscapePluginView.m:
2335 (-[WebBaseNetscapePluginView _aglOffscreenImageForDrawingInRect:]):
2336 Fixed color component swapping so that it works on both x86 and PPC. See comments.
2338 2006-08-03 Brady Eidson <beidson@apple.com>
2340 Reviewed by Tim Hatcher's rubber stamp
2341 Fixed Intel build break caused by weinig's -W change in r15781
2343 * WebView/WebView.m: wrapped cpu-dependent defs with defined() macro
2345 2006-08-03 Maciej Stachowiak <mjs@apple.com>
2349 - fixed problem that could cause assertion failures in Safari
2351 * Plugins/WebBaseNetscapePluginView.m:
2352 (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]): Don't
2353 allow a plugin to start new loads once its document is no longer the one actively loading.
2355 2006-08-03 Maciej Stachowiak <mjs@apple.com>
2359 - remove use of WebDataSource from WebLoader and subclasses, just have them talk to the
2360 WebFrameLoader instead.
2362 For now this is done by forarding all the calls.
2364 * Misc/WebIconLoader.m:
2365 (-[WebIconLoader didFinishLoading]):
2366 * Plugins/WebNetscapePluginStream.m:
2367 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
2368 (-[WebNetscapePluginStream start]):
2369 (-[WebNetscapePlugInStreamLoader didFinishLoading]):
2370 (-[WebNetscapePlugInStreamLoader didFailWithError:]):
2371 (-[WebNetscapePlugInStreamLoader cancelWithError:]):
2372 * WebCoreSupport/WebFrameBridge.m:
2373 (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
2374 (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
2375 * WebCoreSupport/WebSubresourceLoader.h:
2376 * WebCoreSupport/WebSubresourceLoader.m:
2377 (-[WebSubresourceLoader initWithLoader:frameLoader:]):
2378 (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
2379 (+[WebSubresourceLoader startLoadingResource:withMethod:URL:customHeaders:referrer:forFrameLoader:]):
2380 (+[WebSubresourceLoader startLoadingResource:withMethod:URL:customHeaders:postData:referrer:forFrameLoader:]):
2381 (-[WebSubresourceLoader receivedError:]):
2382 (-[WebSubresourceLoader signalFinish]):
2383 (-[WebSubresourceLoader didFailWithError:]):
2384 (-[WebSubresourceLoader cancel]):
2385 * WebKit.xcodeproj/project.pbxproj:
2386 * WebView/WebDataSource.m:
2387 (-[WebDataSource _updateLoading]):
2388 (-[WebDataSource textEncodingName]):
2389 (-[WebDataSource _mainReceivedBytesSoFar:complete:]):
2390 * WebView/WebFrameLoader.h:
2391 * WebView/WebFrameLoader.m:
2392 (-[WebFrameLoader loadIconWithRequest:]):
2393 (-[WebFrameLoader startLoadingMainResourceWithRequest:identifier:]):
2394 (-[WebFrameLoader clearIconLoader]):
2395 (-[WebFrameLoader commitProvisionalLoad]):
2396 (-[WebFrameLoader activeDataSource]):
2397 (-[WebFrameLoader _archivedSubresourceForURL:]):
2398 (-[WebFrameLoader _defersCallbacks]):
2399 (-[WebFrameLoader _identifierForInitialRequest:]):
2400 (-[WebFrameLoader _willSendRequest:forResource:redirectResponse:]):
2401 (-[WebFrameLoader _didReceiveAuthenticationChallenge:forResource:]):
2402 (-[WebFrameLoader _didCancelAuthenticationChallenge:forResource:]):
2403 (-[WebFrameLoader _didReceiveResponse:forResource:]):
2404 (-[WebFrameLoader _didReceiveData:contentLength:forResource:]):
2405 (-[WebFrameLoader _didFinishLoadingForResource:]):
2406 (-[WebFrameLoader _didFailLoadingWithError:forResource:]):
2407 (-[WebFrameLoader _privateBrowsingEnabled]):
2408 (-[WebFrameLoader _addPlugInStreamLoader:]):
2409 (-[WebFrameLoader _removePlugInStreamLoader:]):
2410 (-[WebFrameLoader _finishedLoadingResource]):
2411 (-[WebFrameLoader _receivedError:]):
2412 (-[WebFrameLoader _addSubresourceLoader:]):
2413 (-[WebFrameLoader _removeSubresourceLoader:]):
2414 (-[WebFrameLoader _originalRequest]):
2415 (-[WebFrameLoader webFrame]):
2416 (-[WebFrameLoader _receivedMainResourceError:complete:]):
2417 (-[WebFrameLoader initialRequest]):
2418 (-[WebFrameLoader _receivedData:]):
2419 (-[WebFrameLoader _setRequest:]):
2420 (-[WebFrameLoader _downloadWithLoadingConnection:request:response:proxy:]):
2421 (-[WebFrameLoader _handleFallbackContent]):
2422 (-[WebFrameLoader _isStopping]):
2423 (-[WebFrameLoader _decidePolicyForMIMEType:decisionListener:]):
2424 (-[WebFrameLoader _setupForReplaceByMIMEType:]):
2425 (-[WebFrameLoader _setResponse:]):
2426 (-[WebFrameLoader _mainReceivedError:complete:]):
2427 (-[WebFrameLoader _finishedLoading]):
2428 (-[WebFrameLoader _mainReceivedBytesSoFar:complete:]):
2429 (-[WebFrameLoader _iconLoaderReceivedPageIcon:]):
2430 (-[WebFrameLoader _URL]):
2431 * WebView/WebLoader.h:
2432 * WebView/WebLoader.m:
2433 (-[NSURLProtocol releaseResources]):
2434 (-[NSURLProtocol loadWithRequest:]):
2435 (-[NSURLProtocol setFrameLoader:]):
2436 (-[NSURLProtocol frameLoader]):
2437 (-[NSURLProtocol willSendRequest:redirectResponse:]):
2438 (-[NSURLProtocol didReceiveAuthenticationChallenge:]):
2439 (-[NSURLProtocol didCancelAuthenticationChallenge:]):
2440 (-[NSURLProtocol didReceiveResponse:]):
2441 (-[NSURLProtocol didReceiveData:lengthReceived:]):
2442 (-[NSURLProtocol signalFinish]):
2443 (-[NSURLProtocol didFailWithError:]):
2444 (-[NSURLProtocol willCacheResponse:]):
2445 (-[NSURLProtocol cancelWithError:]):
2446 * WebView/WebMainResourceLoader.h:
2447 * WebView/WebMainResourceLoader.m:
2448 (-[WebMainResourceLoader initWithFrameLoader:]):
2449 (-[WebMainResourceLoader receivedError:]):
2450 (-[WebMainResourceLoader cancelWithError:]):
2451 (-[WebMainResourceLoader _isPostOrRedirectAfterPost:redirectResponse:]):
2452 (-[WebMainResourceLoader addData:]):
2453 (-[WebMainResourceLoader willSendRequest:redirectResponse:]):
2454 (-[WebMainResourceLoader continueAfterContentPolicy:response:]):
2455 (-[WebMainResourceLoader continueAfterContentPolicy:]):
2456 (-[WebMainResourceLoader checkContentPolicyForResponse:]):
2457 (-[WebMainResourceLoader didReceiveResponse:]):
2458 (-[WebMainResourceLoader didReceiveData:lengthReceived:]):
2459 (-[WebMainResourceLoader didFinishLoading]):
2460 (-[WebMainResourceLoader didFailWithError:]):
2461 (-[WebMainResourceLoader loadWithRequestNow:]):
2463 2006-08-03 Sam Weinig <sam.weinig@gmail.com>
2467 - patch for http://bugs.webkit.org/show_bug.cgi?id=10176
2468 Make WebCore compile with -Wundef
2470 * Adds -Wundef flag to Xcode project
2471 * Converts #ifs to #ifdef and #ifndefs where needed.
2473 * Carbon/CarbonUtils.m:
2474 * Carbon/CarbonWindowAdapter.m:
2475 * Carbon/HIViewAdapter.m:
2476 (+[NSView bindHIViewToNSView:nsView:]):
2477 * Carbon/HIWebView.m:
2478 (HIWebViewEventHandler):
2479 * Misc/WebFileDatabase.m:
2480 (UniqueFilePathForKey):
2481 * Misc/WebNSWindowExtras.m:
2482 (swizzleInstanceMethod):
2483 * Misc/WebTypesInternal.h:
2484 * Plugins/WebNetscapeDeprecatedFunctions.c:
2485 * Plugins/WebNetscapeDeprecatedFunctions.h:
2486 * Plugins/WebNetscapePluginPackage.h:
2487 * Plugins/WebNetscapePluginPackage.m:
2488 (-[WebNetscapePluginPackage unloadWithoutShutdown]):
2489 (-[WebNetscapePluginPackage load]):
2490 * WebKit.xcodeproj/project.pbxproj:
2492 2006-08-03 Darin Adler <darin@apple.com>
2494 Reviewed by Eric Seidel.
2498 * WebView/WebFrame.m: (-[WebFramePrivate dealloc]): Release the frame loader.
2500 2006-08-02 Timothy Hatcher <timothy@apple.com>
2502 Rubber stamped by Maciej.
2504 Adding back resultsWithXpathQuery, removed by Darin's earlier change.
2505 This function is called from ObjC, but not used from JavaScript.
2507 * WebInspector/webInspector/inspector.js:
2509 2006-08-02 Timothy Hatcher <timothy@apple.com>
2513 Bug 10200: [Drosera] Deadlock between Drosera and Safari while loading page
2514 http://bugs.webkit.org/show_bug.cgi?id=10200
2516 Prevent reentrancy in our debugger callbacks. This was causing a deadlock in Drosera because
2517 suspendProcessIfPaused was being called during a DO call into Safari.
2519 Preventing reentrancy also prevents scripts that Drosera injects and evaluates from showing
2520 up in rare cases (such as a iframe loading about:blank). I thought this would prevent cases
2521 where you call a function from the console and expect it to break on a breakpoint in them, but
2522 this appears to never have worked even without this change. When that is figured out we can
2523 reconsider a better solution to reentrancy. I have filed that as bug 10214.
2525 I also removed the NSRunLoop runMode:beforeDate: calls since DO handles this for us since
2526 we don't use "onway void" as the return type for the callbacks. Note: using onway void for
2527 the listener callbacks causes bad synchronization issues and obscure crashes.
2529 * DefaultDelegates/WebScriptDebugServer.m:
2530 (-[WebScriptDebugServer webView:didLoadMainResourceForDataSource:]):
2531 (-[WebScriptDebugServer webView:didParseSource:baseLineNumber:fromURL:sourceId:forWebFrame:]):
2532 (-[WebScriptDebugServer webView:failedToParseSource:baseLineNumber:fromURL:withError:forWebFrame:]):
2533 (-[WebScriptDebugServer webView:didEnterCallFrame:sourceId:line:forWebFrame:]):
2534 (-[WebScriptDebugServer webView:willExecuteStatement:sourceId:line:forWebFrame:]):
2535 (-[WebScriptDebugServer webView:willLeaveCallFrame:sourceId:line:forWebFrame:]):
2536 (-[WebScriptDebugServer webView:exceptionWasRaised:sourceId:line:forWebFrame:]):
2537 * DefaultDelegates/WebScriptDebugServerPrivate.h:
2539 2006-08-02 Maciej Stachowiak <mjs@apple.com>
2543 - fix assertion failure on layout tests by stopping plugins from loading at a clearly defined time
2544 - add more assertions for safety
2546 * WebView/WebDataSource.m:
2547 (-[WebDataSourcePrivate dealloc]): Removed obsolete comment.
2548 (-[WebDataSource _updateLoading]): Add assertion ensuring this method is only called
2549 at a time when this data source is the one that might be loading for a frame.
2550 (-[WebDataSource _stopLoading]): Stop loading plugins as a FIXME suggests we should.
2551 * WebView/WebFrameLoader.m:
2552 (-[WebFrameLoader isLoadingPlugIns]): New helper method.
2553 (-[WebFrameLoader isLoading]): Consider plugin loads too - otherwise we won't stop them
2554 at stopLoading time.
2556 2006-08-02 Adam Roben <aroben@apple.com>
2560 - Rename TransferJob to ResourceLoader (this file was forgotten in an
2561 earlier change by Maciej)
2565 2006-08-01 Maciej Stachowiak <mjs@apple.com>
2569 - Change things around so WebFrameLoader tracks the main and provisional data source,
2570 as well as the frame load state, pulling much code out of WebFrame along the way.
2572 The most significant aspects of this change are:
2574 - management of WebDataSources and WebFrameState was moved into WebFrameLoader
2575 - there is now just one WebFrameLoader shared between the primary and provisional data source
2577 * WebKit.xcodeproj/project.pbxproj:
2578 * WebView/WebDataSource.m:
2579 (-[WebDataSourcePrivate dealloc]):
2580 (-[WebDataSource _updateLoading]):
2581 (-[WebDataSource _loadIcon]):
2582 (-[WebDataSource _setPrimaryLoadComplete:]):
2583 (-[WebDataSource _stopLoading]):
2584 (-[WebDataSource _startLoading]):
2585 (-[WebDataSource _addSubresourceLoader:]):
2586 (-[WebDataSource _removeSubresourceLoader:]):
2587 (-[WebDataSource _addPlugInStreamLoader:]):
2588 (-[WebDataSource _removePlugInStreamLoader:]):
2589 (-[WebDataSource _defersCallbacksChanged]):
2590 (-[WebDataSource _stopLoadingWithError:]):
2591 (-[WebDataSource _revertToProvisionalState]):
2592 (-[WebDataSource _setupForReplaceByMIMEType:]):
2593 (-[WebDataSource initWithRequest:]):
2594 (-[WebDataSource data]):
2595 (-[WebDataSource isLoading]):
2596 * WebView/WebFrame.m:
2597 (-[WebFramePrivate init]):
2598 (-[WebFramePrivate dealloc]):
2599 (-[WebFrame _closeOldDataSources]):
2600 (-[WebFrame _detachFromParent]):
2601 (-[WebFrame _makeDocumentView]):
2602 (-[WebFrame _receivedMainResourceError:]):
2603 (-[WebFrame _transitionToCommitted:]):
2604 (+[WebFrame _timeOfLastCompletedLoad]):
2605 (-[WebFrame _checkLoadCompleteForThisFrame]):
2606 (-[WebFrame _loadItem:withLoadType:]):
2607 (-[WebFrame _continueAfterWillSubmitForm:]):
2608 (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
2609 (-[WebFrame _initWithWebFrameView:webView:bridge:]):
2610 (-[WebFrame _frameLoader]):
2611 (-[WebFrame _provisionalLoadStarted]):
2612 (-[WebFrame _prepareForDataSourceReplacement]):
2613 (-[WebFrame _frameLoadCompleted]):
2614 (-[WebFrame provisionalDataSource]):
2615 (-[WebFrame dataSource]):
2616 (-[WebFrame stopLoading]):
2617 * WebView/WebFrameInternal.h:
2618 * WebView/WebFrameLoader.h:
2619 * WebView/WebFrameLoader.m:
2620 (-[WebFrameLoader initWithWebFrame:]):
2621 (-[WebFrameLoader dealloc]):
2622 (-[WebFrameLoader dataSource]):
2623 (-[WebFrameLoader _setDataSource:]):
2624 (-[WebFrameLoader clearDataSource]):
2625 (-[WebFrameLoader provisionalDataSource]):
2626 (-[WebFrameLoader _setProvisionalDataSource:]):
2627 (-[WebFrameLoader _clearProvisionalDataSource]):
2628 (-[WebFrameLoader state]):
2629 (+[WebFrameLoader timeOfLastCompletedLoad]):
2630 (-[WebFrameLoader _setState:]):
2631 (-[WebFrameLoader clearProvisionalLoad]):
2632 (-[WebFrameLoader markLoadComplete]):
2633 (-[WebFrameLoader commitProvisionalLoad]):
2634 (-[WebFrameLoader stopLoading]):
2635 (-[WebFrameLoader startLoading]):
2636 (-[WebFrameLoader startProvisionalLoad:]):
2637 (-[WebFrameLoader setupForReplace]):
2638 * WebView/WebFramePrivate.h:
2640 2006-08-01 Tim Omernick <timo@apple.com>
2642 Reviewed by John Sullivan.
2644 <rdar://problem/4480737> Flash crashes after it replaces itself via a document.write()
2646 I kind of hate to do this, but this is the best way to work around buggy plug-ins like Flash that assume that
2647 NPP_Destroy() cannot be called while the browser is calling one of its other plug-in functions. The classic
2648 situation is a plug-in that replaces itself via an NPN_Invoke() that executes a document.write().
2650 * Plugins/WebBaseNetscapePluginView.h:
2651 * Plugins/WebBaseNetscapePluginView.m:
2652 (-[WebBaseNetscapePluginView sendEvent:]):
2653 Call -willCallPlugInFunction and -didCallPlugInFunction around calls to the NPP_* functions.
2654 (-[WebBaseNetscapePluginView setWindowIfNecessary]):
2656 (-[WebBaseNetscapePluginView start]):
2657 It should not be possible to start a plug-in instance while we are calling into it (one of those chicken/egg
2658 problems). Added a sanity-checking assertion.
2659 (-[WebBaseNetscapePluginView stop]):
2660 If we're already calling a plug-in function, do not call NPP_Destroy(). The plug-in function we are calling
2661 may assume that its instance->pdata, or other memory freed by NPP_Destroy(), is valid and unchanged until said
2662 plugin-function returns.
2663 (-[WebBaseNetscapePluginView pluginScriptableObject]):
2664 Call -willCallPlugInFunction and -didCallPlugInFunction around calls to the NPP_* functions.
2665 (-[WebBaseNetscapePluginView willCallPlugInFunction]):
2666 Increment plug-in function call depth.
2667 (-[WebBaseNetscapePluginView didCallPlugInFunction]):
2668 Decrement plug-in function call depth. Stop if we're supposed to stop.
2669 (-[WebBaseNetscapePluginView evaluateJavaScriptPluginRequest:]):
2670 Call -willCallPlugInFunction and -didCallPlugInFunction around calls to the NPP_* functions.
2671 (-[WebBaseNetscapePluginView webFrame:didFinishLoadWithReason:]):
2673 (-[WebBaseNetscapePluginView _printedPluginBitmap]):
2676 * Plugins/WebBaseNetscapePluginStream.m:
2677 (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:]):
2678 Call -willCallPlugInFunction and -didCallPlugInFunction around calls to the NPP_* functions.
2679 (-[WebBaseNetscapePluginStream _destroyStream]):
2681 (-[WebBaseNetscapePluginStream _deliverData]):
2684 2006-08-01 Maciej Stachowiak <mjs@apple.com>
2686 - fix build after last change
2688 * WebView/WebFrame.m:
2689 (-[WebFrame _checkLoadCompleteForThisFrame]):
2691 2006-08-01 Maciej Stachowiak <mjs@apple.com>
2695 - revert part of my last fix that broke the Safari bookmarks view
2697 * WebView/WebFrame.m:
2698 (-[WebFrame _checkLoadCompleteForThisFrame]): still send layout message for non-HTML views
2700 2006-08-01 Tim Omernick <timo@apple.com>
2704 Fixed an assertion failure I ran into while debugging <rdar://problem/4652683>.
2706 * Plugins/WebNetscapePluginEmbeddedView.m:
2707 (-[WebNetscapePluginEmbeddedView redeliverStream]):
2708 Don't clear the "instance" ivar here. This code was refactored here from the old WebNetscapePluginRepresentation,
2709 which also had an "instance" ivar. It is never appropriate to clear a plug-in view's instance. That is done when
2710 the plug-in is destroyed.
2712 2006-08-01 Maciej Stachowiak <mjs@apple.com>
2716 - some refactoring in preparation for moving more stuff to WebFrameLoader.
2718 * WebView/WebFrame.m:
2719 (-[WebFrame _clearDataSource]):
2720 (-[WebFrame _detachFromParent]):
2721 (-[WebFrame _commitProvisionalLoad]):
2722 (-[WebFrame _transitionToCommitted:]):
2723 (-[WebFrame _clearProvisionalLoad]):
2724 (-[WebFrame _markLoadComplete]):
2725 (-[WebFrame _checkLoadCompleteForThisFrame]):
2726 (-[WebFrame _startProvisionalLoad:]):
2727 (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
2728 (-[WebFrame stopLoading]):
2730 2006-07-31 Maciej Stachowiak <mjs@apple.com>
2732 Reviewed by Tim Hatcher.
2734 - renamed TransferJob to ResourceLoader in WebCore
2737 (WebFrame::loadDataSource):
2738 (WebFrame::receivedRedirect):
2739 (WebFrame::receivedResponse):
2740 (WebFrame::receivedData):
2741 (WebFrame::receivedAllData):
2742 (WebFrame::setStatusText):
2745 2006-07-31 Darin Adler <darin@apple.com>
2749 - omit the margin and padding boxes for display types where they are ignored
2750 - use CSS instead of properties for table spacing and padding as suggested by Tim H.
2752 * WebInspector/webInspector/inspector.css: Added rules for spacing and padding.
2753 Added rules that hide the margin and padding boxes (borders and all but the center cell)
2754 when the hide attribute is present.
2755 * WebInspector/webInspector/inspector.html: Added classes for the rules above.
2756 Removed cellpadding and cellspacing attributes.
2757 * WebInspector/webInspector/inspector.js: Added code to hide/show the margin and
2758 padding boxes based on the display type.
2760 2006-07-31 Duncan Wilcox <duncan@mclink.it>
2764 Fixes <http://bugs.webkit.org/show_bug.cgi?id=10159>
2765 "REGRESSION: delegate returning no menu elements crashes webkit"
2767 No automated test, because there's no way to programmatically open a context menu,
2768 no manual test because there's no way to customize the context menu delegate.
2770 * WebView/WebView.m:
2771 (-[WebView _menuForElement:defaultItems:]): Make sure the context menu returned
2772 some menu items before accessing the first one.
2774 2006-07-31 Timothy Hatcher <timothy@apple.com>
2778 <rdar://problem/4658194> REGRESSION: "Search in Google"
2779 and "Search in Spotlight" fail to work on text selected in a frame
2781 Use selectedFrame to get the frame with the text selection.
2783 * WebView/WebView.m:
2784 (-[WebView _searchWithGoogleFromMenu:]):
2785 (-[WebView _searchWithSpotlightFromMenu:]):
2787 2006-07-31 Darin Adler <darin@apple.com>
2789 Reviewed by Tim Hatcher.
2791 - http://bugs.webkit.org/show_bug.cgi?id=10168
2792 add a first cut at a Metrics pane to the inspector
2794 * WebInspector/webInspector/inspector.css: Add styles for the new metrics pane.
2795 * WebInspector/webInspector/inspector.html: Add the new metrics pane, starting with
2796 the table to show the box model.
2797 * WebInspector/webInspector/inspector.js: Add the new metrics pane. Add back some
2798 "title" attributes so we have more tooltips. Removed the optional parameter to
2801 2006-07-31 Anders Carlsson <acarlsson@apple.com>
2805 * Plugins/WebPluginDatabase.m:
2806 (-[WebPluginDatabase refresh]):
2807 Create a mutable set instead of a mutable array.
2809 2006-07-30 Darin Adler <darin@apple.com>
2811 Reviewed by Tim Hatcher.
2813 * WebInspector/webInspector/inspector.js: Fix bug where a null property value
2814 leads to an empty style pane.
2816 2006-07-30 Darin Adler <darin@apple.com>
2818 Reviewed by Tim Hatcher.
2820 - http://bugs.webkit.org/show_bug.cgi?id=10163
2821 some improvements for the inspector
2823 * WebInspector/WebInspector.m:
2824 (+[WebInspector sharedWebInspector:]): Fixed bug that could cause the inspector
2825 to be garbage collected if used in an application with GC enabled.
2826 (-[WebInspector dealloc]): Removed a call to a non-existent close method.
2827 (-[WebInspector window]): Added a custom WebPreferences object and called
2828 setPrivateBrowsingEnabled:YES so the inspector won't appear in the history menu.
2829 Also call setProhibitsMainFrameScrolling:YES to try to get rid of trouble where
2830 the inspector scrolls when dragging.
2832 * WebInspector/webInspector/inspector.css: Added style for the new color swatch,
2833 and JavaScript properties. More of the style should be shared between the panes,
2834 but this should be OK for now.
2836 * WebInspector/webInspector/inspector.html: Added a first cut at a JavaScript
2837 properties pane. Needs work, but better than nothing.
2839 * WebInspector/webInspector/inspector.js: Lots of improvements:
2840 - Omit "typical" property values from computed style display, making it much shorter.
2841 - Use the words "black", "white", and "transparent" when appropriate for color values.
2842 - Refactored the loaded() function to get rid of repetitive scrollbar setup.
2843 - Added a new scrollarea for the JavaScript properties pane.
2844 - Simplified refreshScrollbars() -- we now refresh all scrollbars every time, which does no harm.
2845 - Removed unused resultsWithXpathQuery().
2846 - Use [] instead of "new Array()" and {} instead of "new Object()".
2847 - Removed unused xpathForNode().
2848 - Changed style pane to display the style for a text node's parent instead of saying
2849 it can't display the style for text.
2850 - Fixed regression I caused a while back by checking the length of a computed style
2851 and not trying to display anything if its length is 0. Before this change and the
2852 corresponding change in WebCore, we'd see a complete list of all styles with the
2853 empty string as the value for each one.
2854 - Changed the name of the computedStyle flag on the style rules array to isComputedStyle
2855 to make it easier to understand it's a boolean.
2856 - Fixed an error in the code that does !important scanning where it was trying to
2857 do a special case for computed style, but was checking the computed style flag on
2859 - Added populateStyleListItem() function to factor out things in common between the
2860 items in the top level list and the expanded tree for shorthand properties.
2861 - Added code to make a color swatch next to the textual representation for any
2862 property that contains a color.
2863 - Implemented a first cut at a simple JavaScript properties pane.
2865 2006-07-29 Darin Adler <darin@apple.com>
2867 - Removed tabs from these source files that still had them.
2868 We don't use them; that way source files look fine in editors
2869 that have tabs set to 8 spaces or to 4 spaces.
2870 - Removed allow-tabs Subversion property from the files too.
2872 * DefaultDelegates/WebDefaultPolicyDelegate.m:
2873 * History/WebHistory.m:
2874 * Misc/WebDownload.m:
2875 * Misc/WebIconDatabase.m:
2876 * Misc/WebKitErrors.m:
2877 * Misc/WebKitLogging.m:
2878 * Misc/WebNSDataExtras.m:
2879 * Misc/WebNSFileManagerExtras.m:
2880 * Panels/WebPanelAuthenticationHandler.m:
2881 * Plugins/WebBaseNetscapePluginView.m:
2882 * Plugins/npfunctions.h:
2883 * WebCoreSupport/WebSubresourceLoader.m:
2884 * WebView/WebMainResourceLoader.m:
2885 * WebView/WebView.h:
2886 * WebView/WebView.m:
2888 2006-07-29 Sam Weinig <sam.weinig@gmail.com>
2892 - patch for http://bugs.webkit.org/show_bug.cgi?id=10080
2893 Adopt pedantic changes from the Unity project to improve
2894 cross-compiler compatibility
2897 * Adding missing newline to the end of the file.
2898 * Turning on gcc warning for missing newline at the end of a source file
2899 (GCC_WARN_ABOUT_MISSING_NEWLINE in Xcode, -Wnewline in gcc).
2901 * WebKit.xcodeproj/project.pbxproj:
2902 * WebView/WebResourcePrivate.h:
2904 2006-07-29 Mitz Pettel <opendarwin.org@mitzpettel.com>
2906 Reviewed by John Sullivan.
2908 - fix http://bugs.webkit.org/show_bug.cgi?id=9984
2909 ASSERTION FAILURE: _private->mouseDownEvent != nil
2910 (WebKit/WebView/WebHTMLView.m:4863 -[WebHTMLView(WebInternal) _delegateDragSourceActionMask])
2912 * WebView/WebHTMLView.m:
2913 (-[WebHTMLView _setMouseDownEvent:]): Moved into the WebHTMLViewFileInternal category and changed
2915 (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
2916 Copy the hit HTMLView's mouse down event to the top HTMLView.
2917 (-[WebHTMLView acceptsFirstMouse:]): Added a call to _setMouseDownEvent:nil before returning.
2918 (-[WebHTMLView shouldDelayWindowOrderingForEvent:]): Added a call to _setMouseDownEvent:nil
2920 (-[WebHTMLView mouseUp:]): Added a call to _setMouseDownEvent:nil to clear the event set in
2921 mouseDown: (and used during dragging).
2922 (-[WebHTMLView _delegateDragSourceActionMask]): Copy the hit HTMLView's mouse down event to
2925 2006-07-28 Timothy Hatcher <timothy@apple.com>
2929 <rdar://problem/4657473> REGRESSION: Spell check not available from contextual menu in Mail
2931 The context menu code should be checking isContentEditable
2932 on DOMNode not just DOMElement. This is needed because DOMText
2933 will be the node class of any text that is clicked.
2935 * DefaultDelegates/WebDefaultContextMenuDelegate.m:
2936 (-[WebDefaultUIDelegate webView:contextMenuItemsForElement:defaultMenuItems:]):
2938 2006-07-25 Geoffrey Garen <ggaren@apple.com>
2940 Reviewed by Maciej, inspired by John.
2942 - Fixed <rdar://problem/4651931> 1% REGRESSION on iBench HTML due to
2943 repeated requests for non-existent favicon
2945 An optimization to avoid serializing favicon data for missing icons had stomped an
2946 optimization to avoid GETing a missing favicon more than once. The solution
2947 is a happy marriage of optimizations, ensuring that we *retain* the missing
2948 favicon's "i am missing" data without posting a notification or saving it to disk.
2950 * Misc/WebIconDatabase.m:
2951 (-[WebIconDatabase _setIconURL:forURL:]):
2953 2006-07-25 David Harrison <harrison@apple.com>
2955 Reviewed by timo and Darin.
2957 <rdar://problem/4618584> "Paste and Match Style" is not working in Mail (add SPI)
2959 * WebKit.xcodeproj/project.pbxproj:
2960 * WebView/WebView.m:
2961 (-[WebView replaceSelectionWithNode:]):
2962 (-[WebView _replaceSelectionWithNode:matchStyle:]):
2963 * WebView/WebViewPrivate.h:
2964 (-[WebView _replaceSelectionWithNode:matchStyle::]):
2965 New SPI that is same as replaceSelectionWithNode: with added parameter whether to match existing style.
2967 2006-07-24 Darin Adler <darin@apple.com>
2969 Reviewed by Adele and Justin.
2971 - update for change to require context when creating fragments from text
2972 (needed to handle whitespace properly)
2974 * WebView/WebHTMLView.m:
2975 (-[WebHTMLView _documentFragmentFromPasteboard:inContext:allowPlainText:chosePlainText:]):
2976 Added context parameter, pass through to bridge.
2977 (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]): Pass selection range as context
2978 when calling above method.
2979 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): Pass drag caret as context when
2980 calling above method.
2982 2006-07-24 Maciej Stachowiak <mjs@apple.com>
2986 - fix <rdar://problem/4609195> Help Viewer loads empty window (not getting didFailLoadingWithError: callback)
2987 (without re-introducing http://bugs.webkit.org/show_bug.cgi?id=10062 )
2989 * WebView/WebLoader.h:
2990 * WebView/WebMainResourceLoader.m:
2991 (-[WebMainResourceLoader receivedError:]): Copy in some code from the base class to do it in the proper
2992 order, surrounding the call to [ds _receivedMainResourceError:error complete:YES].
2994 2006-07-24 Anders Carlsson <acarlsson@apple.com>
2998 * Misc/WebIconDatabase.m:
2999 (-[WebIconDatabase removeAllIcons]):
3000 Make an array of the keys and iterate through it to avoid modifying the
3001 dictionary while enumerating it.
3003 2006-07-24 Timothy Hatcher <timothy@apple.com>
3005 Reviewed by John and Darin.
3007 <rdar://problem/4634290> Cannot selectively install a custom
3008 scroller that differs from the default Aqua frame size.
3010 Adds two new private methods to WebFrameView that allows
3011 an application to set a custom scroll view class. This is needed
3012 if the application wants to install a custom scroller that is wider
3013 than the typical scroller, because NSScrollView does the content
3014 rect calculations in a class method (ignoring custom scrollers.)
3015 The _setScrollViewClass method requires the class to be a subclass
3016 of WebDynamicScrollBarView, or nil can be passed to reset to the default class.
3017 A new scroll view of the specified class will then replace the previous
3018 one without the need to reload content of the frame.
3020 * WebView/WebFrameView.m:
3021 (-[WebFrameView _customScrollViewClass]):
3022 (-[WebFrameView _setCustomScrollViewClass:]):
3023 * WebView/WebFrameViewPrivate.h:
3025 2006-07-24 Alexey Proskuryakov <ap@nypop.com>
3029 Fix http://bugs.webkit.org/show_bug.cgi?id=10009
3030 REGRESSION: Schubert-IT PDF Plug-in not working for full page (works in frames)
3032 * WebView/WebView.m:
3033 (+[WebView _viewClass:andRepresentationClass:forMIMEType:]): If we've got a type supported by WebPDFView,
3034 make sure to initialize the plugin database, in case a plugin wants to handle it.
3036 2006-07-23 Mark Rowe <opendarwin.org@bdash.net.nz>
3040 Bug 9686: [Drosera] Need the ability to break into Drosera on Javascript exceptions
3041 http://bugs.webkit.org/show_bug.cgi?id=9686
3043 WebKit portion of the fix.
3045 * DefaultDelegates/WebDefaultScriptDebugDelegate.m:
3046 (-[WebDefaultScriptDebugDelegate webView:exceptionWasRaised:sourceId:line:forWebFrame:]):
3047 * DefaultDelegates/WebScriptDebugServer.h:
3048 * DefaultDelegates/WebScriptDebugServer.m:
3049 (-[WebScriptDebugServer webView:exceptionWasRaised:sourceId:line:forWebFrame:]): Notify
3050 listeners that an exception has been raised.
3051 * WebView/WebScriptDebugDelegate.h:
3052 * WebView/WebScriptDebugDelegate.m:
3053 (-[WebScriptCallFrame exceptionRaised:sourceId:line:]): Dispatch through to delegate and
3054 WebScriptDebugServer.
3056 2006-07-23 Adele Peterson <adele@apple.com>
3060 - Fix for <rdar://problem/4646276> CrashTracer: 7 crashes in Safari at com.apple.WebCore: WebCore::RenderTableSection::paint + 155
3062 * WebView/WebHTMLView.m: (-[WebHTMLView _web_layoutIfNeededRecursive:testDirtyRect:]):
3063 needsDisplay was returning NO even though the view has a dirty rect (see <rdar://problem/4647062>). Since we know about
3064 the dirty rect, we don't actually need to check needsDisplay.
3066 2006-07-22 Timothy Hatcher <timothy@apple.com>
3070 Bug 10062: REGRESSION: dom/xhtml/level2/html/HTMLIFrameElement11.xhtml asserts/crashes
3071 http://bugs.webkit.org/show_bug.cgi?id=10062
3073 2006-07-21 Timothy Hatcher <timothy@apple.com>
3077 <rdar://problem/4609195> Help Viewer loads empty window
3078 (not getting didFailLoadingWithError: callback)
3080 Call super's didFailWithError before _receivedMainResourceError
3081 because _receivedMainResourceError will cause the datasource's
3082 frame to be set to nil before the didFailLoadingWithError delegate
3083 callback is sent. (This order is needed now that WebDataSource does
3084 not hold on to the WebView; it uses the WebFrame to get to the WebView.
3085 If the WebFrame is nil we can't get to the WebView's resource load delegate.)
3087 * WebView/WebMainResourceLoader.m:
3088 (-[WebMainResourceLoader receivedError:]):
3091 2006-07-22 Timothy Hatcher <timothy@apple.com>
3095 <rdar://problem/4646318> REGRESSION: Ctrl-clicking on a selection containing a word doesn't display a complete contextual menu
3097 Show the editing context menu if the WebView is editible.
3098 The original change only checked if the DOM element was editable,
3099 and isContentEditable returns NO if entire WebView is editable.
3101 * DefaultDelegates/WebDefaultContextMenuDelegate.m:
3102 (-[WebDefaultUIDelegate webView:contextMenuItemsForElement:defaultMenuItems:]):
3104 2006-07-21 Timothy Hatcher <timothy@apple.com>
3108 <rdar://problem/4609195> Help Viewer loads empty window
3109 (not getting didFailLoadingWithError: callback)
3111 Call super's didFailWithError before _receivedMainResourceError
3112 because _receivedMainResourceError will cause the datasource's
3113 frame to be set to nil before the didFailLoadingWithError delegate
3114 callback is sent. (This order is needed now that WebDataSource does
3115 not hold on to the WebView; it uses the WebFrame to get to the WebView.
3116 If the WebFrame is nil we can't get to the WebView's resource load delegate.)
3118 * WebView/WebMainResourceLoader.m:
3119 (-[WebMainResourceLoader receivedError:]):
3121 === Safari-521.20 ===
3123 2006-07-21 Timothy Hatcher <timothy@apple.com>
3127 <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)
3129 Do not use _isEditable call since that only checks if the current
3130 selection or frame is editible. We now check if the currently clicked element
3131 is a content editible area, a textarea, an isindex or an input element that
3132 return YES to _isTextField.
3134 * DefaultDelegates/WebDefaultContextMenuDelegate.m:
3135 (-[WebDefaultUIDelegate webView:contextMenuItemsForElement:defaultMenuItems:]):
3137 2006-07-20 John Sullivan <sullivan@apple.com>
3141 - WebKit part of fix for:
3142 <rdar://problem/4557386> REGRESSION (419.3-521.19): repro Safari world leak involving
3143 closing tabs after clicking in a web page
3145 * WebCoreSupport/WebFrameBridge.m:
3146 (-[WebFrameBridge textViewWasFirstResponderAtMouseDownTime:]):
3147 renamed to be more specific (formerly wasFirstResponderAtMouseDownTime:)
3149 * WebView/WebHTMLViewInternal.h:
3150 * WebView/WebHTMLView.m:
3151 (-[WebTextCompleteController dealloc]):
3152 updated for name change
3153 (-[NSArray _setMouseDownEvent:]):
3154 Now only retains the first responder if it's a textView, since that's the only case that the only client
3155 actually cares about. This avoids a reference cycle caused by retaining self. This is the only substantive
3156 part of the patch; all the rest is just renaming for clarity, and comments.
3157 (-[NSArray mouseDown:]):
3158 updated for name change
3159 (-[WebHTMLView _textViewWasFirstResponderAtMouseDownTime:]):
3160 renamed to be more specific (formerly _wasFirstResponderAtMouseDownTime:)
3162 2006-07-19 Tim Omernick <timo@apple.com>
3166 <rdar://problem/4523432> safari crashed right after disabling "block pop up windows" (or other WebPreferences changes)
3168 * Plugins/WebBaseNetscapePluginView.m:
3169 (-[WebBaseNetscapePluginView viewWillMoveToSuperview:]):
3170 Stop the plug-in when it is removed from its superview. It is not sufficient to do this in -viewWillMoveToWindow:nil, because
3171 the WebView might still has a hostWindow at that point, which prevents the plug-in from being destroyed.
3172 There is no need to start the plug-in when moving into a superview. -viewDidMoveToWindow takes care of that.
3174 === Safari-521.19 ===
3176 2006-07-17 Tim Omernick <timo@apple.com>
3180 <rdar://problem/4612079> need a way to prevent pages from scrolling to reveal elements that are focused
3183 * WebView/WebViewPrivate.h:
3184 * WebView/WebView.m:
3185 (-[WebView setProhibitsMainFrameScrolling:]):
3186 New method. Prohibits scrolling in the WebView's main frame. Used to "lock" a WebView to a specific
3189 2006-07-17 Timothy Hatcher <timothy@apple.com>
3193 <rdar://problem/4635311> REGRESSION: WebKit should call windowScriptObjectAvailable before attaching the script debugger
3195 * WebCoreSupport/WebFrameBridge.m:
3196 (-[WebFrameBridge windowObjectCleared]):
3198 2006-07-17 Timothy Hatcher <timothy@apple.com>
3202 <rdar://problem/4634874> WebScriptObject and WebUndefined are no longer defined by WebKit
3204 Copy WebScriptObject.h from WebCore's private headers, not JavaScriptCore.
3206 * WebKit.xcodeproj/project.pbxproj:
3208 2006-07-17 John Sullivan <sullivan@apple.com>
3210 Reviewed by Tim Omernick.
3212 - fixed <rdar://problem/4604366> Orange Find highlight displays text in wrong size on PDF pages
3213 if they're not at "actual size"
3215 To match WebHTMLView, I made the methods that return attributed strings take the view's scale
3216 factor into account.
3218 * WebView/WebPDFView.m:
3219 (-[WebPDFView _scaledAttributedString:]):
3220 new helper method, takes an attributed string and returns one that's scaled by the view's
3221 current scale factor
3222 (-[WebPDFView attributedString]):
3223 pass result through _scaledAttributedString:
3224 (-[WebPDFView selectedAttributedString]):
3227 2006-07-17 Justin Garcia <justin.garcia@apple.com>
3231 Rolled the first fix for:
3232 <http://bugs.webkit.org/show_bug.cgi?id=9642>
3233 GMail Editor: Operations that use drop down menus blow away the selection
3234 back in and removed the call to _clearSelectionInOtherFrames from
3235 -[WebHTMLView becomeFirstResponder] to fix the bug.
3237 * WebView/WebHTMLView.m:
3238 (-[NSArray maintainsInactiveSelection]):
3239 (-[NSArray becomeFirstResponder]):
3240 * WebView/WebView.m:
3241 (-[WebView maintainsInactiveSelection]):
3243 2006-07-15 Darin Adler <darin@apple.com>
3245 Reviewed by John Sullivan.
3247 - fix http://bugs.webkit.org/show_bug.cgi?id=9928
3248 REGRESSION: Text Encoding menu inoperative (after gcc protocol build fix)
3250 * WebView/WebHTMLView.m:
3251 (-[WebHTMLView _documentRange]): Moved into WebHTMLViewFileInternal category.
3252 (-[WebHTMLView selectionRect]): Moved into WebDocumentPrivateProtocols category.
3253 (-[WebHTMLView selectionView]): Ditto.
3254 (-[WebHTMLView selectionImageForcingWhiteText:]): Ditto.
3255 (-[WebHTMLView selectionImageRect]): Ditto.
3256 (-[WebHTMLView pasteboardTypesForSelection]): Ditto.
3257 (-[WebHTMLView selectAll]): Ditto.
3258 (-[WebHTMLView deselectAll]): Ditto.
3259 (-[WebHTMLView string]): Ditto.
3260 (-[WebHTMLView _attributeStringFromDOMRange:]): Ditto.
3261 (-[WebHTMLView attributedString]): Ditto.
3262 (-[WebHTMLView selectedString]): Ditto.
3263 (-[WebHTMLView selectedAttributedString]): Ditto.
3264 (-[WebHTMLView supportsTextEncoding]): Ditto.
3265 (-[WebHTMLView _canProcessDragWithDraggingInfo:]): Moved into WebDocumentInternalProtocols.
3266 (-[WebHTMLView _isMoveDrag]): Ditto.
3267 (-[WebHTMLView _isNSColorDrag:]): Ditto.
3268 (-[WebHTMLView draggingUpdatedWithDraggingInfo:actionMask:]): Ditto.
3269 (-[WebHTMLView draggingCancelledWithDraggingInfo:]): Ditto.
3270 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): Ditto.
3271 (-[WebHTMLView elementAtPoint:]): Ditto.
3272 (-[WebHTMLView elementAtPoint:allowShadowContent:]): Ditto.
3274 * WebKit.xcodeproj/project.pbxproj: Let Xcode 2.3 do its thing.
3276 === Safari-521.17 ===
3278 2006-07-14 Timothy Hatcher <timothy@apple.com>
3280 Rolling out this fix from r15358 since it isn't resolved.
3282 2006-07-11 Justin Garcia <justin.garcia@apple.com>
3284 Reviewed by levi & thatcher
3286 <http://bugs.webkit.org/show_bug.cgi?id=9642>
3287 GMail Editor: Operations that use drop down menus blow away the selection
3289 * WebView/WebHTMLView.m:
3290 (-[WebHTMLView maintainsInactiveSelection]): Maintain an inactive selection
3291 when resigning as first responder if the selection is editable
3292 or if the WebView tells us to.
3293 * WebView/WebView.m:
3294 (-[WebView maintainsInactiveSelection]): Just because a WebView is
3295 editable doesn't mean selections inside subframes will be. Return
3298 2006-07-14 Timothy Hatcher <timothy@apple.com>
3300 <rdar://problem/4623957> SWB: gcc-5412 (new?) objc warning causes WebCore project failure
3302 Build fix with the new GCC. Removes forward declarations of protocols.
3304 * Misc/WebSearchableTextView.h:
3305 * WebCoreSupport/WebSubresourceLoader.h:
3306 * WebKit.xcodeproj/project.pbxproj:
3307 * WebView/WebDocumentInternal.h:
3308 * WebView/WebDocumentPrivate.h:
3309 * WebView/WebHTMLView.h:
3310 * WebView/WebPDFView.h:
3311 * WebView/WebScriptDebugDelegatePrivate.h:
3313 2006-06-28 Darin Adler <darin@apple.com>
3317 - fix http://bugs.webkit.org/show_bug.cgi?id=9625
3318 <rdar://problem/4604703>
3319 REGRESSION: Focus not removed from password field after ctrl-click in text field
3321 * WebView/WebHTMLView.m: (-[WebHTMLView menuForEvent:]): Set handlingMouseDownEvent to
3322 YES while calling sendContextMenuEvent: on the bridge.
3324 2006-07-14 Timothy Hatcher <timothy@apple.com>
3328 Moved JavaScriptCore to be a public framework.
3330 * WebKit.xcodeproj/project.pbxproj:
3332 2006-07-13 Mitz Pettel <opendarwin.org@mitzpettel.com>
3336 - fix http://bugs.webkit.org/show_bug.cgi?id=9795
3337 REGRESSION: Crash in [WebHTMLView(WebPrivate)
3338 _updateMouseoverWithEvent:]
3339 and http://bugs.webkit.org/show_bug.cgi?id=9850
3340 REGRESSION: Assertion failure (SHOULD NEVER BE REACHED) in -
3341 [WebHTMLView(WebPrivate) removeTrackingRect:]
3343 * WebView/WebHTMLView.m:
3344 (-[WebHTMLView _updateMouseoverWithEvent:]): Return immediately if
3345 the view has already been closed.
3347 2006-07-13 David Harrison <harrison@apple.com>
3349 Reviewed by Justin and Levi.
3351 <rdar://problem/4620743> REGRESSION: Option-Delete doesn't delete words during typing
3354 editing/deleting/delete-by-word-001.html
3355 editing/deleting/delete-by-word-002.html
3357 * WebView/WebHTMLView.m:
3358 (-[WebHTMLView _deleteRange:killRing:prepend:smartDeleteOK:deletionAction:granularity:]):
3360 2006-07-13 Timothy Hatcher <timothy@apple.com>
3362 Rolling out this earlier change (r15378) now that it is fixed on AGL's end.
3363 Fixes <rdar://problem/4624865> Restore 64-bit OpenGL plug-in support once AGL is 64-bit
3365 <rdar://problem/4624858> AGL isn't 64-bit yet; temporarily remove it from WebKit 64-bit build
3367 * Plugins/WebBaseNetscapePluginView.h:
3368 * Plugins/WebBaseNetscapePluginView.m:
3370 2006-07-13 Timothy Hatcher <timothy@apple.com>
3374 <rdar://problem/4616920> REGRESSION: tabbing in mail moves focus
3375 to next control instead of inserting a tab space.
3377 Change editible WebView's tabKeyCyclesThroughElements to NO only
3378 if the setTabKeyCyclesThroughElements SPI wasn't called.
3380 * WebView/WebView.m:
3381 (-[WebView setEditable:]):
3383 2006-07-12 Anders Carlsson <acarlsson@apple.com>
3387 http://bugs.webkit.org/show_bug.cgi?id=9624
3388 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
3390 * DefaultDelegates/WebDefaultContextMenuDelegate.m:
3391 (-[WebDefaultUIDelegate editingContextMenuItemsForElement:defaultMenuItems:]):
3392 Don't create Dictionary, Spotlight or Google lookup items if there's no selection.
3394 2006-07-12 Mark Rowe <opendarwin.org@bdash.net.nz>
3396 Reviewed by Timothy.
3398 http://bugs.webkit.org/show_bug.cgi?id=9868
3399 Applications shown in Drosera's "Attach" window remain after exit
3401 * DefaultDelegates/WebScriptDebugServer.m:
3402 (-[WebScriptDebugServer init]): Register for NSApplicationWillTerminateNotification so we will
3403 know when the application is being exited.
3404 (-[WebScriptDebugServer dealloc]): Unregister notification before we are deallocated.
3405 (-[WebScriptDebugServer applicationTerminating:]): Inform anyone listening that we are going away.
3407 2006-07-12 Tim Omernick <timo@apple.com>
3409 Reviewed by Tim Hatcher.
3411 <rdar://problem/4624858> AGL isn't 64-bit yet; temporarily remove it from WebKit 64-bit build
3413 Also, fixed a LOG_ERROR() so that it uses the CGL error instead of the AGL error; Tim H missed this in his build fix
3416 * Plugins/WebBaseNetscapePluginView.h:
3417 * Plugins/WebBaseNetscapePluginView.m:
3419 2006-07-11 John Sullivan <sullivan@apple.com>
3421 Reviewed by Kevin and Tim O
3423 - added support for creating a selection image with white text
3425 * WebView/WebDocumentPrivate.h:
3426 added -selectionImageForcingWhiteText: and -selectionImageRect to the private
3427 <WebDocumentSelection> protocol
3429 * Misc/WebSearchableTextView.m:
3430 (-[NSString selectionImageForcingWhiteText:]):
3431 added stub for this new method to this obsolete class to satisfy the compiler
3432 (-[NSString selectionImageRect]):
3435 * WebView/WebHTMLView.m:
3436 (-[WebHTMLView _selectionDraggingImage]):
3437 now calls -selectionImageForcingWhiteText:NO instead of just -selectionImage
3438 (-[WebHTMLView _selectionDraggingRect]):
3439 now calls selectionImageRect, to which the implementation moved
3440 (-[WebHTMLView selectionImageForcingWhiteText:]):
3441 implemented this new method by calling through to new bridge method selectionImageForcingWhiteText:
3442 (-[WebHTMLView selectionImageRect]):
3443 implemented this new method by using existing _selectionDraggingRect implementation
3445 * WebView/WebPDFView.m:
3446 (-[WebPDFView selectionImageForcingWhiteText:]):
3447 implemented by using code that was formerly in Safari
3448 (-[WebPDFView selectionImageRect]):
3449 implemented by returning selectionRect
3451 2006-07-11 Tim Omernick <timo@apple.com>
3455 <http://bugs.webkit.org/show_bug.cgi?id=9843>:
3456 Give Netscape plug-ins access to their own DOM element
3458 * Plugins/WebBaseNetscapePluginView.h:
3459 * Plugins/WebBaseNetscapePluginView.m:
3460 (-[WebBaseNetscapePluginView dealloc]):
3461 Release DOM element.
3462 (-[WebBaseNetscapePluginView getVariable:value:]):
3463 Return NPObject for plugin DOM element.
3465 * Plugins/WebNetscapePluginEmbeddedView.h:
3466 * Plugins/WebNetscapePluginEmbeddedView.m:
3467 (-[WebNetscapePluginEmbeddedView initWithFrame:plugin:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:DOMElement:]):
3468 Now takes a DOMElement, in much the same way that WebKit plug-in views take a DOMElement.
3470 * WebCoreSupport/WebFrameBridge.m:
3471 (-[WebFrameBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:DOMElement:loadManually:]):
3472 Pass DOMElement to Netscape plug-ins.
3473 (-[WebFrameBridge viewForJavaAppletWithFrame:attributeNames:attributeValues:baseURL:DOMElement:]):
3476 2006-07-11 Justin Garcia <justin.garcia@apple.com>
3478 Reviewed by levi & thatcher
3480 <http://bugs.webkit.org/show_bug.cgi?id=9642>
3481 GMail Editor: Operations that use drop down menus blow away the selection
3483 * WebView/WebHTMLView.m:
3484 (-[WebHTMLView maintainsInactiveSelection]): Maintain an inactive selection
3485 when resigning as first responder if the selection is editable
3486 or if the WebView tells us to.
3487 * WebView/WebView.m:
3488 (-[WebView maintainsInactiveSelection]): Just because a WebView is
3489 editable doesn't mean selections inside subframes will be. Return
3492 2006-07-11 Tim Omernick <timo@apple.com>
3494 Reviewed by Tim Hatcher.
3496 <rdar://problem/4622748> WebKit now uses deprecated AGL functions
3498 * Plugins/WebBaseNetscapePluginView.m:
3499 (-[WebBaseNetscapePluginView _createWindowedAGLContext]):
3500 aglSetDrawable() is deprecated in AGL 3.0. Use aglSetWindowRef() instead.
3501 (-[WebBaseNetscapePluginView _createWindowlessAGLContext]):
3502 aglSetOffScreen() is deprecated in AGL 3.0. Use CGLSetOffScreen(), which does the same thing.
3504 2006-07-11 Alexey Proskuryakov <ap@nypop.com>
3508 - http://bugs.webkit.org/show_bug.cgi?id=7808
3509 Assertion failure in -[WebBaseNetscapePluginStream dealloc] when requesting an invalid URL
3511 * Plugins/WebNetscapePluginStream.m:
3512 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
3513 Remove the early return when requesting an invalid (unsupported) URL.
3515 === Safari-521.16 ===
3517 2006-07-10 Mitz Pettel <opendarwin.org@mitzpettel.com>
3519 Reviewed by John Sullivan.
3521 - fix <rdar://problem/4621541>, aka <http://bugs.webkit.org/show_bug.cgi?id=9838>
3522 REGRESSION (r14968-r14977): View Source doesn't work for pages from the back/forward cache
3524 * WebView/WebDataSource.m:
3525 (-[WebDataSource _setPrimaryLoadComplete:]): Set our data only if the frame loader is
3526 has just loaded it (when coming from the back/forward cache, it hasn't).
3528 2006-07-10 Brady Eidson <beidson@apple.com>
3532 Resolved the console error messages people got from the new DB even if they didn't have it enabled
3534 * Misc/WebIconDatabase.m:
3535 (-[WebIconDatabase init]):
3536 Disabled initializing the IconDatabaseBridge if user is living on the old DB
3538 2006-07-10 Darin Adler <darin@apple.com>
3540 - try to fix Windows build
3542 * COM/WebFrame.h: Qualify DeprecatedString and KURL with WebCore:: prefixes.
3544 2006-07-09 Darin Adler <darin@apple.com>
3546 - try to fix Windows build
3548 * COM/WebFrame.cpp: Rename QChar to DeprecatedChar.
3550 2006-07-09 Darin Adler <darin@apple.com>
3552 - fix newlines to be consistent for all files in the COM directory
3553 (many had mixed style) and set the EOL style to "native" on them.
3555 * COM/*: Set properties and changed files.
3557 2006-07-09 Tim Omernick <timo@apple.com>
3561 <rdar://problem/4404652> Netscape plug-in mouse events broken in HiDPI
3563 Multiply global mouse coordinates by the window scale factor so that plug-ins can use GlobalToLocal() in HiDPI.
3564 This fixes many bugs involving plug-in mouse event handling in HiDPI. Most notably, the Flash player will now
3565 correctly respond to clicks.