Bug 186585

Summary: [Mail] Use the Mail Viewer width as the base for resolving horizontal viewport units
Product: WebKit Reporter: zalan <zalan>
Component: Layout and RenderingAssignee: zalan <zalan>
Status: RESOLVED FIXED    
Severity: Normal CC: adele, bfulgham, commit-queue, enrica, ews-watchlist, jlewis3, jonlee, rniwa, simon.fraser, thorton, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Archive of layout-test-results from ews100 for mac-sierra
none
Archive of layout-test-results from ews117 for mac-sierra
none
Patch
none
Patch
none
Patch
none
Patch none

zalan
Reported 2018-06-12 19:53:11 PDT
Instead of the stretched viewport size
Attachments
Patch (9.21 KB, patch)
2018-06-12 20:48 PDT, zalan
no flags
Patch (10.03 KB, patch)
2018-06-13 09:10 PDT, zalan
no flags
Archive of layout-test-results from ews100 for mac-sierra (677.20 KB, application/zip)
2018-06-13 09:49 PDT, EWS Watchlist
no flags
Archive of layout-test-results from ews117 for mac-sierra (1.29 MB, application/zip)
2018-06-13 10:02 PDT, EWS Watchlist
no flags
Patch (11.36 KB, patch)
2018-06-13 12:18 PDT, zalan
no flags
Patch (11.04 KB, patch)
2018-06-13 13:29 PDT, zalan
no flags
Patch (11.03 KB, patch)
2018-06-13 14:40 PDT, zalan
no flags
Patch (11.12 KB, patch)
2018-06-23 13:27 PDT, zalan
no flags
zalan
Comment 1 2018-06-12 20:41:53 PDT
zalan
Comment 2 2018-06-12 20:48:40 PDT
Tim Horton
Comment 3 2018-06-12 21:09:45 PDT
Comment on attachment 342624 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=342624&action=review > Source/WebCore/page/FrameView.cpp:4378 > + // Only override the width of the viewport. This is an unhelpful what comment instead of a why comment. > Source/WebCore/page/FrameView.h:797 > + operator IntSize() const > + { > + ASSERT(width); > + ASSERT(height); > + return { *width, *height }; > + } This seems ever so slightly dangerous. Maybe we should just always make callers unwrap?
zalan
Comment 4 2018-06-13 09:10:00 PDT
EWS Watchlist
Comment 5 2018-06-13 09:49:09 PDT
Comment on attachment 342663 [details] Patch Attachment 342663 [details] did not pass mac-ews (mac): Output: http://webkit-queues.webkit.org/results/8164301 Number of test failures exceeded the failure limit.
EWS Watchlist
Comment 6 2018-06-13 09:49:11 PDT
Created attachment 342665 [details] Archive of layout-test-results from ews100 for mac-sierra The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews100 Port: mac-sierra Platform: Mac OS X 10.12.6
zalan
Comment 7 2018-06-13 10:00:07 PDT
(In reply to Build Bot from comment #5) > Comment on attachment 342663 [details] > Patch > > Attachment 342663 [details] did not pass mac-ews (mac): > Output: http://webkit-queues.webkit.org/results/8164301 > > Number of test failures exceeded the failure limit. something makes autosizing sticky.
EWS Watchlist
Comment 8 2018-06-13 10:02:20 PDT
Comment on attachment 342663 [details] Patch Attachment 342663 [details] did not pass mac-debug-ews (mac): Output: http://webkit-queues.webkit.org/results/8164327 Number of test failures exceeded the failure limit.
EWS Watchlist
Comment 9 2018-06-13 10:02:22 PDT
Created attachment 342669 [details] Archive of layout-test-results from ews117 for mac-sierra The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews117 Port: mac-sierra Platform: Mac OS X 10.12.6
zalan
Comment 10 2018-06-13 10:03:33 PDT
(In reply to zalan from comment #7) > (In reply to Build Bot from comment #5) > > Comment on attachment 342663 [details] > > Patch > > > > Attachment 342663 [details] did not pass mac-ews (mac): > > Output: http://webkit-queues.webkit.org/results/8164301 > > > > Number of test failures exceeded the failure limit. > something makes autosizing sticky. Oh it's WK1 only. -and I am actually able to repro it locally.
zalan
Comment 11 2018-06-13 10:27:17 PDT
(In reply to zalan from comment #10) > (In reply to zalan from comment #7) > > (In reply to Build Bot from comment #5) > > > Comment on attachment 342663 [details] > > > Patch > > > > > > Attachment 342663 [details] did not pass mac-ews (mac): > > > Output: http://webkit-queues.webkit.org/results/8164301 > > > > > > Number of test failures exceeded the failure limit. > > something makes autosizing sticky. > Oh it's WK1 only. -and I am actually able to repro it locally. and these tests start failing the same way even without the patch (ofc) when only the test case is added.
zalan
Comment 12 2018-06-13 10:33:46 PDT
(In reply to zalan from comment #11) > (In reply to zalan from comment #10) > > (In reply to zalan from comment #7) > > > (In reply to Build Bot from comment #5) > > > > Comment on attachment 342663 [details] > > > > Patch > > > > > > > > Attachment 342663 [details] did not pass mac-ews (mac): > > > > Output: http://webkit-queues.webkit.org/results/8164301 > > > > > > > > Number of test failures exceeded the failure limit. > > > something makes autosizing sticky. > > Oh it's WK1 only. -and I am actually able to repro it locally. > and these tests start failing the same way even without the patch (ofc) when > only the test case is added. Forcing a "resize(800, 600)" while turning the autosizing off fixes it. :(
zalan
Comment 13 2018-06-13 12:18:27 PDT
zalan
Comment 14 2018-06-13 13:29:55 PDT
Tim Horton
Comment 15 2018-06-13 14:27:32 PDT
Comment on attachment 342689 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=342689&action=review > Source/WebCore/page/FrameView.h:216 > + No
zalan
Comment 16 2018-06-13 14:40:38 PDT
WebKit Commit Bot
Comment 17 2018-06-13 18:36:30 PDT
Comment on attachment 342694 [details] Patch Clearing flags on attachment: 342694 Committed r232823: <https://trac.webkit.org/changeset/232823>
WebKit Commit Bot
Comment 18 2018-06-13 18:36:32 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 19 2018-06-13 18:37:19 PDT
Matt Lewis
Comment 20 2018-06-14 16:47:31 PDT
This revision has caused both a test to start timing out consistently on WK1 and a consistent failure of an api test: the test: fast/dynamic/paused-event-dispatch.html https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&tests=fast%2Fdynamic%2Fpaused-event-dispatch.html diff: --- /Volumes/Data/slave/highsierra-debug-tests-wk1/build/layout-test-results/fast/dynamic/paused-event-dispatch-expected.txt +++ /Volumes/Data/slave/highsierra-debug-tests-wk1/build/layout-test-results/fast/dynamic/paused-event-dispatch-actual.txt @@ -1,5 +1,33 @@ -Test for http://bugs.webkit.org/show_bug.cgi?id=16490 ASSERT in ~FrameView while viewing/reloading WICD test case. - - -PASS - +FAIL: Timed out waiting for notifyDone to be called +layer at (0,0) size 800x600 + RenderView at (0,0) size 800x600 +layer at (0,0) size 800x600 + RenderBlock {HTML} at (0,0) size 800x600 + RenderBody {BODY} at (8,8) size 784x584 + RenderBlock {P} at (0,0) size 784x36 + RenderText {#text} at (0,0) size 54x18 + text run at (0,0) width 54: "Test for " + RenderInline {I} at (0,0) size 749x36 + RenderInline {A} at (0,0) size 305x18 [color=#0000EE] + RenderText {#text} at (53,0) size 305x18 + text run at (53,0) width 305: "http://bugs.webkit.org/show_bug.cgi?id=16490" + RenderText {#text} at (357,0) size 749x36 + text run at (357,0) width 5: " " + text run at (361,0) width 388: "ASSERT in ~FrameView while viewing/reloading WICD test" + text run at (0,18) width 29: "case" + RenderText {#text} at (28,18) size 5x18 + text run at (28,18) width 5: "." + RenderBlock {DIV} at (0,52) size 784x154 + RenderIFrame {IFRAME} at (0,0) size 788x154 [border: (2px inset #000000)] + layer at (0,0) size 784x150 + RenderView at (0,0) size 784x150 + layer at (0,0) size 784x150 + RenderBlock {HTML} at (0,0) size 784x150 + RenderBody {BODY} at (8,8) size 768x134 + RenderText {#text} at (0,0) size 0x0 + RenderBlock {DIV} at (0,306) size 784x18 + RenderText {#text} at (0,0) size 35x18 + text run at (0,0) width 35: "FAIL" +layer at (8,214) size 100x100 clip at (8,214) size 85x100 scrollHeight 200 + RenderBlock {DIV} at (0,206) size 100x100 + RenderBlock {DIV} at (0,0) size 85x200 build: https://build.webkit.org/builders/Apple%20High%20Sierra%20Release%20WK1%20(Tests)/builds/5985 API failure: TestWebKitAPI.WebKit.AutoLayoutIntegration /Volumes/Data/slave/highsierra-release/build/Tools/TestWebKitAPI/Tests/WebKitCocoa/AutoLayoutIntegration.mm:99 Value of: intrinsicContentSize.height Actual: 101 Expected: _expectedIntrinsicContentSize.height Which is: 150 https://build.webkit.org/builders/Apple%20High%20Sierra%20Release%20WK1%20(Tests)/builds/5985/steps/run-api-tests/logs/stdio
Matt Lewis
Comment 21 2018-06-14 16:53:47 PDT
Reverted r232823 for reason: This caused both test timeouts and api failures. Committed r232859: <https://trac.webkit.org/changeset/232859>
zalan
Comment 22 2018-06-14 22:53:48 PDT
(In reply to Matt Lewis from comment #20) > This revision has caused both a test to start timing out consistently on WK1 > and a consistent failure of an api test: > > the test: > fast/dynamic/paused-event-dispatch.html > https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard. > html#showAllRuns=true&tests=fast%2Fdynamic%2Fpaused-event-dispatch.html > diff: > > --- > /Volumes/Data/slave/highsierra-debug-tests-wk1/build/layout-test-results/ > fast/dynamic/paused-event-dispatch-expected.txt > +++ > /Volumes/Data/slave/highsierra-debug-tests-wk1/build/layout-test-results/ > fast/dynamic/paused-event-dispatch-actual.txt > @@ -1,5 +1,33 @@ > -Test for http://bugs.webkit.org/show_bug.cgi?id=16490 ASSERT in ~FrameView > while viewing/reloading WICD test case. > - > - > -PASS > - > +FAIL: Timed out waiting for notifyDone to be called > +layer at (0,0) size 800x600 > + RenderView at (0,0) size 800x600 > +layer at (0,0) size 800x600 > + RenderBlock {HTML} at (0,0) size 800x600 > + RenderBody {BODY} at (8,8) size 784x584 > + RenderBlock {P} at (0,0) size 784x36 > + RenderText {#text} at (0,0) size 54x18 > + text run at (0,0) width 54: "Test for " > + RenderInline {I} at (0,0) size 749x36 > + RenderInline {A} at (0,0) size 305x18 [color=#0000EE] > + RenderText {#text} at (53,0) size 305x18 > + text run at (53,0) width 305: > "http://bugs.webkit.org/show_bug.cgi?id=16490" > + RenderText {#text} at (357,0) size 749x36 > + text run at (357,0) width 5: " " > + text run at (361,0) width 388: "ASSERT in ~FrameView while > viewing/reloading WICD test" > + text run at (0,18) width 29: "case" > + RenderText {#text} at (28,18) size 5x18 > + text run at (28,18) width 5: "." > + RenderBlock {DIV} at (0,52) size 784x154 > + RenderIFrame {IFRAME} at (0,0) size 788x154 [border: (2px inset > #000000)] > + layer at (0,0) size 784x150 > + RenderView at (0,0) size 784x150 > + layer at (0,0) size 784x150 > + RenderBlock {HTML} at (0,0) size 784x150 > + RenderBody {BODY} at (8,8) size 768x134 > + RenderText {#text} at (0,0) size 0x0 > + RenderBlock {DIV} at (0,306) size 784x18 > + RenderText {#text} at (0,0) size 35x18 > + text run at (0,0) width 35: "FAIL" > +layer at (8,214) size 100x100 clip at (8,214) size 85x100 scrollHeight 200 > + RenderBlock {DIV} at (0,206) size 100x100 > + RenderBlock {DIV} at (0,0) size 85x200 > > > > build: > https://build.webkit.org/builders/ > Apple%20High%20Sierra%20Release%20WK1%20(Tests)/builds/5985 > > > API failure: > > TestWebKitAPI.WebKit.AutoLayoutIntegration > > > /Volumes/Data/slave/highsierra-release/build/Tools/TestWebKitAPI/Tests/ > WebKitCocoa/AutoLayoutIntegration.mm:99 > Value of: intrinsicContentSize.height > Actual: 101 > Expected: _expectedIntrinsicContentSize.height > Which is: 150 > > https://build.webkit.org/builders/ > Apple%20High%20Sierra%20Release%20WK1%20(Tests)/builds/5985/steps/run-api- > tests/logs/stdio The API expected test needs rebaselining and the timeout look suspicious since the testcase does not even turn on this (autosizing) feature (does not exercise this changeset) Will look into it.
zalan
Comment 23 2018-06-23 13:27:32 PDT
WebKit Commit Bot
Comment 24 2018-06-23 14:07:46 PDT
Comment on attachment 343446 [details] Patch Clearing flags on attachment: 343446 Committed r233132: <https://trac.webkit.org/changeset/233132>
WebKit Commit Bot
Comment 25 2018-06-23 14:07:48 PDT
All reviewed patches have been landed. Closing bug.
zalan
Comment 26 2018-06-23 14:08:51 PDT
(In reply to Matt Lewis from comment #20) > This revision has caused both a test to start timing out consistently on WK1 > and a consistent failure of an api test: > > the test: > fast/dynamic/paused-event-dispatch.html > https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard. > html#showAllRuns=true&tests=fast%2Fdynamic%2Fpaused-event-dispatch.html > diff: > > --- > /Volumes/Data/slave/highsierra-debug-tests-wk1/build/layout-test-results/ > fast/dynamic/paused-event-dispatch-expected.txt > +++ > /Volumes/Data/slave/highsierra-debug-tests-wk1/build/layout-test-results/ > fast/dynamic/paused-event-dispatch-actual.txt > @@ -1,5 +1,33 @@ > -Test for http://bugs.webkit.org/show_bug.cgi?id=16490 ASSERT in ~FrameView > while viewing/reloading WICD test case. > - > - > -PASS > - > +FAIL: Timed out waiting for notifyDone to be called > +layer at (0,0) size 800x600 > + RenderView at (0,0) size 800x600 > +layer at (0,0) size 800x600 > + RenderBlock {HTML} at (0,0) size 800x600 > + RenderBody {BODY} at (8,8) size 784x584 > + RenderBlock {P} at (0,0) size 784x36 > + RenderText {#text} at (0,0) size 54x18 > + text run at (0,0) width 54: "Test for " > + RenderInline {I} at (0,0) size 749x36 > + RenderInline {A} at (0,0) size 305x18 [color=#0000EE] > + RenderText {#text} at (53,0) size 305x18 > + text run at (53,0) width 305: > "http://bugs.webkit.org/show_bug.cgi?id=16490" > + RenderText {#text} at (357,0) size 749x36 > + text run at (357,0) width 5: " " > + text run at (361,0) width 388: "ASSERT in ~FrameView while > viewing/reloading WICD test" > + text run at (0,18) width 29: "case" > + RenderText {#text} at (28,18) size 5x18 > + text run at (28,18) width 5: "." > + RenderBlock {DIV} at (0,52) size 784x154 > + RenderIFrame {IFRAME} at (0,0) size 788x154 [border: (2px inset > #000000)] > + layer at (0,0) size 784x150 > + RenderView at (0,0) size 784x150 > + layer at (0,0) size 784x150 > + RenderBlock {HTML} at (0,0) size 784x150 > + RenderBody {BODY} at (8,8) size 768x134 > + RenderText {#text} at (0,0) size 0x0 > + RenderBlock {DIV} at (0,306) size 784x18 > + RenderText {#text} at (0,0) size 35x18 > + text run at (0,0) width 35: "FAIL" > +layer at (8,214) size 100x100 clip at (8,214) size 85x100 scrollHeight 200 > + RenderBlock {DIV} at (0,206) size 100x100 > + RenderBlock {DIV} at (0,0) size 85x200 > > > > build: > https://build.webkit.org/builders/ > Apple%20High%20Sierra%20Release%20WK1%20(Tests)/builds/5985 > > > API failure: > > TestWebKitAPI.WebKit.AutoLayoutIntegration > > > /Volumes/Data/slave/highsierra-release/build/Tools/TestWebKitAPI/Tests/ > WebKitCocoa/AutoLayoutIntegration.mm:99 > Value of: intrinsicContentSize.height > Actual: 101 > Expected: _expectedIntrinsicContentSize.height > Which is: 150 > > https://build.webkit.org/builders/ > Apple%20High%20Sierra%20Release%20WK1%20(Tests)/builds/5985/steps/run-api- > tests/logs/stdio Fixed both the timeout and the API test failure.
Note You need to log in before you can comment on or make changes to this bug.