New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 617836 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Jul 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

Pass Binary Object from UI to Background Page Will Break the Prototype Chain

Reported by shanger...@hotmail.com, Jun 7 2016

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:46.0) Gecko/20100101 Firefox/46.0

Steps to reproduce the problem:
1. Create a ArrayBuffer/Blob in any UI page
2. Pass it to the background page of an extension
3. check it with "obj instanceof ArrayBuffer" will return false
4. use console.log to display it in the console, it still looks like a ArrayBuffer/Blob

What is the expected behavior?

What went wrong?
The prototype chain is broken. To walk around this issue, have to manually reset the prototype chain by 
obj.__proto__ = ArrayBuffer.prototype

WebStore page: 

Did this work before? N/A 

Chrome version: Version 51.0.2704.79 m  Channel: n/a
OS Version: 10.0
Flash Version:
 
What is the expected behavior?
Developer expected the test "obj instanceof ArrayBuffer" should be true
Cc: brajkumar@chromium.org
Labels: Needs-Feedback
shangerxin@ - Thanks for filing the issue, If you don't mind could you please provide the sample test case of the file where we can reproduce this issue from Chrome TE end for further assistance.

thanks!
Cc: tkonch...@chromium.org
Status: WontFix (was: Unconfirmed)
Due to lack of user response we are closing this issue. Please feel free to file a new issue if you still encounter the issue from your end.

Sign in to add a comment