| <script> |
| function Page() { |
| } |
| |
| Page.prototype.enable = function() { |
| }; |
| |
| Page.prototype.canScreencast = function() { |
| return { |
| result: false |
| }; |
| }; |
| |
| Page.prototype.canEmulate = function() { |
| return { |
| result: false |
| }; |
| }; |
| |
| Page.prototype.getResourceTree = function() { |
| // Unclear if this is all needed, but if we don't return something here |
| // the inspector hits an exception in WebInspector.ResourceTreeModel. |
| return { |
| "frameTree": { |
| "frame": { |
| "id": 1, |
| "loaderId": 1, |
| "url": document.URL, |
| "mimeType": "text/html", |
| "securityOrigin": document.URL, |
| }, |
| "resources": [], // FIXME |
| } |
| }; |
| }; |
| |
| module.exports = Page; |
| </script> |