Closed
Bug 298077
Opened 19 years ago
Closed 19 years ago
Link remains focused (outlined) when going back to the previous page using the back button and the focus can not be undone.
Categories
(Core :: DOM: UI Events & Focus Handling, defect)
Core
DOM: UI Events & Focus Handling
Tracking
()
VERIFIED
FIXED
mozilla1.8beta4
People
(Reporter: email, Assigned: bryner)
References
Details
(Keywords: testcase, Whiteboard: [no l10n impact])
Attachments
(4 files)
(deleted),
text/html
|
Details | |
(deleted),
image/png
|
Details | |
(deleted),
patch
|
dbaron
:
review+
dbaron
:
superreview+
brendan
:
approval1.8b4+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
dbaron
:
review+
benjamin
:
approval1.8b4+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050617 Firefox/1.0+
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050617 Firefox/1.0+
When you visit a page that has multiple links you can click on of them to go to
its specified location. You can then return to the previous page using the Fast
Back feature. As you see, the link is still focussed, but when you click on
another link and again return to the previous page, the first link is still
focused, TOGETHER with the second link.
So everytime you click on a link and return to that page, the link remains
focused. The only way to remove the focus is to refresh the page, or use either
the TAB button or your mouse to focus the link again and then give focus to
another element.
Reproducible: Always
Reporter | ||
Comment 1•19 years ago
|
||
Reporter | ||
Comment 2•19 years ago
|
||
Comment 3•19 years ago
|
||
WFM Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b2) Gecko/20050618
Firefox/1.0+ ID:2005061804
Reporter, are you using bfcache? (fast back/forward)
Reporter | ||
Comment 4•19 years ago
|
||
Yes.
Updated•19 years ago
|
Blocks: blazinglyfastback
Status: UNCONFIRMED → NEW
Component: General → History: Session
Ever confirmed: true
Product: Firefox → Core
Version: unspecified → 1.0 Branch
Comment 5•19 years ago
|
||
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b2) Gecko/20050618
Firefox/1.0+ ID:2005061804
I see this behaviour too. The opposite of bug 293235?
Version: 1.0 Branch → Trunk
Comment 6•19 years ago
|
||
(In reply to comment #5)
> Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b2) Gecko/20050618
> Firefox/1.0+ ID:2005061804
> I see this behaviour too. The opposite of bug 293235?
Not the opposite. The behaviour is see with this bug is that the focussing ring
cannot be 'clicked away'. It is like locked.
When using the back button, I think it is normal that the originating link
remains focussed when returning to the originating page. But clicking anywhere
on the page (move the focus to the page) doesn't remove that focus fom the link
anymore.
Comment 7•19 years ago
|
||
I see this on the testcase. I also see this on http://dbaron.org/home , but
only when I move the mouse off the link while the next page is loading, and
there it goes away when I mouse over the link. So I suspect it has something to
do with ContentStatesChanged notifications (for CSS :focus change) not being
processed properly when the page is in the dead state while the next page is
loading (i.e., after DocumentViewerImpl::Close).
Assignee: nobody → events
Component: History: Session → Event Handling
QA Contact: general → ian
Comment 8•19 years ago
|
||
Actually, that doesn't quite make sense, since :hover changes work fine during
that period. It's more like the ContentStateChanged notification for the :focus
change is never sent since the focus changes while things are disconnected.
Comment 9•19 years ago
|
||
*** Bug 299298 has been marked as a duplicate of this bug. ***
Updated•19 years ago
|
Flags: blocking-aviary1.1?
Updated•19 years ago
|
Flags: blocking1.8b4?
Updated•19 years ago
|
Whiteboard: [no l10n impact]
Comment 10•19 years ago
|
||
*** Bug 300121 has been marked as a duplicate of this bug. ***
Comment 11•19 years ago
|
||
*** Bug 300321 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 12•19 years ago
|
||
SetupNewViewer nulls out the saved focus on the focus controller to avoid
having it hold a reference to an element in a dead document. That's great, but
we need it to happen after we've saved the focused element into the
WindowStateHolder. So I hoisted the CaptureState call up to happen just a bit
earlier. The result is that the link will have "real" focus when you go back,
not just a focus outline.
(As David suspected, the clearing of the focused element on the focus
controller does not call SetFocusState, but it's ok since we will reset the
focus state when restoring the presentation).
Assignee: events → bryner
Status: NEW → ASSIGNED
Attachment #188979 -
Flags: superreview?(dbaron)
Attachment #188979 -
Flags: review?(dbaron)
Comment 13•19 years ago
|
||
This is gonna need to make b4 if it's gonna make 1.1 so the 1.1 nomination is
redundant.
Flags: blocking-aviary1.1?
Comment 14•19 years ago
|
||
*** Bug 300774 has been marked as a duplicate of this bug. ***
Updated•19 years ago
|
Summary: Link remains focused when going back to the previous page using the back button and the focus can not be undone. → Link remains focused (outlined) when going back to the previous page using the back button and the focus can not be undone.
Comment 15•19 years ago
|
||
*** Bug 300882 has been marked as a duplicate of this bug. ***
Updated•19 years ago
|
Attachment #188979 -
Flags: superreview?(dbaron)
Attachment #188979 -
Flags: superreview+
Attachment #188979 -
Flags: review?(dbaron)
Attachment #188979 -
Flags: review+
Assignee | ||
Updated•19 years ago
|
Attachment #188979 -
Flags: approval1.8b4?
Comment 16•19 years ago
|
||
Comment on attachment 188979 [details] [diff] [review]
patch
a=me for 1.8b4.
/be
Attachment #188979 -
Flags: approval1.8b4? → approval1.8b4+
Assignee | ||
Comment 17•19 years ago
|
||
checked in
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Comment 18•19 years ago
|
||
This appears to be fixed in an extensionless profile. But in 2 profiles with
All-In-One Gestures I still see this problem. I'm guessing what I'm seeing
probably has the same cause as the problems seen in bug 295931. So this is just
an FYI.
Updated•19 years ago
|
Status: RESOLVED → VERIFIED
Flags: blocking1.8b4?
Comment 19•19 years ago
|
||
is it just me or has this come back in today's build (20050731)?
Comment 20•19 years ago
|
||
Seems to be random in the HTML testcase on Mozilla/5.0 (Windows; U; Windows NT
5.1; en-US; rv:1.8b4) Gecko/20050731 Firefox/1.0+ ID:2005073110
Try clicking the same link multiple times...it goes away after the 3rd or so
Back. Weird.
Comment 21•19 years ago
|
||
I'm seeing this too. Sometimes the focus will go away when I hover over the
links, but I can still get the two links focused at once thing.
Status: VERIFIED → REOPENED
Resolution: FIXED → ---
Comment 22•19 years ago
|
||
Yeah, this has regressed again.
Severity: normal → major
Status: REOPENED → NEW
Flags: blocking1.8b4?
OS: Windows XP → All
Hardware: PC → All
Comment 23•19 years ago
|
||
(In reply to comment #20)
>it goes away after the 3rd or so Back. Weird.
thats because its caused by bfcache. and by default, the max_viewers for bfcache
is set to 3. hence, it goes away after going back about 3 times.
Comment 24•19 years ago
|
||
So what's the date range on this regressing just now?
Comment 25•19 years ago
|
||
2005-07-30-05-trunk is the last good build I have, 2005-07-31-05-trunk is where
I first see the regression. Are there hourly builds for linux? I'd be happy to
try and narrow it down some...
Assignee | ||
Updated•19 years ago
|
Target Milestone: --- → mozilla1.8beta4
Comment 27•19 years ago
|
||
It seems like more than the fact that the focus outline won't go away. We're not
refocusing the document or previously focused element at all. So, arrow keys
don't scroll etc. when you go back. It also breaks our new page notification in
accessibility because we only fire that for focused docshells.
Blocks: 303585
Assignee | ||
Comment 28•19 years ago
|
||
Use the target window's outer window when we're comparing to the focused
window, since the focus manager tracks the outer window.
Attachment #191739 -
Flags: review?(dbaron)
Comment 29•19 years ago
|
||
Comment on attachment 191739 [details] [diff] [review]
fix bustage from splitwindow
Yeah, I *think* the idea is that pretty much everything should be dealing with
outer windows except for the stuff that has to deal with inner windows (and not
the other way around). Maybe double-check that with jst, but no need to wait
for that.
Attachment #191739 -
Flags: review?(dbaron) → review+
Assignee | ||
Updated•19 years ago
|
Attachment #191739 -
Flags: approval1.8b4?
Updated•19 years ago
|
Attachment #191739 -
Flags: approval1.8b4? → approval1.8b4+
Assignee | ||
Comment 30•19 years ago
|
||
checked in, hopefully this is fixed for good.
Status: NEW → RESOLVED
Closed: 19 years ago → 19 years ago
Resolution: --- → FIXED
Comment 31•19 years ago
|
||
Just tried 2005080520 from prometheus, looks good. :)
Updated•19 years ago
|
Flags: blocking1.8b4?
Comment 32•19 years ago
|
||
Have downloaded today's nightly. It's indeed fixed.
-> VERIFIED
Status: RESOLVED → VERIFIED
Comment 33•19 years ago
|
||
*** Bug 304387 has been marked as a duplicate of this bug. ***
Comment 34•19 years ago
|
||
*** Bug 307074 has been marked as a duplicate of this bug. ***
Updated•6 years ago
|
Component: Event Handling → User events and focus handling
You need to log in
before you can comment on or make changes to this bug.
Description
•