1 2010-08-30 Sheriff Bot <webkit.review.bot@gmail.com>
3 Unreviewed, rolling out r66198.
4 http://trac.webkit.org/changeset/66198
5 https://bugs.webkit.org/show_bug.cgi?id=44856
7 It made tests crash on Qt bot (Requested by Ossy_ on #webkit).
9 * WebCoreSupport/InspectorClientGtk.cpp:
10 (WebKit::notifyWebViewDestroyed):
11 (WebKit::InspectorFrontendClient::destroyInspectorWindow):
12 (WebKit::InspectorFrontendClient::closeWindow):
13 * WebCoreSupport/InspectorClientGtk.h:
15 2010-08-27 Yury Semikhatsky <yurys@chromium.org>
17 Reviewed by Pavel Feldman.
19 REGRESSION: Crash occurs at objc_msgSend when closing a window that is displaying the web inspector
20 https://bugs.webkit.org/show_bug.cgi?id=44230
22 * WebCoreSupport/InspectorClientGtk.cpp:
23 (WebKit::notifyWebViewDestroyed):
24 (WebKit::InspectorFrontendClient::destroyInspectorWindow):
25 (WebKit::InspectorFrontendClient::closeWindow):
26 (WebKit::InspectorFrontendClient::disconnectFromBackend):
27 * WebCoreSupport/InspectorClientGtk.h:
29 2010-08-26 Yury Semikhatsky <yurys@chromium.org>
31 Unreviewed. Revert r66103 since Qt tests are failing.
33 * WebCoreSupport/InspectorClientGtk.cpp:
34 (WebKit::notifyWebViewDestroyed):
35 (WebKit::InspectorFrontendClient::destroyInspectorWindow):
36 (WebKit::InspectorFrontendClient::closeWindow):
37 * WebCoreSupport/InspectorClientGtk.h:
39 2010-08-26 Yury Semikhatsky <yurys@chromium.org>
41 Reviewed by Pavel Feldman.
43 REGRESSION: Crash occurs at objc_msgSend when closing a window that is displaying the web inspector
44 https://bugs.webkit.org/show_bug.cgi?id=44230
46 * WebCoreSupport/InspectorClientGtk.cpp:
47 (WebKit::notifyWebViewDestroyed):
48 (WebKit::InspectorFrontendClient::destroyInspectorWindow):
49 (WebKit::InspectorFrontendClient::closeWindow):
50 (WebKit::InspectorFrontendClient::disconnectFromBackend):
51 * WebCoreSupport/InspectorClientGtk.h:
53 2010-08-26 Gustavo Noronha Silva <gns@gnome.org>
55 Reviewed by Martin Robinson.
57 [GTK] WebKitGTK+ needs proper introspection annotation for most types and methods
58 https://bugs.webkit.org/show_bug.cgi?id=44565
60 Add documentation and introspection specific information to a few
61 getter and setter methods.
63 * webkit/webkitwebview.cpp:
65 2010-08-25 Martin Robinson <mrobinson@igalia.com>
67 Reviewed by Gustavo Noronha Silva.
69 confirm dialog should show OK/Cancel instead of Yes/No for consistency
70 https://bugs.webkit.org/show_bug.cgi?id=32877
72 Change the button labels for the fallback confirmation dialog to be
75 * webkit/webkitwebview.cpp:
76 (webkit_web_view_script_dialog):
78 2010-08-25 Martin Robinson <mrobinson@igalia.com>
80 Reviewed by Gustavo Noronha Silva.
82 Cairo and EFL port shouldn't depend on glib.
83 https://bugs.webkit.org/show_bug.cgi?id=44354
85 Replace occurrences of GRefPtr and adoptGRef with PlatformRefPtr and
88 * WebCoreSupport/ChromeClientGtk.cpp:
89 (WebKit::ChromeClient::requestGeolocationPermissionForFrame):
90 * WebCoreSupport/DragClientGtk.cpp:
91 (WebKit::DragClient::startDrag):
92 * WebCoreSupport/EditorClientGtk.h:
93 * WebCoreSupport/FrameLoaderClientGtk.cpp:
94 (WebKit::FrameLoaderClient::dispatchWillSendRequest):
95 (WebKit::FrameLoaderClient::dispatchDecidePolicyForMIMEType):
96 (WebKit::FrameLoaderClient::createPlugin):
97 * WebCoreSupport/FullscreenVideoController.h:
98 * WebCoreSupport/InspectorClientGtk.cpp:
99 (WebKit::InspectorClient::populateSetting):
100 (WebKit::InspectorClient::storeSetting):
101 * webkit/webkitdownload.cpp:
102 (webkit_download_error):
103 * webkit/webkitnetworkrequest.cpp:
104 (webkit_network_request_new_with_core_request):
105 * webkit/webkitnetworkresponse.cpp:
106 (webkit_network_response_new_with_core_response):
108 2010-08-24 Xan Lopez <xlopez@igalia.com>
110 Reviewed by Martin Robinson.
112 Set a device to the event struct when building with GTK+ 3.x, it's
115 * tests/testcopyandpaste.c:
116 (runPasteTestCallback):
118 2010-08-24 Martin Robinson <mrobinson@igalia.com>
122 * tests/testkeyevents.c:
123 (key_press_event_cb):
124 (key_release_event_cb):
126 2010-08-24 Martin Robinson <mrobinson@igalia.com>
128 Reviewed by Xan Lopez.
130 [GTK] GTK3: EventSender and API tests should use gdk_event_new when synthesizing events
131 https://bugs.webkit.org/show_bug.cgi?id=44534
133 Fix an issue where a GdkEvent* is treated like a GdkEvent.
135 * tests/testkeyevents.c:
136 (key_press_event_cb):
137 (key_release_event_cb):
139 2010-08-24 Martin Robinson <mrobinson@igalia.com>
141 Reviewed by Xan Lopez.
143 [GTK] GTK3: EventSender and API tests should use gdk_event_new when synthesizing events
144 https://bugs.webkit.org/show_bug.cgi?id=44534
146 * tests/testcopyandpaste.c:
147 (runPasteTestCallback): Switch to using gdk_event_new and also reference the GdkWindow.
148 when setting it on the event. It is dereferenced by gdk_event_free(...).
149 * tests/testhittestresult.c:
150 (load_status_cb): Switch to using gdk_event_new.
152 2010-08-24 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
154 Rubber-stamped by Xan Lopez.
156 Do not initialize the GSettings object in webkit_init - the other
157 call sites are always called in the main thread so this is
160 * webkit/webkitprivate.cpp:
163 2010-08-20 Martin Robinson <mrobinson@igalia.com>
165 Reviewed by Pavel Feldman.
167 Web Inspector: Inspector tests were disabled for GTK.
168 https://bugs.webkit.org/show_bug.cgi?id=43977
170 Allow setting the inspector resources path via an environment variables
171 and add a method, inspectorFilesPath, to the WebKit InspectorClient that
172 encapsulates this logic.
174 * WebCoreSupport/InspectorClientGtk.cpp:
175 (WebKit::InspectorClient::openInspectorFrontend): Use the new inspectorFilesPath method to
176 get the path to the resource.
177 (WebKit::InspectorClient::inspectorFilesPath): Added.
178 (WebKit::InspectorFrontendClient::localizedStringsURL): Use inspectorFilesPath method.
179 * WebCoreSupport/InspectorClientGtk.h: Add method and member variables for caching the result.
181 2010-08-19 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
183 Reviewed by Kenneth Rohde Christiansen.
185 [Gtk] Enable view mode media feature layout test
186 https://bugs.webkit.org/show_bug.cgi?id=43278
188 Add the view-mode property, to control the WebCore page's viewMode.
190 * docs/webkitgtk-sections.txt:
191 * webkit/webkitwebview.cpp:
192 (webkit_web_view_get_property):
193 (webkit_web_view_set_property):
194 (webkit_web_view_class_init):
195 (webkit_web_view_set_view_mode):
196 (webkit_web_view_get_view_mode):
197 * webkit/webkitwebview.h:
199 2010-08-19 Philippe Normand <pnormand@igalia.com>
201 Reviewed by Gustavo Noronha Silva.
203 [GStreamer] GTK XOverlay support in GStreamerGWorld
204 https://bugs.webkit.org/show_bug.cgi?id=39474
206 New FullscreenVideoController object, private in the webview. It
207 is created when the user presses the fullscreen button of the
208 video controls. Video is displayed in fullscreen, controls are
209 displayed when the user moves the mouse and when the video is
210 paused. There's also basic keyboard shortcuts support: F/f to
211 leave fullscreen, space to toggle play/pause and up/down to
214 * WebCoreSupport/ChromeClientGtk.cpp:
215 (WebKit::ChromeClient::supportsFullscreenForNode):
216 (WebKit::ChromeClient::enterFullscreenForNode):
217 (WebKit::ChromeClient::exitFullscreenForNode):
218 * WebCoreSupport/ChromeClientGtk.h:
219 * WebCoreSupport/FullscreenVideoController.cpp: Added.
221 (onFullscreenGtkMotionNotifyEvent):
222 (onFullscreenGtkActiveNotification):
223 (onFullscreenGtkConfigureEvent):
224 (onFullscreenGtkDestroy):
225 (togglePlayPauseActivated):
226 (exitFullscreenActivated):
227 (progressBarUpdateCallback):
228 (timeScaleButtonPressed):
229 (timeScaleButtonReleased):
230 (timeScaleValueChanged):
231 (volumeValueChanged):
232 (playerVolumeChangedCallback):
233 (playerMuteChangedCallback):
234 (FullscreenVideoController::FullscreenVideoController):
235 (FullscreenVideoController::~FullscreenVideoController):
236 (FullscreenVideoController::setMediaElement):
237 (FullscreenVideoController::gtkConfigure):
238 (FullscreenVideoController::showHud):
239 (FullscreenVideoController::hideHud):
240 (onFullscreenGtkKeyPressEvent):
241 (FullscreenVideoController::enterFullscreen):
242 (FullscreenVideoController::updateHudPosition):
243 (FullscreenVideoController::exitOnUserRequest):
244 (FullscreenVideoController::exitFullscreen):
245 (FullscreenVideoController::canPlay):
246 (FullscreenVideoController::play):
247 (FullscreenVideoController::pause):
248 (FullscreenVideoController::playStateChanged):
249 (FullscreenVideoController::togglePlay):
250 (FullscreenVideoController::volume):
251 (FullscreenVideoController::muted):
252 (FullscreenVideoController::setVolume):
253 (FullscreenVideoController::volumeChanged):
254 (FullscreenVideoController::muteChanged):
255 (FullscreenVideoController::currentTime):
256 (FullscreenVideoController::setCurrentTime):
257 (FullscreenVideoController::duration):
258 (FullscreenVideoController::percentLoaded):
259 (FullscreenVideoController::beginSeek):
260 (FullscreenVideoController::doSeek):
261 (FullscreenVideoController::endSeek):
263 (FullscreenVideoController::updateHudProgressBar):
264 (FullscreenVideoController::createHud):
265 * WebCoreSupport/FullscreenVideoController.h: Added.
266 (FullscreenVideoController::mediaElement):
267 * webkit/webkitprivate.cpp:
268 (webkit_web_view_enter_fullscreen):
269 (webkit_web_view_exit_fullscreen):
270 * webkit/webkitprivate.h:
272 2010-08-18 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
274 Reviewed by Martin Robinson.
276 [GTK] WebBackForwardList's new_with_web_view should not be public
277 https://bugs.webkit.org/show_bug.cgi?id=43802
279 Deprecate the constructor. The introspection annotation has been
280 fixed in a previous commit.
282 * webkit/webkitwebbackforwardlist.cpp:
284 2010-08-17 Ilya Tikhonovsky <loislo@chromium.org>
286 Reviewed by Yury Semikhatsky.
288 Web Inspector: replace hand written InspectorBackendStub.js with generated one.
289 https://bugs.webkit.org/show_bug.cgi?id=43791
291 * WebCoreSupport/InspectorClientGtk.cpp:
292 (WebKit::InspectorClient::openInspectorFrontend):
294 2010-08-18 Sheriff Bot <webkit.review.bot@gmail.com>
296 Unreviewed, rolling out r65595.
297 http://trac.webkit.org/changeset/65595
298 https://bugs.webkit.org/show_bug.cgi?id=44161
300 qt build failed (Requested by loislo on #webkit).
302 * WebCoreSupport/InspectorClientGtk.cpp:
303 (WebKit::InspectorClient::openInspectorFrontend):
305 2010-08-17 Ilya Tikhonovsky <loislo@chromium.org>
307 Reviewed by Yury Semikhatsky.
309 Web Inspector: replace hand written InspectorBackendStub.js by generated one.
310 https://bugs.webkit.org/show_bug.cgi?id=43791
312 * WebCoreSupport/InspectorClientGtk.cpp:
313 (WebKit::InspectorClient::openInspectorFrontend):
315 2010-08-17 Xan Lopez <xlopez@igalia.com>
317 Reviewed by Gustavo Noronha.
319 Fix the builds when HAVE_GSETTINGS is defined.
321 * webkit/webkitprivate.cpp:
323 (inspectorGSettings):
325 2010-08-17 Jesus Sanchez-Palencia <jesus.palencia@openbossa.org>
327 Reviewed by Darin Adler.
329 Add NetworkingContext to avoid layer violations
330 https://bugs.webkit.org/show_bug.cgi?id=42292
332 Preparation: Just add the files to the build system.
334 * WebCoreSupport/FrameNetworkingContextGtk.h: Added.
335 Placeholder with tentative code that might be changed when landing
338 2010-08-17 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
340 Reviewed by Martin Robinson.
342 WebBackForwardList.get_{back|forward}_list_with_limit not introspectable
343 https://bugs.webkit.org/show_bug.cgi?id=43054
345 Annotate WebKitWebBackForwardList and the function that is used to fetch it from
346 the WebKitWebView. More will follow.
348 * webkit/webkitwebbackforwardlist.cpp: Annotations, and small
349 improvements to the docs.
350 * webkit/webkitwebbackforwardlist.h: Couple empty lines missing.
351 * webkit/webkitwebview.cpp:
353 2010-08-17 Martin Robinson <mrobinson@igalia.com>
355 Reviewed by Gustavo Noronha Silva.
357 [GTK] Clean up WebCore/platform/graphics/gtk/ImageGtk.cpp
358 https://bugs.webkit.org/show_bug.cgi?id=44069
360 * WebCoreSupport/InspectorClientGtk.cpp:
361 (WebKit::InspectorClient::openInspectorFrontend): Switched to using the new WEBKITGTK_API_VERSION_STRING define.
362 * webkit/webkitprivate.cpp:
363 (inspectorGSettings): Ditto.
365 2010-08-17 Sheriff Bot <webkit.review.bot@gmail.com>
367 Unreviewed, rolling out r65500.
368 http://trac.webkit.org/changeset/65500
369 https://bugs.webkit.org/show_bug.cgi?id=44108
371 Qt bots failed to compile. (Requested by loislo on #webkit).
373 * WebCoreSupport/InspectorClientGtk.cpp:
374 (WebKit::InspectorClient::openInspectorFrontend):
376 2010-08-17 Ilya Tikhonovsky <loislo@chromium.org>
378 Reviewed by Yury Semikhatsky.
380 Web Inspector: replace hand written InspectorBackendStub.js by generated one.
381 https://bugs.webkit.org/show_bug.cgi?id=43791
383 * WebCoreSupport/InspectorClientGtk.cpp:
384 (WebKit::InspectorClient::openInspectorFrontend):
386 2010-08-17 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
388 Reviewed by Martin Robinson.
390 [GTK] GSettings support adds annoying warnings on systems with older glib versions
391 https://bugs.webkit.org/show_bug.cgi?id=44056
393 Use #ifdef instead of #if for HAVE_GSETTINGS to avoid warnings
394 when it is not defined.
396 * WebCoreSupport/InspectorClientGtk.cpp:
397 * webkit/webkitprivate.cpp:
399 * webkit/webkitprivate.h:
401 2010-08-12 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
403 Really add a missing file. I wish I would remember running git add
404 on them after applying a patch =(.
406 * org.webkitgtk.gschema.xml.in: Added.
408 2010-08-12 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
410 Reviewed by Martin Robinson.
412 [GTK] Use GSettings to save/restore Web Inspector settings
413 https://bugs.webkit.org/show_bug.cgi?id=43512
415 Use GSettings to save/restore settings used by the Web Inspector.
416 A few helper functions were added to have settings that use
417 boolean values be actual booleans, and also to conform with the
418 GSettings naming requirements for keys.
420 * WebCoreSupport/InspectorClientGtk.cpp:
421 (WebKit::toGSettingName):
422 (WebKit::truthStringFromVariant):
423 (WebKit::variantFromTruthString):
424 (WebKit::InspectorClient::populateSetting):
425 (WebKit::InspectorClient::storeSetting):
426 * org.webkit.gtk.gschema.xml: Added.
427 * webkit/webkitprivate.cpp:
428 (inspectorGSettings):
430 * webkit/webkitprivate.h:
432 2010-08-11 Joone Hur <joone@kldp.org>
434 Reviewed by Martin Robinson.
436 [GTK] Last Hangul letter is typed again when a composition is finished with mouse press
437 https://bugs.webkit.org/show_bug.cgi?id=40518
439 When a mouse press fires during a IME composition, the current composition character
440 can be entered twice at the previous editing position and a new editing position.
441 Because the IME commit signal is emitted after the mouse press event.
442 This patch allows to prevent the commit signal during a composition when a mouse press fires.
444 * WebCoreSupport/EditorClientGtk.cpp:
445 (WebKit::imContextCommitted):
446 (WebKit::EditorClient::handleInputMethodKeydown): Allow to accept the next composition commit.
447 (WebKit::EditorClient::handleInputMethodMousePress): Added for handling IME when a mouse press fires.
448 (WebKit::EditorClient::EditorClient): Initialize m_preventNextCompositionCommit
449 * WebCoreSupport/EditorClientGtk.h:
450 (WebKit::EditorClient::preventNextCompositionCommit): Added for checking whether skipping a commit.
451 * webkit/webkitwebview.cpp:
452 (webkit_web_view_button_press_event): Call handleInputMethodMousePress()
454 2010-08-11 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
456 Reviewed by Martin Robinson.
458 Small improvement to the documentation of the geolocation-policy-decision-requested
459 signal, stating more clearly what is expected from the handler.
461 * webkit/webkitwebview.cpp:
462 (webkit_web_view_class_init):
464 2010-08-11 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
466 Reviewed by Martin Robinson.
468 [GTK] Geolocation policy decision object leaking
469 https://bugs.webkit.org/show_bug.cgi?id=43884
471 Use GRefPtr on the policy decision object to fix the leak.
473 * WebCoreSupport/ChromeClientGtk.cpp:
474 (WebKit::ChromeClient::requestGeolocationPermissionForFrame):
476 2010-08-10 Chris Marrin <cmarrin@apple.com>
478 Reviewed by Oliver Hunt.
480 Add suspendAnimations/resumeAnimation API to DRT
481 https://bugs.webkit.org/show_bug.cgi?id=43733
485 * webkit/webkitprivate.h:
486 * webkit/webkitwebframe.cpp:
487 (webkit_web_frame_suspend_animations):
488 (webkit_web_frame_resume_animations):
490 2010-08-10 Gavin Barraclough <barraclough@apple.com>
492 Rubber stamped by Sam Weinig.
494 Bug 43786 - Move AtomicStringHash from WebCore to WTF
495 Also remove deprecated string headers from WebCore/platform/text.
497 * gdom/ConvertToGCharPrivate.h:
499 2010-08-06 Gavin Barraclough <barraclough@apple.com>
501 Rubber stamped by Sam Weinig
503 Bug 43594 - Add string forwards to Forward.h
504 This allows us to remove forward declarations for these classes from
505 WebCore/WebKit (a step in moving these class from WebCore:: to WTF::).
507 * WebCoreSupport/InspectorClientGtk.h:
509 2010-08-09 Martin Robinson <mrobinson@igalia.com>
511 Reviewed by Xan Lopez.
513 [gtk] gtk_im_context_focus_in() should only be called when an input-able element has focus
514 https://bugs.webkit.org/show_bug.cgi?id=43602
516 Only call gtk_im_context_focus_in() when we focus a frame which is currently in
519 * webkit/webkitwebview.cpp:
520 (webkit_web_view_focus_in_event): Conditionalize call to gtk_im_context_focus_in().
522 2010-08-06 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
524 Reviewed by Xan Lopez.
526 Use the new paths, and also fix the path for localizedStrings.
528 * WebCoreSupport/InspectorClientGtk.cpp:
529 (WebKit::InspectorClient::openInspectorFrontend):
530 (WebKit::InspectorFrontendClient::localizedStringsURL):
532 2010-08-06 Jessie Berlin <jberlin@apple.com>
534 Roll out http://trac.webkit.org/changeset/64801, which broke the Safari Windows Build.
537 * WebCoreSupport/InspectorClientGtk.h:
539 2010-08-05 Xan Lopez <xlopez@igalia.com>
541 Reviewed by Gustavo Noronha.
543 [GTK] Use correct path for Inspector data files in GTK+3.x builds
544 https://bugs.webkit.org/show_bug.cgi?id=43445
546 Use the right data path for inspector files when building with
549 * WebCoreSupport/InspectorClientGtk.cpp:
550 (WebKit::InspectorClient::openInspectorFrontend):
552 2010-08-03 Daniel Bates <dbates@rim.com>
554 Fix misspelled word 'teh' in the description of the XSS Auditor setting.
556 * webkit/webkitwebsettings.cpp:
557 (webkit_web_settings_class_init):
559 2010-08-03 Xan Lopez <xlopez@igalia.com>
561 Reviewed by Gustavo Noronha.
563 [GTK] Fix DOM event dispatch
564 https://bugs.webkit.org/show_bug.cgi?id=40847
566 Test DOM event dispatch.
568 * tests/testdomdomwindow.c:
569 (load_event_callback):
570 (test_dom_domview_signals):
572 (load_status_callback):
573 (test_dom_domview_dispatch_event):
576 2010-08-03 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
578 Reviewed by Xan Lopez.
580 [GTK] Does not paint the node highlight used by the inspector
581 https://bugs.webkit.org/show_bug.cgi?id=43429
583 Implement highlighting the nodes when using the inspector.
585 * WebCoreSupport/InspectorClientGtk.cpp:
586 (WebKit::InspectorClient::highlight):
587 (WebKit::InspectorClient::hideHighlight):
588 * webkit/webkitwebview.cpp:
589 (webkit_web_view_expose_event):
591 2010-08-03 Xan Lopez <xlopez@igalia.com>
593 Reviewed by Gustavo Noronha.
595 Update unit tests now that string parameters are 'const char*'.
597 * tests/testdomdocument.c:
598 (test_dom_document_title):
599 (test_dom_document_get_elements_by_tag_name):
600 (test_dom_document_get_elements_by_class_name):
601 (test_dom_document_get_element_by_id):
602 * tests/testdomnode.c:
603 (test_dom_node_insertion):
605 2010-08-02 Martin Robinson <mrobinson@igalia.com>
607 Reviewed by Xan Lopez.
609 [GTK] DRT implement execCommand()
610 https://bugs.webkit.org/show_bug.cgi?id=35351
612 * webkit/webkitprivate.h: Add some private methods for the DRT which enable
613 LayoutTestController.execCommand and LayoutTestController.isCommandEnabled:
614 webkit_web_view_execute_core_command_by_name and webkit_web_view_is_command_enabled.
615 * webkit/webkitwebview.cpp:
616 (webkit_web_view_execute_core_command_by_name): added.
617 (webkit_web_view_is_command_enabled): Added.
619 2010-07-27 Luiz Agostini <luiz.agostini@openbossa.org>
621 Reviewed by Darin Fisher.
623 PopupMenu refactoring in preparation to WebKit2
624 https://bugs.webkit.org/show_bug.cgi?id=42592
626 As ChromeClient was made responsible for providing PopupMenu and SearchPopupMenu
627 instances, concrete classes that inherit from ChromeClient needed to be changed to
628 implement the new methods.
630 * WebCoreSupport/ChromeClientGtk.cpp:
631 (WebKit::ChromeClient::selectItemWritingDirectionIsNatural):
632 (WebKit::ChromeClient::createPopupMenu):
633 (WebKit::ChromeClient::createSearchPopupMenu):
634 * WebCoreSupport/ChromeClientGtk.h:
636 2010-08-02 Martin Robinson <mrobinson@igalia.com>
638 Reviewed by Xan Lopez.
640 [GTK] Create a frame-created signal
641 https://bugs.webkit.org/show_bug.cgi?id=43284
643 Add a frame-created signal, which will allow developers to track
644 the beginning of a frame lifecycle and attach signal handlers to
647 * WebCoreSupport/FrameLoaderClientGtk.cpp:
648 (WebKit::FrameLoaderClient::createFrame): Emit the frame-created signal.
649 * tests/testwebframe.c: Add a test which verifies that the correct number of
650 frame-created signals is fired when a page with iframes loads.
651 (createFrameSignalTestFrameCreatedCallback): Added.
652 (createFrameSignalTestTimeout): Added.
653 (test_webkit_web_frame_created_signal): Added.
654 (main): Add a reference to the new test.
655 * webkit/webkitprivate.h: De-normalize webkit_web_frame_init_with_web_view into
656 the one place that it is used, so that the frame-created signal may be fired there.
657 * webkit/webkitwebframe.cpp: Remove webkit_web_frame_init_with_web_view.
658 * webkit/webkitwebview.cpp:
659 (webkit_web_view_class_init): Add the frame-created signal declaration.
661 2010-08-02 Mario Sanchez Prada <msanchez@igalia.com>
663 Reviewed by Chris Fleizach.
665 [GTK] Implement support for get_character_extents and get_range_extents
666 https://bugs.webkit.org/show_bug.cgi?id=25677
668 Added new unit tests to check get_character_extents and
669 get_range_extents functions for the ATK_TEXT interface
671 Based on a previous patch by Joanmarie Diggs.
674 (test_webkit_atk_get_extents):
677 2010-08-02 Jeremy Orlow <jorlow@chromium.org>
679 Speculative revert of 64425 due to Chromium instability
680 https://bugs.webkit.org/show_bug.cgi?id=43347
682 * WebCoreSupport/ChromeClientGtk.cpp:
683 * WebCoreSupport/ChromeClientGtk.h:
685 2010-07-27 Luiz Agostini <luiz.agostini@openbossa.org>
687 Reviewed by Darin Fisher.
689 PopupMenu refactoring in preparation to WebKit2
690 https://bugs.webkit.org/show_bug.cgi?id=42592
692 As ChromeClient was made responsible for providing PopupMenu and SearchPopupMenu
693 instances, concrete classes that inherit from ChromeClient needed to be changed to
694 implement the new methods.
696 * WebCoreSupport/ChromeClientGtk.cpp:
697 (WebKit::ChromeClient::selectItemWritingDirectionIsNatural):
698 (WebKit::ChromeClient::createPopupMenu):
699 (WebKit::ChromeClient::createSearchPopupMenu):
700 * WebCoreSupport/ChromeClientGtk.h:
702 2010-07-31 Sheriff Bot <webkit.review.bot@gmail.com>
704 Unreviewed, rolling out r64422.
705 http://trac.webkit.org/changeset/64422
706 https://bugs.webkit.org/show_bug.cgi?id=43304
708 Build fixes are needed for Snow Leopard and Windows.
709 (Requested by lca on #webkit).
711 * WebCoreSupport/ChromeClientGtk.cpp:
712 * WebCoreSupport/ChromeClientGtk.h:
714 2010-07-27 Luiz Agostini <luiz.agostini@openbossa.org>
716 Reviewed by Darin Fisher.
718 PopupMenu refactoring in preparation to WebKit2
719 https://bugs.webkit.org/show_bug.cgi?id=42592
721 As ChromeClient was made responsible for providing PopupMenu and SearchPopupMenu
722 instances, concrete classes that inherit from ChromeClient needed to be changed to
723 implement the new methods.
725 * WebCoreSupport/ChromeClientGtk.cpp:
726 (WebKit::ChromeClient::selectItemWritingDirectionIsNatural):
727 (WebKit::ChromeClient::createPopupMenu):
728 (WebKit::ChromeClient::createSearchPopupMenu):
729 * WebCoreSupport/ChromeClientGtk.h:
731 2010-07-30 Joseph Pecoraro <joepeck@webkit.org>
733 Reviewed by David Kilzer.
735 Limit ApplicationCache Total and Per-Origin Storage Capacity (Quotas)
736 https://bugs.webkit.org/show_bug.cgi?id=40627
738 * WebCoreSupport/ChromeClientGtk.cpp:
739 (WebKit::ChromeClient::reachedApplicationCacheOriginQuota):
740 * WebCoreSupport/ChromeClientGtk.h:
741 2010-07-26 Steve Block <steveblock@google.com>
743 Reviewed by Jeremy Orlow.
745 Page clients should be passed to Page constructor via structure of pointers
746 https://bugs.webkit.org/show_bug.cgi?id=42834
748 * webkit/webkitwebview.cpp:
749 (webkit_web_view_init):
751 2010-07-16 Zhe Su <suzhe@chromium.org>
753 Reviewed by Darin Adler.
755 REGRESSION(r61484): Broke focus behaviour on Qt and probably other platforms
756 https://bugs.webkit.org/show_bug.cgi?id=42253
758 Dummy implementation of EditorClient::willSetInputMethodState.
760 * WebCoreSupport/EditorClientGtk.cpp:
761 (WebKit::EditorClient::willSetInputMethodState):
762 * WebCoreSupport/EditorClientGtk.h:
764 2010-07-16 Nate Chapin <japhet@chromium.org>
766 Reviewed by Darin Fisher.
768 Uncomment an assert that broke due to r63100.
770 https://bugs.webkit.org/show_bug.cgi?id=42298
772 * tests/testwebview.c:
774 2010-07-14 Sam Weinig <sam@webkit.org>
776 Reviewed by Darin Adler.
778 Patch for https://bugs.webkit.org/show_bug.cgi?id=42232
779 Make changing Cursors work in WebKit2.
781 * WebCoreSupport/ChromeClientGtk.cpp:
782 (WebKit::ChromeClient::setCursor):
783 * WebCoreSupport/ChromeClientGtk.h:
784 Change prototype to match new one.
786 2010-07-12 Martin Robinson <mrobinson@igalia.com>
788 Reviewed by Gustavo Noronha Silva.
790 [GTK] r63100 broke the testwebview test
791 https://bugs.webkit.org/show_bug.cgi?id=42114
793 * tests/testwebview.c: Disable a failing assertion in test_webkit_web_view_adjustments
794 until we can get to the bottom of the failure.
796 2010-07-12 Xan Lopez <xlopez@igalia.com>
798 Reviewed by Gustavo Noronha.
804 2010-07-12 Xan Lopez <xlopez@igalia.com>
806 Reviewed by Gustavo Noronha.
808 Fix compilation with sealed GTK+.
810 * webkit/webkitwebview.cpp:
811 (webkit_web_view_drag_motion):
812 (webkit_web_view_drag_data_received):
813 (webkit_web_view_drag_drop):
815 2010-07-11 Martin Robinson <mrobinson@igalia.com>
817 Reviewed by Xan Lopez.
819 [GTK] WebKitWebView should support drops
820 https://bugs.webkit.org/show_bug.cgi?id=39843
822 Add support for dropping content onto GTK+ WebViews.
824 * webkit/webkitprivate.h:
825 Add a DroppingContext struct to keep track of drop data while the drop is
826 in progress. Have WebKitWebView keep a map of GdkDragContexts to DroppingContexts.
827 * webkit/webkitwebview.cpp: Add necessary includes and globalPointForClientPoint helper.
828 (webkit_web_view_popup_menu_handler): Use globalPointForClientPoint helper.
829 (webkit_web_view_dispose): Properly clean up droppingContexts member.
830 (webkit_web_view_finalize): Delete droppingContext member.
831 (globalPointForClientPoint): Added.
832 (doDragLeaveLater): Added.
833 (webkit_web_view_drag_leave): Added.
834 (webkit_web_view_drag_motion): Added.
835 (webkit_web_view_drag_data_received): Added.
836 (webkit_web_view_drag_drop): Added.
837 (webkit_web_view_class_init): Connect new drop signal handlers to the widget definition.
838 (webkit_web_view_init): Set up the widget as a drop destination and initialize droppingContexts.
840 2010-07-07 Sam Weinig <sam@webkit.org>
842 Reviewed by Anders Carlsson.
844 Patch for https://bugs.webkit.org/show_bug.cgi?id=41772
845 Add basic piping for BackForwardControllerClient.
847 * webkit/webkitwebview.cpp:
848 (webkit_web_view_init):
850 2010-06-19 Ilya Tikhonovsky <loislo@chromium.org>
852 Reviewed by Yury Semikhatsky.
854 WebInspector: js function name was fixed.
855 dispatchMessageToFrontend -> dispatchMessageFromBackend.
856 https://bugs.webkit.org/show_bug.cgi?id=40675
858 * WebCoreSupport/InspectorClientGtk.cpp:
859 (WebKit::InspectorClient::sendMessageToFrontend):
861 2010-06-23 Martin Robinson <mrobinson@igalia.com>
863 Reviewed by Gustavo Noronha Silva.
865 [GTK] Separate DerivedSources per-project
866 https://bugs.webkit.org/show_bug.cgi?id=41109
868 Separate WebKitGTK+ DerivedSources into per-project subdirectories to prepare
869 for properly building WebKit2.
871 * webkitmarshal.list: Touch this file to force a rebuild of the marshaling code.
873 2010-07-01 Xan Lopez <xlopez@igalia.com>
875 Reviewed by Gustavo Noronha.
877 [GTK] Stop using GdkRegion in 3.x mode
878 https://bugs.webkit.org/show_bug.cgi?id=41463
880 Make us compile without using GdkRegion, since it's gone from GTK+
883 * WebCoreSupport/ChromeClientGtk.cpp:
884 (WebKit::ChromeClient::scroll):
885 * webkit/webkitwebview.cpp:
886 (webkit_web_view_expose_event):
888 2010-07-01 Martin Robinson <mrobinson@igalia.com>
890 Reviewed by Xan Lopez.
892 [GTK] Convert WebKitWebView's private draggingDataObjects member to a pointer
893 https://bugs.webkit.org/show_bug.cgi?id=40333
895 Convert draggingDataObjects to a pointer. The constructor and destructor of the
896 HashMap should be called explicitly. GObject memory allocation does not do this.
898 * WebCoreSupport/DragClientGtk.cpp:
899 (WebKit::DragClient::startDrag):
900 * webkit/webkitprivate.h:
901 * webkit/webkitwebview.cpp:
902 (webkit_web_view_dispose):
903 (webkit_web_view_drag_end):
904 (webkit_web_view_drag_data_get):
905 (webkit_web_view_init):
907 2010-06-30 Martin Robinson <mrobinson@igalia.com>
909 Unreviewed, rolling out r62226.
910 http://trac.webkit.org/changeset/62226
911 https://bugs.webkit.org/show_bug.cgi?id=40333
913 This change caused 13 new crashers.
915 * WebCoreSupport/DragClientGtk.cpp:
916 (WebKit::DragClient::startDrag):
917 * webkit/webkitprivate.h:
918 * webkit/webkitwebview.cpp:
919 (webkit_web_view_dispose):
920 (webkit_web_view_drag_end):
921 (webkit_web_view_drag_data_get):
922 (webkit_web_view_init):
924 2010-06-30 Martin Robinson <mrobinson@igalia.com>
926 Reviewed by Xan Lopez.
928 [GTK] Convert WebKitWebView's private draggingDataObjects member to a pointer
929 https://bugs.webkit.org/show_bug.cgi?id=40333
931 Convert draggingDataObjects to a pointer. The constructor and destructor of the
932 HashMap should be called explicitly. GObject memory allocation does not do this.
934 * WebCoreSupport/DragClientGtk.cpp:
935 (WebKit::DragClient::startDrag):
936 * webkit/webkitprivate.h:
937 * webkit/webkitwebview.cpp:
938 (webkit_web_view_dispose):
939 (webkit_web_view_drag_end):
940 (webkit_web_view_drag_data_get):
941 (webkit_web_view_init):
943 2010-06-30 Xan Lopez <xlopez@igalia.com>
945 Reviewed by Gustavo Noronha.
947 [GTK] Unit test for DOM insertion methods
948 https://bugs.webkit.org/show_bug.cgi?id=40495
950 Add unit test for webkit_dom_node_remove_child.
952 * tests/testdomnode.c:
953 (test_dom_node_insertion):
955 2010-06-30 Xan Lopez <xlopez@igalia.com>
957 Reviewed by Gustavo Noronha.
959 [GTK] Unit test for DOM insertion methods
960 https://bugs.webkit.org/show_bug.cgi?id=40495
962 Add unit tests for node insertion and replacement methods.
964 * tests/testdomnode.c:
965 (test_dom_node_insertion):
968 2010-06-30 Mario Sanchez Prada <msanchez@igalia.com>
970 Reviewed by Xan Lopez.
972 [GTK] Random failure on 'testdownload' unit test
973 https://bugs.webkit.org/show_bug.cgi?id=38256
975 Make sure the set_filename function is called after handling the
976 'download-requested' signal for the asynchronous test. This change
977 is needed because it could happen, with the current code, that the
978 set_filename () function got called too early in the mainloop,
979 therefore screwing the tests because the 'theDownload' global
980 variable wouldn't be properly set yet.
982 With this modification we ensure the set_filename() function gets
983 called always after handling the download-requested signal,
984 therefore avoiding potentialproblems.
986 * tests/testdownload.c:
988 (handle_download_requested_cb):
989 (download_requested_cb):
990 (download_requested_asynch_cb):
991 (test_webkit_download_perform):
993 2010-06-30 José Millán Soto <jmillan@igalia.com>
995 Reviewed by Xan Lopez.
997 [Gtk] Text attributes not exposed
998 https://bugs.webkit.org/show_bug.cgi?id=25528
1000 Added new tests for accessible text attributes
1004 (compAtkAttributeName):
1005 (atkAttributeSetAttributeHasValue):
1006 (atkAttributeSetAreEqual):
1007 (testWebkitAtkTextAttributes):
1010 2010-06-28 Xan Lopez <xlopez@igalia.com>
1012 Reviewed by Gustavo Noronha.
1018 2010-06-28 Xan Lopez <xlopez@igalia.com>
1020 Reviewed by Gustavo Noronha.
1022 [GTK] Does not compile with -DGSEAL_ENABLE
1023 https://bugs.webkit.org/show_bug.cgi?id=37851
1025 Fix build with GSEAL enabled.
1027 * WebCoreSupport/FrameLoaderClientGtk.cpp:
1028 (WebKit::FrameLoaderClient::transitionToCommittedForNewPage):
1029 * webkit/webkitsoupauthdialog.c:
1032 2010-06-28 Xan Lopez <xlopez@igalia.com>
1034 Reviewed by Gustavo Noronha.
1036 [GTK] Add support for GTK+3
1037 https://bugs.webkit.org/show_bug.cgi?id=41253
1039 Adapt build system to 3.x support, allow the JSCore gir and webkit
1040 pc files to be configurable at build time for different API
1043 * JSCore-1.0.gir: Removed.
1044 * JSCore.gir.in: Added.
1045 * docs/GNUmakefile.am:
1048 2010-06-25 Mario Sanchez Prada <msanchez@igalia.com>
1050 Reviewed by Xan Lopez.
1052 [Gtk] Implement atk_table_get_column_header
1053 https://bugs.webkit.org/show_bug.cgi?id=30896
1055 Replace g_timeout_add() with g_idle_add().
1058 (test_webkit_atk_get_text_at_offset_forms):
1059 (test_webkit_atk_get_text_at_offset):
1060 (test_webkit_atk_get_text_at_offset_newlines):
1061 (test_webkit_atk_get_text_at_offset_textarea):
1062 (test_webkit_atk_get_text_at_offset_text_input):
1063 (testWebkitAtkGetTextInParagraphAndBodySimple):
1064 (testWebkitAtkGetTextInParagraphAndBodyModerate):
1065 (testWebkitAtkGetTextInTable):
1066 (testWebkitAtkGetHeadersInTable):
1068 2010-06-25 Mario Sanchez Prada <msanchez@igalia.com>
1070 Reviewed by Xan Lopez.
1072 [Gtk] Implement atk_table_get_column_header
1073 https://bugs.webkit.org/show_bug.cgi?id=30896
1075 Added new test to check whether the implementation of
1076 get_column_headers() and get_row_headers() works ok.
1079 (testWebkitAtkGetHeadersInTable):
1082 2010-06-25 Martin Robinson <mrobinson@igalia.com>
1084 Reviewed by Xan Lopez.
1086 [GTK] Pasteboard code does not take into account the nil character when getting and setting markup/netscape-url data
1087 https://bugs.webkit.org/show_bug.cgi?id=41221
1089 Add a test for this issue which simulates a paste keyboard event into an editable
1090 body. The pasteboard should contain a markup portion containing a null terminator.
1092 * tests/testcopyandpaste.c:
1094 (test_info_destroy):
1096 (runPasteTestCallback):
1097 (window_object_cleared_callback):
1098 (pasting_test_get_data_callback):
1099 (pasting_test_clear_data_callback):
1100 (test_pasting_markup):
1103 2010-06-24 Martin Robinson <mrobinson@igalia.com>
1105 Reviewed by Xan Lopez.
1107 [GTK] Cannot change the selection via the keyboard
1108 https://bugs.webkit.org/show_bug.cgi?id=41162
1110 Fix issue where the selection could not be extended via the keyboard by
1111 adjusting the logic guarding against inserting text in non-editable nodes.
1113 * WebCoreSupport/EditorClientGtk.cpp:
1114 (WebKit::EditorClient::handleKeyboardEvent):
1115 Allow editor commands that do not insert text in non-editable nodes. This
1116 fixes keyboard selection extension in non-editable nodes. Move the existing
1117 check to after the execution of any editor commands.
1119 2010-06-15 Dumitru Daniliuc <dumi@chromium.org>
1121 Reviewed by Adam Barth.
1123 Move isAvailable()/setIsAvailable() from Database/DatabaseSync to AbstractDatabase.
1124 https://bugs.webkit.org/show_bug.cgi?id=39041
1126 * webkit/webkitwebview.cpp:
1127 (webkit_web_view_update_settings):
1128 (webkit_web_view_settings_notify):
1129 (webkit_get_cache_model):
1131 2010-06-16 Martin Robinson <mrobinson@igalia.com>
1133 Reviewed by Gustavo Noronha Silva.
1135 [GTK] Remove the abuse of GDK_CURRENT_TIME in the DRT
1136 https://bugs.webkit.org/show_bug.cgi?id=40600
1138 * WebCoreSupport/DragClientGtk.cpp:
1139 (WebKit::DragClient::startDrag): Reset the click count after a drag starts.
1140 * WebCoreSupport/FrameLoaderClientGtk.cpp:
1141 (WebKit::postCommitFrameViewSetup): Reset the click count after a load is committed.
1142 * webkit/webkitprivate.h: Move static click counting variables to be per-view.
1143 * webkit/webkitwebview.cpp:
1144 (getEventTime): Added.
1145 (webkit_web_view_button_press_event): If the event time is zero, use the current time.
1146 (webkit_web_view_finalize): Clean up click counting member.
1147 (webkit_web_view_init): Initialize click counting member.
1149 2010-06-15 Xan Lopez <xlopez@igalia.com>
1151 Fix compilation with older GTK+.
1153 * WebCoreSupport/ChromeClientGtk.cpp:
1154 (WebKit::ChromeClient::pageRect):
1156 2010-06-15 Xan Lopez <xlopez@igalia.com>
1158 Reviewed by Gustavo Noronha.
1160 [GTK] Does not compile with -DGSEAL_ENABLE
1161 https://bugs.webkit.org/show_bug.cgi?id=37851
1163 Fix compilation with GSEAL_ENABLE.
1165 * WebCoreSupport/ChromeClientGtk.cpp:
1166 (WebKit::ChromeClient::pageRect):
1167 (WebKit::ChromeClient::contentsSizeChanged):
1168 * tests/testdomnode.c:
1169 (test_dom_node_insertion):
1170 * webkit/webkitwebview.cpp:
1171 (webkit_web_view_realize):
1172 (webkit_web_view_script_dialog):
1173 (webkit_web_view_drag_end):
1174 (webkit_web_view_init):
1176 2010-06-14 Ilya Tikhonovsky <loislo@chromium.org>
1178 Unreviewed build fix.
1180 This is a fix for flaky inspector tests at gtk-debug bots.
1182 * WebCoreSupport/InspectorClientGtk.cpp:
1183 (WebKit::InspectorFrontendClient::destroyInspectorWindow):
1185 2010-06-14 Ilya Tikhonovsky <loislo@chromium.org>
1187 Reviewed by Pavel Feldman.
1189 WebInspector: On the way to Remote Debugging we want to transfer dom/timeline/etc
1190 data from inspected page to WebInspector as JSON string via http. The native
1191 serialization to JSON string is supported by InspectorValue's classes. This patch
1192 has the implementation of sendMessageToFrontend function. WebKit version of it still
1193 uses ScriptFunctionCall and will be switched to another transport a little bit later.
1194 https://bugs.webkit.org/show_bug.cgi?id=40134
1196 * WebCoreSupport/InspectorClientGtk.cpp:
1197 (WebKit::InspectorClient::releaseFrontendPage):
1198 (WebKit::InspectorClient::sendMessageToFrontend):
1199 * WebCoreSupport/InspectorClientGtk.h:
1201 2010-06-10 Eric Seidel <eric@webkit.org>
1203 Reviewed by Adam Barth.
1205 Reduce FrameView.h includes to speed up build times
1206 https://bugs.webkit.org/show_bug.cgi?id=40408
1208 * webkit/webkitwebinspector.cpp:
1209 - Include RenderLayer.h
1211 2010-06-09 Sheriff Bot <webkit.review.bot@gmail.com>
1213 Unreviewed, rolling out r60889.
1214 http://trac.webkit.org/changeset/60889
1215 https://bugs.webkit.org/show_bug.cgi?id=40365
1217 gtk bot has some kind of memory corruption (Requested by
1220 * WebCoreSupport/InspectorClientGtk.cpp:
1221 (WebKit::InspectorClient::InspectorClient):
1222 (WebKit::InspectorClient::openInspectorFrontend):
1223 (WebKit::InspectorFrontendClient::InspectorFrontendClient):
1224 (WebKit::InspectorFrontendClient::destroyInspectorWindow):
1225 * WebCoreSupport/InspectorClientGtk.h:
1227 2010-06-07 Ilya Tikhonovsky <loislo@chromium.org>
1229 Reviewed by Pavel Feldman.
1231 WebInspector: On the way to Remote Debugging we want to transfer dom/timeline/etc
1232 data from inspected page to WebInspector as JSON string via http. The native
1233 serialization to JSON string is supported by InspectorValue's classes. This patch
1234 has the implementation of sendMessageToFrontend function. WebKit version of it still
1235 uses ScriptFunctionCall and will be switched to another transport a little bit later.
1236 https://bugs.webkit.org/show_bug.cgi?id=40134
1238 * WebCoreSupport/InspectorClientGtk.cpp:
1239 (WebKit::InspectorClient::releaseFrontendPage):
1240 (WebKit::InspectorClient::sendMessageToFrontend):
1241 * WebCoreSupport/InspectorClientGtk.h:
1243 2010-06-08 Xan Lopez <xlopez@igalia.com>
1245 Reviewed by Gustavo Noronha.
1247 [GTK] Unit testing for WebKitDOMNode hierarchy walk
1248 https://bugs.webkit.org/show_bug.cgi?id=40171
1250 Add some DOM node unit testing.
1252 * tests/testdomnode.c: Added.
1254 (dom_node_fixture_setup):
1255 (dom_node_fixture_teardown):
1256 (test_dom_node_hierarchy_navigation):
1259 2010-06-08 Antonio Gomes <tonikitoo@webkit.org>
1261 Reviewed by Ojan Vafai and Darin Adler.
1263 Refactor platform dependent editing behavior code out of Settings
1264 https://bugs.webkit.org/show_bug.cgi?id=39854
1266 EditingBehavior enum was renamed to EditingBehaviorTypes and moved out from Settings.h to
1267 EditingBehaviorTypes.h . Call sites in WebKit/ adjusted accordingly.
1269 * webkit/webkitprivate.cpp:
1271 * webkit/webkitprivate.h:
1272 * webkit/webkitwebview.cpp:
1273 (webkit_web_view_update_settings):
1274 (webkit_web_view_settings_notify):
1276 2010-06-08 Xan Lopez <xlopez@igalia.com>
1278 Reviewed by Gustavo Noronha.
1280 [GTK] Add inner-node property to WebKitHitTestResult
1281 https://bugs.webkit.org/show_bug.cgi?id=40131
1283 Add a 'inner-node' property to WebKitHitTestResult, carrying the
1284 DOM node where the hit test happened.
1286 * tests/testhittestresult.c:
1288 * webkit/webkithittestresult.cpp:
1289 (webkit_hit_test_result_get_property):
1290 (webkit_hit_test_result_set_property):
1291 (webkit_hit_test_result_class_init):
1292 * webkit/webkitprivate.cpp:
1295 2010-06-07 Martin Robinson <mrobinson@igalia.com>
1297 Reviewed by Xan Lopez.
1299 [GTK] gtk_widget_get_window should replace widget->window
1300 https://bugs.webkit.org/show_bug.cgi?id=40180
1302 Replace uses of widget->window with gtk_widget_get_window.
1304 * WebCoreSupport/ChromeClientGtk.cpp:
1305 (WebKit::ChromeClient::invalidateContentsAndWindow): Replace widget->window uses.
1306 (WebKit::ChromeClient::scroll): Ditto.
1307 (WebKit::widgetScreenPosition): Ditto.
1308 * WebCoreSupport/DragClientGtk.cpp: Move gtk_widget_get_window define to GtkVersioning.h.
1309 * webkit/webkitwebview.cpp:
1310 (webkit_web_view_popup_menu_handler): Replace widget->window uses.
1311 (webkit_web_view_button_press_event): Ditto.
1313 2010-06-04 Martin Robinson <mrobinson@igalia.com>
1315 Reviewed by Xan Lopez.
1317 [GTK] Drag gesture can take mouse grab indefinitely
1318 https://bugs.webkit.org/show_bug.cgi?id=32840
1320 Initiate drag events with the current GTK+ event instead of synthesizing
1321 an event. Something about synthesized events is causing a drag freeze in
1324 * WebCoreSupport/DragClientGtk.cpp:
1325 (WebKit::DragClient::startDrag): Start the drag with the current GTK+ event.
1327 2010-06-03 Sheriff Bot <webkit.review.bot@gmail.com>
1329 Unreviewed, rolling out r60632.
1330 http://trac.webkit.org/changeset/60632
1331 https://bugs.webkit.org/show_bug.cgi?id=40143
1333 This change broke the 64-bit bots. (Requested by mrobinson on
1336 * WebCoreSupport/DragClientGtk.cpp:
1337 (WebKit::DragClient::DragClient):
1338 (WebKit::DragClient::startDrag):
1339 * WebCoreSupport/DragClientGtk.h:
1341 2010-06-03 Martin Robinson <mrobinson@igalia.com>
1343 Reviewed by Xan Lopez.
1345 [GTK] Drag gesture can take mouse grab indefinitely
1346 https://bugs.webkit.org/show_bug.cgi?id=32840
1348 Start GTK+ drags with the previous mouse button down event instead of
1349 synthesizing the event. The synthesized event was not completely valid
1350 and froze some drags indefinitely.
1352 * WebCoreSupport/DragClientGtk.cpp:
1353 (WebKit::buttonPressEvent): Added.
1354 (WebKit::DragClient::DragClient):
1355 Connect to the 'button-press-event' signal of the WebView.
1356 (WebKit::DragClient::startDrag):
1357 Instead of synthesizing a button press event use the last real one.
1358 * WebCoreSupport/DragClientGtk.h:
1359 (WebKit::DragClient::setLastButtonPressEvent): Added.
1361 2010-06-01 Xan Lopez <xlopez@igalia.com>
1363 Reviewed by Gustavo Noronha.
1365 Memory Leak: The main resource of page is not free.
1366 https://bugs.webkit.org/show_bug.cgi?id=39973
1368 Fix refcount tracking of the main resource. Patch by Genhua Liu.
1370 * WebCoreSupport/FrameLoaderClientGtk.cpp:
1371 (WebKit::FrameLoaderClient::dispatchDidFinishLoading):
1373 2010-06-01 Xan Lopez <xlopez@igalia.com>
1375 Reviewed by Gustavo Noronha.
1377 Fix-up for previous leak fix, the identifier was not always duped.
1379 * webkit/webkitprivate.h:
1380 * webkit/webkitwebview.cpp:
1381 (webkit_web_view_add_resource):
1383 2010-06-01 Xan Lopez <xlopez@igalia.com>
1385 Reviewed by Gustavo Noronha.
1389 * WebCoreSupport/FrameLoaderClientGtk.cpp:
1390 (WebKit::FrameLoaderClient::assignIdentifierToInitialRequest):
1392 2010-06-01 Martin Robinson <mrobinson@igalia.com>
1394 Reviewed by Xan Lopez.
1396 [GTK] Double clicks cause three button press events
1397 https://bugs.webkit.org/show_bug.cgi?id=38853
1399 Handle click counting much like the Windows port. GTK+ only
1400 counts triple-clicks natively, so use GTK+ double-click settings
1401 to count clicks with even larger click counts. Also filter the
1402 extra GDK_BUTTON_PRESS before GDK_{2,3}BUTTON_PRESS events using
1405 * webkit/webkitwebview.cpp:
1406 (webkit_web_view_button_press_event): Count clicks manually. Filter extra events.
1408 2010-05-31 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
1410 Reviewed by Xan Lopez.
1412 [GTK] Missing links to documentation of general functions
1413 https://bugs.webkit.org/show_bug.cgi?id=39964
1415 Add global functions section, and move those functions that are
1416 currently in WebKitWebView's source file to the bottom, along with
1419 * docs/webkitgtk-docs.sgml:
1420 * docs/webkitgtk-sections.txt:
1421 * webkit/webkitwebview.cpp:
1422 (webkit_web_view_get_dom_document):
1423 (webkit_get_default_session):
1425 2010-05-31 Martin Robinson <mrobinson@igalia.com>
1427 Reviewed by Gustavo Noronha Silva.
1429 [GTK] Text copied from a WebView cannot be pasted into gnome-terminal
1430 https://bugs.webkit.org/show_bug.cgi?id=39827
1432 Add a test to prevent regressions for this issue.
1434 * tests/testcopyandpaste.c: Added.
1436 (test_info_destroy):
1437 (copy_and_paste_fixture_setup):
1438 (copy_and_paste_fixture_teardown):
1441 (test_copy_and_paste):
1444 2010-05-27 Gustavo Noronha Silva <gns@gnome.org>
1446 Update documentation control files, and fix Since tags for 1.3.1.
1448 * docs/webkitgtk-docs.sgml:
1449 * docs/webkitgtk-sections.txt:
1450 * webkit/webkitwebbackforwardlist.cpp:
1451 * webkit/webkitwebview.cpp:
1453 2010-05-27 Xan Lopez <xlopez@igalia.com>
1455 Reviewed by Gustavo Noronha.
1457 Update for 1.3.1 release.
1461 2010-05-27 Martin Robinson <mrobinson@igalia.com>
1463 Reviewed by Xan Lopez.
1465 [GTK] Dragging onto the desktop causes a critical GLib warning
1466 https://bugs.webkit.org/show_bug.cgi?id=39718
1468 Only increment the window reference count if it is not null during drag-end
1471 * webkit/webkitwebview.cpp:
1472 (webkit_web_view_drag_end): Guard against null window values.
1474 2010-05-26 Xan Lopez <xlopez@igalia.com>
1476 Reviewed by Gustavo Noronha.
1478 [GTK] Add support for DOM events in the GObject DOM bindings
1479 https://bugs.webkit.org/show_bug.cgi?id=38844
1481 Test DOMWindow signals.
1483 * tests/testdomdomwindow.c: Added.
1485 (dom_domview_fixture_setup):
1486 (dom_domview_fixture_teardown):
1490 (load_event_callback):
1491 (test_dom_domview_signals):
1494 2010-05-24 Darin Adler <darin@apple.com>
1496 Reviewed by Eric Seidel.
1498 Move view-related functions from Frame to FrameView
1499 https://bugs.webkit.org/show_bug.cgi?id=39366
1501 * webkit/webkitwebview.cpp:
1502 (webkit_web_view_set_editable): Remove call to empty function
1503 removeEditngStyleFromBodyElement.
1504 (webkit_web_view_get_zoom_level): Call functions on FrameView.
1505 (webkit_web_view_apply_zoom_level): Ditto.
1507 2010-05-22 Martin Robinson <mrobinson@igalia.com>
1509 Reviewed by Xan Lopez.
1511 [GTK] webkit_web_view_drag_end should call EventHandler::dragSourceEndedAt
1512 https://bugs.webkit.org/show_bug.cgi?id=39465
1514 Properly call EventHandler::dragSourceEndedAt so that dragEnd events are processed in the DOM.
1515 dragSourceEndedAt is responsible for calling the dragEnd DOM event as well as cleaning up assets
1516 (such as the Clipboard) associated with the drag source.
1518 * webkit/webkitwebview.cpp:
1519 (webkit_web_view_drag_end): Remember to call dragSourceEndedAt here.
1521 2010-05-22 Martin Robinson <mrobinson@igalia.com>
1523 Reviewed by Xan Lopez.
1525 [GTK] WebKit/gtk/WebCoreSupport/DragClientGtk::startDrag should use the Clipboard::sourceOperation
1526 https://bugs.webkit.org/show_bug.cgi?id=39459
1528 * WebCoreSupport/DragClientGtk.cpp:
1529 (WebKit::DragClient::startDrag):
1530 Use Clipboard::sourceOperation instead of trying to figure out the GdkDragAction
1531 manually. The DOM may have changed the appropriate list of actions anyhow.
1533 2010-05-21 Steve Block <steveblock@google.com>
1535 Reviewed by Jeremy Orlow.
1537 Add DeviceOrientation and DeviceOrientationClient
1538 https://bugs.webkit.org/show_bug.cgi?id=39479
1540 * webkit/webkitwebview.cpp:
1541 (webkit_web_view_init):
1543 2010-05-19 Sheriff Bot <webkit.review.bot@gmail.com>
1545 Unreviewed, rolling out r59240.
1546 http://trac.webkit.org/changeset/59240
1547 https://bugs.webkit.org/show_bug.cgi?id=39377
1549 "Might cause crashes in GTK+ bots" (Requested by xan_ on
1552 * WebCoreSupport/ContextMenuClientGtk.cpp:
1553 (WebKit::inputMethodsMenuItem):
1554 * WebCoreSupport/EditorClientGtk.cpp:
1555 (WebKit::EditorClient::setInputMethodState):
1556 (WebKit::EditorClient::respondToChangedSelection):
1557 (WebKit::EditorClient::handleInputMethodKeydown):
1558 (WebKit::EditorClient::EditorClient):
1559 (WebKit::EditorClient::~EditorClient):
1560 * WebCoreSupport/FrameLoaderClientGtk.cpp:
1561 (WebKit::postCommitFrameViewSetup):
1562 * webkit/webkitprivate.h:
1563 * webkit/webkitwebview.cpp:
1565 (webkit_web_view_forward_context_menu_event):
1566 (webkit_web_view_key_release_event):
1567 (webkit_web_view_button_release_event):
1568 (webkit_web_view_focus_in_event):
1569 (webkit_web_view_focus_out_event):
1570 (webkit_web_view_realize):
1571 (webkit_web_view_set_scroll_adjustments):
1572 (webkit_web_view_dispose):
1573 (webkit_web_view_finalize):
1575 (webkit_web_view_screen_changed):
1576 (webkit_web_view_query_tooltip):
1577 (webkit_web_view_get_im_context):
1578 (webkit_web_view_update_settings):
1579 (webkit_web_view_init):
1580 (webkit_web_view_set_settings):
1581 (webkit_web_view_get_settings):
1582 (webkit_web_view_get_inspector):
1583 (webkit_web_view_set_window_features):
1584 (webkit_web_view_get_window_features):
1585 (webkit_web_view_get_back_forward_list):
1586 (webkit_web_view_zoom_in):
1587 (webkit_web_view_zoom_out):
1588 (webkit_web_view_get_encoding):
1589 (webkit_web_view_get_custom_encoding):
1590 (webkit_web_view_add_resource):
1591 (webkit_web_view_get_resource):
1592 (webkit_web_view_get_main_resource):
1593 (webkit_web_view_clear_resources):
1594 (webkit_web_view_get_subresources):
1595 (webkit_web_view_set_tooltip_text):
1596 (webkit_web_view_get_icon_uri):
1598 2010-05-18 Martin Robinson <mrobinson@igalia.com>
1600 Reviewed by Xan Lopez.
1602 [GTK] DragClientGtk::startDrag leaks GdkEvents
1603 https://bugs.webkit.org/show_bug.cgi?id=39322
1605 * WebCoreSupport/DragClientGtk.cpp:
1606 (WebKit::DragClient::startDrag): Properly clean up allocated GdkEvent.
1608 2010-05-12 Martin Robinson <mrobinson@igalia.com>
1610 Reviewed by Xan Lopez.
1612 [Gtk] Use GOwnPtr for code that needs it
1613 https://bugs.webkit.org/show_bug.cgi?id=21594
1615 Convert many uses of raw pointers to GRefPtr and GOwnPtr in WebKitWebView.
1617 * WebCoreSupport/ContextMenuClientGtk.cpp:
1618 (WebKit::inputMethodsMenuItem):
1619 * WebCoreSupport/EditorClientGtk.cpp:
1620 (WebKit::EditorClient::setInputMethodState):
1621 (WebKit::EditorClient::respondToChangedSelection):
1622 (WebKit::EditorClient::handleInputMethodKeydown):
1623 (WebKit::EditorClient::EditorClient):
1624 (WebKit::EditorClient::~EditorClient):
1625 * WebCoreSupport/FrameLoaderClientGtk.cpp:
1626 (WebKit::postCommitFrameViewSetup):
1627 * webkit/webkitprivate.h:
1628 * webkit/webkitwebview.cpp:
1630 (webkit_web_view_forward_context_menu_event):
1631 (webkit_web_view_key_release_event):
1632 (webkit_web_view_button_release_event):
1633 (webkit_web_view_focus_in_event):
1634 (webkit_web_view_focus_out_event):
1635 (webkit_web_view_realize):
1636 (webkit_web_view_set_scroll_adjustments):
1637 (webkit_web_view_dispose):
1638 (webkit_web_view_finalize):
1640 (webkit_web_view_screen_changed):
1641 (webkit_web_view_query_tooltip):
1642 (webkit_web_view_get_im_context):
1643 (webkit_web_view_update_settings):
1644 (webkit_web_view_init):
1645 (webkit_web_view_set_settings):
1646 (webkit_web_view_get_settings):
1647 (webkit_web_view_get_inspector):
1648 (webkit_web_view_set_window_features):
1649 (webkit_web_view_get_window_features):
1650 (webkit_web_view_get_back_forward_list):
1651 (webkit_web_view_zoom_in):
1652 (webkit_web_view_zoom_out):
1653 (webkit_web_view_get_encoding):
1654 (webkit_web_view_get_custom_encoding):
1655 (webkit_web_view_add_resource):
1656 (webkit_web_view_get_resource):
1657 (webkit_web_view_get_main_resource):
1658 (webkit_web_view_clear_resources):
1659 (webkit_web_view_get_subresources):
1660 (webkit_web_view_set_tooltip_text):
1661 (webkit_web_view_get_icon_uri):
1663 2010-05-11 Martin Robinson <mrobinson@igalia.com>
1665 Reviewed by Xan Lopez.
1667 [Gtk] Doesn't support gtk-key-themes
1668 https://bugs.webkit.org/show_bug.cgi?id=28257
1670 Add support for GTK+ key themes.
1672 * WebCoreSupport/EditorClientGtk.cpp:
1673 (WebKit::backspaceCallback): Added.
1674 (WebKit::cutClipboardCallback): Added.
1675 (WebKit::copyClipboardCallback): Added.
1676 (WebKit::pasteClipboardCallback): Added.
1677 (WebKit::selectAllCallback): Added.
1678 (WebKit::deleteFromCursorCallback): Added.
1679 (WebKit::moveCursorCallback): Added.
1680 (WebKit::EditorClient::generateEditorCommands): Added.
1681 (WebKit::EditorClient::executePendingEditorCommands): Added.
1682 (WebKit::EditorClient::handleKeyboardEvent): Derive editor commands both from internal text widget and a list of fallbacks.
1683 (WebKit::EditorClient::EditorClient): Add m_nativeWidget initializer.
1684 * WebCoreSupport/EditorClientGtk.h:
1685 (WebKit::EditorClient::addPendingEditorCommand): Add m_nativeWidget member.
1687 2010-05-06 Martin Robinson <mrobinson@webkit.org>
1689 Reviewed by Xan Lopez.
1691 Remove use of GOwnPtr to hold GObject types.
1692 https://bugs.webkit.org/show_bug.cgi?id=38669
1694 Change use of GOwnPtr to GRefPtr to types which are natively reference-counted.
1696 * WebCoreSupport/FrameLoaderClientGtk.cpp:
1697 (WebKit::FrameLoaderClient::dispatchWillSendRequest): Change GOwnPtr to GRefPtr in some places.
1698 (WebKit::FrameLoaderClient::dispatchDecidePolicyForMIMEType): Ditto.
1699 * webkit/webkitnetworkrequest.cpp:
1700 (webkit_network_request_new_with_core_request): Ditto.
1701 * webkit/webkitnetworkresponse.cpp:
1702 (webkit_network_response_new_with_core_response): Ditto.
1703 * webkit/webkitprivate.cpp: Remove GOwnPtr reference counting template specialization.
1704 * webkit/webkitprivate.h: Ditto.
1706 2010-05-06 Martin Robinson <mrobinson@webkit.org>
1708 Reviewed by Gustavo Noronha Silva.
1710 [GTK] Enable DOM clipboard and drag-and-drop access
1711 https://bugs.webkit.org/show_bug.cgi?id=30623
1713 Convert dragging portion of drag-and-drop to use DataObjectGtk.
1715 * WebCoreSupport/DragClientGtk.cpp:
1716 (WebKit::DragClient::willPerformDragDestinationAction): Remove the notImplemented. It is implemented, it's just a no-op.
1717 (WebKit::DragClient::startDrag): Start the drag context via the ClipboardGtk and PasteboardHelper now.
1718 * WebCoreSupport/DragClientGtk.h: Small style fix.
1719 * webkit/webkitprivate.h: Add a HashMap of contexts and DataObjects here to to represent all current drag operations.
1720 * webkit/webkitwebview.cpp:
1721 (webkit_web_view_dispose): Clear all data objects during disposal.
1722 (webkit_web_view_drag_end): When a drag is over, just remove it from the map.
1723 (webkit_web_view_drag_data_get): To get the drag data, just grab it from the DataObject.
1725 2010-05-03 Abhishek Arya <inferno@chromium.org>
1727 Reviewed by Adam Barth.
1729 Add support for controlling clipboard access from javascript.
1730 Clipboard access from javascript is disabled by default.
1731 https://bugs.webkit.org/show_bug.cgi?id=27751
1733 * webkit/webkitwebsettings.cpp:
1734 (webkit_web_settings_class_init):
1735 (webkit_web_settings_set_property):
1736 (webkit_web_settings_get_property):
1737 (webkit_web_settings_copy):
1738 * webkit/webkitwebview.cpp:
1739 (webkit_web_view_update_settings):
1740 (webkit_web_view_settings_notify):
1742 2010-05-03 Jens Alfke <snej@chromium.org>
1744 Reviewed by Darin Fisher.
1746 [chromium] Add "willSendSubmitEvent" hook to WebFrameClient and FrameLoaderClient
1747 https://bugs.webkit.org/show_bug.cgi?id=38397
1749 No tests (functionality is exposed only through native WebKit API.)
1751 * WebCoreSupport/FrameLoaderClientGtk.h:
1752 (WebKit::FrameLoaderClient::dispatchWillSendSubmitEvent):
1754 2010-05-01 Xan Lopez <xlopez@igalia.com>
1756 Reviewed by Oliver Hunt.
1758 [GTK] GObject DOM bindings
1759 https://bugs.webkit.org/show_bug.cgi?id=33590
1761 Test webkit_dom_document_get_links.
1763 * tests/testdomdocument.c:
1764 (test_dom_document_get_links):
1767 2010-04-29 Xan Lopez <xlopez@igalia.com>
1769 Reviewed by Gustavo Noronha.
1771 [GTK] GObject DOM bindings
1772 https://bugs.webkit.org/show_bug.cgi?id=33590
1774 Test webkit_dom_document_get_element_by_id;
1776 * tests/testdomdocument.c:
1777 (test_dom_document_get_element_by_id):
1780 2010-04-29 Xan Lopez <xlopez@igalia.com>
1782 Reviewed by Gustavo Noronha.
1784 [GTK] GObject DOM bindings
1785 https://bugs.webkit.org/show_bug.cgi?id=33590
1787 Test webkit_dom_document_get_elements_by_class_name.
1789 * tests/testdomdocument.c:
1790 (test_dom_document_get_elements_by_class_name):
1793 2010-04-29 Xan Lopez <xlopez@igalia.com>
1795 Reviewed by Gustavo Noronha.
1797 [GTK] GObject DOM bindings
1798 https://bugs.webkit.org/show_bug.cgi?id=33590
1800 Test webkit_dom_document_get_elements_by_tag_name.
1802 * tests/testdomdocument.c:
1803 (test_dom_document_get_elements_by_tag_name):
1806 2010-04-29 Xan Lopez <xlopez@igalia.com>
1808 Reviewed by Gustavo Noronha.
1810 [GTK] GObject DOM bindings
1811 https://bugs.webkit.org/show_bug.cgi?id=33590
1813 Move WebKitDOMDocument unit tests to their own file.
1815 * tests/testdomdocument.c: Added.
1817 (dom_document_fixture_setup):
1818 (dom_document_fixture_teardown):
1819 (test_dom_document_title):
1821 * tests/testwebview.c:
1823 2010-04-29 Xan Lopez <xlopez@igalia.com>
1825 Reviewed by Gustavo Noronha.
1827 [GTK] GObject DOM bindings
1828 https://bugs.webkit.org/show_bug.cgi?id=33590
1830 Include <webkit/webkitdom.h> in the main webkit.h header.
1834 2010-04-25 Sam Weinig <sam@webkit.org>
1836 Reviewed by Maciej Stachowiak.
1838 Fix for https://bugs.webkit.org/show_bug.cgi?id=38097
1839 Disentangle initializing the main thread from initializing threading
1841 * webkit/webkitprivate.cpp:
1842 (webkit_init): Add call to initializeMainThread.
1844 2010-04-22 Dave Moore <davemoore@chromium.org>
1846 Reviewed by Dimitri Glazkov.
1848 Added notification when the favicons for a page are changed
1850 The Document object will notify the frame loader, which will
1851 notify the client. Implementations of FrameLoaderClient will
1852 have to add one method; dispatchDidChangeIcons().
1854 * WebCoreSupport/FrameLoaderClientGtk.cpp:
1855 (WebKit::FrameLoaderClient::dispatchDidChangeIcons):
1856 * WebCoreSupport/FrameLoaderClientGtk.h:
1858 2010-04-22 Xan Lopez <xlopez@igalia.com>
1860 Reviewed by Gustavo Noronha.
1862 [GTK] GObject DOM bindings
1863 https://bugs.webkit.org/show_bug.cgi?id=33590
1865 Add webkit_web_view_get_document to retrieve the WebKitDOMDocument
1866 from a WebKitWebView, and a very simple test for it.
1868 * tests/testwebview.c:
1869 * webkit/webkitwebview.cpp:
1870 (webkit_web_view_get_document):
1871 * webkit/webkitwebview.h:
1873 2010-04-22 Diego Escalante Urrelo <descalante@igalia.com>
1875 Reviewed by Xan Lopez.
1877 [Gtk] Evaluate and create tests for all the AtkRole's implemented by
1879 https://bugs.webkit.org/show_bug.cgi?id=34449
1881 Expand testatkroles to test ATK_ROLE_COMBO_BOX.
1883 * tests/testatkroles.c:
1884 (test_webkit_atk_get_role_combobox):
1887 2010-04-22 Diego Escalante Urrelo <descalante@igalia.com>
1889 Reviewed by Xan Lopez.
1891 [Gtk] Evaluate and create tests for all the AtkRole's implemented by
1893 https://bugs.webkit.org/show_bug.cgi?id=34449
1895 Expand testatkroles to test ATK_ROLE_SEPARATOR.
1897 * tests/testatkroles.c:
1898 (test_webkit_atk_get_role_separator):
1901 2010-04-22 Adam Barth <abarth@webkit.org>
1903 Unreviewed, rolling out r58069.
1904 http://trac.webkit.org/changeset/58069
1905 https://bugs.webkit.org/show_bug.cgi?id=27751
1907 Broke compile on Windows.
1909 * webkit/webkitwebsettings.cpp:
1910 (webkit_web_settings_class_init):
1911 (webkit_web_settings_set_property):
1912 (webkit_web_settings_get_property):
1913 (webkit_web_settings_copy):
1914 * webkit/webkitwebview.cpp:
1915 (webkit_web_view_update_settings):
1916 (webkit_web_view_settings_notify):
1918 2010-04-22 Abhishek Arya <inferno@chromium.org>
1920 Reviewed by Adam Barth.
1922 Add support for controlling clipboard access from javascript.
1923 Clipboard access from javascript is disabled by default.
1924 https://bugs.webkit.org/show_bug.cgi?id=27751
1926 * webkit/webkitwebsettings.cpp:
1927 (webkit_web_settings_class_init):
1928 (webkit_web_settings_set_property):
1929 (webkit_web_settings_get_property):
1930 (webkit_web_settings_copy):
1931 * webkit/webkitwebview.cpp:
1932 (webkit_web_view_update_settings):
1933 (webkit_web_view_settings_notify):
1935 2010-04-21 Jakub Wieczorek <jwieczorek@webkit.org>
1937 Reviewed by Darin Adler.
1939 List item markers are not always updated after changes in the DOM.
1940 https://bugs.webkit.org/show_bug.cgi?id=37060
1942 * webkit/webkitprivate.h:
1943 * webkit/webkitwebframe.cpp:
1944 (webkit_web_frame_marker_text_for_list_item): Add a private API to get the marker text for a list item.
1946 2010-04-21 Diego Escalante Urrelo <descalante@igalia.com>
1948 Reviewed by Xan Lopez.
1950 [Gtk] Evaluate and create tests for all the AtkRole's implemented by
1952 https://bugs.webkit.org/show_bug.cgi?id=34449
1954 Expand testatkroles to test ATK_ROLE_FORM.
1956 * tests/testatkroles.c:
1957 (test_webkit_atk_get_role_form):
1960 2010-04-20 Adam Barth <abarth@webkit.org>
1962 Reviewed by Eric Seidel.
1964 Factor DocumentWriter out of FrameLoader
1965 https://bugs.webkit.org/show_bug.cgi?id=37175
1967 Update these callsites because the method moved to DocumentWriter.
1969 * WebCoreSupport/FrameLoaderClientGtk.cpp:
1970 (WebKit::FrameLoaderClient::committedLoad):
1971 (WebKit::FrameLoaderClient::finishedLoading):
1972 * webkit/webkitwebview.cpp:
1973 (webkit_web_view_get_encoding):
1975 2010-04-20 Kent Tamura <tkent@chromium.org>
1977 Reviewed by Darin Adler.
1979 Change a parameter type of chooseIconForFiles()
1980 https://bugs.webkit.org/show_bug.cgi?id=37504
1982 * WebCoreSupport/ChromeClientGtk.cpp:
1983 (WebKit::ChromeClient::chooseIconForFiles):
1984 * WebCoreSupport/ChromeClientGtk.h:
1986 2010-04-20 Martin Robinson <mrobinson@webkit.org>
1988 Reviewed by Gustavo Noronha Silva.
1990 [GTK] Enable DOM clipboard and drag-and-drop access
1991 https://bugs.webkit.org/show_bug.cgi?id=30623
1993 Move most of the PasteboardHelper logic into WebCore. This helps
1994 prepare for WebKit2 and leads to a clearer separation of concerns
1995 between the WebKit and WebCore layers.
1997 * WebCoreSupport/EditorClientGtk.cpp:
1998 (WebKit::collapseSelection): Converted this logic to a GClosure callback.
1999 (WebKit::EditorClient::respondToChangedSelection): Collapse selection via GClosure now.
2000 * WebCoreSupport/PasteboardHelperGtk.cpp: Moved most of the code to WebCore.
2001 (WebKit::PasteboardHelperGtk::PasteboardHelperGtk): This constructor just initializes the target list.
2002 (WebKit::PasteboardHelperGtk::~PasteboardHelperGtk): The destructor no longer needs to free the target list.
2003 (WebKit::PasteboardHelperGtk::getIdForTargetType): Added, virtual method for getting target ids.
2004 (WebKit::PasteboardHelperGtk::usePrimarySelectionClipboard): Added, virtual method for querying current clipboard.
2005 * WebCoreSupport/PasteboardHelperGtk.h: Update method list to reflect reduced functionality.
2007 2010-04-19 Diego Escalante Urrelo <descalante@igalia.com>
2009 Reviewed by Xan Lopez.
2011 [Gtk] Evaluate and create tests for all the AtkRole's implemented by
2013 https://bugs.webkit.org/show_bug.cgi?id=34449
2015 Expand testatkroles to test ATK form roles.
2017 * tests/testatkroles.c:
2018 (test_webkit_atk_get_role_check_box):
2019 (test_webkit_atk_get_role_entry):
2020 (test_webkit_atk_get_role_label):
2021 (test_webkit_atk_get_role_listbox):
2022 (test_webkit_atk_get_role_password_text):
2023 (test_webkit_atk_get_role_push_button):
2024 (test_webkit_atk_get_role_radio_button):
2027 2010-04-19 Diego Escalante Urrelo <descalante@igalia.com>
2029 Reviewed by Xan Lopez.
2031 [Gtk] Evaluate and create tests for all the AtkRole's implemented by
2033 https://bugs.webkit.org/show_bug.cgi?id=34449
2035 Add testatkroles to test ATK non form roles.
2037 * tests/testatkroles.c: Added.
2039 (atk_roles_fixture_setup):
2040 (atk_roles_fixture_teardown):
2041 (get_child_and_test_role):
2042 (test_webkit_atk_get_role_document_frame):
2043 (test_webkit_atk_get_role_heading):
2044 (test_webkit_atk_get_role_image):
2045 (test_webkit_atk_get_role_link):
2046 (test_webkit_atk_get_role_list_and_item):
2047 (test_webkit_atk_get_role_paragraph):
2048 (test_webkit_atk_get_role_section):
2049 (test_webkit_atk_get_role_table):
2052 2010-04-17 Alejandro G. Castro <alex@igalia.com>
2054 Reviewed by Xan Lopez.
2056 We have to initialize the timer attribute after destroying it, not
2057 doing it was causing crashes in some situations.
2059 * webkit/webkitdownload.cpp:
2060 (webkit_download_finalize):
2062 2010-04-13 Timothy Hatcher <timothy@apple.com>
2064 Rename SecurityOrigin::whiteListAccessFromOrigin to addOriginAccessWhitelistEntry.
2065 And SecurityOrigin::resetOriginAccessWhiteLists to resetOriginAccessWhitelists.
2067 SecurityOrigin needs a way to remove individual OriginAccessEntries
2068 https://bugs.webkit.org/show_bug.cgi?id=37449
2070 Reviewed by Dave Hyatt.
2072 * webkit/webkitprivate.cpp:
2073 (webkit_white_list_access_from_origin):
2074 (webkit_reset_origin_access_white_lists):
2076 2010-04-11 Sheriff Bot <webkit.review.bot@gmail.com>
2078 Unreviewed, rolling out r57468.
2079 http://trac.webkit.org/changeset/57468
2080 https://bugs.webkit.org/show_bug.cgi?id=37433
2082 Broke the world... Must have applied the patch wrong
2083 (Requested by abarth on #webkit).
2085 * WebCoreSupport/FrameLoaderClientGtk.cpp:
2086 (WebKit::FrameLoaderClient::committedLoad):
2087 (WebKit::FrameLoaderClient::finishedLoading):
2088 * webkit/webkitwebview.cpp:
2089 (webkit_web_view_get_encoding):
2091 2010-04-11 Adam Barth <abarth@webkit.org>
2093 Reviewed by Eric Seidel.
2095 Factor DocumentWriter out of FrameLoader
2096 https://bugs.webkit.org/show_bug.cgi?id=37175
2098 Update these callsites because the method moved to DocumentWriter.
2100 * WebCoreSupport/FrameLoaderClientGtk.cpp:
2101 (WebKit::FrameLoaderClient::committedLoad):
2102 (WebKit::FrameLoaderClient::finishedLoading):
2103 * webkit/webkitwebview.cpp:
2104 (webkit_web_view_get_encoding):
2106 2010-04-07 Andrey Kosyakov <caseq@chromium.org>
2108 Reviewed by Yury Semikhatsky.
2110 Removed redundant FrameLoaderClient::dispatchDidLoadResourceByXMLHttpRequest()
2111 https://bugs.webkit.org/show_bug.cgi?id=36949
2113 * WebCoreSupport/FrameLoaderClientGtk.cpp:
2114 * WebCoreSupport/FrameLoaderClientGtk.h:
2116 2010-04-01 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
2118 Reviewed by Holger Freyther.
2120 [GTK] webkit_get_default_session() should make sure webkit_init() is called
2121 https://bugs.webkit.org/show_bug.cgi?id=36754
2123 Make sure global functions that do not require a WebKitWebView to
2124 be created call webkit_init() before doing their job. Also add an
2125 API test to check for that.
2127 * tests/testglobals.c: Added.
2128 (test_globals_default_session):
2130 * webkit/webkitwebview.cpp:
2131 (webkit_get_default_session):
2132 (webkit_set_cache_model):
2133 (webkit_get_cache_model):
2135 2010-03-31 Marcus Bulach <bulach@chromium.org>
2137 Reviewed by Jeremy Orlow.
2139 Adds Geolocation param for cancelGeolocationPermissionRequestForFrame.
2140 https://bugs.webkit.org/show_bug.cgi?id=35031
2142 * WebCoreSupport/ChromeClientGtk.cpp:
2143 (WebKit::ChromeClient::cancelGeolocationPermissionRequestForFrame):
2144 * WebCoreSupport/ChromeClientGtk.h:
2146 2010-03-30 Gavin Barraclough <barraclough@apple.com>
2148 Rubber stamped by Sam Weinig.
2150 https://bugs.webkit.org/show_bug.cgi?id=36866
2153 * WebCoreSupport/ChromeClientGtk.cpp:
2154 * WebCoreSupport/ContextMenuClientGtk.cpp:
2155 * WebCoreSupport/EditorClientGtk.cpp:
2156 * WebCoreSupport/FrameLoaderClientGtk.cpp:
2157 * WebCoreSupport/InspectorClientGtk.cpp:
2158 * gdom/ConvertToGCharPrivate.h:
2159 * webkit/webkitdownload.cpp:
2160 * webkit/webkithittestresult.cpp:
2161 * webkit/webkitnetworkrequest.cpp:
2162 * webkit/webkitprivate.h:
2163 * webkit/webkitsecurityorigin.cpp:
2164 * webkit/webkitwebdatabase.cpp:
2165 * webkit/webkitwebframe.cpp:
2166 * webkit/webkitwebhistoryitem.cpp:
2167 (webkit_web_history_item_finalize):
2168 (webkit_web_history_item_get_target):
2169 * webkit/webkitwebresource.cpp:
2170 * webkit/webkitwebsettings.cpp:
2171 * webkit/webkitwebview.cpp:
2173 2010-03-28 Alexey Proskuryakov <ap@apple.com>
2175 Build fix. Include WindowsKeyboardCodes.h instead of KeyboardCodes.h.
2177 * WebCoreSupport/EditorClientGtk.cpp:
2179 2010-03-27 Sergio Villar Senin <svillar@igalia.com>
2181 Reviewed by Eric Seidel.
2183 FrameLoader emits onload-event when handling
2184 dispatchDidHandleOnloadEvents
2186 [GTK] Improve reporting of frame loader callbacks in DRT
2187 https://bugs.webkit.org/show_bug.cgi?id=36454
2189 * WebCoreSupport/FrameLoaderClientGtk.cpp:
2190 (WebKit::FrameLoaderClient::dispatchDidHandleOnloadEvents):
2191 implemented, now it emits onload-event signal
2192 * webkit/webkitwebview.cpp: added onload-event signal
2194 2010-03-25 Sergio Villar SenÃn <svillar@igalia.com>
2196 Reviewed by Xan Lopez.
2198 Added new API webkit_web_back_forward_list_clear. This function
2199 clears the back forward list
2201 [GTK] http/history tests are failing
2202 https://bugs.webkit.org/show_bug.cgi?id=36173
2204 * tests/testwebbackforwardlist.c:
2205 (test_webkit_web_back_forward_list_clear):
2206 (main): added new unit test for the new API
2207 * webkit/webkitwebbackforwardlist.cpp:
2208 (webkit_web_back_forward_list_clear):
2209 * webkit/webkitwebbackforwardlist.h: new function that clears the
2212 2010-03-24 Kent Tamura <tkent@chromium.org>
2214 Reviewed by Darin Adler.
2216 Make Icon::createIconForFiles() optional.
2217 https://bugs.webkit.org/show_bug.cgi?id=35072
2219 - Rename iconForFiles() to chooseIconForFiles().
2220 - Call Icon::createIconForFiles() from chooseIconForFiles().
2222 * WebCoreSupport/ChromeClientGtk.cpp:
2223 * WebCoreSupport/ChromeClientGtk.h:
2225 2010-03-23 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
2227 Reviewed by Holger Freyther.
2229 [GTK] Does not build with latest GTK+ development release
2230 https://bugs.webkit.org/show_bug.cgi?id=36398
2232 Fix building with newest GTK+ versions.
2234 * WebCoreSupport/ChromeClientGtk.cpp:
2235 (WebKit::ChromeClient::windowRect):
2236 (WebKit::ChromeClient::setWindowRect):
2237 (WebKit::ChromeClient::unfocus):
2238 (WebKit::ChromeClient::canTakeFocus):
2239 (WebKit::ChromeClient::contentsSizeChanged):
2240 * webkit/webkitprivate.cpp:
2241 (currentToplevelCallback):
2242 * webkit/webkitwebframe.cpp:
2243 (webkit_web_frame_print_full):
2244 (webkit_web_frame_print):
2245 * webkit/webkitwebview.cpp:
2246 (webkit_web_view_grab_focus):
2247 (webkit_web_view_focus_in_event):
2248 (webkit_web_view_script_dialog):
2250 2010-03-18 Philip Chimento <philip.chimento@gmail.com>
2252 Reviewed by Oliver Hunt.
2254 Setting the GObject WebKitWebView property 'window-features' to NULL
2256 https://bugs.webkit.org/show_bug.cgi?id=36144
2258 * tests/testwebview.c: Add unit test for this bug.
2259 * webkit/webkitwebview.cpp: Don't allow the 'window-features' property
2261 * webkit/webkitwebwindowfeatures.cpp:
2262 (webkit_web_window_features_equal): Don't examine the members of either
2263 web_window_features argument if either is NULL, just return that they
2264 are not equal. Additionally, if they are the same object, return that
2267 2010-03-16 Xan Lopez <xlopez@igalia.com>
2269 Reviewed by Gustavo Noronha.
2271 Update for 1.1.90 release.
2275 2010-03-16 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
2277 Fix one too many empty lines in documentation of
2278 window-obejct-cleared signal, which caused the documentation to be
2279 rendered funny. Thanks to Martin Robinson for noticing.
2281 * webkit/webkitwebview.cpp:
2283 2010-03-16 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
2285 Unreviewed. Add missing symbol to GeoLocation documentation
2288 * docs/webkitgtk-sections.txt:
2290 2010-03-16 Martin Robinson <mrobinson@webkit.org>
2292 Reviewed by Xan Lopez.
2294 can't input korean into lower all input box except adress input box in webkit gtk launcher
2295 https://bugs.webkit.org/show_bug.cgi?id=32290
2297 Make the GTK+ EditorClient properly handle different types of input module
2298 behavior such as commit and preedit signals that happen outside of key event
2299 filtering and multiple times in a row. Filter keyup events as well as keydown
2300 events and call gtk_im_context_focus_{in/out} when the WebView focus changes.
2302 Added tests for this behavior to the GTK+ unit tests.
2304 * WebCoreSupport/EditorClientGtk.cpp:
2305 (WebKit::imContextCommitted): Handle this signal properly when it happens outside of
2306 key event filtering.
2307 (WebKit::imContextPreeditChanged): Immediately update the preedit state and do not reject
2308 empty preedits, so that cancellation works properly.
2309 (WebKit::EditorClient::updatePendingComposition): Add this method, which handles the
2310 situation where a commit signal happens when there is still a pending commit.
2311 (WebKit::EditorClient::shouldBeginEditing): Clear pending composition state before editing
2313 (WebKit::EditorClient::shouldEndEditing): Clear pending composition state before editing ends.
2314 (WebKit::EditorClient::handleKeyboardEvent): No longer special case preedits which happen during
2315 key event filtering. When confirming a pending composition use insertText instead of confirmComposition.
2316 (WebKit::EditorClient::handleInputMethodKeydown):
2317 * WebCoreSupport/EditorClientGtk.h: Make pendingComposition a member, so that multiple WebViews
2319 (WebKit::EditorClient::webView): Added.
2320 (WebKit::EditorClient::treatContextCommitAsKeyEvent): Added.
2321 (WebKit::EditorClient::clearPendingComposition): Added.
2322 * tests/testkeyevents.c:
2323 (test_keypress_events_load_status_cb):
2325 (setup_keyevent_test):
2326 (test_keypress_events):
2327 (element_text_equal_to):
2328 (test_ime_load_status_cb):
2331 * webkit/webkitwebview.cpp:
2332 (webkit_web_view_key_release_event):
2333 (webkit_web_view_focus_in_event):
2335 2010-03-16 Yury Semikhatsky <yurys@chromium.org>
2337 Reviewed by Pavel Feldman.
2339 Introduce InspectorFrontendClient that provides InspectorFrontend with an interface to the embedder. InspectorClient now serves as a delegate for InspectorController and does not contain methods for managing inspector frontend window. That allows to create remote InspectorFrontendHost.
2341 Introduce InspectorFrontendClient that would provide InspectorFrontend with an interface to the embedder
2342 https://bugs.webkit.org/show_bug.cgi?id=35036
2344 * WebCoreSupport/InspectorClientGtk.cpp:
2345 (WebKit::notifyWebViewDestroyed):
2346 (WebKit::InspectorClient::InspectorClient):
2347 (WebKit::InspectorClient::inspectorDestroyed):
2348 (WebKit::InspectorClient::openInspectorFrontend):
2349 (WebKit::InspectorClient::highlight):
2350 (WebKit::InspectorClient::hideHighlight):
2351 (WebKit::InspectorClient::populateSetting):
2352 (WebKit::InspectorClient::storeSetting):
2353 (WebKit::InspectorFrontendClient::InspectorFrontendClient):
2354 (WebKit::InspectorFrontendClient::~InspectorFrontendClient):
2355 (WebKit::InspectorFrontendClient::destroyInspectorWindow):
2356 (WebKit::InspectorFrontendClient::localizedStringsURL):
2357 (WebKit::InspectorFrontendClient::hiddenPanels):
2358 (WebKit::InspectorFrontendClient::bringToFront):
2359 (WebKit::InspectorFrontendClient::closeWindow):
2360 (WebKit::InspectorFrontendClient::attachWindow):
2361 (WebKit::InspectorFrontendClient::detachWindow):
2362 (WebKit::InspectorFrontendClient::setAttachedWindowHeight):
2363 (WebKit::InspectorFrontendClient::inspectedURLChanged):
2364 * WebCoreSupport/InspectorClientGtk.h:
2366 2010-03-15 Joanmarie Diggs <joanmarie.diggs@gmail.com>
2368 Reviewed by Holger Freyther.
2370 https://bugs.webkit.org/show_bug.cgi?id=35502
2371 [Gtk] Objects of ATK_ROLE_TABLE should not implement AtkText
2373 New test to be sure we do not accidentally implement AtkText for tables
2376 (testWebkitAtkGetTextInTable):
2379 2010-03-09 Philippe Normand <pnormand@igalia.com>
2381 Reviewed by Holger Freyther.
2383 [GTK] GTK_WIDGET_IS_SENSITIVE is deprecated in GTK+ 2.20
2384 https://bugs.webkit.org/show_bug.cgi?id=35909
2386 * webkit/webkitwebview.cpp: GTK_WIDGET_IS_SENSITIVE has been
2387 deprecated in gtk 2.20. Use gtk_widget_is_sensitive when available.
2389 2010-03-12 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
2391 Rubber-stamped by Kenneth Rohde Christiansen.
2393 Misc documentation fixes. Fixes (almost) all warnings emitted by
2394 the documentation build process. Only the broken references to JSC
2397 * webkit/webkitsecurityorigin.cpp:
2398 * webkit/webkitwebbackforwardlist.cpp:
2399 * webkit/webkitwebdatasource.cpp:
2400 * webkit/webkitwebframe.cpp:
2401 * webkit/webkitwebhistoryitem.cpp:
2402 * webkit/webkitwebinspector.cpp:
2403 (webkit_web_inspector_class_init):
2404 * webkit/webkitwebsettings.cpp:
2405 (webkit_web_settings_class_init):
2406 * webkit/webkitwebview.cpp:
2407 (DNDContentsRequest::webkit_web_view_class_init):
2409 2010-03-11 Anders Carlsson <andersca@apple.com>
2411 Reviewed by David Hyatt.
2413 Remove invalidateContents, it isn't used and it never makes sense to only invalidate the contents.
2415 * WebCoreSupport/ChromeClientGtk.cpp:
2416 * WebCoreSupport/ChromeClientGtk.h:
2418 2010-03-09 Philippe Normand <pnormand@igalia.com>
2420 Reviewed by Gustavo Noronha Silva.
2422 [GTK] testkeyevents doesn't stop if input event injection fails
2423 https://bugs.webkit.org/show_bug.cgi?id=35922
2425 * tests/testkeyevents.c:
2426 (load_status_cb): Added a safeguard to exit from the test if the
2427 input event injection failed.
2429 2010-03-09 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
2431 Unreviewed. Documentation control files update for 1.1.23.
2433 * docs/webkitgtk-docs.sgml:
2435 2010-03-08 Csaba Osztrogonác <ossy@webkit.org>
2437 [GTK] Unreviewed buildfix after r55688.
2439 * webkit/webkitdownload.cpp:
2440 (webkit_download_start):
2442 2010-03-02 Adam Treat <atreat@rim.com>
2444 Reviewed by Dave Hyatt.
2446 Adapt the gtk port to the refactoring of repaint methods.
2448 https://bugs.webkit.org/show_bug.cgi?id=34214
2450 * WebCoreSupport/ChromeClientGtk.cpp:
2451 * WebCoreSupport/ChromeClientGtk.h:
2453 2010-03-08 Eric Uhrhane <ericu@chromium.org>
2455 Reviewed by David Levin.
2457 Remove the now-redundant Settings fields for the Database
2458 https://bugs.webkit.org/show_bug.cgi?id=35763
2460 No new tests; this code isn't called.
2462 * webkit/webkitwebview.cpp: Remove the calls into Settings.
2463 (DNDContentsRequest::webkit_web_view_update_settings):
2464 (DNDContentsRequest::webkit_web_view_settings_notify):
2466 2010-03-06 Arno Renevier <arno@renevier.net>
2468 Reviewed by Eric Seidel.
2470 [Gtk] GEOLOCATION_POLICY_DECISION_CANCELLED unused
2471 https://bugs.webkit.org/show_bug.cgi?id=35803
2473 * webkit/webkitwebview.cpp:
2474 (DNDContentsRequest::webkit_web_view_class_init):
2476 2010-03-03 Antonio Gomes <tonikitoo@webkit.org>
2478 Reviewed by Gustavo Noronha.
2479 Patch by Antonio Gomes <tonikitoo@webkit.org>
2481 [Gtk] Add 'enable-spatial-navigation' setting for toggle Spatial Navigation on/off
2482 https://bugs.webkit.org/show_bug.cgi?id=35701
2484 * webkit/webkitwebsettings.cpp:
2485 (webkit_web_settings_class_init):
2486 (webkit_web_settings_set_property):
2487 (webkit_web_settings_get_property):
2488 (webkit_web_settings_copy):
2489 * webkit/webkitwebview.cpp:
2490 (DNDContentsRequest::webkit_web_view_update_settings):
2491 (DNDContentsRequest::webkit_web_view_settings_notify):
2493 2010-03-03 Fridrich Strba <fridrich.strba@bluewin.ch>
2495 Reviewed by Xan Lopez.
2497 Miscellaneous little fixes for the windows build of webkit-gtk
2498 https://bugs.webkit.org/show_bug.cgi?id=35640
2500 * webkit/webkitdownload.cpp: Windows headers define ERROR
2501 which breaks the build. Undef ERROR if it is defined.
2503 2010-03-03 Philippe Normand <pnormand@igalia.com>
2505 Unreviewed, build fix after r55452.
2507 * webkit/webkitwebview.cpp:
2508 (DNDContentsRequest::webkit_web_view_settings_notify): added missing braces.
2510 2010-03-02 Eric Uhrhane <ericu@chromium.org>
2512 Reviewed by David Levin.
2514 Move database enable bit fully out of settings
2515 This is stage one of a three-stage commit [webkit, then chromium, then
2516 webkit again]. In this change I'm adding calls to
2517 Database::setIsAvailable inside Settings::setDatabaseEnabled and
2518 anywhere else that called it, and switching webkit fully over to using
2519 that flag [added in a previous checkin]. Phase two will remove
2520 Chromium's use of Settings for the Database, and phase three will remove
2521 the Setting for the Database enable entirely, leaving only
2522 Database::isAvailable/setIsAvailable.
2524 No new tests; tested by existing storage tests.
2526 https://bugs.webkit.org/show_bug.cgi?id=35310
2528 * webkit/webkitwebview.cpp: Add calls to Database::setIsAvailable
2529 (DNDContentsRequest::webkit_web_view_update_settings):
2530 (DNDContentsRequest::webkit_web_view_settings_notify):
2532 2010-03-02 Arno Renevier <arno@renevier.net>
2534 Reviewed by Gustavo Noronha Silva.
2536 [Gtk] implements ChromeClient::requestGeolocationPermissionForFrame
2537 https://bugs.webkit.org/show_bug.cgi?id=35210
2539 * WebCoreSupport/ChromeClientGtk.cpp:
2540 * WebCoreSupport/ChromeClientGtk.h:
2541 * docs/webkitgtk-sections.txt:
2543 * webkit/webkitdefines.h:
2544 * webkit/webkitgeolocationpolicydecision.cpp: Added.
2545 (webkit_geolocation_policy_decision_class_init):
2546 (webkit_geolocation_policy_decision_init):
2547 (webkit_geolocation_policy_decision_new):
2548 (webkit_geolocation_policy_allow):
2549 (webkit_geolocation_policy_deny):
2550 * webkit/webkitgeolocationpolicydecision.h: Added.
2551 * webkit/webkitprivate.h:
2552 * webkit/webkitwebview.cpp:
2553 (DNDContentsRequest::webkit_web_view_class_init):
2554 * webkitmarshal.list:
2556 2010-03-01 José Millán Soto <jmillan@igalia.com>
2558 Reviewed by Gustavo Noronha Silva.
2560 [GTK] Right click does not activate text entry
2561 https://bugs.webkit.org/show_bug.cgi?id=29177
2563 Makes the frame handle the mouse click event before sending the
2566 * webkit/webkitwebview.cpp:
2567 (PopupMenuPositionFunc):
2568 Function created to make the popup menu appear in the correct position, especially
2569 when invoked from the keyboard.
2570 (webkit_web_view_forward_context_menu_event):
2571 Mouse click event is sent to frame before creating context menu,
2572 PopupMenuPositionFunc used to determine the position where the menu should appear.
2573 (webkit_web_view_popup_menu_handler):
2574 Improved focused node position detection. Event button set to right button.
2576 2010-03-01 Jakob Petsovits <jpetsovits@rim.com>
2578 Reviewed by Adam Barth.
2580 Adapt to the new ZoomMode enum.
2581 https://bugs.webkit.org/show_bug.cgi?id=35347
2583 * webkit/webkitwebview.cpp:
2584 (DNDContentsRequest::webkit_web_view_apply_zoom_level):
2586 2010-03-01 Kalle Vahlman <zuh@iki.fi>
2588 Reviewed by Gustavo Noronha Silva.
2590 Queue a resize when either of the content dimensions change
2591 https://bugs.webkit.org/show_bug.cgi?id=35489
2593 The check for size changes only queued a resize if both of the content
2594 dimensions change, leaving the widget size out-of-sync if eg. only the
2597 * WebCoreSupport/ChromeClientGtk.cpp:
2599 2009-12-04 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
2601 Reviewed by Xan Lopez.
2603 [GTK] Needs proper reporting of frame loader callbacks, in DRT
2604 https://bugs.webkit.org/show_bug.cgi?id=32170
2606 Add new signal to report when the document load is finished for a
2609 * WebCoreSupport/FrameLoaderClientGtk.cpp:
2610 (WebKit::FrameLoaderClient::dispatchDidFinishDocumentLoad):
2611 * webkit/webkitwebview.cpp:
2612 (webkit_web_view_class_init):
2614 2010-02-26 Antonio Gomes <tonikitoo@webkit.org>
2616 Complementary commit of r55300. Missing "notify::" to signal name.
2618 * tests/testwebview.c:
2619 (test_webkit_web_view_grab_focus):
2621 2010-02-26 Antonio Gomes <tonikitoo@webkit.org>
2623 Reviewed by Xan Lopez.
2624 Patch by Antonio Gomes <tonikitoo@webkit.org>
2626 [GTK] Make webkit_web_view_grab_focus to active focus controller.
2627 https://bugs.webkit.org/show_bug.cgi?id=35402
2629 When programatically setting focus to an element in an inner document,
2630 calling "hasFocus()" from this document returns FALSE, because
2631 document's FocusController is not activated. It does not happen
2632 if |document| is the main document.
2634 Making webkit_web_view_grab_focus to actually activate the FocusController,
2637 * tests/testwebview.c:
2639 (test_webkit_web_view_grab_focus):
2640 * webkit/webkitwebview.cpp:
2641 (webkit_web_view_grab_focus):
2643 2010-02-26 Alejandro G. Castro <alex@igalia.com>
2647 Reverted last patch (r55295), it causes problems with the frames.
2649 * WebCoreSupport/ChromeClientGtk.cpp:
2651 2010-02-19 Alejandro G. Castro <alex@igalia.com>
2653 Reviewed by Xan Lopez.
2655 [GTK] Some region checks in scroll are not required
2656 https://bugs.webkit.org/show_bug.cgi?id=35142
2658 Removes some of the operations checking the moved and invalidated
2659 regions when scrolling, it is done already in
2660 gdk_window_move_region.
2662 * WebCoreSupport/ChromeClientGtk.cpp:
2664 2010-02-25 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
2666 Reviewed by Xan Lopez.
2668 [Gtk] crashed when destroying
2669 https://bugs.webkit.org/show_bug.cgi?id=31271
2671 NULL-check the page before relaying the focus out event, since
2672 this might happen when destroying the widget without destroying
2673 its parent, and we currently crash.
2675 * tests/testwebview.c:
2677 (test_webkit_web_view_destroy):
2679 * webkit/webkitwebview.cpp:
2680 (webkit_web_view_focus_in_event):
2682 2010-02-24 Krzysztof Kotlenga <pocek@users.sf.net>
2684 Reviewed by Gustavo Noronha Silva.
2686 [Gtk] Creation of a WebkitWebView widget is very slow
2687 https://bugs.webkit.org/show_bug.cgi?id=30032
2689 * WebCoreSupport/EditorClientGtk.cpp:
2690 (WebKit::EditorClient::ignoreWordInSpellDocument): Change 'langs' to 'dicts'
2691 to reflect the fact that the list just holds Enchant dictionaries now.
2692 (WebKit::EditorClient::learnWord): Ditto.
2693 (WebKit::EditorClient::checkSpellingOfString): Ditto.
2694 (WebKit::EditorClient::getGuessesForWord): Ditto.
2695 * webkit/webkitprivate.h: Remove the now unused SpellLanguage struct.
2696 * webkit/webkitwebsettings.cpp: Change function call to reflect new
2697 webkit_web_settings_get_enchant_dicts name.
2698 (get_enchant_broker): Add this method which returns the enchant broker singleton.
2699 (free_spell_checking_language): The list contents have changed, so change
2700 the way each element is freed.
2701 (webkit_web_settings_finalize): Change to reflect 'spell_checking_languages_list'
2702 to 'enchant_dicts' member name change.
2703 (webkit_web_settings_set_property): Use the broker singleton here instead of making
2704 a new one for each language. The Enchant dictionary is now the list payload.
2705 (webkit_web_settings_copy): More name-change updates.
2706 (webkit_web_settings_get_enchant_dicts): Ditto.
2708 2010-02-23 Leandro Pereira <leandro@profusion.mobi>
2710 Reviewed by Gustavo Noronha Silva.
2712 Fixes references to GOwnPtr and GRefPtr so the GTK+ port builds
2714 http://webkit.org/b/35084
2716 * WebKit/gtk/webkit/webkitwebview.cpp:
2718 2010-02-23 Shinichiro Hamaji <hamaji@chromium.org>
2720 Reviewed by Eric Seidel.
2722 [Gtk] Implement layoutTestController.numberOfPages
2723 https://bugs.webkit.org/show_bug.cgi?id=35228
2725 * webkit/webkitprivate.h:
2726 * webkit/webkitwebframe.cpp:
2727 (webkit_web_frame_number_of_pages):
2729 2010-02-23 José Millán Soto <jmillan@igalia.com>
2731 Reviewed by Xan Lopez.
2733 [Gtk] Server message not shown on http authentication
2734 https://bugs.webkit.org/show_bug.cgi?id=34219
2736 * webkit/webkitsoupauthdialog.c:
2738 Server message is displayed, messageLabel and message variables were
2739 renamed to avoid confusion.
2741 2010-02-23 Steve Block <steveblock@google.com>
2743 Reviewed by Darin Adler.
2745 Adds ChromeClient::cancelGeolocationPermissionRequestForFrame
2746 https://bugs.webkit.org/show_bug.cgi?id=34962
2748 This method is required so that a Geolocation object can cancel an
2749 asynchronous permission request. This allows the chrome client to cancel
2750 any UI it is showing for the permission request.
2752 * WebCoreSupport/ChromeClientGtk.h:
2753 (WebKit::ChromeClient::cancelGeolocationPermissionRequestForFrame):
2755 2010-02-23 Xan Lopez <xlopez@igalia.com>
2757 Reviewed by Gustavo Noronha.
2759 Do not do unnecessary work during size_allocate.
2761 FrameView::resize will already queue a layout, so there's no need
2762 to force one ourselves. On top of that, the layout function
2763 already adjusts the view size when needed, so there's no need to
2764 do that manually either. No change in the layout tests or unit
2767 * webkit/webkitwebview.cpp:
2768 (webkit_web_view_size_allocate):
2770 2010-02-22 Xan Lopez <xlopez@igalia.com>
2772 Reviewed by Gustavo Noronha.
2778 2010-02-22 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
2780 Reviewed by Xan Lopez.
2782 [Soup] loses information related to message flags when converting from/to Resource{Request,Response}
2783 https://bugs.webkit.org/show_bug.cgi?id=35093
2785 Update the flags that are stored in the request, when the response
2788 * WebCoreSupport/FrameLoaderClientGtk.cpp:
2789 (WebKit::FrameLoaderClient::dispatchDidReceiveResponse):
2791 2010-02-20 Gustavo Noronha Silva <gns@gnome.org>
2793 Unreviewed. Trivial fix - unnecessary variable got added by
2796 * WebCoreSupport/FrameLoaderClientGtk.cpp:
2797 (WebKit::FrameLoaderClient::dispatchDidReceiveResponse):
2799 2010-02-18 Diego Escalante Urrelo <descalante@igalia.com>
2801 Reviewed by Gustavo Noronha Silva.
2803 [GTK] WebKitDownload documentation is incomplete
2804 https://bugs.webkit.org/show_bug.cgi?id=35018
2806 Concretely the error signal was undocumented. Also two relevant enums
2809 * docs/webkitgtk-sections.txt:
2810 * docs/webkitgtk.types:
2811 * webkit/webkitdownload.cpp:
2812 (webkit_download_class_init):
2814 2010-02-17 Dmitry Titov <dimich@chromium.org>
2816 Reviewed by David Levin, Darin Fisher, Simon Hausmann.
2818 When a live iframe element is moved between pages, it still depends on the old page.
2819 https://bugs.webkit.org/show_bug.cgi?id=34382
2821 * WebCoreSupport/FrameLoaderClientGtk.cpp:
2822 (WebKit::FrameLoaderClient::didTransferChildFrameToNewDocument):
2823 Added empty implementation of a new virtual method.
2825 * WebCoreSupport/FrameLoaderClientGtk.h:
2827 2010-02-17 Kent Tamura <tkent@chromium.org>
2829 Reviewed by Eric Seidel.
2831 Introduces new Icon loading interface in order to support
2832 asynchronous loading.
2833 https://bugs.webkit.org/show_bug.cgi?id=32054
2835 Add an empty implementation of ChromeClient::iconForFiles().
2837 * WebCoreSupport/ChromeClientGtk.cpp:
2838 (WebKit::ChromeClient::iconForFiles):
2839 * WebCoreSupport/ChromeClientGtk.h:
2841 2010-02-17 Xan Lopez <xlopez@igalia.com>
2843 Reviewed by Gustavo Noronha.
2845 Rename 'enable-java' setting to 'enable-java-applet', since it
2846 only controls whether <applet> is supported or not instead of
2847 whether all Java content is supported or not.
2849 * webkit/webkitwebsettings.cpp:
2850 (webkit_web_settings_class_init):
2851 (webkit_web_settings_set_property):
2852 (webkit_web_settings_get_property):
2853 (webkit_web_settings_copy):
2854 * webkit/webkitwebview.cpp:
2855 (DNDContentsRequest::webkit_web_view_update_settings):
2856 (DNDContentsRequest::webkit_web_view_settings_notify):
2858 2010-02-17 Xan Lopez <xlopez@igalia.com>
2860 Reviewed by Gustavo Noronha.
2862 [Linux] Webkit incompatible with Java plugins
2863 https://bugs.webkit.org/show_bug.cgi?id=24912
2865 Implement FrameLoaderClient::createJavaAppletWidget.
2867 * WebCoreSupport/FrameLoaderClientGtk.cpp:
2868 (WebKit::FrameLoaderClient::createJavaAppletWidget):
2870 2010-02-17 Xan Lopez <xlopez@igalia.com>
2872 Reviewed by Gustavo Noronha.
2874 [Linux] Webkit incompatible with Java plugins
2875 https://bugs.webkit.org/show_bug.cgi?id=24912
2877 Add a WebKitWebSetting to enable/disable the Java plugin support.
2879 * webkit/webkitwebsettings.cpp:
2880 (webkit_web_settings_class_init):
2881 (webkit_web_settings_set_property):
2882 (webkit_web_settings_get_property):
2883 (webkit_web_settings_copy):
2884 * webkit/webkitwebview.cpp:
2885 (webkit_web_view_update_settings):
2886 (webkit_web_view_settings_notify):
2888 2010-02-17 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
2890 Reviewed by Xan Lopez.
2892 Test that data URIs that cause downloads to be started do not crash.
2894 * tests/testdownload.c:
2895 (mime_type_policy_decision_requested_cb):
2896 (idle_quit_loop_cb):
2897 (test_webkit_download_data):
2900 2010-02-17 Philippe Normand <pnormand@igalia.com>
2902 Reviewed by Xan Lopez.
2904 Missing property warning after r54873
2905 https://bugs.webkit.org/show_bug.cgi?id=35023
2907 Add a new WebKitWebSettings setting, 'enable-file-access-from-file-uris', set to
2908 FALSE by default, that when enabled will assign each file:// URI
2909 their own security domain.
2911 * webkit/webkitwebsettings.cpp:
2912 (webkit_web_settings_class_init):
2913 (webkit_web_settings_set_property):
2914 (webkit_web_settings_get_property):
2915 (webkit_web_settings_copy):
2917 2010-02-16 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
2919 Reviewed by Xan Lopez.
2921 Check if the handle has a SoupMessage before trying to use
2922 it. This will be the case in non-HTTP(S) URLs.
2924 * webkit/webkitdownload.cpp:
2925 (webkit_download_new_with_handle):
2926 (webkit_download_start):
2928 2010-02-16 Xan Lopez <xlopez@igalia.com>
2930 Reviewed by Gustavo Noronha.
2932 Add a new WebKitWebSettings setting, 'auto-resize-window', set to
2933 FALSE by default, that when enabled will apply any resizes or
2934 moves done by a page through various DOM methods (moveTo,
2935 resizeTo, moveBy, resizeBy).
2937 * WebCoreSupport/ChromeClientGtk.cpp:
2938 * webkit/webkitwebsettings.cpp:
2939 (webkit_web_settings_class_init):
2940 (webkit_web_settings_set_property):
2941 (webkit_web_settings_get_property):
2942 (webkit_web_settings_copy):
2944 2010-02-15 Emilio Pozuelo Monfort <pochu27@gmail.com>
2946 Reviewed by Gustavo Noronha Silva.
2948 [GTK] Fails to build on GNU/Hurd because of PATH_MAX usage
2949 https://bugs.webkit.org/show_bug.cgi?id=34920
2951 Use dynamic allocation instead of fixed PATH_MAX size buffers to
2952 fix the build on GNU/Hurd, where PATH_MAX is undefined.
2954 * tests/testmimehandling.c:
2956 * tests/testwebview.c:
2959 2010-02-14 Diego Escalante Urrelo <descalante@igalia.com>
2961 Reviewed by Gustavo Noronha Silva.
2963 [gtk] WebKitDownload's currentSize property is guint, should be guint64
2964 https://bugs.webkit.org/show_bug.cgi?id=34829
2966 Actually use a guint64 for current-size property in WebKitDownload, we
2967 were using a guint which is likely the cause for wrong sizes for files
2970 * webkit/webkitdownload.cpp:
2972 2010-02-09 Gustavo Noronha Silva <gns@gnome.org>
2974 Reviewed by Xan Lopez.
2976 [GTK] Hits assertion on history back, with page cache enabled, in specific conditions
2977 https://bugs.webkit.org/show_bug.cgi?id=34773
2979 Make sure cached frames have their scrollbars disconnected from
2980 the WebView's adjustments.
2982 * WebCoreSupport/FrameLoaderClientGtk.cpp:
2983 (WebKit::FrameLoaderClient::savePlatformDataToCachedFrame):
2985 2010-02-09 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
2987 Reviewed by Xan Lopez.
2989 [GTK] Set GtkAdjustments on our FrameView when loading a page in the PageCache
2990 https://bugs.webkit.org/show_bug.cgi?id=34754
2992 Test that lower, and upper bounds are kept when goibg back with
2993 page cache enabled, and disabled. Page cache behaviour is still a
2994 bit broken (see FIXME).
2996 * tests/testwebview.c:
2999 (do_test_webkit_web_view_adjustments):
3000 (test_webkit_web_view_adjustments):
3003 2010-02-09 Xan Lopez <xlopez@igalia.com>
3005 Reviewed by Gustavo Noronha.
3007 [GTK] Set GtkAdjustments on our FrameView when loading a page in the PageCache
3008 https://bugs.webkit.org/show_bug.cgi?id=34754
3010 Set the Gtk Adjustments of the FrameViews when they are restored
3011 from the PageCache too. Right we only do it for the newly created
3012 FrameViews in transitionToCommittedForNewPage, but we it also
3013 needs to be done in the equilavent transition method for cached
3016 * WebCoreSupport/FrameLoaderClientGtk.cpp:
3017 (WebKit::postCommitFrameViewSetup):
3018 (WebKit::FrameLoaderClient::transitionToCommittedFromCachedFrame):
3019 (WebKit::FrameLoaderClient::transitionToCommittedForNewPage):
3021 2010-02-08 Xan Lopez <xlopez@igalia.com>
3023 Reviewed by Gustavo Noronha.
3025 [GTK] Implement FrameLoaderClient::hasWebView
3026 https://bugs.webkit.org/show_bug.cgi?id=34682
3028 Used for sanity-check ASSERTS in the FrameLoader code.
3030 * WebCoreSupport/FrameLoaderClientGtk.cpp:
3031 (WebKit::FrameLoaderClient::hasWebView):
3033 2010-02-08 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
3035 Reviewed by Xan Lopez.
3041 2010-02-05 Shinichiro Hamaji <hamaji@chromium.org>
3043 Reviewed by Gustavo Noronha Silva.
3045 [Gtk] Implement layoutTestController.pageNumberForElementById
3046 https://bugs.webkit.org/show_bug.cgi?id=34572
3048 * webkit/webkitprivate.h:
3049 * webkit/webkitwebframe.cpp:
3050 (webkit_web_frame_page_number_for_element_by_id):
3052 2010-02-04 Christian Dywan <christian@twotoasts.de>
3054 Reviewed by Gustavo Noronha Silva.
3056 [GTK] Add and cleanup return values of signals in view and frame
3057 https://bugs.webkit.org/show_bug.cgi?id=33484
3059 Add missing and cleanup return values of web frame and web view signals.
3061 * webkit/webkitwebframe.cpp:
3062 (webkit_web_frame_class_init):
3063 * webkit/webkitwebview.cpp:
3064 (DNDContentsRequest::webkit_web_view_class_init):
3066 2010-02-02 Gustavo Noronha Silva <gns@gnome.org>
3068 Reviewed by Xan Lopez.
3070 Changes in 1.1.20, and documentation control files update.
3073 * docs/webkitgtk-docs.sgml:
3075 2010-02-02 Martin Robinson <martin.james.robinson@gmail.com>
3077 Reviewed by Gustavo Noronha Silva.
3079 [GTK] When selection changes selections in other WebView are not collapsed
3080 https://bugs.webkit.org/show_bug.cgi?id=34043
3082 Collapse the selection of a WebView even when the new selection owner is
3085 * WebCoreSupport/PasteboardHelperGtk.cpp:
3086 (WebKit::clearClipboardContentsCallback): Only clear the DataObject we are setting
3087 is not the same as the one referenced in this callback. Use the same behavior for
3088 collapsing the selection.
3089 (WebKit::PasteboardHelperGtk::writeClipboardContents): Instead of recording a boolean
3090 record the actual data used while writing to the clipboard.
3092 2010-01-27 Martin Robinson <mrobinson@webkit.org>
3094 Reviewed by Gustavo Noronha Silva.
3096 [GTK] Expose the IM context via the API
3097 https://bugs.webkit.org/show_bug.cgi?id=33327
3099 Expose the GtkIMMultiContext as a property of WebKitWebView. This will
3100 allow embedders to generate the input method context menu entries and
3101 make testing certain IM context behavior possible.
3103 * webkit/webkitwebview.cpp:
3104 (webkit_web_view_get_property):
3105 (DNDContentsRequest::webkit_web_view_get_im_context):
3106 (DNDContentsRequest::webkit_web_view_class_init):
3108 2010-01-19 Joanmarie Diggs <joanmarie.diggs@gmail.com>
3110 Reviewed by Xan Lopez.
3112 https://bugs.webkit.org/show_bug.cgi?id=30883
3113 [Gtk] Implement AtkText for HTML elements which contain text
3115 Adds two news tests.
3118 (testWebkitAtkGetTextInParagraphAndBodySimple):
3119 (testWebkitAtkGetTextInParagraphAndBodyModerate):
3122 2010-01-19 Gustavo Noronha Silva <gns@gnome.org>
3124 Unreviewed. Changes to the test I forgot to make after a last
3125 minute change before landing 53294 - this causes make distcheck to
3128 * tests/testloading.c:
3129 (load_error_status_changed_cb):
3130 (test_loading_error):
3132 2010-01-19 Gustavo Noronha Silva <gns@gnome.org>
3134 Reviewed by Xan Lopez.
3136 News items for 1.1.19.
3140 2010-01-19 Gustavo Noronha Silva <gns@gnome.org>
3142 Reviewed by Xan Lopez.
3144 [GTK] More crashes related to the clipboard management
3145 https://bugs.webkit.org/show_bug.cgi?id=33746
3147 Pass the WebKitWebView object (which is a GObject, thus
3148 ref-counted) to the clipboard functions instead of passing the
3149 Page - this allows us to explicitely protect the object inbetween
3150 the clipboard call and its callbacks, which fixes the crash.
3152 * WebCoreSupport/EditorClientGtk.cpp:
3153 (WebKit::EditorClient::respondToChangedSelection):
3154 * WebCoreSupport/PasteboardHelperGtk.cpp:
3155 (WebKit::getClipboardContentsCallback):
3156 (WebKit::clearClipboardContentsCallback):
3157 (WebKit::PasteboardHelperGtk::writeClipboardContents):
3159 2010-01-15 Alejandro G. Castro <alex@igalia.com>
3161 Reviewed by Xan Lopez.
3163 Original patch by David Ronis <david.ronis@mcgill.ca>
3165 Upgrade 1.1.17->1.1.18 fails: GTK_WIDGET_TOPLEVEL' was not declared in this scope
3166 https://bugs.webkit.org/show_bug.cgi?id=33486
3168 Deprecated symbols replaced for gtk+ versions over 2.18.
3170 * WebCoreSupport/ChromeClientGtk.cpp:
3171 (WebKit::ChromeClient::windowRect):
3172 * webkit/webkitprivate.cpp:
3173 (currentToplevelCallback):
3174 * webkit/webkitwebframe.cpp:
3175 (webkit_web_frame_print_full):
3176 (webkit_web_frame_print):
3177 * webkit/webkitwebview.cpp:
3178 (webkit_web_view_focus_in_event):
3180 2010-01-14 Gustavo Noronha Silva <gns@gnome.org>
3182 Reviewed by Eric Seidel.
3184 [GTK] Crashes cleaning clipboard contents, with page cache enabled
3185 https://bugs.webkit.org/show_bug.cgi?id=32900
3187 Null-check the focus controller to avoid crashing. Could not find
3188 a way to reproduce this consistently, thus no test.
3190 * WebCoreSupport/PasteboardHelperGtk.cpp:
3191 (WebKit::clearClipboardContentsCallback):
3193 2010-01-14 Gustavo Noronha Silva <gns@gnome.org>
3195 Reviewed by Oliver Hunter.
3197 [GTK] couple fixes for signal emissions, and property notifications
3198 https://bugs.webkit.org/show_bug.cgi?id=33428
3200 Do not emit signals and property notifications for error
3201 pages. The notifications are not really useful for anything, you
3202 can get them back by overriding the error pages, and it avoids a
3205 * WebCoreSupport/FrameLoaderClientGtk.cpp:
3206 (WebKit::FrameLoaderClient::FrameLoaderClient):
3207 (WebKit::FrameLoaderClient::dispatchDidFinishLoad):
3208 (WebKit::FrameLoaderClient::dispatchDidReceiveIcon):
3209 (WebKit::FrameLoaderClient::dispatchDidStartProvisionalLoad):
3210 (WebKit::FrameLoaderClient::dispatchDidReceiveTitle):
3211 (WebKit::FrameLoaderClient::dispatchDidCommitLoad):
3212 (WebKit::FrameLoaderClient::dispatchDidFirstVisuallyNonEmptyLayout):
3213 (WebKit::FrameLoaderClient::dispatchDidFailLoad):
3214 * WebCoreSupport/FrameLoaderClientGtk.h:
3215 * tests/testloading.c:
3216 (load_error_status_changed_cb):
3217 (test_loading_error):
3219 2010-01-14 Martin Robinson <martin.james.robinson@gmail.com>
3221 Reviewed by Xan Lopez.
3223 [GTK] Enable DOM clipboard and drag-and-drop access
3224 https://bugs.webkit.org/show_bug.cgi?id=30623
3226 Use DataObjectGtk when setting and clearing pasteboard data on
3227 the GDK_SELECTION_PRIMARY clipboard.
3229 * WebCoreSupport/EditorClientGtk.cpp:
3230 (WebKit::EditorClient::respondToChangedSelection):
3231 (WebKit::EditorClient::EditorClient):
3232 * WebCoreSupport/EditorClientGtk.h:
3233 * WebCoreSupport/PasteboardHelperGtk.cpp:
3234 (WebKit::fillSelectionData):
3235 (WebKit::targetListForDataObject):
3236 (WebKit::getClipboardContentsCallback):
3237 (WebKit::clearClipboardContentsCallback):
3238 (WebKit::PasteboardHelperGtk::writeClipboardContents):
3239 * WebCoreSupport/PasteboardHelperGtk.h:
3241 2010-01-14 Alejandro G. Castro <alex@igalia.com>
3243 Reviewed by Xan Lopez.
3245 Review the tooltip implementation
3246 https://bugs.webkit.org/show_bug.cgi?id=32819
3248 Change the GTK tooltip implementation to avoid the workaround that
3249 we are currently using. Now we use a new private API to set the
3250 text and all the tooltip handling is done in the webview widget.
3252 * WebCoreSupport/ChromeClientGtk.cpp:
3253 * webkit/webkitprivate.h:
3254 * webkit/webkitwebview.cpp:
3255 (webkit_web_view_set_tooltip_text): Added, new private API.
3256 (webkit_web_view_query_tooltip): Added
3258 2010-01-09 Gustavo Noronha Silva <gns@gnome.org>
3260 Reviewed by Xan Lopez.
3262 [GTK] couple fixes for signal emissions, and property notifications
3263 https://bugs.webkit.org/show_bug.cgi?id=33428
3265 Fix commitedLoad being called where it should not, causing it to
3266 be called one time too many in some cases. We now match Qt's and
3267 Mac's behavior here.
3269 * WebCoreSupport/FrameLoaderClientGtk.cpp:
3270 (WebKit::FrameLoaderClient::finishedLoading):
3271 * tests/testloading.c:
3272 (load_error_status_changed_cb):
3274 2010-01-08 Gustavo Noronha Silva <gns@gnome.org>
3276 Reviewed by Xan Lopez.
3278 [GTK] loading test should use SoupServer instead of actual sites
3279 https://bugs.webkit.org/show_bug.cgi?id=33353
3281 Make all the loading tests use SoupServer, instead of fetching
3282 stuff from the Internet.
3284 * tests/testloading.c:
3287 (test_loading_status):
3288 (test_loading_error):
3289 (test_loading_cancelled):
3290 (load_wentback_status_changed_cb):
3292 (test_loading_goback):
3295 2010-01-06 Joanmarie Diggs <joanmarie.diggs@gmail.com>
3297 Reviewed by Xan Lopez.
3299 https://bugs.webkit.org/show_bug.cgi?id=30883
3300 [Gtk] Implement AtkText for HTML elements which contain text
3303 (test_webkit_atk_get_text_at_offset):
3304 (test_webkit_atk_get_text_at_offset_forms):
3305 (test_webkit_atk_get_text_at_offset_newlines):
3307 2010-01-05 Gustavo Noronha Silva <gns@gnome.org>
3309 Updated docs for 1.1.18 release.
3311 * docs/webkitgtk-docs.sgml:
3312 * docs/webkitgtk-sections.txt:
3314 2010-01-05 Xan Lopez <xlopez@igalia.com>
3316 Update for 1.1.18 release.
3320 2010-01-04 Maciej Stachowiak <mjs@apple.com>
3322 Reviewed by Darin Fisher.
3324 Reorganize, document and rename OS() platform macros.
3325 https://bugs.webkit.org/show_bug.cgi?id=33198
3327 Adapt to name changes.
3329 * webkit/webkitwebsettings.cpp:
3330 (webkit_get_user_agent):
3332 2010-01-04 Maciej Stachowiak <mjs@apple.com>
3334 Reviewed by Adam Barth.
3336 Reorganize, document and rename CPU() platform macros.
3337 https://bugs.webkit.org/show_bug.cgi?id=33145
3339 * webkit/webkitwebsettings.cpp:
3340 (webkit_get_user_agent):
3342 2009-12-20 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
3344 Reviewed by Xan Lopez.
3346 Remove emission of signal that does not exist.
3348 * WebCoreSupport/InspectorClientGtk.cpp:
3349 (WebKit::InspectorClient::inspectorDestroyed):
3350 (WebKit::InspectorClient::webViewDestroyed):
3352 2009-12-20 Xan Lopez <xlopez@igalia.com>
3354 Reviewed by Gustavo Noronha.
3356 Unset the adjustments in our FrameView when detaching from
3357 parent. Fixes some crashers when transitioning to a new page from
3360 * WebCoreSupport/FrameLoaderClientGtk.cpp:
3361 (WebKit::FrameLoaderClient::detachedFromParent2):
3363 2009-12-20 Xan Lopez <xlopez@igalia.com>
3365 Rubber-stamped by Gustavo Noronha.
3367 Disable the page cache by default since:
3369 - It was previously off by default.
3370 - There are still some issues when enabling it.
3372 * webkit/webkitwebsettings.cpp:
3373 (webkit_web_settings_class_init):
3375 2009-12-20 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
3377 Reviewed by Xan Lopez.
3379 Provides a new API to copy WebKitWebHistoryItem objects.
3381 * webkit/webkitwebhistoryitem.cpp:
3382 (webkit_web_history_item_copy):
3383 * webkit/webkitwebhistoryitem.h:
3385 2009-12-20 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
3387 Reviewed by Xan Lopez.
3389 Make sure we get the URI that is being loaded when updating
3390 WebKitWebFrame's knowledge of it. This was causing problems now
3391 that page cache is enabled.
3393 * WebCoreSupport/FrameLoaderClientGtk.cpp:
3394 (WebKit::FrameLoaderClient::dispatchDidCommitLoad):
3395 * tests/testloading.c:
3396 (load_goback_status_changed_cb):
3397 (load_wentback_status_changed_cb):
3398 (test_loading_goback):
3401 2009-12-20 Alejandro G. Castro <alex@igalia.com>
3403 Reviewed by Xan Lopez.
3405 [GTK] Cache control APIs
3406 https://bugs.webkit.org/show_bug.cgi?id=24001
3408 Original patch by Bobby Powers <bobby@laptop.org>
3410 Added new API to specify cache models for GTK port.
3412 * webkit/webkitprivate.cpp:
3413 (webkit_init): set a default cache model.
3414 * webkit/webkitwebview.cpp:
3415 * webkit/webkitwebview.h:
3416 (webkit_set_cache_model): Added function.
3417 (webkit_get_cache_model): Added function.
3419 2009-12-20 Xan Lopez <xlopez@igalia.com>
3421 Revert the previous patch, it introduces some failures in the
3424 * WebCoreSupport/FrameLoaderClientGtk.cpp:
3425 (WebKit::FrameLoaderClient::committedLoad):
3426 (WebKit::FrameLoaderClient::transitionToCommittedForNewPage):
3428 2009-12-20 Xan Lopez <xlopez@igalia.com>
3430 Reviewed by Gustavo Noronha.
3432 [GTK] crash when loading new page
3433 https://bugs.webkit.org/show_bug.cgi?id=32752
3435 Wait until the document is attached to adjust our alignments,
3436 since we need to make sure the FrameView in the document content
3437 render object matches the newly created FrameView for the new
3438 page, otherwise we'll try to relayout the wrong view.
3440 * WebCoreSupport/FrameLoaderClientGtk.cpp:
3441 (WebKit::FrameLoaderClient::committedLoad):
3442 (WebKit::FrameLoaderClient::transitionToCommittedForNewPage):
3444 2009-12-20 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
3446 Reviewed by Xan Lopez.
3448 Create a new WebKitDataSource object when attaching to a frame, if
3449 one does not exist. This may happen when we are fetching data from
3452 * WebCoreSupport/DocumentLoaderGtk.cpp:
3453 (WebKit::DocumentLoader::attachToFrame):
3454 (WebKit::DocumentLoader::unrefDataSource):
3456 2009-12-20 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
3458 Rubber-stamped by Xan Lopez.
3460 Make sure the text encoding machinery is initialized from the main
3461 frame, before opening the icon database.
3463 * webkit/webkitprivate.cpp:
3466 2009-12-19 Alejandro G. Castro <alex@igalia.com>
3468 Reviewed by Xan Lopez.
3470 Fixed the problem when pasting in the same window with the
3471 middle-button, now we store a reference to the range instead of
3472 requesting it every time, and we do not release it until the
3473 clipboard is requested.
3474 https://bugs.webkit.org/show_bug.cgi?id=28153
3476 * WebKit/gtk/WebCoreSupport/EditorClientGtk.cpp:
3477 * WebKit/gtk/WebCoreSupport/EditorClientGtk.h:
3479 2009-12-19 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
3481 Reviewed by Xan Lopez.
3483 Protect download objects when reporting errors, to make sure the
3484 download stays alive between the status change notification, and
3485 the error signal emission.
3487 * webkit/webkitdownload.cpp:
3488 (webkit_download_error):
3490 2009-12-18 Xan Lopez <xlopez@igalia.com>
3492 Reviewed by Gustavo Noronha.
3494 Fix gtk-doc of webkit_web_resource_new.
3496 * webkit/webkitwebresource.cpp:
3498 2009-12-18 Adam Roben <aroben@apple.com>
3502 * webkit/webkitprivate.cpp: Added #include.
3504 2009-12-18 Kalle Vahlman <kalle.vahlman@movial.com> and Alejandro G. Castro <alex@igalia.com>
3506 Reviewed by Gustavo Noronha Silva.
3508 [GTK] Add enable-page-cache property to WebSettings for disabling the Page Cache
3510 * webkit/webkitwebsettings.cpp:
3511 (_WebKitWebSettingsPrivate::):
3512 (_WebKitWebSettingsPrivate::webkit_web_settings_class_init):
3513 (_WebKitWebSettingsPrivate::webkit_web_settings_set_property):
3514 (_WebKitWebSettingsPrivate::webkit_web_settings_get_property):
3515 (_WebKitWebSettingsPrivate::webkit_web_settings_copy):
3516 * webkit/webkitwebview.cpp:
3518 2009-12-17 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
3520 Reviewed by Xan Lopez.
3522 More make distcheck fixes. Use a more robust solution to making
3523 sure we are in the correct directory for running these tests.
3525 * tests/testmimehandling.c:
3527 * tests/testwebview.c:
3530 2009-12-17 Christian Dywan <christian@twotoasts.de>
3532 Reviewed by Gustavo Noronha Silva.
3534 [GTK] Don't assume downloads are always synchronous
3535 http://bugs.webkit.org/show_bug.cgi?id=32359
3537 * tests/testdownload.c:
3538 (download_requested_cb):
3540 (test_webkit_download_perform):
3541 (test_webkit_download_synch):
3542 (test_webkit_download_asynch):
3543 (main): Test downloads synchronously and asynchronously.
3544 * webkit/webkitwebview.cpp:
3545 (webkit_web_view_class_init):
3546 (webkit_web_view_request_download): Only try to start a requested
3547 download if the destination URI is set and clarify the documentation.
3549 2009-12-17 Christian Dywan <christian@twotoasts.de>
3551 Reviewed by Xan Lopez.
3553 Deprecate the title-changed signal of WebKitWebFrame.
3555 * webkit/webkitwebframe.cpp:
3556 (webkit_web_frame_class_init):
3558 2009-12-17 Martin Robinson <martin.james.robinson@gmail.com>
3560 Reviewed by Gustavo Noronha Silva.
3562 [GTK] WebKit GTK needs a wrapper for ref counted glib/gobject structs
3563 https://bugs.webkit.org/show_bug.cgi?id=21599
3565 Convert a use of GOwnPtr for a reference counted type to GRefPtr.
3567 * WebCoreSupport/FrameLoaderClientGtk.cpp:
3568 (WebKit::FrameLoaderClient::createPlugin):
3570 2009-12-17 Evan Martin <evan@chromium.org>
3572 Reviewed by Xan Lopez.
3574 Expose the page workarounds ("quirks") setting to the GTK+ WebKit API.
3576 * webkit/webkitwebsettings.cpp:
3577 (webkit_web_settings_class_init):
3578 (webkit_web_settings_set_property):
3579 (webkit_web_settings_get_property):
3580 (webkit_web_settings_copy):
3581 * webkit/webkitwebview.cpp:
3582 (webkit_web_view_update_settings):
3584 2009-12-16 Dan Winship <danw@gnome.org>
3586 Reviewed by Gustavo Noronha Silva.
3588 Content-Encoding support
3590 https://bugs.webkit.org/show_bug.cgi?id=522772
3592 * webkit/webkitprivate.cpp:
3593 (webkit_init): add a SoupContentDecoder feature to the session
3595 2009-12-16 Christian Dywan <christian@twotoasts.de>
3597 Reviewed by Gustavo Noronha Silva.
3599 Deprecate the old loading signals load-started, load-committed,
3600 load-finished, load-progress-changed and change unit tests to use
3601 load-status instead.
3603 * tests/testmimehandling.c:
3604 (idle_quit_loop_cb):
3605 (test_mime_type): use notify::load-status
3606 * tests/testwebdatasource.c:
3607 (notify_load_status_unreachable_cb):
3608 (notify_load_status_cb):
3609 (test_webkit_web_data_source):
3610 (test_webkit_web_data_source_unreachable_uri): Remove uses of
3611 g_main_loop_is_running. It's an error if the loop is wrongly terminated.
3612 * tests/testwebresource.c:
3613 (notify_load_status_cb):
3614 (test_web_resource_loading):
3615 (notify_load_status_sub_cb):
3616 (test_web_resource_sub_resource_loading): use notify::load-status
3617 * tests/testwebview.c:
3618 (idle_quit_loop_cb):
3619 (test_webkit_web_view_icon_uri):
3620 * tests/testwindow.c:
3621 (notify_load_status_cb):
3622 (test_webkit_window_scrollbar_policy): use notify::load-status
3623 * webkit/webkitwebframe.cpp:
3624 (webkit_web_frame_class_init):
3625 * webkit/webkitwebview.cpp:
3626 (webkit_web_view_class_init): Deprecate old load signals.
3628 2009-12-16 Christian Dywan <christian@twotoasts.de>
3630 Reviewed by Gustavo Noronha Silva.
3632 Take into account favicon.ico in the webresource test.
3634 * tests/testwebresource.c:
3635 (test_web_resource_sub_resource_loading):
3637 2009-12-16 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
3639 Rubber-stamped by Xan Lopez.
3641 Add tab_key_cycles_through_elements to copies of
3644 * webkit/webkitwebsettings.cpp:
3645 (webkit_web_settings_copy):
3647 2009-12-16 Martin Robinson <martin.james.robinson@gmail.com>
3649 Reviewed by Gustavo Noronha Silva.
3651 [GTK] webkit_web_navigation_action_get_button() documentation
3652 https://bugs.webkit.org/show_bug.cgi?id=25555
3654 Small documentation improvement for webkit_web_navigation_action_get_button.
3656 * webkit/webkitwebnavigationaction.cpp:
3658 2009-12-13 Sam Weinig <sam@webkit.org>
3660 Reviewed by Dan Bernstein.
3662 Fix for https://bugs.webkit.org/show_bug.cgi?id=32499
3663 Add client based Geolocation provider
3665 Add first cut of a client based Geolocation provider. This is guarded by
3666 ENABLE(CLIENT_BASED_GEOLOCATION) and is off by default for now. This adds a
3667 GeolocationControllerClient interface that no-one currently implements,
3668 but will in a subsequent patch.
3670 * webkit/webkitwebview.cpp:
3671 (webkit_web_view_init):
3673 2009-12-14 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
3675 Reviewed by Xan Lopez.
3677 New setting to allow applications to completely suppress the
3678 default context menu that is generated by WebKit. This allows them
3679 to still pass the event to the default handler without needing to
3680 use ugly hacks such as handling populate-popup, and removing all
3681 the items from the default context menu.
3683 * webkit/webkitwebsettings.cpp:
3684 (webkit_web_settings_class_init):
3685 (webkit_web_settings_set_property):
3686 (webkit_web_settings_get_property):
3687 (webkit_web_settings_copy):
3688 * webkit/webkitwebview.cpp:
3689 (webkit_web_view_forward_context_menu_event):
3691 2009-12-13 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
3693 Reviewed by Xan Lopez.
3695 Also give the right click event to the frame's event handler, if
3696 there WebCore decides to not generate the default context
3697 menu. This fixes some pages that handle right-button clicks for
3698 things other than context menu creation.
3700 * webkit/webkitwebview.cpp:
3701 (webkit_web_view_forward_context_menu_event):
3703 2009-12-13 Christian Dywan <christian@twotoasts.de>
3705 Reviewed by Holger Freyther.
3707 http://bugs.webkit.org/show_bug.cgi?id=31014
3708 [Gtk] Build fails with gtk+-2.10 (no tested with older releases)
3710 Guard GTK+ 2.12 specific tooltip code with #ifdef.
3712 * WebCoreSupport/ChromeClientGtk.cpp:
3713 (WebKit::ChromeClient::mouseDidMoveOverElement):
3715 2009-12-11 Christian Dywan <christian@twotoasts.de>
3717 Reviewed by Eric Seidel.
3719 [GTK] Build with --disable-svg is broken
3720 http://bugs.webkit.org/show_bug.cgi?id=32361
3722 * webkit/webkitwebframe.cpp:
3723 (webkit_web_frame_pause_svg_animation): Fix ENABLE(SVG) guards.
3725 2009-12-10 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
3727 Reviewed by Xan Lopez.
3729 Add a missing null-check, that is causing some crash reports.
3731 * WebCoreSupport/FrameLoaderClientGtk.cpp:
3732 (WebKit::FrameLoaderClient::committedLoad):
3734 2009-12-10 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
3736 Reviewed by Xan Lopez.
3738 [GTK] Should provide an API to control the IconDatabase
3739 https://bugs.webkit.org/show_bug.cgi?id=32334
3741 First step towards a full IconDatabase API. This provides
3742 notification for pages with favicons, and lets clients handle
3745 * WebCoreSupport/FrameLoaderClientGtk.cpp:
3746 (WebKit::FrameLoaderClient::registerForIconNotification):
3747 (WebKit::FrameLoaderClient::dispatchDidReceiveIcon):
3748 * tests/resources/blank.ico: Added.
3749 * tests/testwebview.c: Added.
3751 (idle_quit_loop_cb):
3752 (icon_uri_changed_cb):
3754 (test_webkit_web_view_icon_uri):
3756 * webkit/webkitprivate.cpp:
3757 (closeIconDatabaseOnExit):
3759 * webkit/webkitprivate.h:
3760 * webkit/webkitwebview.cpp:
3761 (webkit_web_view_get_property):
3762 (webkit_web_view_finalize):
3763 (webkit_web_view_class_init):
3764 (webkit_web_view_get_icon_uri):
3765 * webkit/webkitwebview.h:
3767 2009-12-08 Christian Dywan <christian@twotoasts.de>
3769 Reviewed by Gustavo Noronha Silva.
3771 Point out the meaning of "Content-Disposition" when implementing the
3772 mime-type-policy-decision-requested signal.
3774 * webkit/webkitwebview.cpp:
3775 (webkit_web_view_class_init):
3777 2009-12-07 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
3779 Reviewed by Xan Lopez.
3781 [GTK] Doesn't respect Content-Disposition for downloads, and provides no way for apps to do that
3782 https://bugs.webkit.org/show_bug.cgi?id=32247
3784 Provide a way for applications to respect Content-Disposition, by
3785 fetching the WebKitNetworkResponse from the frame during
3786 mime-type-policy-decision-requested.
3788 * WebCoreSupport/FrameLoaderClientGtk.cpp:
3789 (WebKit::FrameLoaderClient::dispatchDecidePolicyForMIMEType): Download
3790 content when Content-Disposition is attachment.
3791 * tests/testmimehandling.c:
3793 (mime_type_policy_decision_requested_cb):
3794 * tests/testwebframe.c:
3795 (test_webkit_web_frame_response):
3797 * webkit/webkitprivate.cpp:
3799 * webkit/webkitwebframe.cpp:
3800 (webkit_web_frame_get_network_response):
3801 * webkit/webkitwebframe.h:
3803 2009-12-07 Gyuyoung Kim <gyuyoung@gmail.com>
3805 Reviewed by Eric Seidel.
3807 https://bugs.webkit.org/show_bug.cgi?id=32024
3808 [GTK] WebKit does not compile without JAVASCRIPT_DEBUGGER
3810 Fix build errors when javascript-debugger is disabled on GTK
3812 * webkit/webkitwebinspector.cpp:
3813 (webkit_web_inspector_set_property):
3814 (webkit_web_inspector_get_property):
3816 2009-12-07 Joanmarie Diggs <joanmarie.diggs@gmail.com>
3818 Reviewed by Xan Lopez.
3820 https://bugs.webkit.org/show_bug.cgi?id=25415
3821 [GTK][ATK] Please implement support for get_text_at_offset
3823 Eliminate the segfaults which occur when accessing the text interface now
3824 implemented by text controls.
3827 (test_webkit_atk_get_text_at_offset_textarea):
3828 (test_webkit_atk_get_text_at_offset_text_input):
3831 2009-12-06 Gustavo Noronha Silva <gns@gnome.org>
3833 Reviewed by Xan Lopez.
3835 New test to make sure we do not regress this feature anymore. All
3836 test files were created by me.
3838 [GTK] REGRESSION: webkit thinks it can render PDFs
3839 https://bugs.webkit.org/show_bug.cgi?id=32183
3841 * tests/resources/test.html: Added.
3842 * tests/resources/test.ogg: Added.
3843 * tests/resources/test.pdf: Added.
3844 * tests/resources/test.txt: Added.
3845 * tests/testmimehandling.c: Added.
3847 (idle_quit_loop_cb):
3848 (mime_type_policy_decision_requested_cb):
3856 2009-12-05 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
3858 Reviewed by Xan Lopez.
3860 Use a better URI for the unreachable test. localhost:80 is very
3863 * tests/testwebdatasource.c:
3864 (load_finished_unreachable_cb):
3865 (test_webkit_web_data_source_unreachable_uri):
3867 2009-12-03 Brady Eidson <beidson@apple.com>
3869 Reviewed by Sam Weinig.
3871 <rdar://problem/7214236> and http://webkit.org/b/32052 - Implement HTML5 state object history API
3873 * WebCoreSupport/FrameLoaderClientGtk.cpp:
3874 (WebKit::FrameLoaderClient::dispatchDidPushStateWithinPage):
3875 (WebKit::FrameLoaderClient::dispatchDidReplaceStateWithinPage):
3876 (WebKit::FrameLoaderClient::dispatchDidPopStateWithinPage):
3877 * WebCoreSupport/FrameLoaderClientGtk.h:
3879 2009-12-03 Pavel Feldman <pfeldman@dhcp-172-28-174-220.spb.corp.google.com>
3881 Reviewed by Timothy Hatcher.
3883 Web Inspector: Simplify the settings support in inspector controller.
3885 https://bugs.webkit.org/show_bug.cgi?id=32076
3887 * WebCoreSupport/InspectorClientGtk.cpp:
3888 (WebKit::InspectorClient::populateSetting):
3889 (WebKit::InspectorClient::storeSetting):
3890 * WebCoreSupport/InspectorClientGtk.h:
3892 2009-12-03 Ben Murdoch <benm@google.com>
3894 Reviewed by Brady Eidson.
3896 [Android] The FrameLoaderClient is unaware of BackForwardList changes.
3897 https://bugs.webkit.org/show_bug.cgi?id=31914
3899 * WebCoreSupport/FrameLoaderClientGtk.cpp:
3900 (WebKit::FrameLoaderClient::dispatchDidAddBackForwardItem): Add an empty implementation. Method added to FrameLoaderClient by Android (see bug).
3901 (WebKit::FrameLoaderClient::dispatchDidRemoveBackForwardItem): ditto.
3902 (WebKit::FrameLoaderClient::dispatchDidChangeBackForwardIndex): ditto.
3903 * WebCoreSupport/FrameLoaderClientGtk.h:
3905 2009-12-01 Nikolas Zimmermann <nzimmermann@rim.com>
3907 Reviewed by Simon Fraser.
3909 Add SVG animation test framework with 'snapshot' functionality
3910 https://bugs.webkit.org/show_bug.cgi?id=31897
3912 Add API used by the new 'sampleSVGAnimationForElementAtTime' DRT method,
3913 forwarding the call to SVGDocumentExtensions, if SVG is enabled.
3915 Implemented just like the existing pauseAnimation* methods for CSS animations.
3917 * webkit/webkitprivate.h:
3918 * webkit/webkitwebframe.cpp:
3919 (webkit_web_frame_pause_svg_animation):
3921 2009-11-30 Xan Lopez <xlopez@igalia.com>
3923 Reviewed by Gustavo Noronha.
3925 Prepare for 1.1.17 release.
3928 * docs/webkitgtk-docs.sgml:
3929 * docs/webkitgtk-sections.txt:
3930 * webkit/webkitwebsettings.cpp:
3931 (webkit_web_settings_class_init):
3933 2009-11-26 Laszlo Gombos <laszlo.1.gombos@nokia.com>
3935 Reviewed by Oliver Hunt.
3937 Move GOwnPtr* from wtf to wtf/gtk
3938 https://bugs.webkit.org/show_bug.cgi?id=31793
3940 * webkit/webkitwebview.cpp: Change the path for GOwnPtr.h.
3942 2009-11-24 Joanmarie Diggs <joanmarie.diggs@gmail.com>
3944 Reviewed by Xan Lopez.
3946 https://bugs.webkit.org/show_bug.cgi?id=25415
3947 [GTK][ATK] Please implement support for get_text_at_offset
3949 When building up the pango layout from text boxes, only append a
3950 newline char after verifying there are no more boxes on this line.
3953 (test_webkit_atk_get_text_at_offset_newlines):
3956 2009-11-19 Pavel Feldman <pfeldman@chromium.org>
3958 Reviewed by Gustavo Noronha Silva.
3960 Web Inspector: Implement "show inspector" in WebKit GTK
3961 API and enable console tests.
3963 https://bugs.webkit.org/show_bug.cgi?id=31669
3965 * webkit/webkitwebinspector.cpp:
3966 (webkit_web_inspector_show):
3967 * webkit/webkitwebinspector.h:
3969 2009-11-18 Martin Robinson <martin.james.robinson@gmail.com>
3971 Reviewed by Gustavo Noronha.
3973 [GTK] Tab key does not cycle through elements by default
3974 https://bugs.webkit.org/show_bug.cgi?id=31505
3976 Properly localize documentation strings for the
3977 tab-key-cycles-through-elements property.
3979 * webkit/webkitwebsettings.cpp:
3980 (webkit_web_settings_class_init):
3982 2009-11-17 Martin Robinson <martin.james.robinson@gmail.com>
3984 Reviewed by Gustavo Noronha.
3986 [GTK] Tab key does not cycle through elements by default
3987 https://bugs.webkit.org/show_bug.cgi?id=31505
3989 Ensure that WebKitWebSettings tab-key-cycles-through-elements
3990 property is true by default with the G_PARAM_CONSTRUCT_FLAG.
3992 * webkit/webkitwebsettings.cpp:
3993 (webkit_web_settings_class_init):
3995 2009-11-18 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
3997 Reviewed by Xan Lopez.
3999 [GTK] Failing test media/video-document-types.html
4000 https://bugs.webkit.org/show_bug.cgi?id=31352
4002 Match what Mac has been doing since r36001: cancel the main load,
4003 and handle failures caused by 'will be handled by plugin' errors.
4005 Covered by test media/video-document-types.html
4007 * WebCoreSupport/FrameLoaderClientGtk.cpp:
4008 (WebKit::FrameLoaderClient::committedLoad):
4009 (WebKit::FrameLoaderClient::shouldFallBack):
4011 2009-11-17 Pavel Feldman <pfeldman@chromium.org>
4013 Reviewed by Timothy Hatcher.
4015 Web Inspector: Make DRT show web inspector for tests in inspector/ folder.
4016 - Updated DRT to show/close inspector for all tests under /inspector
4017 - Introduced LayoutTestController::setTimelineProfilingEnabled and
4018 WebInspector::setTimelineProfilingEnabled beside setJavaScriptProfilingEnabled
4019 - Removed reload on each inspector test
4020 - Renamed fast/inspector to fast/inspector-support in order not to trigger
4021 inspector for those.
4022 - Reimplemented timeline tests in order to get rid of reload there.
4023 - Moved tests that don't require harness into the fast group.
4025 https://bugs.webkit.org/show_bug.cgi?id=31472
4027 * webkit/webkitwebinspector.cpp:
4028 (webkit_web_inspector_class_init):
4029 (webkit_web_inspector_set_property):
4030 (webkit_web_inspector_get_property):
4032 2009-11-13 Adam Roben <aroben@apple.com>
4034 Update for changes to FrameLoaderClient
4036 Fixes <http://webkit.org/b/31124> Tell the WebFrameLoadDelegate when
4037 window objects in isolated worlds are cleared
4039 Reviewed by Dave Hyatt.
4041 * WebCoreSupport/FrameLoaderClientGtk.cpp:
4042 (WebKit::FrameLoaderClient::dispatchDidClearWindowObjectInWorld):
4043 * WebCoreSupport/FrameLoaderClientGtk.h:
4044 Replaced windowObjectCleared with this function. Does nothing if the
4045 passed-in world is not the mainThreadNormalWorld().
4047 2009-11-12 Shinichiro Hamaji <hamaji@chromium.org>
4049 Reviewed by Darin Adler.
4051 externalRepresentation should take Frame as the argument
4052 https://bugs.webkit.org/show_bug.cgi?id=31393
4054 No new tests as this is just a refactoring.
4056 * webkit/webkitwebframe.cpp:
4057 (webkit_web_frame_dump_render_tree):
4059 2009-11-11 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
4061 Reviewed by Holger Freyther.
4063 Should not print javascript console messages to stdout
4064 https://bugs.webkit.org/show_bug.cgi?id=31346
4066 * webkit/webkitwebview.cpp:
4067 (webkit_web_view_real_console_message): Print console messages to
4068 stderr instead, using the recommended method (a g_log variant).
4070 2009-11-11 Philippe Normand <pnormand@igalia.com>
4072 Reviewed by Xan Lopez.
4074 https://bugs.webkit.org/show_bug.cgi?id=30221
4075 [GTK] fails to load media embedded in iframe element
4077 The FrameLoader can show Media if the audio/video support is
4078 enabled at compile time.
4080 * WebCoreSupport/FrameLoaderClientGtk.cpp:
4081 (WebKit::FrameLoaderClient::canShowMIMEType):
4083 2009-11-10 Martin Robinson <martin.james.robinson@gmail.com>
4085 Reviewed by Jan Alonzo.
4087 [GTK] Remove WebSocket configuration from WebKitWebSettings
4088 https://bugs.webkit.org/show_bug.cgi?id=31244
4090 Remove non-functional enable-web-sockets property from WebKitWebSettings.
4092 * webkit/webkitwebsettings.cpp:
4093 (webkit_web_settings_class_init):
4094 (webkit_web_settings_set_property):
4095 (webkit_web_settings_get_property):
4096 (webkit_web_settings_copy):
4098 2009-11-09 Martin Robinson <martin.james.robinson@gmail.com>
4100 Reviewed by Jan Alonzo.
4102 [GTK] Expose Page::tabKeyCyclesThroughElements in the API
4103 https://bugs.webkit.org/show_bug.cgi?id=30482
4105 Expose Page::tabKeyCyclesThroughElements as a property of
4108 * webkit/webkitwebsettings.cpp:
4109 (webkit_web_settings_class_init):
4110 (webkit_web_settings_set_property):
4111 (webkit_web_settings_get_property):
4112 * webkit/webkitwebview.cpp:
4113 (webkit_web_view_update_settings):
4114 (webkit_web_view_settings_notify):
4116 2009-11-04 Martin Robinson <martin.james.robinson@gmail.com>
4118 Reviewed by Jan Alonzo.
4120 [GTK] Enable DOM clipboard and drag-and-drop access
4121 https://bugs.webkit.org/show_bug.cgi?id=30623
4123 Move handling of target list to PasteboardHelperGtk.
4125 * WebCoreSupport/PasteboardHelperGtk.cpp:
4126 (WebKit::PasteboardHelperGtk::PasteboardHelperGtk):
4127 (WebKit::PasteboardHelperGtk::~PasteboardHelperGtk):
4128 (WebKit::PasteboardHelperGtk::fullTargetList):
4129 * WebCoreSupport/PasteboardHelperGtk.h:
4130 * webkit/webkitprivate.cpp:
4131 (WebKit::pasteboardHelperInstance):
4133 * webkit/webkitprivate.h:
4134 * webkit/webkitwebview.cpp:
4135 (webkit_web_view_dispose):
4136 (webkit_web_view_init):
4137 (webkit_web_view_get_copy_target_list):
4138 (webkit_web_view_get_paste_target_list):
4140 2009-10-30 Evan Stade <estade@chromium.org>
4142 Reviewed by David Levin.
4144 Notify the chrome when the focused node has changed.
4145 https://bugs.webkit.org/show_bug.cgi?id=30832
4147 Added stub implementation for new ChromeClient function.
4149 * WebCoreSupport/ChromeClientGtk.cpp:
4150 (WebKit::ChromeClient::focusedNodeChanged):
4151 * WebCoreSupport/ChromeClientGtk.h:
4153 2009-10-29 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
4155 Unreviewed. Trivial fix - move public API declaration into the
4156 public subsection of the doc.
4158 * docs/webkitgtk-sections.txt:
4160 2009-10-28 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
4162 Reviewed by Jan Alonzo.
4164 [GTK] API to start inspector for a WebView
4165 https://bugs.webkit.org/show_bug.cgi?id=22551
4167 Provide a simple, coordinates-based API to start the inspector.
4169 * WebCoreSupport/InspectorClientGtk.cpp:
4170 (WebKit::InspectorClient::createPage): Use files from the source
4171 tree when running from the top of the source directory.
4172 (WebKit::InspectorClient::localizedStringsURL): Ditto.
4173 * webkit/webkitprivate.h:
4174 * webkit/webkitwebinspector.cpp:
4175 (webkit_web_inspector_inspect_coordinates):
4176 (webkit_web_inspector_close):
4177 (webkit_web_inspector_execute_script):
4178 * webkit/webkitwebinspector.h:
4180 2009-10-27 Shinichiro Hamaji <hamaji@chromium.org>
4182 Reviewed by Darin Adler.
4184 Provide a way to get counter values with layoutTestContoller
4185 https://bugs.webkit.org/show_bug.cgi?id=30555
4187 * webkit/webkitprivate.h:
4188 * webkit/webkitwebframe.cpp:
4189 (webkit_web_frame_counter_value_for_element_by_id):
4191 2009-10-28 Joe Mason <jmason@rim.com>
4193 Reviewed by Adam Treat.
4195 Call the shared FrameLoader::defaultObjectContentType instead of
4196 copying code into FrameLoaderClient::objectContentType. This causes no
4199 * WebCoreSupport/FrameLoaderClientGtk.cpp:
4200 (WebKit::FrameLoaderClient::objectContentType):
4202 2009-10-28 Xan Lopez <xlopez@igalia.com>
4204 Reviewed by Jan Alonzo.
4206 [Gtk] Extraneous object of ROLE_PANEL in hierarchy for entries
4207 https://bugs.webkit.org/show_bug.cgi?id=25897
4209 Update test to also check that entries implement the AtkText
4213 (run_get_text_tests):
4214 (test_webkit_atk_get_text_at_offset_forms):
4215 (test_webkit_atk_get_text_at_offset):
4218 2009-10-26 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
4220 Unreviewed. Update documentation control files for 1.1.16.
4222 * docs/webkitgtk-docs.sgml:
4223 * docs/webkitgtk-sections.txt:
4225 2009-10-26 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
4227 Reviewed by Xan Lopez.
4229 https://bugs.webkit.org/show_bug.cgi?id=30759
4230 [GTK] Should use WebKitNetworkResponse, and expose it
4232 WebKitDownload now uses our WebKitNetworkResponse instead of using
4233 ResourceResponse directly. By exposing the response, like we do
4234 with the request, we give our users the ability to look at the
4235 response headers, status code, and so on, through the SoupMessage
4238 * webkit/webkitdownload.cpp:
4239 (webkit_download_dispose):
4240 (webkit_download_finalize):
4241 (webkit_download_get_property):
4242 (webkit_download_set_property):
4243 (webkit_download_class_init):
4244 (webkit_download_get_network_response):
4245 (webkit_download_set_response):
4246 (webkit_download_get_total_size):
4247 (webkit_download_get_progress):
4248 (webkit_download_received_data):
4249 * webkit/webkitdownload.h:
4251 2009-10-26 Xan Lopez <xlopez@igalia.com>
4253 Reviewed by Gustavo Noronha.
4255 Update for 1.1.16 release.
4259 2009-10-22 Gavin Barraclough <barraclough@apple.com>
4261 Reviewed by NOBODY (build fix).
4262 Build fix following bug #30696.
4264 * WebCoreSupport/FrameLoaderClientGtk.cpp:
4265 (WebKit::FrameLoaderClient::windowObjectCleared):
4266 * webkit/webkitwebframe.cpp:
4267 (webkit_web_frame_get_global_context):
4269 2009-10-22 Alejandro G. Castro <alex@igalia.com>
4271 Reviewed by Xan Lopez.
4273 m_webView should be private attribute of the EditorClientGtk.
4274 https://bugs.webkit.org/show_bug.cgi?id=30664
4276 * WebKit/gtk/WebCoreSupport/EditorClientGtk.h:
4278 2009-10-20 Fumitoshi Ukai <ukai@chromium.org>
4280 Reviewed by David Levin.
4282 Removed WebSocket runtime settings.
4283 https://bugs.webkit.org/show_bug.cgi?id=29896
4285 WebSocket runtime configuration is supported by chromium/v8 only.
4287 * webkit/webkitwebview.cpp:
4288 (webkit_web_view_update_settings):
4289 (webkit_web_view_settings_notify):
4291 2009-10-19 Jan Michael Alonzo <jmalonzo@webkit.org>
4293 Reviewed by Alexey Proskuryakov.
4295 [Gtk] ApplicationCacheStorage error while compiling WebKit/gtk/webkit/webkitapplicationcache.cpp
4296 https://bugs.webkit.org/show_bug.cgi?id=30358
4298 Guard calls to cacheStorage() with ENABLE(OFFLINE_WEB_APPLICATIONS).
4300 * webkit/webkitapplicationcache.cpp:
4302 2009-10-19 Zan Dobersek <zandobersek@gmail.com>
4304 Reviewed by Gustavo Noronha.
4306 Add a settings to allow DOM pastes to be performed.
4308 * webkit/webkitwebsettings.cpp:
4309 (webkit_web_settings_class_init):
4310 (webkit_web_settings_set_property):
4311 (webkit_web_settings_get_property):
4312 (webkit_web_settings_copy):
4313 * webkit/webkitwebview.cpp:
4314 (webkit_web_view_update_settings):
4315 (webkit_web_view_settings_notify):
4317 2009-10-19 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
4319 Unreviewed. Make WebKitHitTestResult actually appear in the
4320 documentation index.
4322 * docs/webkitgtk-docs.sgml:
4324 2009-10-15 Xan Lopez <xlopez@igalia.com>
4326 Reviewed by Gustavo Noronha.
4328 Protect WebSocket calls in case the feature is not compiled in.
4330 * webkit/webkitwebview.cpp:
4331 (webkit_web_view_update_settings):
4332 (webkit_web_view_settings_notify):
4334 2009-10-15 Zan Dobersek <zandobersek@gmail.com>
4336 Reviewed by Gustavo Noronha.
4338 Add a settings to enable support for experimental Web Sockets.
4339 Currently this comes in handy in layout tests.
4341 * webkit/webkitwebsettings.cpp:
4342 (webkit_web_settings_class_init):
4343 (webkit_web_settings_set_property):
4344 (webkit_web_settings_get_property):
4345 (webkit_web_settings_copy):
4346 * webkit/webkitwebview.cpp:
4347 (webkit_web_view_update_settings):
4348 (webkit_web_view_settings_notify):
4350 2009-10-15 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
4352 Reviewed by Xan Lopez.
4354 page transition may crash webkit
4355 https://bugs.webkit.org/show_bug.cgi?id=29890
4357 There are actually cases in which a resource may be asked using
4358 webkit_web_view_get_resource after a new load has already been
4359 started, so protect ourselves from crashes in this case.
4361 * WebCoreSupport/FrameLoaderClientGtk.cpp:
4362 (WebKit::FrameLoaderClient::dispatchDidFinishLoading):
4363 * webkit/webkitwebview.cpp:
4364 (webkit_web_view_get_resource):
4366 2009-10-12 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
4368 Rubber-stamped by Xan Lopez.
4370 Remove unnecessary self-include.
4372 * webkit/webkitsecurityorigin.h:
4374 2009-10-12 Christian Dywan <christian@twotoasts.de>
4376 Reviewed by Gustavo Noronha.
4378 [GTK] Crash when right-clicking misspelled word
4379 https://bugs.webkit.org/show_bug.cgi?id=29772
4381 Make sure the dictionary exist before adding it to the list of