From: geuneonpark Date: Tue, 12 Nov 2019 06:28:54 +0000 (+0900) Subject: [WRTjs] Showing detailed error cause in certificate error popup X-Git-Tag: submit/tizen_5.5/20191119.023011^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=32b753ce3020bef7685146524152c30f4d72b357;p=platform%2Fframework%2Fweb%2Fwrtjs.git [WRTjs] Showing detailed error cause in certificate error popup 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 --- diff --git a/wrt_app/src/web_application.js b/wrt_app/src/web_application.js index 02db6edc..5feb0640 100755 --- a/wrt_app/src/web_application.js +++ b/wrt_app/src/web_application.js @@ -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);