| var NPERR_GENERIC_ERROR = 1; |
| function callback(result) { |
| var d = document.getElementById('result'); |
| if (result == NPERR_NO_ERROR) |
| d.innerHTML = "FAILED - got error code " + result |
| testRunner.waitUntilDone(); |
| plg.getURLNotify("data:,hello world", "frame", "callback"); |
| document.write("Cannot run interactively"); |
| <body onload="runtest()"> |
| <embed id="plg" type="application/x-webkit-test-netscape"></embed> |
| This tests that the plugin properly receives NPP_URLNotify for subframe loads. |
| <div id="result">FAILED</div> |
| <iframe id="frame" name="frame"></iframe> |