Closed Bug 1210235 Opened 10 years ago Closed 10 years ago

Pref off any signed web packaged app things

Categories

(Core :: Networking, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla44
Tracking Status
firefox44 --- fixed

People

(Reporter: hchang, Assigned: hchang)

References

Details

Attachments

(1 file, 2 obsolete files)

We need a preference to isolate all the operations on signed app and pref off it. The purpose is to avoid shipping pre-mature signed package app code.
Assignee: nobody → hchang
Attached patch Bug1210235.patch (obsolete) — Splinter Review
I believe the attached patch also addresses the requirement mentioned in Bug 1205623.
Comment on attachment 8672486 [details] [diff] [review] Bug1210235.patch Hi Valentin, The patch is intended to do the verification only when 'network.http.packaged-signed-apps-enabled' is true and the package has a signature. The purpose of adding preference 'network.http.packaged-signed-apps-enabled' is to prevent from the immature "signed package app code" interfering the "original packaged web app".
Attachment #8672486 - Flags: review?(valentin.gosu)
Comment on attachment 8672486 [details] [diff] [review] Bug1210235.patch Review of attachment 8672486 [details] [diff] [review]: ----------------------------------------------------------------- Thanks Henry. This is a very good step forward and resolves a few of my concerns when dealing with unsigned packages. r=me
Attachment #8672486 - Flags: review?(valentin.gosu) → review+
Comment on attachment 8672486 [details] [diff] [review] Bug1210235.patch Review of attachment 8672486 [details] [diff] [review]: ----------------------------------------------------------------- I think you also need to update some of the unit tests for signed packages, setting this pref. ::: netwerk/protocol/http/PackagedAppVerifier.cpp @@ +68,5 @@ > static bool onceThru = false; > if (!onceThru) { > Preferences::AddBoolVarCache(&gDeveloperMode, > "network.http.packaged-apps-developer-mode", false); > + Preferences::AddBoolVarCache(&gSignedAppEnabled, FYI, this variable does not seem to be in this patch. Maybe you have it left over in another patch.
Attachment #8672899 - Attachment description: Bug1210235.diff → Bug1210235 (r+'d, added missing variable declaration)
Attachment #8672486 - Attachment is obsolete: true
Thanks Valentin! I am also aware of the missing variable declaration :p Have attached a new patch!
Blocks: nsec
Got a bunch of test failures. It seems I have to enable "network.http.packaged-signed-apps-enabled" in where we enable "network.http.packaged-apps-developer-mode".
Attachment #8672899 - Attachment is obsolete: true
Attached a new patch to fix test case error and waiting for try result: https://treeherder.mozilla.org/#/jobs?repo=try&revision=b5380c1d5ecd
Keywords: checkin-needed
Can you please sure the patches don't have try syntax? :)
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla44
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: