How to clear a TextField in Firefox

I didn’t use WebUI.clearText().
I took your code as you told me and it replaced the content of the field with an empty string “” as expected.

static void clearInputText(String cssSelector) {
    String js = 'document.querySelector("' + cssSelector +'").value = "";'
    WebUI.executeJavaScript(js, null)
}  

But same behavior like as using WebUI.clearText().