filedescriptor/untrusted-types

Keyword highlighting is not working

Closed this issue · 7 comments

First of all, congrats on the impressive and creative use of Trusted Types!

I noticed, while trying to follow along your video here, specifically the part on where you're demoing using the keyword d0mxss in the input field on http://prompt.ml/1, that the functionality described here doesn't seem to be working for me.

I have no errors in my console and even tried with all other extensions disabled .

Chrome version: 87.0.4280.67 (Official Build) (x86_64)
Untrusted-types version: 0.0.1

Can you post the logs/screenshots?

Sure thing!

image

Looks like for some reason it doesn't even log the change. Can you try to go to https://public-firing-range.appspot.com/address/location.hash/documentwrite#d0mxss and check the log?

Apologies for the late reply.
Here they are:

Console
image
Log
image

And below is the log for
image

image

Hmm very strange. It looks like the content script is not injected into the iframe. In fact, there doesn't seem to have sandbox.prompt.ml loaded. Mine is like below:
contents

I noticed you are using a Mac and I think it should not be relevant, but I will try it on a Mac.

I've tested in on a Mac and it worked as expected. I think it's most likely a prompt.ml's issue, though I can't think of one. I'll leave this issue open in case anyone experiences the same.