From: liwei Date: Tue, 24 Dec 2019 10:09:14 +0000 (+0800) Subject: [VD] Cancel Auth if no proxy usrname/passwd X-Git-Tag: submit/tizen_5.5/20200109.070620~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F04%2F220904%2F1;p=platform%2Fframework%2Fweb%2Fwrtjs.git [VD] Cancel Auth if no proxy usrname/passwd Follow 5.0 spec, if proxy need login and no usrname/passwd, WRT will cancel auth not show popup for user to input usrname and passwd. Change-Id: Ie1851b745e75fb065d3d96bb22cc4c824f08f0b5 Signed-off-by: liwei --- diff --git a/wrt_app/src/web_application.js b/wrt_app/src/web_application.js old mode 100755 new mode 100644 index 7680eae3..38efdabd --- a/wrt_app/src/web_application.js +++ b/wrt_app/src/web_application.js @@ -127,9 +127,12 @@ class WebApplication { usrname = proxyInfo.username; passwd = proxyInfo.password; } - } - if (usrname && passwd) { - callback(usrname, passwd); + if (usrname && passwd) { + callback(usrname, passwd); + } else { + console.log('Login, but usrname and passwd is empty!!!'); + callback(); + } } else { const id = ++self.pendingID; console.log(`Raising a login info request with id: ${id}`);