Skip to content

Commit

Permalink
webRequest StreamFilter ondata object property clarification
Browse files Browse the repository at this point in the history
  • Loading branch information
rebloor committed Oct 26, 2023
1 parent a4f6c82 commit af95fd5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ browser-compat: webextensions.api.webRequest.StreamFilter.ondata

{{AddonSidebar()}}

An event handler that is called repeatedly when response data is available. The handler is passed an `event` object containing a `data` property, which includes a chunk of the response data as an {{jsxref("ArrayBuffer")}}.
An event handler called repeatedly when response data is available. The handler is passed an [`event` interface object](/en-US/docs/web/api/event). However, the only reliable content in that object is the `data` property, which includes a chunk of the response data as an {{jsxref("ArrayBuffer")}}.

To decode the data, use either {{domxref("TextDecoder")}} or {{domxref("Blob")}}.

Expand Down

0 comments on commit af95fd5

Please sign in to comment.