RESOLVED FIXED 42546
WebKitTestRunner needs layoutTestController.setCustomPolicyDelegate
https://bugs.webkit.org/show_bug.cgi?id=42546
Summary WebKitTestRunner needs layoutTestController.setCustomPolicyDelegate
Maciej Stachowiak
Reported 2010-07-18 21:47:43 PDT
WebKitTestRunner needs layoutTestController.setCustomPolicyDelegate
Attachments
Patch (10.82 KB, patch)
2011-10-21 06:30 PDT, Balazs Kelemen
no flags
Patch (10.72 KB, patch)
2011-10-25 02:09 PDT, Balazs Kelemen
no flags
patch (7.63 KB, patch)
2012-09-07 07:54 PDT, Mikhail Pozdnyakov
kenneth: review+
to be landed (8.18 KB, patch)
2012-09-14 05:36 PDT, Mikhail Pozdnyakov
no flags
Maciej Stachowiak
Comment 1 2010-07-18 21:52:22 PDT
Balazs Kelemen
Comment 2 2011-08-10 07:57:52 PDT
We have created a Qt specific bug for this issue. Later we found out that it is not platform specific and removed the [Qt] prefix. I mark this as duplicate because #42330 already has patches uploaded. Sorry for the confusion. If it is important to you to track the issue here please invert the direction of duplication and we will reupload the patch. *** This bug has been marked as a duplicate of bug 42330 ***
Balazs Kelemen
Comment 3 2011-08-10 08:03:57 PDT
Sorry for the noise. I missed it, these are not the same issue. :-S
Fehér Zsolt
Comment 4 2011-08-25 02:38:48 PDT
I have a patch, that look like this: https://gist.github.com/1156343 One test failed because of an unknown reason. http/tests/security/feed-urls-from-remote.html The test has a beginTests() method. But this method didn't run. Do somebody have any idea, why not?
Balazs Kelemen
Comment 5 2011-10-21 06:30:44 PDT
Adam Roben (:aroben)
Comment 6 2011-10-24 09:33:04 PDT
Comment on attachment 111958 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=111958&action=review > Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePage.h:137 > enum { > + WKBundlePagePolicyActionIgnore, > WKBundlePagePolicyActionPassThrough, > WKBundlePagePolicyActionUse I believe this breaks ABI compatibility with Safari 5.1 (i.e., will break nightly builds). > Tools/ChangeLog:17 > + waitToPolicyDelegate. We need to ignore the navigation action if we > + are not in permissive mode. This has not caused a problem with > + waitToPolicyDelegate because with that we explicitly stop testing > + via notifyDone and do not send any request after that. What is "waitToPolicyDelegate"? > LayoutTests/platform/wk2/Skipped:564 > # WebKitTestRunner needs layoutTestController.setCustomPolicyDelegate > # <https://bugs.webkit.org/show_bug.cgi?id=42546> > -fast/loader/javascript-url-hierarchical-execution.html > -fast/loader/onload-policy-ignore-for-frame.html > -fast/loader/reload-policy-delegate.html > -http/tests/misc/policy-delegate-called-twice.html > -http/tests/misc/redirect-to-external-url.html > -http/tests/security/feed-urls-from-remote.html > +#fast/loader/javascript-url-hierarchical-execution.html > +#fast/loader/onload-policy-ignore-for-frame.html > +#fast/loader/reload-policy-delegate.html > +#http/tests/misc/policy-delegate-called-twice.html > +#http/tests/misc/redirect-to-external-url.html > +#http/tests/security/feed-urls-from-remote.html You should delete the lines rather than just commenting them out.
Balazs Kelemen
Comment 7 2011-10-25 02:09:21 PDT
Balazs Kelemen
Comment 8 2011-10-25 02:11:11 PDT
(In reply to comment #6) > (From update of attachment 111958 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=111958&action=review > > > Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePage.h:137 > > enum { > > + WKBundlePagePolicyActionIgnore, > > WKBundlePagePolicyActionPassThrough, > > WKBundlePagePolicyActionUse > > I believe this breaks ABI compatibility with Safari 5.1 (i.e., will break nightly builds). Moved the new one to the end. > > > Tools/ChangeLog:17 > > + waitToPolicyDelegate. We need to ignore the navigation action if we > > + are not in permissive mode. This has not caused a problem with > > + waitToPolicyDelegate because with that we explicitly stop testing > > + via notifyDone and do not send any request after that. > > What is "waitToPolicyDelegate"? Added a quick explanation. > > > LayoutTests/platform/wk2/Skipped:564 > > # WebKitTestRunner needs layoutTestController.setCustomPolicyDelegate > > # <https://bugs.webkit.org/show_bug.cgi?id=42546> > > -fast/loader/javascript-url-hierarchical-execution.html > > -fast/loader/onload-policy-ignore-for-frame.html > > -fast/loader/reload-policy-delegate.html > > -http/tests/misc/policy-delegate-called-twice.html > > -http/tests/misc/redirect-to-external-url.html > > -http/tests/security/feed-urls-from-remote.html > > +#fast/loader/javascript-url-hierarchical-execution.html > > +#fast/loader/onload-policy-ignore-for-frame.html > > +#fast/loader/reload-policy-delegate.html > > +#http/tests/misc/policy-delegate-called-twice.html > > +#http/tests/misc/redirect-to-external-url.html > > +#http/tests/security/feed-urls-from-remote.html > > You should delete the lines rather than just commenting them out. Fixed.
Balazs Kelemen
Comment 9 2011-10-27 13:44:19 PDT
Comment on attachment 112308 [details] Patch It's not the desired solution according to IRC discussion. The UI process should know about what's going on.
Mikhail Pozdnyakov
Comment 10 2012-09-05 08:04:50 PDT
Could I take it (since there was no activity on this bug for almost a year)?
Balazs Kelemen
Comment 11 2012-09-05 08:14:49 PDT
(In reply to comment #10) > Could I take it (since there was no activity on this bug for almost a year)? Sure, feel free to take it.
Mikhail Pozdnyakov
Comment 12 2012-09-05 08:16:21 PDT
(In reply to comment #11) > (In reply to comment #10) > > Could I take it (since there was no activity on this bug for almost a year)? > > Sure, feel free to take it. Thanks!
Mikhail Pozdnyakov
Comment 13 2012-09-07 07:54:03 PDT
Mikhail Pozdnyakov
Comment 14 2012-09-07 07:59:33 PDT
(In reply to comment #13) > Created an attachment (id=162772) [details] > patch Did not ask cq? as this patch should land after bug95974 is resolved so that fast/loader/onload-policy-ignore-for-frame.html passes.
Mikhail Pozdnyakov
Comment 15 2012-09-14 05:36:26 PDT
Created attachment 164118 [details] to be landed Skipped fast/loader/onload-policy-ignore-for-frame.html to remove dependency to bug95974, as looks like it will take more time to land..
WebKit Review Bot
Comment 16 2012-09-14 06:08:46 PDT
Comment on attachment 164118 [details] to be landed Clearing flags on attachment: 164118 Committed r128600: <http://trac.webkit.org/changeset/128600>
WebKit Review Bot
Comment 17 2012-09-14 06:08:51 PDT
All reviewed patches have been landed. Closing bug.
Balazs Kelemen
Comment 18 2012-09-29 02:58:16 PDT
Are we really ready with this? It still not goes through the UI process.
Note You need to log in before you can comment on or make changes to this bug.