[Webkit-unassigned] [Bug 101963] [WebInspector] Uncaught TypeError: Cannot call method 'isInlineScript' of undefined

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Nov 12 14:18:00 PST 2012


https://bugs.webkit.org/show_bug.cgi?id=101963





--- Comment #2 from johnjbarton <johnjbarton at chromium.org>  2012-11-12 14:19:43 PST ---
<html>
<head>
<script src="../../http/tests/inspector/inspector-test.js"></script>
<script src="../../http/tests/inspector/extensions-test.js"></script>
<script type="text/javascript">

window.bar = "foo = " + window.foo;

function extension_testReloadInjectsCode(nextTest)
{
    var valueWithInjectedCode;

    function onPageWithInjectedCodeLoaded()
    {
        webInspector.inspectedWindow.eval("window.bar", function(value) {
            valueWithInjectedCode = value;
            evaluateOnFrontend("InspectorTest.runWhenPageLoads(reply)", onPageWithoutInjectedCodeLoaded);
            webInspector.inspectedWindow.reload();
        });
    }
    function onPageWithoutInjectedCodeLoaded()
    {
        webInspector.inspectedWindow.eval("window.bar", function(value) {
            output("With injected code: " + valueWithInjectedCode);
            output("Without injected code: " + value);
            nextTest();
        });
    }
    evaluateOnFrontend("InspectorTest.runWhenPageLoads(reply)", onPageWithInjectedCodeLoaded);
    webInspector.inspectedWindow.reload({
        injectedScript: "(function foo() {} window.__qp = 4;)();"
    });
}

</script>
</head>
<body onload="runTest()">
<p>Layout Test for https://bugs.webkit.org/show_bug.cgi?id=101963 </p>
</body>
</html>

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list