Closed avadacatavra closed 7 years ago
Annoying bikeshedding... is rust-mozjs
intended to be servo-specific, or general rust bindings to SM for anyone to play with? If the latter, should ServoJSPrincipal
have a less servo-specific name?
RustJSPrincipal would be fine.
Squash and r=me.
r=@jdm
@bors-servo r=jdm
:pushpin: Commit dea774c has been approved by jdm
:hourglass: Testing commit dea774c3a095d7b2573806aa76d9eec9e2725dde with merge 3d8c269902721e875098b40997b1db9293f3e590...
:sunny: Test successful - status-appveyor, status-travis Approved by: jdm Pushing 3d8c269902721e875098b40997b1db9293f3e590 to master...
is rust-mozjs intended to be servo-specific, or general rust bindings to SM for anyone to play with?
Eventually, it should be for general SM embedding. There is a fair amount of work that needs to happen to make this a reality after the bindings land in m-c, still. A lot of the generic GC-related infrastructure is in Servo's dom component, for example.
Cross origin wrappers (https://github.com/servo/servo/pull/16501) require JSPrincipals. This PR adds the skeleton and basic functionality required.
CC: @jdm
This change is