5
5
6
6
import { isFirefox } from '../../../../base/browser/browser.js' ;
7
7
import { addDisposableListener , EventType , getWindowById } from '../../../../base/browser/dom.js' ;
8
+ import { parentOriginHash } from '../../../../base/browser/iframe.js' ;
8
9
import { IMouseWheelEvent } from '../../../../base/browser/mouseEvent.js' ;
10
+ import { CodeWindow } from '../../../../base/browser/window.js' ;
9
11
import { promiseWithResolvers , ThrottledDelayer } from '../../../../base/common/async.js' ;
10
12
import { streamToBuffer , VSBufferReadableStream } from '../../../../base/common/buffer.js' ;
11
13
import { CancellationTokenSource } from '../../../../base/common/cancellation.js' ;
@@ -26,18 +28,15 @@ import { IInstantiationService } from '../../../../platform/instantiation/common
26
28
import { ILogService } from '../../../../platform/log/common/log.js' ;
27
29
import { INotificationService } from '../../../../platform/notification/common/notification.js' ;
28
30
import { IRemoteAuthorityResolverService } from '../../../../platform/remote/common/remoteAuthorityResolver.js' ;
29
- import { ITelemetryService } from '../../../../platform/telemetry/common/telemetry.js' ;
30
31
import { ITunnelService } from '../../../../platform/tunnel/common/tunnel.js' ;
31
32
import { WebviewPortMappingManager } from '../../../../platform/webview/common/webviewPortMapping.js' ;
32
- import { parentOriginHash } from '../../../../base/browser/iframe.js' ;
33
+ import { IWorkbenchEnvironmentService } from '../../../services/environment/common/environmentService.js' ;
34
+ import { decodeAuthority , webviewGenericCspSource , webviewRootResourceAuthority } from '../common/webview.js' ;
33
35
import { loadLocalResource , WebviewResourceResponse } from './resourceLoading.js' ;
34
36
import { WebviewThemeDataProvider } from './themeing.js' ;
35
37
import { areWebviewContentOptionsEqual , IWebview , WebviewContentOptions , WebviewExtensionDescription , WebviewInitInfo , WebviewMessageReceivedEvent , WebviewOptions } from './webview.js' ;
36
38
import { WebviewFindDelegate , WebviewFindWidget } from './webviewFindWidget.js' ;
37
39
import { FromWebviewMessage , KeyEvent , ToWebviewMessage , WebViewDragEvent } from './webviewMessages.js' ;
38
- import { decodeAuthority , webviewGenericCspSource , webviewRootResourceAuthority } from '../common/webview.js' ;
39
- import { IWorkbenchEnvironmentService } from '../../../services/environment/common/environmentService.js' ;
40
- import { CodeWindow } from '../../../../base/browser/window.js' ;
41
40
42
41
interface WebviewContent {
43
42
readonly html : string ;
@@ -158,7 +157,6 @@ export class WebviewElement extends Disposable implements IWebview, WebviewFindD
158
157
@IFileService private readonly _fileService : IFileService ,
159
158
@ILogService private readonly _logService : ILogService ,
160
159
@IRemoteAuthorityResolverService private readonly _remoteAuthorityResolverService : IRemoteAuthorityResolverService ,
161
- @ITelemetryService private readonly _telemetryService : ITelemetryService ,
162
160
@ITunnelService private readonly _tunnelService : ITunnelService ,
163
161
@IInstantiationService instantiationService : IInstantiationService ,
164
162
@IAccessibilityService private readonly _accessibilityService : IAccessibilityService ,
@@ -588,18 +586,6 @@ export class WebviewElement extends Disposable implements IWebview, WebviewFindD
588
586
if ( this . _environmentService . isExtensionDevelopment ) {
589
587
this . _onMissingCsp . fire ( this . extension . id ) ;
590
588
}
591
-
592
- const payload = {
593
- extension : this . extension . id . value
594
- } as const ;
595
-
596
- type Classification = {
597
- extension : { classification : 'SystemMetaData' ; purpose : 'FeatureInsight' ; comment : 'The id of the extension that created the webview.' } ;
598
- owner : 'mjbvz' ;
599
- comment : 'Helps find which extensions are contributing webviews with invalid CSPs' ;
600
- } ;
601
-
602
- this . _telemetryService . publicLog2 < typeof payload , Classification > ( 'webviewMissingCsp' , payload ) ;
603
589
}
604
590
}
605
591
0 commit comments