Use SpecialPowers.Services.env in test_group_keyboard.html and helper_relative_scroll_smoothness.html
Categories
(Core :: Panning and Zooming, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox109 | --- | fixed |
People
(Reporter: beth, Assigned: beth)
References
Details
Attachments
(1 file)
Bug 1541508 adds Services.env but trying to use it in helper_transform_end_on_keyboard_scroll.html causes test time outs on macOS due to a ReferenceError:
[task 2022-11-25T22:43:45.558Z] 22:43:45 INFO - GECKO(2465) | JavaScript error: http://mochi.test:8888/tests/gfx/layers/apz/test/mochitest/helper_relative_scroll_smoothness.html?input-type=native-key&scroll-method=scrollBy, line 124: ReferenceError: Services is not defined
(which is curious because the code is using SpecialPowers.Services
)
Using SpecialPowers.Cc["@mozilla.org/process/environment;1"].getService(SpecialPowers.Ci.nsIEnvironment)
still works but triggers a lint error, so a supression was added to the file.
The time outs did not occur when running the test on Windows -- SpecialPowers.Services
was defined and works as expected.
Comment 1•2 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Panning and Zooming' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Updated•2 years ago
|
Assignee | ||
Comment 2•2 years ago
|
||
I was wrong. In my rush I didn't notice that there were two different tests that were changed to use Services.env
from SpecialPowers.Cc
. The other test does not run on Windows, which is why I could not reproduce.
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 3•2 years ago
|
||
Comment 5•2 years ago
|
||
bugherder |
Description
•