Closed Bug 1707925 Opened 5 years ago Closed 4 years ago

jQuery Mobile Swipe event interferes with text selection

Categories

(Core :: DOM: Events, defect)

Firefox 88
defect

Tracking

()

RESOLVED DUPLICATE of bug 1712339

People

(Reporter: ynovetsky, Unassigned)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files, 1 obsolete file)

Attached file Test Case

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

Steps to reproduce:

I attempted to select text (by holding down the mouse and dragging) in the example test-case provided, once in the first line, and once in the second line.

Actual results:

In the first line, only a few characters were selected, while in the second everything got selected.

Expected results:

In both lines, everything I dragged over should be selected.

The Bugbug bot thinks this bug should belong to the 'Core::DOM: Events' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → DOM: Events
Product: Firefox → Core

I can repro this on my everyday profile but not on a fresh profile, which is interesting...

(In reply to Kagami :saschanaz from comment #2)

I can repro this on my everyday profile but not on a fresh profile, which is interesting...

This was because I have HTTPS-only mode on my daily profile so didn't get a mixed content error, while a fresh profile has no HTTPS-only and thus gets one.

Fixing the <script> line as <script src="https://code.jquery.com/jquery-1.11.1.min.js"></script> makes the behavior consistent on every browser, and the expected result is "only a few characters are selected", caused by event.preventDefault() inside content.move, which is called by a mousemove event listener.

Does this help you?

Flags: needinfo?(inkbug200)

The used jQuery version is very old, from 2014 or 2015. Unfortunately the example code doesn't run when using the newest jQuery version.

This is now fixed by reverting bug 1674658.

Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Flags: needinfo?(inkbug200)
Regressed by: 1674658
Resolution: --- → DUPLICATE
Has Regression Range: --- → yes
Keywords: regression
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: