Bug 201714 - REGRESSION? (r249786): inspector/canvas/context-attributes.html is failing on macOS WK1
Summary: REGRESSION? (r249786): inspector/canvas/context-attributes.html is failing on...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Devin Rousso
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-09-11 22:12 PDT by Ryan Haddad
Modified: 2019-09-12 08:09 PDT (History)
6 users (show)

See Also:


Attachments
Patch (2.88 KB, patch)
2019-09-12 03:30 PDT, Devin Rousso
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Haddad 2019-09-11 22:12:52 PDT
inspector/canvas/context-attributes.html is failing on macOS WK1 after r249786 with the following diff:

--- /Volumes/Data/slave/mojave-release-tests-wk1/build/layout-test-results/inspector/canvas/context-attributes-expected.txt
+++ /Volumes/Data/slave/mojave-release-tests-wk1/build/layout-test-results/inspector/canvas/context-attributes-actual.txt
@@ -32,7 +32,7 @@
   "antialias": true,
   "premultipliedAlpha": true,
   "preserveDrawingBuffer": false,
-  "powerPreference": "default",
+  "powerPreference": "low-power",
   "failIfMajorPerformanceCaveat": false
 }
 
@@ -46,7 +46,7 @@
   "antialias": true,
   "premultipliedAlpha": true,
   "preserveDrawingBuffer": false,
-  "powerPreference": "default",
+  "powerPreference": "low-power",
   "failIfMajorPerformanceCaveat": false
 }
 PASS: Canvas context should have attribute "alpha" with value "false".

https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&tests=inspector%2Fcanvas%2Fcontext-attributes.html
Comment 1 Radar WebKit Bug Importer 2019-09-11 22:13:05 PDT
<rdar://problem/55290473>
Comment 2 Ryan Haddad 2019-09-11 22:14:09 PDT
Devin, should the test be rebaselined for WK1, or is this unexpected?
Comment 3 Joseph Pecoraro 2019-09-11 22:27:13 PDT
(In reply to Ryan Haddad from comment #2)
> Devin, should the test be rebaselined for WK1, or is this unexpected?

WK1 (or perhaps specifically Mac WK1) will apparently need its own results since WebKitLegacy forces low-power:

    WebPreferences.mm:
    @YES, WebKitForceWebGLUsesLowPowerPreferenceKey,

WK2 does not force low-power and uses the default WebCore::Setting values.
Comment 4 Devin Rousso 2019-09-11 22:30:45 PDT
(In reply to Ryan Haddad from comment #2)
> Devin, should the test be rebaselined for WK1, or is this unexpected?
No, this is unexpected, but not wrong.  Apparently WK1 forces any WebGL/WebGL2 <canvas> to be "low-power", regardless of whatever value is asked for.

I'll change the test to just filter out the `powerPreference` so long as it's one of the known possible values.
Comment 5 Devin Rousso 2019-09-12 03:30:45 PDT
Created attachment 378638 [details]
Patch
Comment 6 Joseph Pecoraro 2019-09-12 07:25:27 PDT
Comment on attachment 378638 [details]
Patch

I liked seeing default. We could check in WK1 results. But this is fine
Comment 7 WebKit Commit Bot 2019-09-12 08:09:38 PDT
Comment on attachment 378638 [details]
Patch

Clearing flags on attachment: 378638

Committed r249809: <https://trac.webkit.org/changeset/249809>
Comment 8 WebKit Commit Bot 2019-09-12 08:09:40 PDT
All reviewed patches have been landed.  Closing bug.