Closed
Bug 1324115
Opened 8 years ago
Closed 8 years ago
Add a way to get C++ origin attributes from nsIPrincipal
Categories
(Core :: Security, defect)
Tracking
()
RESOLVED
FIXED
mozilla53
Tracking | Status | |
---|---|---|
firefox53 | --- | fixed |
People
(Reporter: smaug, Assigned: allstars.chh)
References
(Blocks 1 open bug)
Details
(Whiteboard: [OA])
Attachments
(2 files, 2 obsolete files)
33.48 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
4.57 KB,
patch
|
allstars.chh
:
review+
|
Details | Diff | Splinter Review |
For some unclear to me reason we need to always cast nsIPrincipal to BasePrincipal to get OA in C++ friendly way. Why can't we just have [noscript, notxpcom] getter in nsIPrincipal?
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → allstars.chh
Assignee | ||
Updated•8 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•8 years ago
|
||
Assignee | ||
Comment 2•8 years ago
|
||
Assignee | ||
Updated•8 years ago
|
Attachment #8820105 -
Flags: review?(bugs)
Assignee | ||
Updated•8 years ago
|
Attachment #8820106 -
Flags: review?(bugs)
Reporter | ||
Comment 3•8 years ago
|
||
Comment on attachment 8820105 [details] [diff] [review]
Part 1: add a C++ helper in nsIPrincipal.
I guess binaryOriginAttributesRef could be called also OriginAttributesRef, but doesn't matter since the binary name is anyhow the right one.
Attachment #8820105 -
Flags: review?(bugs) → review+
Reporter | ||
Comment 4•8 years ago
|
||
Comment on attachment 8820106 [details] [diff] [review]
Part 2: replace the callers to use C++ helper.
Thanks.
Attachment #8820106 -
Flags: review?(bugs) → review+
Assignee | ||
Comment 5•8 years ago
|
||
s/binaryOriginAttributesRef/OriginAttributesRef/
Attachment #8820105 -
Attachment is obsolete: true
Attachment #8820216 -
Flags: review+
Assignee | ||
Comment 6•8 years ago
|
||
added 'override' OriginAttributesRef() in BasePrincipal.h, otherwise we will have static analysis failure.
Attachment #8820216 -
Attachment is obsolete: true
Attachment #8820573 -
Flags: review+
Pushed by yhuang@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/b44e3a356480
Part 1: add a C++ helper in nsIPrincipal. r=smaug
https://hg.mozilla.org/integration/mozilla-inbound/rev/26fedcf94afe
Part 2: replace the callers to use C++ helper. r=smaug
![]() |
||
Comment 8•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/b44e3a356480
https://hg.mozilla.org/mozilla-central/rev/26fedcf94afe
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox53:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla53
Updated•8 years ago
|
Blocks: ContextualIdentity
Whiteboard: [OA]
You need to log in
before you can comment on or make changes to this bug.
Description
•