Currently, WebAutomationSession::simulateMouseInteraction converts m_currentModifiers (which stores the current native platform modifiers) directly to OptionSet<WebEvent::Modifier> using OptionSet::fromRaw(m_currentModifiers). This causes problems as the fields in the native mappings is completely different from the WebEvent ones: |Key | WebEvent | WPE | GTK | Mac | |--------|----------|-----|-----|-----| |Shift | 0 | 1 | 0 | 17 | |Control | 1 | 0 | 2 | 18 | |Alt | 2 | 2 | 28 | 19 | |Meta | 3 | 3 | X | 20 | |Caps | 4 | X | 1 | 16 | |--------|----------|-----|-----|-----| For example, the current GTK context menu tests tests failing with the ctrl key pressed.
Created attachment 401202 [details] Patch
Comment on attachment 401202 [details] Patch r=me, good catch.
Committed r262703: <https://trac.webkit.org/changeset/262703> All reviewed patches have been landed. Closing bug and clearing flags on attachment 401202 [details].
<rdar://problem/64098495>