Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix WidgetAnnotationElement._getKeyModifier to account for Linux #17185

Merged

Conversation

Snuffleupagus
Copy link
Collaborator

Currently the WidgetAnnotationElement._getKeyModifier method will always be falsy on Linux, which seems like a simple oversight. Looking at all the other FeatureTest.platform accesses we only handle the isMac-case specially, and it seems reasonable to do the same thing here.
The reason that this hasn't led to any bug reports is most likely that the modifier-property seems completely unused in the scripting-implementation.

Finally, with these changes we can (slightly) simplify the FeatureTest.platform implementation.

Currently the `WidgetAnnotationElement._getKeyModifier` method will always be falsy on Linux, which seems like a simple oversight. Looking at all the other `FeatureTest.platform` accesses we only handle the `isMac`-case specially, and it seems reasonable to do the same thing here.
The reason that this hasn't led to any bug reports is most likely that the `modifier`-property seems completely unused in the scripting-implementation.

Finally, with these changes we can (slightly) simplify the `FeatureTest.platform` implementation.
@Snuffleupagus
Copy link
Collaborator Author

/botio xfatest

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Received

Command cmd_xfatest from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.241.84.105:8877/f76ebca54c17011/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Received

Command cmd_xfatest from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.193.163.58:8877/59090b6756bf3cc/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/f76ebca54c17011/output.txt

Total script time: 10.55 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Integration Tests: FAILED
  • Regression tests: FAILED
  different ref/snapshot: 2

Image differences available at: http://54.241.84.105:8877/f76ebca54c17011/reftest-analyzer.html#web=eq.log

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/59090b6756bf3cc/output.txt

Total script time: 19.93 mins

  • Font tests: FAILED
  • Unit tests: Passed
  • Integration Tests: FAILED
  • Regression tests: FAILED
  different ref/snapshot: 1

Image differences available at: http://54.193.163.58:8877/59090b6756bf3cc/reftest-analyzer.html#web=eq.log

Copy link
Contributor

@timvandermeij timvandermeij left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me (on Linux it should indeed be Ctrl); thanks!

@timvandermeij timvandermeij merged commit 238f3e7 into mozilla:master Oct 28, 2023
3 checks passed
@timvandermeij timvandermeij removed the request for review from calixteman October 28, 2023 12:21
@Snuffleupagus Snuffleupagus deleted the annotationLayer-modifier branch October 28, 2023 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants