Bug 188379 - [macOS] Create a test for scrollbar visibility when 3rd party mouse is used.
Summary: [macOS] Create a test for scrollbar visibility when 3rd party mouse is used.
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Per Arne Vollan
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-08-07 08:51 PDT by Per Arne Vollan
Modified: 2021-11-01 12:52 PDT (History)
8 users (show)

See Also:


Attachments
Patch (15.68 KB, patch)
2018-08-22 15:05 PDT, Per Arne Vollan
no flags Details | Formatted Diff | Diff
Patch (15.78 KB, patch)
2018-08-22 15:09 PDT, Per Arne Vollan
no flags Details | Formatted Diff | Diff
Patch (19.54 KB, patch)
2018-08-22 15:39 PDT, Per Arne Vollan
no flags Details | Formatted Diff | Diff
Patch (19.56 KB, patch)
2018-08-22 15:51 PDT, Per Arne Vollan
no flags Details | Formatted Diff | Diff
Patch (19.62 KB, patch)
2018-08-22 16:01 PDT, Per Arne Vollan
no flags Details | Formatted Diff | Diff
Patch (19.66 KB, patch)
2018-08-22 16:10 PDT, Per Arne Vollan
no flags Details | Formatted Diff | Diff
Patch (19.68 KB, patch)
2018-08-22 16:38 PDT, Per Arne Vollan
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews101 for mac-sierra (2.30 MB, application/zip)
2018-08-22 18:13 PDT, EWS Watchlist
no flags Details
Archive of layout-test-results from ews124 for ios-simulator-wk2 (2.35 MB, application/zip)
2018-08-22 18:16 PDT, EWS Watchlist
no flags Details
Archive of layout-test-results from ews116 for mac-sierra (3.27 MB, application/zip)
2018-08-22 18:55 PDT, EWS Watchlist
no flags Details
Archive of layout-test-results from ews206 for win-future (12.78 MB, application/zip)
2018-08-23 03:20 PDT, EWS Watchlist
no flags Details
Patch (20.68 KB, patch)
2018-08-23 10:07 PDT, Per Arne Vollan
no flags Details | Formatted Diff | Diff
Patch (10.58 KB, patch)
2018-08-24 11:41 PDT, Per Arne Vollan
no flags Details | Formatted Diff | Diff
Patch (10.58 KB, patch)
2018-08-27 09:30 PDT, Per Arne Vollan
no flags Details | Formatted Diff | Diff
Patch (10.92 KB, patch)
2018-09-04 11:13 PDT, Per Arne Vollan
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews203 for win-future (12.78 MB, application/zip)
2018-09-04 16:15 PDT, EWS Watchlist
no flags Details
Patch (9.98 KB, patch)
2018-09-05 11:02 PDT, Per Arne Vollan
no flags Details | Formatted Diff | Diff
Patch (10.03 KB, patch)
2018-09-11 15:47 PDT, Per Arne Vollan
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Per Arne Vollan 2018-08-07 08:51:42 PDT
We should create a test for the fix in https://bugs.webkit.org/show_bug.cgi?id=188372.
Comment 1 Radar WebKit Bug Importer 2018-08-07 09:29:18 PDT
<rdar://problem/43007729>
Comment 2 Per Arne Vollan 2018-08-22 15:05:53 PDT
Created attachment 347852 [details]
Patch
Comment 3 Per Arne Vollan 2018-08-22 15:09:47 PDT
Created attachment 347853 [details]
Patch
Comment 4 Per Arne Vollan 2018-08-22 15:39:32 PDT
Created attachment 347857 [details]
Patch
Comment 5 Per Arne Vollan 2018-08-22 15:51:00 PDT
Created attachment 347864 [details]
Patch
Comment 6 Per Arne Vollan 2018-08-22 16:01:50 PDT
Created attachment 347865 [details]
Patch
Comment 7 Per Arne Vollan 2018-08-22 16:10:55 PDT
Created attachment 347867 [details]
Patch
Comment 8 Per Arne Vollan 2018-08-22 16:38:55 PDT
Created attachment 347874 [details]
Patch
Comment 9 EWS Watchlist 2018-08-22 18:13:22 PDT
Comment on attachment 347874 [details]
Patch

Attachment 347874 [details] did not pass mac-ews (mac):
Output: https://webkit-queues.webkit.org/results/8951985

New failing tests:
fast/scrolling/scrollbar-style-external-mouse.html
Comment 10 EWS Watchlist 2018-08-22 18:13:23 PDT
Created attachment 347890 [details]
Archive of layout-test-results from ews101 for mac-sierra

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews101  Port: mac-sierra  Platform: Mac OS X 10.12.6
Comment 11 EWS Watchlist 2018-08-22 18:16:21 PDT
Comment on attachment 347874 [details]
Patch

Attachment 347874 [details] did not pass ios-sim-ews (ios-simulator-wk2):
Output: https://webkit-queues.webkit.org/results/8951617

