Object.getOwnPropertyNames(this) in jsshell vs. xpcshell missing objects
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
People
(Reporter: decoder, Unassigned)
Details
(Keywords: testcase, Whiteboard: js-triage-needed)
![]() |
||
Comment 1•14 years ago
|
||
Comment 2•13 years ago
|
||
Comment 3•13 years ago
|
||
![]() |
||
Comment 4•13 years ago
|
||
Comment 5•13 years ago
|
||
Assignee | ||
Updated•11 years ago
|
Updated•3 years ago
|
Comment 6•1 year ago
|
||
In xpcshell, Object.getOwnPropertyNames(this);
returns:
["AbortController", "AbortSignal", "AbstractRange", "AccessibleNode", "Addon", "AddonInstall", "AddonManagerPermissions", "AggregateError", "AnalyserNode", "Animation", "AnimationEffect", "AnimationEvent", "AnimationPlaybackEvent", "AnimationTimeline", "AnonymousContent", "Array", "ArrayBuffer", "Assert", "AssertCls", "Atomics", "Attr", "Audio", "AudioBuffer", "AudioBufferSourceNode", "AudioContext", "AudioData", "AudioDecoder", "AudioDestinationNode", "AudioListener", "AudioNode", "AudioParam", "AudioParamMap", "AudioProcessingEvent", "AudioScheduledSourceNode", "AudioWorklet", "AudioWorkletNode", "AuthenticatorAssertionResponse", "AuthenticatorAttestationResponse", "AuthenticatorResponse", "BarProp", "BaseAudioContext", "BatteryManager", "BeforeUnloadEvent", "BigInt", "BigInt64Array", "BigUint64Array", "BiquadFilterNode", "Blob", "BlobEvent", "Boolean", "BroadcastChannel", "BrowsingContext", "BrowsingContextGroup", "ByteLengthQueuingStrategy", "CDATASection", "CSS", "CSS2Properties", "CSSAnimation", "CSSConditionRule", "CSSContainerRule", "CSSCounterStyleRule", "CSSCustomPropertyRegisteredEvent", "CSSFontFaceRule", "CSSFontFeatureValuesRule", "CSSFontPaletteValuesRule", "CSSGroupingRule", "CSSImportRule", "CSSKeyframeRule", "CSSKeyframesRule", "CSSLayerBlockRule", "CSSLayerStatementRule", "CSSMediaRule", "CSSMozDocumentRule", "CSSNamespaceRule", "CSSPageRule", "CSSPropertyRule", "CSSRule", "CSSRuleList", "CSSStyleDeclaration", "CSSStyleRule", "CSSStyleSheet", "CSSSupportsRule", "CSSTransition", "Cache", "CacheStorage", "CallbackDebuggerNotification", "CanonicalBrowsingContext", "CanvasCaptureMediaStream", "CanvasGradient", "CanvasPattern", "CanvasRenderingContext2D", "CaretPosition", "CaretStateChangedEvent", "Cc", "ChannelMergerNode", "ChannelSplitterNode", "ChannelWrapper", "CharacterData", "CheckerboardReportService", "ChildProcessMessageManager", "ChildSHistory", "ChromeMessageBroadcaster", "ChromeMessageSender", "ChromeNodeList", "ChromeUtils", "ChromeWorker", "Ci", "Clipboard", "ClipboardEvent", "ClipboardItem", "ClonedErrorHolder", "CloseEvent", "CommandEvent", "Comment", "Components", "CompositionEvent", "CompressionStream", "ConsoleInstance", "ConstantSourceNode", "ContentFrameMessageManager", "ContentProcessMessageManager", "ContentVisibilityAutoStateChangeEvent", "ConvolverNode", "CountQueuingStrategy", "Cr", "CreateOfferRequest", "Credential", "CredentialsContainer", "Crypto", "CryptoKey", "Cu", "CustomElementRegistry", "CustomEvent", "DOMException", "DOMImplementation", "DOMLocalization", "DOMMatrix", "DOMMatrixReadOnly", "DOMParser", "DOMPoint", "DOMPointReadOnly", "DOMQuad", "DOMRect", "DOMRectList", "DOMRectReadOnly", "DOMStringList", "DOMStringMap", "DOMTokenList", "DataTransfer", "DataTransferItem", "DataTransferItemList", "DataView", "Date", "DebuggerNotification", "DebuggerNotificationObserver", "DecompressionStream", "DelayNode", "DeviceMotionEvent", "DeviceOrientationEvent", "Directory", "Document", "DocumentFragment", "DocumentTimeline", "DocumentType", "DominatorTree", "DragEvent", "DynamicsCompressorNode", "Element", "ElementInternals", "EncodedAudioChunk", "EncodedVideoChunk", "Error", "ErrorEvent", "EvalError", "Event", "EventCallbackDebuggerNotification", "EventCounts", "EventSource", "EventTarget", "File", "FileList", "FileReader", "FileSystem", "FileSystemDirectoryEntry", "FileSystemDirectoryHandle", "FileSystemDirectoryReader", "FileSystemEntry", "FileSystemFileEntry", "FileSystemFileHandle", "FileSystemHandle", "FileSystemWritableFileStream", "FinalizationRegistry", "Flex", "FlexItemValues", "FlexLineValues", "Float32Array", "Float64Array", "FluentBundle", "FluentPattern", "FluentResource", "FocusEvent", "FontFace", "FontFaceSet", "FontFaceSetLoadEvent", "FormData", "FormDataEvent", "FrameCrashedEvent", "FrameLoader", "Function", "GPU", "GPUAdapter", "GPUAdapterInfo", "GPUBindGroup", "GPUBindGroupLayout", "GPUBuffer", "GPUBufferUsage", "GPUCanvasContext", "GPUColorWrite", "GPUCommandBuffer", "GPUCommandEncoder", "GPUCompilationInfo", "GPUCompilationMessage", "GPUComputePassEncoder", "GPUComputePipeline", "GPUDevice", "GPUDeviceLostInfo", "GPUError", "GPUInternalError", "GPUMapMode", "GPUOutOfMemoryError", "GPUPipelineLayout", "GPUQuerySet", "GPUQueue", "GPURenderBundle", "GPURenderBundleEncoder", "GPURenderPassEncoder", "GPURenderPipeline", "GPUSampler", "GPUShaderModule", "GPUShaderStage", "GPUSupportedFeatures", "GPUSupportedLimits", "GPUTexture", "GPUTextureUsage", "GPUTextureView", "GPUUncapturedErrorEvent", "GPUValidationError", "GainNode", "Gamepad", "GamepadAxisMoveEvent", "GamepadButton", "GamepadButtonEvent", "GamepadEvent", "GamepadHapticActuator", "GamepadPose", "Geolocation", "GeolocationCoordinates", "GeolocationPosition", "GeolocationPositionError", "Glean", "GleanBoolean", "GleanCategory", "GleanCounter", "GleanCustomDistribution", "GleanDatetime", "GleanDenominator", "GleanEvent", "GleanImpl", "GleanLabeled", "GleanMemoryDistribution", "GleanMetric", "GleanNumerator", "GleanObject", "GleanPings", "GleanPingsImpl", "GleanQuantity", "GleanRate", "GleanString", "GleanStringList", "GleanText", "GleanTimespan", "GleanTimingDistribution", "GleanUrl", "GleanUuid", "Grid", "GridArea", "GridDimension", "GridLine", "GridLines", "GridTrack", "GridTracks", "HTMLAllCollection", "HTMLAnchorElement", "HTMLAreaElement", "HTMLAudioElement", "HTMLBRElement", "HTMLBaseElement", "HTMLBodyElement", "HTMLButtonElement", "HTMLCanvasElement", "HTMLCollection", "HTMLDListElement", "HTMLDataElement", "HTMLDataListElement", "HTMLDetailsElement", "HTMLDialogElement", "HTMLDirectoryElement", "HTMLDivElement", "HTMLDocument", "HTMLElement", "HTMLEmbedElement", "HTMLFieldSetElement", "HTMLFontElement", "HTMLFormControlsCollection", "HTMLFormElement", "HTMLFrameElement", "HTMLFrameSetElement", "HTMLHRElement", "HTMLHeadElement", "HTMLHeadingElement", "HTMLHtmlElement", "HTMLIFrameElement", "HTMLImageElement", "HTMLInputElement", "HTMLLIElement", "HTMLLabelElement", "HTMLLegendElement", "HTMLLinkElement", "HTMLMapElement", "HTMLMarqueeElement", "HTMLMediaElement", "HTMLMenuElement", "HTMLMetaElement", "HTMLMeterElement", "HTMLModElement", "HTMLOListElement", "HTMLObjectElement", "HTMLOptGroupElement", "HTMLOptionElement", "HTMLOptionsCollection", "HTMLOutputElement", "HTMLParagraphElement", "HTMLParamElement", "HTMLPictureElement", "HTMLPreElement", "HTMLProgressElement", "HTMLQuoteElement", "HTMLScriptElement", "HTMLSelectElement", "HTMLSlotElement", "HTMLSourceElement", "HTMLSpanElement", "HTMLStyleElement", "HTMLTableCaptionElement", "HTMLTableCellElement", "HTMLTableColElement", "HTMLTableElement", "HTMLTableRowElement", "HTMLTableSectionElement", "HTMLTemplateElement", "HTMLTextAreaElement", "HTMLTimeElement", "HTMLTitleElement", "HTMLTrackElement", "HTMLUListElement", "HTMLUnknownElement", "HTMLVideoElement", "HashChangeEvent", "Headers", "HeapSnapshot", "Highlight", "HighlightRegistry", "History", "IDBCursor", "IDBCursorWithValue", "IDBDatabase", "IDBFactory", "IDBIndex", "IDBKeyRange", "IDBObjectStore", "IDBOpenDBRequest", "IDBRequest", "IDBTransaction", "IDBVersionChangeEvent", "IIRFilterNode", "IOUtils", "IdleDeadline", "Image", "ImageBitmap", "ImageBitmapRenderingContext", "ImageData", "ImageDocument", "Infinity", "InputEvent", "InspectorFontFace", "InspectorUtils", "InstallTriggerImpl", "Int16Array", "Int32Array", "Int8Array", "InternalError", "IntersectionObserver", "IntersectionObserverEntry", "Intl", "JSON", "JSProcessActorChild", "JSProcessActorParent", "JSWindowActorChild", "JSWindowActorParent", "KeyEvent", "KeyboardEvent", "KeyframeEffect", "L10nFileSource", "L10nOverlays", "L10nRegistry", "LargestContentfulPaint", "Localization", "Location", "Lock", "LockManager", "MIDIAccess", "MIDIConnectionEvent", "MIDIInput", "MIDIInputMap", "MIDIMessageEvent", "MIDIOutput", "MIDIOutputMap", "MIDIPort", "Map", "MatchGlob", "MatchPattern", "MatchPatternSet", "Math", "MathMLElement", "MediaCapabilities", "MediaCapabilitiesInfo", "MediaControlService", "MediaController", "MediaDeviceInfo", "MediaDevices", "MediaElementAudioSourceNode", "MediaEncryptedEvent", "MediaError", "MediaKeyError", "MediaKeyMessageEvent", "MediaKeySession", "MediaKeyStatusMap", "MediaKeySystemAccess", "MediaKeys", "MediaList", "MediaMetadata", "MediaQueryList", "MediaQueryListEvent", "MediaRecorder", "MediaRecorderErrorEvent", "MediaSession", "MediaSource", "MediaStream", "MediaStreamAudioDestinationNode", "MediaStreamAudioSourceNode", "MediaStreamEvent", "MediaStreamTrack", "MediaStreamTrackAudioSourceNode", "MediaStreamTrackEvent", "MessageBroadcaster", "MessageChannel", "MessageEvent", "MessageListenerManager", "MessagePort", "MessageSender", "MimeType", "MimeTypeArray", "MouseEvent", "MouseScrollEvent", "MozCanvasPrintState", "MozDocumentMatcher", "MozDocumentObserver", "MozQueryInterface", "MozSharedMap", "MozSharedMapChangeEvent", "MozStorageAsyncStatementParams", "MozStorageStatementParams", "MozStorageStatementRow", "MozWritableSharedMap", "MutationEvent", "MutationObserver", "MutationRecord", "NaN", "NamedNodeMap", "NavigationPreloadManager", "Navigator", "Node", "NodeFilter", "NodeIterator", "NodeList", "Notification", "NotifyPaintEvent", "Number", "Object", "OfflineAudioCompletionEvent", "OfflineAudioContext", "OffscreenCanvas", "OffscreenCanvasRenderingContext2D", "Option", "OscillatorNode", "PageTransitionEvent", "PaintRequest", "PaintRequestList", "PannerNode", "ParentProcessMessageManager", "Path2D", "PathUtils", "PeerConnectionImpl", "PeerConnectionObserver", "Performance", "PerformanceEntry", "PerformanceEntryEvent", "PerformanceEventTiming", "PerformanceMark", "PerformanceMeasure", "PerformanceNavigation", "PerformanceNavigationTiming", "PerformanceObserver", "PerformanceObserverEntryList", "PerformancePaintTiming", "PerformanceResourceTiming", "PerformanceServerTiming", "PerformanceTiming", "PeriodicWave", "PermissionStatus", "Permissions", "PlacesBookmark", "PlacesBookmarkAddition", "PlacesBookmarkChanged", "PlacesBookmarkGuid", "PlacesBookmarkKeyword", "PlacesBookmarkMoved", "PlacesBookmarkRemoved", "PlacesBookmarkTags", "PlacesBookmarkTime", "PlacesBookmarkTitle", "PlacesBookmarkUrl", "PlacesEvent", "PlacesFavicon", "PlacesHistoryCleared", "PlacesObservers", "PlacesPurgeCaches", "PlacesRanking", "PlacesVisit", "PlacesVisitRemoved", "PlacesVisitTitle", "PlacesWeakCallbackWrapper", "Plugin", "PluginArray", "PluginCrashedEvent", "PointerEvent", "PopStateEvent", "PopupBlockedEvent", "PopupPositionedEvent", "PositionStateEvent", "PrecompiledScript", "ProcessMessageManager", "ProcessingInstruction", "ProgressEvent", "Promise", "PromiseDebugging", "PromiseRejectionEvent", "Proxy", "PublicKeyCredential", "PushManager", "PushManagerImpl", "PushSubscription", "PushSubscriptionOptions", "RTCCertificate", "RTCDTMFSender", "RTCDTMFToneChangeEvent", "RTCDataChannel", "RTCDataChannelEvent", "RTCDtlsTransport", "RTCEncodedAudioFrame", "RTCEncodedVideoFrame", "RTCIceCandidate", "RTCIceTransport", "RTCPeerConnection", "RTCPeerConnectionIceEvent", "RTCPeerConnectionStatic", "RTCRtpReceiver", "RTCRtpScriptTransform", "RTCRtpSender", "RTCRtpTransceiver", "RTCSctpTransport", "RTCSessionDescription", "RTCStatsReport", "RTCTrackEvent", "RadioNodeList", "Range", "RangeError", "ReadableByteStreamController", "ReadableStream", "ReadableStreamBYOBReader", "ReadableStreamBYOBRequest", "ReadableStreamDefaultController", "ReadableStreamDefaultReader", "ReferenceError", "Reflect", "RegExp", "Request", "ResizeObserver", "ResizeObserverEntry", "ResizeObserverSize", "Response", "SVGAElement", "SVGAngle", "SVGAnimateElement", "SVGAnimateMotionElement", "SVGAnimateTransformElement", "SVGAnimatedAngle", "SVGAnimatedBoolean", "SVGAnimatedEnumeration", "SVGAnimatedInteger", "SVGAnimatedLength", "SVGAnimatedLengthList", "SVGAnimatedNumber", "SVGAnimatedNumberList", "SVGAnimatedPreserveAspectRatio", "SVGAnimatedRect", "SVGAnimatedString", "SVGAnimatedTransformList", "SVGAnimationElement", "SVGCircleElement", "SVGClipPathElement", "SVGComponentTransferFunctionElement", "SVGDefsElement", "SVGDescElement", "SVGElement", "SVGEllipseElement", "SVGFEBlendElement", "SVGFEColorMatrixElement", "SVGFEComponentTransferElement", "SVGFECompositeElement", "SVGFEConvolveMatrixElement", "SVGFEDiffuseLightingElement", "SVGFEDisplacementMapElement", "SVGFEDistantLightElement", "SVGFEDropShadowElement", "SVGFEFloodElement", "SVGFEFuncAElement", "SVGFEFuncBElement", "SVGFEFuncGElement", "SVGFEFuncRElement", "SVGFEGaussianBlurElement", "SVGFEImageElement", "SVGFEMergeElement", "SVGFEMergeNodeElement", "SVGFEMorphologyElement", "SVGFEOffsetElement", "SVGFEPointLightElement", "SVGFESpecularLightingElement", "SVGFESpotLightElement", "SVGFETileElement", "SVGFETurbulenceElement", "SVGFilterElement", "SVGForeignObjectElement", "SVGGElement", "SVGGeometryElement", "SVGGradientElement", "SVGGraphicsElement", "SVGImageElement", "SVGLength", "SVGLengthList", "SVGLineElement", "SVGLinearGradientElement", "SVGMPathElement", "SVGMarkerElement", "SVGMaskElement", "SVGMatrix", "SVGMetadataElement", "SVGNumber", "SVGNumberList", "SVGPathElement", "SVGPatternElement", "SVGPoint", "SVGPointList", "SVGPolygonElement", "SVGPolylineElement", "SVGPreserveAspectRatio", "SVGRadialGradientElement", "SVGRect", "SVGRectElement", "SVGSVGElement", "SVGScriptElement", "SVGSetElement", "SVGStopElement", "SVGStringList", "SVGStyleElement", "SVGSwitchElement", "SVGSymbolElement", "SVGTSpanElement", "SVGTextContentElement", "SVGTextElement", "SVGTextPathElement", "SVGTextPositioningElement", "SVGTitleElement", "SVGTransform", "SVGTransformList", "SVGUnitTypes", "SVGUseElement", "SVGViewElement", "Scheduler", "Screen", "ScreenOrientation", "ScriptProcessorNode", "ScrollAreaEvent", "ScrollViewChangeEvent", "SecurityPolicyViolationEvent", "Selection", "ServiceWorker", "ServiceWorkerContainer", "ServiceWorkerRegistration", "Services", "SessionStoreFormData", "SessionStoreScrollData", "SessionStoreUtils", "Set", "ShadowRoot", "SharedArrayBuffer", "SharedWorker", "SimpleGestureEvent", "SourceBuffer", "SourceBufferList", "SpeechSynthesis", "SpeechSynthesisErrorEvent", "SpeechSynthesisEvent", "SpeechSynthesisUtterance", "SpeechSynthesisVoice", "StaticRange", "StereoPannerNode", "Storage", "StorageEvent", "StorageManager", "StreamFilter", "StreamFilterDataEvent", "String", "StructuredCloneHolder", "StyleSheet", "StyleSheetApplicableStateChangeEvent", "StyleSheetList", "StyleSheetRemovedEvent", "SubmitEvent", "SubtleCrypto", "Symbol", "SyncMessageSender", "SyntaxError", "TCPServerSocket", "TCPServerSocketEvent", "TCPSocket", "TCPSocketErrorEvent", "TCPSocketEvent", "TaskController", "TaskPriorityChangeEvent", "TaskSignal", "TelemetryStopwatch", "TestTrialInterface", "Text", "TextClause", "TextDecoder", "TextDecoderStream", "TextEncoder", "TextEncoderStream", "TextMetrics", "TextTrack", "TextTrackCue", "TextTrackCueList", "TextTrackList", "TimeEvent", "TimeRanges", "ToggleEvent", "TrackEvent", "TransformStream", "TransformStreamDefaultController", "TransitionEvent", "TreeColumn", "TreeColumns", "TreeContentView", "TreeWalker", "TypeError", "UIEvent", "URIError", "URL", "URLSearchParams", "Uint16Array", "Uint32Array", "Uint8Array", "Uint8ClampedArray", "UniFFIPointer", "UniFFIScaffolding", "UserActivation", "UserInteraction", "VTTCue", "VTTRegion", "ValidityState", "VideoColorSpace", "VideoDecoder", "VideoEncoder", "VideoFrame", "VideoPlaybackQuality", "VisualViewport", "WakeLock", "WakeLockSentinel", "WaveShaperNode", "WeakMap", "WeakRef", "WeakSet", "WebAssembly", "WebExtensionContentScript", "WebExtensionPolicy", "WebGL2RenderingContext", "WebGLActiveInfo", "WebGLBuffer", "WebGLContextEvent", "WebGLFramebuffer", "WebGLProgram", "WebGLQuery", "WebGLRenderbuffer", "WebGLRenderingContext", "WebGLSampler", "WebGLShader", "WebGLShaderPrecisionFormat", "WebGLSync", "WebGLTexture", "WebGLTransformFeedback", "WebGLUniformLocation", "WebGLVertexArrayObject", "WebKitCSSMatrix", "WebSocket", "WebTransport", "WebTransportBidirectionalStream", "WebTransportDatagramDuplexStream", "WebTransportError", "WebTransportReceiveStream", "WebTransportSendStream", "WebrtcGlobalInformation", "WheelEvent", "Window", "WindowContext", "WindowGlobalChild", "WindowGlobalParent", "WindowRoot", "Worker", "Worklet", "WritableStream", "WritableStreamDefaultController", "WritableStreamDefaultWriter", "XMLDocument", "XMLHttpRequest", "XMLHttpRequestEventTarget", "XMLHttpRequestUpload", "XMLSerializer", "XPCNativeWrapper", "XPathEvaluator", "XPathExpression", "XPathResult", "XSLTProcessor", "XULCommandEvent", "XULElement", "XULFrameElement", "XULMenuElement", "XULPopupElement", "XULResizerElement", "XULTextElement", "XULTreeElement", "_LoggerClass", "_Timer", "_XPCSHELL_PROCESS", "LOCATION", "_abort_failed_test", "_add_params", "_cleanupFunctions", "_do_check_eq", "_do_main", "_do_quit", "_dumpLog", "_exception_message", "_execute_test", "_fakeIdleService", "_format_stack", "_gRunOnlyThisTest", "_gRunningTest", "_gSetupRunning", "_gSupportedProperties", "_gTaskRunning", "_gTestIndex", "_gTests", "_initDebugging", "_isGenerator", "_load_files", "_load_mozinfo", "_passed", "_pendingTimers", "_profileInitialized", "_quit", "_register_modules_protocol_handler", "_register_protocol_handlers", "_reporter", "_setupDevToolsServer", "_testLogger", "_tests_pending", "_wrap_with_quotes_if_necessary", "add_setup", "add_task", "add_test", "arguments", "atob", "btoa", "clearMaxGCPauseAccumulator", "console", "crypto", "decodeURI", "decodeURIComponent", "deepEqual", "do_await_remote_message", "do_check_instanceof", "do_check_throws_nsIException", "do_get_cwd", "do_get_file", "do_get_idle", "do_get_minidumpdir", "do_get_profile", "do_get_tempdir", "do_load_child_test_harness", "do_load_manifest", "do_note_exception", "do_parse_document", "do_report_result", "do_report_unexpected_exception", "do_send_remote_message", "do_test_finished", "do_test_pending", "do_throw", "do_timeout", "dump", "dumpProfile", "dumpXPC", "encodeURI", "encodeURIComponent", "equal", "escape", "eval", "executeSoon", "fetch", "gc", "gczeal", "getMaxGCPauseSinceClear", "globalThis", "greater", "greaterOrEqual", "indexedDB", "info", "isFinite", "isNaN", "legible_exception", "less", "lessOrEqual", "load", "mozinfo", "notDeepEqual", "notEqual", "notStrictEqual", "ok", "options", "parseFloat", "parseInt", "pauseProfilers", "print", "quit", "readline", "record", "registerAppManifest", "registerCleanupFunction", "registerXPCTestComponents", "rejects", "report", "resumeProfilers", "run_next_test", "run_test", "run_test_in_child", "runningInParent", "schedulePreciseGCAndForceCC", "sendCommand", "setInterruptCallback", "setReporter", "simulateNoScriptActivity", "startProfiling", "stopProfiling", "strictEqual", "stringContains", "stringMatches", "structuredClone", "throws", "todo_check_eq", "todo_check_false", "todo_check_instanceof", "todo_check_null", "todo_check_true", "undefined", "unescape", "uneval", "webkitURL"]
Description
•