| OLD | NEW |
| 1 [ | 1 [ |
| 2 { | 2 { |
| 3 "namespace": "extension", | 3 "namespace": "extension", |
| 4 "unprivileged": true, | 4 "unprivileged": true, |
| 5 "types": [ | 5 "types": [ |
| 6 { | 6 { |
| 7 "id": "MessageSender", | 7 "id": "MessageSender", |
| 8 "type": "object", | 8 "type": "object", |
| 9 "description": "An object containing information about the script contex
t that sent a message or request.", | 9 "description": "An object containing information about the script contex
t that sent a message or request.", |
| 10 "properties": { | 10 "properties": { |
| (...skipping 5448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5459 }, | 5459 }, |
| 5460 "redirectUrl": { | 5460 "redirectUrl": { |
| 5461 "type": "string", | 5461 "type": "string", |
| 5462 "optional": true, | 5462 "optional": true, |
| 5463 "description": "Only used as a response to the onBeforeRequest event
. If set, the original request is prevented from being sent and is instead redir
ected to the given URL." | 5463 "description": "Only used as a response to the onBeforeRequest event
. If set, the original request is prevented from being sent and is instead redir
ected to the given URL." |
| 5464 }, | 5464 }, |
| 5465 "requestHeaders": { | 5465 "requestHeaders": { |
| 5466 "$ref": "HttpHeaders", | 5466 "$ref": "HttpHeaders", |
| 5467 "optional": true, | 5467 "optional": true, |
| 5468 "description": "Only used as a response to the onBeforeSendHeaders e
vent. If set, the request is made with these request headers instead." | 5468 "description": "Only used as a response to the onBeforeSendHeaders e
vent. If set, the request is made with these request headers instead." |
| 5469 }, |
| 5470 "authCredentials": { |
| 5471 "type": "object", |
| 5472 "description": "Only used as a response to the onAuthRequired event.
If set, the request is made using the supplied credentials.", |
| 5473 "optional": true, |
| 5474 "properties": { |
| 5475 "username": {"type": "string"}, |
| 5476 "password": {"type": "string"} |
| 5477 } |
| 5469 } | 5478 } |
| 5470 } | 5479 } |
| 5471 } | 5480 } |
| 5472 ], | 5481 ], |
| 5473 "functions": [ | 5482 "functions": [ |
| 5474 { | 5483 { |
| 5475 "name": "addEventListener", | 5484 "name": "addEventListener", |
| 5476 "nodoc": true, | 5485 "nodoc": true, |
| 5477 "type": "function", | 5486 "type": "function", |
| 5478 "description": "Used internally to implement the special form of addList
ener for the webRequest events.", | 5487 "description": "Used internally to implement the special form of addList
ener for the webRequest events.", |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5662 "name": "filter", | 5671 "name": "filter", |
| 5663 "description": "A set of filters that restricts the events that will
be sent to this listener." | 5672 "description": "A set of filters that restricts the events that will
be sent to this listener." |
| 5664 }, | 5673 }, |
| 5665 { | 5674 { |
| 5666 "type": "array", | 5675 "type": "array", |
| 5667 "optional": true, | 5676 "optional": true, |
| 5668 "name": "extraInfoSpec", | 5677 "name": "extraInfoSpec", |
| 5669 "description": "Array of extra information that should be passed to
the listener function.", | 5678 "description": "Array of extra information that should be passed to
the listener function.", |
| 5670 "items": { | 5679 "items": { |
| 5671 "type": "string", | 5680 "type": "string", |
| 5672 "enum": ["statusLine", "responseHeaders"] | 5681 "enum": ["statusLine", "responseHeaders", "blocking"] |
| 5673 } | 5682 } |
| 5674 } | 5683 } |
| 5675 ] | 5684 ], |
| 5685 "returns": { |
| 5686 "$ref": "BlockingResponse", |
| 5687 "description": "If \"blocking\" is specified in the \"extraInfoSpec\"
parameter, the event listener should return an object of this type.", |
| 5688 "optional": true |
| 5689 } |
| 5676 }, | 5690 }, |
| 5677 { | 5691 { |
| 5678 "name": "onResponseStarted", | 5692 "name": "onResponseStarted", |
| 5679 "type": "function", | 5693 "type": "function", |
| 5680 "description": "Fired when the first byte of the response body is receiv
ed. For HTTP requests, this means that the status line and response headers are
available.", | 5694 "description": "Fired when the first byte of the response body is receiv
ed. For HTTP requests, this means that the status line and response headers are
available.", |
| 5681 "parameters": [ | 5695 "parameters": [ |
| 5682 { | 5696 { |
| 5683 "type": "object", | 5697 "type": "object", |
| 5684 "name": "details", | 5698 "name": "details", |
| 5685 "properties": { | 5699 "properties": { |
| (...skipping 2803 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8489 "type": "function", | 8503 "type": "function", |
| 8490 "description": "Called when the browser's passwords have been cleare
d.", | 8504 "description": "Called when the browser's passwords have been cleare
d.", |
| 8491 "optional": true, | 8505 "optional": true, |
| 8492 "parameters": [] | 8506 "parameters": [] |
| 8493 } | 8507 } |
| 8494 ] | 8508 ] |
| 8495 } | 8509 } |
| 8496 ] | 8510 ] |
| 8497 } | 8511 } |
| 8498 ] | 8512 ] |
| OLD | NEW |