crosswalk-project / crosswalk

A web runtime built on Chrome. This project is currently unmaintained.
https://crosswalk-project.org/blog/crosswalk-final-release.html
BSD 3-Clause "New" or "Revised" License
2.33k stars 652 forks source link

net::ERR_SUCURITY_RESPONSE When I debug an unpublished test URL(https) #4032

Open Ruomiz opened 6 years ago

Ruomiz commented 6 years ago
  override fun onReceivedSslError(view: XWalkView?, callback: ValueCallback<Boolean>?,error: SslError?) 
  {
                callback?.onReceiveValue(true) //ingore ssl
     //         super.onReceivedSslError(view, callback, error)
}

It will toast net::ERR_SUCURITY_RESPONSE .

Then I found a class in this project SslUtil.java:

public static boolean shouldDenyRequest(int error)
{
    assert error >= -215 && error <= -200;
    switch (error)
    {
        case -213:
        case -212:
        case -211:
        case -208:
        case -207:
        case -206:
        case -203:          
 // case -202:   
        case -201:           
 // case -200:  
    case -150:
        case -129:
            return true;
    }
    return false;
}

I just annotate case 200 ,202 ;it will work normal