1 2010-07-12 Xan Lopez <xlopez@igalia.com>
3 Reviewed by Gustavo Noronha.
9 2010-07-12 Xan Lopez <xlopez@igalia.com>
11 Reviewed by Gustavo Noronha.
13 Fix compilation with sealed GTK+.
15 * webkit/webkitwebview.cpp:
16 (webkit_web_view_drag_motion):
17 (webkit_web_view_drag_data_received):
18 (webkit_web_view_drag_drop):
20 2010-07-11 Martin Robinson <mrobinson@igalia.com>
22 Reviewed by Xan Lopez.
24 [GTK] WebKitWebView should support drops
25 https://bugs.webkit.org/show_bug.cgi?id=39843
27 Add support for dropping content onto GTK+ WebViews.
29 * webkit/webkitprivate.h:
30 Add a DroppingContext struct to keep track of drop data while the drop is
31 in progress. Have WebKitWebView keep a map of GdkDragContexts to DroppingContexts.
32 * webkit/webkitwebview.cpp: Add necessary includes and globalPointForClientPoint helper.
33 (webkit_web_view_popup_menu_handler): Use globalPointForClientPoint helper.
34 (webkit_web_view_dispose): Properly clean up droppingContexts member.
35 (webkit_web_view_finalize): Delete droppingContext member.
36 (globalPointForClientPoint): Added.
37 (doDragLeaveLater): Added.
38 (webkit_web_view_drag_leave): Added.
39 (webkit_web_view_drag_motion): Added.
40 (webkit_web_view_drag_data_received): Added.
41 (webkit_web_view_drag_drop): Added.
42 (webkit_web_view_class_init): Connect new drop signal handlers to the widget definition.
43 (webkit_web_view_init): Set up the widget as a drop destination and initialize droppingContexts.
45 2010-07-07 Sam Weinig <sam@webkit.org>
47 Reviewed by Anders Carlsson.
49 Patch for https://bugs.webkit.org/show_bug.cgi?id=41772
50 Add basic piping for BackForwardControllerClient.
52 * webkit/webkitwebview.cpp:
53 (webkit_web_view_init):
55 2010-06-19 Ilya Tikhonovsky <loislo@chromium.org>
57 Reviewed by Yury Semikhatsky.
59 WebInspector: js function name was fixed.
60 dispatchMessageToFrontend -> dispatchMessageFromBackend.
61 https://bugs.webkit.org/show_bug.cgi?id=40675
63 * WebCoreSupport/InspectorClientGtk.cpp:
64 (WebKit::InspectorClient::sendMessageToFrontend):
66 2010-06-23 Martin Robinson <mrobinson@igalia.com>
68 Reviewed by Gustavo Noronha Silva.
70 [GTK] Separate DerivedSources per-project
71 https://bugs.webkit.org/show_bug.cgi?id=41109
73 Separate WebKitGTK+ DerivedSources into per-project subdirectories to prepare
74 for properly building WebKit2.
76 * webkitmarshal.list: Touch this file to force a rebuild of the marshaling code.
78 2010-07-01 Xan Lopez <xlopez@igalia.com>
80 Reviewed by Gustavo Noronha.
82 [GTK] Stop using GdkRegion in 3.x mode
83 https://bugs.webkit.org/show_bug.cgi?id=41463
85 Make us compile without using GdkRegion, since it's gone from GTK+
88 * WebCoreSupport/ChromeClientGtk.cpp:
89 (WebKit::ChromeClient::scroll):
90 * webkit/webkitwebview.cpp:
91 (webkit_web_view_expose_event):
93 2010-07-01 Martin Robinson <mrobinson@igalia.com>
95 Reviewed by Xan Lopez.
97 [GTK] Convert WebKitWebView's private draggingDataObjects member to a pointer
98 https://bugs.webkit.org/show_bug.cgi?id=40333
100 Convert draggingDataObjects to a pointer. The constructor and destructor of the
101 HashMap should be called explicitly. GObject memory allocation does not do this.
103 * WebCoreSupport/DragClientGtk.cpp:
104 (WebKit::DragClient::startDrag):
105 * webkit/webkitprivate.h:
106 * webkit/webkitwebview.cpp:
107 (webkit_web_view_dispose):
108 (webkit_web_view_drag_end):
109 (webkit_web_view_drag_data_get):
110 (webkit_web_view_init):
112 2010-06-30 Martin Robinson <mrobinson@igalia.com>
114 Unreviewed, rolling out r62226.
115 http://trac.webkit.org/changeset/62226
116 https://bugs.webkit.org/show_bug.cgi?id=40333
118 This change caused 13 new crashers.
120 * WebCoreSupport/DragClientGtk.cpp:
121 (WebKit::DragClient::startDrag):
122 * webkit/webkitprivate.h:
123 * webkit/webkitwebview.cpp:
124 (webkit_web_view_dispose):
125 (webkit_web_view_drag_end):
126 (webkit_web_view_drag_data_get):
127 (webkit_web_view_init):
129 2010-06-30 Martin Robinson <mrobinson@igalia.com>
131 Reviewed by Xan Lopez.
133 [GTK] Convert WebKitWebView's private draggingDataObjects member to a pointer
134 https://bugs.webkit.org/show_bug.cgi?id=40333
136 Convert draggingDataObjects to a pointer. The constructor and destructor of the
137 HashMap should be called explicitly. GObject memory allocation does not do this.
139 * WebCoreSupport/DragClientGtk.cpp:
140 (WebKit::DragClient::startDrag):
141 * webkit/webkitprivate.h:
142 * webkit/webkitwebview.cpp:
143 (webkit_web_view_dispose):
144 (webkit_web_view_drag_end):
145 (webkit_web_view_drag_data_get):
146 (webkit_web_view_init):
148 2010-06-30 Xan Lopez <xlopez@igalia.com>
150 Reviewed by Gustavo Noronha.
152 [GTK] Unit test for DOM insertion methods
153 https://bugs.webkit.org/show_bug.cgi?id=40495
155 Add unit test for webkit_dom_node_remove_child.
157 * tests/testdomnode.c:
158 (test_dom_node_insertion):
160 2010-06-30 Xan Lopez <xlopez@igalia.com>
162 Reviewed by Gustavo Noronha.
164 [GTK] Unit test for DOM insertion methods
165 https://bugs.webkit.org/show_bug.cgi?id=40495
167 Add unit tests for node insertion and replacement methods.
169 * tests/testdomnode.c:
170 (test_dom_node_insertion):
173 2010-06-30 Mario Sanchez Prada <msanchez@igalia.com>
175 Reviewed by Xan Lopez.
177 [GTK] Random failure on 'testdownload' unit test
178 https://bugs.webkit.org/show_bug.cgi?id=38256
180 Make sure the set_filename function is called after handling the
181 'download-requested' signal for the asynchronous test. This change
182 is needed because it could happen, with the current code, that the
183 set_filename () function got called too early in the mainloop,
184 therefore screwing the tests because the 'theDownload' global
185 variable wouldn't be properly set yet.
187 With this modification we ensure the set_filename() function gets
188 called always after handling the download-requested signal,
189 therefore avoiding potentialproblems.
191 * tests/testdownload.c:
193 (handle_download_requested_cb):
194 (download_requested_cb):
195 (download_requested_asynch_cb):
196 (test_webkit_download_perform):
198 2010-06-30 José Millán Soto <jmillan@igalia.com>
200 Reviewed by Xan Lopez.
202 [Gtk] Text attributes not exposed
203 https://bugs.webkit.org/show_bug.cgi?id=25528
205 Added new tests for accessible text attributes
209 (compAtkAttributeName):
210 (atkAttributeSetAttributeHasValue):
211 (atkAttributeSetAreEqual):
212 (testWebkitAtkTextAttributes):
215 2010-06-28 Xan Lopez <xlopez@igalia.com>
217 Reviewed by Gustavo Noronha.
223 2010-06-28 Xan Lopez <xlopez@igalia.com>
225 Reviewed by Gustavo Noronha.
227 [GTK] Does not compile with -DGSEAL_ENABLE
228 https://bugs.webkit.org/show_bug.cgi?id=37851
230 Fix build with GSEAL enabled.
232 * WebCoreSupport/FrameLoaderClientGtk.cpp:
233 (WebKit::FrameLoaderClient::transitionToCommittedForNewPage):
234 * webkit/webkitsoupauthdialog.c:
237 2010-06-28 Xan Lopez <xlopez@igalia.com>
239 Reviewed by Gustavo Noronha.
241 [GTK] Add support for GTK+3
242 https://bugs.webkit.org/show_bug.cgi?id=41253
244 Adapt build system to 3.x support, allow the JSCore gir and webkit
245 pc files to be configurable at build time for different API
248 * JSCore-1.0.gir: Removed.
249 * JSCore.gir.in: Added.
250 * docs/GNUmakefile.am:
253 2010-06-25 Mario Sanchez Prada <msanchez@igalia.com>
255 Reviewed by Xan Lopez.
257 [Gtk] Implement atk_table_get_column_header
258 https://bugs.webkit.org/show_bug.cgi?id=30896
260 Replace g_timeout_add() with g_idle_add().
263 (test_webkit_atk_get_text_at_offset_forms):
264 (test_webkit_atk_get_text_at_offset):
265 (test_webkit_atk_get_text_at_offset_newlines):
266 (test_webkit_atk_get_text_at_offset_textarea):
267 (test_webkit_atk_get_text_at_offset_text_input):
268 (testWebkitAtkGetTextInParagraphAndBodySimple):
269 (testWebkitAtkGetTextInParagraphAndBodyModerate):
270 (testWebkitAtkGetTextInTable):
271 (testWebkitAtkGetHeadersInTable):
273 2010-06-25 Mario Sanchez Prada <msanchez@igalia.com>
275 Reviewed by Xan Lopez.
277 [Gtk] Implement atk_table_get_column_header
278 https://bugs.webkit.org/show_bug.cgi?id=30896
280 Added new test to check whether the implementation of
281 get_column_headers() and get_row_headers() works ok.
284 (testWebkitAtkGetHeadersInTable):
287 2010-06-25 Martin Robinson <mrobinson@igalia.com>
289 Reviewed by Xan Lopez.
291 [GTK] Pasteboard code does not take into account the nil character when getting and setting markup/netscape-url data
292 https://bugs.webkit.org/show_bug.cgi?id=41221
294 Add a test for this issue which simulates a paste keyboard event into an editable
295 body. The pasteboard should contain a markup portion containing a null terminator.
297 * tests/testcopyandpaste.c:
301 (runPasteTestCallback):
302 (window_object_cleared_callback):
303 (pasting_test_get_data_callback):
304 (pasting_test_clear_data_callback):
305 (test_pasting_markup):
308 2010-06-24 Martin Robinson <mrobinson@igalia.com>
310 Reviewed by Xan Lopez.
312 [GTK] Cannot change the selection via the keyboard
313 https://bugs.webkit.org/show_bug.cgi?id=41162
315 Fix issue where the selection could not be extended via the keyboard by
316 adjusting the logic guarding against inserting text in non-editable nodes.
318 * WebCoreSupport/EditorClientGtk.cpp:
319 (WebKit::EditorClient::handleKeyboardEvent):
320 Allow editor commands that do not insert text in non-editable nodes. This
321 fixes keyboard selection extension in non-editable nodes. Move the existing
322 check to after the execution of any editor commands.
324 2010-06-15 Dumitru Daniliuc <dumi@chromium.org>
326 Reviewed by Adam Barth.
328 Move isAvailable()/setIsAvailable() from Database/DatabaseSync to AbstractDatabase.
329 https://bugs.webkit.org/show_bug.cgi?id=39041
331 * webkit/webkitwebview.cpp:
332 (webkit_web_view_update_settings):
333 (webkit_web_view_settings_notify):
334 (webkit_get_cache_model):
336 2010-06-16 Martin Robinson <mrobinson@igalia.com>
338 Reviewed by Gustavo Noronha Silva.
340 [GTK] Remove the abuse of GDK_CURRENT_TIME in the DRT
341 https://bugs.webkit.org/show_bug.cgi?id=40600
343 * WebCoreSupport/DragClientGtk.cpp:
344 (WebKit::DragClient::startDrag): Reset the click count after a drag starts.
345 * WebCoreSupport/FrameLoaderClientGtk.cpp:
346 (WebKit::postCommitFrameViewSetup): Reset the click count after a load is committed.
347 * webkit/webkitprivate.h: Move static click counting variables to be per-view.
348 * webkit/webkitwebview.cpp:
349 (getEventTime): Added.
350 (webkit_web_view_button_press_event): If the event time is zero, use the current time.
351 (webkit_web_view_finalize): Clean up click counting member.
352 (webkit_web_view_init): Initialize click counting member.
354 2010-06-15 Xan Lopez <xlopez@igalia.com>
356 Fix compilation with older GTK+.
358 * WebCoreSupport/ChromeClientGtk.cpp:
359 (WebKit::ChromeClient::pageRect):
361 2010-06-15 Xan Lopez <xlopez@igalia.com>
363 Reviewed by Gustavo Noronha.
365 [GTK] Does not compile with -DGSEAL_ENABLE
366 https://bugs.webkit.org/show_bug.cgi?id=37851
368 Fix compilation with GSEAL_ENABLE.
370 * WebCoreSupport/ChromeClientGtk.cpp:
371 (WebKit::ChromeClient::pageRect):
372 (WebKit::ChromeClient::contentsSizeChanged):
373 * tests/testdomnode.c:
374 (test_dom_node_insertion):
375 * webkit/webkitwebview.cpp:
376 (webkit_web_view_realize):
377 (webkit_web_view_script_dialog):
378 (webkit_web_view_drag_end):
379 (webkit_web_view_init):
381 2010-06-14 Ilya Tikhonovsky <loislo@chromium.org>
383 Unreviewed build fix.
385 This is a fix for flaky inspector tests at gtk-debug bots.
387 * WebCoreSupport/InspectorClientGtk.cpp:
388 (WebKit::InspectorFrontendClient::destroyInspectorWindow):
390 2010-06-14 Ilya Tikhonovsky <loislo@chromium.org>
392 Reviewed by Pavel Feldman.
394 WebInspector: On the way to Remote Debugging we want to transfer dom/timeline/etc
395 data from inspected page to WebInspector as JSON string via http. The native
396 serialization to JSON string is supported by InspectorValue's classes. This patch
397 has the implementation of sendMessageToFrontend function. WebKit version of it still
398 uses ScriptFunctionCall and will be switched to another transport a little bit later.
399 https://bugs.webkit.org/show_bug.cgi?id=40134
401 * WebCoreSupport/InspectorClientGtk.cpp:
402 (WebKit::InspectorClient::releaseFrontendPage):
403 (WebKit::InspectorClient::sendMessageToFrontend):
404 * WebCoreSupport/InspectorClientGtk.h:
406 2010-06-10 Eric Seidel <eric@webkit.org>
408 Reviewed by Adam Barth.
410 Reduce FrameView.h includes to speed up build times
411 https://bugs.webkit.org/show_bug.cgi?id=40408
413 * webkit/webkitwebinspector.cpp:
414 - Include RenderLayer.h
416 2010-06-09 Sheriff Bot <webkit.review.bot@gmail.com>
418 Unreviewed, rolling out r60889.
419 http://trac.webkit.org/changeset/60889
420 https://bugs.webkit.org/show_bug.cgi?id=40365
422 gtk bot has some kind of memory corruption (Requested by
425 * WebCoreSupport/InspectorClientGtk.cpp:
426 (WebKit::InspectorClient::InspectorClient):
427 (WebKit::InspectorClient::openInspectorFrontend):
428 (WebKit::InspectorFrontendClient::InspectorFrontendClient):
429 (WebKit::InspectorFrontendClient::destroyInspectorWindow):
430 * WebCoreSupport/InspectorClientGtk.h:
432 2010-06-07 Ilya Tikhonovsky <loislo@chromium.org>
434 Reviewed by Pavel Feldman.
436 WebInspector: On the way to Remote Debugging we want to transfer dom/timeline/etc
437 data from inspected page to WebInspector as JSON string via http. The native
438 serialization to JSON string is supported by InspectorValue's classes. This patch
439 has the implementation of sendMessageToFrontend function. WebKit version of it still
440 uses ScriptFunctionCall and will be switched to another transport a little bit later.
441 https://bugs.webkit.org/show_bug.cgi?id=40134
443 * WebCoreSupport/InspectorClientGtk.cpp:
444 (WebKit::InspectorClient::releaseFrontendPage):
445 (WebKit::InspectorClient::sendMessageToFrontend):
446 * WebCoreSupport/InspectorClientGtk.h:
448 2010-06-08 Xan Lopez <xlopez@igalia.com>
450 Reviewed by Gustavo Noronha.
452 [GTK] Unit testing for WebKitDOMNode hierarchy walk
453 https://bugs.webkit.org/show_bug.cgi?id=40171
455 Add some DOM node unit testing.
457 * tests/testdomnode.c: Added.
459 (dom_node_fixture_setup):
460 (dom_node_fixture_teardown):
461 (test_dom_node_hierarchy_navigation):
464 2010-06-08 Antonio Gomes <tonikitoo@webkit.org>
466 Reviewed by Ojan Vafai and Darin Adler.
468 Refactor platform dependent editing behavior code out of Settings
469 https://bugs.webkit.org/show_bug.cgi?id=39854
471 EditingBehavior enum was renamed to EditingBehaviorTypes and moved out from Settings.h to
472 EditingBehaviorTypes.h . Call sites in WebKit/ adjusted accordingly.
474 * webkit/webkitprivate.cpp:
476 * webkit/webkitprivate.h:
477 * webkit/webkitwebview.cpp:
478 (webkit_web_view_update_settings):
479 (webkit_web_view_settings_notify):
481 2010-06-08 Xan Lopez <xlopez@igalia.com>
483 Reviewed by Gustavo Noronha.
485 [GTK] Add inner-node property to WebKitHitTestResult
486 https://bugs.webkit.org/show_bug.cgi?id=40131
488 Add a 'inner-node' property to WebKitHitTestResult, carrying the
489 DOM node where the hit test happened.
491 * tests/testhittestresult.c:
493 * webkit/webkithittestresult.cpp:
494 (webkit_hit_test_result_get_property):
495 (webkit_hit_test_result_set_property):
496 (webkit_hit_test_result_class_init):
497 * webkit/webkitprivate.cpp:
500 2010-06-07 Martin Robinson <mrobinson@igalia.com>
502 Reviewed by Xan Lopez.
504 [GTK] gtk_widget_get_window should replace widget->window
505 https://bugs.webkit.org/show_bug.cgi?id=40180
507 Replace uses of widget->window with gtk_widget_get_window.
509 * WebCoreSupport/ChromeClientGtk.cpp:
510 (WebKit::ChromeClient::invalidateContentsAndWindow): Replace widget->window uses.
511 (WebKit::ChromeClient::scroll): Ditto.
512 (WebKit::widgetScreenPosition): Ditto.
513 * WebCoreSupport/DragClientGtk.cpp: Move gtk_widget_get_window define to GtkVersioning.h.
514 * webkit/webkitwebview.cpp:
515 (webkit_web_view_popup_menu_handler): Replace widget->window uses.
516 (webkit_web_view_button_press_event): Ditto.
518 2010-06-04 Martin Robinson <mrobinson@igalia.com>
520 Reviewed by Xan Lopez.
522 [GTK] Drag gesture can take mouse grab indefinitely
523 https://bugs.webkit.org/show_bug.cgi?id=32840
525 Initiate drag events with the current GTK+ event instead of synthesizing
526 an event. Something about synthesized events is causing a drag freeze in
529 * WebCoreSupport/DragClientGtk.cpp:
530 (WebKit::DragClient::startDrag): Start the drag with the current GTK+ event.
532 2010-06-03 Sheriff Bot <webkit.review.bot@gmail.com>
534 Unreviewed, rolling out r60632.
535 http://trac.webkit.org/changeset/60632
536 https://bugs.webkit.org/show_bug.cgi?id=40143
538 This change broke the 64-bit bots. (Requested by mrobinson on
541 * WebCoreSupport/DragClientGtk.cpp:
542 (WebKit::DragClient::DragClient):
543 (WebKit::DragClient::startDrag):
544 * WebCoreSupport/DragClientGtk.h:
546 2010-06-03 Martin Robinson <mrobinson@igalia.com>
548 Reviewed by Xan Lopez.
550 [GTK] Drag gesture can take mouse grab indefinitely
551 https://bugs.webkit.org/show_bug.cgi?id=32840
553 Start GTK+ drags with the previous mouse button down event instead of
554 synthesizing the event. The synthesized event was not completely valid
555 and froze some drags indefinitely.
557 * WebCoreSupport/DragClientGtk.cpp:
558 (WebKit::buttonPressEvent): Added.
559 (WebKit::DragClient::DragClient):
560 Connect to the 'button-press-event' signal of the WebView.
561 (WebKit::DragClient::startDrag):
562 Instead of synthesizing a button press event use the last real one.
563 * WebCoreSupport/DragClientGtk.h:
564 (WebKit::DragClient::setLastButtonPressEvent): Added.
566 2010-06-01 Xan Lopez <xlopez@igalia.com>
568 Reviewed by Gustavo Noronha.
570 Memory Leak: The main resource of page is not free.
571 https://bugs.webkit.org/show_bug.cgi?id=39973
573 Fix refcount tracking of the main resource. Patch by Genhua Liu.
575 * WebCoreSupport/FrameLoaderClientGtk.cpp:
576 (WebKit::FrameLoaderClient::dispatchDidFinishLoading):
578 2010-06-01 Xan Lopez <xlopez@igalia.com>
580 Reviewed by Gustavo Noronha.
582 Fix-up for previous leak fix, the identifier was not always duped.
584 * webkit/webkitprivate.h:
585 * webkit/webkitwebview.cpp:
586 (webkit_web_view_add_resource):
588 2010-06-01 Xan Lopez <xlopez@igalia.com>
590 Reviewed by Gustavo Noronha.
594 * WebCoreSupport/FrameLoaderClientGtk.cpp:
595 (WebKit::FrameLoaderClient::assignIdentifierToInitialRequest):
597 2010-06-01 Martin Robinson <mrobinson@igalia.com>
599 Reviewed by Xan Lopez.
601 [GTK] Double clicks cause three button press events
602 https://bugs.webkit.org/show_bug.cgi?id=38853
604 Handle click counting much like the Windows port. GTK+ only
605 counts triple-clicks natively, so use GTK+ double-click settings
606 to count clicks with even larger click counts. Also filter the
607 extra GDK_BUTTON_PRESS before GDK_{2,3}BUTTON_PRESS events using
610 * webkit/webkitwebview.cpp:
611 (webkit_web_view_button_press_event): Count clicks manually. Filter extra events.
613 2010-05-31 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
615 Reviewed by Xan Lopez.
617 [GTK] Missing links to documentation of general functions
618 https://bugs.webkit.org/show_bug.cgi?id=39964
620 Add global functions section, and move those functions that are
621 currently in WebKitWebView's source file to the bottom, along with
624 * docs/webkitgtk-docs.sgml:
625 * docs/webkitgtk-sections.txt:
626 * webkit/webkitwebview.cpp:
627 (webkit_web_view_get_dom_document):
628 (webkit_get_default_session):
630 2010-05-31 Martin Robinson <mrobinson@igalia.com>
632 Reviewed by Gustavo Noronha Silva.
634 [GTK] Text copied from a WebView cannot be pasted into gnome-terminal
635 https://bugs.webkit.org/show_bug.cgi?id=39827
637 Add a test to prevent regressions for this issue.
639 * tests/testcopyandpaste.c: Added.
642 (copy_and_paste_fixture_setup):
643 (copy_and_paste_fixture_teardown):
646 (test_copy_and_paste):
649 2010-05-27 Gustavo Noronha Silva <gns@gnome.org>
651 Update documentation control files, and fix Since tags for 1.3.1.
653 * docs/webkitgtk-docs.sgml:
654 * docs/webkitgtk-sections.txt:
655 * webkit/webkitwebbackforwardlist.cpp:
656 * webkit/webkitwebview.cpp:
658 2010-05-27 Xan Lopez <xlopez@igalia.com>
660 Reviewed by Gustavo Noronha.
662 Update for 1.3.1 release.
666 2010-05-27 Martin Robinson <mrobinson@igalia.com>
668 Reviewed by Xan Lopez.
670 [GTK] Dragging onto the desktop causes a critical GLib warning
671 https://bugs.webkit.org/show_bug.cgi?id=39718
673 Only increment the window reference count if it is not null during drag-end
676 * webkit/webkitwebview.cpp:
677 (webkit_web_view_drag_end): Guard against null window values.
679 2010-05-26 Xan Lopez <xlopez@igalia.com>
681 Reviewed by Gustavo Noronha.
683 [GTK] Add support for DOM events in the GObject DOM bindings
684 https://bugs.webkit.org/show_bug.cgi?id=38844
686 Test DOMWindow signals.
688 * tests/testdomdomwindow.c: Added.
690 (dom_domview_fixture_setup):
691 (dom_domview_fixture_teardown):
695 (load_event_callback):
696 (test_dom_domview_signals):
699 2010-05-24 Darin Adler <darin@apple.com>
701 Reviewed by Eric Seidel.
703 Move view-related functions from Frame to FrameView
704 https://bugs.webkit.org/show_bug.cgi?id=39366
706 * webkit/webkitwebview.cpp:
707 (webkit_web_view_set_editable): Remove call to empty function
708 removeEditngStyleFromBodyElement.
709 (webkit_web_view_get_zoom_level): Call functions on FrameView.
710 (webkit_web_view_apply_zoom_level): Ditto.
712 2010-05-22 Martin Robinson <mrobinson@igalia.com>
714 Reviewed by Xan Lopez.
716 [GTK] webkit_web_view_drag_end should call EventHandler::dragSourceEndedAt
717 https://bugs.webkit.org/show_bug.cgi?id=39465
719 Properly call EventHandler::dragSourceEndedAt so that dragEnd events are processed in the DOM.
720 dragSourceEndedAt is responsible for calling the dragEnd DOM event as well as cleaning up assets
721 (such as the Clipboard) associated with the drag source.
723 * webkit/webkitwebview.cpp:
724 (webkit_web_view_drag_end): Remember to call dragSourceEndedAt here.
726 2010-05-22 Martin Robinson <mrobinson@igalia.com>
728 Reviewed by Xan Lopez.
730 [GTK] WebKit/gtk/WebCoreSupport/DragClientGtk::startDrag should use the Clipboard::sourceOperation
731 https://bugs.webkit.org/show_bug.cgi?id=39459
733 * WebCoreSupport/DragClientGtk.cpp:
734 (WebKit::DragClient::startDrag):
735 Use Clipboard::sourceOperation instead of trying to figure out the GdkDragAction
736 manually. The DOM may have changed the appropriate list of actions anyhow.
738 2010-05-21 Steve Block <steveblock@google.com>
740 Reviewed by Jeremy Orlow.
742 Add DeviceOrientation and DeviceOrientationClient
743 https://bugs.webkit.org/show_bug.cgi?id=39479
745 * webkit/webkitwebview.cpp:
746 (webkit_web_view_init):
748 2010-05-19 Sheriff Bot <webkit.review.bot@gmail.com>
750 Unreviewed, rolling out r59240.
751 http://trac.webkit.org/changeset/59240
752 https://bugs.webkit.org/show_bug.cgi?id=39377
754 "Might cause crashes in GTK+ bots" (Requested by xan_ on
757 * WebCoreSupport/ContextMenuClientGtk.cpp:
758 (WebKit::inputMethodsMenuItem):
759 * WebCoreSupport/EditorClientGtk.cpp:
760 (WebKit::EditorClient::setInputMethodState):
761 (WebKit::EditorClient::respondToChangedSelection):
762 (WebKit::EditorClient::handleInputMethodKeydown):
763 (WebKit::EditorClient::EditorClient):
764 (WebKit::EditorClient::~EditorClient):
765 * WebCoreSupport/FrameLoaderClientGtk.cpp:
766 (WebKit::postCommitFrameViewSetup):
767 * webkit/webkitprivate.h:
768 * webkit/webkitwebview.cpp:
770 (webkit_web_view_forward_context_menu_event):
771 (webkit_web_view_key_release_event):
772 (webkit_web_view_button_release_event):
773 (webkit_web_view_focus_in_event):
774 (webkit_web_view_focus_out_event):
775 (webkit_web_view_realize):
776 (webkit_web_view_set_scroll_adjustments):
777 (webkit_web_view_dispose):
778 (webkit_web_view_finalize):
780 (webkit_web_view_screen_changed):
781 (webkit_web_view_query_tooltip):
782 (webkit_web_view_get_im_context):
783 (webkit_web_view_update_settings):
784 (webkit_web_view_init):
785 (webkit_web_view_set_settings):
786 (webkit_web_view_get_settings):
787 (webkit_web_view_get_inspector):
788 (webkit_web_view_set_window_features):
789 (webkit_web_view_get_window_features):
790 (webkit_web_view_get_back_forward_list):
791 (webkit_web_view_zoom_in):
792 (webkit_web_view_zoom_out):
793 (webkit_web_view_get_encoding):
794 (webkit_web_view_get_custom_encoding):
795 (webkit_web_view_add_resource):
796 (webkit_web_view_get_resource):
797 (webkit_web_view_get_main_resource):
798 (webkit_web_view_clear_resources):
799 (webkit_web_view_get_subresources):
800 (webkit_web_view_set_tooltip_text):
801 (webkit_web_view_get_icon_uri):
803 2010-05-18 Martin Robinson <mrobinson@igalia.com>
805 Reviewed by Xan Lopez.
807 [GTK] DragClientGtk::startDrag leaks GdkEvents
808 https://bugs.webkit.org/show_bug.cgi?id=39322
810 * WebCoreSupport/DragClientGtk.cpp:
811 (WebKit::DragClient::startDrag): Properly clean up allocated GdkEvent.
813 2010-05-12 Martin Robinson <mrobinson@igalia.com>
815 Reviewed by Xan Lopez.
817 [Gtk] Use GOwnPtr for code that needs it
818 https://bugs.webkit.org/show_bug.cgi?id=21594
820 Convert many uses of raw pointers to GRefPtr and GOwnPtr in WebKitWebView.
822 * WebCoreSupport/ContextMenuClientGtk.cpp:
823 (WebKit::inputMethodsMenuItem):
824 * WebCoreSupport/EditorClientGtk.cpp:
825 (WebKit::EditorClient::setInputMethodState):
826 (WebKit::EditorClient::respondToChangedSelection):
827 (WebKit::EditorClient::handleInputMethodKeydown):
828 (WebKit::EditorClient::EditorClient):
829 (WebKit::EditorClient::~EditorClient):
830 * WebCoreSupport/FrameLoaderClientGtk.cpp:
831 (WebKit::postCommitFrameViewSetup):
832 * webkit/webkitprivate.h:
833 * webkit/webkitwebview.cpp:
835 (webkit_web_view_forward_context_menu_event):
836 (webkit_web_view_key_release_event):
837 (webkit_web_view_button_release_event):
838 (webkit_web_view_focus_in_event):
839 (webkit_web_view_focus_out_event):
840 (webkit_web_view_realize):
841 (webkit_web_view_set_scroll_adjustments):
842 (webkit_web_view_dispose):
843 (webkit_web_view_finalize):
845 (webkit_web_view_screen_changed):
846 (webkit_web_view_query_tooltip):
847 (webkit_web_view_get_im_context):
848 (webkit_web_view_update_settings):
849 (webkit_web_view_init):
850 (webkit_web_view_set_settings):
851 (webkit_web_view_get_settings):
852 (webkit_web_view_get_inspector):
853 (webkit_web_view_set_window_features):
854 (webkit_web_view_get_window_features):
855 (webkit_web_view_get_back_forward_list):
856 (webkit_web_view_zoom_in):
857 (webkit_web_view_zoom_out):
858 (webkit_web_view_get_encoding):
859 (webkit_web_view_get_custom_encoding):
860 (webkit_web_view_add_resource):
861 (webkit_web_view_get_resource):
862 (webkit_web_view_get_main_resource):
863 (webkit_web_view_clear_resources):
864 (webkit_web_view_get_subresources):
865 (webkit_web_view_set_tooltip_text):
866 (webkit_web_view_get_icon_uri):
868 2010-05-11 Martin Robinson <mrobinson@igalia.com>
870 Reviewed by Xan Lopez.
872 [Gtk] Doesn't support gtk-key-themes
873 https://bugs.webkit.org/show_bug.cgi?id=28257
875 Add support for GTK+ key themes.
877 * WebCoreSupport/EditorClientGtk.cpp:
878 (WebKit::backspaceCallback): Added.
879 (WebKit::cutClipboardCallback): Added.
880 (WebKit::copyClipboardCallback): Added.
881 (WebKit::pasteClipboardCallback): Added.
882 (WebKit::selectAllCallback): Added.
883 (WebKit::deleteFromCursorCallback): Added.
884 (WebKit::moveCursorCallback): Added.
885 (WebKit::EditorClient::generateEditorCommands): Added.
886 (WebKit::EditorClient::executePendingEditorCommands): Added.
887 (WebKit::EditorClient::handleKeyboardEvent): Derive editor commands both from internal text widget and a list of fallbacks.
888 (WebKit::EditorClient::EditorClient): Add m_nativeWidget initializer.
889 * WebCoreSupport/EditorClientGtk.h:
890 (WebKit::EditorClient::addPendingEditorCommand): Add m_nativeWidget member.
892 2010-05-06 Martin Robinson <mrobinson@webkit.org>
894 Reviewed by Xan Lopez.
896 Remove use of GOwnPtr to hold GObject types.
897 https://bugs.webkit.org/show_bug.cgi?id=38669
899 Change use of GOwnPtr to GRefPtr to types which are natively reference-counted.
901 * WebCoreSupport/FrameLoaderClientGtk.cpp:
902 (WebKit::FrameLoaderClient::dispatchWillSendRequest): Change GOwnPtr to GRefPtr in some places.
903 (WebKit::FrameLoaderClient::dispatchDecidePolicyForMIMEType): Ditto.
904 * webkit/webkitnetworkrequest.cpp:
905 (webkit_network_request_new_with_core_request): Ditto.
906 * webkit/webkitnetworkresponse.cpp:
907 (webkit_network_response_new_with_core_response): Ditto.
908 * webkit/webkitprivate.cpp: Remove GOwnPtr reference counting template specialization.
909 * webkit/webkitprivate.h: Ditto.
911 2010-05-06 Martin Robinson <mrobinson@webkit.org>
913 Reviewed by Gustavo Noronha Silva.
915 [GTK] Enable DOM clipboard and drag-and-drop access
916 https://bugs.webkit.org/show_bug.cgi?id=30623
918 Convert dragging portion of drag-and-drop to use DataObjectGtk.
920 * WebCoreSupport/DragClientGtk.cpp:
921 (WebKit::DragClient::willPerformDragDestinationAction): Remove the notImplemented. It is implemented, it's just a no-op.
922 (WebKit::DragClient::startDrag): Start the drag context via the ClipboardGtk and PasteboardHelper now.
923 * WebCoreSupport/DragClientGtk.h: Small style fix.
924 * webkit/webkitprivate.h: Add a HashMap of contexts and DataObjects here to to represent all current drag operations.
925 * webkit/webkitwebview.cpp:
926 (webkit_web_view_dispose): Clear all data objects during disposal.
927 (webkit_web_view_drag_end): When a drag is over, just remove it from the map.
928 (webkit_web_view_drag_data_get): To get the drag data, just grab it from the DataObject.
930 2010-05-03 Abhishek Arya <inferno@chromium.org>
932 Reviewed by Adam Barth.
934 Add support for controlling clipboard access from javascript.
935 Clipboard access from javascript is disabled by default.
936 https://bugs.webkit.org/show_bug.cgi?id=27751
938 * webkit/webkitwebsettings.cpp:
939 (webkit_web_settings_class_init):
940 (webkit_web_settings_set_property):
941 (webkit_web_settings_get_property):
942 (webkit_web_settings_copy):
943 * webkit/webkitwebview.cpp:
944 (webkit_web_view_update_settings):
945 (webkit_web_view_settings_notify):
947 2010-05-03 Jens Alfke <snej@chromium.org>
949 Reviewed by Darin Fisher.
951 [chromium] Add "willSendSubmitEvent" hook to WebFrameClient and FrameLoaderClient
952 https://bugs.webkit.org/show_bug.cgi?id=38397
954 No tests (functionality is exposed only through native WebKit API.)
956 * WebCoreSupport/FrameLoaderClientGtk.h:
957 (WebKit::FrameLoaderClient::dispatchWillSendSubmitEvent):
959 2010-05-01 Xan Lopez <xlopez@igalia.com>
961 Reviewed by Oliver Hunt.
963 [GTK] GObject DOM bindings
964 https://bugs.webkit.org/show_bug.cgi?id=33590
966 Test webkit_dom_document_get_links.
968 * tests/testdomdocument.c:
969 (test_dom_document_get_links):
972 2010-04-29 Xan Lopez <xlopez@igalia.com>
974 Reviewed by Gustavo Noronha.
976 [GTK] GObject DOM bindings
977 https://bugs.webkit.org/show_bug.cgi?id=33590
979 Test webkit_dom_document_get_element_by_id;
981 * tests/testdomdocument.c:
982 (test_dom_document_get_element_by_id):
985 2010-04-29 Xan Lopez <xlopez@igalia.com>
987 Reviewed by Gustavo Noronha.
989 [GTK] GObject DOM bindings
990 https://bugs.webkit.org/show_bug.cgi?id=33590
992 Test webkit_dom_document_get_elements_by_class_name.
994 * tests/testdomdocument.c:
995 (test_dom_document_get_elements_by_class_name):
998 2010-04-29 Xan Lopez <xlopez@igalia.com>
1000 Reviewed by Gustavo Noronha.
1002 [GTK] GObject DOM bindings
1003 https://bugs.webkit.org/show_bug.cgi?id=33590
1005 Test webkit_dom_document_get_elements_by_tag_name.
1007 * tests/testdomdocument.c:
1008 (test_dom_document_get_elements_by_tag_name):
1011 2010-04-29 Xan Lopez <xlopez@igalia.com>
1013 Reviewed by Gustavo Noronha.
1015 [GTK] GObject DOM bindings
1016 https://bugs.webkit.org/show_bug.cgi?id=33590
1018 Move WebKitDOMDocument unit tests to their own file.
1020 * tests/testdomdocument.c: Added.
1022 (dom_document_fixture_setup):
1023 (dom_document_fixture_teardown):
1024 (test_dom_document_title):
1026 * tests/testwebview.c:
1028 2010-04-29 Xan Lopez <xlopez@igalia.com>
1030 Reviewed by Gustavo Noronha.
1032 [GTK] GObject DOM bindings
1033 https://bugs.webkit.org/show_bug.cgi?id=33590
1035 Include <webkit/webkitdom.h> in the main webkit.h header.
1039 2010-04-25 Sam Weinig <sam@webkit.org>
1041 Reviewed by Maciej Stachowiak.
1043 Fix for https://bugs.webkit.org/show_bug.cgi?id=38097
1044 Disentangle initializing the main thread from initializing threading
1046 * webkit/webkitprivate.cpp:
1047 (webkit_init): Add call to initializeMainThread.
1049 2010-04-22 Dave Moore <davemoore@chromium.org>
1051 Reviewed by Dimitri Glazkov.
1053 Added notification when the favicons for a page are changed
1055 The Document object will notify the frame loader, which will
1056 notify the client. Implementations of FrameLoaderClient will
1057 have to add one method; dispatchDidChangeIcons().
1059 * WebCoreSupport/FrameLoaderClientGtk.cpp:
1060 (WebKit::FrameLoaderClient::dispatchDidChangeIcons):
1061 * WebCoreSupport/FrameLoaderClientGtk.h:
1063 2010-04-22 Xan Lopez <xlopez@igalia.com>
1065 Reviewed by Gustavo Noronha.
1067 [GTK] GObject DOM bindings
1068 https://bugs.webkit.org/show_bug.cgi?id=33590
1070 Add webkit_web_view_get_document to retrieve the WebKitDOMDocument
1071 from a WebKitWebView, and a very simple test for it.
1073 * tests/testwebview.c:
1074 * webkit/webkitwebview.cpp:
1075 (webkit_web_view_get_document):
1076 * webkit/webkitwebview.h:
1078 2010-04-22 Diego Escalante Urrelo <descalante@igalia.com>
1080 Reviewed by Xan Lopez.
1082 [Gtk] Evaluate and create tests for all the AtkRole's implemented by
1084 https://bugs.webkit.org/show_bug.cgi?id=34449
1086 Expand testatkroles to test ATK_ROLE_COMBO_BOX.
1088 * tests/testatkroles.c:
1089 (test_webkit_atk_get_role_combobox):
1092 2010-04-22 Diego Escalante Urrelo <descalante@igalia.com>
1094 Reviewed by Xan Lopez.
1096 [Gtk] Evaluate and create tests for all the AtkRole's implemented by
1098 https://bugs.webkit.org/show_bug.cgi?id=34449
1100 Expand testatkroles to test ATK_ROLE_SEPARATOR.
1102 * tests/testatkroles.c:
1103 (test_webkit_atk_get_role_separator):
1106 2010-04-22 Adam Barth <abarth@webkit.org>
1108 Unreviewed, rolling out r58069.
1109 http://trac.webkit.org/changeset/58069
1110 https://bugs.webkit.org/show_bug.cgi?id=27751
1112 Broke compile on Windows.
1114 * webkit/webkitwebsettings.cpp:
1115 (webkit_web_settings_class_init):
1116 (webkit_web_settings_set_property):
1117 (webkit_web_settings_get_property):
1118 (webkit_web_settings_copy):
1119 * webkit/webkitwebview.cpp:
1120 (webkit_web_view_update_settings):
1121 (webkit_web_view_settings_notify):
1123 2010-04-22 Abhishek Arya <inferno@chromium.org>
1125 Reviewed by Adam Barth.
1127 Add support for controlling clipboard access from javascript.
1128 Clipboard access from javascript is disabled by default.
1129 https://bugs.webkit.org/show_bug.cgi?id=27751
1131 * webkit/webkitwebsettings.cpp:
1132 (webkit_web_settings_class_init):
1133 (webkit_web_settings_set_property):
1134 (webkit_web_settings_get_property):
1135 (webkit_web_settings_copy):
1136 * webkit/webkitwebview.cpp:
1137 (webkit_web_view_update_settings):
1138 (webkit_web_view_settings_notify):
1140 2010-04-21 Jakub Wieczorek <jwieczorek@webkit.org>
1142 Reviewed by Darin Adler.
1144 List item markers are not always updated after changes in the DOM.
1145 https://bugs.webkit.org/show_bug.cgi?id=37060
1147 * webkit/webkitprivate.h:
1148 * webkit/webkitwebframe.cpp:
1149 (webkit_web_frame_marker_text_for_list_item): Add a private API to get the marker text for a list item.
1151 2010-04-21 Diego Escalante Urrelo <descalante@igalia.com>
1153 Reviewed by Xan Lopez.
1155 [Gtk] Evaluate and create tests for all the AtkRole's implemented by
1157 https://bugs.webkit.org/show_bug.cgi?id=34449
1159 Expand testatkroles to test ATK_ROLE_FORM.
1161 * tests/testatkroles.c:
1162 (test_webkit_atk_get_role_form):
1165 2010-04-20 Adam Barth <abarth@webkit.org>
1167 Reviewed by Eric Seidel.
1169 Factor DocumentWriter out of FrameLoader
1170 https://bugs.webkit.org/show_bug.cgi?id=37175
1172 Update these callsites because the method moved to DocumentWriter.
1174 * WebCoreSupport/FrameLoaderClientGtk.cpp:
1175 (WebKit::FrameLoaderClient::committedLoad):
1176 (WebKit::FrameLoaderClient::finishedLoading):
1177 * webkit/webkitwebview.cpp:
1178 (webkit_web_view_get_encoding):
1180 2010-04-20 Kent Tamura <tkent@chromium.org>
1182 Reviewed by Darin Adler.
1184 Change a parameter type of chooseIconForFiles()
1185 https://bugs.webkit.org/show_bug.cgi?id=37504
1187 * WebCoreSupport/ChromeClientGtk.cpp:
1188 (WebKit::ChromeClient::chooseIconForFiles):
1189 * WebCoreSupport/ChromeClientGtk.h:
1191 2010-04-20 Martin Robinson <mrobinson@webkit.org>
1193 Reviewed by Gustavo Noronha Silva.
1195 [GTK] Enable DOM clipboard and drag-and-drop access
1196 https://bugs.webkit.org/show_bug.cgi?id=30623
1198 Move most of the PasteboardHelper logic into WebCore. This helps
1199 prepare for WebKit2 and leads to a clearer separation of concerns
1200 between the WebKit and WebCore layers.
1202 * WebCoreSupport/EditorClientGtk.cpp:
1203 (WebKit::collapseSelection): Converted this logic to a GClosure callback.
1204 (WebKit::EditorClient::respondToChangedSelection): Collapse selection via GClosure now.
1205 * WebCoreSupport/PasteboardHelperGtk.cpp: Moved most of the code to WebCore.
1206 (WebKit::PasteboardHelperGtk::PasteboardHelperGtk): This constructor just initializes the target list.
1207 (WebKit::PasteboardHelperGtk::~PasteboardHelperGtk): The destructor no longer needs to free the target list.
1208 (WebKit::PasteboardHelperGtk::getIdForTargetType): Added, virtual method for getting target ids.
1209 (WebKit::PasteboardHelperGtk::usePrimarySelectionClipboard): Added, virtual method for querying current clipboard.
1210 * WebCoreSupport/PasteboardHelperGtk.h: Update method list to reflect reduced functionality.
1212 2010-04-19 Diego Escalante Urrelo <descalante@igalia.com>
1214 Reviewed by Xan Lopez.
1216 [Gtk] Evaluate and create tests for all the AtkRole's implemented by
1218 https://bugs.webkit.org/show_bug.cgi?id=34449
1220 Expand testatkroles to test ATK form roles.
1222 * tests/testatkroles.c:
1223 (test_webkit_atk_get_role_check_box):
1224 (test_webkit_atk_get_role_entry):
1225 (test_webkit_atk_get_role_label):
1226 (test_webkit_atk_get_role_listbox):
1227 (test_webkit_atk_get_role_password_text):
1228 (test_webkit_atk_get_role_push_button):
1229 (test_webkit_atk_get_role_radio_button):
1232 2010-04-19 Diego Escalante Urrelo <descalante@igalia.com>
1234 Reviewed by Xan Lopez.
1236 [Gtk] Evaluate and create tests for all the AtkRole's implemented by
1238 https://bugs.webkit.org/show_bug.cgi?id=34449
1240 Add testatkroles to test ATK non form roles.
1242 * tests/testatkroles.c: Added.
1244 (atk_roles_fixture_setup):
1245 (atk_roles_fixture_teardown):
1246 (get_child_and_test_role):
1247 (test_webkit_atk_get_role_document_frame):
1248 (test_webkit_atk_get_role_heading):
1249 (test_webkit_atk_get_role_image):
1250 (test_webkit_atk_get_role_link):
1251 (test_webkit_atk_get_role_list_and_item):
1252 (test_webkit_atk_get_role_paragraph):
1253 (test_webkit_atk_get_role_section):
1254 (test_webkit_atk_get_role_table):
1257 2010-04-17 Alejandro G. Castro <alex@igalia.com>
1259 Reviewed by Xan Lopez.
1261 We have to initialize the timer attribute after destroying it, not
1262 doing it was causing crashes in some situations.
1264 * webkit/webkitdownload.cpp:
1265 (webkit_download_finalize):
1267 2010-04-13 Timothy Hatcher <timothy@apple.com>
1269 Rename SecurityOrigin::whiteListAccessFromOrigin to addOriginAccessWhitelistEntry.
1270 And SecurityOrigin::resetOriginAccessWhiteLists to resetOriginAccessWhitelists.
1272 SecurityOrigin needs a way to remove individual OriginAccessEntries
1273 https://bugs.webkit.org/show_bug.cgi?id=37449
1275 Reviewed by Dave Hyatt.
1277 * webkit/webkitprivate.cpp:
1278 (webkit_white_list_access_from_origin):
1279 (webkit_reset_origin_access_white_lists):
1281 2010-04-11 Sheriff Bot <webkit.review.bot@gmail.com>
1283 Unreviewed, rolling out r57468.
1284 http://trac.webkit.org/changeset/57468
1285 https://bugs.webkit.org/show_bug.cgi?id=37433
1287 Broke the world... Must have applied the patch wrong
1288 (Requested by abarth on #webkit).
1290 * WebCoreSupport/FrameLoaderClientGtk.cpp:
1291 (WebKit::FrameLoaderClient::committedLoad):
1292 (WebKit::FrameLoaderClient::finishedLoading):
1293 * webkit/webkitwebview.cpp:
1294 (webkit_web_view_get_encoding):
1296 2010-04-11 Adam Barth <abarth@webkit.org>
1298 Reviewed by Eric Seidel.
1300 Factor DocumentWriter out of FrameLoader
1301 https://bugs.webkit.org/show_bug.cgi?id=37175
1303 Update these callsites because the method moved to DocumentWriter.
1305 * WebCoreSupport/FrameLoaderClientGtk.cpp:
1306 (WebKit::FrameLoaderClient::committedLoad):
1307 (WebKit::FrameLoaderClient::finishedLoading):
1308 * webkit/webkitwebview.cpp:
1309 (webkit_web_view_get_encoding):
1311 2010-04-07 Andrey Kosyakov <caseq@chromium.org>
1313 Reviewed by Yury Semikhatsky.
1315 Removed redundant FrameLoaderClient::dispatchDidLoadResourceByXMLHttpRequest()
1316 https://bugs.webkit.org/show_bug.cgi?id=36949
1318 * WebCoreSupport/FrameLoaderClientGtk.cpp:
1319 * WebCoreSupport/FrameLoaderClientGtk.h:
1321 2010-04-01 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
1323 Reviewed by Holger Freyther.
1325 [GTK] webkit_get_default_session() should make sure webkit_init() is called
1326 https://bugs.webkit.org/show_bug.cgi?id=36754
1328 Make sure global functions that do not require a WebKitWebView to
1329 be created call webkit_init() before doing their job. Also add an
1330 API test to check for that.
1332 * tests/testglobals.c: Added.
1333 (test_globals_default_session):
1335 * webkit/webkitwebview.cpp:
1336 (webkit_get_default_session):
1337 (webkit_set_cache_model):
1338 (webkit_get_cache_model):
1340 2010-03-31 Marcus Bulach <bulach@chromium.org>
1342 Reviewed by Jeremy Orlow.
1344 Adds Geolocation param for cancelGeolocationPermissionRequestForFrame.
1345 https://bugs.webkit.org/show_bug.cgi?id=35031
1347 * WebCoreSupport/ChromeClientGtk.cpp:
1348 (WebKit::ChromeClient::cancelGeolocationPermissionRequestForFrame):
1349 * WebCoreSupport/ChromeClientGtk.h:
1351 2010-03-30 Gavin Barraclough <barraclough@apple.com>
1353 Rubber stamped by Sam Weinig.
1355 https://bugs.webkit.org/show_bug.cgi?id=36866
1358 * WebCoreSupport/ChromeClientGtk.cpp:
1359 * WebCoreSupport/ContextMenuClientGtk.cpp:
1360 * WebCoreSupport/EditorClientGtk.cpp:
1361 * WebCoreSupport/FrameLoaderClientGtk.cpp:
1362 * WebCoreSupport/InspectorClientGtk.cpp:
1363 * gdom/ConvertToGCharPrivate.h:
1364 * webkit/webkitdownload.cpp:
1365 * webkit/webkithittestresult.cpp:
1366 * webkit/webkitnetworkrequest.cpp:
1367 * webkit/webkitprivate.h:
1368 * webkit/webkitsecurityorigin.cpp:
1369 * webkit/webkitwebdatabase.cpp:
1370 * webkit/webkitwebframe.cpp:
1371 * webkit/webkitwebhistoryitem.cpp:
1372 (webkit_web_history_item_finalize):
1373 (webkit_web_history_item_get_target):
1374 * webkit/webkitwebresource.cpp:
1375 * webkit/webkitwebsettings.cpp:
1376 * webkit/webkitwebview.cpp:
1378 2010-03-28 Alexey Proskuryakov <ap@apple.com>
1380 Build fix. Include WindowsKeyboardCodes.h instead of KeyboardCodes.h.
1382 * WebCoreSupport/EditorClientGtk.cpp:
1384 2010-03-27 Sergio Villar Senin <svillar@igalia.com>
1386 Reviewed by Eric Seidel.
1388 FrameLoader emits onload-event when handling
1389 dispatchDidHandleOnloadEvents
1391 [GTK] Improve reporting of frame loader callbacks in DRT
1392 https://bugs.webkit.org/show_bug.cgi?id=36454
1394 * WebCoreSupport/FrameLoaderClientGtk.cpp:
1395 (WebKit::FrameLoaderClient::dispatchDidHandleOnloadEvents):
1396 implemented, now it emits onload-event signal
1397 * webkit/webkitwebview.cpp: added onload-event signal
1399 2010-03-25 Sergio Villar Senín <svillar@igalia.com>
1401 Reviewed by Xan Lopez.
1403 Added new API webkit_web_back_forward_list_clear. This function
1404 clears the back forward list
1406 [GTK] http/history tests are failing
1407 https://bugs.webkit.org/show_bug.cgi?id=36173
1409 * tests/testwebbackforwardlist.c:
1410 (test_webkit_web_back_forward_list_clear):
1411 (main): added new unit test for the new API
1412 * webkit/webkitwebbackforwardlist.cpp:
1413 (webkit_web_back_forward_list_clear):
1414 * webkit/webkitwebbackforwardlist.h: new function that clears the
1417 2010-03-24 Kent Tamura <tkent@chromium.org>
1419 Reviewed by Darin Adler.
1421 Make Icon::createIconForFiles() optional.
1422 https://bugs.webkit.org/show_bug.cgi?id=35072
1424 - Rename iconForFiles() to chooseIconForFiles().
1425 - Call Icon::createIconForFiles() from chooseIconForFiles().
1427 * WebCoreSupport/ChromeClientGtk.cpp:
1428 * WebCoreSupport/ChromeClientGtk.h:
1430 2010-03-23 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
1432 Reviewed by Holger Freyther.
1434 [GTK] Does not build with latest GTK+ development release
1435 https://bugs.webkit.org/show_bug.cgi?id=36398
1437 Fix building with newest GTK+ versions.
1439 * WebCoreSupport/ChromeClientGtk.cpp:
1440 (WebKit::ChromeClient::windowRect):
1441 (WebKit::ChromeClient::setWindowRect):
1442 (WebKit::ChromeClient::unfocus):
1443 (WebKit::ChromeClient::canTakeFocus):
1444 (WebKit::ChromeClient::contentsSizeChanged):
1445 * webkit/webkitprivate.cpp:
1446 (currentToplevelCallback):
1447 * webkit/webkitwebframe.cpp:
1448 (webkit_web_frame_print_full):
1449 (webkit_web_frame_print):
1450 * webkit/webkitwebview.cpp:
1451 (webkit_web_view_grab_focus):
1452 (webkit_web_view_focus_in_event):
1453 (webkit_web_view_script_dialog):
1455 2010-03-18 Philip Chimento <philip.chimento@gmail.com>
1457 Reviewed by Oliver Hunt.
1459 Setting the GObject WebKitWebView property 'window-features' to NULL
1461 https://bugs.webkit.org/show_bug.cgi?id=36144
1463 * tests/testwebview.c: Add unit test for this bug.
1464 * webkit/webkitwebview.cpp: Don't allow the 'window-features' property
1466 * webkit/webkitwebwindowfeatures.cpp:
1467 (webkit_web_window_features_equal): Don't examine the members of either
1468 web_window_features argument if either is NULL, just return that they
1469 are not equal. Additionally, if they are the same object, return that
1472 2010-03-16 Xan Lopez <xlopez@igalia.com>
1474 Reviewed by Gustavo Noronha.
1476 Update for 1.1.90 release.
1480 2010-03-16 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
1482 Fix one too many empty lines in documentation of
1483 window-obejct-cleared signal, which caused the documentation to be
1484 rendered funny. Thanks to Martin Robinson for noticing.
1486 * webkit/webkitwebview.cpp:
1488 2010-03-16 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
1490 Unreviewed. Add missing symbol to GeoLocation documentation
1493 * docs/webkitgtk-sections.txt:
1495 2010-03-16 Martin Robinson <mrobinson@webkit.org>
1497 Reviewed by Xan Lopez.
1499 can't input korean into lower all input box except adress input box in webkit gtk launcher
1500 https://bugs.webkit.org/show_bug.cgi?id=32290
1502 Make the GTK+ EditorClient properly handle different types of input module
1503 behavior such as commit and preedit signals that happen outside of key event
1504 filtering and multiple times in a row. Filter keyup events as well as keydown
1505 events and call gtk_im_context_focus_{in/out} when the WebView focus changes.
1507 Added tests for this behavior to the GTK+ unit tests.
1509 * WebCoreSupport/EditorClientGtk.cpp:
1510 (WebKit::imContextCommitted): Handle this signal properly when it happens outside of
1511 key event filtering.
1512 (WebKit::imContextPreeditChanged): Immediately update the preedit state and do not reject
1513 empty preedits, so that cancellation works properly.
1514 (WebKit::EditorClient::updatePendingComposition): Add this method, which handles the
1515 situation where a commit signal happens when there is still a pending commit.
1516 (WebKit::EditorClient::shouldBeginEditing): Clear pending composition state before editing
1518 (WebKit::EditorClient::shouldEndEditing): Clear pending composition state before editing ends.
1519 (WebKit::EditorClient::handleKeyboardEvent): No longer special case preedits which happen during
1520 key event filtering. When confirming a pending composition use insertText instead of confirmComposition.
1521 (WebKit::EditorClient::handleInputMethodKeydown):
1522 * WebCoreSupport/EditorClientGtk.h: Make pendingComposition a member, so that multiple WebViews
1524 (WebKit::EditorClient::webView): Added.
1525 (WebKit::EditorClient::treatContextCommitAsKeyEvent): Added.
1526 (WebKit::EditorClient::clearPendingComposition): Added.
1527 * tests/testkeyevents.c:
1528 (test_keypress_events_load_status_cb):
1530 (setup_keyevent_test):
1531 (test_keypress_events):
1532 (element_text_equal_to):
1533 (test_ime_load_status_cb):
1536 * webkit/webkitwebview.cpp:
1537 (webkit_web_view_key_release_event):
1538 (webkit_web_view_focus_in_event):
1540 2010-03-16 Yury Semikhatsky <yurys@chromium.org>
1542 Reviewed by Pavel Feldman.
1544 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.
1546 Introduce InspectorFrontendClient that would provide InspectorFrontend with an interface to the embedder
1547 https://bugs.webkit.org/show_bug.cgi?id=35036
1549 * WebCoreSupport/InspectorClientGtk.cpp:
1550 (WebKit::notifyWebViewDestroyed):
1551 (WebKit::InspectorClient::InspectorClient):
1552 (WebKit::InspectorClient::inspectorDestroyed):
1553 (WebKit::InspectorClient::openInspectorFrontend):
1554 (WebKit::InspectorClient::highlight):
1555 (WebKit::InspectorClient::hideHighlight):
1556 (WebKit::InspectorClient::populateSetting):
1557 (WebKit::InspectorClient::storeSetting):
1558 (WebKit::InspectorFrontendClient::InspectorFrontendClient):
1559 (WebKit::InspectorFrontendClient::~InspectorFrontendClient):
1560 (WebKit::InspectorFrontendClient::destroyInspectorWindow):
1561 (WebKit::InspectorFrontendClient::localizedStringsURL):
1562 (WebKit::InspectorFrontendClient::hiddenPanels):
1563 (WebKit::InspectorFrontendClient::bringToFront):
1564 (WebKit::InspectorFrontendClient::closeWindow):
1565 (WebKit::InspectorFrontendClient::attachWindow):
1566 (WebKit::InspectorFrontendClient::detachWindow):
1567 (WebKit::InspectorFrontendClient::setAttachedWindowHeight):
1568 (WebKit::InspectorFrontendClient::inspectedURLChanged):
1569 * WebCoreSupport/InspectorClientGtk.h:
1571 2010-03-15 Joanmarie Diggs <joanmarie.diggs@gmail.com>
1573 Reviewed by Holger Freyther.
1575 https://bugs.webkit.org/show_bug.cgi?id=35502
1576 [Gtk] Objects of ATK_ROLE_TABLE should not implement AtkText
1578 New test to be sure we do not accidentally implement AtkText for tables
1581 (testWebkitAtkGetTextInTable):
1584 2010-03-09 Philippe Normand <pnormand@igalia.com>
1586 Reviewed by Holger Freyther.
1588 [GTK] GTK_WIDGET_IS_SENSITIVE is deprecated in GTK+ 2.20
1589 https://bugs.webkit.org/show_bug.cgi?id=35909
1591 * webkit/webkitwebview.cpp: GTK_WIDGET_IS_SENSITIVE has been
1592 deprecated in gtk 2.20. Use gtk_widget_is_sensitive when available.
1594 2010-03-12 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
1596 Rubber-stamped by Kenneth Rohde Christiansen.
1598 Misc documentation fixes. Fixes (almost) all warnings emitted by
1599 the documentation build process. Only the broken references to JSC
1602 * webkit/webkitsecurityorigin.cpp:
1603 * webkit/webkitwebbackforwardlist.cpp:
1604 * webkit/webkitwebdatasource.cpp:
1605 * webkit/webkitwebframe.cpp:
1606 * webkit/webkitwebhistoryitem.cpp:
1607 * webkit/webkitwebinspector.cpp:
1608 (webkit_web_inspector_class_init):
1609 * webkit/webkitwebsettings.cpp:
1610 (webkit_web_settings_class_init):
1611 * webkit/webkitwebview.cpp:
1612 (DNDContentsRequest::webkit_web_view_class_init):
1614 2010-03-11 Anders Carlsson <andersca@apple.com>
1616 Reviewed by David Hyatt.
1618 Remove invalidateContents, it isn't used and it never makes sense to only invalidate the contents.
1620 * WebCoreSupport/ChromeClientGtk.cpp:
1621 * WebCoreSupport/ChromeClientGtk.h:
1623 2010-03-09 Philippe Normand <pnormand@igalia.com>
1625 Reviewed by Gustavo Noronha Silva.
1627 [GTK] testkeyevents doesn't stop if input event injection fails
1628 https://bugs.webkit.org/show_bug.cgi?id=35922
1630 * tests/testkeyevents.c:
1631 (load_status_cb): Added a safeguard to exit from the test if the
1632 input event injection failed.
1634 2010-03-09 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
1636 Unreviewed. Documentation control files update for 1.1.23.
1638 * docs/webkitgtk-docs.sgml:
1640 2010-03-08 Csaba Osztrogonác <ossy@webkit.org>
1642 [GTK] Unreviewed buildfix after r55688.
1644 * webkit/webkitdownload.cpp:
1645 (webkit_download_start):
1647 2010-03-02 Adam Treat <atreat@rim.com>
1649 Reviewed by Dave Hyatt.
1651 Adapt the gtk port to the refactoring of repaint methods.
1653 https://bugs.webkit.org/show_bug.cgi?id=34214
1655 * WebCoreSupport/ChromeClientGtk.cpp:
1656 * WebCoreSupport/ChromeClientGtk.h:
1658 2010-03-08 Eric Uhrhane <ericu@chromium.org>
1660 Reviewed by David Levin.
1662 Remove the now-redundant Settings fields for the Database
1663 https://bugs.webkit.org/show_bug.cgi?id=35763
1665 No new tests; this code isn't called.
1667 * webkit/webkitwebview.cpp: Remove the calls into Settings.
1668 (DNDContentsRequest::webkit_web_view_update_settings):
1669 (DNDContentsRequest::webkit_web_view_settings_notify):
1671 2010-03-06 Arno Renevier <arno@renevier.net>
1673 Reviewed by Eric Seidel.
1675 [Gtk] GEOLOCATION_POLICY_DECISION_CANCELLED unused
1676 https://bugs.webkit.org/show_bug.cgi?id=35803
1678 * webkit/webkitwebview.cpp:
1679 (DNDContentsRequest::webkit_web_view_class_init):
1681 2010-03-03 Antonio Gomes <tonikitoo@webkit.org>
1683 Reviewed by Gustavo Noronha.
1684 Patch by Antonio Gomes <tonikitoo@webkit.org>
1686 [Gtk] Add 'enable-spatial-navigation' setting for toggle Spatial Navigation on/off
1687 https://bugs.webkit.org/show_bug.cgi?id=35701
1689 * webkit/webkitwebsettings.cpp:
1690 (webkit_web_settings_class_init):
1691 (webkit_web_settings_set_property):
1692 (webkit_web_settings_get_property):
1693 (webkit_web_settings_copy):
1694 * webkit/webkitwebview.cpp:
1695 (DNDContentsRequest::webkit_web_view_update_settings):
1696 (DNDContentsRequest::webkit_web_view_settings_notify):
1698 2010-03-03 Fridrich Strba <fridrich.strba@bluewin.ch>
1700 Reviewed by Xan Lopez.
1702 Miscellaneous little fixes for the windows build of webkit-gtk
1703 https://bugs.webkit.org/show_bug.cgi?id=35640
1705 * webkit/webkitdownload.cpp: Windows headers define ERROR
1706 which breaks the build. Undef ERROR if it is defined.
1708 2010-03-03 Philippe Normand <pnormand@igalia.com>
1710 Unreviewed, build fix after r55452.
1712 * webkit/webkitwebview.cpp:
1713 (DNDContentsRequest::webkit_web_view_settings_notify): added missing braces.
1715 2010-03-02 Eric Uhrhane <ericu@chromium.org>
1717 Reviewed by David Levin.
1719 Move database enable bit fully out of settings
1720 This is stage one of a three-stage commit [webkit, then chromium, then
1721 webkit again]. In this change I'm adding calls to
1722 Database::setIsAvailable inside Settings::setDatabaseEnabled and
1723 anywhere else that called it, and switching webkit fully over to using
1724 that flag [added in a previous checkin]. Phase two will remove
1725 Chromium's use of Settings for the Database, and phase three will remove
1726 the Setting for the Database enable entirely, leaving only
1727 Database::isAvailable/setIsAvailable.
1729 No new tests; tested by existing storage tests.
1731 https://bugs.webkit.org/show_bug.cgi?id=35310
1733 * webkit/webkitwebview.cpp: Add calls to Database::setIsAvailable
1734 (DNDContentsRequest::webkit_web_view_update_settings):
1735 (DNDContentsRequest::webkit_web_view_settings_notify):
1737 2010-03-02 Arno Renevier <arno@renevier.net>
1739 Reviewed by Gustavo Noronha Silva.
1741 [Gtk] implements ChromeClient::requestGeolocationPermissionForFrame
1742 https://bugs.webkit.org/show_bug.cgi?id=35210
1744 * WebCoreSupport/ChromeClientGtk.cpp:
1745 * WebCoreSupport/ChromeClientGtk.h:
1746 * docs/webkitgtk-sections.txt:
1748 * webkit/webkitdefines.h:
1749 * webkit/webkitgeolocationpolicydecision.cpp: Added.
1750 (webkit_geolocation_policy_decision_class_init):
1751 (webkit_geolocation_policy_decision_init):
1752 (webkit_geolocation_policy_decision_new):
1753 (webkit_geolocation_policy_allow):
1754 (webkit_geolocation_policy_deny):
1755 * webkit/webkitgeolocationpolicydecision.h: Added.
1756 * webkit/webkitprivate.h:
1757 * webkit/webkitwebview.cpp:
1758 (DNDContentsRequest::webkit_web_view_class_init):
1759 * webkitmarshal.list:
1761 2010-03-01 José Millán Soto <jmillan@igalia.com>
1763 Reviewed by Gustavo Noronha Silva.
1765 [GTK] Right click does not activate text entry
1766 https://bugs.webkit.org/show_bug.cgi?id=29177
1768 Makes the frame handle the mouse click event before sending the
1771 * webkit/webkitwebview.cpp:
1772 (PopupMenuPositionFunc):
1773 Function created to make the popup menu appear in the correct position, especially
1774 when invoked from the keyboard.
1775 (webkit_web_view_forward_context_menu_event):
1776 Mouse click event is sent to frame before creating context menu,
1777 PopupMenuPositionFunc used to determine the position where the menu should appear.
1778 (webkit_web_view_popup_menu_handler):
1779 Improved focused node position detection. Event button set to right button.
1781 2010-03-01 Jakob Petsovits <jpetsovits@rim.com>
1783 Reviewed by Adam Barth.
1785 Adapt to the new ZoomMode enum.
1786 https://bugs.webkit.org/show_bug.cgi?id=35347
1788 * webkit/webkitwebview.cpp:
1789 (DNDContentsRequest::webkit_web_view_apply_zoom_level):
1791 2010-03-01 Kalle Vahlman <zuh@iki.fi>
1793 Reviewed by Gustavo Noronha Silva.
1795 Queue a resize when either of the content dimensions change
1796 https://bugs.webkit.org/show_bug.cgi?id=35489
1798 The check for size changes only queued a resize if both of the content
1799 dimensions change, leaving the widget size out-of-sync if eg. only the
1802 * WebCoreSupport/ChromeClientGtk.cpp:
1804 2009-12-04 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
1806 Reviewed by Xan Lopez.
1808 [GTK] Needs proper reporting of frame loader callbacks, in DRT
1809 https://bugs.webkit.org/show_bug.cgi?id=32170
1811 Add new signal to report when the document load is finished for a
1814 * WebCoreSupport/FrameLoaderClientGtk.cpp:
1815 (WebKit::FrameLoaderClient::dispatchDidFinishDocumentLoad):
1816 * webkit/webkitwebview.cpp:
1817 (webkit_web_view_class_init):
1819 2010-02-26 Antonio Gomes <tonikitoo@webkit.org>
1821 Complementary commit of r55300. Missing "notify::" to signal name.
1823 * tests/testwebview.c:
1824 (test_webkit_web_view_grab_focus):
1826 2010-02-26 Antonio Gomes <tonikitoo@webkit.org>
1828 Reviewed by Xan Lopez.
1829 Patch by Antonio Gomes <tonikitoo@webkit.org>
1831 [GTK] Make webkit_web_view_grab_focus to active focus controller.
1832 https://bugs.webkit.org/show_bug.cgi?id=35402
1834 When programatically setting focus to an element in an inner document,
1835 calling "hasFocus()" from this document returns FALSE, because
1836 document's FocusController is not activated. It does not happen
1837 if |document| is the main document.
1839 Making webkit_web_view_grab_focus to actually activate the FocusController,
1842 * tests/testwebview.c:
1844 (test_webkit_web_view_grab_focus):
1845 * webkit/webkitwebview.cpp:
1846 (webkit_web_view_grab_focus):
1848 2010-02-26 Alejandro G. Castro <alex@igalia.com>
1852 Reverted last patch (r55295), it causes problems with the frames.
1854 * WebCoreSupport/ChromeClientGtk.cpp:
1856 2010-02-19 Alejandro G. Castro <alex@igalia.com>
1858 Reviewed by Xan Lopez.
1860 [GTK] Some region checks in scroll are not required
1861 https://bugs.webkit.org/show_bug.cgi?id=35142
1863 Removes some of the operations checking the moved and invalidated
1864 regions when scrolling, it is done already in
1865 gdk_window_move_region.
1867 * WebCoreSupport/ChromeClientGtk.cpp:
1869 2010-02-25 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
1871 Reviewed by Xan Lopez.
1873 [Gtk] crashed when destroying
1874 https://bugs.webkit.org/show_bug.cgi?id=31271
1876 NULL-check the page before relaying the focus out event, since
1877 this might happen when destroying the widget without destroying
1878 its parent, and we currently crash.
1880 * tests/testwebview.c:
1882 (test_webkit_web_view_destroy):
1884 * webkit/webkitwebview.cpp:
1885 (webkit_web_view_focus_in_event):
1887 2010-02-24 Krzysztof Kotlenga <pocek@users.sf.net>
1889 Reviewed by Gustavo Noronha Silva.
1891 [Gtk] Creation of a WebkitWebView widget is very slow
1892 https://bugs.webkit.org/show_bug.cgi?id=30032
1894 * WebCoreSupport/EditorClientGtk.cpp:
1895 (WebKit::EditorClient::ignoreWordInSpellDocument): Change 'langs' to 'dicts'
1896 to reflect the fact that the list just holds Enchant dictionaries now.
1897 (WebKit::EditorClient::learnWord): Ditto.
1898 (WebKit::EditorClient::checkSpellingOfString): Ditto.
1899 (WebKit::EditorClient::getGuessesForWord): Ditto.
1900 * webkit/webkitprivate.h: Remove the now unused SpellLanguage struct.
1901 * webkit/webkitwebsettings.cpp: Change function call to reflect new
1902 webkit_web_settings_get_enchant_dicts name.
1903 (get_enchant_broker): Add this method which returns the enchant broker singleton.
1904 (free_spell_checking_language): The list contents have changed, so change
1905 the way each element is freed.
1906 (webkit_web_settings_finalize): Change to reflect 'spell_checking_languages_list'
1907 to 'enchant_dicts' member name change.
1908 (webkit_web_settings_set_property): Use the broker singleton here instead of making
1909 a new one for each language. The Enchant dictionary is now the list payload.
1910 (webkit_web_settings_copy): More name-change updates.
1911 (webkit_web_settings_get_enchant_dicts): Ditto.
1913 2010-02-23 Leandro Pereira <leandro@profusion.mobi>
1915 Reviewed by Gustavo Noronha Silva.
1917 Fixes references to GOwnPtr and GRefPtr so the GTK+ port builds
1919 http://webkit.org/b/35084
1921 * WebKit/gtk/webkit/webkitwebview.cpp:
1923 2010-02-23 Shinichiro Hamaji <hamaji@chromium.org>
1925 Reviewed by Eric Seidel.
1927 [Gtk] Implement layoutTestController.numberOfPages
1928 https://bugs.webkit.org/show_bug.cgi?id=35228
1930 * webkit/webkitprivate.h:
1931 * webkit/webkitwebframe.cpp:
1932 (webkit_web_frame_number_of_pages):
1934 2010-02-23 José Millán Soto <jmillan@igalia.com>
1936 Reviewed by Xan Lopez.
1938 [Gtk] Server message not shown on http authentication
1939 https://bugs.webkit.org/show_bug.cgi?id=34219
1941 * webkit/webkitsoupauthdialog.c:
1943 Server message is displayed, messageLabel and message variables were
1944 renamed to avoid confusion.
1946 2010-02-23 Steve Block <steveblock@google.com>
1948 Reviewed by Darin Adler.
1950 Adds ChromeClient::cancelGeolocationPermissionRequestForFrame
1951 https://bugs.webkit.org/show_bug.cgi?id=34962
1953 This method is required so that a Geolocation object can cancel an
1954 asynchronous permission request. This allows the chrome client to cancel
1955 any UI it is showing for the permission request.
1957 * WebCoreSupport/ChromeClientGtk.h:
1958 (WebKit::ChromeClient::cancelGeolocationPermissionRequestForFrame):
1960 2010-02-23 Xan Lopez <xlopez@igalia.com>
1962 Reviewed by Gustavo Noronha.
1964 Do not do unnecessary work during size_allocate.
1966 FrameView::resize will already queue a layout, so there's no need
1967 to force one ourselves. On top of that, the layout function
1968 already adjusts the view size when needed, so there's no need to
1969 do that manually either. No change in the layout tests or unit
1972 * webkit/webkitwebview.cpp:
1973 (webkit_web_view_size_allocate):
1975 2010-02-22 Xan Lopez <xlopez@igalia.com>
1977 Reviewed by Gustavo Noronha.
1983 2010-02-22 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
1985 Reviewed by Xan Lopez.
1987 [Soup] loses information related to message flags when converting from/to Resource{Request,Response}
1988 https://bugs.webkit.org/show_bug.cgi?id=35093
1990 Update the flags that are stored in the request, when the response
1993 * WebCoreSupport/FrameLoaderClientGtk.cpp:
1994 (WebKit::FrameLoaderClient::dispatchDidReceiveResponse):
1996 2010-02-20 Gustavo Noronha Silva <gns@gnome.org>
1998 Unreviewed. Trivial fix - unnecessary variable got added by
2001 * WebCoreSupport/FrameLoaderClientGtk.cpp:
2002 (WebKit::FrameLoaderClient::dispatchDidReceiveResponse):
2004 2010-02-18 Diego Escalante Urrelo <descalante@igalia.com>
2006 Reviewed by Gustavo Noronha Silva.
2008 [GTK] WebKitDownload documentation is incomplete
2009 https://bugs.webkit.org/show_bug.cgi?id=35018
2011 Concretely the error signal was undocumented. Also two relevant enums
2014 * docs/webkitgtk-sections.txt:
2015 * docs/webkitgtk.types:
2016 * webkit/webkitdownload.cpp:
2017 (webkit_download_class_init):
2019 2010-02-17 Dmitry Titov <dimich@chromium.org>
2021 Reviewed by David Levin, Darin Fisher, Simon Hausmann.
2023 When a live iframe element is moved between pages, it still depends on the old page.
2024 https://bugs.webkit.org/show_bug.cgi?id=34382
2026 * WebCoreSupport/FrameLoaderClientGtk.cpp:
2027 (WebKit::FrameLoaderClient::didTransferChildFrameToNewDocument):
2028 Added empty implementation of a new virtual method.
2030 * WebCoreSupport/FrameLoaderClientGtk.h:
2032 2010-02-17 Kent Tamura <tkent@chromium.org>
2034 Reviewed by Eric Seidel.
2036 Introduces new Icon loading interface in order to support
2037 asynchronous loading.
2038 https://bugs.webkit.org/show_bug.cgi?id=32054
2040 Add an empty implementation of ChromeClient::iconForFiles().
2042 * WebCoreSupport/ChromeClientGtk.cpp:
2043 (WebKit::ChromeClient::iconForFiles):
2044 * WebCoreSupport/ChromeClientGtk.h:
2046 2010-02-17 Xan Lopez <xlopez@igalia.com>
2048 Reviewed by Gustavo Noronha.
2050 Rename 'enable-java' setting to 'enable-java-applet', since it
2051 only controls whether <applet> is supported or not instead of
2052 whether all Java content is supported or not.
2054 * webkit/webkitwebsettings.cpp:
2055 (webkit_web_settings_class_init):
2056 (webkit_web_settings_set_property):
2057 (webkit_web_settings_get_property):
2058 (webkit_web_settings_copy):
2059 * webkit/webkitwebview.cpp:
2060 (DNDContentsRequest::webkit_web_view_update_settings):
2061 (DNDContentsRequest::webkit_web_view_settings_notify):
2063 2010-02-17 Xan Lopez <xlopez@igalia.com>
2065 Reviewed by Gustavo Noronha.
2067 [Linux] Webkit incompatible with Java plugins
2068 https://bugs.webkit.org/show_bug.cgi?id=24912
2070 Implement FrameLoaderClient::createJavaAppletWidget.
2072 * WebCoreSupport/FrameLoaderClientGtk.cpp:
2073 (WebKit::FrameLoaderClient::createJavaAppletWidget):
2075 2010-02-17 Xan Lopez <xlopez@igalia.com>
2077 Reviewed by Gustavo Noronha.
2079 [Linux] Webkit incompatible with Java plugins
2080 https://bugs.webkit.org/show_bug.cgi?id=24912
2082 Add a WebKitWebSetting to enable/disable the Java plugin support.
2084 * webkit/webkitwebsettings.cpp:
2085 (webkit_web_settings_class_init):
2086 (webkit_web_settings_set_property):
2087 (webkit_web_settings_get_property):
2088 (webkit_web_settings_copy):
2089 * webkit/webkitwebview.cpp:
2090 (webkit_web_view_update_settings):
2091 (webkit_web_view_settings_notify):
2093 2010-02-17 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
2095 Reviewed by Xan Lopez.
2097 Test that data URIs that cause downloads to be started do not crash.
2099 * tests/testdownload.c:
2100 (mime_type_policy_decision_requested_cb):
2101 (idle_quit_loop_cb):
2102 (test_webkit_download_data):
2105 2010-02-17 Philippe Normand <pnormand@igalia.com>
2107 Reviewed by Xan Lopez.
2109 Missing property warning after r54873
2110 https://bugs.webkit.org/show_bug.cgi?id=35023
2112 Add a new WebKitWebSettings setting, 'enable-file-access-from-file-uris', set to
2113 FALSE by default, that when enabled will assign each file:// URI
2114 their own security domain.
2116 * webkit/webkitwebsettings.cpp:
2117 (webkit_web_settings_class_init):
2118 (webkit_web_settings_set_property):
2119 (webkit_web_settings_get_property):
2120 (webkit_web_settings_copy):
2122 2010-02-16 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
2124 Reviewed by Xan Lopez.
2126 Check if the handle has a SoupMessage before trying to use
2127 it. This will be the case in non-HTTP(S) URLs.
2129 * webkit/webkitdownload.cpp:
2130 (webkit_download_new_with_handle):
2131 (webkit_download_start):
2133 2010-02-16 Xan Lopez <xlopez@igalia.com>
2135 Reviewed by Gustavo Noronha.
2137 Add a new WebKitWebSettings setting, 'auto-resize-window', set to
2138 FALSE by default, that when enabled will apply any resizes or
2139 moves done by a page through various DOM methods (moveTo,
2140 resizeTo, moveBy, resizeBy).
2142 * WebCoreSupport/ChromeClientGtk.cpp:
2143 * webkit/webkitwebsettings.cpp:
2144 (webkit_web_settings_class_init):
2145 (webkit_web_settings_set_property):
2146 (webkit_web_settings_get_property):
2147 (webkit_web_settings_copy):
2149 2010-02-15 Emilio Pozuelo Monfort <pochu27@gmail.com>
2151 Reviewed by Gustavo Noronha Silva.
2153 [GTK] Fails to build on GNU/Hurd because of PATH_MAX usage
2154 https://bugs.webkit.org/show_bug.cgi?id=34920
2156 Use dynamic allocation instead of fixed PATH_MAX size buffers to
2157 fix the build on GNU/Hurd, where PATH_MAX is undefined.
2159 * tests/testmimehandling.c:
2161 * tests/testwebview.c:
2164 2010-02-14 Diego Escalante Urrelo <descalante@igalia.com>
2166 Reviewed by Gustavo Noronha Silva.
2168 [gtk] WebKitDownload's currentSize property is guint, should be guint64
2169 https://bugs.webkit.org/show_bug.cgi?id=34829
2171 Actually use a guint64 for current-size property in WebKitDownload, we
2172 were using a guint which is likely the cause for wrong sizes for files
2175 * webkit/webkitdownload.cpp:
2177 2010-02-09 Gustavo Noronha Silva <gns@gnome.org>
2179 Reviewed by Xan Lopez.
2181 [GTK] Hits assertion on history back, with page cache enabled, in specific conditions
2182 https://bugs.webkit.org/show_bug.cgi?id=34773
2184 Make sure cached frames have their scrollbars disconnected from
2185 the WebView's adjustments.
2187 * WebCoreSupport/FrameLoaderClientGtk.cpp:
2188 (WebKit::FrameLoaderClient::savePlatformDataToCachedFrame):
2190 2010-02-09 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
2192 Reviewed by Xan Lopez.
2194 [GTK] Set GtkAdjustments on our FrameView when loading a page in the PageCache
2195 https://bugs.webkit.org/show_bug.cgi?id=34754
2197 Test that lower, and upper bounds are kept when goibg back with
2198 page cache enabled, and disabled. Page cache behaviour is still a
2199 bit broken (see FIXME).
2201 * tests/testwebview.c:
2204 (do_test_webkit_web_view_adjustments):
2205 (test_webkit_web_view_adjustments):
2208 2010-02-09 Xan Lopez <xlopez@igalia.com>
2210 Reviewed by Gustavo Noronha.
2212 [GTK] Set GtkAdjustments on our FrameView when loading a page in the PageCache
2213 https://bugs.webkit.org/show_bug.cgi?id=34754
2215 Set the Gtk Adjustments of the FrameViews when they are restored
2216 from the PageCache too. Right we only do it for the newly created
2217 FrameViews in transitionToCommittedForNewPage, but we it also
2218 needs to be done in the equilavent transition method for cached
2221 * WebCoreSupport/FrameLoaderClientGtk.cpp:
2222 (WebKit::postCommitFrameViewSetup):
2223 (WebKit::FrameLoaderClient::transitionToCommittedFromCachedFrame):
2224 (WebKit::FrameLoaderClient::transitionToCommittedForNewPage):
2226 2010-02-08 Xan Lopez <xlopez@igalia.com>
2228 Reviewed by Gustavo Noronha.
2230 [GTK] Implement FrameLoaderClient::hasWebView
2231 https://bugs.webkit.org/show_bug.cgi?id=34682
2233 Used for sanity-check ASSERTS in the FrameLoader code.
2235 * WebCoreSupport/FrameLoaderClientGtk.cpp:
2236 (WebKit::FrameLoaderClient::hasWebView):
2238 2010-02-08 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
2240 Reviewed by Xan Lopez.
2246 2010-02-05 Shinichiro Hamaji <hamaji@chromium.org>
2248 Reviewed by Gustavo Noronha Silva.
2250 [Gtk] Implement layoutTestController.pageNumberForElementById
2251 https://bugs.webkit.org/show_bug.cgi?id=34572
2253 * webkit/webkitprivate.h:
2254 * webkit/webkitwebframe.cpp:
2255 (webkit_web_frame_page_number_for_element_by_id):
2257 2010-02-04 Christian Dywan <christian@twotoasts.de>
2259 Reviewed by Gustavo Noronha Silva.
2261 [GTK] Add and cleanup return values of signals in view and frame
2262 https://bugs.webkit.org/show_bug.cgi?id=33484
2264 Add missing and cleanup return values of web frame and web view signals.
2266 * webkit/webkitwebframe.cpp:
2267 (webkit_web_frame_class_init):
2268 * webkit/webkitwebview.cpp:
2269 (DNDContentsRequest::webkit_web_view_class_init):
2271 2010-02-02 Gustavo Noronha Silva <gns@gnome.org>
2273 Reviewed by Xan Lopez.
2275 Changes in 1.1.20, and documentation control files update.
2278 * docs/webkitgtk-docs.sgml:
2280 2010-02-02 Martin Robinson <martin.james.robinson@gmail.com>
2282 Reviewed by Gustavo Noronha Silva.
2284 [GTK] When selection changes selections in other WebView are not collapsed
2285 https://bugs.webkit.org/show_bug.cgi?id=34043
2287 Collapse the selection of a WebView even when the new selection owner is
2290 * WebCoreSupport/PasteboardHelperGtk.cpp:
2291 (WebKit::clearClipboardContentsCallback): Only clear the DataObject we are setting
2292 is not the same as the one referenced in this callback. Use the same behavior for
2293 collapsing the selection.
2294 (WebKit::PasteboardHelperGtk::writeClipboardContents): Instead of recording a boolean
2295 record the actual data used while writing to the clipboard.
2297 2010-01-27 Martin Robinson <mrobinson@webkit.org>
2299 Reviewed by Gustavo Noronha Silva.
2301 [GTK] Expose the IM context via the API
2302 https://bugs.webkit.org/show_bug.cgi?id=33327
2304 Expose the GtkIMMultiContext as a property of WebKitWebView. This will
2305 allow embedders to generate the input method context menu entries and
2306 make testing certain IM context behavior possible.
2308 * webkit/webkitwebview.cpp:
2309 (webkit_web_view_get_property):
2310 (DNDContentsRequest::webkit_web_view_get_im_context):
2311 (DNDContentsRequest::webkit_web_view_class_init):
2313 2010-01-19 Joanmarie Diggs <joanmarie.diggs@gmail.com>
2315 Reviewed by Xan Lopez.
2317 https://bugs.webkit.org/show_bug.cgi?id=30883
2318 [Gtk] Implement AtkText for HTML elements which contain text
2320 Adds two news tests.
2323 (testWebkitAtkGetTextInParagraphAndBodySimple):
2324 (testWebkitAtkGetTextInParagraphAndBodyModerate):
2327 2010-01-19 Gustavo Noronha Silva <gns@gnome.org>
2329 Unreviewed. Changes to the test I forgot to make after a last
2330 minute change before landing 53294 - this causes make distcheck to
2333 * tests/testloading.c:
2334 (load_error_status_changed_cb):
2335 (test_loading_error):
2337 2010-01-19 Gustavo Noronha Silva <gns@gnome.org>
2339 Reviewed by Xan Lopez.
2341 News items for 1.1.19.
2345 2010-01-19 Gustavo Noronha Silva <gns@gnome.org>
2347 Reviewed by Xan Lopez.
2349 [GTK] More crashes related to the clipboard management
2350 https://bugs.webkit.org/show_bug.cgi?id=33746
2352 Pass the WebKitWebView object (which is a GObject, thus
2353 ref-counted) to the clipboard functions instead of passing the
2354 Page - this allows us to explicitely protect the object inbetween
2355 the clipboard call and its callbacks, which fixes the crash.
2357 * WebCoreSupport/EditorClientGtk.cpp:
2358 (WebKit::EditorClient::respondToChangedSelection):
2359 * WebCoreSupport/PasteboardHelperGtk.cpp:
2360 (WebKit::getClipboardContentsCallback):
2361 (WebKit::clearClipboardContentsCallback):
2362 (WebKit::PasteboardHelperGtk::writeClipboardContents):
2364 2010-01-15 Alejandro G. Castro <alex@igalia.com>
2366 Reviewed by Xan Lopez.
2368 Original patch by David Ronis <david.ronis@mcgill.ca>
2370 Upgrade 1.1.17->1.1.18 fails: GTK_WIDGET_TOPLEVEL' was not declared in this scope
2371 https://bugs.webkit.org/show_bug.cgi?id=33486
2373 Deprecated symbols replaced for gtk+ versions over 2.18.
2375 * WebCoreSupport/ChromeClientGtk.cpp:
2376 (WebKit::ChromeClient::windowRect):
2377 * webkit/webkitprivate.cpp:
2378 (currentToplevelCallback):
2379 * webkit/webkitwebframe.cpp:
2380 (webkit_web_frame_print_full):
2381 (webkit_web_frame_print):
2382 * webkit/webkitwebview.cpp:
2383 (webkit_web_view_focus_in_event):
2385 2010-01-14 Gustavo Noronha Silva <gns@gnome.org>
2387 Reviewed by Eric Seidel.
2389 [GTK] Crashes cleaning clipboard contents, with page cache enabled
2390 https://bugs.webkit.org/show_bug.cgi?id=32900
2392 Null-check the focus controller to avoid crashing. Could not find
2393 a way to reproduce this consistently, thus no test.
2395 * WebCoreSupport/PasteboardHelperGtk.cpp:
2396 (WebKit::clearClipboardContentsCallback):
2398 2010-01-14 Gustavo Noronha Silva <gns@gnome.org>
2400 Reviewed by Oliver Hunter.
2402 [GTK] couple fixes for signal emissions, and property notifications
2403 https://bugs.webkit.org/show_bug.cgi?id=33428
2405 Do not emit signals and property notifications for error
2406 pages. The notifications are not really useful for anything, you
2407 can get them back by overriding the error pages, and it avoids a
2410 * WebCoreSupport/FrameLoaderClientGtk.cpp:
2411 (WebKit::FrameLoaderClient::FrameLoaderClient):
2412 (WebKit::FrameLoaderClient::dispatchDidFinishLoad):
2413 (WebKit::FrameLoaderClient::dispatchDidReceiveIcon):
2414 (WebKit::FrameLoaderClient::dispatchDidStartProvisionalLoad):
2415 (WebKit::FrameLoaderClient::dispatchDidReceiveTitle):
2416 (WebKit::FrameLoaderClient::dispatchDidCommitLoad):
2417 (WebKit::FrameLoaderClient::dispatchDidFirstVisuallyNonEmptyLayout):
2418 (WebKit::FrameLoaderClient::dispatchDidFailLoad):
2419 * WebCoreSupport/FrameLoaderClientGtk.h:
2420 * tests/testloading.c:
2421 (load_error_status_changed_cb):
2422 (test_loading_error):
2424 2010-01-14 Martin Robinson <martin.james.robinson@gmail.com>
2426 Reviewed by Xan Lopez.
2428 [GTK] Enable DOM clipboard and drag-and-drop access
2429 https://bugs.webkit.org/show_bug.cgi?id=30623
2431 Use DataObjectGtk when setting and clearing pasteboard data on
2432 the GDK_SELECTION_PRIMARY clipboard.
2434 * WebCoreSupport/EditorClientGtk.cpp:
2435 (WebKit::EditorClient::respondToChangedSelection):
2436 (WebKit::EditorClient::EditorClient):
2437 * WebCoreSupport/EditorClientGtk.h:
2438 * WebCoreSupport/PasteboardHelperGtk.cpp:
2439 (WebKit::fillSelectionData):
2440 (WebKit::targetListForDataObject):
2441 (WebKit::getClipboardContentsCallback):
2442 (WebKit::clearClipboardContentsCallback):
2443 (WebKit::PasteboardHelperGtk::writeClipboardContents):
2444 * WebCoreSupport/PasteboardHelperGtk.h:
2446 2010-01-14 Alejandro G. Castro <alex@igalia.com>
2448 Reviewed by Xan Lopez.
2450 Review the tooltip implementation
2451 https://bugs.webkit.org/show_bug.cgi?id=32819
2453 Change the GTK tooltip implementation to avoid the workaround that
2454 we are currently using. Now we use a new private API to set the
2455 text and all the tooltip handling is done in the webview widget.
2457 * WebCoreSupport/ChromeClientGtk.cpp:
2458 * webkit/webkitprivate.h:
2459 * webkit/webkitwebview.cpp:
2460 (webkit_web_view_set_tooltip_text): Added, new private API.
2461 (webkit_web_view_query_tooltip): Added
2463 2010-01-09 Gustavo Noronha Silva <gns@gnome.org>
2465 Reviewed by Xan Lopez.
2467 [GTK] couple fixes for signal emissions, and property notifications
2468 https://bugs.webkit.org/show_bug.cgi?id=33428
2470 Fix commitedLoad being called where it should not, causing it to
2471 be called one time too many in some cases. We now match Qt's and
2472 Mac's behavior here.
2474 * WebCoreSupport/FrameLoaderClientGtk.cpp:
2475 (WebKit::FrameLoaderClient::finishedLoading):
2476 * tests/testloading.c:
2477 (load_error_status_changed_cb):
2479 2010-01-08 Gustavo Noronha Silva <gns@gnome.org>
2481 Reviewed by Xan Lopez.
2483 [GTK] loading test should use SoupServer instead of actual sites
2484 https://bugs.webkit.org/show_bug.cgi?id=33353
2486 Make all the loading tests use SoupServer, instead of fetching
2487 stuff from the Internet.
2489 * tests/testloading.c:
2492 (test_loading_status):
2493 (test_loading_error):
2494 (test_loading_cancelled):
2495 (load_wentback_status_changed_cb):
2497 (test_loading_goback):
2500 2010-01-06 Joanmarie Diggs <joanmarie.diggs@gmail.com>
2502 Reviewed by Xan Lopez.
2504 https://bugs.webkit.org/show_bug.cgi?id=30883
2505 [Gtk] Implement AtkText for HTML elements which contain text
2508 (test_webkit_atk_get_text_at_offset):
2509 (test_webkit_atk_get_text_at_offset_forms):
2510 (test_webkit_atk_get_text_at_offset_newlines):
2512 2010-01-05 Gustavo Noronha Silva <gns@gnome.org>
2514 Updated docs for 1.1.18 release.
2516 * docs/webkitgtk-docs.sgml:
2517 * docs/webkitgtk-sections.txt:
2519 2010-01-05 Xan Lopez <xlopez@igalia.com>
2521 Update for 1.1.18 release.
2525 2010-01-04 Maciej Stachowiak <mjs@apple.com>
2527 Reviewed by Darin Fisher.
2529 Reorganize, document and rename OS() platform macros.
2530 https://bugs.webkit.org/show_bug.cgi?id=33198
2532 Adapt to name changes.
2534 * webkit/webkitwebsettings.cpp:
2535 (webkit_get_user_agent):
2537 2010-01-04 Maciej Stachowiak <mjs@apple.com>
2539 Reviewed by Adam Barth.
2541 Reorganize, document and rename CPU() platform macros.
2542 https://bugs.webkit.org/show_bug.cgi?id=33145
2544 * webkit/webkitwebsettings.cpp:
2545 (webkit_get_user_agent):
2547 2009-12-20 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
2549 Reviewed by Xan Lopez.
2551 Remove emission of signal that does not exist.
2553 * WebCoreSupport/InspectorClientGtk.cpp:
2554 (WebKit::InspectorClient::inspectorDestroyed):
2555 (WebKit::InspectorClient::webViewDestroyed):
2557 2009-12-20 Xan Lopez <xlopez@igalia.com>
2559 Reviewed by Gustavo Noronha.
2561 Unset the adjustments in our FrameView when detaching from
2562 parent. Fixes some crashers when transitioning to a new page from
2565 * WebCoreSupport/FrameLoaderClientGtk.cpp:
2566 (WebKit::FrameLoaderClient::detachedFromParent2):
2568 2009-12-20 Xan Lopez <xlopez@igalia.com>
2570 Rubber-stamped by Gustavo Noronha.
2572 Disable the page cache by default since:
2574 - It was previously off by default.
2575 - There are still some issues when enabling it.
2577 * webkit/webkitwebsettings.cpp:
2578 (webkit_web_settings_class_init):
2580 2009-12-20 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
2582 Reviewed by Xan Lopez.
2584 Provides a new API to copy WebKitWebHistoryItem objects.
2586 * webkit/webkitwebhistoryitem.cpp:
2587 (webkit_web_history_item_copy):
2588 * webkit/webkitwebhistoryitem.h:
2590 2009-12-20 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
2592 Reviewed by Xan Lopez.
2594 Make sure we get the URI that is being loaded when updating
2595 WebKitWebFrame's knowledge of it. This was causing problems now
2596 that page cache is enabled.
2598 * WebCoreSupport/FrameLoaderClientGtk.cpp:
2599 (WebKit::FrameLoaderClient::dispatchDidCommitLoad):
2600 * tests/testloading.c:
2601 (load_goback_status_changed_cb):
2602 (load_wentback_status_changed_cb):
2603 (test_loading_goback):
2606 2009-12-20 Alejandro G. Castro <alex@igalia.com>
2608 Reviewed by Xan Lopez.
2610 [GTK] Cache control APIs
2611 https://bugs.webkit.org/show_bug.cgi?id=24001
2613 Original patch by Bobby Powers <bobby@laptop.org>
2615 Added new API to specify cache models for GTK port.
2617 * webkit/webkitprivate.cpp:
2618 (webkit_init): set a default cache model.
2619 * webkit/webkitwebview.cpp:
2620 * webkit/webkitwebview.h:
2621 (webkit_set_cache_model): Added function.
2622 (webkit_get_cache_model): Added function.
2624 2009-12-20 Xan Lopez <xlopez@igalia.com>
2626 Revert the previous patch, it introduces some failures in the
2629 * WebCoreSupport/FrameLoaderClientGtk.cpp:
2630 (WebKit::FrameLoaderClient::committedLoad):
2631 (WebKit::FrameLoaderClient::transitionToCommittedForNewPage):
2633 2009-12-20 Xan Lopez <xlopez@igalia.com>
2635 Reviewed by Gustavo Noronha.
2637 [GTK] crash when loading new page
2638 https://bugs.webkit.org/show_bug.cgi?id=32752
2640 Wait until the document is attached to adjust our alignments,
2641 since we need to make sure the FrameView in the document content
2642 render object matches the newly created FrameView for the new
2643 page, otherwise we'll try to relayout the wrong view.
2645 * WebCoreSupport/FrameLoaderClientGtk.cpp:
2646 (WebKit::FrameLoaderClient::committedLoad):
2647 (WebKit::FrameLoaderClient::transitionToCommittedForNewPage):
2649 2009-12-20 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
2651 Reviewed by Xan Lopez.
2653 Create a new WebKitDataSource object when attaching to a frame, if
2654 one does not exist. This may happen when we are fetching data from
2657 * WebCoreSupport/DocumentLoaderGtk.cpp:
2658 (WebKit::DocumentLoader::attachToFrame):
2659 (WebKit::DocumentLoader::unrefDataSource):
2661 2009-12-20 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
2663 Rubber-stamped by Xan Lopez.
2665 Make sure the text encoding machinery is initialized from the main
2666 frame, before opening the icon database.
2668 * webkit/webkitprivate.cpp:
2671 2009-12-19 Alejandro G. Castro <alex@igalia.com>
2673 Reviewed by Xan Lopez.
2675 Fixed the problem when pasting in the same window with the
2676 middle-button, now we store a reference to the range instead of
2677 requesting it every time, and we do not release it until the
2678 clipboard is requested.
2679 https://bugs.webkit.org/show_bug.cgi?id=28153
2681 * WebKit/gtk/WebCoreSupport/EditorClientGtk.cpp:
2682 * WebKit/gtk/WebCoreSupport/EditorClientGtk.h:
2684 2009-12-19 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
2686 Reviewed by Xan Lopez.
2688 Protect download objects when reporting errors, to make sure the
2689 download stays alive between the status change notification, and
2690 the error signal emission.
2692 * webkit/webkitdownload.cpp:
2693 (webkit_download_error):
2695 2009-12-18 Xan Lopez <xlopez@igalia.com>
2697 Reviewed by Gustavo Noronha.
2699 Fix gtk-doc of webkit_web_resource_new.
2701 * webkit/webkitwebresource.cpp:
2703 2009-12-18 Adam Roben <aroben@apple.com>
2707 * webkit/webkitprivate.cpp: Added #include.
2709 2009-12-18 Kalle Vahlman <kalle.vahlman@movial.com> and Alejandro G. Castro <alex@igalia.com>
2711 Reviewed by Gustavo Noronha Silva.
2713 [GTK] Add enable-page-cache property to WebSettings for disabling the Page Cache
2715 * webkit/webkitwebsettings.cpp:
2716 (_WebKitWebSettingsPrivate::):
2717 (_WebKitWebSettingsPrivate::webkit_web_settings_class_init):
2718 (_WebKitWebSettingsPrivate::webkit_web_settings_set_property):
2719 (_WebKitWebSettingsPrivate::webkit_web_settings_get_property):
2720 (_WebKitWebSettingsPrivate::webkit_web_settings_copy):
2721 * webkit/webkitwebview.cpp:
2723 2009-12-17 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
2725 Reviewed by Xan Lopez.
2727 More make distcheck fixes. Use a more robust solution to making
2728 sure we are in the correct directory for running these tests.
2730 * tests/testmimehandling.c:
2732 * tests/testwebview.c:
2735 2009-12-17 Christian Dywan <christian@twotoasts.de>
2737 Reviewed by Gustavo Noronha Silva.
2739 [GTK] Don't assume downloads are always synchronous
2740 http://bugs.webkit.org/show_bug.cgi?id=32359
2742 * tests/testdownload.c:
2743 (download_requested_cb):
2745 (test_webkit_download_perform):
2746 (test_webkit_download_synch):
2747 (test_webkit_download_asynch):
2748 (main): Test downloads synchronously and asynchronously.
2749 * webkit/webkitwebview.cpp:
2750 (webkit_web_view_class_init):
2751 (webkit_web_view_request_download): Only try to start a requested
2752 download if the destination URI is set and clarify the documentation.
2754 2009-12-17 Christian Dywan <christian@twotoasts.de>
2756 Reviewed by Xan Lopez.
2758 Deprecate the title-changed signal of WebKitWebFrame.
2760 * webkit/webkitwebframe.cpp:
2761 (webkit_web_frame_class_init):
2763 2009-12-17 Martin Robinson <martin.james.robinson@gmail.com>
2765 Reviewed by Gustavo Noronha Silva.
2767 [GTK] WebKit GTK needs a wrapper for ref counted glib/gobject structs
2768 https://bugs.webkit.org/show_bug.cgi?id=21599
2770 Convert a use of GOwnPtr for a reference counted type to GRefPtr.
2772 * WebCoreSupport/FrameLoaderClientGtk.cpp:
2773 (WebKit::FrameLoaderClient::createPlugin):
2775 2009-12-17 Evan Martin <evan@chromium.org>
2777 Reviewed by Xan Lopez.
2779 Expose the page workarounds ("quirks") setting to the GTK+ WebKit API.
2781 * webkit/webkitwebsettings.cpp:
2782 (webkit_web_settings_class_init):
2783 (webkit_web_settings_set_property):
2784 (webkit_web_settings_get_property):
2785 (webkit_web_settings_copy):
2786 * webkit/webkitwebview.cpp:
2787 (webkit_web_view_update_settings):
2789 2009-12-16 Dan Winship <danw@gnome.org>
2791 Reviewed by Gustavo Noronha Silva.
2793 Content-Encoding support
2795 https://bugs.webkit.org/show_bug.cgi?id=522772
2797 * webkit/webkitprivate.cpp:
2798 (webkit_init): add a SoupContentDecoder feature to the session
2800 2009-12-16 Christian Dywan <christian@twotoasts.de>
2802 Reviewed by Gustavo Noronha Silva.
2804 Deprecate the old loading signals load-started, load-committed,
2805 load-finished, load-progress-changed and change unit tests to use
2806 load-status instead.
2808 * tests/testmimehandling.c:
2809 (idle_quit_loop_cb):
2810 (test_mime_type): use notify::load-status
2811 * tests/testwebdatasource.c:
2812 (notify_load_status_unreachable_cb):
2813 (notify_load_status_cb):
2814 (test_webkit_web_data_source):
2815 (test_webkit_web_data_source_unreachable_uri): Remove uses of
2816 g_main_loop_is_running. It's an error if the loop is wrongly terminated.
2817 * tests/testwebresource.c:
2818 (notify_load_status_cb):
2819 (test_web_resource_loading):
2820 (notify_load_status_sub_cb):
2821 (test_web_resource_sub_resource_loading): use notify::load-status
2822 * tests/testwebview.c:
2823 (idle_quit_loop_cb):
2824 (test_webkit_web_view_icon_uri):
2825 * tests/testwindow.c:
2826 (notify_load_status_cb):
2827 (test_webkit_window_scrollbar_policy): use notify::load-status
2828 * webkit/webkitwebframe.cpp:
2829 (webkit_web_frame_class_init):
2830 * webkit/webkitwebview.cpp:
2831 (webkit_web_view_class_init): Deprecate old load signals.
2833 2009-12-16 Christian Dywan <christian@twotoasts.de>
2835 Reviewed by Gustavo Noronha Silva.
2837 Take into account favicon.ico in the webresource test.
2839 * tests/testwebresource.c:
2840 (test_web_resource_sub_resource_loading):
2842 2009-12-16 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
2844 Rubber-stamped by Xan Lopez.
2846 Add tab_key_cycles_through_elements to copies of
2849 * webkit/webkitwebsettings.cpp:
2850 (webkit_web_settings_copy):
2852 2009-12-16 Martin Robinson <martin.james.robinson@gmail.com>
2854 Reviewed by Gustavo Noronha Silva.
2856 [GTK] webkit_web_navigation_action_get_button() documentation
2857 https://bugs.webkit.org/show_bug.cgi?id=25555
2859 Small documentation improvement for webkit_web_navigation_action_get_button.
2861 * webkit/webkitwebnavigationaction.cpp:
2863 2009-12-13 Sam Weinig <sam@webkit.org>
2865 Reviewed by Dan Bernstein.
2867 Fix for https://bugs.webkit.org/show_bug.cgi?id=32499
2868 Add client based Geolocation provider
2870 Add first cut of a client based Geolocation provider. This is guarded by
2871 ENABLE(CLIENT_BASED_GEOLOCATION) and is off by default for now. This adds a
2872 GeolocationControllerClient interface that no-one currently implements,
2873 but will in a subsequent patch.
2875 * webkit/webkitwebview.cpp:
2876 (webkit_web_view_init):
2878 2009-12-14 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
2880 Reviewed by Xan Lopez.
2882 New setting to allow applications to completely suppress the
2883 default context menu that is generated by WebKit. This allows them
2884 to still pass the event to the default handler without needing to
2885 use ugly hacks such as handling populate-popup, and removing all
2886 the items from the default context menu.
2888 * webkit/webkitwebsettings.cpp:
2889 (webkit_web_settings_class_init):
2890 (webkit_web_settings_set_property):
2891 (webkit_web_settings_get_property):
2892 (webkit_web_settings_copy):
2893 * webkit/webkitwebview.cpp:
2894 (webkit_web_view_forward_context_menu_event):
2896 2009-12-13 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
2898 Reviewed by Xan Lopez.
2900 Also give the right click event to the frame's event handler, if
2901 there WebCore decides to not generate the default context
2902 menu. This fixes some pages that handle right-button clicks for
2903 things other than context menu creation.
2905 * webkit/webkitwebview.cpp:
2906 (webkit_web_view_forward_context_menu_event):
2908 2009-12-13 Christian Dywan <christian@twotoasts.de>
2910 Reviewed by Holger Freyther.
2912 http://bugs.webkit.org/show_bug.cgi?id=31014
2913 [Gtk] Build fails with gtk+-2.10 (no tested with older releases)
2915 Guard GTK+ 2.12 specific tooltip code with #ifdef.
2917 * WebCoreSupport/ChromeClientGtk.cpp:
2918 (WebKit::ChromeClient::mouseDidMoveOverElement):
2920 2009-12-11 Christian Dywan <christian@twotoasts.de>
2922 Reviewed by Eric Seidel.
2924 [GTK] Build with --disable-svg is broken
2925 http://bugs.webkit.org/show_bug.cgi?id=32361
2927 * webkit/webkitwebframe.cpp:
2928 (webkit_web_frame_pause_svg_animation): Fix ENABLE(SVG) guards.
2930 2009-12-10 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
2932 Reviewed by Xan Lopez.
2934 Add a missing null-check, that is causing some crash reports.
2936 * WebCoreSupport/FrameLoaderClientGtk.cpp:
2937 (WebKit::FrameLoaderClient::committedLoad):
2939 2009-12-10 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
2941 Reviewed by Xan Lopez.
2943 [GTK] Should provide an API to control the IconDatabase
2944 https://bugs.webkit.org/show_bug.cgi?id=32334
2946 First step towards a full IconDatabase API. This provides
2947 notification for pages with favicons, and lets clients handle
2950 * WebCoreSupport/FrameLoaderClientGtk.cpp:
2951 (WebKit::FrameLoaderClient::registerForIconNotification):
2952 (WebKit::FrameLoaderClient::dispatchDidReceiveIcon):
2953 * tests/resources/blank.ico: Added.
2954 * tests/testwebview.c: Added.
2956 (idle_quit_loop_cb):
2957 (icon_uri_changed_cb):
2959 (test_webkit_web_view_icon_uri):
2961 * webkit/webkitprivate.cpp:
2962 (closeIconDatabaseOnExit):
2964 * webkit/webkitprivate.h:
2965 * webkit/webkitwebview.cpp:
2966 (webkit_web_view_get_property):
2967 (webkit_web_view_finalize):
2968 (webkit_web_view_class_init):
2969 (webkit_web_view_get_icon_uri):
2970 * webkit/webkitwebview.h:
2972 2009-12-08 Christian Dywan <christian@twotoasts.de>
2974 Reviewed by Gustavo Noronha Silva.
2976 Point out the meaning of "Content-Disposition" when implementing the
2977 mime-type-policy-decision-requested signal.
2979 * webkit/webkitwebview.cpp:
2980 (webkit_web_view_class_init):
2982 2009-12-07 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
2984 Reviewed by Xan Lopez.
2986 [GTK] Doesn't respect Content-Disposition for downloads, and provides no way for apps to do that
2987 https://bugs.webkit.org/show_bug.cgi?id=32247
2989 Provide a way for applications to respect Content-Disposition, by
2990 fetching the WebKitNetworkResponse from the frame during
2991 mime-type-policy-decision-requested.
2993 * WebCoreSupport/FrameLoaderClientGtk.cpp:
2994 (WebKit::FrameLoaderClient::dispatchDecidePolicyForMIMEType): Download
2995 content when Content-Disposition is attachment.
2996 * tests/testmimehandling.c:
2998 (mime_type_policy_decision_requested_cb):
2999 * tests/testwebframe.c:
3000 (test_webkit_web_frame_response):
3002 * webkit/webkitprivate.cpp:
3004 * webkit/webkitwebframe.cpp:
3005 (webkit_web_frame_get_network_response):
3006 * webkit/webkitwebframe.h:
3008 2009-12-07 Gyuyoung Kim <gyuyoung@gmail.com>
3010 Reviewed by Eric Seidel.
3012 https://bugs.webkit.org/show_bug.cgi?id=32024
3013 [GTK] WebKit does not compile without JAVASCRIPT_DEBUGGER
3015 Fix build errors when javascript-debugger is disabled on GTK
3017 * webkit/webkitwebinspector.cpp:
3018 (webkit_web_inspector_set_property):
3019 (webkit_web_inspector_get_property):
3021 2009-12-07 Joanmarie Diggs <joanmarie.diggs@gmail.com>
3023 Reviewed by Xan Lopez.
3025 https://bugs.webkit.org/show_bug.cgi?id=25415
3026 [GTK][ATK] Please implement support for get_text_at_offset
3028 Eliminate the segfaults which occur when accessing the text interface now
3029 implemented by text controls.
3032 (test_webkit_atk_get_text_at_offset_textarea):
3033 (test_webkit_atk_get_text_at_offset_text_input):
3036 2009-12-06 Gustavo Noronha Silva <gns@gnome.org>
3038 Reviewed by Xan Lopez.
3040 New test to make sure we do not regress this feature anymore. All
3041 test files were created by me.
3043 [GTK] REGRESSION: webkit thinks it can render PDFs
3044 https://bugs.webkit.org/show_bug.cgi?id=32183
3046 * tests/resources/test.html: Added.
3047 * tests/resources/test.ogg: Added.
3048 * tests/resources/test.pdf: Added.
3049 * tests/resources/test.txt: Added.
3050 * tests/testmimehandling.c: Added.
3052 (idle_quit_loop_cb):
3053 (mime_type_policy_decision_requested_cb):
3061 2009-12-05 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
3063 Reviewed by Xan Lopez.
3065 Use a better URI for the unreachable test. localhost:80 is very
3068 * tests/testwebdatasource.c:
3069 (load_finished_unreachable_cb):
3070 (test_webkit_web_data_source_unreachable_uri):
3072 2009-12-03 Brady Eidson <beidson@apple.com>
3074 Reviewed by Sam Weinig.
3076 <rdar://problem/7214236> and http://webkit.org/b/32052 - Implement HTML5 state object history API
3078 * WebCoreSupport/FrameLoaderClientGtk.cpp:
3079 (WebKit::FrameLoaderClient::dispatchDidPushStateWithinPage):
3080 (WebKit::FrameLoaderClient::dispatchDidReplaceStateWithinPage):
3081 (WebKit::FrameLoaderClient::dispatchDidPopStateWithinPage):
3082 * WebCoreSupport/FrameLoaderClientGtk.h:
3084 2009-12-03 Pavel Feldman <pfeldman@dhcp-172-28-174-220.spb.corp.google.com>
3086 Reviewed by Timothy Hatcher.
3088 Web Inspector: Simplify the settings support in inspector controller.
3090 https://bugs.webkit.org/show_bug.cgi?id=32076
3092 * WebCoreSupport/InspectorClientGtk.cpp:
3093 (WebKit::InspectorClient::populateSetting):
3094 (WebKit::InspectorClient::storeSetting):
3095 * WebCoreSupport/InspectorClientGtk.h:
3097 2009-12-03 Ben Murdoch <benm@google.com>
3099 Reviewed by Brady Eidson.
3101 [Android] The FrameLoaderClient is unaware of BackForwardList changes.
3102 https://bugs.webkit.org/show_bug.cgi?id=31914
3104 * WebCoreSupport/FrameLoaderClientGtk.cpp:
3105 (WebKit::FrameLoaderClient::dispatchDidAddBackForwardItem): Add an empty implementation. Method added to FrameLoaderClient by Android (see bug).
3106 (WebKit::FrameLoaderClient::dispatchDidRemoveBackForwardItem): ditto.
3107 (WebKit::FrameLoaderClient::dispatchDidChangeBackForwardIndex): ditto.
3108 * WebCoreSupport/FrameLoaderClientGtk.h:
3110 2009-12-01 Nikolas Zimmermann <nzimmermann@rim.com>
3112 Reviewed by Simon Fraser.
3114 Add SVG animation test framework with 'snapshot' functionality
3115 https://bugs.webkit.org/show_bug.cgi?id=31897
3117 Add API used by the new 'sampleSVGAnimationForElementAtTime' DRT method,
3118 forwarding the call to SVGDocumentExtensions, if SVG is enabled.
3120 Implemented just like the existing pauseAnimation* methods for CSS animations.
3122 * webkit/webkitprivate.h:
3123 * webkit/webkitwebframe.cpp:
3124 (webkit_web_frame_pause_svg_animation):
3126 2009-11-30 Xan Lopez <xlopez@igalia.com>
3128 Reviewed by Gustavo Noronha.
3130 Prepare for 1.1.17 release.
3133 * docs/webkitgtk-docs.sgml:
3134 * docs/webkitgtk-sections.txt:
3135 * webkit/webkitwebsettings.cpp:
3136 (webkit_web_settings_class_init):
3138 2009-11-26 Laszlo Gombos <laszlo.1.gombos@nokia.com>
3140 Reviewed by Oliver Hunt.
3142 Move GOwnPtr* from wtf to wtf/gtk
3143 https://bugs.webkit.org/show_bug.cgi?id=31793
3145 * webkit/webkitwebview.cpp: Change the path for GOwnPtr.h.
3147 2009-11-24 Joanmarie Diggs <joanmarie.diggs@gmail.com>
3149 Reviewed by Xan Lopez.
3151 https://bugs.webkit.org/show_bug.cgi?id=25415
3152 [GTK][ATK] Please implement support for get_text_at_offset
3154 When building up the pango layout from text boxes, only append a
3155 newline char after verifying there are no more boxes on this line.
3158 (test_webkit_atk_get_text_at_offset_newlines):
3161 2009-11-19 Pavel Feldman <pfeldman@chromium.org>
3163 Reviewed by Gustavo Noronha Silva.
3165 Web Inspector: Implement "show inspector" in WebKit GTK
3166 API and enable console tests.
3168 https://bugs.webkit.org/show_bug.cgi?id=31669
3170 * webkit/webkitwebinspector.cpp:
3171 (webkit_web_inspector_show):
3172 * webkit/webkitwebinspector.h:
3174 2009-11-18 Martin Robinson <martin.james.robinson@gmail.com>
3176 Reviewed by Gustavo Noronha.
3178 [GTK] Tab key does not cycle through elements by default
3179 https://bugs.webkit.org/show_bug.cgi?id=31505
3181 Properly localize documentation strings for the
3182 tab-key-cycles-through-elements property.
3184 * webkit/webkitwebsettings.cpp:
3185 (webkit_web_settings_class_init):
3187 2009-11-17 Martin Robinson <martin.james.robinson@gmail.com>
3189 Reviewed by Gustavo Noronha.
3191 [GTK] Tab key does not cycle through elements by default
3192 https://bugs.webkit.org/show_bug.cgi?id=31505
3194 Ensure that WebKitWebSettings tab-key-cycles-through-elements
3195 property is true by default with the G_PARAM_CONSTRUCT_FLAG.
3197 * webkit/webkitwebsettings.cpp:
3198 (webkit_web_settings_class_init):
3200 2009-11-18 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
3202 Reviewed by Xan Lopez.
3204 [GTK] Failing test media/video-document-types.html
3205 https://bugs.webkit.org/show_bug.cgi?id=31352
3207 Match what Mac has been doing since r36001: cancel the main load,
3208 and handle failures caused by 'will be handled by plugin' errors.
3210 Covered by test media/video-document-types.html
3212 * WebCoreSupport/FrameLoaderClientGtk.cpp:
3213 (WebKit::FrameLoaderClient::committedLoad):
3214 (WebKit::FrameLoaderClient::shouldFallBack):
3216 2009-11-17 Pavel Feldman <pfeldman@chromium.org>
3218 Reviewed by Timothy Hatcher.
3220 Web Inspector: Make DRT show web inspector for tests in inspector/ folder.
3221 - Updated DRT to show/close inspector for all tests under /inspector
3222 - Introduced LayoutTestController::setTimelineProfilingEnabled and
3223 WebInspector::setTimelineProfilingEnabled beside setJavaScriptProfilingEnabled
3224 - Removed reload on each inspector test
3225 - Renamed fast/inspector to fast/inspector-support in order not to trigger
3226 inspector for those.
3227 - Reimplemented timeline tests in order to get rid of reload there.
3228 - Moved tests that don't require harness into the fast group.
3230 https://bugs.webkit.org/show_bug.cgi?id=31472
3232 * webkit/webkitwebinspector.cpp:
3233 (webkit_web_inspector_class_init):
3234 (webkit_web_inspector_set_property):
3235 (webkit_web_inspector_get_property):
3237 2009-11-13 Adam Roben <aroben@apple.com>
3239 Update for changes to FrameLoaderClient
3241 Fixes <http://webkit.org/b/31124> Tell the WebFrameLoadDelegate when
3242 window objects in isolated worlds are cleared
3244 Reviewed by Dave Hyatt.
3246 * WebCoreSupport/FrameLoaderClientGtk.cpp:
3247 (WebKit::FrameLoaderClient::dispatchDidClearWindowObjectInWorld):
3248 * WebCoreSupport/FrameLoaderClientGtk.h:
3249 Replaced windowObjectCleared with this function. Does nothing if the
3250 passed-in world is not the mainThreadNormalWorld().
3252 2009-11-12 Shinichiro Hamaji <hamaji@chromium.org>
3254 Reviewed by Darin Adler.
3256 externalRepresentation should take Frame as the argument
3257 https://bugs.webkit.org/show_bug.cgi?id=31393
3259 No new tests as this is just a refactoring.
3261 * webkit/webkitwebframe.cpp:
3262 (webkit_web_frame_dump_render_tree):
3264 2009-11-11 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
3266 Reviewed by Holger Freyther.
3268 Should not print javascript console messages to stdout
3269 https://bugs.webkit.org/show_bug.cgi?id=31346
3271 * webkit/webkitwebview.cpp:
3272 (webkit_web_view_real_console_message): Print console messages to
3273 stderr instead, using the recommended method (a g_log variant).
3275 2009-11-11 Philippe Normand <pnormand@igalia.com>
3277 Reviewed by Xan Lopez.
3279 https://bugs.webkit.org/show_bug.cgi?id=30221
3280 [GTK] fails to load media embedded in iframe element
3282 The FrameLoader can show Media if the audio/video support is
3283 enabled at compile time.
3285 * WebCoreSupport/FrameLoaderClientGtk.cpp:
3286 (WebKit::FrameLoaderClient::canShowMIMEType):
3288 2009-11-10 Martin Robinson <martin.james.robinson@gmail.com>
3290 Reviewed by Jan Alonzo.
3292 [GTK] Remove WebSocket configuration from WebKitWebSettings
3293 https://bugs.webkit.org/show_bug.cgi?id=31244
3295 Remove non-functional enable-web-sockets property from WebKitWebSettings.
3297 * webkit/webkitwebsettings.cpp:
3298 (webkit_web_settings_class_init):
3299 (webkit_web_settings_set_property):
3300 (webkit_web_settings_get_property):
3301 (webkit_web_settings_copy):
3303 2009-11-09 Martin Robinson <martin.james.robinson@gmail.com>
3305 Reviewed by Jan Alonzo.
3307 [GTK] Expose Page::tabKeyCyclesThroughElements in the API
3308 https://bugs.webkit.org/show_bug.cgi?id=30482
3310 Expose Page::tabKeyCyclesThroughElements as a property of
3313 * webkit/webkitwebsettings.cpp:
3314 (webkit_web_settings_class_init):
3315 (webkit_web_settings_set_property):
3316 (webkit_web_settings_get_property):
3317 * webkit/webkitwebview.cpp:
3318 (webkit_web_view_update_settings):
3319 (webkit_web_view_settings_notify):
3321 2009-11-04 Martin Robinson <martin.james.robinson@gmail.com>
3323 Reviewed by Jan Alonzo.
3325 [GTK] Enable DOM clipboard and drag-and-drop access
3326 https://bugs.webkit.org/show_bug.cgi?id=30623
3328 Move handling of target list to PasteboardHelperGtk.
3330 * WebCoreSupport/PasteboardHelperGtk.cpp:
3331 (WebKit::PasteboardHelperGtk::PasteboardHelperGtk):
3332 (WebKit::PasteboardHelperGtk::~PasteboardHelperGtk):
3333 (WebKit::PasteboardHelperGtk::fullTargetList):
3334 * WebCoreSupport/PasteboardHelperGtk.h:
3335 * webkit/webkitprivate.cpp:
3336 (WebKit::pasteboardHelperInstance):
3338 * webkit/webkitprivate.h:
3339 * webkit/webkitwebview.cpp:
3340 (webkit_web_view_dispose):
3341 (webkit_web_view_init):
3342 (webkit_web_view_get_copy_target_list):
3343 (webkit_web_view_get_paste_target_list):
3345 2009-10-30 Evan Stade <estade@chromium.org>
3347 Reviewed by David Levin.
3349 Notify the chrome when the focused node has changed.
3350 https://bugs.webkit.org/show_bug.cgi?id=30832
3352 Added stub implementation for new ChromeClient function.
3354 * WebCoreSupport/ChromeClientGtk.cpp:
3355 (WebKit::ChromeClient::focusedNodeChanged):
3356 * WebCoreSupport/ChromeClientGtk.h:
3358 2009-10-29 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
3360 Unreviewed. Trivial fix - move public API declaration into the
3361 public subsection of the doc.
3363 * docs/webkitgtk-sections.txt:
3365 2009-10-28 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
3367 Reviewed by Jan Alonzo.
3369 [GTK] API to start inspector for a WebView
3370 https://bugs.webkit.org/show_bug.cgi?id=22551
3372 Provide a simple, coordinates-based API to start the inspector.
3374 * WebCoreSupport/InspectorClientGtk.cpp:
3375 (WebKit::InspectorClient::createPage): Use files from the source
3376 tree when running from the top of the source directory.
3377 (WebKit::InspectorClient::localizedStringsURL): Ditto.
3378 * webkit/webkitprivate.h:
3379 * webkit/webkitwebinspector.cpp:
3380 (webkit_web_inspector_inspect_coordinates):
3381 (webkit_web_inspector_close):
3382 (webkit_web_inspector_execute_script):
3383 * webkit/webkitwebinspector.h:
3385 2009-10-27 Shinichiro Hamaji <hamaji@chromium.org>
3387 Reviewed by Darin Adler.
3389 Provide a way to get counter values with layoutTestContoller
3390 https://bugs.webkit.org/show_bug.cgi?id=30555
3392 * webkit/webkitprivate.h:
3393 * webkit/webkitwebframe.cpp:
3394 (webkit_web_frame_counter_value_for_element_by_id):
3396 2009-10-28 Joe Mason <jmason@rim.com>
3398 Reviewed by Adam Treat.
3400 Call the shared FrameLoader::defaultObjectContentType instead of
3401 copying code into FrameLoaderClient::objectContentType. This causes no
3404 * WebCoreSupport/FrameLoaderClientGtk.cpp:
3405 (WebKit::FrameLoaderClient::objectContentType):
3407 2009-10-28 Xan Lopez <xlopez@igalia.com>
3409 Reviewed by Jan Alonzo.
3411 [Gtk] Extraneous object of ROLE_PANEL in hierarchy for entries
3412 https://bugs.webkit.org/show_bug.cgi?id=25897
3414 Update test to also check that entries implement the AtkText
3418 (run_get_text_tests):
3419 (test_webkit_atk_get_text_at_offset_forms):
3420 (test_webkit_atk_get_text_at_offset):
3423 2009-10-26 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
3425 Unreviewed. Update documentation control files for 1.1.16.
3427 * docs/webkitgtk-docs.sgml:
3428 * docs/webkitgtk-sections.txt:
3430 2009-10-26 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
3432 Reviewed by Xan Lopez.
3434 https://bugs.webkit.org/show_bug.cgi?id=30759
3435 [GTK] Should use WebKitNetworkResponse, and expose it
3437 WebKitDownload now uses our WebKitNetworkResponse instead of using
3438 ResourceResponse directly. By exposing the response, like we do
3439 with the request, we give our users the ability to look at the
3440 response headers, status code, and so on, through the SoupMessage
3443 * webkit/webkitdownload.cpp:
3444 (webkit_download_dispose):
3445 (webkit_download_finalize):
3446 (webkit_download_get_property):
3447 (webkit_download_set_property):
3448 (webkit_download_class_init):
3449 (webkit_download_get_network_response):
3450 (webkit_download_set_response):
3451 (webkit_download_get_total_size):
3452 (webkit_download_get_progress):
3453 (webkit_download_received_data):
3454 * webkit/webkitdownload.h:
3456 2009-10-26 Xan Lopez <xlopez@igalia.com>
3458 Reviewed by Gustavo Noronha.
3460 Update for 1.1.16 release.
3464 2009-10-22 Gavin Barraclough <barraclough@apple.com>
3466 Reviewed by NOBODY (build fix).
3467 Build fix following bug #30696.
3469 * WebCoreSupport/FrameLoaderClientGtk.cpp:
3470 (WebKit::FrameLoaderClient::windowObjectCleared):
3471 * webkit/webkitwebframe.cpp:
3472 (webkit_web_frame_get_global_context):
3474 2009-10-22 Alejandro G. Castro <alex@igalia.com>
3476 Reviewed by Xan Lopez.
3478 m_webView should be private attribute of the EditorClientGtk.
3479 https://bugs.webkit.org/show_bug.cgi?id=30664
3481 * WebKit/gtk/WebCoreSupport/EditorClientGtk.h:
3483 2009-10-20 Fumitoshi Ukai <ukai@chromium.org>
3485 Reviewed by David Levin.
3487 Removed WebSocket runtime settings.
3488 https://bugs.webkit.org/show_bug.cgi?id=29896
3490 WebSocket runtime configuration is supported by chromium/v8 only.
3492 * webkit/webkitwebview.cpp:
3493 (webkit_web_view_update_settings):
3494 (webkit_web_view_settings_notify):
3496 2009-10-19 Jan Michael Alonzo <jmalonzo@webkit.org>
3498 Reviewed by Alexey Proskuryakov.
3500 [Gtk] ApplicationCacheStorage error while compiling WebKit/gtk/webkit/webkitapplicationcache.cpp
3501 https://bugs.webkit.org/show_bug.cgi?id=30358
3503 Guard calls to cacheStorage() with ENABLE(OFFLINE_WEB_APPLICATIONS).
3505 * webkit/webkitapplicationcache.cpp:
3507 2009-10-19 Zan Dobersek <zandobersek@gmail.com>
3509 Reviewed by Gustavo Noronha.
3511 Add a settings to allow DOM pastes to be performed.
3513 * webkit/webkitwebsettings.cpp:
3514 (webkit_web_settings_class_init):
3515 (webkit_web_settings_set_property):
3516 (webkit_web_settings_get_property):
3517 (webkit_web_settings_copy):
3518 * webkit/webkitwebview.cpp:
3519 (webkit_web_view_update_settings):
3520 (webkit_web_view_settings_notify):
3522 2009-10-19 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
3524 Unreviewed. Make WebKitHitTestResult actually appear in the
3525 documentation index.
3527 * docs/webkitgtk-docs.sgml:
3529 2009-10-15 Xan Lopez <xlopez@igalia.com>
3531 Reviewed by Gustavo Noronha.
3533 Protect WebSocket calls in case the feature is not compiled in.
3535 * webkit/webkitwebview.cpp:
3536 (webkit_web_view_update_settings):
3537 (webkit_web_view_settings_notify):
3539 2009-10-15 Zan Dobersek <zandobersek@gmail.com>
3541 Reviewed by Gustavo Noronha.
3543 Add a settings to enable support for experimental Web Sockets.
3544 Currently this comes in handy in layout tests.
3546 * webkit/webkitwebsettings.cpp:
3547 (webkit_web_settings_class_init):
3548 (webkit_web_settings_set_property):
3549 (webkit_web_settings_get_property):
3550 (webkit_web_settings_copy):
3551 * webkit/webkitwebview.cpp:
3552 (webkit_web_view_update_settings):
3553 (webkit_web_view_settings_notify):
3555 2009-10-15 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
3557 Reviewed by Xan Lopez.
3559 page transition may crash webkit
3560 https://bugs.webkit.org/show_bug.cgi?id=29890
3562 There are actually cases in which a resource may be asked using
3563 webkit_web_view_get_resource after a new load has already been
3564 started, so protect ourselves from crashes in this case.
3566 * WebCoreSupport/FrameLoaderClientGtk.cpp:
3567 (WebKit::FrameLoaderClient::dispatchDidFinishLoading):
3568 * webkit/webkitwebview.cpp:
3569 (webkit_web_view_get_resource):
3571 2009-10-12 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
3573 Rubber-stamped by Xan Lopez.
3575 Remove unnecessary self-include.
3577 * webkit/webkitsecurityorigin.h:
3579 2009-10-12 Christian Dywan <christian@twotoasts.de>
3581 Reviewed by Gustavo Noronha.
3583 [GTK] Crash when right-clicking misspelled word
3584 https://bugs.webkit.org/show_bug.cgi?id=29772
3586 Make sure the dictionary exist before adding it to the list of
3589 * WebCoreSupport/EditorClientGtk.cpp:
3590 (WebKit::EditorClient::checkSpellingOfString):
3591 * webkit/webkitwebsettings.cpp:
3592 (webkit_web_settings_set_property):
3594 2009-10-08 Adam Barth <abarth@webkit.org>
3596 Reviewed by Eric Seidel.
3598 Move executeScript from FrameLoader to ScriptController
3599 https://bugs.webkit.org/show_bug.cgi?id=30200
3603 * webkit/webkitwebview.cpp:
3604 (webkit_web_view_execute_script):
3606 2009-10-07 Xan Lopez <xlopez@igalia.com>
3610 * webkit/webkitwebpolicydecision.cpp:
3611 (webkit_web_policy_decision_use):
3612 (webkit_web_policy_decision_ignore):
3613 (webkit_web_policy_decision_download):
3615 2009-10-07 Adam Barth <abarth@webkit.org>
3617 Reviewed by Darin Adler.
3619 Factor PolicyChecker out of FrameLoader
3620 https://bugs.webkit.org/show_bug.cgi?id=30155
3622 Move the policy callback to the policy object.
3624 * WebCoreSupport/FrameLoaderClientGtk.cpp:
3625 (WebKit::FrameLoaderClient::dispatchWillSubmitForm):
3626 (WebKit::FrameLoaderClient::dispatchDecidePolicyForMIMEType):
3627 (WebKit::FrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
3628 (WebKit::FrameLoaderClient::dispatchDecidePolicyForNavigationAction):
3630 2009-10-07 Martin Robinson <martin.james.robinson@gmail.com>
3632 [GTK] Segfault while testing fast/events/keydown-keypress-preventDefault.html
3633 https://bugs.webkit.org/show_bug.cgi?id=30121
3635 Clear previous preedit or pending composition before storing new ones.
3636 This can happen when a WebView receives a native keydown event without
3637 a matching keyup event or when preventDefault() is called on DOM keydown
3640 * WebCoreSupport/EditorClientGtk.cpp:
3641 (WebKit::setPendingComposition):
3642 (WebKit::setPendingPreedit):
3643 (WebKit::clearPendingIMData):
3644 (WebKit::imContextCommitted):
3645 (WebKit::imContextPreeditChanged):
3647 2009-10-06 Xan Lopez <xlopez@igalia.com>
3649 Reviewed by Eric Seidel.
3651 https://bugs.webkit.org/show_bug.cgi?id=25526
3652 [Gtk] Additional support is needed for caret browsing
3654 Remove special cases for caret browsing, they are now handled in
3655 cross-platform code.
3657 * WebCoreSupport/EditorClientGtk.cpp:
3658 (WebKit::EditorClient::handleKeyboardEvent):
3660 2009-10-06 Pavel Feldman <pfeldman@chromium.org>
3662 Reviewed by Timothy Hatcher.
3664 Web Inspector: close inspector client view on
3665 InspectorController::close API call.
3667 In order to run batch web inspector layout tests (and not affect
3668 subsequent tests) we should close inspector client's view upon
3669 InspectorController::close API call.
3671 https://bugs.webkit.org/show_bug.cgi?id=30009
3673 * WebCoreSupport/InspectorClientGtk.cpp:
3674 (WebKit::InspectorClient::createPage):
3676 2009-10-06 Alejandro G. Castro <alex@igalia.com>
3678 Reviewed by Xan Lopez.
3680 ASSERT executing the webhistory unittest in a debug build
3681 https://bugs.webkit.org/show_bug.cgi?id=28947
3683 We have to call g_object_new first to initialize webkit threading
3684 before creating the KURL.
3686 * WebKit/gtk/webkit/webkitwebhistoryitem.cpp:
3688 2009-10-06 José Millán Soto <fid@gpul.org>
3690 Reviewed by Xan Lopez.
3692 Header files of WebKitGTK do not comply with WebKit coding style (Patch attached)
3693 https://bugs.webkit.org/show_bug.cgi?id=30076
3695 Solves various issues in header files.
3697 * WebCoreSupport/DocumentLoaderGtk.h: Added "headed guards"
3698 * webkit/webkitdefines.h:
3699 * webkit/webkitdownload.h:
3700 * webkit/webkiterror.h:
3701 * webkit/webkithittestresult.h:
3702 * webkit/webkitnetworkrequest.h: