Closed Bug 1215167 Opened 9 years ago Closed 9 years ago

unsafe CPOW usage from non-addon code should throw

Categories

(Core :: DOM: Content Processes, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla45
Tracking Status
e10s m8+ ---
firefox45 --- fixed

People

(Reporter: blassey, Assigned: billm)

References

Details

Attachments

(1 file)

      No description provided.
Assignee: nobody → wmccloskey
Component: IPC → DOM: Content Processes
Attached patch patchSplinter Review
One thing I'm not sure of here is why the test_cpows.xul code isn't considered part of an add-on. Test code usually is. Maybe I'll look at that part a bit closer.
Attachment #8678395 - Flags: review?(mrbkap)
Comment on attachment 8678395 [details] [diff] [review]
patch

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

::: dom/base/test/chrome/cpows_parent.xul
@@ +399,5 @@
> +        msg.objects.f();
> +      } catch (e if /unsafe CPOW usage forbidden/.test(String(e))) {
> +        failed = true;
> +      }
> +      opener.wrappedJSObject.SpecialPowers.setBoolPref(PREF_UNSAFE_FORBIDDEN, false);

Maybe clearUserPref?
Attachment #8678395 - Flags: review?(mrbkap) → review+
https://hg.mozilla.org/mozilla-central/rev/2215dc556dbc
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla45
Flags: needinfo?(wmccloskey)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: