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
Jochem
Jochem2w ago
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
Vandana
Vandana2w ago
No description
Vandana
Vandana2w ago
No description
Vandana
Vandana2w ago
I hope this makes the question more clear.
MarkBoots
MarkBoots2w ago
that is a new blank tab without an address. probably that is baked into chrome itself
Jochem
Jochem2w ago
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?
MarkBoots
MarkBoots2w ago
i guess it has to do with an extension not working on a new tab
Vandana
Vandana2w ago
else everytime need to use google.com url
Jochem
Jochem2w ago
everytime you do what? I've never needed to replace the innerhtml on a new tab, at least not on a regular basis
Vandana
Vandana2w ago
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
Jochem
Jochem2w ago
Why are you replacing the inner html on new tabs though?
Vandana
Vandana2w ago
i just came across it.