Bug 139600

Summary: Split WebPageProxy::m_preventProcessSuppression to track pref/visibility separately
Product: WebKit Reporter: Gavin Barraclough <barraclough>
Component: WebKit2Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Fix ggaren: review+

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.