Closed Bug 1032592 Opened 10 years ago Closed 10 years ago

Allow principals to be sent with the message manager

Categories

(Core :: DOM: Content Processes, defect, P1)

x86_64
Linux
defect

Tracking

()

RESOLVED FIXED
mozilla34

People

(Reporter: billm, Assigned: billm)

References

Details

(Keywords: dev-doc-needed)

Attachments

(1 file, 1 obsolete file)

Attached patch sc-principals (obsolete) — Splinter Review
The message manager uses structured clone, so this patch adds structured clone support for nsIPrincipal. It's based on the patch in bug 1024098.
Attachment #8448418 - Flags: review?(bent.mozilla)
Attached patch sc-principals v2Splinter Review
New patch!
Attachment #8448418 - Attachment is obsolete: true
Attachment #8448418 - Flags: review?(bent.mozilla)
Attachment #8452820 - Flags: review?(bent.mozilla)
Blocks: 899347
Priority: -- → P1
Comment on attachment 8452820 [details] [diff] [review]
sc-principals v2

Review of attachment 8452820 [details] [diff] [review]:
-----------------------------------------------------------------

Awesome, thanks!

::: dom/base/nsJSEnvironment.cpp
@@ +2918,5 @@
> +      }
> +
> +      if (info.type() == mozilla::ipc::PrincipalInfo::TNullPrincipalInfo) {
> +        return JS_WriteUint32Pair(writer, SCTAG_DOM_NULL_PRINCIPAL, 0);
> +      } else if (info.type() == mozilla::ipc::PrincipalInfo::TSystemPrincipalInfo) {

Nit: else after return, twice here.
Attachment #8452820 - Flags: review?(bent.mozilla) → review+
https://hg.mozilla.org/mozilla-central/rev/b4f7e17a607f
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
Flags: qe-verify-
We should probably update the docs in https://developer.mozilla.org/en-US/docs/The_message_manager about sending Principals around.
Keywords: dev-doc-needed
See Also: → 1557852
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: