Opened 12 years ago
Last modified 15 months ago
#11046 new defect
Reloading a page in the source browser redirects to another file
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | next-stable-1.6.x |
Component: | version control/browser | Version: | 1.0 |
Severity: | normal | Keywords: | macosx |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
It's hard to explain this one, so I'll jump directly to the steps to reproduce:
- Go to http://trac.edgewall.org/browser/trunk/trac
- Click a non-link area on the page
- Hover the "admin" directory
- Reload the page using the web browser's keyboard shortcut (ctrl-r or cmd-r)
- Browser navigates to http://trac.edgewall.org/browser/trunk/trac#admin
Keep hovering and reloading, it will navigate to files and folders.
Since this behavior is not documented (or is it?), and I find it annoying, I assume it's a bug.
My site is running v1.0, hence the report below. For some reason I can't find the version number of YOUR site.
Attachments (0)
Change History (10)
comment:1 by , 12 years ago
follow-up: 3 comment:2 by , 12 years ago
I tested on Firefox, Chrome, Safari - on OSX. Just to make sure it also happens on IE, I switched to Windows. It does not show itself on any browser on Windows.
Same for Firefox/OSX — when using F5
to refresh instead of cmd-r
.
To recap: this bug seems to only happen on OSX, when refreshing the page using cmd-r
. I'm not a JavaScript expert though, so can someone with a Mac take a look? I suspect it has something to do with the cmd
key.
comment:4 by , 12 years ago
Keywords: | osx added |
---|---|
Milestone: | → 1.0.2 |
Owner: | set to |
Status: | new → assigned |
Heh, I didn't know we had that :) Reproduced on a Mac. And it's even documented.
In the source browser, you can move the line selection cursor with j
and k
, and reload a folder with r
(and if the folder wasn't open, it is opened). For some reason, cmd-r
triggers the same action as r
, and hence opens the folder where the cursor is located. If no cursor has been moved beforehand, it opens the folder pointed by the mouse cursor.
This is done in trunk/trac/htdocs/js/keyboard_nav.js. There's a check at the top for the Ctrl
key, to allow Ctrl+R
to work. We should improve that check to also catch the cmd
key. According to some sources, the .metaKey
event attribute can be used for this. Actually, for good measure, we should probably catch all modifiers there.
comment:5 by , 11 years ago
Milestone: | 1.0.2 → 1.0.3 |
---|
comment:6 by , 10 years ago
Milestone: | 1.0.3 → next-stable-1.0.x |
---|---|
Owner: | removed |
Status: | assigned → new |
comment:7 by , 10 years ago
Keywords: | macosx added; osx removed |
---|
comment:8 by , 8 years ago
Milestone: | next-stable-1.0.x → next-stable-1.2.x |
---|
Moved ticket assigned to next-stable-1.0.x since maintenance of 1.0.x is coming to a close. Please move the ticket back if it's critical to fix on 1.0.x.
comment:9 by , 5 years ago
Milestone: | next-stable-1.2.x → next-stable-1.4.x |
---|
Which browser are you using? I can't reproduce with Firefox, Chrome or Opera. But maybe I'm misunderstanding step 2 above. Where exactly do you click?