@@ -830,7 +830,6 @@ export class McpContext implements Context {
830830 }
831831
832832 async installExtension ( extensionPath : string ) : Promise < string > {
833- await this . validatePath ( extensionPath ) ;
834833 const id = await this . browser . installExtension ( extensionPath ) ;
835834 return id ;
836835 }
@@ -861,37 +860,32 @@ export class McpContext implements Context {
861860 async getHeapSnapshotAggregates (
862861 filePath : string ,
863862 ) : Promise < Record < string , AggregatedInfoWithId > > {
864- await this . validatePath ( filePath ) ;
865863 return await this . #heapSnapshotManager. getAggregates ( filePath ) ;
866864 }
867865
868866 async getHeapSnapshotStats (
869867 filePath : string ,
870868 ) : Promise < DevTools . HeapSnapshotModel . HeapSnapshotModel . Statistics > {
871- await this . validatePath ( filePath ) ;
872869 return await this . #heapSnapshotManager. getStats ( filePath ) ;
873870 }
874871
875872 async getHeapSnapshotStaticData (
876873 filePath : string ,
877874 ) : Promise < DevTools . HeapSnapshotModel . HeapSnapshotModel . StaticData | null > {
878- await this . validatePath ( filePath ) ;
879875 return await this . #heapSnapshotManager. getStaticData ( filePath ) ;
880876 }
881877
882878 async getHeapSnapshotNodesById (
883879 filePath : string ,
884880 id : number ,
885881 ) : Promise < DevTools . HeapSnapshotModel . HeapSnapshotModel . ItemsRange > {
886- await this . validatePath ( filePath ) ;
887882 return await this . #heapSnapshotManager. getNodesById ( filePath , id ) ;
888883 }
889884
890885 async getHeapSnapshotRetainers (
891886 filePath : string ,
892887 nodeId : number ,
893888 ) : Promise < DevTools . HeapSnapshotModel . HeapSnapshotModel . ItemsRange > {
894- await this . validatePath ( filePath ) ;
895889 return await this . #heapSnapshotManager. getRetainers ( filePath , nodeId ) ;
896890 }
897891}
0 commit comments