Open Bug 1571985 Opened 6 years ago Updated 3 years ago

Clean up Screen Orientation implementation

Categories

(Core :: DOM: Core & HTML, task, P3)

task

Tracking

()

People

(Reporter: marcosc, Unassigned)

References

Details

Please see:
https://bugzilla.mozilla.org/show_bug.cgi?id=1564621#c4

We are unsure as to the actual cause of the crash, but we suspect that when fullscreen exists,
the even listener is not being called. That was leaving mFullscreenListener alive when the DTOR gets called
hitting the MOZ_ASSERT(!mFullscreenListener).

We now always all call UnlockDeviceOrientation() in the DTOR to ensure that:

  1. hal::UnlockScreenOrientation() gets called.
  2. mFullscreenListener gets null'ed
  3. we RemoveSystemEventListener() for "fullscreenchange".

However, we shouldn't need to do the above... "fullscreenchange" should have fired and called Unlock for us.

Priority: -- → P3
See Also: → 1564621
Type: defect → task
Severity: normal → S3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.