Safari Extension - webRequest.onResponseStarted listener callback

Hi,

I'm trying to convert my chrome extension to work in Safari. I've got it mostly working but there is one issue with the webRequest.onResponseStarted.addListener api. The callback is missing fields including ip. Here is an example:

webRequest.onResponseStarted.addListener((r) => {
    console.log(r);
}, {"urls": ["<all_urls>"])

In chrome this will print all the fields described in the spec.

But in safari it is missing a lot of fields, including ip, type, etc.

Does anyone know if this is a bug or if I am doing something wrong?

Thanks!

Replies

Please file a bug report on https://feedbackassistant.apple.com requesting these additional fields (and the reason you want this information).

Once you've done that, please include the feedback ID in a response here.

Thanks!

  • FB11567676

Add a Comment