OLD | NEW |
1 [ | 1 [ |
2 { | 2 { |
3 "namespace": "experimental.devtools.inspectedWindow", | 3 "namespace": "experimental.devtools.inspectedWindow", |
4 "types": [ | 4 "types": [ |
5 { | 5 { |
6 "id": "Resource", | 6 "id": "Resource", |
7 "type": "object", | 7 "type": "object", |
8 "description": "A resource within the inspected page, such as a document
, a script or an image.", | 8 "description": "A resource within the inspected page, such as a document
, a script or an image.", |
9 "properties": { | 9 "properties": { |
10 "url": { | 10 "url": { |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 "type": "boolean", | 102 "type": "boolean", |
103 "description": "Set if an exception was caught while evaluating
the expression" | 103 "description": "Set if an exception was caught while evaluating
the expression" |
104 } | 104 } |
105 ] | 105 ] |
106 } | 106 } |
107 ] | 107 ] |
108 }, | 108 }, |
109 { | 109 { |
110 "name": "reload", | 110 "name": "reload", |
111 "type": "function", | 111 "type": "function", |
112 "description": "Reloads the inspected page, optionally setting override
for the user agent string.", | 112 "description": "Reloads the inspected page.", |
113 "parameters": [ | 113 "parameters": [ |
114 { | 114 { |
115 "name": "userAgent", | 115 "type": "object", |
116 "type": "string", | 116 "name": "reloadOptions", |
117 "optional": true, | 117 "optional": true, |
118 "description": "A user agent override string." | 118 "properties": { |
| 119 "ignoreCache": { |
| 120 "type": "boolean", |
| 121 "optional": true, |
| 122 "description": "When true, the loader will ignore the cache for
all inspected page resources loaded before the <code>load</code> event is fired.
The effect is similar to pressing Ctrl+Shift+R in the inspected window or withi
n the Developer Tools window." |
| 123 }, |
| 124 "userAgent": { |
| 125 "type": "string", |
| 126 "optional": true, |
| 127 "description": "If specified, the string will override the value
of the <code>User-Agent</code> HTTP header that's sent while loading the resour
ces of the inspected page. The string will also override the value of the <code>
navigator.userAgent</code> property that's returned to any scripts that are runn
ing within the inspected page." |
| 128 }, |
| 129 "injectedScript": { |
| 130 "type": "string", |
| 131 "optional": true, |
| 132 "description": "If specified, the script will be injected into e
very frame of the inspected page immediately upon load, before any of the frame'
s scripts. The script will not be injected after subsequent reloads—for ex
ample, if the user presses Ctrl+R." |
| 133 } |
| 134 } |
119 } | 135 } |
120 ] | 136 ] |
121 }, | 137 }, |
122 { | 138 { |
123 "name": "getResources", | 139 "name": "getResources", |
124 "type": "function", | 140 "type": "function", |
125 "description": "Retrieves the list of resources from the inspected page.
", | 141 "description": "Retrieves the list of resources from the inspected page.
", |
126 "parameters": [ | 142 "parameters": [ |
127 { | 143 { |
128 "name": "callback", | 144 "name": "callback", |
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
711 "type": "string" | 727 "type": "string" |
712 }, | 728 }, |
713 "Severe": { | 729 "Severe": { |
714 "type": "string" | 730 "type": "string" |
715 } | 731 } |
716 } | 732 } |
717 } | 733 } |
718 ] | 734 ] |
719 } | 735 } |
720 ] | 736 ] |
OLD | NEW |