From af95fd56e2c31f6dfa495f78867fc9a2e14eeccf Mon Sep 17 00:00:00 2001 From: Richard Bloor Date: Fri, 27 Oct 2023 11:43:43 +1300 Subject: [PATCH] webRequest StreamFilter ondata object property clarification --- .../webextensions/api/webrequest/streamfilter/ondata/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/en-us/mozilla/add-ons/webextensions/api/webrequest/streamfilter/ondata/index.md b/files/en-us/mozilla/add-ons/webextensions/api/webrequest/streamfilter/ondata/index.md index caf49b9411bca35..4cf0d2bf9aa7072 100644 --- a/files/en-us/mozilla/add-ons/webextensions/api/webrequest/streamfilter/ondata/index.md +++ b/files/en-us/mozilla/add-ons/webextensions/api/webrequest/streamfilter/ondata/index.md @@ -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")}}.