[Webkit-unassigned] [Bug 74523] [GTK] Page size should be 0, 0 when view widget is not realized

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Dec 14 11:24:22 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=74523





--- Comment #4 from Carlos Garcia Campos <cgarcia at igalia.com>  2011-12-14 11:24:22 PST ---
(In reply to comment #2)
> (From update of attachment 119254 [details])
> How did you notice this? Did it cause a bug somewhere?

Writing the unit test for the window properties patch. 

I do someting like window.open('', '', 'left=10,top=20,width=800,height=600');

and I get 10, 20, 799, 599 from WindowFeatures, because in FrameLoader::createWindow() the window size is adjusted for the difference between the window size and the page size:

if (features.widthSet)
        windowRect.setWidth(features.width + (windowRect.width() - pageSize.width()));
if (features.heightSet)
        windowRect.setHeight(features.height + (windowRect.height() - pageSize.height()));

initially the window rect is 0, 0 and page size is 1, 1

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list