-
Notifications
You must be signed in to change notification settings - Fork 20
Workaround firefox warning and inject if it is html or unknown #89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Hello. Thank you, little bit better but still extension throws error.
Solution can be - don't activate plugin on pages with mime type other than HTML. |
|
Found reason. instanceof gives true on XML docs, because XMLDocument and HTMLDocument both extends same type. Changed verification to This is final version of injectPageScript function |
|
Maybe if (document.contentType !== "text/html") { |
|
I think is enough. Result will be the same, from information i know. |
This gives me 'object' |
|
Uh... document.constructor.name => "HTMLDocument" Let's change line 1 to |
|
Checked last artifact download URL: https://github.com/web-eid/web-eid-webextension/actions/runs/19536024038/artifacts/4626976308 Everything works correct on XML, HTML and text pages, no errors. |
TypeError: can't access property "name", s.dataset is undefined WE2-1143 Signed-off-by: Raul Metsma <raul@metsma.ee>


TypeError: can't access property "name", s.dataset is undefined
WE2-1143
Signed-off-by: Raul Metsma raul@metsma.ee