Bug 1941091 Comment 15 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

I'm having a real issue with [runActualTest function and the tests it references](https://searchfox.org/mozilla-central/search?q=runActualTest&path=&case=false&regexp=false). I tried creating a tab with content principal, playing around with wrappedJSObject but couldn't make it work. I can think of two other options, porting all the tests to simple mochi tests (which I'm not sure if possible, especially the PBM ones) or disabling principal check for every test. The latter option is easy but it is also wrong in some instances (see devtools's color schema simulation test, if we were to disable principal check, we would only make it pass in testing but it won't work actually), so the only option seem to be porting them to simple tests. I tried many things including creating a sandbox but couldn't make it work. So I'm just going to work on converting them to simple mochi tests
I'm having a real issue with [runActualTest function and the tests it references](https://searchfox.org/mozilla-central/search?q=runActualTest&path=&case=false&regexp=false). I tried creating a tab with content principal, playing around with wrappedJSObject but couldn't make it work. I can think of two other options, porting all the tests to simple mochi tests (which I'm not sure if possible, especially the PBM ones) or disabling principal check for every test. The latter option is easy but it is also wrong in some instances (see devtools's color schema simulation test, if we were to disable principal check, we would only make it pass in testing but it won't work actually), so the only option seem to be porting them to simple tests. I tried many things including creating a sandbox but couldn't make it work. So I'm just going to work on converting them to simple mochi tests

edit:  (not actually converting each test but testing principal check works in test cases that use runActualTest, like testA-H, defaults and defaultPBM etc.)

Back to Bug 1941091 Comment 15