Closed Bug 1908552 Opened 2 years ago Closed 2 years ago

Remove unused Selection.scrollIntoView.

Categories

(Core :: DOM: Selection, task)

task

Tracking

()

RESOLVED FIXED
130 Branch
Tracking Status
firefox130 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

Details

Attachments

(1 external file)

No description provided.

There are no callers from JS (looked at the selection region constant
usage in idl and those use nsISelectionController, not this).

If we were to provide this API in the future, it would probably use
ScrollIntoViewOptions or so instead (plus something extra perhaps).

I wanted to remove the weird WehreToScroll percentage impl, but actually
some C++ accessibility code still uses it.

Assignee: nobody → emilio
Status: NEW → ASSIGNED
Type: defect → task
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b85a757c74ac Remove unused ChromeOnly Selection.scrollIntoView. r=jjaschke,masayuki

Backed out for causing mochitest-plain failures on test_scroll_selection_into_view.html.

[task 2024-07-24T09:21:05.480Z] 09:21:05     INFO - TEST-START | layout/base/tests/test_scroll_selection_into_view.html
[task 2024-07-24T09:21:06.652Z] 09:21:06     INFO - GECKO(1735) | 1721812866651	Marionette	TRACE	Received observer notification browser-delayed-startup-finished
[task 2024-07-24T09:21:06.970Z] 09:21:06     INFO - GECKO(1735) | JavaScript error: http://mochi.test:8888/tests/layout/base/tests/test_scroll_selection_into_view.html, line 28: TypeError: selection.scrollIntoView is not a function
[task 2024-07-24T09:26:09.605Z] 09:26:09     INFO - TEST-INFO | started process screentopng
[task 2024-07-24T09:26:09.745Z] 09:26:09     INFO - TEST-INFO | screentopng: exit 0
[task 2024-07-24T09:26:09.746Z] 09:26:09     INFO - TEST-UNEXPECTED-FAIL | layout/base/tests/test_scroll_selection_into_view.html | Test timed out. - 
[task 2024-07-24T09:26:10.613Z] 09:26:10     INFO - Not taking screenshot here: see the one that was previously logged
[task 2024-07-24T09:26:10.616Z] 09:26:10     INFO - TEST-UNEXPECTED-FAIL | layout/base/tests/test_scroll_selection_into_view.html | [SimpleTest.finish()] No checks actually run. (You need to call ok(), is(), or similar functions at least once.  Make sure you use SimpleTest.waitForExplicitFinish() if you need it.) 
[task 2024-07-24T09:26:10.617Z] 09:26:10     INFO -     SimpleTest.ok@SimpleTest/SimpleTest.js:426:16
[task 2024-07-24T09:26:10.617Z] 09:26:10     INFO -     afterCleanup@SimpleTest/SimpleTest.js:1477:18
[task 2024-07-24T09:26:10.617Z] 09:26:10     INFO -     executeCleanupFunction@SimpleTest/SimpleTest.js:1562:7
[task 2024-07-24T09:26:10.617Z] 09:26:10     INFO -     SimpleTest.finish@SimpleTest/SimpleTest.js:1582:3
[task 2024-07-24T09:26:10.617Z] 09:26:10     INFO -     killTest@SimpleTest/TestRunner.js:200:22
[task 2024-07-24T09:26:10.617Z] 09:26:10     INFO -     async*delayedKillTest@SimpleTest/TestRunner.js:243:17
[task 2024-07-24T09:26:10.617Z] 09:26:10     INFO -     setTimeout handler*TestRunner._checkForHangs@SimpleTest/TestRunner.js:241:17
[task 2024-07-24T09:26:10.617Z] 09:26:10     INFO -     setTimeout handler*TestRunner._checkForHangs@SimpleTest/TestRunner.js:255:15
[task 2024-07-24T09:26:10.617Z] 09:26:10     INFO -     setTimeout handler*TestRunner._checkForHangs@SimpleTest/TestRunner.js:255:15
[task 2024-07-24T09:26:10.617Z] 09:26:10     INFO -     setTimeout handler*TestRunner._checkForHangs@SimpleTest/TestRunner.js:255:15
[task 2024-07-24T09:26:10.617Z] 09:26:10     INFO -     setTimeout handler*TestRunner._checkForHangs@SimpleTest/TestRunner.js:255:15
[task 2024-07-24T09:26:10.617Z] 09:26:10     INFO -     setTimeout handler*TestRunner._checkForHangs@SimpleTest/TestRunner.js:255:15
[task 2024-07-24T09:26:10.617Z] 09:26:10     INFO -     setTimeout handler*TestRunner._checkForHangs@SimpleTest/TestRunner.js:255:15
[task 2024-07-24T09:26:10.617Z] 09:26:10     INFO -     setTimeout handler*TestRunner._checkForHangs@SimpleTest/TestRunner.js:255:15
[task 2024-07-24T09:26:10.617Z] 09:26:10     INFO -     setTimeout handler*TestRunner._checkForHangs@SimpleTest/TestRunner.js:255:15
[task 2024-07-24T09:26:10.617Z] 09:26:10     INFO -     setTimeout handler*TestRunner._checkForHangs@SimpleTest/TestRunner.js:255:15
[task 2024-07-24T09:26:10.617Z] 09:26:10     INFO -     setTimeout handler*TestRunner._checkForHangs@SimpleTest/TestRunner.js:255:15
[task 2024-07-24T09:26:10.617Z] 09:26:10     INFO -     setTimeout handler*TestRunner._checkForHangs@SimpleTest/TestRunner.js:255:15
[task 2024-07-24T09:26:10.617Z] 09:26:10     INFO -     setTimeout handler*TestRunner._checkForHangs@SimpleTest/TestRunner.js:255:15
[task 2024-07-24T09:26:10.617Z] 09:26:10     INFO -     setTimeout handler*TestRunner._checkForHangs@SimpleTest/TestRunner.js:255:15
[task 2024-07-24T09:26:10.617Z] 09:26:10     INFO -     setTimeout handler*TestRunner._checkForHangs@SimpleTest/TestRunner.js:255:15
[task 2024-07-24T09:26:10.617Z] 09:26:10     INFO -     TestRunner.runTests/<@SimpleTest/TestRunner.js:535:16
[task 2024-07-24T09:26:10.617Z] 09:26:10     INFO -     Async*TestRunner.runTests@SimpleTest/TestRunner.js:522:48
[task 2024-07-24T09:26:10.617Z] 09:26:10     INFO -     RunSet.runtests@SimpleTest/setup.js:285:14
[task 2024-07-24T09:26:10.617Z] 09:26:10     INFO -     RunSet.runall@SimpleTest/setup.js:264:12
[task 2024-07-24T09:26:10.617Z] 09:26:10     INFO -     getPrefList/<@SimpleTest/setup.js:351:14
[task 2024-07-24T09:26:10.617Z] 09:26:10     INFO -     loadFile/req.onload@SimpleTest/setup.js:80:19
[task 2024-07-24T09:26:10.617Z] 09:26:10     INFO -     EventHandlerNonNull*loadFile@SimpleTest/setup.js:75:3
[task 2024-07-24T09:26:10.617Z] 09:26:10     INFO -     getPrefList@SimpleTest/setup.js:349:13
[task 2024-07-24T09:26:10.617Z] 09:26:10     INFO -     hookupTests@SimpleTest/setup.js:372:5
[task 2024-07-24T09:26:10.617Z] 09:26:10     INFO - parseTestManifest@http://mochi.test:8888/manifestLibrary.js:53:13
[task 2024-07-24T09:26:10.617Z] 09:26:10     INFO - getTestManifest/req.onload@http://mochi.test:8888/manifestLibrary.js:66:28
[task 2024-07-24T09:26:10.617Z] 09:26:10     INFO - EventHandlerNonNull*getTestManifest@http://mochi.test:8888/manifestLibrary.js:62:3
[task 2024-07-24T09:26:10.617Z] 09:26:10     INFO -     hookup@SimpleTest/setup.js:337:20
[task 2024-07-24T09:26:10.617Z] 09:26:10     INFO - EventHandlerNonNull*@http://mochi.test:8888/tests?autorun=1&closeWhenDone=1&consoleLevel=INFO&manifestFile=tests.json&dumpOutputDirectory=%2Ftmp&cleanupCrashes=true&ignorePrefsFile=ignorePrefs.json:10:32
[task 2024-07-24T09:26:10.617Z] 09:26:10     INFO - GECKO(1735) | MEMORY STAT | vsize 20975000MB | residentFast 1006MB
[task 2024-07-24T09:26:13.646Z] 09:26:13     INFO - Error: Unable to restore focus, expect failures and timeouts.
[task 2024-07-24T09:26:13.667Z] 09:26:13    ERROR - TEST-UNEXPECTED-FAIL | /tests/layout/base/tests/test_scroll_selection_into_view.html logged result after SimpleTest.finish(): [SimpleTest.finish()] No checks actually run. (You need to call ok(), is(), or similar functions at least once.  Make sure you use SimpleTest.waitForExplicitFinish() if you need it.)
[task 2024-07-24T09:26:13.686Z] 09:26:13     INFO - TEST-OK | layout/base/tests/test_scroll_selection_into_view.html | took 308205ms
[task 2024-07-24T09:26:13.779Z] 09:26:13     INFO - TEST-START | layout/base/tests/test_scroll_space_no_range_overflow_scroll.html
Flags: needinfo?(emilio)
Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/bd4e91285308 Remove unused ChromeOnly Selection.scrollIntoView. r=jjaschke,masayuki
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 130 Branch
Blocks: 1926031
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: