Closed Bug 1408291 Opened 7 years ago Closed 7 years ago

The content script use window.wrappedJSObject.fn passed Array, page script use Array.isArray return fasle

Categories

(WebExtensions :: General, defect)

58 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: 626954412, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0 Build ID: 20171012105833 Steps to reproduce: // page script window.pageCall =function(arr){ console.log(Array.isArray(arr));//false console.log(Object.prototype.toString.call(arr)); //Error: Permission denied to access property Symbol.toStringTag }; // content script window.wrappedJSObject.pageCall([]); Actual results: I can't test passed arguments is an array or not. Expected results: Array.isArray is designed to compensate for instanceof right? It's should be work.
well, I try use cloneInto: window.wrappedJSObject.pageCall(cloneInto([],window)); It works
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → INVALID
Product: Toolkit → WebExtensions
You need to log in before you can comment on or make changes to this bug.