On Wed, 24 Nov 2021 23:05:05 GMT, Kevin Rushforth <k...@openjdk.org> wrote:

> As indicated in the bug report, WebView needs to call to 
> `CookieManager::getDefault` within a `doPrivileged` block so that it will 
> work when a security manager is enabled. There are two calls in 
> `com.sun.webkit.network.CookieJar` that are not wrapped in a `doPrivileged`.
> 
> I added a manual test (since it requires loading a page over http/https which 
> we can't do in our automated tests) based on the test program that was 
> attached to JBS.

This pull request has now been integrated.

Changeset: 5bd72a7c
Author:    Kevin Rushforth <k...@openjdk.org>
URL:       
https://git.openjdk.java.net/jfx/commit/5bd72a7c991d5182f4fd2cff67174cf7fa3fde85
Stats:     101 lines in 2 files changed: 99 ins; 0 del; 2 mod

8277457: AccessControlException: access denied ("java.net.NetPermission" 
"getCookieHandler")

Reviewed-by: jpereda, aghaisas

-------------

PR: https://git.openjdk.java.net/jfx/pull/681

Reply via email to