6 if (document
.createElement
&& (iframe
= document
.createElement('iframe'))) {
7 document
.body
.appendChild(iframe
);
12 function runTestOuterText() {
14 var a
= t1
.contentWindow
.frames
;
15 var b
= t1
.contentDocument
.defaultView
.localStorage
;
16 var a_localStorage
= a
.localStorage
; // The constructor won't be reachable as window object property after detaching the frame.
20 a_localStorage
.fuzz3_visited
="test";
22 console
.log("Expected exception caught.");
28 document
.getElementById("result").innerHTML
= "passed";
31 if (window
.testRunner
)
32 testRunner
.dumpAsText();
36 <body onload=
"runTests()">
37 <p>Bug: https://bugs.webkit.org/show_bug.cgi?id=
57140
38 <p>Description: Crash from null pointer dereference below WebCore::StorageAreaImpl::setItem()
40 <p>Result:
<span id=
"result">failed
</span>