Closed
Bug 454019
Opened 16 years ago
Closed 16 years ago
Dynamic href attributes don't get added to the document's link map
Categories
(Core :: Layout, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 482394
People
(Reporter: jruderman, Assigned: roc)
Details
(Keywords: testcase)
Attachments
(2 files)
Steps to reproduce:
1. Load the testcase.
2. Cmd+click the link.
Result: link remains blue
Expected: link should become purple
When the script changes the link's href, nsStyleUtil::IsHTMLLink is (only) called with aForStyling false, so AddStyleRelevantLink is never called with the new href. Since the link isn't in the document's link map, it isn't affected by the notification when its href becomes visited later.
This means the fix for bug 78510 isn't working for some kinds of dynamic links. I noticed this bug while playing with bug 393802.
Reporter | ||
Comment 1•16 years ago
|
||
Reporter | ||
Comment 2•16 years ago
|
||
Assignee | ||
Updated•16 years ago
|
Assignee: nobody → roc
Flags: wanted1.9.1?
Comment 3•16 years ago
|
||
That's odd. I would expect the style reresolve (triggered by nsHTMLStyleSheet::HasAttributeDependentStyle) to cause an aForStyling=PR_TRUE call here later... Why is it not called?
Assignee | ||
Updated•16 years ago
|
Flags: wanted1.9.1?
Flags: wanted1.9.1-
Flags: blocking1.9.1-
Comment 4•16 years ago
|
||
OK, I suck for dropping the ball on this (or rather, losing it in my todo queue). The good news is that I did fix it in bug 482394. Comment 0 of that bug answers my question from comment 3.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•