Bug 110080 - [EFL][WK2] EWK2UnitTestBase.ewk_view_scale is failing
Summary: [EFL][WK2] EWK2UnitTestBase.ewk_view_scale is failing
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit EFL (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-17 23:34 PST by Chris Dumez
Modified: 2017-03-11 10:46 PST (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2013-02-17 23:34:16 PST
EWK2UnitTestBase.ewk_view_scale API is failing with the following error:

[ RUN      ] EWK2UnitTestBase.ewk_view_scale
/home/buildslave-1/webkit-buildslave/efl-linux-64-debug-wk2/build/Source/WebKit2/UIProcess/API/efl/tests/test_ewk2_view.cpp:765: Failure
Value of: ewk_view_scale_get(webView())
  Actual: 0.81632656
Expected: 1.5

It is difficult to say what caused the regression as our EwkView API tests had been segfaulting for a while :/
Comment 1 Chris Dumez 2013-02-17 23:41:53 PST
It looks like this may be a race condition:
1. WebPageProxy::scalePage() is called with 1.5
2. This sends a message to the WebProcess but does not update m_pageScaleFactor
3. The test calls WebPageProxy::pageScaleFactor() which returns outdated m_pageScaleFactor
4. WebPageProxy::pageScaleFactorDidChange() is called and updates m_pageScaleFactor (but too late)
Comment 2 Michael Catanzaro 2017-03-11 10:46:46 PST
Closing this bug because the EFL port has been removed from trunk.

If you feel this bug applies to a different upstream WebKit port and was closed in error, please either update the title and reopen the bug, or leave a comment to request this.