Closed Bug 438965 Opened 16 years ago Closed 2 years ago

Global object's resolve(), getProperty() methods are given JSVAL_VOID as id parameter

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: avarma, Unassigned)

Details

Attachments

(2 files)

It's possible for the global object to have its resolve() and getProperty() methods receive JSVAL_VOID as their id parameter during a call to JS_InitStandardClasses().  Brendan's guess is that this due to SpiderMonkey querying the global object for the magic XML namespace id (JS_DEFAULT_XML_NAMESPACE_ID):

  http://mxr.mozilla.org/mozilla/source/js/src/jsapi.h#1382

If the magic XML namespace id is an internal implementation detail, then it probably shouldn't make its way out to client code like this; if it's really part of the JSAPI, then perhaps the best solution would be for me to update the MDC documentation on the affected methods to make sure that everyone's aware of this possibility.

I'll submit a test suite for this bug shortly.
Added a test suite for the bug; its exit code is 0 if the tests pass, 1 if the tests fail.
Makefile for the test suite; user should set the MOZSDKDIR environment variable to their XULRunner SDK or their mozilla objdir before using it.
Assignee: general → nobody
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: