Our business is affected as many customers are facing issue with OOPIF. This flag is somehow now enabled for majority of customers despite the flag is set to "default" in chrome://flags.
Problem with this flag getting enabled is that, right now, on PDF pages, we are inserting our extension buttons to help them send PDFs over to centralized place but the flag is restricting our ability to do so.
In our code, we were first finding embed element through below code
if (
(document.querySelector("embed") &&
document.querySelector("embed").type === "application/pdf") ||
innerIframePdf
)
But right now the problem is that, the shadow root with the flag enable is showing as "closed". I'm really wondering how to access PDF if that flag is even enabled in future?((OOPIF)).
Whats the possible solution for this problem?