Files
react-native-devtools-frontend/front_end/inline_editor
Michael Liao a9794c3cfc [Styles - Swatch Popover]: Fixing failure where SwatchPopoverHelper._view is undefined in a SwatchPopoverHelper.reposition call
Issue:
- SwatchPopoverHelper.hide is triggered via focusout/blur event listeners
- SwatchPopoverHelper.reposition is triggered via a SizeChanged event through its parent class (ColorSwatchPopoverIcon)
- hide will delete this._view and reposition does not handle the case where this._view is undefined
- We are exposed to the scenario where the focusout/blur events are queued up before the SizeChanged event
  - in this scenario, this._view is deleted and causes a failure in reposition(...)

Changes:
- Protecting against the scenario above by adding a "this._view" check at the beginning of reposition

Bug: 1081532
Change-Id: I216dca5b7f27cd302424ba2bd178f2bc206d5381
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2195541
Reviewed-by: Songtao Xia <soxia@microsoft.com>
Reviewed-by: Vidal Diazleal <vidorteg@microsoft.com>
Reviewed-by: Robert Paveza <Rob.Paveza@microsoft.com>
Commit-Queue: Michael Liao <michael.liao@microsoft.com>
Commit-Queue: Vidal Diazleal <vidorteg@microsoft.com>
2020-05-13 16:51:25 +00:00
..
2019-11-09 19:58:23 +00:00
2020-04-14 05:35:23 +00:00