VirtualBox

Changeset 90618 in vbox for trunk/src/libs/xpcom18a4/python


Ignore:
Timestamp:
Aug 11, 2021 7:35:03 AM (3 years ago)
Author:
vboxsync
Message:

libs/XPCOM: Implemented _query_interface_ for our ShutdownObserver object (based on nsIObserver) so that the interface check in the DefaultPolicy initialization will pass. bugref:10079

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/python/components.py

    r59798 r90618  
    233233        xpcom.client._shutdown()
    234234        xpcom.server._shutdown()
     235    def _query_interface_(self, iid): # VBox: Needed so that the interface check in the DefaultPolicy initialization will pass; @bugref{10079}.
     236        if iid == interfaces.nsIObserver:
     237            return 1
     238        return None
    235239
    236240svc = _xpcom.GetServiceManager().getServiceByContractID("@mozilla.org/observer-service;1", interfaces.nsIObserverService)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette