Consider adding support for customizing scrolling behavior with Element.focus
Categories
(Core :: DOM: Core & HTML, enhancement, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox68 | --- | fixed |
People
(Reporter: smaug, Assigned: mbrodesser)
References
(Depends on 1 open bug)
Details
(Keywords: dev-doc-complete)
Attachments
(1 file)
Updated•8 years ago
|
Comment 1•8 years ago
|
||
Comment 2•8 years ago
|
||
Comment 3•8 years ago
|
||
Very needed feature as preventScroll is extremely hard to implement properly on your own.
Updated•7 years ago
|
| Assignee | ||
Updated•7 years ago
|
Updated•7 years ago
|
| Assignee | ||
Comment 6•7 years ago
|
||
Filed a spec issue (https://github.com/whatwg/html/issues/4512) to avoid interoperability problems with Chrome and potentially clarify the spec for repeated re-focus events.
| Assignee | ||
Comment 7•7 years ago
|
||
(Copying to here, because erroneously posted at the duplicate issue): Should be done for SVGElement too (https://html.spec.whatwg.org/#htmlorsvgelement). To keep the code simple we'll also add it to XULElement.
| Assignee | ||
Comment 8•7 years ago
|
||
-
Remove expectation that 'preventScroll.html' fails.
-
Use '[NoInterfaceObject] interface' workaround to simulate missing 'mixin' support.
| Assignee | ||
Updated•7 years ago
|
| Assignee | ||
Comment 9•7 years ago
|
||
A try run corresponding to the review: https://treeherder.mozilla.org/#/jobs?repo=try&revision=10b210d3331a4a5b00aa9c79247f37cc61722f73&selectedJob=239606015. There few failures are unrelated. Requesting check-in.
| Assignee | ||
Updated•7 years ago
|
Comment 10•7 years ago
|
||
Tried to land this and received the following message: We're sorry, Autoland could not rebase your commits for you automatically. Please manually rebase your commits and try again. (255, 'applying /tmp/tmpzDM1eH\npatching file dom/html/HTMLLegendElement.cpp\nHunk #3 FAILED at 88\n1 out of 3 hunks FAILED -- saving rejects to file dom/html/HTMLLegendElement.cpp.rej\npatching file dom/html/HTMLLabelElement.cpp\nHunk #1 FAILED at 49\n1 out of 1 hunks FAILED -- saving rejects to file dom/html/HTMLLabelElement.cpp.rej\npatching file dom/base/Element.cpp\nHunk #1 FAILED at 337\n1 out of 1 hunks FAILED -- saving rejects to file dom/base/Element.cpp.rej\nabort: patch failed to apply', '')
| Assignee | ||
Comment 11•7 years ago
|
||
Razvan: did you take the latest version of https://phabricator.services.mozilla.com/D26922? I had to resolve merge conflicts for the first version. I've just locally pulled and rebased without conflicts the latest version on:
commit 9dbbb9cb30e42518f410fb5b9968c7b178185748 (origin/branches/default/0b4aefa9f91cb941071c1fdb1c520188522bf710, origin/bookmarks/inbound, refs/cinnabar/refs/heads/branches/default/0b4aefa9f91cb941071c1fdb1c520188522bf710, refs/cinnabar/refs/heads/bookmarks/inbound)
Merge: 2782be40ae26 2ef7282d458b
Author: Ciure Andrei <aciure@mozilla.com>
Date: Thu Apr 11 12:57:28 2019 +0300
Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE
Isn't the change cherry-picked on top of "origin/bookmarks/inbound"?
Comment 12•7 years ago
|
||
Phabricator lands patches on the top of autoland not inbound.
| Assignee | ||
Comment 13•7 years ago
|
||
Razvan: I see. The merge-conflict stems from https://hg.mozilla.org/integration/autoland/rev/c5898e18dedf. I'll look into it.
| Assignee | ||
Comment 14•7 years ago
•
|
||
A try run corresponding to the review: https://treeherder.mozilla.org/#/jobs?repo=try&revision=aa930ee0286e1af236f0be8dab8eb8dfab488a0c. The failures are unrelated to this change. Requesting check-in.
| Assignee | ||
Updated•7 years ago
|
Comment 15•7 years ago
|
||
Pushed by cbrindusan@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/894487fe3fa0
add 'preventScroll' option to HTMLElement's, SVGElement's and XULElement's 'focus' method r=smaug
Comment 16•7 years ago
|
||
| bugherder | ||
Comment 17•6 years ago
|
||
Documentation updates:
- While it already had most of this information, I have cleaned up and finished the changes to HTMLElement.focus()
- Submitted BCD PR 4359 to add and update the info for SVGElement/HTMLElement focus() method and its options
Description
•