Closed
Bug 187195
Opened 22 years ago
Closed 21 years ago
when unvisited link becomes visited, href attribute becomes absolute
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: jruderman, Assigned: bugzilla)
Details
Attachments
(1 file)
823 bytes,
text/html
|
Details |
Phoenix has a feature that makes links change from the unvisited appearance to
the visited appearance when you middle-click them. This feature has a
side-affect: the href attribute becomes absolute when a link becomes visited,
confusing my user style sheet and potentially confusing scripts that use
getAttribute("href") [as opposed to foo.href].
This bug doesn't affect links that were already visited before you load a page.
As a result, reloading fixes the problem.
I discovered this bug shortly after adding the following rule to
userContent.css. The rule is only supposed to match absolute links to slashdot
urls, but because of this bug, it also matches relative links to slashdot urls
that are visited while the page is open. The rule doesn't use :link or :visited.
a[href^="http://www.slashdot.org"], a[href^="http://slashdot.org"]
{ background: white ! important; color: #066 ! important; font-weight: bold !
important }
Reporter | ||
Comment 1•22 years ago
|
||
Updated•22 years ago
|
OS: Windows XP → All
Updated•21 years ago
|
QA Contact: asa
Updated•21 years ago
|
Component: General → Layout
Product: Firefox → Browser
Version: unspecified → 1.0 Branch
Updated•21 years ago
|
Assignee: firefox → nobody
QA Contact: core.layout
(In reply to comment #0)
> Phoenix has a feature that makes links change from the unvisited appearance to
> the visited appearance when you middle-click them. This feature has a
It does? I thought middle-click on a link was either "open in new tab" or "open
in new window".
I see no evidence of this feature you mention still existing, and in any case,
it sounds like a front-end bug (because it sounds like a poor implementation of
the feature in question, if that feature still exists).
Assignee: nobody → firefox
Component: Layout → General
Product: Browser → Firefox
Version: 1.0 Branch → unspecified
Comment 3•21 years ago
|
||
(In reply to comment #2)
> It does? I thought middle-click on a link was either "open in new tab" or "open
> in new window".
>
> I see no evidence of this feature you mention still existing, and in any case,
> it sounds like a front-end bug (because it sounds like a poor implementation of
> the feature in question, if that feature still exists).
Just try it, it works. David Hyatt was the one who added this feature, and it's
great. But this bug is about a side-effect that should be fixed, of course.
When I middle click a link in Firefox, it opens in a new tab.
Comment 5•21 years ago
|
||
(In reply to comment #4)
> When I middle click a link in Firefox, it opens in a new tab.
Sure, and the link gets the a:visited color instead of a:link.
Comment 7•21 years ago
|
||
(In reply to comment #6)
> I don't think that's what comment 0 is referring to. Comment 0 is referring to
> a feature that manipulates the DOM in some way.
I am referring to this (in comment 0):
"Phoenix has a feature that makes links change from the unvisited appearance to
the visited appearance when you middle-click them."
That's exactly what I thought we were all talking about here. :)
Oh, this was already fixed (and I was right that it was a front-end bug):
http://bonsai.mozilla.org/cvslog.cgi?file=mozilla/browser/base/content/contentAreaUtils.js&rev=1.19#1.19
http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/browser/base/content/contentAreaUtils.js&rev=1.33&mark=74-75#64
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
(I interpreted comment 0 as saying the feature was:
middle click link == mark link as visited
.)
You need to log in
before you can comment on or make changes to this bug.
Description
•