Re: [Bug 332660] GTK file picker as used in Firefox is not accessibile for GOK (Mozilla strips atk-bridge from GTK_MODULES)



Hi Padraig,

I tried to use GTK_MODULES=:gail before starting firefox.
I think libgail.so is loaded.
But it doesn't help.

Thanks,

Ginn

On Apr 18, 2006, at 9:23 PM, Padraig O'Briain wrote:

If firefox uses GTK widgets the mozilla accessibility module will need to load the GTK module libgail.so as it contains the accessibility implementation for GTK widgets.

I would suggest that the mozilla accessibility module load gail before it does its own initialization.

There may be problems getting gail and mozilla accessibility module to co-exist but we will just have to work through these problems. For instance, I am not sure how traversing the accessible object hierarchy will work when we mix objects from different toolkits.

Padraig

Ginn Chen wrote:
Hi Peter,

Thanks for your reply.

On Apr 18, 2006, at 1:21 PM, Peter Korn wrote:

Hi Ginn,

I don't see a way around this, other than perhaps more selectively setting/unsetting GTK_MODULES (or otherwise explicitly loading gail and atk-bridge into those widgets that are in use in these dialogs.
Setting GTK_MODULES before creates the dialog doesn't work.
I think we can't do this because they run in same process.


Perhaps you could explain in more detail why Mozilla is having trouble when gail/atk-bridge are loaded?

With GTK_MODULES set, atk-bridge.so is loaded first, and it inits after its load. When atk-bridge inits, it calls atk_get_root, add_global_event_listener, etc.

When mozilla accessibility module loads, it assigns its implementation to atk_class interfaces in mai_util_class_init, including atk_get_root, add_global_event_listener, etc.
Then mozilla tries to load atk-bridge.so, and inits it.
Generally it will init and call mai implementation of atk_get_root, add_global_event_listener, etc.

But since atk-bridge is already initialized, it will just return and do nothing.

I don't know if it is possible to shutdown atk-bridge and re-init it.
Could it solve the dialog problem?

Thanks,

Ginn


Regards,

Peter Korn
Accessibility Architect,
Sun Microsystems, Inc.


Begin forwarded message:

*From: *bugzilla-daemon mozilla org <mailto:bugzilla- daemon mozilla org>
*Date: *April 13, 2006 4:46:48 PM CST
*To: *browser-china-atf sun com <mailto:browser-china-atf sun com>
*Subject: **[Bug 332660] GTK file picker as used in Firefox is not accessibile for GOK (Mozilla strips atk-bridge from GTK_MODULES)*

Do not reply to this email.  You can add comments to this bug at
https://bugzilla.mozilla.org/show_bug.cgi?id=332660





------- Comment #7 from ginn chen sun com <mailto:ginn chen sun com> 2006-04-13 01:46 PDT -------
I need help on this bug.

I tried to use gtk_widget_get_accessible to get AtkObject* of the file-picker
dialog.
But it doesn't work. The Role is INVALID.
If mozilla doesn't unset GTK_MODULES, the role of file-picker accessible is
DIALOG.

How can I get valid AtkObject* of file-picker without setting GTK_MODULES? (If GTK_MODULES sets, mozilla a11y interface can not initialized correctly.)

Any ideas?

Thanks!



--Configure bugmail: https://bugzilla.mozilla.org/userprefs.cgi? tab=email

--------
Ginn Chen
Software Engineer, Browser Team
Sun Microsystems, Inc.
Phone: +86-10-82618200 (x82869)
Fax:   +86-10-62780969



------------------------------------------------------------------- -----

_______________________________________________
gnome-accessibility-list mailing list
gnome-accessibility-list gnome org
http://mail.gnome.org/mailman/listinfo/gnome-accessibility-list



--------
Ginn Chen
Software Engineer, Browser Team
Sun Microsystems, Inc.
Phone: +86-10-82618200 (x82869)
Fax:   +86-10-62780969



_______________________________________________
gnome-accessibility-list mailing list
gnome-accessibility-list gnome org
http://mail.gnome.org/mailman/listinfo/gnome-accessibility-list


--------
Ginn Chen
Software Engineer, Browser Team
Sun Microsystems, Inc.
Phone: +86-10-82618200 (x82869)
Fax:   +86-10-62780969






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]