Summary: | [GTK] Don't log ATK document events in DRT | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Mario Sanchez Prada <mario> | ||||
Component: | Accessibility | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | mrobinson, pnormand | ||||
Priority: | P2 | Keywords: | Gtk | ||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Attachments: |
|
Description
Mario Sanchez Prada
2011-12-03 10:16:11 PST
*** Bug 67398 has been marked as a duplicate of this bug. *** Created attachment 117766 [details]
Patch proposal
Patch implementing this idea.
Comment on attachment 117766 [details] Patch proposal View in context: https://bugs.webkit.org/attachment.cgi?id=117766&action=review Seems good to me, but I have included a few minor style issue below. > Source/WebKit/gtk/ChangeLog:21 > + (updateLoadingEventsResult): New, updates a global variable to > + allow checking later on that the right signals were emmitted. > + (documentLoadingEventCb): New, global listener for load-complete > + and reload signals over the document object (the web area). > + (testWebkitAtkDocumentLoadingEvents): New unit test, globally > + connects to document-related signals and check they are properly > + emitted when reloading the web view. > + (main): Added new test. This is nice. > Source/WebKit/gtk/tests/testatk.c:495 > + if (!ATK_IS_OBJECT(axObject) || !signalName) Is this an error if it doesn't happen. If so, would it be better to assert here instead? > Source/WebKit/gtk/tests/testatk.c:506 > + > +static gboolean documentLoadingEventCb(GSignalInvocationHint *signalHint, > + guint numParamValues, > + const GValue *paramValues, > + gpointer data) Please put these on one line to match WebKit style. The function should also be named documentLoadingEventCallback. > Source/WebKit/gtk/tests/testatk.c:516 > + GSignalQuery signal_query; signal_query -> signalQuery. Comment on attachment 117766 [details] Patch proposal View in context: https://bugs.webkit.org/attachment.cgi?id=117766&action=review Thanks for the fast review. I'll address those issues before pushing. >> Source/WebKit/gtk/tests/testatk.c:495 >> + if (!ATK_IS_OBJECT(axObject) || !signalName) > > Is this an error if it doesn't happen. If so, would it be better to assert here instead? Actually the whole line should be removed since that should not ever happen. Also, the axObject in the params list is not used in the function, so it should be removed too. Will do those small changes before committing. >> Source/WebKit/gtk/tests/testatk.c:506 >> + gpointer data) > > Please put these on one line to match WebKit style. The function should also be named documentLoadingEventCallback. Ok. Comment on attachment 117766 [details] Patch proposal View in context: https://bugs.webkit.org/attachment.cgi?id=117766&action=review >>> Source/WebKit/gtk/tests/testatk.c:495 >>> + if (!ATK_IS_OBJECT(axObject) || !signalName) >> >> Is this an error if it doesn't happen. If so, would it be better to assert here instead? > > Actually the whole line should be removed since that should not ever happen. Also, the axObject in the params list is not used in the function, so it should be removed too. > > Will do those small changes before committing. That's a good situation to do an assertion. (In reply to comment #5) > (From update of attachment 117766 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=117766&action=review > > >>> Source/WebKit/gtk/tests/testatk.c:495 > >>> + if (!ATK_IS_OBJECT(axObject) || !signalName) > >> > >> Is this an error if it doesn't happen. If so, would it be better to assert here instead? > > > > Actually the whole line should be removed since that should not ever happen. Also, the axObject in the params list is not used in the function, so it should be removed too. > > > > Will do those small changes before committing. > > That's a good situation to do an assertion. Ok, will do then, but won't push until tomorrow since I'm leaving my place in 5 min Committed r101951: <http://trac.webkit.org/changeset/101951> |