Closed Bug 1768345 Opened 2 years ago Closed 2 years ago

I can't write to the inputs

Categories

(Core :: DOM: Core & HTML, defect)

Firefox 100
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: juakobazan27, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Attached file index.html (deleted) —

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0
Firefox for Android

Steps to reproduce:

Dear I found a problem with a javascript code in the last update, which does not allow me to write in the inputs of my website, I want to clarify that in previous versions it worked.

Please excuse me for my bad English, I'm from Argentina, sorry.

Actual results:

I pass you the javascript code, although it is a function so that the selection is not allowed, I understand that it should be verified since in other browsers such as edge and chrome it works.

Please excuse me for my bad English, I'm from Argentina, sorry.

Expected results:

In firefox it works but it does not allow you to write in the inputs.
I tried firefox for android and the same thing happens as on the pc.

Please excuse me for my bad English, I'm from Argentina, sorry.

Component: Untriaged → DOM: UI Events & Focus Handling
Product: Firefox → Core
Blocks: 1428302
Component: DOM: UI Events & Focus Handling → DOM: Core & HTML

It seems window.sidebar doesn't exist in other browsers, and JS is behaving differently than in other browsers. You should remove the if (window.sidebar) { condition and everything that's inside, so:

<script type="text/javascript">

   function disableselect(e) {
       return false
   }
   function reEnable() {
       return true
   }
   document.onselectstart = new Function("return false")
</script>

Great thank you very much for your time I did not know about this, thank you

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: