Closed Bug 1762965 Opened 2 years ago Closed 2 years ago

In some case .isInstance returns false while instanceof returns true

Categories

(Core :: DOM: Bindings (WebIDL), defect)

defect

Tracking

()

RESOLVED FIXED
101 Branch
Tracking Status
firefox101 --- fixed

People

(Reporter: saschanaz, Assigned: saschanaz)

References

Details

Attachments

(1 file, 1 obsolete file)

Assignee: nobody → krosylight
Status: NEW → ASSIGNED
See Also: → 1762993

https://searchfox.org/mozilla-central/rev/73a6abf1aaedbf7613fa90a7f459a8c0dfe5f0ce/testing/specialpowers/content/SpecialPowersChild.jsm#1296-1311 hackishly depends on isInstances lack of remote proxy support to check a thing is remote or not. Is there any other way to check this?

Flags: needinfo?(peterv)
Flags: needinfo?(echen)

Cu.isRemoteProxy.

Flags: needinfo?(peterv)
Flags: needinfo?(echen)

Applying what bug 1576787 did in InterfaceHasInstance.

Attachment #9270872 - Attachment is obsolete: true
Attachment #9270783 - Attachment description: Bug 1762965 - Handle RemoteObjectProxies in isInstance() r=peterv,edgar → Bug 1762965 - Handle RemoteObjectProxies in isInstance() r=edgar,peterv
Pushed by krosylight@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/9895ddf7829b
Handle RemoteObjectProxies in isInstance() r=peterv
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 101 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: