Closed
Bug 1123067
Opened 10 years ago
Closed 10 years ago
"addEventLister" and "user-select: none"
Categories
(Core :: DOM: Events, defect)
Tracking
()
RESOLVED
FIXED
mozilla38
People
(Reporter: abolfazl.ziaratban, Assigned: MatsPalmgren_bugz)
References
(Depends on 1 open bug, Blocks 1 open bug)
Details
(Keywords: regression, site-compat)
Attachments
(2 files)
1.39 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
6.81 KB,
patch
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Windows NT 6.2; rv:35.0) Gecko/20100101 Firefox/35.0
Build ID: 20150108202552
Steps to reproduce:
keys ← ↑ ↓ → not be work when using "user-select: none".
http://jsfiddle.net/b6Lb96h1/
Actual results:
in new version 35.0
my project after update(to 35.0) moz not be work
Updated•10 years ago
|
Component: Untriaged → DOM: Events
Product: Firefox → Core
Updated•10 years ago
|
Keywords: regressionwindow-wanted
Assignee | ||
Comment 1•10 years ago
|
||
Regression from bug 739396 maybe?
Comment 2•10 years ago
|
||
(In reply to Mats Palmgren (:mats) from comment #1)
> Regression from bug 739396 maybe?
Looks like it broke earlier. Still narrowing this down further...
Comment 3•10 years ago
|
||
(In reply to :Gijs Kruitbosch from comment #2)
> (In reply to Mats Palmgren (:mats) from comment #1)
> > Regression from bug 739396 maybe?
>
> Looks like it broke earlier. Still narrowing this down further...
I get to eat my words - sorry, I seem to have made a mistake in my testing. Re-testing, and yes, it might be this bug.
Updated•10 years ago
|
Comment 4•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=152ef25e89ae&tochange=98ea98c8191a
So yeah, bug 739396 seems plausible.
Note that even before bug 739396, in the testcase the reporter linked to, I don't seem able to navigate to the part of the div past the <br>. I'm not sure why.
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → mats
(In reply to Mats Palmgren (:mats) from comment #1)
> Regression from bug 739396 maybe?
thanks.
because in last version of moz this be work correctly. but in new version of moz my project does not work! I'm wrong? or this is a bug ?
Assignee | ||
Comment 7•10 years ago
|
||
Yes, I think this is a bug and I'm working on a fix. Meanwhile, can you tell us a little bit
about your project and what you are using "user-select: none" for? (It's good for us to know
how features are used so we can make sure we don't break those use cases.)
Flags: needinfo?(abolfazl.ziaratban)
i am a php programmer and me have not enough about client programmer(js,css,html and etc ...)
But I know a little bit of everything(js,css,html and etc ...).
i using "user-select" for private console program in my project and this is like cmd in windows (only like).
for example user(or admin) cannot be selected or drag of text.
Flags: needinfo?(abolfazl.ziaratban)
Assignee | ||
Comment 9•10 years ago
|
||
This allows us to have a caret inside a user-select:none editable node.
Attachment #8556715 -
Flags: review?(bugs)
Assignee | ||
Comment 10•10 years ago
|
||
Reporter | ||
Comment 11•10 years ago
|
||
thanks you Mats :)
Comment 12•10 years ago
|
||
Comment on attachment 8556715 [details] [diff] [review]
part 1, fix
I'm probably missing something here...
Why always append aItem. Don't we want to check if aItem is collapsed and only then add it?
Attachment #8556715 -
Flags: review?(bugs) → review-
Assignee | ||
Comment 13•10 years ago
|
||
Comment on attachment 8556715 [details] [diff] [review]
part 1, fix
(In reply to Olli Pettay [:smaug] from comment #12)
> Why always append aItem. Don't we want to check if aItem is collapsed and
> only then add it?
If we requiring aItem to be collapsed the bug would still occur for
Shift+Arrow etc. While that seems like an extreme edge case, I don't
see any reason to not fix it in the same way. In general, the caret
is at the end of the range whether it is collapsed or not. That's
why I think collapsing and adding the range is the right behavior
in an editable, but non-selectable, context.
Attachment #8556715 -
Flags: review- → review?(bugs)
Comment 14•10 years ago
|
||
well shift+arrow shouldn't work, right? shift+arrow should extent the current selection and if it doesn't do that, why should selection move?
Assignee | ||
Comment 15•10 years ago
|
||
> well shift+arrow shouldn't work, right?
Fair enough. It seems like a separate bug though, and in the meanwhile I think
this behavior is reasonable.
Comment 16•10 years ago
|
||
Comment on attachment 8556715 [details] [diff] [review]
part 1, fix
This is weird but fine.
Attachment #8556715 -
Flags: review?(bugs) → review+
Assignee | ||
Comment 17•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/ea4ea5299409
https://hg.mozilla.org/integration/mozilla-inbound/rev/d35d83e9c9f2
Flags: in-testsuite+
Assignee | ||
Comment 18•10 years ago
|
||
(Filed bug 1128730 to follow-up on comment 14 / 15)
Blocks: 1128730
Backed out in https://hg.mozilla.org/integration/mozilla-inbound/rev/74c73eb6ee73 for mochitest-5 bustage:
https://treeherder.mozilla.org/logviewer.html#?job_id=6188634&repo=mozilla-inbound
It also broke the test on B2G Linux Desktop: https://treeherder.mozilla.org/logviewer.html#?job_id=6186621&repo=mozilla-inbound
Flags: needinfo?(mats)
Assignee | ||
Comment 20•10 years ago
|
||
I disabled the bug1123067-1.html part of the test (not super-important anyway) and re-landed:
https://hg.mozilla.org/integration/mozilla-inbound/rev/b9692dccd0e7
https://hg.mozilla.org/integration/mozilla-inbound/rev/b3630a0f5b0d
Filed bug 1129205 on re-enabling that test.
No longer depends on: 1129205
Flags: needinfo?(mats)
Comment 21•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/b9692dccd0e7
https://hg.mozilla.org/mozilla-central/rev/b3630a0f5b0d
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
Updated•9 years ago
|
Keywords: dev-doc-needed
You need to log in
before you can comment on or make changes to this bug.
Description
•