New failing tests:
fast/scrolling/scrollbar-style-external-mouse.html
Comment 12 EWS Watchlist 2018-08-22 18:16:22 PDT
Created attachment 347891 [details]
Archive of layout-test-results from ews124 for ios-simulator-wk2

The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews124  Port: ios-simulator-wk2  Platform: Mac OS X 10.13.4
Comment 13 EWS Watchlist 2018-08-22 18:55:06 PDT
Comment on attachment 347874 [details]
Patch

Attachment 347874 [details] did not pass mac-debug-ews (mac):
Output: https://webkit-queues.webkit.org/results/8952055

New failing tests:
fast/scrolling/scrollbar-style-external-mouse.html
Comment 14 EWS Watchlist 2018-08-22 18:55:08 PDT
Created attachment 347892 [details]
Archive of layout-test-results from ews116 for mac-sierra

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews116  Port: mac-sierra  Platform: Mac OS X 10.12.6
Comment 15 EWS Watchlist 2018-08-23 03:20:30 PDT
Comment on attachment 347874 [details]
Patch

Attachment 347874 [details] did not pass win-ews (win):
Output: https://webkit-queues.webkit.org/results/8955887

New failing tests:
fast/scrolling/scrollbar-style-external-mouse.html
Comment 16 EWS Watchlist 2018-08-23 03:20:42 PDT
Created attachment 347917 [details]
Archive of layout-test-results from ews206 for win-future

The attached test failures were seen while running run-webkit-tests on the win-ews.
Bot: ews206  Port: win-future  Platform: CYGWIN_NT-6.1-2.9.0-0.318-5-3-x86_64-64bit
Comment 17 Per Arne Vollan 2018-08-23 10:07:23 PDT
Created attachment 347930 [details]
Patch
Comment 18 Simon Fraser (smfr) 2018-08-23 10:43:56 PDT
What is happening
Comment 19 Per Arne Vollan 2018-08-23 10:56:25 PDT
(In reply to Simon Fraser (smfr) from comment #18)
> What is happening

I believe the build and test failures should be fixed now :)
Comment 20 Sam Weinig 2018-08-23 14:32:48 PDT
Rather than creating additional SPI, can we instead swizzle [NSScroller preferredScrollerStyle] and send a NSPreferredScrollerStyleDidChangeNotification?
Comment 21 Per Arne Vollan 2018-08-23 14:57:53 PDT
(In reply to Sam Weinig from comment #20)
> Rather than creating additional SPI, can we instead swizzle [NSScroller
> preferredScrollerStyle] and send a
> NSPreferredScrollerStyleDidChangeNotification?

That is a good idea, I'll look into that. Thanks for reviewing!
Comment 22 Per Arne Vollan 2018-08-24 11:41:36 PDT
Created attachment 348030 [details]
Patch
Comment 23 Per Arne Vollan 2018-08-27 09:30:25 PDT
Created attachment 348152 [details]
Patch
Comment 24 Per Arne Vollan 2018-09-04 11:13:51 PDT
Created attachment 348830 [details]
Patch
Comment 25 Simon Fraser (smfr) 2018-09-04 13:44:52 PDT
Comment on attachment 348830 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=348830&action=review

> Tools/WebKitTestRunner/TestController.h:490
> +    bool m_useOverlayScrollbars { false };

Why doesn't this follow useMockScrollbars ?
Comment 26 EWS Watchlist 2018-09-04 16:15:40 PDT
Comment on attachment 348830 [details]
Patch

Attachment 348830 [details] did not pass win-ews (win):
Output: https://webkit-queues.webkit.org/results/9092908

New failing tests:
fast/workers/worker-exception-during-navigation.html
Comment 27 EWS Watchlist 2018-09-04 16:15:53 PDT
Created attachment 348863 [details]
Archive of layout-test-results from ews203 for win-future

The attached test failures were seen while running run-webkit-tests on the win-ews.
Bot: ews203  Port: win-future  Platform: CYGWIN_NT-6.1-2.9.0-0.318-5-3-x86_64-64bit
Comment 28 Per Arne Vollan 2018-09-05 10:42:23 PDT
(In reply to Simon Fraser (smfr) from comment #25)
> Comment on attachment 348830 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=348830&action=review
> 
> > Tools/WebKitTestRunner/TestController.h:490
> > +    bool m_useOverlayScrollbars { false };
> 
> Why doesn't this follow useMockScrollbars ?

This member variable is actually not needed since we should always use the legacy scroller style when swizzling [NSScroller preferredScrollerStyle]. I will update the patch.

Thanks for reviewing!
Comment 29 Per Arne Vollan 2018-09-05 11:02:46 PDT
Created attachment 348945 [details]
Patch
Comment 30 Per Arne Vollan 2018-09-11 15:47:05 PDT
Created attachment 349479 [details]
Patch
Comment 31 Alex Christensen 2021-11-01 12:52:26 PDT
Comment on attachment 349479 [details]
Patch

This has been requesting review for more than one year.  If this is still needed, please rebase and re-request review.