Summary: | Windows layout tests fail when changing ContentSniffingPolicy/ContentEncodingSniffingPolicy enum values | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | David Kilzer (:ddkilzer) <ddkilzer> | ||||
Component: | WebCore Misc. | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | NEW --- | ||||||
Severity: | Normal | CC: | achristensen, cdumez, darin, eric.carlson, esprehn+autocc, ews-watchlist, glenn, gyuyoung.kim, japhet, jer.noble, macpherson, menard, philipj, sergio | ||||
Priority: | P2 | ||||||
Version: | Other | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
See Also: | https://bugs.webkit.org/show_bug.cgi?id=213093 | ||||||
Attachments: |
|
Description
David Kilzer (:ddkilzer)
2020-06-12 10:36:19 PDT
My usual trick of looking for a C-style cast or a static_cast<> back to one of the enum values didn't turn up anything: $ grep -r 'SniffingPolicy)' Source/WebCore Source/WebKitLegacy $ grep -r 'SniffingPolicy>' Source/WebCore Source/WebKitLegacy I suggest looking for an if statement: if (policy) { xxx } (In reply to Darin Adler from comment #2) > I suggest looking for an if statement: > > if (policy) { > xxx > } Couldn't find anything. Another guess is that an incremental build didn't rebuild some source file (with the new values) because it didn't include ResourceLoaderOptions.h explicitly. Created attachment 401756 [details]
Patch v1
Try including ResourceLoaderOptions.h everywhere that *SniffingPolicy enums are used.
Comment on attachment 401756 [details]
Patch v1
If this works and passes tests, that will tell us it was a recompilation issues, but I don’t think we should land it this way. We will have proved that those files need to be touched to work around a bug in the dependency tracking of the Windows build tools, and it’s good to do that so we don’t need a full recompile on Windows, but let’s not add includes. Just touch each of the files some other way.
(In reply to Darin Adler from comment #5) > Comment on attachment 401756 [details] > Patch v1 > > If this works and passes tests, that will tell us it was a recompilation > issues, but I don’t think we should land it this way. We will have proved > that those files need to be touched to work around a bug in the dependency > tracking of the Windows build tools, and it’s good to do that so we don’t > need a full recompile on Windows, but let’s not add includes. Just touch > each of the files some other way. Well, that didn't work. The failures have to do with HTTP/0.9, so that should narrow down the area of code affected. I don't have time to look into this further right now. (In reply to David Kilzer (:ddkilzer) from comment #6) > The failures have to do with HTTP/0.9, so that > should narrow down the area of code affected. > > I don't have time to look into this further right now. We’ll figure it out eventually! No rush, I think. |