gecko-dev/widget/android
Gabriele Svelto aa43fa218e Bug 1831092 - Use the new pull-based API for all crash annotations and remove the global annotations table r=jgilbert,necko-reviewers,media-playback-reviewers,profiler-reviewers,win-reviewers,padenot,handyman,afranchuk,valentin,alwu,sotaro
This changes comes with several different refactorings all rolled into one,
unfotunately I couldn't find a way to pull them apart:
- First of all annotations now can either recorded (that is, we copy the value
  and have the crash reporting code own the copy) or registered. Several
  annotations are changed to use this functionality so that we don't need to
  update them as their value change.
- The code in the exception handler is modified to read the annotations from
  the mozannotation_client crate. This has the unfortunate side-effect that
  we need three different bits of code to serialize them: one for annotations
  read from a child process, one for reading annotations from the main process
  outside of the exception handler and one for reading annotations from the
  main process within the exception handler. As we move to fully
  out-of-process crash reporting the last two methods will go away.
- The mozannotation_client crate now doesn't record annotation types anymore.
  I realized as I was working on this that storing types at runtime has two
  issues: the first one is that buggy code might change the type of an
  annotation (that is record it under two different types at two different
  moments), the second issue is that types might become corrupt during a
  crash, so better enforce them at annotation-writing time. The end result is
  that the mozannotation_* crates now only store byte buffers, track the
  format the data is stored in (null-terminated string, fixed size buffer,
  etc...) but not the type of data each annotation is supposed to contain.
- Which brings us to the next change: concrete types for annotations are now
  enforced when they're written out. If an annotation doesn't match the
  expected type it's skipped. Storing an annotation with the wrong type will
  also trigger an assertion in debug builds.

Differential Revision: https://phabricator.services.mozilla.com/D195248
2024-03-04 10:24:43 +00:00
..
bindings Bug 1586471 - Part 2. Implement nsDragService on GeckoView. r=geckoview-reviewers,amejiamarmol 2024-01-28 07:49:53 +00:00
jni Bug 1831092 - Use the new pull-based API for all crash annotations and remove the global annotations table r=jgilbert,necko-reviewers,media-playback-reviewers,profiler-reviewers,win-reviewers,padenot,handyman,afranchuk,valentin,alwu,sotaro 2024-03-04 10:24:43 +00:00
AndroidAlerts.cpp
AndroidAlerts.h
AndroidBridge.cpp
AndroidBridge.h
AndroidBridgeUtilities.h
AndroidCompositorWidget.cpp
AndroidCompositorWidget.h
AndroidContentController.cpp
AndroidContentController.h
AndroidUiThread.cpp Bug 1858843 - Remove pre-Lollipop code from C/C++. r=geckoview-reviewers,media-playback-reviewers,padenot,owlish,jnicol 2023-11-09 17:39:59 +00:00
AndroidUiThread.h
AndroidView.h
AndroidVsync.cpp
AndroidVsync.h
AndroidWidgetUtils.cpp Bug 1586471 - Part 2. Implement nsDragService on GeckoView. r=geckoview-reviewers,amejiamarmol 2024-01-28 07:49:53 +00:00
AndroidWidgetUtils.h Bug 1586471 - Part 2. Implement nsDragService on GeckoView. r=geckoview-reviewers,amejiamarmol 2024-01-28 07:49:53 +00:00
Base64UtilsSupport.h
components.conf Bug 1586471 - Part 2. Implement nsDragService on GeckoView. r=geckoview-reviewers,amejiamarmol 2024-01-28 07:49:53 +00:00
CompositorWidgetChild.cpp
CompositorWidgetChild.h
CompositorWidgetParent.cpp
CompositorWidgetParent.h
EventDispatcher.cpp Bug 1878465 - Change Android event error string from char8_t to char to fix C++20 build error. r=geckoview-reviewers,m_kato 2024-02-22 17:40:21 +00:00
EventDispatcher.h
GeckoBatteryManager.h
GeckoEditableSupport.cpp
GeckoEditableSupport.h
GeckoNetworkManager.h
GeckoProcessManager.cpp
GeckoProcessManager.h
GeckoSystemStateListener.h
GeckoTelemetryDelegate.h
GeckoViewSupport.h
GeckoVRManager.h
GfxInfo.cpp Bug 1831092 - Use the new pull-based API for all crash annotations and remove the global annotations table r=jgilbert,necko-reviewers,media-playback-reviewers,profiler-reviewers,win-reviewers,padenot,handyman,afranchuk,valentin,alwu,sotaro 2024-03-04 10:24:43 +00:00
GfxInfo.h
ImageDecoderSupport.cpp
ImageDecoderSupport.h
InProcessAndroidCompositorWidget.cpp
InProcessAndroidCompositorWidget.h
MediaKeysEventSourceFactory.cpp
moz.build Bug 1586471 - Part 2. Implement nsDragService on GeckoView. r=geckoview-reviewers,amejiamarmol 2024-01-28 07:49:53 +00:00
nsAppShell.cpp Bug 1586471 - Part 2. Implement nsDragService on GeckoView. r=geckoview-reviewers,amejiamarmol 2024-01-28 07:49:53 +00:00
nsAppShell.h
nsClipboard.cpp Bug 1586471 - Part 2. Implement nsDragService on GeckoView. r=geckoview-reviewers,amejiamarmol 2024-01-28 07:49:53 +00:00
nsClipboard.h Bug 1586471 - Part 2. Implement nsDragService on GeckoView. r=geckoview-reviewers,amejiamarmol 2024-01-28 07:49:53 +00:00
nsDeviceContextAndroid.cpp
nsDeviceContextAndroid.h
nsDragService.cpp Bug 1878599 - Allow to insert text on text control from dropping external application on Geckoview. r=masayuki,geckoview-reviewers,owlish 2024-02-14 00:58:48 +00:00
nsDragService.h Bug 1586471 - Part 3. Allow to drop data from external application on GeckoView. r=dom-core,geckoview-reviewers,amejiamarmol,edgar 2024-01-28 07:49:53 +00:00
nsIAndroidBridge.idl
nsLookAndFeel.cpp Bug 1881488 - Use a static pref for tooltip delay. r=masayuki,dom-core 2024-02-22 12:59:41 +00:00
nsLookAndFeel.h
nsPrintSettingsServiceAndroid.cpp
nsPrintSettingsServiceAndroid.h
nsUserIdleServiceAndroid.cpp
nsUserIdleServiceAndroid.h
nsWidgetFactory.cpp
nsWidgetFactory.h
nsWindow.cpp Bug 1878599 - Allow to insert text on text control from dropping external application on Geckoview. r=masayuki,geckoview-reviewers,owlish 2024-02-14 00:58:48 +00:00
nsWindow.h Bug 1586471 - Part 2. Implement nsDragService on GeckoView. r=geckoview-reviewers,amejiamarmol 2024-01-28 07:49:53 +00:00
PCompositorWidget.ipdl
PlatformWidgetTypes.ipdlh
ScreenHelperAndroid.cpp
ScreenHelperAndroid.h
Telemetry.h Bug 1877576 - Migrate geckoview GVST probes r=geckoview-reviewers,perry.mcmanis,owlish 2024-02-09 21:11:05 +00:00
WebExecutorSupport.cpp Bug 1586471 - Part 2. Implement nsDragService on GeckoView. r=geckoview-reviewers,amejiamarmol 2024-01-28 07:49:53 +00:00
WebExecutorSupport.h
WindowEvent.h