Bug 139600 - Split WebPageProxy::m_preventProcessSuppression to track pref/visibility separately
Summary: Split WebPageProxy::m_preventProcessSuppression to track pref/visibility sepa...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-12 15:44 PST by Gavin Barraclough
Modified: 2014-12-12 17:43 PST (History)
1 user (show)

See Also:


Attachments
Fix (7.45 KB, patch)
2014-12-12 15:53 PST, Gavin Barraclough
ggaren: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gavin Barraclough 2014-12-12 15:44:40 PST
Previously WebPageProxy::m_preventProcessSuppression would be set if either the page was visible or it suppression was disabled by the pref.
Instead track these separately. This will make the user observability state applicable on iOS, too.
Comment 1 Gavin Barraclough 2014-12-12 15:53:32 PST
Created attachment 243223 [details]
Fix
Comment 2 WebKit Commit Bot 2014-12-12 15:54:52 PST
Attachment 243223 [details] did not pass style-queue:


ERROR: Source/WebKit2/UIProcess/WebContext.cpp:198:  Code inside a namespace should not be indented.  [whitespace/indent] [4]
Total errors found: 1 in 6 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Geoffrey Garen 2014-12-12 15:59:35 PST
Comment on attachment 243223 [details]
Fix

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

r=me

> Source/WebKit2/ChangeLog:9
> +        or it suppression was disabled by the pref. Instead track these separately. This will make the

"its"

> Source/WebKit2/ChangeLog:13
> +        ::updateProccessSuppressionState continues to track the pref change (which matches it's name),

"its"

> Source/WebKit2/UIProcess/WebPageProxy.h:1586
> +    RefPtr<RefCounter::Count> m_pageIsUserObservable;
> +    RefPtr<RefCounter::Count> m_preventProcessSuppression;

I wonder if we should put "Count" at the ends of these names.
Comment 4 Gavin Barraclough 2014-12-12 17:43:50 PST
Transmitting file data ......
Committed revision 177255.