Closed
Bug 1051061
Opened 11 years ago
Closed 11 years ago
[verticalhome] TypeError: this.grid._grid.dragdrop is undefined
Categories
(Firefox OS Graveyard :: Gaia::Homescreen, defect)
Tracking
(blocking-b2g:2.0+, b2g-v2.0 fixed, b2g-v2.1 fixed)
People
(Reporter: djf, Assigned: kgrandon)
References
Details
(Whiteboard: [systemsfe])
Attachments
(1 file)
This error message can appear in the logcat, at least in version 2.0 I saw it first in bug 1050751
I traced it to app.js:200. The dragdrop module is lazy loaded, so it is possible for that code to run before the dragdrop property is defined. This is pretty obviously just a case where you need to test for its existance before using it.
I can reproduce the error by launching an app, using adb shell kill to kill the homescreen and then rapidly tapping multiple times on the home button. This launches a new homescreen and then triggers that app.js:200 code before the lazy load is done.
_grid.dragdrop is also used without checking in the context menu code, but I didn't try to cause an error there.
Assignee | ||
Comment 1•11 years ago
|
||
This should not cause any problems, but we should definitely fix it. Thanks for filing.
Assignee: nobody → kgrandon
Status: NEW → ASSIGNED
Whiteboard: [systemsfe]
Target Milestone: --- → 2.1 S2 (15aug)
Assignee | ||
Comment 2•11 years ago
|
||
David - any chance you'd be willing to throw a review stamp on this since you reported it? :)
Attachment #8470307 -
Flags: review?(dflanagan)
Attachment #8470307 -
Flags: review?(crdlc)
Assignee | ||
Comment 3•11 years ago
|
||
Comment on attachment 8470307 [details] [review]
Github pull request
Hey Chris - any chance you have some cycles for a review? Thanks!
Attachment #8470307 -
Flags: review?(chrislord.net)
Assignee | ||
Comment 4•11 years ago
|
||
[Blocking Requested - why for this release]: This is needed to help us solve bug 1048639 (a CAF blocker).
blocking-b2g: --- → 2.0?
Comment 5•11 years ago
|
||
Comment on attachment 8470307 [details] [review]
Github pull request
LGTM + points for test :)
Attachment #8470307 -
Flags: review?(chrislord.net) → review+
Reporter | ||
Comment 6•11 years ago
|
||
Comment on attachment 8470307 [details] [review]
Github pull request
This looks good to me. I've noted a few nits on github, but nothing that I feel needs to be fixed.
Consider adding a similar fix in the contextmenu event case in contextmenu_handler.js before landing.
Attachment #8470307 -
Flags: review?(dflanagan) → review+
Assignee | ||
Comment 8•11 years ago
|
||
Comment on attachment 8470307 [details] [review]
Github pull request
Thanks for the review guys. I'm making some minor updates to the code based on David's comments and will land this.
Attachment #8470307 -
Flags: review?(crdlc)
Assignee | ||
Comment 9•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Comment 10•11 years ago
|
||
status-b2g-v2.0:
--- → fixed
status-b2g-v2.1:
--- → fixed
Comment 11•11 years ago
|
||
attachment 8470307 [details] [review] has been landed in AU63
You need to log in
before you can comment on or make changes to this bug.
Description
•