No description provided.
Bug 1802605 Comment 0 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
Bug 1541508 adds Services.env but trying to use it in [helper_transform_end_on_keyboard_scroll.html](https://searchfox.org/mozilla-central/rev/513d9c0f27c0c3fdc9ed6c5fb222a3f90ae69d70/gfx/layers/apz/test/mochitest/helper_transform_end_on_keyboard_scroll.html#44-49) 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 ``` 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.
Bug 1541508 adds Services.env but trying to use it in [helper_transform_end_on_keyboard_scroll.html](https://searchfox.org/mozilla-central/rev/513d9c0f27c0c3fdc9ed6c5fb222a3f90ae69d70/gfx/layers/apz/test/mochitest/helper_transform_end_on_keyboard_scroll.html#44-49) 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.