Skip to content
Commit 950d000d authored by Marc-Antoine Perennou's avatar Marc-Antoine Perennou Committed by Colin Walters
Browse files

xul2: use JS_NewCompartmentAndGlobalObject

Use JS_NewCompartmentAndGlobalObject rather than JS_NewGlobalObject
to be sure that cx->compartment is not NULL when initializing context.
It basicaly does the same, but it creates a temporary compartment
before creating the global object, and then restore the previous one.
This avoids a segfault with xulrunner from hg

https://bugzilla.gnome.org/show_bug.cgi?id=639691
parent 259ede14
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment