Closed
Bug 796198
Opened 12 years ago
Closed 12 years ago
Use the right cookie jar when downloading package and minimanifest for packaged apps
Categories
(Core Graveyard :: DOM: Apps, defect, P1)
Tracking
(blocking-basecamp:+, firefox19 fixed, firefox20 fixed, b2g18 fixed)
People
(Reporter: sicking, Assigned: fabrice)
References
Details
(Whiteboard: [qa-])
Attachments
(2 files)
(deleted),
patch
|
sicking
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
sicking
:
review+
|
Details | Diff | Splinter Review |
When downloading the mini manifest as well as the app package we should use the same cookie jar as was used to load the page which called apps.install/installPackage.
This means that we for all packaged apps have to remember which cookie jar was used at the time of the install call and then make sure to use the same cookie jar during both the initial download as well as during updates.
Reporter | ||
Comment 1•12 years ago
|
||
I don't think we need any additional necko support for this. "All" we need to do is to create a custom nsILoadContext and hook up to the channels used for the mini manifest and the package.
Reporter | ||
Comment 2•12 years ago
|
||
Nominating for blocking as I my understanding is that the marketplace needs this in order to restrict access to non-reviewed packaged apps such that only reviewers can install them.
blocking-basecamp: --- → ?
Assignee | ||
Comment 3•12 years ago
|
||
We currently download the manifests from the content process, and I think it would be easier to implement that cookie jar if we move all the network access in the parent since this is where we have direct access to all the meta-data associated with apps.
Reporter | ||
Comment 4•12 years ago
|
||
Indeed, we'd have to do that since we're planning on adding security checks in the necko code which prevents apps from using each other's cookie jars.
Updated•12 years ago
|
blocking-basecamp: ? → +
Updated•12 years ago
|
Updated•12 years ago
|
Priority: -- → P3
Comment 5•12 years ago
|
||
I know you're at TPAC, Jonas, but can you provide a status update when you get home? Should we give this to someone else?
Flags: needinfo?(jonas)
Comment 6•12 years ago
|
||
This bug has been called out as likely having risk to non-B2G platforms. Given that, marking as P1, and moving into the C2 milestone. We should prioritize this landing to mozilla-beta as soon as possible, to prevent late-breaking regressions to other platforms.
Priority: P3 → P1
Target Milestone: --- → B2G C2 (20nov-10dec)
Comment 7•12 years ago
|
||
Not marketplace related - removing from tracking bug.
No longer blocks: market-packaged-apps
Comment 8•12 years ago
|
||
Jonas, there's been no update from you since October. What needs to happen in this bug?
Comment 9•12 years ago
|
||
What is the status of this bug?
Assignee | ||
Comment 10•12 years ago
|
||
stealing from Jonas since he has no time to work on this.
Assignee: jonas → fabrice
Reporter | ||
Updated•12 years ago
|
Flags: needinfo?(jonas)
Updated•12 years ago
|
Blocks: app-install
Updated•12 years ago
|
No longer blocks: app-install
Assignee | ||
Comment 11•12 years ago
|
||
This patch is just doing some preliminary set up, moving all the network accessing code into the parent.
Attachment #689941 -
Flags: review?(jonas)
Assignee | ||
Comment 12•12 years ago
|
||
In this part we save the installer appId and isBrowser flag, and reuse it on all the network channels except appcache downloads.
Unfortunately I could not really test it since the reviewer tools from the marketplace app redirect into the browser.
Assignee | ||
Updated•12 years ago
|
Attachment #689943 -
Flags: review?(jonas)
Updated•12 years ago
|
Blocks: packaged-apps
Reporter | ||
Updated•12 years ago
|
Attachment #689941 -
Flags: review?(jonas) → review+
Reporter | ||
Comment 13•12 years ago
|
||
Comment on attachment 689943 [details] [diff] [review]
part 2 : set the cookie jars
Review of attachment 689943 [details] [diff] [review]:
-----------------------------------------------------------------
r=me with that fixed.
::: dom/apps/src/Webapps.jsm
@@ +1209,5 @@
> },
>
> + // Creates a nsILoadContext object with a given appId and isBrowser flag.
> + createLoadContext: function createLoadContext(aAppId, aIsBrowser) {
> + return LoadContextCallback.prototype = {
This looks weird. Why are you setting LoadContextCallback.prototype rather than simply returning the new object?
Attachment #689943 -
Flags: review?(jonas) → review+
Assignee | ||
Comment 14•12 years ago
|
||
Comment 15•12 years ago
|
||
Backed out because this broke mochitest-chrome tests:
https://hg.mozilla.org/integration/mozilla-inbound/rev/b901ea202aeb
https://hg.mozilla.org/integration/mozilla-inbound/rev/eedefdd3375d
Examples: https://tbpl.mozilla.org/?tree=Mozilla-Inbound&rev=9f29dda59ef7
Assignee | ||
Comment 16•12 years ago
|
||
Comment 17•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/f4c6bbc050f6
https://hg.mozilla.org/mozilla-central/rev/dfaef416ac16
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
Whiteboard: [qa-]
Comment 18•12 years ago
|
||
https://hg.mozilla.org/releases/mozilla-aurora/rev/4e628b270773
https://hg.mozilla.org/releases/mozilla-aurora/rev/0a3bc21498fd
https://hg.mozilla.org/releases/mozilla-b2g18/rev/f61ba33ba987
https://hg.mozilla.org/releases/mozilla-b2g18/rev/796f6f5dd6e8
status-firefox19:
--- → fixed
status-firefox20:
--- → fixed
Whiteboard: [qa-] → [qa-][status-b2g18:fixed]
Updated•12 years ago
|
status-b2g18:
--- → fixed
Whiteboard: [qa-][status-b2g18:fixed] → [qa-]
Updated•12 years ago
|
No longer blocks: packaged-apps
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
•