Bug 196992 - Remember device orientation permission for the duration of the browsing session
Summary: Remember device orientation permission for the duration of the browsing session
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-04-16 15:50 PDT by Chris Dumez
Modified: 2019-04-17 10:04 PDT (History)
11 users (show)

See Also:


Attachments
Patch (47.51 KB, patch)
2019-04-16 16:00 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (48.44 KB, patch)
2019-04-16 16:24 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (55.77 KB, patch)
2019-04-16 16:54 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews200 for win-future (12.92 MB, application/zip)
2019-04-16 19:25 PDT, EWS Watchlist
no flags Details
Archive of layout-test-results from ews122 for ios-simulator-wk2 (9.84 MB, application/zip)
2019-04-16 22:01 PDT, EWS Watchlist
no flags Details
Patch (60.04 KB, patch)
2019-04-17 08:44 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2019-04-16 15:50:14 PDT
Remember device orientation permission for the duration of the browsing session.
Comment 1 Chris Dumez 2019-04-16 15:50:26 PDT
<rdar://problem/49946067>
Comment 2 Chris Dumez 2019-04-16 16:00:02 PDT
Created attachment 367587 [details]
Patch
Comment 3 EWS Watchlist 2019-04-16 16:02:27 PDT
Attachment 367587 [details] did not pass style-queue:


ERROR: Source/WebCore/page/ChromeClient.h:489:  Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line.  [build/webcore_export] [4]
Total errors found: 1 in 26 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 4 Chris Dumez 2019-04-16 16:24:54 PDT
Created attachment 367593 [details]
Patch
Comment 5 EWS Watchlist 2019-04-16 16:27:39 PDT
Attachment 367593 [details] did not pass style-queue:


ERROR: Source/WebCore/page/ChromeClient.h:489:  Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line.  [build/webcore_export] [4]
Total errors found: 1 in 26 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 6 Chris Dumez 2019-04-16 16:54:13 PDT
Created attachment 367594 [details]
Patch
Comment 7 EWS Watchlist 2019-04-16 16:56:54 PDT
Attachment 367594 [details] did not pass style-queue:


ERROR: Tools/TestWebKitAPI/Tests/WebKitCocoa/DeviceOrientation.mm:170:  More than one command on the same line  [whitespace/newline] [4]
ERROR: Source/WebCore/page/ChromeClient.h:489:  Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line.  [build/webcore_export] [4]
Total errors found: 2 in 28 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 8 EWS Watchlist 2019-04-16 19:25:13 PDT
Comment on attachment 367594 [details]
Patch

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

New failing tests:
storage/indexeddb/modern/gc-closes-database.html
Comment 9 EWS Watchlist 2019-04-16 19:25:24 PDT
Created attachment 367599 [details]
Archive of layout-test-results from ews200 for win-future

The attached test failures were seen while running run-webkit-tests on the win-ews.
Bot: ews200  Port: win-future  Platform: CYGWIN_NT-6.1-2.9.0-0.318-5-3-x86_64-64bit
Comment 10 EWS Watchlist 2019-04-16 22:01:45 PDT
Comment on attachment 367594 [details]
Patch

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

New failing tests:
fast/device-orientation/device-motion-request-permission-granted.html
fast/device-orientation/device-orientation-request-permission-user-gesture.html
fast/device-orientation/device-motion-request-permission-user-gesture.html
Comment 11 EWS Watchlist 2019-04-16 22:01:47 PDT
Created attachment 367608 [details]
Archive of layout-test-results from ews122 for ios-simulator-wk2

The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews122  Port: ios-simulator-wk2  Platform: Mac OS X 10.13.6
Comment 12 Chris Dumez 2019-04-17 08:44:05 PDT
Created attachment 367628 [details]
Patch
Comment 13 EWS Watchlist 2019-04-17 08:46:08 PDT
Attachment 367628 [details] did not pass style-queue:


ERROR: Tools/TestWebKitAPI/Tests/WebKitCocoa/DeviceOrientation.mm:170:  More than one command on the same line  [whitespace/newline] [4]
ERROR: Source/WebCore/page/ChromeClient.h:489:  Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line.  [build/webcore_export] [4]
Total errors found: 2 in 34 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 14 Alex Christensen 2019-04-17 09:16:51 PDT
Comment on attachment 367628 [details]
Patch

r=me
Comment 15 WebKit Commit Bot 2019-04-17 10:04:06 PDT
Comment on attachment 367628 [details]
Patch

Clearing flags on attachment: 367628

Committed r244382: <https://trac.webkit.org/changeset/244382>
Comment 16 WebKit Commit Bot 2019-04-17 10:04:08 PDT
All reviewed patches have been landed.  Closing bug.