mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
Fix for bug 693894 (NodeList crash [@ js::GetObjectShape]). r=jst.
--HG-- extra : rebase_source : fe485e60f87633861c3aadde95c29af6d81ddcc9
This commit is contained in:
parent
40feabd0e0
commit
d636007fe7
8
dom/base/crashtests/693894.html
Normal file
8
dom/base/crashtests/693894.html
Normal file
@ -0,0 +1,8 @@
|
||||
<!DOCTYPE html>
|
||||
<script>
|
||||
|
||||
var nodeList = document.getElementsByName("html");
|
||||
nodeList.__proto__ = null;
|
||||
nodeList.x;
|
||||
|
||||
</script>
|
@ -29,3 +29,4 @@ load 612018-1.html
|
||||
load 637116.html
|
||||
load 666869.html
|
||||
load 675621-1.html
|
||||
load 693894.html
|
||||
|
@ -918,6 +918,9 @@ ListBase<LC>::getPropertyOnPrototype(JSContext *cx, JSObject *proxy, jsid id, bo
|
||||
js::Value *vp)
|
||||
{
|
||||
JSObject *proto = js::GetObjectProto(proxy);
|
||||
if (!proto)
|
||||
return true;
|
||||
|
||||
bool hit;
|
||||
if (getProtoShape(proxy) != js::GetObjectShape(proto)) {
|
||||
if (!shouldCacheProtoShape(cx, proto, &hit))
|
||||
|
Loading…
Reference in New Issue
Block a user