@@ -424,8 +424,8 @@ DebuggerClient.prototype = {
424424 * This function exists only to preserve DebuggerClient's interface;
425425 * new code should say 'client.mainRoot.listTabs()'.
426426 */
427- listTabs : function ( ) {
428- return this . mainRoot . listTabs ( ) ;
427+ listTabs : function ( aOnResponse ) {
428+ return this . mainRoot . listTabs ( aOnResponse ) ;
429429 } ,
430430
431431 /*
@@ -1623,6 +1623,20 @@ AddonClient.prototype = {
16231623 ) ,
16241624} ;
16251625
1626+
1627+ async function getDeviceFront ( ) {
1628+ return {
1629+ getDescription : function ( ) {
1630+ return {
1631+ // Return anything that will not match Fennec v60
1632+ apptype : "apptype" ,
1633+ version : "version"
1634+ } ;
1635+ }
1636+ } ;
1637+ }
1638+
1639+
16261640/**
16271641 * A RootClient object represents a root actor on the server. Each
16281642 * DebuggerClient keeps a RootClient instance representing the root actor
@@ -1654,6 +1668,10 @@ exports.RootClient = RootClient;
16541668RootClient . prototype = {
16551669 constructor : RootClient ,
16561670
1671+ getFront : function ( name ) {
1672+ return getDeviceFront ( ) ;
1673+ } ,
1674+
16571675 /**
16581676 * List the open tabs.
16591677 *
@@ -2779,8 +2797,8 @@ ObjectClient.prototype = {
27792797 } ,
27802798 {
27812799 before : function ( packet ) {
2782- if ( ! [ "Map" , "WeakMap" , "Set" , "WeakSet" , "Storage" ] . includes ( this . _grip . class ) ) {
2783- throw new Error ( "enumEntries is only valid for Map/Set/Storage -like grips." ) ;
2800+ if ( ! [ "Map" , "WeakMap" , "Set" , "WeakSet" ] . includes ( this . _grip . class ) ) {
2801+ throw new Error ( "enumEntries is only valid for Map/Set-like grips." ) ;
27842802 }
27852803 return packet ;
27862804 } ,
0 commit comments