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
Jochem6mo 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
VandanaOP6mo ago
No description
Vandana
VandanaOP6mo ago
No description
Vandana
VandanaOP6mo ago
I hope this makes the question more clear.
MarkBoots
MarkBoots6mo ago
that is a new blank tab without an address. probably that is baked into chrome itself
Jochem
Jochem6mo 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
MarkBoots6mo ago
i guess it has to do with an extension not working on a new tab
Vandana
VandanaOP6mo ago
else everytime need to use google.com url
Jochem
Jochem6mo 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
VandanaOP6mo 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
Jochem6mo ago
Why are you replacing the inner html on new tabs though?
Vandana
VandanaOP6mo ago
i just came across it.
Want results from more Discord servers?
Add your server