Closed
Bug 837572
Opened 12 years ago
Closed 12 years ago
Cannot access any property by the manifest of app object
Categories
(Core Graveyard :: DOM: Apps, defect)
Tracking
(blocking-b2g:tef+, firefox19 wontfix, firefox20 wontfix, firefox21 fixed, b2g18 fixed, b2g18-v1.0.0 fixed, b2g18-v1.0.1 fixed)
People
(Reporter: daleharvey, Assigned: airpingu)
References
Details
(Keywords: regression, Whiteboard: [qa-])
Attachments
(1 file, 1 obsolete file)
4.87 KB,
patch
|
fabrice
:
review+
|
Details | Diff | Splinter Review |
Desktop b2g fails for me with the above error, the update tests from https://bugzilla.mozilla.org/show_bug.cgi?id=826058 also fail with the same symptom.
reverting https://github.com/mozilla/mozilla-central/commit/8d8d2bcf8a31d4f39daf2945c13f3fd401eac814 fixes it for me.
Reporter | ||
Comment 1•12 years ago
|
||
https://tbpl.mozilla.org/php/getParsedLog.php?id=19406158&tree=Try is th elink to the logs for a try run with the update tests that also shows the error:
Error: Permission denied to access property 'name'
Comment 2•12 years ago
|
||
So what exactly would this stop working from at the API level?
Does this basically prevent using app object's manifest.name property?
tracking-b2g18:
--- → ?
Keywords: regression
Summary: Permission denied to access property 'entry_points' → Permission denied to access property 'entry_points' or 'name'
Comment 3•12 years ago
|
||
I know what's happening: we're trying to share an object wrapped in a window on another one.
Assignee | ||
Comment 4•12 years ago
|
||
Nominating for tef+ (are we still using tef? this week?) since it looks no good if we cannot access the properties of an app object.
Blocks: 834999
blocking-b2g: --- → tef?
Assignee | ||
Comment 5•12 years ago
|
||
A quick patch based on the Fabrice's comment #3. Not yet tested.
Attachment #709618 -
Flags: feedback?(fabrice)
Reporter | ||
Comment 6•12 years ago
|
||
jsmith, it stops us from accessing any property on the manifest object, and for triagers it breaks desktop b2g completely.
Reporter | ||
Comment 7•12 years ago
|
||
Tested Gene's patch, works great, cheers
Assignee | ||
Comment 8•12 years ago
|
||
(In reply to Dale Harvey (:daleharvey) from comment #7)
> Tested Gene's patch, works great, cheers
Thanks Dale for the quick test!
However, I noticed an issue when trying to solve this bug (please see bug 834999, comment #25). The .uninit() won't be executed when we attempt to use the task manager to kill the app. I'm wondering do we need to move the cahce mechanism to the parent which is capable of listening to the "child-process-shutdown", so that it can know when to clear the cache.
Fabrice, do you have any suggestions?
Flags: needinfo?(fabrice)
Updated•12 years ago
|
tracking-b2g18:
? → ---
Comment 9•12 years ago
|
||
Comment on attachment 709618 [details] [diff] [review]
Patch
Review of attachment 709618 [details] [diff] [review]:
-----------------------------------------------------------------
Gene, what happens when we close an app from the card view? The process is killed, right? so we don't keep any cache around in the content process I think.
Attachment #709618 -
Flags: feedback?(fabrice) → feedback+
Flags: needinfo?(fabrice)
Assignee | ||
Updated•12 years ago
|
Summary: Permission denied to access property 'entry_points' or 'name' → Cannot access any property by the manifest of app object
Assignee | ||
Comment 10•12 years ago
|
||
(In reply to Fabrice Desré [:fabrice] from comment #9)
> Gene, what happens when we close an app from the card view? The process is
> killed, right? so we don't keep any cache around in the content process I
> think.
Thanks Fabrice for the feedback! :)
The bizarre thing is after I killed an app (ex, Clock app) from card view and relaunched it, it would still use the cached manifest (indexed by manifestURL and innerWindowID). The cached data wasn't cleared as expected... Is there always one Webapps.js for one content process?
(rushing to a meeting and will come back 1.5 hour later)
Comment 11•12 years ago
|
||
Are you sure that you're seeing activity from the clock process? and not rather from the homescreen?
Reporter | ||
Comment 12•12 years ago
|
||
The clock app doesnt ever access the manifest object, or even call getSelf so yeh that does seem unlikely
Assignee | ||
Comment 13•12 years ago
|
||
Thanks Fabrice and Dale! It should be the Homescreen app and that explains everything. :D Sorry for my misunderstanding. I'll ask for review very soon after more tests!
Assignee | ||
Comment 14•12 years ago
|
||
Hi Fabrice,
This patch works well. I just corrected the commit message. Thanks for the review again!
Assignee: nobody → gene.lian
Attachment #709618 -
Attachment is obsolete: true
Attachment #710053 -
Flags: review?(fabrice)
Updated•12 years ago
|
Attachment #710053 -
Flags: review?(fabrice) → review+
Assignee | ||
Comment 15•12 years ago
|
||
Comment on attachment 710053 [details] [diff] [review]
Patch, V1.1
[Approval Request Comment]
Bug caused by (feature/regressing bug #): bug 834999
User impact if declined: the content cannot access any properties from the manifest of the app object.
Testing completed: yes
Risk to taking this patch (and alternatives if risky): low
String or UUID changes made by this patch: none
Asking for approval‑mozilla‑b2g18+ before tef+ is decided. We definitely need to check this in into b2g18 to fix the regression; otherwise, the app will fail to access the app's properties (like the app's name) through the app object.
Attachment #710053 -
Flags: approval-mozilla-b2g18?
Assignee | ||
Comment 16•12 years ago
|
||
status-b2g18:
--- → affected
status-b2g18-v1.0.0:
--- → affected
status-firefox19:
--- → wontfix
status-firefox20:
--- → wontfix
status-firefox21:
--- → fixed
Comment 17•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
Updated•12 years ago
|
Whiteboard: [qa-]
Updated•12 years ago
|
blocking-b2g: tef? → tef+
Comment 18•12 years ago
|
||
Updated•12 years ago
|
Assignee | ||
Comment 19•12 years ago
|
||
Comment on attachment 710053 [details] [diff] [review]
Patch, V1.1
Already landed to b2g18. Remove the approval‑mozilla‑b2g18 request.
Attachment #710053 -
Flags: approval-mozilla-b2g18?
Comment 20•12 years ago
|
||
Actually, I'll let automation that Dale has handle the verification.
Keywords: verifyme
Whiteboard: [qa-]
Updated•12 years ago
|
status-b2g18-v1.0.1:
--- → fixed
Updated•7 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•