Skip to content

Firefox: Copying elements sometimes don’t work when holding alt (ctrl on macOS) the whole time without releasing it #92

@anarcat

Description

@anarcat

URL

https://lydell.github.io/LinkHints/tutorial.html#step-7

Screen shot

Here's a screenshot of the tutorial before selecting the link:

image

Here's a video of the procedure. Note that control-shift-v in the terminal pastes from the CLIPBOARD selection, but the PRIMARY selection is also not correct.

recording_proxy.mp4

Description

Copying links doesn't work in Firefox 115.8.0esr on Debian 12 "bookworm", running under Sway.

Debug info

[LinkHints] 2024-03-21 09:52:53.070 https://lydell.github.io/LinkHints/tutorial.html#step-7 
  WorkerProgram#onKeydown suppressing event 
Object { key: "L", code: "KeyL", event: keydown Alt-Shift, match: {…}, keyboardMode: "Normal", suppressNextKeyup: {…} }
[worker.js:392:12](moz-extension://2a6d9c03-33df-4dab-a379-13698bda5fb7/worker.js)
[LinkHints] 2024-03-21 09:52:53.072 https://lydell.github.io/LinkHints/tutorial.html#step-7 
  WorkerProgram#sendMessage KeyboardShortcutMatched 
Object { type: "KeyboardShortcutMatched", action: "EnterHintsMode_Select", timestamp: 1711029173072 }
[worker.js:392:12](moz-extension://2a6d9c03-33df-4dab-a379-13698bda5fb7/worker.js)
[LinkHints] 2024-03-21 09:52:53.076 https://lydell.github.io/LinkHints/tutorial.html#step-7 
  WorkerProgram#onMessage StartFindElements 
Object { type: "StartFindElements", types: "selectable" }
[worker.js:392:12](moz-extension://2a6d9c03-33df-4dab-a379-13698bda5fb7/worker.js)
[LinkHints] 2024-03-21 09:52:53.082 https://lydell.github.io/LinkHints/tutorial.html#step-7 
  ElementManager#getVisibleElements results (including rejected) 
Array(293) [ {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, … ]
[worker.js:392:12](moz-extension://2a6d9c03-33df-4dab-a379-13698bda5fb7/worker.js)
[LinkHints] 2024-03-21 09:52:53.083 https://lydell.github.io/LinkHints/tutorial.html#step-7 
  WorkerProgram#sendMessage ReportVisibleElements 
Object { type: "ReportVisibleElements", elements: (32) […], numFrames: 0, stats: {…} }
[worker.js:392:12](moz-extension://2a6d9c03-33df-4dab-a379-13698bda5fb7/worker.js)
[LinkHints] 2024-03-21 09:52:53.088 https://lydell.github.io/LinkHints/tutorial.html#step-7 
  WorkerProgram#onMessage StateSync 
Object { type: "StateSync", clearElements: false, keyboardShortcuts: (9) […], keyboardMode: "Hints", logLevel: "debug", keyTranslations: {}, oneTimeWindowMessageToken: "279951631727167499983150472382", mac: false, isPinned: false }
[worker.js:392:12](moz-extension://2a6d9c03-33df-4dab-a379-13698bda5fb7/worker.js)
[LinkHints] 2024-03-21 09:52:53.089 https://lydell.github.io/LinkHints/tutorial.html#step-7 
  RendererProgram#onMessage Render 
Object { type: "Render", elements: (32) […], mixedCase: false }
[renderer.js:271:12](moz-extension://2a6d9c03-33df-4dab-a379-13698bda5fb7/renderer.js)
[LinkHints] 2024-03-21 09:52:53.093 https://lydell.github.io/LinkHints/tutorial.html#step-7 
  RendererProgram#sendMessage Rendered 
Object { type: "Rendered", firstPaintTimestamp: 1711029173091, lastPaintTimestamp: 1711029173093, durations: (8) […] }
[renderer.js:271:12](moz-extension://2a6d9c03-33df-4dab-a379-13698bda5fb7/renderer.js)
[LinkHints] 2024-03-21 09:52:53.094 https://lydell.github.io/LinkHints/tutorial.html#step-7 
  ElementManager#flushQueue 
Object { length: 1, index: 0 }
 
Object { type: "Records", records: (1) […], recordIndex: 0, addedNodeIndex: 0, removedNodeIndex: 0, childIndex: 0, children: undefined, removalsOnly: false }
[worker.js:392:12](moz-extension://2a6d9c03-33df-4dab-a379-13698bda5fb7/worker.js)
[LinkHints] 2024-03-21 09:52:53.094 https://lydell.github.io/LinkHints/tutorial.html#step-7 
  ElementManager#flushQueue Empty queue. [worker.js:392:12](moz-extension://2a6d9c03-33df-4dab-a379-13698bda5fb7/worker.js)
[LinkHints] 2024-03-21 09:52:53.202 https://lydell.github.io/LinkHints/tutorial.html#step-7 
  WorkerProgram#onKeyup suppressing event 
Object { event: keyup Alt-Shift, keyboardMode: "Hints", suppressNextKeyup: {…} }
[worker.js:392:12](moz-extension://2a6d9c03-33df-4dab-a379-13698bda5fb7/worker.js)
[LinkHints] 2024-03-21 09:52:53.589 https://lydell.github.io/LinkHints/tutorial.html#step-7 
  WorkerProgram#onMessage StateSync 
Object { type: "StateSync", clearElements: false, keyboardShortcuts: (9) […], keyboardMode: "Hints", logLevel: "debug", keyTranslations: {}, oneTimeWindowMessageToken: "215946989425238614683822896130", mac: false, isPinned: false }
[worker.js:392:12](moz-extension://2a6d9c03-33df-4dab-a379-13698bda5fb7/worker.js)
[LinkHints] 2024-03-21 09:52:53.590 https://lydell.github.io/LinkHints/tutorial.html#step-7 
  WorkerProgram#onMessage UpdateElements 
Object { type: "UpdateElements" }
[worker.js:392:12](moz-extension://2a6d9c03-33df-4dab-a379-13698bda5fb7/worker.js)
[LinkHints] 2024-03-21 09:52:53.592 https://lydell.github.io/LinkHints/tutorial.html#step-7 
  ElementManager#getVisibleElements (update) results (including rejected) 
Array(32) [ {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, … ]
[worker.js:392:12](moz-extension://2a6d9c03-33df-4dab-a379-13698bda5fb7/worker.js)
[LinkHints] 2024-03-21 09:52:53.593 https://lydell.github.io/LinkHints/tutorial.html#step-7 
  WorkerProgram#sendMessage ReportUpdatedElements 
Object { type: "ReportUpdatedElements", elements: (32) […], rects: [] }
[worker.js:392:12](moz-extension://2a6d9c03-33df-4dab-a379-13698bda5fb7/worker.js)
[LinkHints] 2024-03-21 09:52:53.597 https://lydell.github.io/LinkHints/tutorial.html#step-7 
  RendererProgram#onMessage UpdateHints 
Object { type: "UpdateHints", updates: (32) […], enteredText: "" }
[renderer.js:271:12](moz-extension://2a6d9c03-33df-4dab-a379-13698bda5fb7/renderer.js)
[LinkHints] 2024-03-21 09:52:53.598 https://lydell.github.io/LinkHints/tutorial.html#step-7 
  RendererProgram#onMessage RenderTextRects 
Object { type: "RenderTextRects", rects: [], frameId: 0 }
[renderer.js:271:12](moz-extension://2a6d9c03-33df-4dab-a379-13698bda5fb7/renderer.js)
[LinkHints] 2024-03-21 09:52:53.727 https://lydell.github.io/LinkHints/tutorial.html#step-7 
  WorkerProgram#onKeydown suppressing event 
Object { key: "Alt", code: "AltLeft", event: keydown, match: undefined, keyboardMode: "Hints", suppressNextKeyup: {…} }
[worker.js:392:12](moz-extension://2a6d9c03-33df-4dab-a379-13698bda5fb7/worker.js)
[LinkHints] 2024-03-21 09:52:53.727 https://lydell.github.io/LinkHints/tutorial.html#step-7 
  WorkerProgram#sendMessage NonKeyboardShortcutKeypress 
Object { type: "NonKeyboardShortcutKeypress", keypress: {…}, timestamp: 1711029173727 }
[worker.js:392:12](moz-extension://2a6d9c03-33df-4dab-a379-13698bda5fb7/worker.js)
[LinkHints] 2024-03-21 09:52:54.091 https://lydell.github.io/LinkHints/tutorial.html#step-7 
  WorkerProgram#onMessage StateSync 
Object { type: "StateSync", clearElements: false, keyboardShortcuts: (9) […], keyboardMode: "Hints", logLevel: "debug", keyTranslations: {}, oneTimeWindowMessageToken: "160188501531370198731949355527", mac: false, isPinned: false }
[worker.js:392:12](moz-extension://2a6d9c03-33df-4dab-a379-13698bda5fb7/worker.js)
[LinkHints] 2024-03-21 09:52:54.091 https://lydell.github.io/LinkHints/tutorial.html#step-7 
  WorkerProgram#onMessage UpdateElements 
Object { type: "UpdateElements" }
[worker.js:392:12](moz-extension://2a6d9c03-33df-4dab-a379-13698bda5fb7/worker.js)
[LinkHints] 2024-03-21 09:52:54.093 https://lydell.github.io/LinkHints/tutorial.html#step-7 
  ElementManager#getVisibleElements (update) results (including rejected) 
Array(32) [ {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, … ]
[worker.js:392:12](moz-extension://2a6d9c03-33df-4dab-a379-13698bda5fb7/worker.js)
[LinkHints] 2024-03-21 09:52:54.094 https://lydell.github.io/LinkHints/tutorial.html#step-7 
  WorkerProgram#sendMessage ReportUpdatedElements 
Object { type: "ReportUpdatedElements", elements: (32) […], rects: [] }
[worker.js:392:12](moz-extension://2a6d9c03-33df-4dab-a379-13698bda5fb7/worker.js)
[LinkHints] 2024-03-21 09:52:54.096 https://lydell.github.io/LinkHints/tutorial.html#step-7 
  WorkerProgram#onKeydown suppressing event 
Object { key: "j", code: "KeyJ", event: keydown Alt, match: undefined, keyboardMode: "Hints", suppressNextKeyup: {…} }
[worker.js:392:12](moz-extension://2a6d9c03-33df-4dab-a379-13698bda5fb7/worker.js)
[LinkHints] 2024-03-21 09:52:54.096 https://lydell.github.io/LinkHints/tutorial.html#step-7 
  WorkerProgram#sendMessage NonKeyboardShortcutKeypress 
Object { type: "NonKeyboardShortcutKeypress", keypress: {…}, timestamp: 1711029174096 }
[worker.js:392:12](moz-extension://2a6d9c03-33df-4dab-a379-13698bda5fb7/worker.js)
[LinkHints] 2024-03-21 09:52:54.097 https://lydell.github.io/LinkHints/tutorial.html#step-7 
  RendererProgram#onMessage UpdateHints 
Object { type: "UpdateHints", updates: (32) […], enteredText: "" }
[renderer.js:271:12](moz-extension://2a6d9c03-33df-4dab-a379-13698bda5fb7/renderer.js)
[LinkHints] 2024-03-21 09:52:54.099 https://lydell.github.io/LinkHints/tutorial.html#step-7 
  RendererProgram#onMessage RenderTextRects 
Object { type: "RenderTextRects", rects: [], frameId: 0 }
[renderer.js:271:12](moz-extension://2a6d9c03-33df-4dab-a379-13698bda5fb7/renderer.js)
[LinkHints] 2024-03-21 09:52:54.109 https://lydell.github.io/LinkHints/tutorial.html#step-7 
  WorkerProgram#onMessage GetTextRects 
Object { type: "GetTextRects", indexes: (1) […], words: [] }
[worker.js:392:12](moz-extension://2a6d9c03-33df-4dab-a379-13698bda5fb7/worker.js)
[LinkHints] 2024-03-21 09:52:54.110 https://lydell.github.io/LinkHints/tutorial.html#step-7 
  WorkerProgram#sendMessage ReportTextRects 
Object { type: "ReportTextRects", rects: [] }
[worker.js:392:12](moz-extension://2a6d9c03-33df-4dab-a379-13698bda5fb7/worker.js)
[LinkHints] 2024-03-21 09:52:54.110 https://lydell.github.io/LinkHints/tutorial.html#step-7 
  WorkerProgram#onMessage CopyElement 
Object { type: "CopyElement", index: 29 }
[worker.js:392:12](moz-extension://2a6d9c03-33df-4dab-a379-13698bda5fb7/worker.js)
[LinkHints] 2024-03-21 09:52:54.110 https://lydell.github.io/LinkHints/tutorial.html#step-7 
  WorkerProgram: CopyElement 
Object { element: a.Button
, type: "clickable", measurements: {…}, hasClickListener: false }
[worker.js:392:12](moz-extension://2a6d9c03-33df-4dab-a379-13698bda5fb7/worker.js)
[LinkHints] 2024-03-21 09:52:54.114 https://lydell.github.io/LinkHints/tutorial.html#step-7 
  RendererProgram#onMessage UpdateHints 
Object { type: "UpdateHints", updates: (32) […], enteredText: "" }
[renderer.js:271:12](moz-extension://2a6d9c03-33df-4dab-a379-13698bda5fb7/renderer.js)
[LinkHints] 2024-03-21 09:52:54.117 https://lydell.github.io/LinkHints/tutorial.html#step-7 
  WorkerProgram#onMessage StateSync 
Object { type: "StateSync", clearElements: true, keyboardShortcuts: (8) […], keyboardMode: "Normal", logLevel: "debug", keyTranslations: {}, oneTimeWindowMessageToken: "50721681624222539024143739508", mac: false, isPinned: false }
[worker.js:392:12](moz-extension://2a6d9c03-33df-4dab-a379-13698bda5fb7/worker.js)
[LinkHints] 2024-03-21 09:52:54.118 https://lydell.github.io/LinkHints/tutorial.html#step-7 
  RendererProgram#onMessage RenderTextRects 
Object { type: "RenderTextRects", rects: [], frameId: 0 }
[renderer.js:271:12](moz-extension://2a6d9c03-33df-4dab-a379-13698bda5fb7/renderer.js)
[LinkHints] 2024-03-21 09:52:54.173 https://lydell.github.io/LinkHints/tutorial.html#step-7 
  WorkerProgram#onKeyup suppressing event 
Object { event: keyup Alt, keyboardMode: "Normal", suppressNextKeyup: {…} }
[worker.js:392:12](moz-extension://2a6d9c03-33df-4dab-a379-13698bda5fb7/worker.js)
[LinkHints] 2024-03-21 09:52:54.318 https://lydell.github.io/LinkHints/tutorial.html#step-7 
  RendererProgram#onMessage Unrender 
Object { type: "Unrender" }
[renderer.js:271:12](moz-extension://2a6d9c03-33df-4dab-a379-13698bda5fb7/renderer.js)
[LinkHints] 2024-03-21 09:52:54.320 https://lydell.github.io/LinkHints/tutorial.html#step-7 
  ElementManager#flushQueue 
Object { length: 1, index: 0 }
 
Object { type: "Records", records: (1) […], recordIndex: 0, addedNodeIndex: 0, removedNodeIndex: 0, childIndex: 0, children: undefined, removalsOnly: false }
[worker.js:392:12](moz-extension://2a6d9c03-33df-4dab-a379-13698bda5fb7/worker.js)
[LinkHints] 2024-03-21 09:52:54.321 https://lydell.github.io/LinkHints/tutorial.html#step-7 
  ElementManager#flushQueue Empty queue.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions