RESOLVED FIXED 42330
WebKitTestRunner needs layoutTestController.waitForPolicyDelegate
https://bugs.webkit.org/show_bug.cgi?id=42330
Summary WebKitTestRunner needs layoutTestController.waitForPolicyDelegate
Maciej Stachowiak
Reported 2010-07-14 20:54:44 PDT
WebKitTestRunner needs layoutTestController.waitForPolicyDelegate
Attachments
patch (12.02 KB, patch)
2011-08-01 06:43 PDT, Fehér Zsolt
no flags
patch (11.98 KB, patch)
2011-08-02 02:23 PDT, Fehér Zsolt
ossy: review-
ossy: commit-queue-
Add missing features (waitForPolicyDelegate) to TestRunner (10.84 KB, patch)
2011-08-08 08:29 PDT, Fehér Zsolt
no flags
Add missing features (waitForPolicyDelegate) to TestRunner (11.47 KB, patch)
2011-08-10 07:06 PDT, Fehér Zsolt
no flags
Add missing features (waitForPolicyDelegate) to TestRunner (11.12 KB, patch)
2011-08-10 07:28 PDT, Fehér Zsolt
no flags
Maciej Stachowiak
Comment 1 2010-07-14 20:59:14 PDT
Fehér Zsolt
Comment 2 2011-08-01 06:43:11 PDT
Fehér Zsolt
Comment 3 2011-08-02 02:23:00 PDT
Andras Becsi
Comment 4 2011-08-04 07:03:18 PDT
Comment on attachment 102629 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=102629&action=review Informal review. I think this patch needs another iteration. > LayoutTests/platform/wk2/Skipped:1612 > +# Unexplained failures > +fast/encoding/mailto-always-utf-8.html > + Unexplained failure doesn't say much. Any idea why this still fails? This would need further investigation and a bug report. > Tools/WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:751 > + if (InjectedBundle::shared().layoutTestController()->waitToDump()) { This check seems redundant here since LayoutTestController::waitForPolicyDelegate() calls waitUntilDone(), so this is always true. Or is there a test which calls layoutTestController.setCustomPolicyDelegate(true) but does not call waitUntilDone()? > Tools/WebKitTestRunner/InjectedBundle/InjectedBundlePage.h:50 > + static bool policyDelegateEnabled; > + static bool policyDelegatePermissive; Why are these in InjectedBundle? Couldn't they be just simple members of LayoutTestController, they are never used elsewhere. > Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.cpp:102 > + , m_waitForPolicy(false) This variable is only set, but never used, I think you can simply remove it. > Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.cpp:132 > +void LayoutTestController::setCustomPolicyDelegate(bool enabled, bool permissive) You implement this function, which seems to be needed, but don't expose it through the IDL file. There seems to be a separate issue for this function tracked in https://bugs.webkit.org/show_bug.cgi?id=42546 which has it's own skipped tests. You might need to check these tests for the above waitUntilDone concern of mine too. See LayoutTests/platform/wk2/Skipped:1284. I think this bug should depend on 42546, and we should implement this function for all platforms which miss it. > Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.h:150 > + bool waitForPolicy() const { return m_waitForPolicy; } This function is never used. > Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.h:190 > + bool m_waitForPolicy; Never used, see above.
Csaba Osztrogonác
Comment 5 2011-08-08 07:15:44 PDT
Comment on attachment 102629 [details] patch r- due to Andras' informal review.
Fehér Zsolt
Comment 6 2011-08-08 08:29:33 PDT
Created attachment 103249 [details] Add missing features (waitForPolicyDelegate) to TestRunner
Andras Becsi
Comment 7 2011-08-08 08:51:11 PDT
Comment on attachment 103249 [details] Add missing features (waitForPolicyDelegate) to TestRunner View in context: https://bugs.webkit.org/attachment.cgi?id=103249&action=review Seems ok now, just a few comments yet: > Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.cpp:134 > +void LayoutTestController::setCustomPolicyDelegate(bool enabled, bool permissive) This at least needs a comment, like "FIXME: Needs a full implementation see https://bugs.webkit.org/show_bug.cgi?id=42546" > Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.h:54 > + static bool policyDelegateEnabled; > + static bool policyDelegatePermissive; These do not need to be static, do they? They could simply be private members, with inline getter methods.
Fehér Zsolt
Comment 8 2011-08-10 07:06:10 PDT
Created attachment 103483 [details] Add missing features (waitForPolicyDelegate) to TestRunner
Fehér Zsolt
Comment 9 2011-08-10 07:28:44 PDT
Created attachment 103486 [details] Add missing features (waitForPolicyDelegate) to TestRunner
Balazs Kelemen
Comment 10 2011-08-10 07:57:52 PDT
*** Bug 42546 has been marked as a duplicate of this bug. ***
Andras Becsi
Comment 11 2011-08-11 05:34:35 PDT
Comment on attachment 103486 [details] Add missing features (waitForPolicyDelegate) to TestRunner The patch looks good to me now. Thanks for addressing my suggestions.
Csaba Osztrogonác
Comment 12 2011-08-11 05:40:30 PDT
Comment on attachment 103486 [details] Add missing features (waitForPolicyDelegate) to TestRunner r=me
Csaba Osztrogonác
Comment 13 2011-08-11 05:41:33 PDT
Note You need to log in before you can comment on or make changes to this bug.