Bug 153172 - Content blocker console messages randomly show line numbers for content not loaded from a script or other location
Summary: Content blocker console messages randomly show line numbers for content not l...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Myles C. Maxfield
URL:
Keywords: InRadar, LayoutTestFailure
Depends on:
Blocks:
 
Reported: 2016-01-15 18:24 PST by Zach Li
Modified: 2016-12-13 15:32 PST (History)
10 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zach Li 2016-01-15 18:24:34 PST
After submitting the patch for EWS analysis for https://bugs.webkit.org/show_bug.cgi?id=153116, build bot allegedly said the patch caused some tests to fail, for example, the http/tests/contentextensions/font-display-none-repeated-layout.html test. However, the change in the patch should not affect content extensions at all and I ran the layout tests locally and they passed. So the layout tests can produce false positive results
Comment 1 Alexey Proskuryakov 2016-01-18 14:30:18 PST
The way EWS works is that when there are failures, it runs the tests again, and if failures are the same, it rolls out the patch, and runs the tests once again to check whether the failure(s) are a regression.

This is what happened here - a flaky test failed twice in a row, and didn't fail on the third try. I don't think that there is anything actionable here for EWS - we probably shouldn't make it slower by trying even more times.

http/tests/contentextensions/font-display-none-repeated-layout.html flakily fails with this diff:

-CONSOLE MESSAGE: Content blocker prevented frame displaying http://127.0.0.1:8000/contentextensions/font-display-none-repeated-layout.html from loading a resource from http://127.0.0.1:8000/resources/Ahem.woff
+CONSOLE MESSAGE: line 13: Content blocker prevented frame displaying http://127.0.0.1:8000/contentextensions/font-display-none-repeated-layout.html from loading a resource from http://127.0.0.1:8000/resources/Ahem.woff

It's a bug in console support code that content blocker messages flakily depend on other state.
Comment 2 Radar WebKit Bug Importer 2016-01-18 14:30:29 PST
<rdar://problem/24231374>
Comment 3 Myles C. Maxfield 2016-01-19 01:32:22 PST
I tried to fix this in http://trac.webkit.org/changeset/195161 but it looks like it didn't work :(
Comment 4 Myles C. Maxfield 2016-01-21 14:24:16 PST
Is this still occurring?
Comment 5 Alexey Proskuryakov 2016-01-21 17:34:54 PST
Unsure, it's hard to tell which tests are flaky on EWS. Could be fixed indeed.

This test is still flaky on GuardMalloc bots, but that's a separate issue.
Comment 6 Zach Li 2016-01-21 17:42:17 PST
FWIW, with the second patch I submitted for https://bugs.webkit.org/show_bug.cgi?id=153116, the tests did not fail.

We should reduce/eliminate the flakiness of these tests. Flaky tests are not necessarily better than no tests at all since it takes engineering time to debug whether these test failures are false positive.