New issue
Advanced search Search tips

Issue 618471 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Jun 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Bug

Blocked on:
issue 618635



Sign in to add a comment

Webview layout tests failed not finding window.chrome?

Project Member Reported by boliu@chromium.org, Jun 8 2016

Issue description

https://build.chromium.org/p/chromium.android/builders/Android%20Webview%20L%20%28dbg%29/builds/14399/steps/Instrumentation%20test%20SystemWebViewShellLayoutTest/logs/stdio

C   81.209s Main  [FAIL] org.chromium.webview_shell.test.WebViewLayoutTest#testWebViewIncludedStableInterfaces:
C   81.209s Main  junit.framework.ComparisonFailure: Missing webview interfaces found expected:<[]> but was:<[[GLOBAL OBJECT].attribute chrome
C   81.209s Main  ]>
C   81.209s Main  	at org.chromium.webview_shell.test.WebViewLayoutTest.testWebViewIncludedStableInterfaces(WebViewLayoutTest.java:201)
C   81.209s Main  	at android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:214)
C   81.209s Main  	at android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:199)
C   81.209s Main  	at android.test.ActivityInstrumentationTestCase2.runTest(ActivityInstrumentationTestCase2.java:192)
C   81.209s Main  	at org.chromium.base.test.BaseTestResult.run(BaseTestResult.java:129)
C   81.209s Main  	at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:191)
C   81.210s Main  	at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:176)
C   81.210s Main  	at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:555)
C   81.210s Main  	at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1853)

Not obvious which blink CL changed this, or if it's a flake..
 
Status: Assigned (was: Untriaged)
Blockedon: 618635
it's not a flake, it appears to be due to https://codereview.chromium.org/1994683004/ which adds a new window.chrome attribute. I've filed a bug to investigate whether it should be exposed in webview.

Comment 3 Deleted

going to add to excluded interfaces for now to unbreak the bots until there is more clarity on the blocking bug
Project Member

Comment 5 by bugdroid1@chromium.org, Jun 9 2016

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

commit 9b2cc9a2b30067cbbd3327ad9d1a2ebcb930dbaa
Author: timvolodine <timvolodine@chromium.org>
Date: Thu Jun 09 11:54:38 2016

[WebView] Unbreak layout tests on the Android WebView L/M bots.

Add the "window.chrome" attribute to excluded interfaces
for WebView.

BUG= 618471 
TBR=torne@chromium.org
NOTRY=true

Review-Url: https://codereview.chromium.org/2053633002
Cr-Commit-Position: refs/heads/master@{#398846}

[modify] https://crrev.com/9b2cc9a2b30067cbbd3327ad9d1a2ebcb930dbaa/android_webview/tools/system_webview_shell/test/data/webexposed/not-webview-exposed.txt

window.chrome is not actually web-exposed, it is only exposed in layout tests so we can simply add it to the exclusions
Status: Fixed (was: Assigned)
the bots are green now
Project Member

Comment 8 by bugdroid1@chromium.org, Jun 15 2016

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

commit 9b2cc9a2b30067cbbd3327ad9d1a2ebcb930dbaa
Author: timvolodine <timvolodine@chromium.org>
Date: Thu Jun 09 11:54:38 2016

[WebView] Unbreak layout tests on the Android WebView L/M bots.

Add the "window.chrome" attribute to excluded interfaces
for WebView.

BUG= 618471 
TBR=torne@chromium.org
NOTRY=true

Review-Url: https://codereview.chromium.org/2053633002
Cr-Commit-Position: refs/heads/master@{#398846}

[modify] https://crrev.com/9b2cc9a2b30067cbbd3327ad9d1a2ebcb930dbaa/android_webview/tools/system_webview_shell/test/data/webexposed/not-webview-exposed.txt

Sign in to add a comment