New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 744896 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Sep 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug

Blocking:
issue 726770



Sign in to add a comment

investigate why ICU initialization is not correct for webview unittests

Project Member Reported by sgu...@chromium.org, Jul 17 2017

Issue description

When I tried to add a unittest for WebView that includes using punycode (i.e. testing for "☃.net/" it did crash in icu with message:

07-17 20:24:42.846 30982 30982 E chromium: [ERROR:icu_util.cc(174)] Invalid file descriptor to ICU data received.
07-17 20:24:42.872 30982 30982 F chromium: [FATAL:url_canon_icu.cc(104)] Check failed: false. failed to open UTS46 data with error: 4

it seems that we are still calling ICU initialization though:

base::test::InitializeICUForTesting();

so the bug is probably a lot deeper.


 

Comment 1 by sgu...@chromium.org, Jul 17 2017

Blocking: 726770
Project Member

Comment 2 by bugdroid1@chromium.org, Sep 5 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/cdfaad53f18258f733a738c97e2dd7c89ec45e58

commit cdfaad53f18258f733a738c97e2dd7c89ec45e58
Author: Selim Gurun <sgurun@google.com>
Date: Tue Sep 05 22:56:01 2017

Fix ICU initialization and add a test for punycode

When we added whitelist manager, we could not add a unit test for
punycode because ICU was failing. This fixes the ICU fail (the icu data
file was not loaded) and adds a test.

BUG= 744896 

Change-Id: Ic1d7b830421f2c47df3427237a243558cde1fb3c
Reviewed-on: https://chromium-review.googlesource.com/648336
Reviewed-by: Bo <boliu@chromium.org>
Commit-Queue: Selim Gurun <sgurun@chromium.org>
Cr-Commit-Position: refs/heads/master@{#499779}
[modify] https://crrev.com/cdfaad53f18258f733a738c97e2dd7c89ec45e58/android_webview/browser/aw_safe_browsing_whitelist_manager_unittest.cc
[modify] https://crrev.com/cdfaad53f18258f733a738c97e2dd7c89ec45e58/android_webview/test/BUILD.gn

Status: Fixed (was: Assigned)

Sign in to add a comment