Closed Bug 360220 Opened 19 years ago Closed 19 years ago

readers menulist has no icon if the last-selected reader is a web reader

Categories

(Firefox Graveyard :: RSS Discovery and Preview, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 3 alpha2

People

(Reporter: asaf, Assigned: asaf)

References

Details

(Keywords: fixed1.8.1.1, regression)

Attachments

(3 files)

regression from bug 358878: the readers menulist has no icon if the last-selected reader is a web reader. This is happening because we set the icon of the web reader after it has been selected.
Attached patch patchSplinter Review
Assignee: nobody → mano
Status: NEW → ASSIGNED
Attachment #245186 - Flags: review?(gavin.sharp)
Comment on attachment 245186 [details] [diff] [review] patch I don't really understand why this is needed. Is the problem that FeedWriter.js sets the attribute after inserting the element into the document? If so, can't it wait to appendChild until after the icon load?
That's the problem, yes, but i don't think we should let the user wait until we have the icon (Plus I think this is something we want menulist to do regardless of this bug).
And as discussed on IRC, the 1.8.1.x patch is going to be less generic.
Don't regress this if bug 358878 ends up on the branch
Flags: blocking1.8.1.1+
Whiteboard: need r=gavin
"fixed" on the 1.8.1.1 by not causing the regression in bug 358878's patch -- need QA to verify.
Summary: regression: readers menulist has no icon if the last-selected reader is a web reader → readers menulist has no icon if the last-selected reader is a web reader
Whiteboard: need r=gavin
Steps to reproduce (new profile): 1) Visit http://planet.mozilla.org/atom.xml (or some other feed) 2) Choose one of the web readers from the dropdown list (e.g. My Yahoo) 3) Click Subscribe Now 4) Click back OR load a feed in a new tab Expected results: The reader selected at 2 should be selected in the dropdown, and it should have an icon. Actual results with builds affected by this bug: The reader is selected, but doesn't have an icon. It does have an icon in the dropdown, and switching to another reader and then back brings back the icon.
OS: Windows XP → All
Hardware: PC → All
Version: unspecified → Trunk
Attachment #245186 - Flags: review?(enndeakin)
Attachment #245186 - Flags: review?(enndeakin) → review+
Target Milestone: --- → Firefox 3 alpha2
Attached patch unit testSplinter Review
Attachment #248094 - Flags: review?(enndeakin)
Attachment #245186 - Flags: review?(gavin.sharp)
Comment on attachment 248094 [details] [diff] [review] unit test OK, I guess.
Attachment #248094 - Flags: review?(enndeakin) → review+
mozilla/toolkit/content/widgets/menulist.xml 1.26 mozilla/testing/mochitest/tests/test_bug360220.xul 1.1
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Attachment #256232 - Flags: review?(mano)
Comment on attachment 256232 [details] [diff] [review] move the test into toolkit r=mano.
Attachment #256232 - Flags: review?(mano) → review+
/cvsroot/mozilla/toolkit/content/tests/Makefile.in,v <-- Makefile.in new revision: 1.3; previous revision: 1.2 done RCS file: /cvsroot/mozilla/toolkit/content/tests/widgets/Makefile.in,v done Checking in widgets/Makefile.in; /cvsroot/mozilla/toolkit/content/tests/widgets/Makefile.in,v <-- Makefile.in initial revision: 1.1 done RCS file: /cvsroot/mozilla/toolkit/content/tests/widgets/test_bug360220.xul,v done Checking in widgets/test_bug360220.xul; /cvsroot/mozilla/toolkit/content/tests/widgets/test_bug360220.xul,v <-- test_bug360220.xul initial revision: 1.1 done
Product: Firefox → Firefox Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: