1 2010-01-15 Jon Honeycutt <jhoneycutt@apple.com>
3 MSAA: Screen rect for <option> elements is always the zero rect
5 https://bugs.webkit.org/show_bug.cgi?id=33758
7 Reviewed by Oliver Hunt.
10 (AccessibleBase::accLocation):
11 Use elementRect() rather than boundingBoxRect(), which
12 AccessibilityListBoxOption overrides.
14 2010-01-15 Jon Honeycutt <jhoneycutt@apple.com>
16 get_accParent should try to retrieve parent AccessibilityObject, before
19 https://bugs.webkit.org/show_bug.cgi?id=22893
21 Reviewed by Darin Adler.
24 (AccessibleBase::get_accParent):
25 If the object has a parent object, return it. If not, return the
26 accessible for the WebView window.
28 2010-01-12 Jon Honeycutt <jhoneycutt@apple.com>
30 MSAA: selected, selectable, extended selectable, and multiple
31 selectable states are not reported
33 https://bugs.webkit.org/show_bug.cgi?id=33574
34 <rdar://problem/7536826>
36 Reviewed by Darin Adler.
39 (AccessibleBase::get_accState):
40 Remove the call to isMultiSelect(). Call the correctly-named
41 isMultiSelectable(), and if it returns true, set both the "extended
42 selectable" and "multiple selectable" states. Check whether the object
43 is selected or selectable, and report those states.
45 2010-01-13 Steve Falkenburg <sfalken@apple.com>
47 Reviewed by Adam Roben.
49 Add additional Geolocation interfaces in WebKit for Windows.
51 * Interfaces/IWebGeolocationPolicyListener.idl: Added.
52 * Interfaces/IWebUIDelegatePrivate.idl: Add decidePolicyForGeolocationRequest to IWebUIDelegatePrivate2.
53 Append since this version hasn't shipped.
54 * Interfaces/WebKit.idl: Add include of IWebGeolocationPolicyListener.idl.
55 * WebCoreSupport/WebChromeClient.cpp:
56 (WebChromeClient::requestGeolocationPermissionForFrame): Call into decidePolicyForGeolocationRequest.
57 * WebCoreSupport/WebGeolocationControllerClient.cpp:
58 (WebGeolocationControllerClient::WebGeolocationControllerClient): Moved *.
59 * WebGeolocationPolicyListener.cpp: Added.
60 * WebGeolocationPolicyListener.h: Added.
61 * WebKit.vcproj/Interfaces.vcproj: Added IWebGeolocationPolicyListener.
62 * WebKit.vcproj/WebKit.vcproj: Added WebGeolocationPolicyListener, WebGeolocationPolicyListener.
64 (WebView::setGeolocationProvider): Removed extraneous STDMETHODCALLTYPE.
65 (WebView::geolocationProvider): Removed extraneous STDMETHODCALLTYPE.
66 (WebView::geolocationDidChangePosition): Removed extraneous STDMETHODCALLTYPE.
67 (WebView::geolocationDidFailWithError): Removed extraneous STDMETHODCALLTYPE.
69 2010-01-12 Steve Falkenburg <sfalken@apple.com>
71 Reviewed by Adam Roben, Sam Weinig.
73 Add Geolocation interfaces in WebKit for Windows.
75 * ForEachCoClass.h: Added WebGeolocationPosition.
76 * Interfaces/IWebError.idl:
77 * Interfaces/IWebGeolocationPosition.idl: Added.
78 * Interfaces/IWebGeolocationProvider.idl: Added.
79 * Interfaces/IWebViewPrivate.idl:
80 * Interfaces/WebKit.idl:
81 * WebCoreSupport/WebGeolocationControllerClient.cpp: Added.
82 (WebGeolocationControllerClient::WebGeolocationControllerClient):
83 (WebGeolocationControllerClient::startUpdating):
84 (WebGeolocationControllerClient::stopUpdating):
85 (WebGeolocationControllerClient::lastPosition):
86 * WebCoreSupport/WebGeolocationControllerClient.h: Added.
87 * WebGeolocationPosition.cpp: Added IWebGeolocationPosition implementation.
88 * WebGeolocationPosition.h: Added IWebGeolocationPosition implementation.
89 * WebKit.vcproj/Interfaces.vcproj: Added IWebGeolocationPosition.idl, IWebGeolocationProvider.idl,
90 relocated JavaScriptCoreAPITypes.idl, WebScrollbarTypes.idl
91 * WebKit.vcproj/WebKit.vcproj: Added WebGeolocationPosition.h/.cpp, WebGeolocationControllerClient.h/cpp,
92 * WebKitClassFactory.cpp: Add WebGeolocationPosition include.
94 (WebView::initWithFrame): Create WebGeolocationControllerClient if Geolocation is enabled.
95 (WebView::setGeolocationProvider): Added Geolocation-specific method.
96 (WebView::geolocationProvider): Added Geolocation-specific method.
97 (WebView::geolocationDidChangePosition): Added Geolocation-specific method.
98 (WebView::geolocationDidFailWithError): Added Geolocation-specific method.
99 * WebView.h: Added setGeolocationProvider, geolocationProvider, geolocationDidChangePosition, geolocationDidFailWithError.
101 2010-01-11 Jon Honeycutt <jhoneycutt@apple.com>
103 MSAA: Accessibility role of <select multiple> elements is wrong
105 https://bugs.webkit.org/show_bug.cgi?id=33522
107 Reviewed by Darin Adler.
109 * AccessibleBase.cpp:
111 Map the WebCore::ListBox and WebCore::ListBoxOption roles to the MSAA
112 "list" and "list item" roles.
114 2010-01-08 Brent Fulgham <bfulgham@webkit.org>
116 Build fix, no review.
118 Protect video control logic inside ENABLE(VIDEO).
121 (WebView::enterFullscreenForNode):
122 (WebView::exitFullscreen):
125 2010-01-08 Chris Marrin <cmarrin@apple.com>
127 Reviewed by Adam Roben.
129 Implement full-screen video for Windows
130 https://bugs.webkit.org/show_bug.cgi?id=31318
132 This adds a full-screen controller, FullscreenVideoController,
133 which manages going in and out of full-screen. The actual
134 full-screen window is created and managed by logic added
135 to QTMovieWin. FullscreenVideoController also creates and
136 manages a HUD. The HUD renders and manages events to
137 control the playing video. Movie controller events go to
138 FullscreenVideoController which then sends them to HTMLMediaElement,
139 which is passed to the controller by WebView, which gets the call
140 to go into full-screen mode from HTMLMediaElement via
143 I've also updated the icons so the related sets (Play/Pause and
144 volume high/volume low/exit fullscreen) are the same size. This
145 allows me to position them using common code.
147 * WebCoreSupport/WebChromeClient.cpp:
148 (WebChromeClient::supportsFullscreenForNode):
149 (WebChromeClient::enterFullscreenForNode):
150 (WebChromeClient::exitFullscreenForNode):
151 * WebCoreSupport/WebChromeClient.h:
152 * WebKit.vcproj/WebKit.vcproj:
153 * WebKit.vcproj/fsVideoAudioVolumeHigh.png:
154 * WebKit.vcproj/fsVideoAudioVolumeLow.png:
155 * WebKit.vcproj/fsVideoExitFullscreen.png:
156 * WebKit.vcproj/fsVideoPause.png:
157 * WebKit.vcproj/fsVideoPlay.png:
159 (loadResourceIntoBuffer):
160 * FullscreenVideoController.cpp: Added.
161 * FullscreenVideoController.h: Added.
163 (WebView::enterFullscreenForNode):
164 (WebView::exitFullscreen):
167 2010-01-08 Brent Fulgham <bfulgham@webkit.org>
169 Unreviewed correction.
171 Accidentally left unnecessary modification to hdcFromContext
172 in when landing r52995.
175 (hdcFromContext): Back out unneeded modification.
177 2010-01-08 Brent Fulgham <bfulgham@webkit.org>
179 Reviewed by Adam Roben.
181 Use correct cairo surface data type for handling print operations.
182 https://bugs.webkit.org/show_bug.cgi?id=33022.
185 (scaleFactor): Handle 'scale = 0' case.
186 (WebFrame::spoolPage): Use scaleFactor helper function. Account for
187 margin size in region passed to header/footer routines.
188 (WebFrame::spoolPages): Properly clean up Cairo surface.
190 2010-01-07 Kent Tamura <tkent@chromium.org>
192 Reviewed by Maciej Stachowiak.
194 Remove COM code generation files.
195 https://bugs.webkit.org/show_bug.cgi?id=32854
197 * WebKit.vcproj/DerivedSources.make: Removed.
198 * WebKit.vcproj/build-generated-files.sh: Removed.
200 2010-01-05 Adam Roben <aroben@apple.com>
202 Make IWebView::close and destroying a WebView's HWND optional for
205 WebView will now take care of these operations itself when its last
206 reference is released, if they haven't already been done.
208 IWebView::close now also destroys the WebView's HWND. All WebKit
209 clients were already performing these operations in succession anyway,
210 or were attempting to by calling IWebView::close then destroying the
211 WebView's host window (which actually resulted in the WebView's HWND
212 leaking, and the crash in the below bug).
214 Fixes <rdar://problem/7374218> <http://webkit.org/b/32827> Crash when
215 calling IWebView::close, then releasing the WebView, without calling
218 Fixes a few WebViewDestruction tests, too.
220 Reviewed by Steve Falkenburg.
223 (WebView::~WebView): Don't try to destroy m_viewWindow here. That
224 should already have happened. Assert that this is the case.
225 (WebView::close): If m_viewWindow isn't already being destroyed,
226 destroy it now. Moved the call to revokeDragDrop() here from our
227 WM_DESTROY handler because it needs to be done before m_viewWindow is
229 (WebView::WebViewWndProc): Removed call to revokeDragDrop() that
230 close() now performs.
231 (WebView::Release): If our last reference is being released, call
232 close() so that clients don't have to. (It's harmless to call close()
233 multiple times.) We do this here instead of in the destructor because
234 close() can cause AddRef() and Release() to be called, and calling
235 those from within the destructor leads to double-destruction.
236 (WebView::setHostWindow): Removed an unnecessary (and now harmful)
238 (WebView::revokeDragDrop): Changed an assertion into a run-time check,
239 since this will now sometimes be called when m_viewWindow hasn't been
240 created yet. Changed the IsWindow call to a null-check because we
241 never hold onto a destroyed m_viewWindow.
242 (WebView::windowAncestryDidChange): If we don't have a view window,
243 stop tracking changes to our parent's active state.
245 2010-01-05 Adam Roben <aroben@apple.com>
247 Make it safe to call IWebView::close when IWebView::initWithFrame
250 Part of <rdar://problem/7374218> <http://webkit.org/b/32827> Crash
251 when IWebView::close, then releasing the WebView, without calling
254 Reviewed by Steve Falkenburg.
257 (WebView::close): Null-check m_page and m_preferences before using
258 them. They will be null if initWithFrame was never called.
260 2010-01-05 Adam Roben <aroben@apple.com>
262 Add assertions to catch double-destruction of WebViews earlier
264 I basically copied the m_deletionHasBegun logic from WTF::RefCounted.
266 Fixes <http://webkit.org/b/33219>.
268 Reviewed by Darin Adler.
271 (WebView::WebView): Initialize m_deletionHasBegun
272 (WebView::AddRef): Assert that deletion hasn't already begun.
273 (WebView::Release): Assert that deletion hasn't already begun, then
274 record when deletion *does* begin.
276 * WebView.h: Added m_deletionHasBegun.
278 2010-01-05 Adam Roben <aroben@apple.com>
280 Remove dead code in WebViewWndProc
282 Fixes <http://webkit.org/b/33218>.
284 Reviewed by Darin Adler.
287 (WebView::WebViewWndProc): Removed a redundant isBeingDestroyed check.
288 We bail out much earlier in this function if isBeingDestroyed is true.
290 2010-01-04 Jon Honeycutt <jhoneycutt@apple.com>
292 MSAA: Accessibility role of <select> elements is wrong
294 https://bugs.webkit.org/show_bug.cgi?id=33192
296 Reviewed by Sam Weinig.
298 * AccessibleBase.cpp:
300 Map WebCore::PopUpButtonRole to MSAA's ROLE_SYSTEM_COMBOBOX.
302 2010-01-04 Alexey Proskuryakov <ap@apple.com>
304 Reviewed by Darin Adler.
306 https://bugs.webkit.org/show_bug.cgi?id=33181
307 The first letter is not removed properly from inline input hole
309 * WebView.cpp: (WebView::onIMEEndComposition): If composition is ended before it was
310 confirmed, cancel it.
312 2010-01-04 Alexey Proskuryakov <ap@apple.com>
314 Reviewed by Darin Adler.
316 https://bugs.webkit.org/show_bug.cgi?id=33161
317 Assertion failure in WebView when using Chinese Simplified IME
319 * WebView.cpp: (WebView::onIMERequestCharPosition): Changed the assertion into release mode
320 check. We can't make assertions about arguments passed from outside WebKit.
322 2010-01-04 Alexey Proskuryakov <ap@apple.com>
324 Reviewed by Darin Adler.
326 https://bugs.webkit.org/show_bug.cgi?id=33157
327 Implement TextInput logging channel on Windows
329 * WebKitLogging.cpp: (WebKitInitializeLoggingChannelsIfNecessary):
331 Added a TextInput channel in place of unused Network one.
334 (WebView::WebViewWndProc): Changed onIMERequest to return result directly. We never forward
335 it to DefWindowProc, so there is no need to return an unused boolean result for "handled".
336 (WebView::onIMEStartComposition): Added logging.
337 (imeCompositionArgumentNames): A helper function for detailed logging in onIMEComposition.
338 (imeNotificationName): A helper function for detailed logging in onIMENotify.
339 (imeRequestName): A helper function for detailed logging in onIMERequest.
340 (WebView::onIMEComposition): Added logging.
341 (WebView::onIMEEndComposition): Ditto.
342 (WebView::onIMEChar): Ditto.
343 (WebView::onIMENotify): Ditto.
344 (WebView::onIMERequestCharPosition): Changed to return result directly.
345 (WebView::onIMERequestReconvertString): Ditto.
346 (WebView::onIMERequest): Changed to return result directly. Added logging.
347 (WebView::onIMESelect): Added logging.
348 (WebView::onIMESetContext): Added logging.
350 * WebView.h: onIMERequest functions now return result directly.
353 2010-01-04 Adam Roben <aroben@apple.com>
357 Fixes <http://webkit.org/b/33167>.
359 Reviewed by Sam Weinig.
361 * WebKit.vcproj/WebKit.sln: Added WebKitAPITest.vcproj. It builds just
362 after DumpRenderTree.vcproj.
364 2010-01-04 Dan Bernstein <mitz@apple.com>
366 Reviewed by Ada Chan and Mark Rowe.
368 Updated copyright string
370 * WebKit.vcproj/WebKit.rc:
372 2009-12-22 Darin Adler <darin@apple.com>
374 Another try at fixing Windows build.
376 * WebKitPrefix.cpp: Touch it.
378 2009-12-22 Darin Adler <darin@apple.com>
380 Reviewed by Mark Rowe.
382 Turn off datagrid by default, at least for all platforms Apple ships.
383 The datagrid implementation isn't ready for general web use yet.
385 * WebKit.vcproj/WebKit.vcproj: Turn off datagrid by default.
387 2009-12-21 Adam Roben <aroben@apple.com>
389 Fix non-ACCELERATED_COMPOSITING builds
391 * WebPreferences.cpp:
392 (WebPreferences::acceleratedCompositingEnabled): Guard use of
393 WKCACFLayerRenderer with USE(ACCELERATED_COMPOSITING).
395 2009-12-18 Adam Roben <aroben@apple.com>
397 Add IWebPreferencesPrivate::[set]AcceleratedCompositingEnabled
399 Fixes <http://webkit.org/b/32745>.
401 Reviewed by Ada Chan.
403 * Interfaces/IWebPreferencesPrivate.idl: Added
404 [set]AcceleratedCompositingEnabled.
406 * Interfaces/WebKit.idl: Touched to force a build.
408 * WebPreferenceKeysPrivate.h: Added
409 WebKitAcceleratedCompositingEnabledPreferenceKey.
411 * WebPreferences.cpp:
412 (WebPreferences::initializeDefaultSettings): Make accelerated
413 compositing be on by default.
414 (WebPreferences::setAcceleratedCompositingEnabled): Store the new
416 (WebPreferences::acceleratedCompositingEnabled): If accelerated
417 compositing isn't available, return false. Otherwise, return the value
418 stored in preferences.
420 * WebPreferences.h: Added [set]AcceleratedCompositingAvailable.
423 (WebView::notifyPreferencesChanged): Just pass the value from
424 WebPreferences on down.
426 2009-12-17 Jon Honeycutt <jhoneycutt@apple.com>
428 MSAA: Accessibility role of list items is wrong
430 https://bugs.webkit.org/show_bug.cgi?id=32688
432 Reviewed by Adam Roben.
434 * AccessibleBase.cpp:
436 Make the WebCore list item role map to the MSAA list item role.
438 2009-12-17 Jon Honeycutt <jhoneycutt@apple.com>
440 MSAA: Accessibility role of list markers is wrong
442 https://bugs.webkit.org/show_bug.cgi?id=32687
444 Reviewed by Adam Roben.
446 * AccessibleBase.cpp:
448 Make the WebCore list marker role map to the MSAA static text role.
450 2009-12-18 Adam Roben <aroben@apple.com>
452 Add #includes needed after WebCore clean-up
454 Rubber-stamped by Anders Carlsson.
456 Fixes <http://webkit.org/b/32718>.
458 * WebCoreSupport/WebContextMenuClient.cpp:
460 * WebHTMLRepresentation.cpp:
464 2009-12-17 Benjamin Otte <otte@gnome.org>
466 Reviewed by Adam Roben.
468 Don't include all JSC headers everywhere
469 https://bugs.webkit.org/show_bug.cgi?id=32663
471 * WebCoreLocalizedStrings.cpp: Added now-needed #include of
474 2009-12-17 Adam Roben <aroben@apple.com>
476 Remove WebKit.sln's Debug_All and Debug_Internal configurations
478 These configurations aren't buildable by people outside of Apple, and
479 Apple doesn't use this solution file.
481 Fixes <http://webkit.org/b/31000> Windows WebKit Build Configuration
482 should default to Debug instead of Debug_all.
484 Rubber-stamped by Dan Bernstein.
486 * WebKit.vcproj/WebKit.sln:
488 2009-12-16 Jon Honeycutt <jhoneycutt@apple.com>
490 MSAA: Accessibility role of text nodes is wrong
492 https://bugs.webkit.org/show_bug.cgi?id=32631
493 <rdar://problem/7369084>
495 Reviewed by Alice Liu.
497 * AccessibleBase.cpp:
499 If the role is WebCore::EditableTextRole, return ROLE_SYSTEM_TEXT.
500 (AccessibleBase::role):
501 Call roleValueForMSAA().
503 2009-12-14 Brent Fulgham <bfulgham@webkit.org>
505 Reviewed by Adam Roben.
507 Provide working printing support for WinCairo port.
510 (WebFrame::spoolPage): Conditionalize initialization of
511 PlatformGraphicsContext handling for CG vs. Cairo.
512 (scaleFactor): Add helper function.
513 (hdcFromContext): Add helper function.
514 (WebFrame::drawHeader): Correct Cairo variation.
515 (WebFrame::drawFooter): Correct Cairo variation.
516 (WebFrame::spoolPages): Correct Cairo variation.
518 2009-12-13 Sam Weinig <sam@webkit.org>
520 Reviewed by Dan Bernstein.
522 Fix for https://bugs.webkit.org/show_bug.cgi?id=32499
523 Add client based Geolocation provider
525 Add first cut of a client based Geolocation provider. This is guarded by
526 ENABLE(CLIENT_BASED_GEOLOCATION) and is off by default for now. This adds a
527 GeolocationControllerClient interface that no-one currently implements,
528 but will in a subsequent patch.
531 (WebView::initWithFrame):
533 2009-12-14 Adam Roben <aroben@apple.com>
535 Change IWebFramePrivate's vtable to be compatible with Safari 4.0.4
537 Reviewed by Steve Falkenburg.
539 Fixes <http://webkit.org/b/32433> REGRESSION (r51567): Right click on
540 a link element crashes WebKit nightly
542 * Interfaces/IWebFramePrivate.idl: Moved pauseSVGAnimation to the end
543 of the interface so the vtable that Safari 4.0.4 sees is unchanged.
545 2009-12-14 Adam Roben <aroben@apple.com>
549 * WebKit.vcproj/WebKit.vcproj: Added $(DXSDK_DIR)\Lib\x86 to the
550 libpath for all non-Cairo configurations (it was missing from most of
553 2009-12-11 Chris Marrin <cmarrin@apple.com>
555 Reviewed by Jon Honeycutt.
557 Added icons for full-screen video on Windows
558 https://bugs.webkit.org/show_bug.cgi?id=31318
560 * WebKit.vcproj/WebKit.rc:
561 * WebKit.vcproj/WebKit.vcproj:
562 * WebKit.vcproj/fsVideoAudioVolumeHigh.png: Added.
563 * WebKit.vcproj/fsVideoAudioVolumeLow.png: Added.
564 * WebKit.vcproj/fsVideoExitFullscreen.png: Added.
565 * WebKit.vcproj/fsVideoPause.png: Added.
566 * WebKit.vcproj/fsVideoPlay.png: Added.
567 * WebKit.vcproj/resource.h:
569 2009-12-11 Chris Marrin <cmarrin@apple.com>
571 Reviewed by Adam Roben.
573 Delay load DLLs for accelerated compositing
574 https://bugs.webkit.org/show_bug.cgi?id=31856
576 If the DLLs (d3d9 and QuartzCore). are not present it
577 turns off accelerated compositing and avoids calling
578 any of the functions in the DLLs.
581 (WebView::notifyPreferencesChanged):
583 2009-12-10 Jon Honeycutt <jhoneycutt@apple.com>
585 Pass more information about a plug-in to the PluginHalterDelegate
587 Reviewed by Adam Roben.
589 * Interfaces/IWebPluginHalterDelegate.idl:
592 * WebCoreSupport/WebPluginHalterClient.cpp:
593 (WebPluginHalterClient::shouldHaltPlugin):
594 Update for new parameters. Pass them when making the delegate call.
596 * WebCoreSupport/WebPluginHalterClient.h:
597 Update for new parameters.
599 2009-12-09 Brent Fulgham <bfulgham@webkit.org>
601 Revert incorrect commit-box update r51911.
602 It mistakenly set the selectAll implementation in the
606 (WebFrame::deselectAll):
608 2009-12-09 Brent Fulgham <bfulgham@webkit.org>
610 Reviewed by Darin Adler.
612 Provide an implementation for 'selectAll'
613 https://bugs.webkit.org/show_bug.cgi?id=32296
616 (WebFrame::selectAll): Implement "SelectAll" command.
618 2009-12-09 Brent Fulgham <bfulgham@webkit.org>
620 Reviewed by Darin Adler.
622 Provide an implementation for 'selectAll'
623 https://bugs.webkit.org/show_bug.cgi?id=32296
626 (WebFrame::selectAll): Implement "SelectAll" command.
628 2009-12-08 Chris Marrin <cmarrin@apple.com>
630 Reviewed by Adam Roben.
632 Delay load DLLs for accelerated compositing
633 https://bugs.webkit.org/show_bug.cgi?id=31856
635 If the DLLs (d3d9 and QuartzCore). are not present it
636 turns off accelerated compositing and avoids calling
637 any of the functions in the DLLs.
642 2009-12-08 Adam Roben <aroben@apple.com>
646 * Interfaces/WebKit.idl: Touched this to force Interfaces.vcproj to rebuild.
648 2009-12-08 John Sullivan <sullivan@apple.com>
650 Reviewed by Dan Bernstein
652 Split two-clause assertions into two separate assertions.
654 * DOMHTMLClasses.cpp:
655 (DOMHTMLInputElement::isTextField):
656 Split a two-clause assertion into two separate assertions.
657 (DOMHTMLInputElement::rectOnScreen):
658 Added the two assertions here that all other functions in this group shared.
659 (DOMHTMLInputElement::selectedRange):
660 Split a two-clause assertion into two separate assertions.
661 (DOMHTMLInputElement::setAutofilled):
662 Split a two-clause assertion into two separate assertions.
663 (DOMHTMLInputElement::isAutofilled):
664 Split a two-clause assertion into two separate assertions.
666 2009-12-08 Nikolas Zimmermann <nzimmermann@rim.com>
668 Rubber-stamped by Maciej Stachowiak.
670 Turn on (SVG) Filters for Win.
671 https://bugs.webkit.org/show_bug.cgi?id=32224
673 * WebKit.vcproj/WebKit.vcproj:
675 2009-12-08 John Sullivan <sullivan@apple.com>
677 Add isAutofilled getter to match existing setter.
679 Reviewed by Ada Chan.
681 * DOMHTMLClasses.cpp:
682 (DOMHTMLInputElement::isAutofilled):
683 Implemented new cover function.
686 Declared new cover function.
688 * Interfaces/DOMPrivate.idl:
689 Declared new interface.
691 2009-12-07 Gavin Barraclough <barraclough@apple.com>
693 Reviewed by NOBODY (Windows build fix part III).
696 (WebView::stringByEvaluatingJavaScriptFromString):
698 2009-12-07 Gavin Barraclough <barraclough@apple.com>
700 Reviewed by NOBODY (Windows build fix part II).
703 (WebView::stringByEvaluatingJavaScriptFromString):
705 2009-12-03 Brady Eidson <beidson@apple.com>
707 Reviewed by Sam Weinig.
709 <rdar://problem/7214236> and http://webkit.org/b/32052 - Implement HTML5 state object history API
711 * Interfaces/IWebFrameLoadDelegatePrivate2.idl:
712 * WebCoreSupport/WebFrameLoaderClient.cpp:
713 (WebFrameLoaderClient::dispatchDidPushStateWithinPage):
714 (WebFrameLoaderClient::dispatchDidReplaceStateWithinPage):
715 (WebFrameLoaderClient::dispatchDidPopStateWithinPage):
716 * WebCoreSupport/WebFrameLoaderClient.h:
718 2009-12-03 Pavel Feldman <pfeldman@dhcp-172-28-174-220.spb.corp.google.com>
720 Reviewed by Timothy Hatcher.
722 Web Inspector: Simplify the settings support in inspector controller.
724 https://bugs.webkit.org/show_bug.cgi?id=32076
726 * WebCoreSupport/WebInspectorClient.cpp:
727 (WebInspectorClient::attachWindow):
728 (WebInspectorClient::detachWindow):
729 (WebInspectorClient::showWindowWithoutNotifications):
730 * WebCoreSupport/WebInspectorClient.h:
732 2009-12-03 Ben Murdoch <benm@google.com>
734 Reviewed by Brady Eidson.
736 [Android] The FrameLoaderClient is unaware of BackForwardList changes.
737 https://bugs.webkit.org/show_bug.cgi?id=31914
739 * WebCoreSupport/WebFrameLoaderClient.cpp:
740 (WebFrameLoaderClient::dispatchDidAddBackForwardItem): Add an empty implementation. Method added to FrameLoaderClient by Android (see bug).
741 (WebFrameLoaderClient::dispatchDidRemoveBackForwardItem): ditto.
742 (WebFrameLoaderClient::dispatchDidChangeBackForwardIndex): ditto.
743 * WebCoreSupport/WebFrameLoaderClient.h:
745 2009-12-02 Timothy Hatcher <timothy@apple.com>
747 Move setValueForUser to the end of the DOMHTMLInputElement interface
748 so it is fine for binary compatibility.
750 Directed by Steve Falkenburg.
752 * Interfaces/DOMHTML.idl:
754 2009-12-02 Timothy Hatcher <timothy@apple.com>
756 Expose setValueForUser for the COM DOMHTMLInputElement.
758 <rdar://problem/6760590> Would like a way to detect a login form AutoFill from JavaScript
760 Reviewed by Dan Bernstein.
762 * DOMHTMLClasses.cpp:
763 (DOMHTMLInputElement::setValueForUser):
764 * Interfaces/DOMHTML.idl:
766 2009-12-01 Nikolas Zimmermann <nzimmermann@rim.com>
768 Not reviewed. Try to fix windows build.
772 2009-12-01 Nikolas Zimmermann <nzimmermann@rim.com>
774 Reviewed by Simon Fraser.
776 Add SVG animation test framework with 'snapshot' functionality
777 https://bugs.webkit.org/show_bug.cgi?id=31897
779 Add API used by the new 'sampleSVGAnimationForElementAtTime' DRT method,
780 forwarding the call to SVGDocumentExtensions, if SVG is enabled.
782 Implemented just like the existing pauseAnimation* methods for CSS animations.
784 * Interfaces/IWebFramePrivate.idl:
786 (WebFrame::pauseSVGAnimation):
789 2009-11-30 Adam Roben <aroben@apple.com>
791 Fix double-free of BSTRs passed to WebNavigationData::createInstance
793 WebFrameLoaderClient::updateGlobalHistory was converting
794 WebCore::Strings to WebCore::BStrings, then passing them to
795 WebNavigationData::createInstance. But the latter function takes BSTR
796 parameters and adopts them into WebCore::BStrings. So the end result
797 was that two WebCore::BStrings would end up freeing each underlying
800 The fix is to only convert to WebCore::BString inside
803 Fixes <http://webkit.org/b/31998> <rdar://problem/7383452> REGRESSION
804 (r49564): Crash in updateGlobalHistory when running Javascript iBench
807 I couldn't find a way to reproduce this in DumpRenderTree.
809 Reviewed by Steve Falkenburg.
811 * WebCoreSupport/WebFrameLoaderClient.cpp:
812 (WebFrameLoaderClient::updateGlobalHistory): Pass WebCore::Strings to
813 WebNavigationData::createInstance.
815 * WebNavigationData.cpp:
816 (WebNavigationData::WebNavigationData):
817 (WebNavigationData::createInstance):
818 * WebNavigationData.h:
819 Changed to take const WebCore::String&s instead of BSTRs and to
820 convert the Strings to BStrings at this level.
822 2009-11-30 Steve Falkenburg <sfalken@apple.com>
824 Reviewed by Adam Roben.
826 WebKit clients that don't implement didClearWindowObjectForFrameInScriptWorld should fall back to didClearWindowObject
827 https://bugs.webkit.org/show_bug.cgi?id=31986
830 (WebFrame::dispatchDidClearWindowObjectInWorld): Fall back if E_NOTIMPL returned.
832 2009-11-24 Chris Marrin <cmarrin@apple.com>
834 Another Windows build fix
836 Got rid of d3d.lib and d3dx9.lib dependency. Not needed until
837 we turn on ACCELERATED_COMPOSITING
839 * WebKit.vcproj/WebKit.vcproj:
841 2009-11-24 Chris Marrin <cmarrin@apple.com>
845 Got rid of QuartzCore.lib dependency. Not needed until
846 we turn on ACCELERATED_COMPOSITING
848 * WebKit.vcproj/WebKit.vcproj:
850 2009-11-24 Chris Marrin <cmarrin@apple.com>
852 Reviewed by Simon Fraser.
854 Implement accelerated compositing
855 https://bugs.webkit.org/show_bug.cgi?id=27314
857 This is the WebKit side of the implementation. It plumbs the root layer
858 from WebCore. It also makes changes to WebView which places the
859 backing store of the page into the root compositing layer so it is
860 properly composited with all the other layers. This deals with resizing,
861 scrolling, and incremental repaint of the page.
863 * WebCoreSupport/WebChromeClient.cpp:
864 (WebChromeClient::attachRootGraphicsLayer):
865 (WebChromeClient::scheduleCompositingLayerSync):
866 * WebCoreSupport/WebChromeClient.h:
867 (WebChromeClient::setNeedsOneShotDrawingSynchronization):
868 * WebKit.vcproj/WebKit.vcproj:
873 (WebView::scrollBackingStore):
876 (WebView::setRootChildLayer):
877 (WebView::setAcceleratedCompositing):
878 (WebView::setRootLayerContents):
880 (WebView::isAcceleratedCompositing):
881 (WebView::resizeLayerWindow):
882 (WebView::layerWindowBecameVisible):
883 (WebView::setRootLayerNeedsDisplay):
885 2009-11-23 Laszlo Gombos <laszlo.1.gombos@nokia.com>
887 Reviewed by Kenneth Rohde Christiansen.
889 Include "config.h" to meet Coding Style Guidelines
890 https://bugs.webkit.org/show_bug.cgi?id=31792
893 * WebScriptObject.cpp:
895 2009-11-21 Jon Honeycutt <jhoneycutt@apple.com>
897 Windows build fix. Unreviewed.
899 * Interfaces/IWebSerializedJSValue.idl:
901 2009-11-20 Jon Honeycutt <jhoneycutt@apple.com>
903 DOMElement::tagName() is unimplemented
905 https://bugs.webkit.org/show_bug.cgi?id=31746
907 Reviewed by Darin Adler.
909 * DOMCoreClasses.cpp:
910 (DOMElement::tagName):
911 Create a BString from the element's tag name, and release its BSTR
914 2009-11-20 Jon Honeycutt <jhoneycutt@apple.com>
916 DOMNode::childNodes() is unimplemented
918 https://bugs.webkit.org/show_bug.cgi?id=31745
920 Reviewed by Darin Adler.
922 * DOMCoreClasses.cpp:
923 (DOMNode::childNodes):
924 Create a DOMNodeList from the node's child nodes.
926 2009-11-20 Dave Hyatt <hyatt@apple.com>
928 Reviewed by Jon Honeycutt.
930 Change WebSerializedJSValue on Windows to have a zero-argument createInstance call. Move the
931 serialization into a separate serialize() function that can be called after the object has been
934 Fix a typo in serialize() caused when fixing build bustage (put a ! back in).
936 * Interfaces/IWebSerializedJSValue.idl:
937 * WebSerializedJSValue.cpp:
938 (WebSerializedJSValue::WebSerializedJSValue):
939 (WebSerializedJSValue::createInstance):
940 (WebSerializedJSValue::serialize):
941 (WebSerializedJSValue::deserialize):
942 * WebSerializedJSValue.h:
944 2009-11-20 Brian Weinstein <bweinstein@apple.com>
946 Reviewed by Dave Hyatt.
948 Another go at the Windows Build Fix - this is a couple steps of it,
949 so a little more involved than most build fixes.
951 * Interfaces/IWebSerializedJSValue.idl:
952 * Interfaces/JavaScriptCoreAPITypes.idl:
953 * WebKit.vcproj/Interfaces.vcproj:
954 * WebSerializedJSValue.cpp:
955 (WebSerializedJSValue::deserialize):
956 * WebSerializedJSValue.h:
958 2009-11-20 Brian Weinstein <bweinstein@apple.com>
960 Reviewed by Dave Hyatt.
962 Build fix for Windows - only declare JSContextRef once, instead
963 of in two different idl files. Create a new file to hold the
964 definition of JSContextRef.
966 * Interfaces/IWebFrameLoadDelegate.idl:
967 * Interfaces/IWebSerializedJSValue.idl:
968 * Interfaces/JavaScriptCoreAPITypes.idl: Added.
969 * Interfaces/WebKit.idl:
970 * WebKit.vcproj/Interfaces.vcproj:
972 2009-11-20 Dave Hyatt <hyatt@apple.com>
974 Reviewed by Oliver Hunt and Jon Honeycutt.
976 Add support for WebSerializedJSValue to WebKit. This object wraps the SerializedScriptValue functionality in WebCore
977 and exposes the ability to do JS value serialization/deserialization to WebKit clients.
979 * Interfaces/IWebSerializedJSValue.idl: Added.
980 * Interfaces/WebKit.idl:
981 * WebKit.vcproj/WebKit.vcproj:
982 * WebSerializedJSValue.cpp: Added.
983 (WebSerializedJSValue::WebSerializedJSValue):
984 (WebSerializedJSValue::~WebSerializedJSValue):
985 (WebSerializedJSValue::createInstance):
986 (WebSerializedJSValue::AddRef):
987 (WebSerializedJSValue::Release):
988 (WebSerializedJSValue::QueryInterface):
989 (WebSerializedJSValue::deserialize):
990 * WebSerializedJSValue.h: Added.
992 2009-11-19 Alexey Proskuryakov <ap@apple.com>
994 Reviewed by Darin Adler.
996 https://bugs.webkit.org/show_bug.cgi?id=31690
997 Make SocketStreamHandleCFNet work on Windows
999 * WebDownloadCFNet.cpp:
1000 (WebDownload::init):
1001 (WebDownload::initWithRequest):
1002 (WebDownload::initToResumeWithBundle):
1003 Update for loaderRunLoop() now being in its own header.
1005 2009-11-19 Eric Carlson <eric.carlson@apple.com>
1007 Reviewed by Dan Bernstein.
1009 <rdar://problem/7035231>
1010 Support closed caption in <video> element
1012 * WebCoreLocalizedStrings.cpp:
1013 (WebCore::localizedMediaControlElementString):
1014 (WebCore::localizedMediaControlElementHelpText):
1015 Add accessibility help strings for media controller closed caption button.
1017 2009-11-18 Michelangelo De Simone <micdesim@gmail.com>
1019 Reviewed by Darin Adler.
1021 Fix for <https://bugs.webkit.org/show_bug.cgi?id=27959>.
1022 Support for validationMessage attribute, as per HTML5 specs.
1024 * WebCoreLocalizedStrings.cpp:
1025 (WebCore::validationMessageValueMissingText):
1026 (WebCore::validationMessageTypeMismatchText):
1027 (WebCore::validationMessagePatternMismatchText):
1028 (WebCore::validationMessageTooLongText):
1029 (WebCore::validationMessageRangeUnderflowText):
1030 (WebCore::validationMessageRangeOverflowText):
1031 (WebCore::validationMessageStepMismatchText):
1033 2009-11-18 Daniel Bates <dbates@webkit.org>
1035 Reviewed by Darin Adler.
1037 https://bugs.webkit.org/show_bug.cgi?id=31186
1039 Changes associated with renaming RenderTextControl::isUserEdited.
1041 * DOMHTMLClasses.cpp:
1042 (DOMHTMLInputElement::isUserEdited): Formerly named isUserEdited.
1043 (DOMHTMLTextAreaElement::isUserEdited): Ditto.
1045 2009-11-12 Jon Honeycutt <jhoneycutt@apple.com>
1047 Implement DOMHTMLInputElement::replaceCharactersInRange().
1049 https://bugs.webkit.org/show_bug.cgi?id=31492
1051 Reviewed by Dan Bernstein.
1053 * DOMHTMLClasses.cpp:
1054 (DOMHTMLInputElement::replaceCharactersInRange):
1055 Get the text of the input field. Replace the given range with the
1056 replacement text, and set this new string as the input element's value.
1057 Select from index to the end of the field. This matches the
1058 implementation in the Obj-C bindings.
1060 2009-11-12 Jon Honeycutt <jhoneycutt@apple.com>
1062 DOMHTMLOptionElement is missing some functionality.
1064 https://bugs.webkit.org/show_bug.cgi?id=31491
1066 Reviewed by Dan Bernstein.
1068 * DOMHTMLClasses.cpp:
1069 (DOMHTMLOptionElement::text):
1070 Cast m_element to an HTMLOptionElement, and call its text() function.
1071 (DOMHTMLOptionElement::label):
1074 2009-11-12 Jon Honeycutt <jhoneycutt@apple.com>
1076 DOMHTMLSelectElement is missing some implementation.
1078 https://bugs.webkit.org/show_bug.cgi?id=31489
1080 Reviewed by Dan Bernstein.
1082 * DOMHTMLClasses.cpp:
1083 (DOMHTMLSelectElement::options):
1084 Cast m_element to an HTMLSelectElement. If it has no options, return
1085 E_FAIL. Otherwise, create a DOMHTMLOptionsCollection to wrap the
1086 options, and return it.
1087 (DOMHTMLSelectElement::activateItemAtIndex):
1088 If the index is out of bounds, return E_FAIL. Otherwise, select the
1091 2009-11-12 Jon Honeycutt <jhoneycutt@apple.com>
1093 DOMHTMLOptionsCollection is missing some implementation.
1095 https://bugs.webkit.org/show_bug.cgi?id=31488
1097 Reviewed by Dan Bernstein.
1099 * DOMHTMLClasses.cpp:
1100 (DOMHTMLOptionsCollection::DOMHTMLOptionsCollection):
1101 Initialize m_collection.
1102 (DOMHTMLOptionsCollection::createInstance):
1103 Create a DOMHTMLOptionsCollection. If we fail to query for
1104 IDOMHTMLOptionsCollection, delete it, and return 0. Otherwise, return
1106 (DOMHTMLOptionsCollection::length):
1107 (DOMHTMLOptionsCollection::item):
1108 Create a DOMNode for the WebCore Node. If this is 0, return E_FAIL.
1109 (DOMHTMLOptionsCollection::namedItem):
1110 Correct the signature of this function.
1113 Declare DOMHTMLOptionsCollection::createInstance(). Correct the
1114 signature of namedItem() to match IDOMHTMLOptionsCollection. Add a
1115 member to DOMHTMLOptionsCollection to hold the WebCore object.
1117 2009-11-12 Jon Honeycutt <jhoneycutt@apple.com>
1119 DOMHTMLInputElement::rectOnScreen() returns the wrong rect
1121 https://bugs.webkit.org/show_bug.cgi?id=31487
1123 Reviewed by Darin Adler.
1125 * DOMHTMLClasses.cpp:
1126 (DOMHTMLInputElement::rectOnScreen):
1127 Return the rect on screen, not the rect in the window.
1129 2009-11-17 Brent Fulgham <bfulgham@webkit.org>
1131 Reviewed by NOBODY - Build Fix.
1133 Correct build error in Debug_Cairo target after @49705.
1135 * WebKit.vcproj/WebKit.vcproj: Revise JavaScriptCore.lib
1136 dependency to have proper "_debug" suffix needed by
1137 the Debug_Cairo target.
1139 2009-11-17 Brian Weinstein <bweinstein@apple.com>
1141 Reviewed by NOBODY - Build Fix.
1143 Touch files to try to fix the build.
1145 * Interfaces/IWebInspector.idl:
1146 * Interfaces/WebKit.idl:
1147 * WebKit.vcproj/Interfaces.vcproj:
1149 2009-11-17 Pavel Feldman <pfeldman@chromium.org>
1151 Reviewed by Timothy Hatcher.
1153 Web Inspector: Make DRT show web inspector for tests in inspector/ folder.
1154 - Updated DRT to show/close inspector for all tests under /inspector
1155 - Introduced LayoutTestController::setTimelineProfilingEnabled and
1156 WebInspector::setTimelineProfilingEnabled beside setJavaScriptProfilingEnabled
1157 - Removed reload on each inspector test
1158 - Renamed fast/inspector to fast/inspector-support in order not to trigger
1159 inspector for those.
1160 - Reimplemented timeline tests in order to get rid of reload there.
1161 - Moved tests that don't require harness into the fast group.
1163 https://bugs.webkit.org/show_bug.cgi?id=31472
1165 * Interfaces/IWebInspector.idl:
1167 (WebInspector::isTimelineProfilingEnabled):
1168 (WebInspector::setTimelineProfilingEnabled):
1171 2009-11-13 Adam Roben <aroben@apple.com>
1175 * Interfaces/WebKit.idl: Touch this to force interfaces to rebuild.
1177 2009-11-13 Adam Roben <aroben@apple.com>
1179 Tell the WebFrameLoadDelegate when window objects in isolated worlds
1182 Fixes <http://webkit.org/b/31124>.
1184 Reviewed by Dave Hyatt.
1186 * Interfaces/IWebFrameLoadDelegatePrivate2.idl: Added
1187 didClearWindowObjectForFrameInScriptWorld.
1190 (WebFrame::dispatchDidClearWindowObjectInWorld):
1192 Replaced windowObjectCleared with this function. If the delegate
1193 implements IWebFrameLoadDelegatePrivate2, call
1194 didClearWindowObjectForFrameInScriptWorld. Otherwise, if the passed-in
1195 world is the mainThreadNormalWorld(), call
1196 didClearWindowObjectForFrame.
1198 * WebScriptWorld.cpp:
1199 (allWorlds): Added. Returns a HashMap of all the WebScriptWorlds in
1201 (WebScriptWorld::WebScriptWorld): Add ourselves to allWorlds().
1202 (WebScriptWorld::~WebScriptWorld): Remove ourselves from allWorlds().
1203 (WebScriptWorld::standardWorld): Added this non-COM getter for the
1204 standard world, which the COM getter now calls through to.
1205 (WebScriptWorld::findOrCreateWorld): Added. Returns the existing
1206 WebScriptWorld for this DOMWrapperWorld, or a new one if one doesn't
1209 * WebScriptWorld.h: Added new standardWorld overload, made one
1210 overload of createInstance private, and added findOrCreateWorld.
1212 2009-11-13 Adam Roben <aroben@apple.com>
1216 * Interfaces/WebKit.idl: Un-sort the #includes again. Apparently they
1217 are order-dependent!
1219 2009-11-13 Adam Roben <aroben@apple.com>
1221 Touch WebKit.idl to fix the Windows build
1223 * Interfaces/WebKit.idl: Sorted #includes.
1225 2009-11-13 Adam Roben <aroben@apple.com>
1227 Finish replacing worldIDs with world objects
1229 The only remaining use of worldIDs was in a method only used by DRT
1230 for the isolated worlds tests.
1232 Fixes <http://webkit.org/b/31414> Replace worldIDs with world objects
1234 Reviewed by Mark Rowe.
1236 * Interfaces/IWebFramePrivate.idl:
1238 (WebFrame::stringByEvaluatingJavaScriptInScriptWorld):
1240 Renamed from stringByEvaluatingJavaScriptInIsolatedWorld. Now takes an
1241 IWebScriptWorld instead of a worldID, so we don't need to maintain a
1242 map of worldID -> world anymore.
1244 2009-11-12 Shinichiro Hamaji <hamaji@chromium.org>
1246 Reviewed by Darin Adler.
1248 externalRepresentation should take Frame as the argument
1249 https://bugs.webkit.org/show_bug.cgi?id=31393
1251 No new tests as this is just a refactoring.
1254 (WebFrame::renderTreeAsExternalRepresentation):
1256 2009-11-12 Adam Roben <aroben@apple.com>
1258 Replace worldIDs with world objects
1260 WebScriptWorld is the new object that represents a world. The only
1261 place worldID is still used is in
1262 IWebFramePrivate::stringByEvaluatingJavaScriptInIsolatedWorld, but
1263 that will change soon.
1265 Part of <http://webkit.org/b/31414> Implement new SPI for dealing with
1266 user scripts/stylesheets and isolated worlds
1268 Reviewed by Sam Weinig.
1270 * ForEachCoClass.h: Added WebScriptWorld.
1272 * Interfaces/IWebFramePrivate.idl: Replaced contextForWorldID with
1275 * Interfaces/IWebScriptWorld.idl: Added.
1277 * Interfaces/IWebViewPrivate.idl: Changed the user script/stylesheet
1278 functions to take an IWebScriptWorld instead of a worldID.
1280 * Interfaces/WebKit.idl: Added WebScriptWorld.
1283 (WebFrame::contextForWorld): Renamed from contextForWorldID. Now takes
1285 (WebFrame::stringByEvaluatingJavaScriptInIsolatedWorld): Moved the
1286 bizarre world caching/creation logic that DRT depends on here from the
1287 findWorld function in ScriptController.cpp. Updated to use
1288 ScriptController::executeScriptInWorld instead of
1289 ScriptController::executeScriptInIsolatedWorld.
1291 * WebFrame.h: Replaced contextForWorldID with contextForWorld.
1293 * WebScriptWorld.cpp: Added.
1294 (WebScriptWorld::WebScriptWorld):
1295 (WebScriptWorld::~WebScriptWorld):
1296 (WebScriptWorld::createInstance):
1297 (WebScriptWorld::AddRef):
1298 (WebScriptWorld::Release):
1299 (WebScriptWorld::QueryInterface):
1300 Standard COM class implementations.
1302 (WebScriptWorld::standardWorld): Returns a shared instance that represents
1303 WebCore's mainThreadNormalWorld().
1305 * WebScriptWorld.h: Added.
1306 (WebScriptWorld::world): Simple getter.
1308 * WebKit.vcproj/Interfaces.vcproj: Added IWebScriptWorld.idl.
1310 * WebKit.vcproj/WebKit.vcproj: Added WebScriptWorld.
1312 * WebKitClassFactory.cpp: Added WebScriptWorld.
1315 (WebView::addUserScriptToGroup):
1316 (WebView::addUserStyleSheetToGroup):
1317 (WebView::removeUserScriptFromGroup):
1318 (WebView::removeUserStyleSheetFromGroup):
1319 (WebView::removeUserScriptsFromGroup):
1320 (WebView::removeUserStyleSheetsFromGroup):
1322 Changed these functions to take an IWebScriptWorld instead of a worldID.
1324 2009-11-12 Adam Roben <aroben@apple.com>
1326 Small clean-up in WebView's user content functions
1328 Preparation for <http://webkit.org/b/31414> Implement new SPI for
1329 dealing with user scripts/stylesheets and isolated worlds
1331 Reviewed by Dave Hyatt.
1336 Added these helper functions to convert BSTRs to WebCore types.
1339 (WebView::addUserScriptToGroup):
1340 (WebView::addUserStyleSheetToGroup):
1341 (WebView::removeUserScriptFromGroup):
1342 (WebView::removeUserStyleSheetFromGroup):
1343 (WebView::removeUserScriptsFromGroup):
1344 (WebView::removeUserStyleSheetsFromGroup):
1345 (WebView::removeAllUserContentFromGroup):
1346 Use the new helper functions.
1348 2009-11-11 Beth Dakin <bdakin@apple.com>
1350 Build fix. No review needed.
1352 * WebKitGraphics.cpp:
1355 2009-11-10 Daniel Bates <dbates@webkit.org>
1357 Reviewed by Oliver Hunt.
1359 https://bugs.webkit.org/show_bug.cgi?id=30754
1361 Modified WebDropSource::QueryContinueDrag so as to not call EventHandler::dragSourceMovedTo.
1363 * WebDropSource.cpp:
1364 (WebDropSource::QueryContinueDrag): Removed call to EventHandler::dragSourceMovedTo.
1366 2009-11-10 Alexey Proskuryakov <ap@apple.com>
1368 Reviewed by Dan Bernstein.
1370 https://bugs.webkit.org/show_bug.cgi?id=31312
1371 Decouple authentication panel callbacks from ResourceHandle
1373 * WebCoreSupport/WebFrameLoaderClient.cpp:
1374 (WebFrameLoaderClient::dispatchDidReceiveAuthenticationChallenge):
1375 * WebURLAuthenticationChallenge.cpp:
1376 (WebURLAuthenticationChallenge::initWithAuthenticationChallenge):
1377 (WebURLAuthenticationChallenge::sender):
1378 * WebURLAuthenticationChallengeSender.cpp:
1379 (WebURLAuthenticationChallengeSender::WebURLAuthenticationChallengeSender):
1380 (WebURLAuthenticationChallengeSender::createInstance):
1381 (WebURLAuthenticationChallengeSender::authenticationClient):
1382 * WebURLAuthenticationChallengeSender.h:
1383 * WebURLAuthenticationChallengeSenderCFNet.cpp:
1384 (WebURLAuthenticationChallengeSender::cancelAuthenticationChallenge):
1385 (WebURLAuthenticationChallengeSender::continueWithoutCredentialForAuthenticationChallenge):
1386 (WebURLAuthenticationChallengeSender::useCredential):
1387 Adjusted for WebCore changes.
1389 2009-11-10 Brian Weinstein <bweinstein@apple.com>
1391 Reviewed by NOBODY - Build Fix.
1393 Updated fillRoundedRect to take a ColorSpace argument.
1395 * WebCoreSupport/WebDragClient.cpp:
1396 (WebDragClient::createDragImageForLink):
1398 2009-11-08 Janne Koskinen <janne.p.koskinen@digia.com>
1400 Reviewed by Holger Freyther.
1402 ResourceRequest to be class instead of struct
1403 https://bugs.webkit.org/show_bug.cgi?id=30670
1405 Started as a compilation fix for Symbian where the compiler makes a distinction between
1406 class and struct in function argument signatures.
1407 Changed forward declaration of ResourceRequest to have class in the forward
1408 declaration instead of struct.
1412 2009-11-05 Adam Roben <aroben@apple.com>
1414 Make CFDictionaryPropertyBag::createInstance return a COMPtr
1416 I also cleaned up CFDictionaryPropertyBag's class declaration a little
1419 Part of <http://webkit.org/b/25294> <rdar://problem/6803127> All
1420 WebKit/win classes should return COMPtrs from their static constructor
1423 Reviewed by Steve Falkenburg.
1425 * CFDictionaryPropertyBag.cpp:
1426 (CFDictionaryPropertyBag::CFDictionaryPropertyBag): Changed to
1427 initialize m_refCount to 0. m_refCount gets increased to 1 by
1429 (CFDictionaryPropertyBag::createInstance): Changed to return a COMPtr.
1431 * CFDictionaryPropertyBag.h:
1432 - Updated copyright years
1433 - Fixed header guard to match current style
1434 - Replaced #include of CoreFoundation.h with forward-declaration of
1435 CFMutableDictionaryRef
1436 - Added #include of COMPtr.h
1437 - Fixed opening brace placement in class declaration
1438 - Made createInstance return a COMPtr
1439 - Made constructor/destructor private
1440 - Made QueryInterface and IPropertyBag functions private
1441 - Removed unnecessary parameter names and MIDL comments
1444 (WebCache::statistics): Updated for change to
1445 CFDictionaryPropertyBag::createInstance. Now uses releaseRef to place
1446 the IPropertyBag pointers into the s array.
1448 * WebCoreSupport/WebFrameLoaderClient.cpp:
1449 (WebFrameLoaderClient::dispatchDidFailToStartPlugin):
1450 * WebDatabaseManager.cpp:
1451 (WebDatabaseManager::dispatchDidModifyDatabase):
1453 (WebFrame::createJavaAppletWidget):
1454 Updated for change to CFDictionaryPropertyBag::createInstance.
1456 * WebHistory.cpp: Removed releaseUserInfo, which is no longer needed.
1457 That function was also doing an unnecessary call to setDictionary(0).
1458 (createUserInfoFromArray):
1459 (createUserInfoFromHistoryItem):
1460 Changed to return COMPtr.
1462 (WebHistory::loadFromURL): Updated for change to
1463 CFDictionaryPropertyBag::createInstance.
1465 (WebHistory::removeAllItems): Updated for change to
1466 CFDictionaryPropertyBag::createInstance, which fixed a leak! We had
1467 forgotten to call releaseUserInfo here.
1469 (WebHistory::removeItem):
1470 (WebHistory::addItem):
1471 (WebHistory::visitedURL):
1472 * WebIconDatabase.cpp:
1473 (postDidAddIconNotification):
1474 Updated for change to CFDictionaryPropertyBag::createInstance.
1476 * WebKitClassFactory.cpp:
1477 (releaseRefFromCreateInstance): Added this overloaded function
1478 template to abstract away the difference between createInstance
1479 functions that return a ref'd pointer and createInstance functions
1480 that return a COMPtr.
1481 (WebKitClassFactory::CreateInstance): Changed to use
1482 releaseRefFromCreateInstance.
1484 2009-11-03 Brian Weinstein <bweinstein@apple.com>
1486 Reviewed by Steve Falkenburg.
1488 WebActionModifierFlagsKey should return an unsigned, because
1489 flags imply a bitmask, and that is what other classes expect from
1492 * WebActionPropertyBag.cpp:
1493 (WebActionPropertyBag::Read):
1495 2009-11-02 Eric Carlson <eric.carlson@apple.com>
1497 Reviewed by John Sullivan and Mark Rowe.
1499 <rdar://problem/7356733> Voiceover does not read correct media controller time values
1501 * WebCoreLocalizedStrings.cpp:
1502 (WebCore::localizedMediaTimeDescription):
1504 2009-10-29 Jon Honeycutt <jhoneycutt@apple.com>
1506 MSAA: Accessibility of headings is not correct
1508 https://bugs.webkit.org/show_bug.cgi?id=30937
1510 Reviewed by Alice Liu.
1512 * AccessibleBase.cpp:
1513 (AccessibleBase::get_accDescription):
1514 Call the object's descriptionForMSAA(). Moved the comment to the
1516 (AccessibleBase::get_accRole):
1517 If the object has a string role, return that. Otherwise, return the
1521 Removed description(), as this was moved to WebCore.
1523 2009-10-29 Jon Honeycutt <jhoneycutt@apple.com>
1525 MSAA: Accessibility of links is wrong
1527 https://bugs.webkit.org/show_bug.cgi?id=30928
1529 Reviewed by Darin Adler.
1531 * AccessibleBase.cpp:
1532 (AccessibleBase::get_accState):
1533 Check whether the element is linked, instead of whether the node is an
1534 anchor, so the child "linkable" elements of anchor elements will also
1536 (AccessibleBase::name):
1537 Return the name for MSAA.
1538 (AccessibleBase::value):
1539 Return the string value for MSAA.
1541 2009-10-30 Evan Stade <estade@chromium.org>
1543 Reviewed by David Levin.
1545 Notify the chrome when the focused node has changed.
1546 https://bugs.webkit.org/show_bug.cgi?id=30832
1548 Added stub implementation for new ChromeClient function.
1550 * WebCoreSupport/WebChromeClient.cpp:
1551 (WebChromeClient::focusedNodeChanged):
1552 * WebCoreSupport/WebChromeClient.h:
1554 2009-10-30 Roland Steiner <rolandsteiner@chromium.org>
1556 Reviewed by Eric Seidel.
1558 Remove ENABLE_RUBY guards as discussed with Dave Hyatt and Maciej Stachowiak.
1560 Bug 28420 - Implement HTML5 <ruby> rendering
1561 (https://bugs.webkit.org/show_bug.cgi?id=28420)
1563 No new tests (no functional change).
1565 * WebKit.vcproj/WebKit.vcproj:
1567 2009-10-29 Mark Rowe <mrowe@apple.com>
1569 Rubber-stamped by Dan Bernstein.
1571 <http://webkit.org/b/30938> REGRESSION(r50233): Windows nightlies crash on launch due to changes
1572 to IWebFramePrivate vtable ordering
1574 * Interfaces/IWebFramePrivate.idl: Move the newly-added method to the end of the interface so that
1575 it doesn't affect the ordering of the vtable.
1577 2009-10-28 Steve Falkenburg <sfalken@apple.com>
1579 Reviewed by Sam "Horatio" Weinig.
1581 Should not generate/build COM DOM bindings
1582 https://bugs.webkit.org/show_bug.cgi?id=30880
1584 * Interfaces/WebKit.idl: Remove generated interfaces.
1585 * WebKit.vcproj/InterfacesGenerated.vcproj: Removed.
1586 * WebKit.vcproj/WebKit.sln: Remove InterfacesGenerated.vcproj.
1587 * WebKit.vcproj/WebKit.submit.sln: Remove InterfacesGenerated.vcproj.
1588 * WebKit.vcproj/WebKit.vcproj: Remove generated interfaces.
1590 2009-10-27 Shinichiro Hamaji <hamaji@chromium.org>
1592 Reviewed by Darin Adler.
1594 Provide a way to get counter values with layoutTestContoller
1595 https://bugs.webkit.org/show_bug.cgi?id=30555
1597 * Interfaces/IWebFramePrivate.idl:
1599 (WebFrame::counterValueForElementById):
1602 2009-10-28 Joe Mason <jmason@rim.com>
1604 Reviewed by Adam Treat.
1606 Call the shared FrameLoader::defaultObjectContentType instead of
1607 copying code into FrameLoaderClient::objectContentType. This causes no
1611 (WebFrame::objectContentType):
1613 2009-10-28 Holger Hans Peter Freyther <zecke@selfish.org>
1615 Speculative build-fix for WebElementPropertyBag.cpp
1617 * WebElementPropertyBag.cpp: Include RenderObject.h
1619 2009-10-27 Holger Hans Peter Freyther <zecke@selfish.org>
1621 Reviewed by Simon Fraser.
1623 Change HitTestResult methods to use (3d) transformation aware methods
1624 https://bugs.webkit.org/show_bug.cgi?id=27347
1626 The HitTestResult::boundingBox method was removed. The
1627 RenderObject must be used directly. In contrast to the
1628 old HitTestResult::boundingBox method this code must use
1629 a (3d) transformation aware method to not run into an
1630 assert in SVGRenderBase::mapLocalToContainer.
1632 * WebElementPropertyBag.cpp:
1633 (WebElementPropertyBag::Read): Replace HitTestResult::boundingBox()
1635 2009-10-26 Laszlo Gombos <laszlo.1.gombos@nokia.com>
1637 Reviewed by Darin Adler.
1639 Make .rc files compile on Windows without depending on MFC headers
1640 https://bugs.webkit.org/show_bug.cgi?id=30750
1642 * WebKit.vcproj/WebKit.rc: Use winresrc.h because it exists even
1643 when MFC is not installed, and is all that's needed here.
1645 2009-10-26 Sam Weinig <sam@webkit.org>
1647 Rubber-stamped by Darin Adler.
1649 Rollout r50041-50043. The HTML5 spec changed to make HTMLOptionsCollection
1650 inherit from HTMLCollection.
1652 * DOMCreateInstance.cpp:
1654 2009-10-25 Dan Bernstein <mitz@apple.com>
1656 Reviewed by John Sullivan.
1658 Add contextForWorldID to the IWebFramePrivate interface.
1660 * Interfaces/IWebFramePrivate.idl:
1663 2009-10-25 Sam Weinig <sam@webkit.org>
1665 Another try at fixing windows.
1667 * DOMCreateInstance.cpp:
1669 2009-10-25 Sam Weinig <sam@webkit.org>
1671 Touch WebKit.idl in an effort to try and regenerate the COM bindings.
1673 * Interfaces/WebKit.idl:
1675 2009-10-23 Mark Rowe <mrowe@apple.com>
1677 Build fix. Include config.h before including other files.
1679 * AccessibleImage.cpp:
1681 2009-10-23 Gavin Barraclough <barraclough@apple.com>
1683 Reviewed by Geoff Garen.
1685 https://bugs.webkit.org/show_bug.cgi?id=30729
1686 Provide private API to request the global context for a specific world.
1687 Used to initialize parameters on the global object.
1690 (WebFrame::contextForWorldID):
1693 2009-10-23 Brian Weinstein <bweinstein@apple.com>
1695 Reviewed by John Sullivan.
1697 Pan-scrolling pointer shows up in other tabs or windows, can't "fix" it.
1698 <http://webkit.org/b/30732> and <rdar://7332018>.
1700 Turns off pan-scrolling on a WebView when it is about to lose focus.
1705 2009-10-23 Jon Honeycutt <jhoneycutt@apple.com>
1707 MSAA: Name for image elements should use alt attribute text
1709 https://bugs.webkit.org/show_bug.cgi?id=30727
1710 <rdar://problem/7328291>
1712 Reviewed by Alice Liu.
1714 * AccessibleBase.cpp:
1715 (AccessibleBase::createInstance):
1716 If the AccessibilityObject is an image, return an AccessibleImage.
1718 * AccessibleImage.cpp: Added.
1719 (AccessibleImage::AccessibleImage):
1720 Call the base constructor.
1721 (AccessibleImage::name):
1722 If the object is not an AccessibilityRenderObject, return the base's
1723 name(). Look first for an ARIA "labeled-by" attribute, then look for an
1724 alternate text attribute. Fall back to the base's name().
1726 * AccessibleImage.h: Added.
1727 (AccessibleImage::~AccessibleImage):
1729 * WebKit.vcproj/WebKit.vcproj:
1730 Add AccessibleImage to the project.
1732 2009-10-23 Sam Weinig <sam@webkit.org>
1734 Try and fix the windows build.
1736 * Interfaces/WebKit.idl:
1738 2009-10-22 Gavin Barraclough <barraclough@apple.com>
1740 Reviewed by Sam Weinig & Geoff Garen.
1742 https://bugs.webkit.org/show_bug.cgi?id=30696
1743 Update to incorporate support for IsolatedWorlds in JSC bindings.
1745 * Interfaces/IWebFramePrivate.idl:
1747 (WebFrame::globalContext):
1748 (WebFrame::windowObjectCleared):
1749 (WebFrame::stringByEvaluatingJavaScriptInIsolatedWorld):
1752 2009-10-20 Fumitoshi Ukai <ukai@chromium.org>
1754 Reviewed by David Levin.
1756 Removed WebSocket runtime settings.
1757 https://bugs.webkit.org/show_bug.cgi?id=29896
1759 WebSocket runtime configuration is supported by chromium/v8 only.
1761 * Interfaces/IWebPreferencesPrivate.idl:
1762 * WebPreferenceKeysPrivate.h:
1763 * WebPreferences.cpp:
1764 (WebPreferences::initializeDefaultSettings):
1765 (WebPreferences::experimentalNotificationsEnabled):
1768 (WebView::notifyPreferencesChanged):
1770 2009-10-19 Adam Roben <aroben@apple.com>
1772 Fix crashes/assertions when calling WebLocalizedString from multiple
1773 threads concurrently
1775 Fixes <http://webkit.org/b/30534> WebLocalizedString asserts if called
1776 from multiple threads concurrently
1778 Reviewed by John Sullivan.
1780 * WebLocalizableStrings.cpp:
1781 (mainBundleLocStringsMutex):
1782 (frameworkLocStringsMutex):
1783 Added these new getters.
1787 Lock the relevant mutex before accessing each string map. Otherwise
1788 bad things could happen if two threads end up here at the same time.
1790 2009-10-19 Adam Roben <aroben@apple.com>
1792 Get rid of a few static initializers/exit-time destructors in
1793 WebLocalizableStrings
1795 Reviewed by Dan Bernstein.
1797 * WebLocalizableStrings.cpp:
1798 (mainBundleLocStrings):
1799 (frameworkLocStrings):
1800 Added these functions instead of file-scope variables.
1804 Updated to use the new functions.
1806 2009-10-19 Nate Chapin <japhet@chromium.org>
1808 Unreviewed, build fix.
1810 Update call to FrameLoader::urlSelected().
1812 * WebCoreSupport/WebContextMenuClient.cpp:
1813 (WebContextMenuClient::searchWithGoogle):
1815 2009-10-16 Steve Falkenburg <sfalken@apple.com>
1817 Reviewed by Dan Bernstein.
1819 https://bugs.webkit.org/show_bug.cgi?id=30456
1820 Fixes for new Debug_All Windows build configuration.
1822 * WebKitClassFactory.cpp: Use new DEBUG_ALL preprocessor define for library naming.
1824 2009-10-16 Jon Honeycutt <jhoneycutt@apple.com>
1826 Add SPI to determine whether a plug-in has ever been halted.
1828 Part of <rdar://problem/7312158>.
1830 Reviewed by Dan Bernstein.
1832 * Interfaces/IWebViewPrivate.idl:
1833 Add hasPluginForNodeBeenHalted().
1836 (pluginViewForNode):
1837 Code factored out of isNodeHaltedPlugin().
1838 (WebView::isNodeHaltedPlugin):
1839 Remove STDMETHODCALLTYPE, as it has no use at the definition. Use
1840 pluginViewForNode().
1841 (WebView::restartHaltedPluginForNode):
1843 (WebView::hasPluginForNodeBeenHalted):
1844 Get the PluginView for the given node. Return the result of
1845 PluginView::hasBeenHalted().
1848 Declare hasPluginForNodeBeenHalted().
1850 2009-10-16 Steve Falkenburg <sfalken@apple.com>
1852 Reviewed by Adam Roben.
1854 Add a Debug_All configuration to build entire stack as debug.
1855 Change Debug_Internal to:
1856 - stop using _debug suffix for all WebKit/Safari binaries
1857 - not use _debug as a DLL naming suffix
1858 - use non-debug C runtime lib.
1860 * WebKit.vcproj/InterfacesGenerated.vcproj: Renamed single configuration from "Release" to "all".
1861 * WebKit.vcproj/WebKit.make: Debug build in makefile should build Debug_All.
1862 * WebKit.vcproj/WebKit.sln: Add Debug_All configuration.
1863 * WebKit.vcproj/WebKit.submit.sln: Add Debug_All configuration.
1864 * WebKit.vcproj/WebKit.vcproj:
1865 Remove extraneous OutputDirectory/IntermediateDirectory in Debug_Cairo.
1866 Add Debug_All configuration.
1867 * WebKit.vcproj/WebKitGUID.vcproj: Add Debug_All configuration.
1869 2009-10-15 Jon Honeycutt <jhoneycutt@apple.com>
1871 Add SPI to restart a halted plug-in.
1873 Part of <rdar://problem/7273354> Halted plug-ins should restart on
1876 https://bugs.webkit.org/show_bug.cgi?id=30151
1878 Reviewed by Kevin Decker.
1880 * Interfaces/IWebViewPrivate.idl:
1881 Add restartHaltedPluginForNode().
1884 (WebView::restartHaltedPluginForNode):
1885 From the IDOMNode, query for the DOMNode. From the DOMNode, get the
1886 WebCore::Node. Get the node's renderer, and check whether it is a
1887 RenderWidget. If so, get its Widget, and check whether it's a
1888 PluginView. If so, call PluginView::restart().
1891 Declare restartHaltedPluginForNode().
1893 2009-10-14 Jon Honeycutt <jhoneycutt@apple.com>
1895 Add SPI to determine whether a node is a halted plug-in.
1897 Part of <rdar://problem/7273354> Halted plug-ins should restart on
1900 https://bugs.webkit.org/show_bug.cgi?id=30151
1902 Reviewed by Darin Adler.
1904 * Interfaces/IWebViewPrivate.idl:
1905 Add isNodehaltedPlugin().
1908 (WebView::isNodeHaltedPlugin):
1909 From the IDOMNode, query for the DOMNode. From the DOMNode, get the
1910 WebCore::Node. Get the node's renderer, and check whether it is a
1911 RenderWidget. If so, get its Widget, and check whether it's a
1912 PluginView. If so, return the result of PluginView::isHalted().
1915 Declare isNodeHaltedPlugin().
1917 2009-10-15 Daniel Bates <dbates@webkit.org>
1919 Reviewed by Adam Roben.
1921 https://bugs.webkit.org/show_bug.cgi?id=24731
1923 rdar://problem/5015961
1925 Implements support for DHTML drag-and-drop operations (i.e. ondragstart, ondragend)
1926 in the Windows build so that it conforms to the Mac OS X build. Hence, dropEffect is
1929 The WebView and WebDropSource drag-and-drop functions, as called by function
1930 DoDragDrop in its event loop, neither used the drop effect as specified by
1931 event.dataTransfer.dropEffect nor respected event.dataTransfer.effectsAllowed.
1932 Instead, these functions defaulted to some hardcoded drop effect and set of
1933 allowed drop effects, respectively.
1935 Tests: fast/events/drag-and-drop.html
1937 * WebCoreSupport/WebDragClient.cpp:
1938 (WebDragClient::startDrag):
1939 * WebDropSource.cpp:
1940 (WebDropSource::QueryContinueDrag): Moved call to EventHandler::dragSourceEndedAt
1941 into method WebDragClient::startDrag.
1944 (WebView::keyStateToDragOperation): Fixes <rdar://problem/5015961>. Determines
1945 appropriate drop effect from state of keyboard and allowed effects
1946 m_page->dragController()->sourceDragOperation().
1947 (WebView::DragEnter):
1948 (WebView::DragOver):
1952 2009-10-14 Adam Roben <aroben@apple.com>
1956 * WebKit.vcproj/Interfaces.vcproj: Exclude IWebHistoryDelegate and
1957 IWebNavigationData from the build (they get #imported via WebKit.idl).
1959 2009-10-14 Brady Eidson <beidson@apple.com>
1961 Reviewed by Sam Weinig.
1963 WebKit Win API should provide a delegate interface for global history.
1964 https://bugs.webkit.org/show_bug.cgi?id=29905
1966 -Add IWebHistoryDelegate for clients to implement.
1967 -Add (I)WebNavigationData for the history delegate's use.
1968 -When it exists, call the history delegate instead of using WebHistory.
1970 * Interfaces/IWebHistoryDelegate.idl: Added.
1971 * Interfaces/IWebHistoryPrivate.idl:
1972 * Interfaces/IWebNavigationData.idl: Added.
1973 * Interfaces/IWebViewPrivate.idl:
1974 * Interfaces/WebKit.idl:
1976 * WebKit.vcproj/Interfaces.vcproj:
1977 * WebKit.vcproj/WebKit.vcproj:
1979 * WebCoreSupport/WebChromeClient.cpp:
1980 (WebChromeClient::populateVisitedLinks):
1981 * WebCoreSupport/WebFrameLoaderClient.cpp:
1982 (WebFrameLoaderClient::updateGlobalHistory):
1983 (WebFrameLoaderClient::updateGlobalHistoryRedirectLinks):
1984 (WebFrameLoaderClient::setTitle):
1988 (WebView::mainFrameURL):
1989 (WebView::setHistoryDelegate):
1990 (WebView::historyDelegate):
1991 (WebView::addVisitedLinks):
1995 (WebHistory::setVisitedLinkTrackingEnabled):
1996 (WebHistory::removeAllVisitedLinks):
1999 * WebNavigationData.cpp: Added.
2000 (WebNavigationData::QueryInterface):
2001 (WebNavigationData::AddRef):
2002 (WebNavigationData::Release):
2003 (WebNavigationData::WebNavigationData):
2004 (WebNavigationData::~WebNavigationData):
2005 (WebNavigationData::createInstance):
2006 (WebNavigationData::url):
2007 (WebNavigationData::title):
2008 (WebNavigationData::originalRequest):
2009 (WebNavigationData::response):
2010 (WebNavigationData::hasSubstituteData):
2011 (WebNavigationData::clientRedirectSource):
2012 * WebNavigationData.h: Added.
2014 2009-10-13 Dave Hyatt <hyatt@apple.com>
2016 Fix more WebView bustage.
2019 (WebView::addUserScriptToGroup):
2020 (WebView::addUserStyleSheetToGroup):
2021 (WebView::removeUserScriptsFromGroup):
2022 (WebView::removeUserStyleSheetsFromGroup):
2024 2009-10-13 Dave Hyatt <hyatt@apple.com>
2026 Fix build bustage on Windows.
2029 (WebView::addUserScriptToGroup):
2030 (WebView::addUserStyleSheetToGroup):
2031 (WebView::removeUserScriptsFromGroup):
2032 (WebView::removeUserStyleSheetsFromGroup):
2034 2009-10-13 Dave Hyatt <hyatt@apple.com>
2036 Reviewed by Adam Roben..
2038 Split removal functions for user scripts and stylehseets based on type.
2040 * Interfaces/IWebViewPrivate.idl:
2042 (WebView::removeUserScriptFromGroup):
2043 (WebView::removeUserStyleSheetFromGroup):
2046 2009-10-09 Adam Barth <abarth@webkit.org>
2048 Reviewed by Darin Adler.
2050 Factor HistoryController out of FrameLoader
2051 https://bugs.webkit.org/show_bug.cgi?id=30246
2056 (WebView::loadBackForwardListFromOtherView):
2058 2009-10-08 Jon Honeycutt <jhoneycutt@apple.com>
2060 Remove the WebKitPluginHalterEnabledPreferenceKey in favor of checking
2061 for the existence of a PluginHalterDelegate.
2063 Reviewed by Dan Bernstein.
2065 * Interfaces/IWebPreferencesPrivate.idl:
2066 Remove the getter and setter.
2068 * WebCoreSupport/WebPluginHalterClient.cpp:
2069 (WebPluginHalterClient::enabled):
2070 Return true if the delegate exists.
2072 * WebCoreSupport/WebPluginHalterClient.h:
2073 Declare implementation of enabled().
2075 * WebPreferenceKeysPrivate.h:
2076 Removed the pref key.
2078 * WebPreferences.cpp:
2079 (WebPreferences::initializeDefaultSettings):
2080 Removed initialization of the pref.
2083 Removed declaration of the getter/setter.
2086 (WebView::notifyPreferencesChanged):
2087 Don't propagate the pref.
2089 2009-10-08 Adam Barth <abarth@webkit.org>
2091 Reviewed by Eric Seidel.
2093 Move executeScript from FrameLoader to ScriptController
2094 https://bugs.webkit.org/show_bug.cgi?id=30200
2099 (WebView::stringByEvaluatingJavaScriptFromString):
2101 2009-10-08 Anders Carlsson <andersca@apple.com>
2103 Reviewed by Sam Weinig.
2105 Remove the shouldLoadMediaElementURL implementation.
2107 * Interfaces/IWebPolicyDelegatePrivate.idl:
2108 * WebCoreSupport/WebFrameLoaderClient.cpp:
2109 (WebFrameLoaderClient::shouldUsePluginDocument):
2110 * WebCoreSupport/WebFrameLoaderClient.h:
2112 2009-10-08 Adam Roben <aroben@apple.com>
2114 Make IWebInspectorPrivate be accessed in a more standard way
2116 IWebViewPrivate::inspectorPrivate has been removed. Callers should
2117 instead use IWebViewPrivate::inspector and then use QueryInterface to
2118 get the IWebInspectorPrivate interface. This matches how our other COM
2121 Fixes <http://webkit.org/b/30215> Make IWebInspectorPrivate be
2122 accessed in a more standard way
2124 Reviewed by John Sullivan and Tim Hatcher.
2126 * Interfaces/IWebViewPrivate.idl: Removed inspectorPrivate.
2129 (WebInspector::QueryInterface): Support querying to
2130 IWebInspectorPrivate.
2134 Removed inspectorPrivate.
2136 2009-10-08 Adam Roben <aroben@apple.com>
2138 Move the new IWebViewPrivate::inspectorPrivate function after all
2139 functions that existed when Safari 4.0.3 was released
2141 Fixes <http://webkit.org/b/30085> REGRESSION (r49091): run-safari
2142 crashes in Safari.dll
2144 Reviewed by John Sullivan.
2146 * Interfaces/IWebViewPrivate.idl: Moved inspectorPrivate to the end of
2147 the interface, so it won't modify the vtable that Safari 4.0.3 sees.
2149 2009-10-07 Adam Roben <aroben@apple.com>
2151 Expose origin whitelisting in the WebKit API on Windows
2153 Fixes <http://webkit.org/b/30185>.
2155 Reviewed by Eric Seidel.
2157 * Interfaces/IWebViewPrivate.idl: Added whiteListAccessFromOrigin and
2158 resetOriginAccessWhiteLists, to match the Mac SPI.
2161 (WebView::whiteListAccessFromOrigin):
2162 (WebView::resetOriginAccessWhiteLists):
2164 Added. These just call through to SecurityOrigin.
2166 2009-10-07 Adam Barth <abarth@webkit.org>
2168 Reviewed by Darin Adler.
2170 Factor PolicyChecker out of FrameLoader
2171 https://bugs.webkit.org/show_bug.cgi?id=30155
2173 Move the policy callback to the policy object.
2176 (WebFrame::dispatchWillSubmitForm):
2177 (WebFrame::receivedPolicyDecision):
2178 (WebFrame::dispatchDecidePolicyForMIMEType):
2179 (WebFrame::dispatchDecidePolicyForNewWindowAction):
2180 (WebFrame::dispatchDecidePolicyForNavigationAction):
2182 2009-10-07 Daniel Bates <dbates@webkit.org>
2184 Reviewed by Darin Adler.
2186 https://bugs.webkit.org/show_bug.cgi?id=30102
2188 <rdar://problem/5015957>
2190 Fixes an issue (in the Windows build) where the cursor does not change to the
2191 not-allowed cursor when the drag-and-drop operation is not allowed.
2193 The allowed effects in WebDragClient::startDrag are hard-coded to be
2194 DROPEFFECT_COPY | DROPEFFECT_LINK | DROPEFFECT_MOVE. Instead, the list of
2195 allowed drop effects should be determined by the allowed operations of the
2198 We cannot test this using DRT because DRT looks at the programmatic drop
2199 cursor and until bug #24731 is fixed this value is hard-coded to DragOperationCopy.
2200 That is, there is a discrepancy in the Windows build between the Windows API-based
2201 drop effect and the WebKit drop effect. Because DRT cannot read the screen buffer
2202 to determine the cursor, a manual test is needed.
2204 * WebCoreSupport/WebDragClient.cpp:
2205 (draggingSourceOperationMaskToDragCursors): Added method.
2206 (WebDragClient::startDrag):
2208 2009-10-07 Steve Falkenburg <sfalken@apple.com>
2210 Reviewed by Darin Adler.
2212 https://bugs.webkit.org/show_bug.cgi?id=30176
2213 <rdar://problem/7281553> Extra information in UA causes problems with gmail
2215 * WebKit.vcproj/WebKit.rc: Restore PRODUCTVERSION to build number only. Remove extra space.
2217 2009-10-06 Pavel Feldman <pfeldman@chromium.org>
2219 Reviewed by Timothy Hatcher.
2221 Web Inspector: default to an attached inspector window on Windows (as on Mac).
2223 https://bugs.webkit.org/show_bug.cgi?id=30134
2225 * WebCoreSupport/WebInspectorClient.cpp:
2226 (WebInspectorClient::showWindowWithoutNotifications):
2228 2009-10-06 Adam Barth <abarth@webkit.org>
2230 Reviewed by Eric Seidel.
2232 Move FrameLoader::canLoad to SecurityOrigin
2233 https://bugs.webkit.org/show_bug.cgi?id=30111
2236 (WebFrame::allowsFollowingLink):
2238 2009-10-06 Pavel Feldman <pfeldman@chromium.org>
2240 Reviewed by Timothy Hatcher.
2242 Web Inspector: close inspector client view on
2243 InspectorController::close API call.
2245 In order to run batch web inspector layout tests (and not affect
2246 subsequent tests) we should close inspector client's view upon
2247 InspectorController::close API call.
2249 https://bugs.webkit.org/show_bug.cgi?id=30009
2251 * WebCoreSupport/WebInspectorClient.cpp:
2252 (WebInspectorClient::createPage):
2254 2009-10-06 David Levin <levin@chromium.org>
2256 Reviewed by NOBODY (windows build fix).
2258 Speculative build fix for windows (due to r49160).
2260 * WebDownloadCFNet.cpp:
2261 (WebDownload::initToResumeWithBundle):
2262 * WebIconDatabase.cpp:
2263 (WebIconDatabase::dispatchDidAddIconForPageURL):
2265 2009-10-05 Pavel Feldman <pfeldman@chromium.org>
2267 Reviewed by Timothy Hatcher.
2269 Web Inspector: add testing harness for Web Inspector.
2271 https://bugs.webkit.org/show_bug.cgi?id=30010
2273 * Interfaces/IWebInspectorPrivate.idl: Added.
2274 * Interfaces/IWebViewPrivate.idl:
2275 * Interfaces/WebKit.idl:
2277 (WebInspector::evaluateInFrontend):
2280 (WebView::inspectorPrivate):
2283 2009-10-02 Dave Hyatt <hyatt@apple.com>
2285 Reviewed by Adam Roben.
2287 Add support for blacklist patterns to user stylesheets and scripts in addition to whitelist patterns.
2289 * Interfaces/IWebViewPrivate.idl:
2292 (WebView::addUserScriptToGroup):
2293 (WebView::addUserStyleSheetToGroup):
2296 2009-10-02 Steve Falkenburg <sfalken@apple.com>
2298 Reviewed by Mark Rowe.
2300 <https://bugs.webkit.org/show_bug.cgi?id=29989>
2301 Safari version number shouldn't be exposed in WebKit code
2303 For a WebKit version of 532.3.4:
2304 Product version is: 5.32.3.4 (was 4.0.3.0)
2305 File version is: 5.32.3.4 (was 4.532.3.4)
2307 * WebKit.vcproj/WebKit.rc:
2309 2009-09-30 Sam Weinig <sam@webkit.org>
2311 Reviewed by Dan Bernstein.
2313 Fix for <rdar://problem/7259706>
2314 Need WebKit API or SPI on Mac and Windows to test whether it's safe to load a page in a new tab/window
2316 * Interfaces/IWebFramePrivate.idl:
2318 (WebFrame::allowsFollowingLink):
2321 2009-09-30 Dave Hyatt <hyatt@apple.com>
2323 Reviewed by Adam Roben.
2325 Add the ability to remove user stylesheets and scripts by URL.
2327 * Interfaces/IWebViewPrivate.idl:
2329 (WebView::removeUserContentWithURLFromGroup):
2332 2009-09-29 Kenneth Russell <kbr@google.com>
2334 Reviewed by Dimitri Glazkov.
2336 Add support for run-time flag for 3D canvas
2337 https://bugs.webkit.org/show_bug.cgi?id=29826
2340 (WebView::notifyPreferencesChanged): Enable experimental WebGL
2341 flag when 3D_CANVAS is enabled in the build.
2343 2009-09-28 Alexey Proskuryakov <ap@apple.com>
2345 Reviewed by Darin Adler and Sam Weinig.
2347 Onclick not fired for an element copied with cloneContents() or cloneNode()
2348 https://bugs.webkit.org/show_bug.cgi?id=25130
2350 * DOMCreateInstance.cpp: GEN_DOMEventListener is a pure interface now.
2352 * WebKit.vcproj/WebKit.vcproj: Removed GEN_DOMEventListener.cpp.
2354 2009-09-28 Fumitoshi Ukai <ukai@chromium.org>
2356 Reviewed by Eric Seidel.
2358 Add experimentalWebSocketsEnabled in WebPreferences.
2359 https://bugs.webkit.org/show_bug.cgi?id=28941
2361 * Interfaces/IWebPreferencesPrivate.idl:
2362 * WebPreferenceKeysPrivate.h:
2363 * WebPreferences.cpp:
2364 (WebPreferences::initializeDefaultSettings):
2365 (WebPreferences::setExperimentalWebSocketsEnabled):
2366 (WebPreferences::experimentalWebSocketsEnabled):
2369 (WebView::notifyPreferencesChanged):
2372 2009-09-25 Darin Adler <darin@apple.com>
2374 Reviewed by Steve Falkenburg.
2376 Speed up access to history items by caching date computation.
2378 * History/WebHistory.mm:
2379 (getDayBoundaries): Refactored from timeIntervalForBeginningOfDay.
2380 Returns the beginning of the day that the passed time is within and
2381 the beginning of the next day.
2382 (beginningOfDay): Added. Uses getDayBoundaries so it can be fast for
2383 multiple dates within the same day, which is the common case.
2384 (dateKey): Added. Calls beginningOfDay and converts to an integer.
2385 (WebHistory::findKey): Changed to call dateKey instead of
2386 timeIntervalForBeginningOfDay.
2388 2009-09-25 Adam Roben <aroben@apple.com>
2390 Add SPI to invalidate a WebView's backing store
2392 This is useful in conjunction with
2393 IWebUIDelegatePrivate2::drawBackground. This provides a way for the UI
2394 delegate to force WebView to get its background redrawn.
2396 Fixes <http://webkit.org/b/29737> Need SPI to invalidate a WebView's
2399 Reviewed by Anders Carlsson.
2401 * Interfaces/IWebViewPrivate.idl: Added invalidateBackingStore.
2403 (WebView::invalidateBackingStore): If rect is 0, invalidate our whole
2404 client rect. Otherwise invalidate the intersection of rect with our
2408 2009-09-24 Jon Honeycutt <jhoneycutt@apple.com>
2410 Add a mechanism for automatically halting plug-ins.
2412 Reviewed by Oliver Hunt.
2414 * Interfaces/IWebPluginHalterDelegate.idl: Added. Defines an interface
2415 for a delegate that determines whether plug-ins should be halted.
2417 * Interfaces/IWebPreferencesPrivate.idl:
2418 Declare functions to get and set the enabled state of the plug-in
2419 halter and the plug-in allowed run time.
2421 * Interfaces/IWebViewPrivate.idl:
2422 Declare functions to get and set the IWebPluginHalterDelegate.
2424 * Interfaces/WebKit.idl:
2426 * WebCoreSupport/WebPluginHalterClient.cpp: Added.
2427 (WebPluginHalterClient::WebPluginHalterClient):
2428 (WebPluginHalterClient::shouldHaltPlugin):
2429 Get the IWebPluginHalterDelegate for the WebView. Create a WebKit
2430 DOMNode for the WebCore Node. Call the delegate's shouldHaltPlugin().
2431 If the call fails, return false. Otherwise, return the result of the
2434 * WebCoreSupport/WebPluginHalterClient.h: Added.
2436 * WebKit.vcproj/Interfaces.vcproj:
2437 Add IWebPluginHalterDelegate.idl.
2439 * WebKit.vcproj/WebKit.vcproj:
2440 Add WebPluginHalterClient.{h,cpp}.
2442 * WebPreferenceKeysPrivate.h:
2443 Define WebKitPluginHalterEnabledPreferenceKey and
2444 WebKitPluginAllowedRunTimePreferenceKey.
2446 * WebPreferences.cpp:
2447 (WebPreferences::initializeDefaultSettings):
2448 Leave plug-in halting disabled by default. Set the default value for
2449 the plug-in allowed run time to the max value of an unsigned int.
2450 (WebPreferences::setPluginHalterEnabled):
2451 (WebPreferences::pluginHalterEnabled):
2452 (WebPreferences::setPluginAllowedRunTime):
2453 (WebPreferences::pluginAllowedRunTime):
2459 Clear the IWebPluginHalterDelegate.
2460 (WebView::initWithFrame):
2461 Pass a WebPluginHalterClient when creating the Page.
2462 (WebView::notifyPreferencesChanged):
2463 Set the new settings when the preferences changed notification is
2465 (WebView::setPluginHalterDelegate):
2466 (WebView::pluginHalterDelegate):
2469 Declare overrides of setPluginHalterDelegate() and
2470 pluginHalterDelegate(). Added a member to track the
2471 IWebPluginHalterDelegate.
2473 2009-09-14 John Gregg <johnnyg@google.com>
2475 Reviewed by Eric Seidel.
2477 Enable switch for notifications (experimental) in Page Settings
2478 https://bugs.webkit.org/show_bug.cgi?id=28930
2480 Adds support for the experimentalNotificationsEnabled flag in Settings through
2481 WebPreferencesPrivate interface. Also cleans up some issues accessing the
2482 notification delegate through DumpRenderTree.
2484 * Interfaces/IWebPreferencesPrivate.idl:
2485 * WebCoreSupport/WebDesktopNotificationsDelegate.cpp:
2486 (WebDesktopNotificationsDelegate::hasNotificationDelegate):
2487 (WebDesktopNotificationsDelegate::notificationDelegate):
2488 * WebPreferenceKeysPrivate.h:
2489 * WebPreferences.cpp:
2490 (WebPreferences::initializeDefaultSettings):
2491 (WebPreferences::setExperimentalNotificationsEnabled):
2492 (WebPreferences::experimentalNotificationsEnabled):
2495 (WebView::notifyPreferencesChanged):
2497 2009-09-23 Anders Carlsson <andersca@apple.com>
2499 Reviewed by Adam Roben.
2501 <rdar://problem/7243354>
2502 REGRESSION(48580-48636): Crash clicking embedded QT preview button on apple.com/trailers
2504 Check for a null IWebPolicyDelegatePrivate.
2506 * WebCoreSupport/WebFrameLoaderClient.cpp:
2507 (WebFrameLoaderClient::shouldLoadMediaElementURL):
2509 2009-09-22 Sam Weinig <sam@webkit.org>
2511 Rubber-stamped by Adam Roben.
2513 Remove accidentally left in declaration of reloadFromOrigin in IWebFramePrivate.idl
2515 * Interfaces/IWebFramePrivate.idl:
2517 2009-09-22 Sam Weinig <sam@webkit.org>
2519 Reviewed by Steve Falkenburg.
2521 Fix for <rdar://problem/6451745>
2522 Windows WebKit needs to implement reloadFromOrigin()
2524 * Interfaces/IWebFrame.idl:
2525 * Interfaces/IWebFramePrivate.idl:
2526 * Interfaces/IWebView.idl:
2528 (WebFrame::reloadFromOrigin):
2531 (WebView::reloadFromOrigin):
2534 2009-09-22 Adam Roben <aroben@apple.com>
2536 Manage refcounts correctly in DefaultDownloadDelegate::willSendRequest
2538 Fixes <http://webkit.org/b/29650> Crash in
2539 WebDownload::willSendRequest when using DefaultDownloadDelegate
2541 Reviewed by Brady Eidson.
2543 * DefaultDownloadDelegate.cpp:
2544 (DefaultDownloadDelegate::willSendRequest): Call AddRef() on the
2545 object we're returning via the finalRequest out-parameter.
2547 2009-09-21 Anders Carlsson <andersca@apple.com>
2549 Reviewed by Adam Roben.
2551 <rdar://problem/7135588> HTMLMediaElement should ask WebPolicyLoadDelegate before loading resource
2553 Implement WebFrameLoaderClient::shouldLoadMediaElementURL and have it call the new private policy
2556 * Interfaces/IWebPolicyDelegatePrivate.idl: Added.
2557 * Interfaces/WebKit.idl:
2558 * WebCoreSupport/WebFrameLoaderClient.cpp:
2559 (WebFrameLoaderClient::shouldLoadMediaElementURL):
2560 * WebCoreSupport/WebFrameLoaderClient.h:
2561 * WebKit.vcproj/Interfaces.vcproj:
2563 2009-09-17 Kenneth Rohde Christiansen <kenneth@webkit.org>
2565 Reviewed by Simon Hausmann.
2567 Make PlatformWindow return something else than PlatformWidget
2568 https://bugs.webkit.org/show_bug.cgi?id=29085
2570 Reflect the rename of platformWindow and it's return type.
2572 * AccessibleBase.cpp:
2573 (AccessibleBase::get_accParent):
2574 * WebCoreSupport/WebChromeClient.cpp:
2575 (WebChromeClient::platformPageClient):
2576 * WebCoreSupport/WebChromeClient.h:
2578 2009-09-17 Brian Weinstein <bweinstein@apple.com>
2580 Reviewed by Adam Roben.
2582 Remove assertions that were being hit by calls to
2583 m_verticalScrollbar->invalidate(). These assertions were valid,
2584 but they were causing tests to fail, so replacing with a FIXME
2585 until we can find out the real cause/solution that is being tracked
2586 by http://webkit.org/b/29350.
2589 (WebView::addToDirtyRegion):
2590 (WebView::paintIntoBackingStore):
2592 2009-09-17 Ada Chan <adachan@apple.com>
2594 Post WebViewDidChangeSelectionNotification when the text selection changes.
2596 Fixes <http://webkit.org/b/29321>
2598 Reviewed by Adam Roben.
2600 * Interfaces/IWebView.idl:
2601 * WebCoreSupport/WebEditorClient.cpp:
2602 (WebEditorClient::respondToChangedSelection):
2604 2009-09-17 Adam Roben <aroben@apple.com>
2606 Fix a crash when a WebView's HWND is destroyed before IWebView::close
2609 WebView's HWND was being sent a WM_TIMER message after the WebView was
2610 destroyed. This normally isn't possible (we call DestroyWindow inside
2611 WebView's destructor to ensure the HWND doesn't outlive the WebView),
2612 but r48060 changed WebView to call SetParent(m_viewWindow,
2613 HWND_MESSAGE) while handling WM_DESTROY, and apparently this puts the
2614 HWND into some weird half-destroyed state where it can still receive
2617 Fixes <http://webkit.org/b/29337> <rdar://problem/7209897> REGRESSION
2618 (r48060): unrepro but frequent crash in WebViewWndProc
2620 Reviewed by Steve Falkenburg.
2623 (WebViewWndProc): When handling WM_DESTROY, call setIsBeingDestroyed()
2624 before calling close(). This allows setHostWindow to detect that we're
2625 handling WM_DESTROY. No other code in close() cared whether
2626 isBeingDestroyed() was true or not.
2627 (WebView::setHostWindow): If our host window is being set to 0 and
2628 we're being destroyed, don't become a message-only window. Doing this
2629 while handling WM_DESTROY seems to lead to crashes.
2631 2009-09-16 Adam Roben <aroben@apple.com>
2633 Add a UI delegate callback to let the delegate draw a WebView's
2636 Fixes <http://webkit.org/b/29315>.
2638 Reviewed by Dave Hyatt.
2640 * Interfaces/IWebUIDelegatePrivate.idl: Added
2641 IWebUIDelegatePrivate2::drawBackground.
2644 (WebView::paintIntoBackingStore): After clearing or filling with
2645 white, let the delegate draw whatever background it wants. Also added
2646 an assertion that the dirty rect is within our bounds.
2648 2009-09-16 Adam Roben <aroben@apple.com>
2650 Prevent WebView from painting over sibling windows
2652 Fixes <http://webkit.org/b/29300> <rdar://problem/7227960> WebView can
2653 paint over sibling windows
2655 Reviewed by Darin Adler.
2658 (WebView::initWithFrame): Create the WebView's HWND with the
2659 WS_CLIPSIBLINGS style.
2661 2009-09-14 Brady Eidson <beidson@apple.com>
2663 Reviewed by Alexey Proskuryakov.
2665 Safari 4 cannot be used to update firmware on Linksys routers.
2666 <rdar://problem/7174050> and https://bugs.webkit.org/show_bug.cgi?id=29160
2668 Adopt the new WebCore::CredentialStorage in WebKit/Win.
2670 * WebDownloadCFNet.cpp:
2671 (WebDownload::didReceiveAuthenticationChallenge):
2673 2009-09-11 Steve Falkenburg <sfalken@apple.com>
2675 Reviewed by Dan Bernstein.
2677 Properly propagate preference from WebPreferences to WebCore::Settings.
2678 https://bugs.webkit.org/show_bug.cgi?id=29192
2681 (WebView::initWithFrame): Apply setting when creating a new WebView.
2682 (WebView::notifyPreferencesChanged): Apply setting when preferences change.
2684 2009-09-11 Steve Falkenburg <sfalken@apple.com>
2686 Reviewed by Darin Adler.
2688 Allow WebKit clients to opt out of high resolution timers on Windows.
2689 https://bugs.webkit.org/show_bug.cgi?id=29192
2691 * Interfaces/IWebPreferencesPrivate.idl: Added getter/setter.
2692 Put this just after last 4.0.3 method for future merging.
2693 * Interfaces/WebKit.idl: Touched to force a rebuild.
2694 * WebPreferenceKeysPrivate.h: Added prefs key for high res timers.
2695 * WebPreferences.cpp:
2696 (WebPreferences::initializeDefaultSettings): Initialize high res timers to enabled.
2697 (WebPreferences::setShouldUseHighResolutionTimers): Added.
2698 (WebPreferences::shouldUseHighResolutionTimers): Added.
2699 * WebPreferences.h: Added getter/setter.
2701 2009-09-11 Adam Roben <aroben@apple.com>
2703 Get user script/stylesheet tests running on Windows
2705 Fixes <http://webkit.org/b/29181> User script/stylesheet tests are
2708 Reviewed by John Sullivan.
2710 * Interfaces/IWebViewPrivate.idl: Added addUserScriptToGroup,
2711 addUserStyleSheetToGroup, removeUserContentFromGroup,
2712 removeAllUserContentFromGropu to match the Mac SPI.
2715 (WebView::addUserScriptToGroup):
2716 (WebView::addUserStyleSheetToGroup):
2717 (WebView::removeUserContentFromGroup):
2718 (WebView::removeAllUserContentFromGroup):
2720 Added. Implementation was based on similar methods in WebView.mm.
2722 2009-09-11 Jon Honeycutt <jhoneycutt@apple.com>
2724 Fix crash on launch on Windows.
2726 Rubber-stamped by Mark Rowe.
2728 * WebKit.vcproj/WebKit.vcproj:
2729 Define ENABLE_WEB_SOCKETS for all configurations.
2731 2009-09-07 Drew Wilson <atwilson@google.com>
2733 Reviewed by David Levin.
2735 Enable SHARED_WORKERS by default.
2736 https://bugs.webkit.org/show_bug.cgi?id=28959
2738 * WebKit.vcproj/WebKit.vcproj:
2740 2009-09-04 Adam Roben <aroben@apple.com>
2742 Make WebView function without a parent window
2744 When WebView has no parent window, it becomes a message-only window,
2745 which hides it from the screen and prevents it from appearing on the
2748 Fixes <http://webkit.org/b/28971> <rdar://problem/4976998>
2749 WebView::initWithFrame fails if there's no host window
2751 Reviewed by Dave Hyatt.
2754 (WebView::initWithFrame): m_hostWindow is null, use HWND_MESSAGE as
2755 our parent window, which will make us a message-only window.
2756 (WebView::setHostWindow): If he new host window is null, use
2757 HWND_MESSAGE as our parent window, which will make us a message-only
2760 2009-09-04 Adam Barth <abarth@webkit.org>
2762 Unreviewed attempt at a build fix.
2764 Added missing include.
2766 * WebCoreSupport/WebFrameLoaderClient.cpp:
2768 2009-09-04 Adam Barth <abarth@webkit.org>
2770 Unreviewed attempt at a build fix.
2772 Fix typo of IWebFrameLoadDelegatePrivate2 and make
2773 IWebFrameLoadDelegatePrivate inherit from IWebFrameLoadDelegatePrivate
2774 as requestd by Adam Roben.
2776 * Interfaces/IWebFrameLoadDelegatePrivate2.idl:
2777 * WebCoreSupport/WebFrameLoaderClient.cpp:
2778 (WebFrameLoaderClient::didDisplayInsecureContent):
2779 (WebFrameLoaderClient::didRunInsecureContent):
2781 2009-09-04 Adam Barth <abarth@webkit.org>
2783 Reviewed by Eric Seidel.
2785 https://bugs.webkit.org/show_bug.cgi?id=24696
2787 Plumb mixed content notifications to IWebFrameLoadDelegatePrivate.
2789 * Interfaces/IWebFrameLoadDelegatePrivate2.idl: Added.
2790 * Interfaces/WebKit.idl:
2791 * WebCoreSupport/WebFrameLoaderClient.cpp:
2792 (WebFrameLoaderClient::didDisplayInsecureContent):
2793 (WebFrameLoaderClient::didRunInsecureContent):
2794 * WebKit.vcproj/Interfaces.vcproj:
2796 2009-09-03 Adam Barth <abarth@webkit.org>
2798 Reviewed by eric@webkit.org.
2800 https://bugs.webkit.org/show_bug.cgi?id=24696
2802 Stub implementations of mixed content methods of FrameLoaderClient.
2804 * WebCoreSupport/WebFrameLoaderClient.cpp:
2805 (WebFrameLoaderClient::didDisplayInsecureContent):
2806 (WebFrameLoaderClient::didRunInsecureContent):
2807 * WebCoreSupport/WebFrameLoaderClient.h:
2809 2009-09-01 Adam Roben <aroben@apple.com>
2811 Post a notification when a WebView is closing
2813 This is useful for situations where some code wants to react to the
2814 WebView closing but isn't in charge of the WebView and can't otherwise
2815 be notified. This notification could replace
2816 IWebUIDelegatePrivate::webViewClosing if we decide that the
2817 notification system isn't too burdensome.
2819 <http://webkit.org/b/28875>
2821 Reviewed by John Sullivan.
2823 * Interfaces/IWebViewPrivate.idl: Added the
2824 WebViewWillCloseNotification string constant.
2825 * WebKit.vcproj/WebKit.vcproj: Link against comsuppw.lib in all
2826 configurations so that we can use _bstr_t.
2828 (WebView::close): Post the WebViewWillCloseNotification.
2830 2009-08-31 Alexey Proskuryakov <ap@webkit.org>
2832 Reviewed by Darin Adler.
2834 https://bugs.webkit.org/show_bug.cgi?id=28852
2835 Rename KURL single argument constructor to avoid confusion
2837 * WebURLResponse.cpp: (WebURLResponse::createInstance): Adapt to the change.
2839 2009-08-20 Adam Roben <aroben@apple.com>
2841 Give WebKit clients access to the window features specified in
2844 Reviewed by Steve Falkenburg.
2846 * COMVariantSetter.h: Added COMVariantSetters for bool and float.
2848 * Interfaces/IWebUIDelegatePrivate.idl: Added IWebUIDelegatePrivate2,
2849 which contains a new version of createWebViewWithRequest that also
2850 passes the window features as an IPropertyBag. This is analagous to
2851 the -createWebViewWithRequest:windowFeatures: method added to
2852 WebUIDelegate on Mac in r27452. Also added key strings for use with
2853 the window features property bag.
2855 * WebCoreSupport/WebChromeClient.cpp:
2856 (createWindowFeaturesPropertyBag): Added this helper function to turn
2857 a WebCore::WindowFeatures into an IPropertyBag for passing to WebKit
2859 (WebChromeClient::createWindow): If the UI delegate implements
2860 IWebUIDelegatePrivate2, call the new createWebViewWithRequest function
2861 that takes a window features property bag. If the delegate doesn't
2862 implement the new function, fall back to the old functions.
2864 2009-08-20 Adam Roben <aroben@apple.com>
2866 A little clean-up in WebChromeClient::createWindow
2868 Reviewed by Steve Falkenburg.
2870 * WebCoreSupport/WebChromeClient.cpp:
2871 (WebChromeClient::createWindow): Refactored to share more code between
2872 the dialog and non-dialog cases.
2874 2009-08-28 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
2876 Reviewed by Holger Freyther.
2878 https://bugs.webkit.org/show_bug.cgi?id=25889
2879 [GTK] scrollbar policy for main frame is not implementable
2881 Add empty implementation for new ChromeClient method.
2883 * WebCoreSupport/WebChromeClient.h:
2884 (WebChromeClient::scrollbarsModeDidChange):
2886 2009-08-27 Brent Fulgham <bfulgham@webkit.org>
2888 Reviewed by Adam Roben.
2890 Modify Release_Cairo target to build testapi using the
2891 Release_CFLite target so that the correct CoreFoundation
2892 (in this case, CFLite.dll) is linked.
2894 * WebKit.vcproj/WebKit.sln:
2896 2009-08-26 Adam Barth <abarth@webkit.org>
2898 Reviewed by Oliver Hunt.
2900 Don't let local files access web URLs
2901 https://bugs.webkit.org/show_bug.cgi?id=28480
2903 * WebPreferences.cpp:
2904 (WebPreferences::initializeDefaultSettings):
2906 2009-08-26 David Levin <levin@chromium.org>
2908 Reviewed by Darin Fisher.
2910 ResourceRequestBase::*[Aa]llowHTTPCookies shouldn't mention http.
2911 https://bugs.webkit.org/show_bug.cgi?id=28735
2913 * WebMutableURLRequest.cpp:
2914 (WebMutableURLRequest::setHTTPShouldHandleCookies):
2916 2009-08-25 Eric Carlson <eric.carlson@apple.com>
2918 Reviewed by Oliver Hunt.
2920 <video> and <audio> controller should be accessible
2921 https://bugs.webkit.org/show_bug.cgi?id=28081
2923 * WebCoreLocalizedStrings.cpp:
2924 (WebCore::localizedMediaControlElementString):
2925 (WebCore::localizedMediaControlElementHelpText):
2926 (WebCore::localizedMediaTimeDescription):
2929 2009-08-25 Brent Fulgham <bfulgham@webkit.org>
2931 Build fix for Windows.
2933 Revise Debug_Cairo build target to build testapi, jsc, WinLauncher,
2934 DumpRenderTree, and TestNetscapeAPI using WinCairo debug build
2935 settings so they link against the proper libraries.
2937 * WebKit.vcproj/WebKit.sln:
2939 2009-08-25 David Levin <levin@chromium.org>
2941 Reviewed by Adam Roben.
2943 PLATFORM(CFNETWORK) should be USE(CFNETWORK).
2944 https://bugs.webkit.org/show_bug.cgi?id=28713
2946 Also, moved the #if header section after the other #includes.
2949 (WebError::localizedDescription):
2951 2009-08-24 Brent Fulgham <bfulgham@webkit.org>
2953 Reviewed by Steve Falkenburg.
2955 Revise CFLite Debug build to emit DLL's with _debug label.
2956 https://bugs.webkit.org/show_bug.cgi?id=28695.
2958 * WebKit.vcproj/WebKit.vcproj: Modify Debug_Cairo target to
2959 inherit from new debug_wincairo property sheet, instead of
2960 the current debug sheet.
2962 2009-08-22 Adam Barth <abarth@webkit.org>
2964 Revert 47684. We're going to do this later once clients have had a
2965 chance to opt into the setting they like.
2967 * WebPreferences.cpp:
2968 (WebPreferences::initializeDefaultSettings):
2970 2009-08-22 Adam Barth <abarth@webkit.org>
2972 Reviewed by Eric Seidel.
2974 Don't let local files access web URLs
2975 https://bugs.webkit.org/show_bug.cgi?id=28480
2977 * WebPreferences.cpp:
2978 (WebPreferences::initializeDefaultSettings):
2980 2009-08-20 Brian Weinstein <bweinstein@apple.com>
2982 Reviewed by Adam Roben.
2984 Fix of <http://webkit.org/b/27850>. Panning by emulating Mouse Wheel Events breaks Google Maps.
2986 Switched to using RenderLayer::scrollByRecursively instead of emulating a mouse wheel,
2987 and switched to handling the hit testing in WebView from doing it as part of the mouse wheel event.
2988 One downside of this fix is that panning will not jump out of frames anymore (same behavior as pan-scrolling), but
2989 this is tracked in <http://webkit.org/b/28237>.
2992 (WebView::gestureNotify): Added hit testing here to figure out the node the user started the gesture on.
2993 (WebView::gesture): Switched from emulating mouse wheel events for panning to calling RenderLayer::scrollByRecursively.
2996 2009-08-18 Brian Weinstein <bweinstein@apple.com>
2998 Reviewed by Oliver Hunt.
3000 Fix of <https://bugs.webkit.org/show_bug.cgi?id=28326> DRT on Windows doesn't support
3001 LayoutTestController::setQuota or print a callback on UIDelegate::exceededDatabaseQuota.
3003 Added a setQuota interface method to IWebDatabaseManager and implemented it.
3005 * Interfaces/IWebDatabaseManager.idl:
3006 * WebDatabaseManager.cpp:
3007 (WebDatabaseManager::setQuota):
3008 * WebDatabaseManager.h:
3010 2009-08-18 Drew Wilson <atwilson@google.com>
3012 Unreviewed (build break).
3014 Added missing include for WebWorkersPrivate.h.
3016 * WebKitClassFactory.cpp:
3018 2009-08-18 Peter Kasting <pkasting@google.com>
3020 Reviewed by Eric Seidel.
3022 https://bugs.webkit.org/show_bug.cgi?id=28415
3023 Set svn:eol-style CRLF on all .sln and .vcproj files that don't already
3026 * WebKit.vcproj/InterfacesGenerated.vcproj:
3028 2009-08-18 Drew Wilson <atwilson@google.com>
3030 Reviewed by Eric Seidel.
3032 Need to extend DumpRenderTree to expose number of worker threads
3033 https://bugs.webkit.org/show_bug.cgi?id=28292
3035 Defined/implemented COM interfaces to expose WorkerThread::workerThreadCount() for DumpRenderTree.
3038 Added WebWorkersPrivate.
3039 * Interfaces/IWebWorkersPrivate.idl: Added.
3040 * Interfaces/WebKit.idl:
3041 Added WebWorkersPrivate.
3042 * WebKit.vcproj/Interfaces.vcproj:
3043 * WebKit.vcproj/WebKit.vcproj:
3044 * WebWorkersPrivate.cpp: Added.
3045 Implementation of the IWebWorkersPrivate COM interface, to expose workerThreadCount() for DumpRenderTree.
3046 (WebWorkersPrivate::QueryInterface):
3047 (WebWorkersPrivate::AddRef):
3048 (WebWorkersPrivate::Release):
3049 (WebWorkersPrivate::workerThreadCount):
3050 (WebWorkersPrivate::createInstance):
3051 (WebWorkersPrivate::WebWorkersPrivate):
3052 (WebWorkersPrivate::~WebWorkersPrivate):
3053 * WebWorkersPrivate.h: Added.
3055 2009-08-17 Peter Kasting <pkasting@google.com>
3057 Reviewed by Steve Falkenburg.
3059 https://bugs.webkit.org/show_bug.cgi?id=27323
3060 Only add Cygwin to the path when it isn't already there. This avoids
3061 causing problems for people who purposefully have non-Cygwin versions of
3062 executables like svn in front of the Cygwin ones in their paths.
3064 * WebKit.vcproj/Interfaces.vcproj:
3065 * WebKit.vcproj/InterfacesGenerated.vcproj:
3066 * WebKit.vcproj/WebKit.vcproj:
3067 * WebKit.vcproj/WebKitGUID.vcproj:
3069 2009-08-17 Simon Fraser <simon.fraser@apple.com>
3071 Speculative fix for Windows build bustage.
3073 * DOMHTMLClasses.cpp:
3074 (DOMHTMLElement::idName):
3076 2009-08-13 Jon Honeycutt <jhoneycutt@apple.com>
3078 Part of <rdar://problem/6218721> No MSAA focus events fired for Webkit
3081 https://bugs.webkit.org/show_bug.cgi?id=20866
3083 Reviewed by Oliver Hunt.
3085 * AccessibleBase.cpp:
3086 (AccessibleBase::getAccessibilityObjectForChild):
3087 If the child ID is negative, negate it and treat it as an AXID.
3089 2009-08-12 Brian Weinstein <bweinstein@apple.com>
3091 Reviewed by Adam Roben.
3093 Fix of <rdar://6728361> Mouse wheel scrolling on a page with expanded drop down
3094 list detaches drop down.
3096 Added a check in mouseWheel to see if our focus is currently in a popup, if so, close
3097 the popup (matches other browser behavior).
3100 (WebView::mouseWheel):
3102 2009-08-12 Adam Roben <aroben@apple.com>
3104 Make WebPreferenceKeysPrivate.h available for client use
3106 Reviewed by Dave Hyatt.
3108 Fixes <http://webkit.org/b/28227>.
3110 * WebKit.vcproj/WebKit.vcproj: Copy WebPreferenceKeysPrivate.h to
3111 $WebKitOutputDir, just like we do for a few other headers. Also let VS
3112 reorder some XML attributes.
3114 * WebPreferenceKeysPrivate.h: Touched this file to force a build.
3116 2009-08-11 Adam Roben <aroben@apple.com>
3118 Remove support for a window resizer within the WebView
3120 Starting with Safari 4, there is never a window resizer inside the
3121 WebView, so we no longer need to support that functionality.
3123 Fixes <http://webkit.org/b/28190> Remove support for a window resizer
3126 Reviewed by Dave Hyatt.
3128 * Interfaces/IWebUIDelegatePrivate.idl: Replaced the delegate
3129 functions related to the window resizer with unused*() functions. We
3130 can't remove them entirely because we need to keep the vtable
3131 unchanged so new versions of WebKit will work with old versions of
3132 Safari (e.g., for nightlies and WebKit development).
3134 * WebCoreSupport/WebChromeClient.cpp:
3135 (WebChromeClient::windowResizerRect): Now always returns an empty
3140 (WebView::handleMouseEvent):
3142 Removed window-resizer-related code.
3144 2009-08-11 John Gregg <johnnyg@google.com>
3146 Reviewed by Maciej Stachowiak.
3148 Move the accessor for notifications presenter from WebUIDelegate
3149 to WebUIDelegate2 which extends it. When making this call from
3150 WebCoreSupport, check using QueryInterface before calling.
3152 https://bugs.webkit.org/show_bug.cgi?id=28198
3154 * Interfaces/IWebUIDelegate.idl:
3155 * Interfaces/IWebUIDelegate2.idl: Added.
3156 * Interfaces/WebKit.idl:
3157 * WebCoreSupport/WebDesktopNotificationsDelegate.cpp:
3158 (WebDesktopNotificationsDelegate::show):
3159 (WebDesktopNotificationsDelegate::cancel):
3160 (WebDesktopNotificationsDelegate::notificationObjectDestroyed):
3161 (WebDesktopNotificationsDelegate::requestPermission):
3162 (WebDesktopNotificationsDelegate::checkPermission):
3163 (WebDesktopNotificationsDelegate::hasNotificationDelegate):
3164 (WebDesktopNotificationsDelegate::notificationDelegate):
3165 * WebCoreSupport/WebDesktopNotificationsDelegate.h:
3167 2009-08-11 Drew Wilson <atwilson@google.com>
3169 Reviewed by NOBODY (build break).
3171 Speculative Windows build fix - undo previous unnecessary change.
3173 * WebCoreSupport/WebDesktopNotificationsDelegate.h:
3175 2009-08-11 Brian Weinstein <bweinstein@apple.com>
3177 Reviewed by Steve Falkenburg.
3179 Refactored MIMETypeforExtension to be a member of IWebViewPrivate
3180 instead of IWebView.
3182 * Interfaces/IWebView.idl:
3183 * Interfaces/IWebViewPrivate.idl:
3185 (WebView::MIMETypeForExtension):
3188 2009-08-11 Drew Wilson <atwilson@google.com>
3190 Reviewed by NOBODY (build break)
3192 Speculative fix for windows build break.
3194 * WebKitSupport/WebDesktopNotificationsDelegate.h:
3195 WebCore/Notification*.h => WebCore/notifications/Notification*.h
3197 2009-08-11 John Gregg <johnnyg@google.com>
3199 Reviewed by Maciej Stachowiak.
3201 Desktop Notifications API
3202 https://bugs.webkit.org/show_bug.cgi?id=25643
3204 Adds test hooks for notification features to WebCoreSupport for
3205 use in DumpRenderTree.
3207 * Interfaces/IWebDesktopNotificationsDelegate.idl: Added.
3208 * Interfaces/IWebUIDelegate.idl:
3209 * Interfaces/WebKit.idl:
3210 * WebCoreSupport/WebChromeClient.cpp:
3211 (WebChromeClient::WebChromeClient):
3212 * WebCoreSupport/WebChromeClient.h:
3213 (WebChromeClient::notificationPresenter):
3214 * WebCoreSupport/WebDesktopNotificationsDelegate.cpp: Added.
3215 (NotificationCOMWrapper::create):
3216 (NotificationCOMWrapper::NotificationCOMWrapper):
3217 (NotificationCOMWrapper::QueryInterface):
3218 (NotificationCOMWrapper::AddRef):
3219 (NotificationCOMWrapper::Release):
3220 (NotificationCOMWrapper::isHTML):
3221 (NotificationCOMWrapper::contentsURL):
3222 (NotificationCOMWrapper::iconURL):
3223 (NotificationCOMWrapper::title):
3224 (NotificationCOMWrapper::text):
3225 (NotificationCOMWrapper::notifyDisplay):
3226 (NotificationCOMWrapper::notifyError):
3227 (NotificationCOMWrapper::notifyClose):
3228 (WebDesktopNotificationsDelegate::WebDesktopNotificationsDelegate):
3229 (WebDesktopNotificationsDelegate::show):
3230 (WebDesktopNotificationsDelegate::cancel):
3231 (WebDesktopNotificationsDelegate::notificationObjectDestroyed):
3232 (WebDesktopNotificationsDelegate::requestPermission):
3233 (WebDesktopNotificationsDelegate::checkPermission):
3234 (WebDesktopNotificationsDelegate::notificationDelegate):
3235 * WebCoreSupport/WebDesktopNotificationsDelegate.h: Added.
3236 * WebCoreSupport/WebInspectorDelegate.h:
3237 (WebInspectorDelegate::desktopNotificationsDelegate):
3238 * WebKit.vcproj/Interfaces.vcproj:
3239 * WebKit.vcproj/WebKit.vcproj:
3241 2009-08-11 Brian Weinstein <bweinstein@apple.com>
3243 Reviewed by Adam Roben.
3245 Fix of <rdar://5016504> SVG file cannot be dragged to webview,
3246 but can be opened via Open File.
3248 Added a new function to IWebView that gets the MIME type for a given
3249 extension from the MIMETypeRegistry.
3251 * Interfaces/IWebView.idl:
3253 (WebView::MIMETypeForExtension):
3256 2009-08-11 Dmitry Titov <dimich@chromium.org>
3258 Reviewed by Adam Roben.
3260 Originally implemented by Glenn Wilson <gwilson@chromium.org>.
3262 Added support for overriding default preferences per-test.
3263 See https://bugs.webkit.org/show_bug.cgi?id=20534
3265 * Interfaces/IWebPreferencesPrivate.idl: added new method setPreferenceForTest
3266 * WebPreferences.cpp: same.
3267 * WebPreferences.h: same.
3269 2009-08-10 Dan Bernstein <mitz@apple.com>
3271 Reviewed by Darin Adler.
3273 Link drag images specify Lucida Grande on Windows and end up using Times
3275 <rdar://problem/7117835>
3277 * WebCoreSupport/WebDragClient.cpp:
3278 (dragLabelFont): Added a RenderingMode parameter and changed to use the
3279 same typeface as the Windows small caption font.
3280 (WebDragClient::createDragImageForLink): Changed to respect the
3281 page’s rendering mode.
3283 2009-08-10 Brent Fulgham <bfulgham@webkit.org>
3285 Reviewed by Adam Roben.
3287 https://bugs.webkit.org/show_bug.cgi?id=28048.
3288 Move various WinCairo build settings into *.vsprops file.
3290 * WebKit.vcproj/WebKit.vcproj: Add new cURL.vsprops property sheet
3291 (which contains link settings for cURL and its dependencies), and
3292 remove the corresponding entries from the vcproj file. Remove
3293 png, jpeg, cairo library linking flags from vcproj, now that they
3294 are in the WinCairo.vsprops file.
3296 2009-08-09 Nikolas Zimmermann <nikolas.zimmermann@torchmobile.com>
3298 Reviewed by George Staikos.
3300 [WML] Deck access control is completly broken
3301 https://bugs.webkit.org/show_bug.cgi?id=27721
3303 Synchronize WebFrameLoadType with FrameLoadType enum. Append 'WebFrameLoadTypeBackWMLDeckNotAccessible'.
3305 * Interfaces/IWebFramePrivate.idl:
3307 2009-08-09 Nikolas Zimmermann <nikolas.zimmermann@torchmobile.com>
3309 Reviewed by Maciej Stachowiak.
3311 FrameLoadType / WebFrameLoadType enums are out of sync
3312 https://bugs.webkit.org/show_bug.cgi?id=28132
3314 Synchronize FrameLoadType <-> WebFrameLoadType enums (append missing 'WebFrameLoadTypeReloadFromOrigin' value)
3316 * Interfaces/IWebFramePrivate.idl:
3318 2009-08-06 Adam Barth <abarth@webkit.org>
3322 http://bugs.webkit.org/show_bug.cgi?id=27879
3324 Revert 46877 because it broke GTK.
3328 2009-08-06 Zoltan Horvath <hzoltan@inf.u-szeged.hu>
3330 Reviewed by Adam Barth.
3332 Change Noncopyable inheriting to public
3333 http://bugs.webkit.org/show_bug.cgi?id=27879
3335 Since Noncopyable is inherited from FastAllocBase,
3336 Noncopyable's inheriting has been changed to public.
3340 2009-08-04 Alice Liu <alice.liu@apple.com>
3342 "Shift + Enter" should behave like "Enter" in editable fields.
3343 Affects backward search in find-in-page in Safari for Windows
3345 Reviewed by Jon Honeycutt.
3348 Register shift+enter as InsertNewline command, similar to other
3349 modifier+Enter combinations.
3351 2009-07-29 Jon Honeycutt <jhoneycutt@apple.com>
3353 Part of <rdar://problem/5698113> Safari shouldn't auto-activate
3354 plug-ins in background tabs (make Win consistent with Mac)
3356 https://bugs.webkit.org/show_bug.cgi?id=27855
3358 Reviewed by Adam Roben and Anders Carlsson.
3360 * Interfaces/IWebViewPrivate.idl:
3361 Add setCanStartPlugins().
3363 * WebCoreSupport/WebFrameLoaderClient.cpp:
3364 (WebFrameLoaderClient::dispatchDidFailToStartPlugin):
3365 Added; code moved from createPlugin(). Modified to obtain the plug-in's
3366 page URL, the plug-ins "plug-ins page" parameter value, and the
3367 plug-in's MIME type by calling getter functions on the passed
3369 (WebFrameLoaderClient::createPlugin):
3370 If the plug-in status is not "success," call
3371 dispatchDidFailToStartPlugin().
3373 * WebCoreSupport/WebFrameLoaderClient.h:
3374 Declare an override of dispatchDidFailToStartPlugin().
3378 Add a missing ) to a comment.
3379 (WebView::setCanStartPlugins):
3380 Call the Page's setCanStartPlugins() function.
3384 2009-07-30 Darin Adler <darin@apple.com>
3386 Reviewed by David Levin.
3388 Use checked casts for render tree
3389 https://bugs.webkit.org/show_bug.cgi?id=23522
3391 * DOMHTMLClasses.cpp:
3392 (DOMHTMLInputElement::isUserEdited):
3393 (DOMHTMLTextAreaElement::isUserEdited):
3396 2009-07-31 Anders Carlsson <andersca@apple.com>
3398 Reviewed by Dan Bernstein.
3400 -Fix <rdar://problem/7104097>
3402 Make EmbeddedWidget::create return a PassRefPtr so it will have the correct ref count.
3404 * WebCoreSupport/EmbeddedWidget.cpp:
3405 (EmbeddedWidget::create):
3406 * WebCoreSupport/EmbeddedWidget.h:
3408 2009-07-29 Brian Weinstein <bweinstein@apple.com>
3410 Was doing the build fix wrong, NotImplemented.h is in WebCore.
3412 * WebCoreSupport/WebInspectorClient.cpp:
3414 2009-07-29 Brian Weinstein <bweinstein@apple.com>
3418 * WebCoreSupport/WebInspectorClient.cpp:
3420 2009-07-29 Kevin McCullough <kmccullough@apple.com>
3422 Reviewed by Darin Adler.
3424 Added foundation work to allow a testing infrastructure for the Web
3427 * WebCoreSupport/WebInspectorClient.cpp:
3428 (WebInspectorClient::inspectorWindowObjectCleared): Empty definition
3429 to let Windows compile but we should implement this at some point so
3430 that the tests can be run on Windows too.
3431 * WebCoreSupport/WebInspectorClient.h:
3433 2009-07-28 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
3435 Reviewed by Steve Falkenburg.
3437 Add output directory for VS pre-build steps to enable out-of-tree builds
3439 https://bugs.webkit.org/show_bug.cgi?id=27700
3441 The tmp.obj file is now placed in the intermediate build directory.
3443 * WebKit.vcproj/WebKit.vcproj:
3445 2009-07-27 Brian Weinstein <bweinstein@apple.com>
3447 Build fix for Windows.
3450 (WebView::stringByEvaluatingJavaScriptFromString):
3452 2009-07-27 Alexey Proskuryakov <ap@webkit.org>
3454 Reviewed by Darin Adler.
3456 https://bugs.webkit.org/show_bug.cgi?id=27735
3457 Give a helpful name to JSLock constructor argument
3459 * WebCoreStatistics.cpp:
3460 (WebCoreStatistics::javaScriptObjectsCount):
3461 (WebCoreStatistics::javaScriptGlobalObjectsCount):
3462 (WebCoreStatistics::javaScriptProtectedObjectsCount):
3463 (WebCoreStatistics::javaScriptProtectedGlobalObjectsCount):
3464 (WebCoreStatistics::javaScriptProtectedObjectTypeCounts):
3465 * WebJavaScriptCollector.cpp:
3466 (WebJavaScriptCollector::objectCount):
3468 (WebView::stringByEvaluatingJavaScriptFromString):
3470 2009-07-25 Kwang Yul Seo <skyul@company100.net>
3472 Reviewed by Darin Adler.
3474 Windows build break due to warning C4819
3475 https://bugs.webkit.org/show_bug.cgi?id=27416
3477 Disable C4819 warning to fix build.
3479 * WebKit.vcproj/WebKit.vcproj:
3481 2009-07-24 Brent Fulgham <bfulgham@webkit.org>
3483 Reviewed by Dave Hyatt.
3485 Clean up dependencies on Apple support libraries for non-Apple build.
3486 http://bugs.webkit.org/show_bug.cgi?id=27532.
3488 * DefaultDownloadDelegate.h: Conditionalize include of CFNetwork.h
3489 * WebDownload.h: Conditionalize include of CFNetwork.h
3490 * WebMutableURLRequest.cpp: Conditionalize include of CFNetwork.h
3492 2009-07-24 Andrei Popescu <andreip@google.com>
3494 Reviewed by Anders Carlsson.
3496 ApplicationCache should have size limit
3497 https://bugs.webkit.org/show_bug.cgi?id=22700
3499 * WebCoreSupport/WebChromeClient.cpp:
3500 (WebChromeClient::reachedMaxAppCacheSize):
3501 Adds empty implementation of the reachedMaxAppCacheSize callback.
3502 * WebCoreSupport/WebChromeClient.h:
3504 2009-07-23 Brady Eidson <beidson@apple.com>
3506 Reviewed by Geoff Garen.
3508 WebFrameLoaderClient on Windows doesn't gracefully handle a null request returned from willSendRequest.
3509 https://bugs.webkit.org/show_bug.cgi?id=27595
3511 * WebCoreSupport/WebFrameLoaderClient.cpp:
3512 (WebFrameLoaderClient::dispatchWillSendRequest):
3514 2009-07-22 Takeshi Yoshino <tyoshino@google.com>
3516 Reviewed by Darin Adler.
3518 VC++ 2005 Express failed to build WebKit due to raw UTF-8 string in WebKit/win/WebCoreLocalizedStrings.cpp
3519 https://bugs.webkit.org/show_bug.cgi?id=26375
3521 Replace a multiplication sign (U+00D7) encoded in UTF-8 (0xC3 0x97) in WebCoreLocalizedStrings.cpp
3522 with hex escape sequences.
3524 VC2005 failed to build due to this raw UTF-8 data in source code. Here's the warning message (
3525 treated as an error and stopped build).
3527 WebCoreLocalizedStrings.cpp : warning C4819: The file contains a character that cannot be
3528 represented in the current code page (932). Save the file in Unicode format to prevent data loss
3530 A change on WebKitTools/Scripts/extract-localizable-strings is attached to this change not to break
3531 localized string generation process.
3533 * WebCoreLocalizedStrings.cpp:
3534 (WebCore::imageTitle):
3536 2009-07-21 Roland Steiner <rolandsteiner@google.com>
3538 Reviewed by David Levin.
3540 Add ENABLE_RUBY to list of build options
3541 https://bugs.webkit.org/show_bug.cgi?id=27324
3543 * WebKit.vcproj/WebKit.vcproj: Added flag ENABLE_RUBY.
3545 2009-07-20 Peter Kasting <pkasting@google.com>
3547 Reviewed by Mark Rowe.
3549 https://bugs.webkit.org/show_bug.cgi?id=27468
3550 Back out r46060, which caused problems for some Apple developers.
3552 * WebKit.vcproj/Interfaces.vcproj:
3553 * WebKit.vcproj/InterfacesGenerated.vcproj:
3554 * WebKit.vcproj/WebKit.vcproj:
3555 * WebKit.vcproj/WebKitGUID.vcproj:
3557 2009-07-17 Brian Weinstein <bweinstein@apple.com>
3559 Reviewed by Adam Roben.
3561 Fix of <rdar://problem/5712795> Win: Cannot change the height of the docked Web Inspector (14272)
3562 https://bugs.webkit.org/show_bug.cgi?id=14272
3564 Implemented resizing of inspector window when it is in attached mode. Implemented setAttachedWindowHeight
3565 to set window sizes and redraw the inspector and the inspected web view, and used stored preferences
3566 in InspectorController.cpp to remember user's preferred height.
3568 * WebCoreSupport/WebInspectorClient.cpp:
3570 2009-07-17 Peter Kasting <pkasting@google.com>
3572 Reviewed by Steve Falkenburg.
3574 https://bugs.webkit.org/show_bug.cgi?id=27323
3575 Only add Cygwin to the path when it isn't already there. This avoids
3576 causing problems for people who purposefully have non-Cygwin versions of
3577 executables like svn in front of the Cygwin ones in their paths.
3579 * WebKit.vcproj/Interfaces.vcproj:
3580 * WebKit.vcproj/InterfacesGenerated.vcproj:
3581 * WebKit.vcproj/WebKit.vcproj:
3582 * WebKit.vcproj/WebKitGUID.vcproj:
3584 2009-07-16 Fumitoshi Ukai <ukai@chromium.org>
3586 Reviewed by David Levin.
3588 Add --web-sockets flag and ENABLE_WEB_SOCKETS define.
3589 https://bugs.webkit.org/show_bug.cgi?id=27206
3591 Add ENABLE_WEB_SOCKETS
3593 * WebKit.vcproj/WebKit.vcproj: add ENABLE_WEB_SOCKETS
3595 2009-07-16 Xiaomei Ji <xji@chromium.org>
3597 Reviewed by Darin Adler.
3599 Fix tooltip does not get its directionality from its element's directionality.
3600 https://bugs.webkit.org/show_bug.cgi?id=24187
3602 Per mitz's suggestion in comment #6, while getting the plain-text
3603 title, we also get the directionality of the title. How to handle
3604 the directionality is up to clients. Clients could ignore it,
3605 or use attribute or unicode control characters to display the title
3608 * WebCoreSupport/WebChromeClient.cpp:
3609 (WebChromeClient::setToolTip): Add directionality as 2nd parameter to setToopTip() (without handling it yet).
3610 * WebCoreSupport/WebChromeClient.h: Add directionality as 2nd parameter to setToolTip().
3611 * WebElementPropertyBag.cpp:
3612 (WebElementPropertyBag::Read): Change call of spellingToolTip() and title() due to signature change.
3614 2009-07-15 Darin Adler <darin@apple.com>
3616 Reviewed by Sam Weinig.
3618 Renamed parseURL to deprecatedParseURL.
3620 * WebCoreSupport/WebFrameLoaderClient.cpp:
3621 (WebFrameLoaderClient::createPlugin): Renamed.
3623 2009-07-14 Steve Falkenburg <sfalken@apple.com>
3625 Reorganize JavaScriptCore headers into:
3626 API: include/JavaScriptCore/
3627 Private: include/private/JavaScriptCore/
3629 Reviewed by Darin Adler.
3631 * WebKit.vcproj/WebKit.vcproj:
3633 2009-07-14 Zoltan Horvath <hzoltan@inf.u-szeged.hu>
3635 Reviewed by Darin Adler.
3637 Change all Noncopyable inheriting visibility to public.
3638 https://bugs.webkit.org/show_bug.cgi?id=27225
3640 Change all Noncopyable inheriting visibility to public because
3641 it is needed to the custom allocation framework (bug #20422).
3644 * WebDatabaseManager.cpp:
3646 * WebLocalizableStrings.cpp:
3648 2009-07-13 Brent Fulgham <bfulgham@webkit.org>
3650 Reviewed by Adam Roben.
3652 Refactor WebFrame::spoolPages for easier sharing with Windows Cairo.
3653 https://bugs.webkit.org/show_bug.cgi?id=27240.
3656 (WebFrame::printHeader): New shared method to print the header.
3657 (WebFrame::printFooter): New shared method to print the footer.
3658 (WebFrame::spoolPage): New conditionally-compiled method to print
3660 (WebFrame::spoolPages): Revised to call the platform-specific spoolPage
3662 * WebFrame.h: Add new method prototypes.
3664 2009-07-13 Brent Fulgham <bfulgham@webkit.org>
3666 Reviewed by Adam Roben.
3668 Add new configuration flag for redistributable Windows build.
3669 https://bugs.webkit.org/show_bug.cgi=27087
3671 * WebKit.vcproj/WebKit.vcproj: Add new WinCairo.vsprops to
3672 Debug_Cairo and Release_Cairo targets.
3674 2009-07-12 Brent Fulgham <bfulgham@gmail.com>
3676 Speculative Windows build fix after http://trac.webkit.org/changeset/45786.
3678 * WebCoreSupport/WebChromeClient.cpp: