Closed
Bug 816511
Opened 13 years ago
Closed 13 years ago
A proxy of a prototypeless object causes a crash
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 793160
People
(Reporter: jussi.kalliokoski, Unassigned)
Details
(Keywords: crash, stackwanted)
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:18.0) Gecko/18.0 Firefox/18.0
Build ID: 20121027042012
Steps to reproduce:
Open developer tools and type in the following:
Object.prototype.__proto__ = new Proxy(Object.create(null), { get: function (tgt, name) { return name } })
Actual results:
The browser crashed.
Expected results:
I have no idea, but at least not crash. I suspect after that doing
lol + cats
would yield "lolcats", regardless of whether they're defined or not, but I'm not sure.
Could you post some crash reports from about:crashes if possible (bp-...)?
Flags: needinfo?
| Reporter | ||
Comment 2•13 years ago
|
||
(In reply to Loic from comment #1)
> Could you post some crash reports from about:crashes if possible (bp-...)?
Sure, here you go: https://crash-stats.mozilla.com/report/index/bp-c8fe22f5-b6d4-4aeb-8b1b-7ae0d2121129
Flags: needinfo?
| Reporter | ||
Comment 3•13 years ago
|
||
Apparently the problem manifests itself just by doing:
new Proxy(Object.create(null), { get: function () { return 'foo' } })
So it has nothing to do with global get handling.
Summary: A global get handler causes a crash → A proxy of a prototypeless object causes a crash
I'm not able to enter "new Proxy(Object.create(null), { get: function () { return 'foo' } })" in the dev toolbar of Firefox 20 on Win 7.
Am I typing this line in the wrong place?
| Reporter | ||
Comment 5•13 years ago
|
||
(In reply to Loic from comment #4)
> I'm not able to enter "new Proxy(Object.create(null), { get: function () {
> return 'foo' } })" in the dev toolbar of Firefox 20 on Win 7.
> Am I typing this line in the wrong place?
Sorry for being vague, I mean the JS console, Ctrl + K.
Comment 6•13 years ago
|
||
(In reply to Jussi Kalliokoski from comment #2)
> https://crash-stats.mozilla.com/report/index/bp-c8fe22f5-b6d4-4aeb-8b1b-
> 7ae0d2121129
Debug symbols are missing. Can you provide a stack trace (see https://developer.mozilla.org/docs/How_to_get_a_stacktrace_for_a_bug_report#Linux)?
Flags: needinfo?(jussi.kalliokoski)
Keywords: stackwanted
Comment 7•13 years ago
|
||
This is bug 793160, as far as I can tell, right? The patch hasn't landed on 18 yet, but should soon...
| Reporter | ||
Comment 8•13 years ago
|
||
(In reply to Boris Zbarsky (:bz) from comment #7)
> This is bug 793160, as far as I can tell, right? The patch hasn't landed on
> 18 yet, but should soon...
Ahh, that seems to be the case. Thanks!
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Flags: needinfo?(jussi.kalliokoski)
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•