Open Bug 1659439 Opened 4 years ago Updated 2 years ago

Assertion failure in FocusState::IsCurrent MOZ_ASSERT(mLastContentProcessedEvent <= mLastAPZProcessedEvent)

Categories

(Core :: Panning and Zooming, defect, P3)

defect

Tracking

()

People

(Reporter: hsivonen, Unassigned)

References

Details

Steps to reproduce

  1. Use a build with assertions enabled.
  2. Open 2 browser windows: one with one tab and another with two tabs.
  3. Load https://hsivonen.com/test/moz/keyboard-middle.html in all three tabs.
  4. Have focus in one of the tabs in the window with two tabs.
  5. Press up and down arrow keys.
  6. Drag the current tab to the tab bar of the other window.
  7. Press up and down arrow keys.
  8. Click the tab title of the tab you dragged to the other window.
  9. Go back to step 5. (I.e. keep dragging the tab from one window to another, switching windows by click rather than keyboard, and pressing the up and down arrow keys between each step.).

Actual results

After enough repetitions (fewer than 10 for me), the assertion in FocusState::IsCurrent() fails.

Additional info

The numbers being compared can diverge by more than off-by-one: e.g. 287 vs. 206 in a case I observed.

I saw this when running on XWayland in a Wayland session on Ubuntu 18.04.

See Also: → 1631925

(In reply to Henri Sivonen (:hsivonen) from comment #0)

  1. Drag the current tab to the tab bar of the other window.

We track focus state in APZ per-window. We probably need to do some resetting / clearing when a tab is transferred from one window to another.

The user-visible symptoms here should be pretty mild: keyboard scrolling may be handled by the main thread rather than APZ as a result of the condition being asserted being false.

Severity: -- → S3
Priority: -- → P3
See Also: → 1635512
See Also: → 1683776
See Also: → 1708137
Summary: Assertion failure in FocusState::IsCurrent → Assertion failure in FocusState::IsCurrent MOZ_ASSERT(mLastContentProcessedEvent <= mLastAPZProcessedEvent)
See Also: → 1760618

There is a potential diagnosis for this in bug 1760618 comment 14.

See Also: → 1793867

The severity field for this bug is relatively low, S3. However, the bug has 6 See Also bugs.
:botond, could you consider increasing the bug severity?

For more information, please visit auto_nag documentation.

Flags: needinfo?(botond)

While the failure of this assertion has been reported multiple times, only debug builds are affected, so S3 is appropriate.

Flags: needinfo?(botond)
You need to log in before you can comment on or make changes to this bug.