Bug 78304

Summary: Web Inspector: Prevent attaching when inspecting the Web Inspector
Product: WebKit Reporter: Timothy Hatcher <timothy>
Component: Web Inspector (Deprecated)Assignee: Timothy Hatcher <timothy>
Status: RESOLVED FIXED    
Severity: Normal CC: apavlov, bweinstein, joepeck, keishi, loislo, pfeldman, pmuellr, rik, timothy, webkit.review.bot, yurys
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Proposed Change none

Description Timothy Hatcher 2012-02-09 17:54:48 PST
We should prevent attaching when inspecting the Web Inspector. It is confusing and fails bad in WebKit2.
Comment 1 Timothy Hatcher 2012-02-09 17:58:56 PST
Created attachment 126414 [details]
Proposed Change
Comment 2 Brian Weinstein 2012-02-09 18:52:29 PST
Comment on attachment 126414 [details]
Proposed Change

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

> Source/WebKit2/UIProcess/WebInspectorProxy.cpp:272
> +    unsigned maximumAttachedHeight = inspectedPageHeight * 3 / 4;

Is it worth it to use a constant for 3/4 like WebCore? It seems like we could just put it in WebInspectorProxy.h next to minimumAttachedHeight.
Comment 3 Timothy Hatcher 2012-02-09 18:54:25 PST
Comment on attachment 126414 [details]
Proposed Change

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

>> Source/WebKit2/UIProcess/WebInspectorProxy.cpp:272
>> +    unsigned maximumAttachedHeight = inspectedPageHeight * 3 / 4;
> 
> Is it worth it to use a constant for 3/4 like WebCore? It seems like we could just put it in WebInspectorProxy.h next to minimumAttachedHeight.

IIRC, we can't use "static float" in class headers on Windows, so that is why we never did that.
Comment 4 WebKit Review Bot 2012-02-09 22:24:05 PST
Comment on attachment 126414 [details]
Proposed Change

Clearing flags on attachment: 126414

Committed r107362: <http://trac.webkit.org/changeset/107362>
Comment 5 WebKit Review Bot 2012-02-09 22:24:10 PST
All reviewed patches have been landed.  Closing bug.