Closed Bug 1235929 Opened 9 years ago Closed 9 years ago

PushRecord needs to use origin attributes when creating a codebase principal

Categories

(Firefox :: Security, defect)

defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: huseby, Assigned: baku)

References

Details

(Whiteboard: [OA])

Attachments

(1 file, 1 obsolete file)

in the file dom/push/PushRecord.jsm there is a call to createCodebasePrincipalFromOrigin: > 246 principal = Services.scriptSecurityManager.createCodebasePrincipalFromOrigin(url); > 247 principals.set(this, principal); I think we need to change this to a GlobalContextOriginAttribute and call createCodebasePrincipal with the url and the attrs so that we avoid any user context isolation.
Attached patch patch (obsolete) (deleted) — Splinter Review
Assignee: huseby → amarchesini
Attachment #8704111 - Flags: review?(huseby)
Comment on attachment 8704111 [details] [diff] [review] patch Review of attachment 8704111 [details] [diff] [review]: ----------------------------------------------------------------- createGlobalContextOriginAttributes -> createDefaultContextOriginAttributes
Attachment #8704111 - Flags: review?(huseby) → review-
Attached patch bug_1235929.patch (deleted) — Splinter Review
Attachment #8704111 - Attachment is obsolete: true
Attachment #8704564 - Flags: review?(huseby)
Depends on: 1229222
Attachment #8704564 - Flags: review?(huseby) → review+
I don't think this patch is needed. * The origin attributes are being added as a suffix to the uri here: http://mzl.la/1SlYnXU * The call to createCodebasePrincipalFromOrigin calls CreateCodebasePrincipal: http://mzl.la/1SlYqD3 * CreateCodebasePrincipal correctly populates the origin attributes from the origin: http://mzl.la/1MqybMH Resolving as WON'T FIX.
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → WONTFIX
Whiteboard: [OA]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: