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)

x86
macOS
defect
Not set
normal

Tracking

(blocking-b2g:tef+, firefox19 wontfix, firefox20 wontfix, firefox21 fixed, b2g18 fixed, b2g18-v1.0.0 fixed, b2g18-v1.0.1 fixed)

RESOLVED FIXED
mozilla21
blocking-b2g tef+
Tracking Status
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)

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.
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'
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'
Blocks: 826058
I know what's happening: we're trying to share an object wrapped in a window on another one.
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?
Attached patch Patch (obsolete) — Splinter Review
A quick patch based on the Fabrice's comment #3. Not yet tested.
Attachment #709618 - Flags: feedback?(fabrice)
jsmith, it stops us from accessing any property on the manifest object, and for triagers it breaks desktop b2g completely.
Tested Gene's patch, works great, cheers
(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)
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)
Summary: Permission denied to access property 'entry_points' or 'name' → Cannot access any property by the manifest of app object
(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)
Are you sure that you're seeing activity from the clock process? and not rather from the homescreen?
The clock app doesnt ever access the manifest object, or even call getSelf so yeh that does seem unlikely
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!
Attached patch Patch, V1.1Splinter Review
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)
Attachment #710053 - Flags: review?(fabrice) → review+
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?
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
Whiteboard: [qa-]
blocking-b2g: tef? → tef+
Keywords: verifyme
QA Contact: jsmith
Whiteboard: [qa-]
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?
Actually, I'll let automation that Dale has handle the verification.
Keywords: verifyme
Whiteboard: [qa-]
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: