Bug 149274

Summary: Web Inspector: Inactive window may cause many layers to be created due to Dashboard opacity
Product: WebKit Reporter: Joseph Pecoraro <joepeck>
Component: Web InspectorAssignee: Joseph Pecoraro <joepeck>
Status: RESOLVED FIXED    
Severity: Normal CC: bburg, commit-queue, graouts, joepeck, mattbaker, nvasilyev, timothy, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
[IMAGE] Window Active
none
[IMAGE] Window Inactive (Issue)
none
[PATCH] Proposed Fix
none
[IMAGE] With Fix none

Joseph Pecoraro
Reported 2015-09-17 11:13:48 PDT
* SUMMARY Inactive window may cause many layers to be created due to Dashboard opacity. See attached screenshots. * STEPS TO REPRODUCE 1. Inspect a page 2. Pause 3. Make the window inactive => lots of layers
Attachments
[IMAGE] Window Active (302.74 KB, image/png)
2015-09-17 11:16 PDT, Joseph Pecoraro
no flags
[IMAGE] Window Inactive (Issue) (284.84 KB, image/png)
2015-09-17 11:16 PDT, Joseph Pecoraro
no flags
[PATCH] Proposed Fix (1.69 KB, patch)
2015-09-17 11:32 PDT, Joseph Pecoraro
no flags
[IMAGE] With Fix (244.81 KB, image/png)
2015-09-17 11:32 PDT, Joseph Pecoraro
no flags
Radar WebKit Bug Importer
Comment 1 2015-09-17 11:14:08 PDT
Joseph Pecoraro
Comment 2 2015-09-17 11:16:16 PDT
Created attachment 261401 [details] [IMAGE] Window Active
Joseph Pecoraro
Comment 3 2015-09-17 11:16:35 PDT
Created attachment 261402 [details] [IMAGE] Window Inactive (Issue)
Joseph Pecoraro
Comment 4 2015-09-17 11:18:34 PDT
The issue appears to be because of the opacity: body.latest-mac.window-inactive .toolbar .dashboard-container { opacity: 0.65; ... } Which contains an animating element. This then uses a cascade of overlapping elements. A possible workaround might be: body.latest-mac.window-inactive .toolbar .dashboard-container > * opacity: 0.65; }
Joseph Pecoraro
Comment 5 2015-09-17 11:27:49 PDT
> A possible workaround might be: Naw that isn't good, it causes a few other issues and making it work starts being ugly. An easy solution, stop the animation when the window is inactive!
Joseph Pecoraro
Comment 6 2015-09-17 11:32:17 PDT
Created attachment 261405 [details] [PATCH] Proposed Fix
Joseph Pecoraro
Comment 7 2015-09-17 11:32:29 PDT
Created attachment 261406 [details] [IMAGE] With Fix
Blaze Burg
Comment 8 2015-09-17 11:42:09 PDT
Comment on attachment 261405 [details] [PATCH] Proposed Fix r=me
WebKit Commit Bot
Comment 9 2015-09-17 12:28:49 PDT
Comment on attachment 261405 [details] [PATCH] Proposed Fix Clearing flags on attachment: 261405 Committed r189923: <http://trac.webkit.org/changeset/189923>
WebKit Commit Bot
Comment 10 2015-09-17 12:28:52 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.