mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-24 21:58:06 +00:00
b639984487
There are a number of fixes to this important tests, so this warrants a separate patch. First of all, the boundTo machinery goes away, because we no longer have same- compartment Xrays giving us the weird bound methods. Furthermore, now that the sensitive methods are just regular old methods off the prototype. They'll fail correctly when used on a same-scope object, but not for cross-scope XOWs they'll just fail in the GetWrappedNativeOfJSObject rat's nest (when they can't unwrap the security wrapper), so we'll just get a generic XPConnect error instead of a security exception. I want to fix this soon, so I changed the skipMessageCheck stuff to use todo_is. However, _that_ caused an UNEXPECTED-PASS for the DefaultValue test (which was the only one of the array of tests that was throwing a security exception in step 2). So I added an annotation for that in item[2].