Revert "[VD][Workaround] Show popup when need default client cert" 86/220386/2
authorDongHyun Song <dh81.song@samsung.com>
Wed, 18 Dec 2019 02:48:47 +0000 (02:48 +0000)
committerDongHyun Song <dh81.song@samsung.com>
Wed, 18 Dec 2019 02:43:57 +0000 (11:43 +0900)
This reverts commit e2ffe802b48f3465572d60ba3b6337409d758ea8.

Change-Id: I55fbeeaf1ceab5fea8b9a82bd0529aa5d7ed14f9
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
wrt_app/src/web_application.js

index c3af185..7680eae 100755 (executable)
@@ -137,22 +137,6 @@ class WebApplication {
                 wrt.handleAuthRequest(id, webContents);
             }
         });
-        if (wrt.tv) {
-            // TODO. This logic in only for QA verification
-            //   Current TV default client cert will be expired.
-            //   So that detecting apps which use TV client certificate,
-            //   adds popup alarms for QA
-            app.on('select-client-certificate', function(event, webContents, host, list, callback) {
-                console.log('select-client-certificate');
-                event.preventDefault();
-                if (list.length > 0 && list[0].subjectName == 'Samsung TV,BDP certificate') {
-                    setTimeout(() => {
-                        wrt.tv.showDialog(webContents, 'Samsung TV,BDP certificate');
-                    }, 7000);
-                }
-                callback(list[0]);
-            });
-        }
         if (this.accessiblePath) {
             console.log(`accessiblePath: ${this.accessiblePath}`);
             protocol.interceptFileProtocol('file', (request, callback) => {