-
- Downloads
Bug 1773770: Part 9 - Migrate widget component content proxies to static registration. r=mccr8
Several widget contracts use different implementations in the parent and content processes. Since the static registration system builds its hashtable at compile time rather than runtime, it doesn't support different contract IDs per process. It could make the decision at lookup time, but given how rarely it's needed, I don't think it would be worth the complexity. This patch updates the widget components that need different implementations in the parent and content process to register separate contracts for each implementation, and a third stub contract which forwards to the appropriate implementation depending on which process it's used in. The implementation entries restrict their usage to the process they are meant to be used in. Differential Revision: https://phabricator.services.mozilla.com/D149436
Showing
- mobile/android/components/geckoview/ColorPickerDelegate.jsm 0 additions, 3 deletionsmobile/android/components/geckoview/ColorPickerDelegate.jsm
- mobile/android/components/geckoview/components.conf 4 additions, 4 deletionsmobile/android/components/geckoview/components.conf
- toolkit/components/backgroundtasks/tests/browser/browser_xpcom_graph_wait.js 4 additions, 0 deletions...backgroundtasks/tests/browser/browser_xpcom_graph_wait.js
- widget/android/components.conf 4 additions, 6 deletionswidget/android/components.conf
- widget/cocoa/components.conf 12 additions, 14 deletionswidget/cocoa/components.conf
- widget/components.conf 98 additions, 0 deletionswidget/components.conf
- widget/gtk/components.conf 12 additions, 14 deletionswidget/gtk/components.conf
- widget/moz.build 4 additions, 1 deletionwidget/moz.build
- widget/nsContentProcessWidgetFactory.cpp 0 additions, 65 deletionswidget/nsContentProcessWidgetFactory.cpp
- widget/nsContentProcessWidgetFactory.h 59 additions, 0 deletionswidget/nsContentProcessWidgetFactory.h
- widget/windows/components.conf 12 additions, 14 deletionswidget/windows/components.conf
- xpcom/components/nsComponentManager.cpp 2 additions, 5 deletionsxpcom/components/nsComponentManager.cpp
Loading
Please register or sign in to comment