Closed
Bug 1277293
Opened 10 years ago
Closed 9 years ago
Replace getSimpleCodebasePrincipal with createCodebasePrincipal (SeaMonkey Part)
Categories
(SeaMonkey :: General, defect)
SeaMonkey
General
Tracking
(seamonkey2.45 unaffected, seamonkey2.46 fixed, seamonkey2.47 fixed, seamonkey2.48 fixed, seamonkey2.49esr fixed)
RESOLVED
FIXED
seamonkey2.46
| Tracking | Status | |
|---|---|---|
| seamonkey2.45 | --- | unaffected |
| seamonkey2.46 | --- | fixed |
| seamonkey2.47 | --- | fixed |
| seamonkey2.48 | --- | fixed |
| seamonkey2.49esr | --- | fixed |
People
(Reporter: philip.chee, Assigned: philip.chee)
References
()
Details
Attachments
(1 file)
|
3.17 KB,
patch
|
iannbugzilla
:
review+
iannbugzilla
:
approval-comm-release+
|
Details | Diff | Splinter Review |
https://hg.mozilla.org/mozilla-central/rev/62903b5a04a7
(Jonas Sicking (:sicking) from Bug 1259871 comment #13)
> We mainly created getSimpleCodebasePrincipal so that we could add assertions
> to make sure that such principals were never used to look up permissions or
> localStorage/IndexedDB data.
>
> I.e. we did it to try to find code that created principals without passing
> in the correct appid when the appid really mattered.
>
> This was especially important since appid was a FirefoxOS-only thing, so not
> something that we expected Gecko engineers to care about or do correctly.
>
> Since OriginAttributes are used by Firefox, I think we have a much larger
> chance of getting them used correctly.
>
> So yeah, I think we should replace createSimpleCodebasePrincipal with
> createCodebasePrincipal using default OriginAttributes. Though we might want
> to audit the callers to see if we should pass in a non-default
> OriginAttribute.
>
> Probably good to get Huseby to look at these patches since he's audited a
> lot of createCodebasePrincipal callers to see if they need to use
> non-default OriginAttributes.
| Assignee | ||
Updated•10 years ago
|
Assignee: nobody → philip.chee
Status: NEW → ASSIGNED
| Assignee | ||
Comment 1•10 years ago
|
||
Attachment #8758781 -
Flags: review?(iann_bugzilla)
Comment on attachment 8758781 [details] [diff] [review]
Proposed fix.
Looks good to me r/a=me
Attachment #8758781 -
Flags: review?(iann_bugzilla) → review+
| Assignee | ||
Comment 3•9 years ago
|
||
Sigh. More bitrot Bug 1233899 (fix the feeds converter to use default user context origin attributes)
| Assignee | ||
Comment 4•9 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → seamonkey2.47
Comment on attachment 8758781 [details] [diff] [review]
Proposed fix.
[Triage Comment]
a=me for c-r, make sure it goes onto the correct branch (SEA_COMM490_20160927_RELBRANCH I think)
Attachment #8758781 -
Flags: approval-comm-release+
Updated•9 years ago
|
status-seamonkey2.45:
--- → unaffected
status-seamonkey2.46:
--- → affected
status-seamonkey2.47:
--- → fixed
status-seamonkey2.48:
--- → fixed
status-seamonkey2.49esr:
--- → fixed
Target Milestone: seamonkey2.47 → seamonkey2.46
Comment 6•9 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•