Hi Raymond,
Regarding the issues you're experiencing with the OCR demo, it's worth noting that since the Chrome update on February 26th, the browser's DOM began blocking local requests if certain tags or script functions are not fully specified.
Specifically, the reader.readAsDataURL(file) function is no longer handled as broadly as it was in older versions. While previous versions resolved file extensions (PDF, TXT, DOC, XML, HTML, etc.) universally, the current requirement is that these extensions must be explicitly specified within the Chrome API reader request.
This behavior has been observed in similar bugs involving Gemini's Canvas transitions for LaTeX files and PDF extensions. For further clarification on this requirement, I recommend checking the Chrome AI Building documentation about the Reader and Translate extensions.
Best regards,
Takashi Sato