Bug 152076 - Web Inspector: zoom with Ctrl +/- doesn't work correctly when inspector is docked
Summary: Web Inspector: zoom with Ctrl +/- doesn't work correctly when inspector is do...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: BJ Burg
URL:
Keywords: InRadar
: 149946 (view as bug list)
Depends on: 149590
Blocks:
  Show dependency treegraph
 
Reported: 2015-12-09 10:29 PST by BJ Burg
Modified: 2015-12-09 16:20 PST (History)
9 users (show)

See Also:


Attachments
Proposed Fix (4.79 KB, patch)
2015-12-09 11:28 PST, BJ Burg
no flags Details | Formatted Diff | Diff
Proposed Fix (simpler) (1.89 KB, patch)
2015-12-09 12:14 PST, BJ Burg
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description BJ Burg 2015-12-09 10:29:30 PST
From a comment in bug 149590:

If the Developer tools are docked at the bottom of my browser and I'm either zoomed-in or out and then I try to resize the Dev Tools vertically by pulling it up or down, it doesn't work at all. If I restore Dev Tools to their original resolution by typing Command-0, then yes I can resize the tools vertically without any issues.

I've included a brief "steps to reproduce" list below:

1. Bring up the Developer Tools in Webkit.
2. Make sure that they are docked at the bottom of the browser window.
3. Either zoom in or out of the Developer tools.
4. Attempt to resize Developer Tools by dragging its top menu bar either upwards or downwards.

Expected Results:
The Developer Tools would resize vertically.

Actual Result:
Developer Tools do not resize, in fact opposite behaviour was observed whereby they shrinked vertically when the user attempted to lengthen them vertically.
Comment 1 Radar WebKit Bug Importer 2015-12-09 10:30:06 PST
<rdar://problem/23823393>
Comment 2 BJ Burg 2015-12-09 11:28:23 PST
Created attachment 267027 [details]
Proposed Fix
Comment 3 Joseph Pecoraro 2015-12-09 11:31:58 PST
Comment on attachment 267027 [details]
Proposed Fix

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

> Source/WebKit2/UIProcess/mac/WebInspectorProxyMac.mm:145
> +    if (self.ignoreNextViewFrameDidChangeNotification) {
> +        self.ignoreNextViewFrameDidChangeNotification = NO;
> +        return;
> +    }

Matt recently removed something like this. Check with him to see if he has a counter-example for why this may not be correct.

> Source/WebKit2/UIProcess/mac/WebInspectorProxyMac.mm:727
> +    [m_inspectorProxyObjCAdapter.get() setIgnoreNextViewFrameDidChangeNotification:YES];

I think the `.get()` is actually not needed here, due to magic.
Comment 4 BJ Burg 2015-12-09 12:08:43 PST
Comment on attachment 267027 [details]
Proposed Fix

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

>> Source/WebKit2/UIProcess/mac/WebInspectorProxyMac.mm:145
>> +    }
> 
> Matt recently removed something like this. Check with him to see if he has a counter-example for why this may not be correct.

You are right. I'll revert it. https://bugs.webkit.org/show_bug.cgi?id=146994
Comment 5 BJ Burg 2015-12-09 12:14:21 PST
Created attachment 267034 [details]
Proposed Fix (simpler)
Comment 6 WebKit Commit Bot 2015-12-09 13:35:13 PST
Comment on attachment 267034 [details]
Proposed Fix (simpler)

Clearing flags on attachment: 267034

Committed r193858: <http://trac.webkit.org/changeset/193858>
Comment 7 WebKit Commit Bot 2015-12-09 13:35:16 PST
All reviewed patches have been landed.  Closing bug.
Comment 8 Nikita Vasilyev 2015-12-09 16:20:42 PST
*** Bug 149946 has been marked as a duplicate of this bug. ***