Closed Bug 875937 Opened 12 years ago Closed 11 years ago

Defect - App bar pin tile icon refreshes after it is displayed instead of before

Categories

(Firefox for Metro Graveyard :: Browser, defect, P3)

All
Windows 8.1
defect

Tracking

(Not tracked)

VERIFIED FIXED
Firefox 25

People

(Reporter: bbondy, Assigned: kjozwiak)

References

Details

(Whiteboard: feature=defect c=Awesome_screen u=metro_firefox_user p=1)

Attachments

(2 files)

1. Select a tile and pin it. 2. Select a different tile that is unpinned, notice that pin icon shows up. 3. Unselect that tile 4. Select the tile that was previously pinned Actual results: You'll see the appbar come up with the pin icon, and then after it is up it changes to the unpin icon Expected result: It should just show the unpin icon right away and not change after it has come up.
Whiteboard: feature=defect c=Awesome_screen u=metro_firefox_user p= → feature=defect c=Awesome_screen u=metro_firefox_user p=0
p=1
Priority: P1 → P3
Assignee: nobody → kamiljoz
other than some automated tests, this is my first patch that seems to fix the problem described by Brian in comment 0
Attachment #776898 - Flags: review?(mbrubeck)
Comment on attachment 776898 [details] [diff] [review] fixes the pin issue Review of attachment 776898 [details] [diff] [review]: ----------------------------------------------------------------- Looks great. Thanks! ::: browser/metro/base/content/appbar.js @@ +159,5 @@ > }, > > showContextualActions: function(aVerbs) { > + // When the appbar is not visible, we want the icons to refresh right away > + var immediate = !Elements.contextappbar.isShowing; nit: Please use "let" instead of "var".
Attachment #776898 - Flags: review?(mbrubeck) → review+
fixed the small nit mentioned in comment 3
Attachment #777522 - Flags: review+
\o/ :D Nice job! I pushed to try here: https://tbpl.mozilla.org/?tree=Try&rev=c070a75e1da0 This will run through the metro tests to make sure nothing got broken in the tests or the app. I'll check if that passes tomorrow and if so I'll push it over to mozilla-central.
Thanks Brian! Appreciate it
Whiteboard: feature=defect c=Awesome_screen u=metro_firefox_user p=0 → feature=defect c=Awesome_screen u=metro_firefox_user p=1
Target Milestone: --- → Firefox 25
Blocks: metrov1it11
No longer blocks: metrov1defect&change
Status: NEW → ASSIGNED
QA Contact: jbecerra
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Mozilla/5.0 (Windows NT 6.2; rv:25.0) Gecko/20130728 Firefox/25.0 Verified as fixed on the latest Nightly build using the steps from the description.
Status: RESOLVED → VERIFIED
OS: Windows 8 Metro → Windows 8.1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: