We used to try catch around calling DevToolsFrameParent.addOrSetSessionDataEntry but when migrating to JSProcessActors, the try catch was removed. One of the console listeners fails to start on broken XML documents which prevents from using devtools at all on a page which contains an iframe with such a document. The listener is updated to safely read the performance timing or use -1 if unavailable. Test is added to cover toolbox opening in this case. Differential Revision: https://phabricator.services.mozilla.com/D232193
11 lines
252 B
HTML
11 lines
252 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Test document with iframe containing a broken XML file</title>
|
|
</head>
|
|
<body>
|
|
<iframe src="doc_broken_xml.xml"></iframe>
|
|
<script type="text/javascript">console.log("foo after iframe")</script>
|
|
</body>
|
|
</html>
|