@jw732 Thanks for your answer.
The API I use is for App Extension. So far, I think I can't achieve this goal with App Extension API. Probably it's time for me to try to migrate to Web Extension.
Anyways, I tried your code but active in your code doesn't seem to have the error info, but instead, onErrorOccurred seems to work fine like this:
browser.webNavigation.onErrorOccurred.addListener(function (details) {
...
});
details includes url where the error occurred, so I think I can handle it.
Well, I have to migrate my extension to Web Extension first, but still, your answer gave me a good insight for me. Thanks so much.
Topic:
Safari & Web
SubTopic:
General
Tags: