trusted HTML Element
Steps to reproduce:
1]As soon as i open the google chrome search engine ,and open a new tab and then open console to type
document.body.innerHTML = 'hEY'
it gives me an error stating This document requires 'TrustedHTML' assignment.
2]But then the same process when i open the new tab and in the URL I type google.com and open the console and type document.body.innerHTML = 'hEY'
there is no such error .
Could anyone have any idea about this.12 Replies
what do you mean "google chrome search engine"
also I'm not really sure what the issue is, why are you trying to use the console to modify the new tab page?
also also, I tried a new chrome tab (assuming you mean the chrome browser) and get no such error
I hope this makes the question more clear.
that is a new blank tab without an address. probably that is baked into chrome itself
I use DDG as my default search engine for new tabs, and that doesn't happen for me
the question remains though, why does it matter?
i guess it has to do with an extension not working on a new tab
else everytime need to use google.com url
everytime you do what?
I've never needed to replace the innerhtml on a new tab, at least not on a regular basis
if you wanna replace on a new tab then i need to type the url as goole.com then replace the innerHTML on the console
Why are you replacing the inner html on new tabs though?
i just came across it.