Summary: | Removing PAGE_VISIBILITY_API compile guard | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Éva Balázsfalvi <evab.u-szeged> | ||||
Component: | Tools / Tests | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | barraclough, benjamin, bunhere, calvaris, cdumez, cmarcelo, commit-queue, dbates, eric.carlson, esprehn+autocc, evab.u-szeged, glenn, gyuyoung.kim, jer.noble, kangil.han, kling, kondapallykalyan, ossy, philipj, rakuco, sergio | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Bug Depends on: | 134246 | ||||||
Bug Blocks: | |||||||
Attachments: |
|
Description
Éva Balázsfalvi
2014-06-13 04:08:09 PDT
Created attachment 233044 [details]
Patch
Landed in https://trac.webkit.org/changeset/170235 Comment on attachment 233044 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=233044&action=review > Source/WebKit/mac/WebView/WebView.mm:4327 > -#if ENABLE(PAGE_VISIBILITY_API) || ENABLE(HIDDEN_PAGE_DOM_TIMER_THROTTLING) > +#if ENABLE(HIDDEN_PAGE_DOM_TIMER_THROTTLING) > if (_private->page) > return kit(_private->page->visibilityState()); > #endif This looks wrong, now the code will only run if ENABLE(HIDDEN_PAGE_DOM_TIMER_THROTTLING) is true. Shouldn't we remove the #if guard entirely here? (In reply to comment #3) > (From update of attachment 233044 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=233044&action=review > > > Source/WebKit/mac/WebView/WebView.mm:4327 > > -#if ENABLE(PAGE_VISIBILITY_API) || ENABLE(HIDDEN_PAGE_DOM_TIMER_THROTTLING) > > +#if ENABLE(HIDDEN_PAGE_DOM_TIMER_THROTTLING) > > if (_private->page) > > return kit(_private->page->visibilityState()); > > #endif > > This looks wrong, now the code will only run if ENABLE(HIDDEN_PAGE_DOM_TIMER_THROTTLING) is true. > Shouldn't we remove the #if guard entirely here? Good point, thanks for noticing, Sorry, my bad. I've made a quick fix: https://bugs.webkit.org/show_bug.cgi?id=134246 |