JavaScriptCore/API/minidom.c is not portable. It has a trivial dependency on CFString and is missing a couple of includes. JavaScriptCore.h also needs to be fixed as described in #16029 for this to actually build on non-CF platforms.
Created attachment 17330 [details] Make minidom.c portable Note that it will not actually compile until JavaScriptCore.h is also fixed (see #16029)
Created attachment 17331 [details] Make minidom.c portable This also fixes exception output which was being sent to stderr instead of stdout.
Comment on attachment 17331 [details] Make minidom.c portable Looks fine to me. r=me.
Landed in r27879.
Comment on attachment 17330 [details] Make minidom.c portable Looks fine. It's going to be tricky to make this truly platform-independent though, because Mac OS X uses a special include style for frameworks (#include <JavaScriptCore/JavaScriptCore.h>), and I would not expect the library to work this way on other platforms.