[WRTjs] Showing detailed error cause in certificate error popup 00/217500/6
authorgeuneonpark <geuneon.park@samsung.com>
Tue, 12 Nov 2019 06:28:54 +0000 (15:28 +0900)
committergeuneonpark <geuneon.park@samsung.com>
Fri, 15 Nov 2019 08:37:38 +0000 (17:37 +0900)
When a certificate problem occurs in a WebApp,
the popup shows a detailed error cause.

This patch is requested by Security team and related to:
https://review.tizen.org/gerrit/217498/

Change-Id: I18565d3a85771f43d79d6526bcef1a39ea472a47
Signed-off-by: geuneonpark <geuneon.park@samsung.com>
wrt_app/src/web_application.js

index 02db6ed..5feb064 100755 (executable)
@@ -112,7 +112,7 @@ class WebApplication {
                 const id = ++self.pendingID;
                 console.log(`Raising a certificate error response with id: ${id}`);
                 self.pendingCallbacks.set(id, callback);
-                wrt.handleCertificateError(id, webContents, certificate.data, url);
+                wrt.handleCertificateError(id, webContents, certificate.data, url, error);
             } else {
                 console.log('Certificate could not be opened');
                 callback(false);