WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
93980
[WK2] Implement testRunner.setUseDeferredFrameLoading
https://bugs.webkit.org/show_bug.cgi?id=93980
Summary
[WK2] Implement testRunner.setUseDeferredFrameLoading
Sergio Villar Senin
Reported
2012-08-14 09:35:15 PDT
Needed by http/tests/appcache/load-from-appcache-defer-resume-crash.html
Attachments
patch
(3.46 KB, patch)
2012-11-12 01:09 PST
,
Zoltan Nyul
benjamin
: review-
benjamin
: commit-queue-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Martin Robinson
Comment 1
2012-08-14 09:43:55 PDT
Does this apply to all ports or only to GTK+. If it's for all ports, perhaps we should remove the "[GTK]" tag.
Sergio Villar Senin
Comment 2
2012-08-16 00:53:07 PDT
(In reply to
comment #1
)
> Does this apply to all ports or only to GTK+. If it's for all ports, perhaps we should remove the "[GTK]" tag.
Yep you're right
Zoltan Nyul
Comment 3
2012-11-12 01:09:40 PST
Created
attachment 173585
[details]
patch I added the setDeferredLoading method to the idl and TestRunner class, but the implementation would be just adding a timer for the mainloop like in the wk1 mac port, but the InjectedBundle is already asynchronous so i think there's no need for extra timers.
Benjamin Poulain
Comment 4
2013-01-14 14:37:59 PST
Comment on
attachment 173585
[details]
patch View in context:
https://bugs.webkit.org/attachment.cgi?id=173585&action=review
Thank you for looking into this.
> LayoutTests/platform/efl-wk2/TestExpectations:-199 > -# testRunner.setUseDeferredFrameLoading() is not implemented in WK2. Skipped so it does not generate PNG results. > -
webkit.org/b/93980
http/tests/appcache/load-from-appcache-defer-resume-crash.html [ Skip ] > -
What about gtk-wk2?
> Tools/WebKitTestRunner/InjectedBundle/TestRunner.h:116 > + // The InjectedBundle is already asynchronous so we don't need to implement it > + void setUseDeferredFrameLoading(bool) { }
Doing that would be wrong. Any future test that would do "setUseDeferredFrameLoading(false)" would use an unimplemented feature. (What you could have done instead is rename the method so that it can only be set. E.g. forceDeferredFrameLoading().) I also think not doing anything is probably wrong. WebPage seems to have an API for deferredFrameLoading: WebPage::setDefersLoading().
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug