Bug 106807

Summary: [REGRESSION] Dev Tools popup for Workers forgets sizes/shows tiny in top left
Product: WebKit Reporter: Yury Semikhatsky <yurys>
Component: Web Inspector (Deprecated)Assignee: Yury Semikhatsky <yurys>
Status: RESOLVED FIXED    
Severity: Normal CC: apavlov, keishi, loislo, pfeldman, pmuellr, vsevik, web-inspector-bugs, webkit.review.bot, yurys
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch pfeldman: review+

Description Yury Semikhatsky 2013-01-14 10:34:05 PST
Upstreaming Chromium bug report http://code.google.com/p/chromium/issues/detail?id=167952 :

Version 26.0.1373.0 canary
OS: OSX 10.8.2, Windows 7

What steps will reproduce the problem?
1. Have a page with a Web Worker
2. Open dev tools, select Sources -> Workers -> click the worker
3. The Developer Tools popup will have all its sizing information set to 0 and appear in the top left corner really small
4. Resize the popup, resize all the sidebars
[5. Close the popup and reopen via the Workers pane - it will have been reset to the top left corner]

What is the expected output? What do you see instead?
The window opens at a reasonable size the first time and upon repeated openings remembers its size.
Comment 1 Yury Semikhatsky 2013-01-14 10:35:51 PST
Created attachment 182600 [details]
Patch
Comment 2 Pavel Feldman 2013-01-14 11:36:17 PST
Comment on attachment 182600 [details]
Patch

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

> Source/WebCore/inspector/front-end/WorkerManager.js:177
> +        var workerInspectorWindow = window.open(url, undefined, "location=0,width=" + width + ",height=" + height);

Why doesn't platform manage the preferred size?
Comment 3 WebKit Review Bot 2013-01-14 11:45:21 PST
Comment on attachment 182600 [details]
Patch

Clearing flags on attachment: 182600

Committed r139634: <http://trac.webkit.org/changeset/139634>
Comment 4 WebKit Review Bot 2013-01-14 11:45:25 PST
All reviewed patches have been landed.  Closing bug.
Comment 5 Yury Semikhatsky 2013-01-15 01:00:37 PST
(In reply to comment #2)
> (From update of attachment 182600 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=182600&action=review
> 
> > Source/WebCore/inspector/front-end/WorkerManager.js:177
> > +        var workerInspectorWindow = window.open(url, undefined, "location=0,width=" + width + ",height=" + height);
> 
> Why doesn't platform manage the preferred size?

It provides something like 100x100 by default which is too small for inspector.