Bug 840898. Flag our nullable return value as actually being nullable. r=tbsaunde
authorBoris Zbarsky <bzbarsky@mit.edu>
Fri, 15 Feb 2013 22:36:15 -0500
changeset 122097 b29cf09b5182d2dd5f568bc0885ea53bdfb58c33
parent 122096 8786f346fc6fb519182c77210bf1b3262916a149
child 122098 9f9eb67458e93aedbb9ad85afda079cec88ccf29
push id24317
push userryanvm@gmail.com
push dateSat, 16 Feb 2013 14:49:39 +0000
treeherdermozilla-central@484dbca61133 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstbsaunde
bugs840898
milestone21.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 840898. Flag our nullable return value as actually being nullable. r=tbsaunde
dom/webidl/CSSValueList.webidl
layout/style/crashtests/840898.html
layout/style/crashtests/crashtests.list
--- a/dom/webidl/CSSValueList.webidl
+++ b/dom/webidl/CSSValueList.webidl
@@ -1,10 +1,10 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  * You can obtain one at http://mozilla.org/MPL/2.0/.
  */
 
 interface CSSValueList : CSSValue {
          readonly attribute unsigned long    length;
-  getter CSSValue           item(unsigned long index);
+  getter CSSValue?          item(unsigned long index);
 };
new file mode 100644
--- /dev/null
+++ b/layout/style/crashtests/840898.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+
+function boom()
+{
+  var styleDeclaration = window.getComputedStyle(document.createElement('div'), null);
+  var cursorValue = styleDeclaration.getPropertyCSSValue('cursor');
+  cursorValue.item(1000);
+}
+
+</script>
+</head>
+
+<body onload="boom();"></body>
+</html>
--- a/layout/style/crashtests/crashtests.list
+++ b/layout/style/crashtests/crashtests.list
@@ -82,8 +82,9 @@ load 729126-2.html
 skip-if(Android||browserIsRemote) load 786108-1.html # Bug 795534
 skip-if(browserIsRemote) load 786108-2.html # Bug 795534
 load 788836.html
 load 806310-1.html
 load 812824.html
 load 822842.html
 load 822766-1.html
 load 827591-1.html
+load 840898.html