This would violate the same-origin policy, so I don't think you can do this
within Blink, but given this is a chrome: page, maybe you could add some
code in the browser to give this information to you.

On Tue, Nov 16, 2021, 4:40 PM Tibor Goldschwendt <[email protected]>
wrote:

> Hi Blink Dev!
>
> Is there any way to get the HTTP return code of a cross-domain iframe?
> FWIW, the hosting page has the chrome:// scheme while the iframe has
> https:// scheme. From my limited testing I receive the load
> <https://developer.mozilla.org/en-US/docs/Web/API/Window/load_event> event
> in all scenarios but couldn't find a way to query whether the load
> succeeded. I also tried window.addEventListener('error', ...) and
> iframe.addEventListener('error', ...) without any luck.
>
> Best regards,
> Tibor
>
> --
> You received this message because you are subscribed to the Google Groups
> "blink-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAFgr3n%2B8i%2BNQNSJY0DFab9JrXG0QTq3W473t-beRtPYbLn1XjA%40mail.gmail.com
> <https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAFgr3n%2B8i%2BNQNSJY0DFab9JrXG0QTq3W473t-beRtPYbLn1XjA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CACwGi-69bRB9OONTAURu7tWVrcfKkjcpO9kT4B0dMd4aPC0W4Q%40mail.gmail.com.

Reply via email to