Closed
Bug 962902
Opened 12 years ago
Closed 12 years ago
Duplicate blob url wastes 125k in the system app.
Categories
(Firefox OS Graveyard :: Gaia::System, defect)
Tracking
(blocking-b2g:1.3T+, b2g-v1.3T fixed, b2g-v2.0 fixed)
RESOLVED
FIXED
| blocking-b2g | 1.3T+ |
People
(Reporter: fabrice, Assigned: mnjul)
Details
Attachments
(2 files, 4 obsolete files)
Both bootstrap.js and lockscreen.js are creating blobs and they show up in memory reports.
| Reporter | ||
Comment 1•12 years ago
|
||
Centralize the wallpaper setting listener to create a single blob and redispatch the url using an event.
Assignee: nobody → fabrice
Attachment #8364086 -
Flags: review?(alive)
Comment 2•12 years ago
|
||
Comment on attachment 8364086 [details] [diff] [review]
wallpaper.patch
Review of attachment 8364086 [details] [diff] [review]:
-----------------------------------------------------------------
I don't see the new wallpaper.js ?
Attachment #8364086 -
Flags: review?(alive)
| Reporter | ||
Comment 3•12 years ago
|
||
Sorry for the missing file... I sent a PR to get travis results too.
Attachment #8364086 -
Attachment is obsolete: true
Attachment #8364812 -
Flags: review?(alive)
Comment 4•12 years ago
|
||
Comment on attachment 8364812 [details] [review]
gaia PR
See github comment for v1.4
Attachment #8364812 -
Flags: review?(alive) → review+
| Reporter | ||
Comment 5•12 years ago
|
||
damn, I totally forgot about this one. If someone has time to make it move forward, please do!
| Reporter | ||
Updated•12 years ago
|
Flags: needinfo?(alive)
| Reporter | ||
Comment 7•12 years ago
|
||
Alive, maybe someone else in your team could take that?
Flags: needinfo?(alive)
Comment 8•12 years ago
|
||
John, could you steal this bug and finish the patch? Shouldn't be too hard.
Flags: needinfo?(alive) → needinfo?(jlu)
| Assignee | ||
Comment 9•12 years ago
|
||
Yeah ok, lemme look into this.
Updated•12 years ago
|
blocking-b2g: --- → 1.3T?
| Assignee | ||
Comment 10•12 years ago
|
||
Hi Fabrice,
While your patch seems to work with real devices, it appears that it breaks the emulation on nightly. When I run your branch for testing gaia on (the latest) nightly, all I get is a blank screen (with sim & battery icons on the status bar, no more than that). Check out the attachment for screenshot. Could you confirm this? And if yes, could you see if you can fix that? Thanks a lot!
Flags: needinfo?(fabrice)
| Reporter | ||
Comment 11•12 years ago
|
||
John, I never tested that on master, only on 1.3t. Which gaia branch are you using?
Flags: needinfo?(fabrice)
| Assignee | ||
Comment 12•12 years ago
|
||
Hi Fabrice,
I tested your patch both on 1.3t (latest 1.3t on github with your two commits cherry-picked) and on master (again, commits are cherry-picked, but some conflicts needed to be resolved, please check: https://github.com/mnjul/gaia/tree/bug_962902_duplicate_blob/fabricedesre_original ). In both scenarios, the emulation on Nightly broke (as described in my comment 10 above) after your two commits were cherry-picked in.
To clarify: if we only want to land this patch on 1.3t and if 1.3t is never meant to work in Nightly emulation (big disclaimer: this is something I don't know, we might want to NI others to confirm/deny), then we can proceed. Otherwise, if we also want to land the patch on master/1.4, then based on my current observation of how it breaks Nightly emulation, I would say we need to solve the black screen problem before we give the patch a green light for safe landing. What do you think? Thanks a lot.
Flags: needinfo?(fabrice)
Comment 13•12 years ago
|
||
Well, I don't see the obvious reason to break desktop but work on device. Could you just steal the bug and do investigation?
| Reporter | ||
Comment 14•12 years ago
|
||
What Alive said, it's all your John!
Assignee: fabrice → jlu
Flags: needinfo?(fabrice)
Updated•12 years ago
|
blocking-b2g: 1.3T? → 1.3T+
| Assignee | ||
Comment 15•12 years ago
|
||
Hi everyone,
The finished patch is here.
The blank screen issue as reported in comment 12 has been resolved. It was caused by the situation that if the new wallpaper.js was executed before lockscreen's initialization (such as during device boot), then lockscreen's wallpaper-change event listener would not be triggered ( as in https://github.com/mnjul/gaia/blob/cd2d8b502ce34d03cb07c88e7b67ff6c7a59d2af/apps/system/js/lockscreen.js#L385-L388 ) and the lockscreen would have its uninit class remained -- thus it looked blank.
The execution/initialization of wallpaper.js (now renamed to wallpaper_manager.js) is now controlled in bootstrap.js.
Attachment #8364812 -
Attachment is obsolete: true
Attachment #8428483 -
Attachment is obsolete: true
Flags: needinfo?(jlu)
| Assignee | ||
Updated•12 years ago
|
Attachment #8430700 -
Flags: review?(alive)
Comment 16•12 years ago
|
||
Comment on attachment 8430700 [details] [review]
New Patch
Well, since we are not rushing to land, it's a nice practice to write unit test for wallpaper manager.
Attachment #8430700 -
Flags: review?(alive) → feedback+
| Reporter | ||
Comment 17•12 years ago
|
||
We want that to land (at least on 1.3t) this week.
| Assignee | ||
Updated•12 years ago
|
Flags: needinfo?(jlu)
Comment 18•12 years ago
|
||
(In reply to Fabrice Desré [:fabrice] from comment #17)
> We want that to land (at least on 1.3t) this week.
Let's land the patch without tests if there's no conflict.
| Assignee | ||
Comment 19•12 years ago
|
||
I modified the patch to fix a minor issue Alive commented on my github PR. Its Travis is running now.
Flags: needinfo?(jlu)
| Reporter | ||
Comment 20•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment 21•12 years ago
|
||
Hi John, I had some trouble uplifting your patch to 1.3t. Can you take a look at this pull request and make sure everything looks right?
Attachment #8431685 -
Flags: review?(jlu)
Comment 22•12 years ago
|
||
Reverted for Gaia unit test failures.
Master: https://github.com/mozilla-b2g/gaia/commit/e4ab23c961f3364af962617174b0b6c8cb832db2
https://tbpl.mozilla.org/php/getParsedLog.php?id=40745463&tree=B2g-Inbound
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
| Assignee | ||
Updated•12 years ago
|
Flags: needinfo?(jlu)
Comment 23•12 years ago
|
||
Hi John, can you please provide some updateS? Thanks
| Assignee | ||
Comment 24•12 years ago
|
||
Yep, I found out why it didn't pass test in tbpl. I should be able to issue a PR tomorrow (Thursday) and hopefully if things are OK we can land it soon
@michael: you might want to issue a new PR after my new fix lands. From what I can see in your old PR's Travis report, gjslint failed because of some unsupported JSDoc attributes. I will take care of it with my new fix too.
| Assignee | ||
Comment 25•12 years ago
|
||
Master: https://github.com/mozilla-b2g/gaia/commit/8bb67b73078ef056017582f57d8b25220804d615
@michael: Please try uplifting to v1.3t again. To avoid gjslint errors:
1. remove "/** @exports WallpaperManager */" from apps/system/js/wallpaper_manager.js around line 58 ( https://github.com/mozilla-b2g/gaia/commit/8bb67b73078ef056017582f57d8b25220804d615#diff-a876f04c62310f55eaa7ac7e28f89ba7R58 )
2. change "@returns" to "@return in apps/system/js/wallpaper_manager.js around line 51 ( https://github.com/mozilla-b2g/gaia/commit/8bb67b73078ef056017582f57d8b25220804d615#diff-a876f04c62310f55eaa7ac7e28f89ba7R51 )
I will help you with uplifting issues if any.
Status: REOPENED → RESOLVED
Closed: 12 years ago → 12 years ago
Flags: needinfo?(jlu)
Resolution: --- → FIXED
Comment 26•12 years ago
|
||
I recommend you to make a 1.3t patch instead of hand writing comments.
(In reply to John Lu [:mnjul] @MoCoTaipei from comment #25)
> Master:
> https://github.com/mozilla-b2g/gaia/commit/
> 8bb67b73078ef056017582f57d8b25220804d615
>
> @michael: Please try uplifting to v1.3t again. To avoid gjslint errors:
> 1. remove "/** @exports WallpaperManager */" from
> apps/system/js/wallpaper_manager.js around line 58 (
> https://github.com/mozilla-b2g/gaia/commit/
> 8bb67b73078ef056017582f57d8b25220804d615#diff-
> a876f04c62310f55eaa7ac7e28f89ba7R58 )
> 2. change "@returns" to "@return in apps/system/js/wallpaper_manager.js
> around line 51 (
> https://github.com/mozilla-b2g/gaia/commit/
> 8bb67b73078ef056017582f57d8b25220804d615#diff-
> a876f04c62310f55eaa7ac7e28f89ba7R51 )
>
> I will help you with uplifting issues if any.
| Assignee | ||
Comment 27•12 years ago
|
||
Hi Michael,
Here's the new 1.3t uplift (Travis-passing). Please review and merge :)
Attachment #8431685 -
Attachment is obsolete: true
Attachment #8431685 -
Flags: review?(jlu)
Attachment #8435658 -
Flags: review?(mhenretty)
Comment 28•12 years ago
|
||
Thanks John!
1.3t: https://github.com/mozilla-b2g/gaia/commit/d44d2f9020e3729dc7e12fbdfaee876d090d5605
status-b2g-v1.3T:
--- → fixed
status-b2g-v2.0:
--- → fixed
Comment 29•12 years ago
|
||
Comment on attachment 8435658 [details] [review]
1.3t uplift (again)
For future reference, you generally don't need another review for an uplift, you just need approval (which in this case came with the 1.3T blocking flag). But it really helped that you created the Pull Request for me :)
Attachment #8435658 -
Flags: review?(mhenretty) → review+
You need to log in
before you can comment on or make changes to this bug.
Description
•