Skip to content

Commit 03b433c

Browse files
author
Jonathan Dixon
committed
Fix dumprendertree crash
This is a quick workaround to get tests running again, will follow up with full fix tomorrow. Bug: 6379925 Change-Id: I96d6e27bfb8f8cd41ec08845ab0fb1e584dbc9da
1 parent d3101b1 commit 03b433c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

core/java/android/webkit/CookieManager.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,8 @@ protected void flushCookieStore() {
167167
* file scheme URLs
168168
*/
169169
public static boolean allowFileSchemeCookies() {
170-
throw new MustOverrideException();
170+
// TODO: indirect this via the WebViewFactoryProvider.Statics interface. http://b/6379925
171+
return CookieManagerClassic.allowFileSchemeCookies();
171172
}
172173

173174
/**
@@ -181,6 +182,7 @@ public static boolean allowFileSchemeCookies() {
181182
* {@link WebView} or CookieManager instance has been created.
182183
*/
183184
public static void setAcceptFileSchemeCookies(boolean accept) {
184-
throw new MustOverrideException();
185+
// TODO: indirect this via the WebViewFactoryProvider.Statics interface. http://b/6379925
186+
CookieManagerClassic.setAcceptFileSchemeCookies(accept);
185187
}
186188
}

0 commit comments

Comments
 (0)