After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 544122 - Problems with downloading files with Firefox 3
Problems with downloading files with Firefox 3
Status: RESOLVED FIXED
Product: orca
Classification: Applications
Component: general
2.23.x
Other All
: Normal normal
: 2.24.0
Assigned To: Joanmarie Diggs (IRC: joanie)
Orca Maintainers
Depends on:
Blocks: 404403
 
 
Reported: 2008-07-22 07:48 UTC by Joanmarie Diggs (IRC: joanie)
Modified: 2009-03-10 00:05 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24


Attachments
revision 1 (7.87 KB, patch)
2008-07-23 16:28 UTC, Joanmarie Diggs (IRC: joanie)
none Details | Review
revision 2 (7.83 KB, patch)
2008-07-23 18:44 UTC, Joanmarie Diggs (IRC: joanie)
committed Details | Review

Description Joanmarie Diggs (IRC: joanie) 2008-07-22 07:48:50 UTC
Christian reported on the Orca list:

> I have noticed that when downloading files with Firefox and when the
> file download is complete and I have set the download window to close
> it is not possible to navigate a website with the tab key.

Confirmed.
Comment 1 Joanmarie Diggs (IRC: joanie) 2008-07-23 16:28:29 UTC
Created attachment 115100 [details] [review]
revision 1

This patch does several things:

1. Adds logic to the Gecko toolkit's speech generator for links so that we indicate links which are also images. (The braille generator already seems to be doing the correct thing as-is.)

2. Removes code in onFocus() which forces focus on an image if what currently has focus is a link which contains an image. As best as I can tell, all that was accomplishing is causing us to speak the fact that the link was an image. We can do that via the speechgenerator change. Besides, images cannot receive focus, thus setting focus on the image merely causes us to grab focus on the link which had focus in the first place -- and then to have to ignore the event we just triggered.

3. Removes code which intentionally did not grab focus on a link if the link contained an image AND other text.  We see this when arrowing around ftp sites within Firefox.  Arrowing should be grabbing focus on the links for the files, but currently is not. The avoidance code was something I added as part of bug 511118. It seems that whatever had been causing that issue was fixed on the Firefox side of things: Using both Firefox 3 and Firefox 3.1 and the Orca revision just prior to the checkin for bug 511118, I can no longer reproduce that issue.

4. Adds a check to onLocusOfFocus changed to see if we really are still loading a document. What is at the heart of this bug is this: When you follow a link for a download, Firefox issues an object:state-changed:busy event (detail1 == 1) to let us know loading has started. It never issues a subsequent event to tell us that loading has finished. We intentionally are not speaking focus changes when the document frame is busy because we want to minimize chattiness when a page is loading. We should either be getting the subsequent event or we shouldn't be getting the first one (because a new page isn't actually loading). Either way, that's a Mozilla bug filed here: https://bugzilla.mozilla.org/show_bug.cgi?id=446469 Still, it's one we can work around.

I'm still updating the regression tests for 3.1 goodness, but running the tests I have on my box atm indicates no regressions resulting from this patch. Already pylinted.

Mike please test.
Comment 2 Joanmarie Diggs (IRC: joanie) 2008-07-23 18:44:20 UTC
Created attachment 115115 [details] [review]
revision 2

Oops.  Needed to do a null check in case we did not have a document frame (e.g. tbird message list).  Sorry Mike!  Please try this one.

Pylinted.  Will need to re-run the regression tests to be safe.
Comment 3 Mike Pedersen 2008-07-23 21:08:44 UTC
When tabbing to the document area on a bug do we really want to say "home link image"  You actually have to tab twice to be able to click the link.  
Comment 4 Joanmarie Diggs (IRC: joanie) 2008-07-23 21:18:07 UTC
> When tabbing to the document area on a bug do we really want to say "home link
> image"  You actually have to tab twice to be able to click the link.  

Really? I don't.  When the page loads and I press Tab, Orca (with this patch) says "home link image." If I then press Enter, I'm taken to bugzilla.gnome.org (i.e. the bugzilla home page).

Comment 5 Joanmarie Diggs (IRC: joanie) 2008-07-23 21:20:19 UTC
BTW, the above is the case for both FF3.0 and FF3.1.
Comment 6 Mike Pedersen 2008-07-24 19:35:28 UTC
When doing this are you tabbing from the address bar or the top of the page?  The result I reported was from the address bar.  
Comment 7 Joanmarie Diggs (IRC: joanie) 2008-07-24 20:20:07 UTC
The address bar here as well. A debug.out would be helpful I guess.
Comment 8 Joanmarie Diggs (IRC: joanie) 2008-07-24 20:31:24 UTC
Regardless, this bug here is about our being silent for ever more when a file has been downloaded. It also fixes the issue of wanting to arrow amongst items when browsing an FTP site and have focus go to the link you're on (or would be on were we not preventing it). Both of these are pretty serious issues I think. Unless the behavior you are seeing as a side effect is completely unacceptable, perhaps we could address it in the bug we have open for what happens when focus is given to the document frame?
Comment 9 Joanmarie Diggs (IRC: joanie) 2008-07-24 20:52:22 UTC
Aha, I was able to reproduce it once. It looks like we speak the first line if we don't have a caret context.  I must have already caused a caret context to be created by pressing Control+Home.  Anyhoo.... 

If we present the first line when the document frame has focus, you can start arrowing down without missing the first line.  If this is not the behavior you want, we can change it, but again, let's do that in the bug you've opened for that issue.
Comment 10 Mike Pedersen 2008-07-24 21:16:30 UTC
Sounds good to me. 
Comment 11 Joanmarie Diggs (IRC: joanie) 2008-07-25 04:39:01 UTC
Okie dokie. Thanks! I've committed the patch to trunk. Marking this as pending. Let's work on the other issue in bug 544197.