Closed Bug 594374 Opened 15 years ago Closed 8 years ago

Opening Add-on detail view first flashes previously opened add-on page

Categories

(Toolkit :: Add-ons Manager, defect)

defect
Not set
trivial

Tracking

()

RESOLVED INACTIVE

People

(Reporter: grenavitar, Assigned: Unfocused)

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b6pre) Gecko/20100908 Firefox/4.0b6pre Build Identifier: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b6pre) Gecko/20100908 Firefox/4.0b6pre Opening Add-on detail view first flashes previously opened add-on page. Maybe this is because opening of detailed view is called before contents of detailed view is refreshed? Reproducible: Always Steps to Reproduce: 1. Open Add-on manager 2. Open detailed view of first add-on 3. Go back to list view 4. Open detailed view of another add-on Actual Results: You see the detail view of the first add-on, image included, flash on the screen before the second add-on detailed view is loaded. Expected Results: Normal loading of the add-on
Component: General → Add-ons Manager
Product: Firefox → Toolkit
Version: unspecified → Trunk
I see this too for a few ms.
Status: UNCONFIRMED → NEW
Ever confirmed: true
QA Contact: general → add-ons.manager
Blocks: 590218
OS: Windows 7 → All
Hardware: x86 → All
Bug 590218 is about styling, this is something else.
No longer blocks: 590218
Fallout from the various recent changes to detail view. Will fix up the styling of the "loading" message while I'm at it.
Assignee: nobody → bmcbride
Status: NEW → ASSIGNED
Whiteboard: [needs 601022]
It's still visible but that fast, that it's hard to distinguish both versions.
Whiteboard: [needs 601022]
(In reply to comment #4) > It's still visible Seems I fixed the main regression, but we've always cleared the loading message too early. We clear it once the async call completes, but before any of the UI is actually updated. Patch coming up.
(In reply to comment #5) > but we've always cleared the loading message > too early. We clear it once the async call completes, but before any of the UI > is actually updated. *sigh* Scratch that. Forgot the main loading attribute (which controls the visibility of the main content of the details view) is handled by the view manager now (which gets notified after all the UI is updated). gDetailsView.clearLoading() only clears the additional loading message - it doesn't show the main content anymore. So as far as I can tell, this is indeed fixed. Tested manually by adding a forced delay in various parts of gDetailsView.show() and gDetailsView._updateView().
Attached patch Test v1Splinter Review
This tests the problem that was solved in bug 601022.
Attachment #495805 - Flags: review?(dtownsend)
Comment on attachment 495805 [details] [diff] [review] Test v1 Slightly concerned over the racing timeouts here but it looks like they should only ever fire in order
Attachment #495805 - Flags: review?(dtownsend) → review+
Had forgotten about this.. just rebased to get it landed, and the test is failing now. Gonna investigate sometime this week.
Per policy at https://wiki.mozilla.org/Bug_Triage/Projects/Bug_Handling/Bug_Husbandry#Inactive_Bugs. If this bug is not an enhancement request or a bug not present in a supported release of Firefox, then it may be reopened.
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: