RFR: 8277457: AccessControlException: access denied ("java.net.NetPermission" "getCookieHandler") [v2]
Ajit Ghaisas
aghaisas at openjdk.java.net
Wed Dec 1 15:22:30 UTC 2021
On Thu, 25 Nov 2021 00:29:36 GMT, Kevin Rushforth <kcr at 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.
>
> Kevin Rushforth has updated the pull request incrementally with one additional commit since the last revision:
>
> Address review feedback: use method reference instead of lambda
Marked as reviewed by aghaisas (Reviewer).
-------------
PR: https://git.openjdk.java.net/jfx/pull/681
More information about the openjfx-dev
mailing list