Tridactyl: commandline iframe inserted into XML documents

Created on 12 Mar 2018  路  5Comments  路  Source: tridactyl/tridactyl

There's no where else to put it if we want it to exist on those pages, afaik, but this is another reason to not insert until we need it (and maybe to remove afterwards?)

bug

Most helpful comment

With set csp clobber a bunch of excmds now work.

Commandline still doesn't and we should probably add a test to avoid adding the iframe to svg and other invalid documents.

All 5 comments

Just to add (as I just found same thing looking at wikipedia resource):
XML doesn't necessarily mean <xml> tag, e.g. <svg> causes the same issue.

Do any tridactyl features work on that link for you?

Nope, nothing I tried works. No closing tab, new tab, command line, etc. I don't think it's properly handled by the browser because <iframe> isn't a correct tag to be nested in <svg>. Can Tridactyl even get keyboard events when the command line is not rendered?

With set csp clobber a bunch of excmds now work.

Commandline still doesn't and we should probably add a test to avoid adding the iframe to svg and other invalid documents.

It鈥檚 not just the command line. Some keybindings don鈥檛 seem to work either.

I noticed that I could use zi for zoom but not j or k, and <C-u> <C-d>
for scrolling while browsing this image: https://upload.wikimedia.org/wikipedia/commons/d/d9/Oort_cloud_Sedna_orbit.svg

The only partial functionality is an implementation detail leaking through.

Was this page helpful?
0 / 5 - 0 ratings