WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
197674
Simplify logic to prevent App Nap in WebPage
https://bugs.webkit.org/show_bug.cgi?id=197674
Summary
Simplify logic to prevent App Nap in WebPage
Chris Dumez
Reported
2019-05-07 14:07:28 PDT
Simplify logic to prevent App Nap login in WebPage. We do not need both m_userActivityHysteresis and m_userActivity since UserActivity is already a HysteresisActivity.
Attachments
Patch
(6.09 KB, patch)
2019-05-07 14:09 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(6.08 KB, patch)
2019-05-07 14:09 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(6.05 KB, patch)
2019-05-07 14:19 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews215 for win-future
(13.38 MB, application/zip)
2019-05-07 16:52 PDT
,
EWS Watchlist
no flags
Details
Patch
(6.00 KB, patch)
2019-05-07 18:02 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Show Obsolete
(4)
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2019-05-07 14:09:09 PDT
Created
attachment 369326
[details]
Patch
Chris Dumez
Comment 2
2019-05-07 14:09:51 PDT
Created
attachment 369327
[details]
Patch
Geoffrey Garen
Comment 3
2019-05-07 14:17:24 PDT
Comment on
attachment 369327
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=369327&action=review
r=me
> Source/WebKit/WebProcess/WebPage/WebPage.cpp:768 > + bool shouldAllowAppNapGivenPageState = m_isAppNapEnabled && !isActive && isVisuallyIdle;
Maybe call this isAppNapEnabledInThisPage. The if-then ("A given B") style of naming threw me off a bit.
Chris Dumez
Comment 4
2019-05-07 14:19:50 PDT
Created
attachment 369329
[details]
Patch
EWS Watchlist
Comment 5
2019-05-07 16:52:56 PDT
Comment on
attachment 369329
[details]
Patch
Attachment 369329
[details]
did not pass win-ews (win): Output:
https://webkit-queues.webkit.org/results/12127898
New failing tests: http/tests/css/filters-on-iframes.html
EWS Watchlist
Comment 6
2019-05-07 16:52:58 PDT
Created
attachment 369334
[details]
Archive of layout-test-results from ews215 for win-future The attached test failures were seen while running run-webkit-tests on the win-ews. Bot: ews215 Port: win-future Platform: CYGWIN_NT-10.0-17763-3.0.5-338.x86_64-x86_64-64bit
Alex Christensen
Comment 7
2019-05-07 17:13:55 PDT
Comment on
attachment 369329
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=369329&action=review
> Source/WebKit/WebProcess/WebPage/WebPage.cpp:419 > + , m_isAppNapEnabled(true)
While we're touching these, could we use initializer lists in the header?
Chris Dumez
Comment 8
2019-05-07 17:53:50 PDT
(In reply to Alex Christensen from
comment #7
)
> Comment on
attachment 369329
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=369329&action=review
> > > Source/WebKit/WebProcess/WebPage/WebPage.cpp:419 > > + , m_isAppNapEnabled(true) > > While we're touching these, could we use initializer lists in the header?
Good point, will fix before landing.
Chris Dumez
Comment 9
2019-05-07 18:02:00 PDT
Created
attachment 369345
[details]
Patch
WebKit Commit Bot
Comment 10
2019-05-07 18:28:31 PDT
Comment on
attachment 369345
[details]
Patch Clearing flags on attachment: 369345 Committed
r245048
: <
https://trac.webkit.org/changeset/245048
>
WebKit Commit Bot
Comment 11
2019-05-07 18:28:33 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 12
2019-05-07 18:29:25 PDT
<
rdar://problem/50564901
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug