Add a shell flag to make newGlobal reuse compartments by default and fix issues exposed by it
Categories
(Core :: JavaScript Engine, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox66 | --- | fixed |
People
(Reporter: jandem, Assigned: jandem)
References
Details
Attachments
(8 files, 1 obsolete file)
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review |
We could then add this flag to one of the configurations we use for jit-tests and jstests to improve our test coverage.
Assignee | ||
Comment 1•6 years ago
|
||
Doing this for jit-tests is a bit annoying because the debugger tests need separate compartments for debugger and debuggee globals.
Some options are (1) a newGlobal option (2) a jit-test annotation (3) a new function like newGlobalForDebugger.
I'm a bit worried about that becoming a footgun though, when people forget to add it and get backed out.
Assignee | ||
Comment 2•6 years ago
|
||
jstests only has 13 failures so that's doable.
For jit-tests we would have to write a script to fix the failing tests, see comment 1.
Jason, WDYT?
Assignee | ||
Comment 3•6 years ago
|
||
Assignee | ||
Comment 4•6 years ago
|
||
Another option is to do nothing and rely on jsreftests running in the browser getting the same-compartment treatment in the future.
Comment 5•6 years ago
•
|
||
Yes, mass change. grep
finds 45 places in jit-test/tests/debug where we actually pass an argument to newGlobal()
; sed or perl can take care of the rest. I can do it if you like. We just need an option that means "new compartment regardless of --same-compartment
".
I see there are a handful of old ones that say
var g1 = newGlobal('same-compartment');
String arguments are currently ignored; it would be nice to fix these tests to use the existing sameCompartmentAs: this
option. They would probably just start testing something useful again!
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 6•6 years ago
|
||
Assignee | ||
Comment 7•6 years ago
|
||
Assignee | ||
Comment 8•6 years ago
|
||
Assignee | ||
Comment 9•6 years ago
|
||
Assignee | ||
Comment 10•6 years ago
|
||
Assignee | ||
Comment 11•6 years ago
|
||
Assignee | ||
Comment 12•6 years ago
|
||
Assignee | ||
Comment 13•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Comment 14•6 years ago
|
||
Comment 15•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/450b8f0cbb4e
https://hg.mozilla.org/mozilla-central/rev/92f0cf276198
https://hg.mozilla.org/mozilla-central/rev/b32c2548fa6b
https://hg.mozilla.org/mozilla-central/rev/1d49da4facd7
https://hg.mozilla.org/mozilla-central/rev/cfa1c48c7170
https://hg.mozilla.org/mozilla-central/rev/02251eb9e2c1
https://hg.mozilla.org/mozilla-central/rev/83c9c1d0af97
https://hg.mozilla.org/mozilla-central/rev/cdcc178f4896
Description
•