Bug 88952 - Move setDefersLoading to Internals interface
Summary: Move setDefersLoading to Internals interface
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Gyuyoung Kim
URL:
Keywords:
Depends on:
Blocks: 87284
  Show dependency treegraph
 
Reported: 2012-06-12 20:34 PDT by Gyuyoung Kim
Modified: 2012-06-19 01:18 PDT (History)
3 users (show)

See Also:


Attachments
Patch (26.68 KB, patch)
2012-06-12 20:38 PDT, Gyuyoung Kim
no flags Details | Formatted Diff | Diff
Patch (29.39 KB, patch)
2012-06-12 22:13 PDT, Gyuyoung Kim
rniwa: review-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gyuyoung Kim 2012-06-12 20:34:19 PDT
Adjust setDefersLoading tests to use Internals instead of LayoutTestController interface. In my humble opinion, setDefersLoading() is able to be supported by Internals because it looks this function is implemented by WebCore layer, not WebKit layer. If reviewers think this test function is able to be dealt with by WebKit layer, I will remove this patch.
Comment 1 Gyuyoung Kim 2012-06-12 20:38:51 PDT
Created attachment 147222 [details]
Patch
Comment 2 Build Bot 2012-06-12 21:08:04 PDT
Comment on attachment 147222 [details]
Patch

Attachment 147222 [details] did not pass win-ews (win):
Output: http://queues.webkit.org/results/12953056
Comment 3 Gyuyoung Kim 2012-06-12 22:13:40 PDT
Created attachment 147226 [details]
Patch
Comment 4 Alexey Proskuryakov 2012-06-13 10:25:50 PDT
> setDefersLoading() is able to be supported by Internals

Once again, I question this view on moving code to Internals. We should not move anything that it is _able_ to support, we should only move what it makes sense to move.

I do not believe that Internals is ready to cleanly implement the state for setDefersLoading. Even settings are not quite done yet.
Comment 5 Gyuyoung Kim 2012-06-13 18:49:10 PDT
(In reply to comment #4)
> Once again, I question this view on moving code to Internals. We should not move anything that it is _able_ to support, we should only move what it makes sense to move.
> 
> I do not believe that Internals is ready to cleanly implement the state for setDefersLoading. Even settings are not quite done yet.

Thank you for your comment. It seems to me setDefersLoading() is still not related to WebKit layer. But, if you think Internals need to be mature to support setDefersLoading(), I would close this bug.

Could you let me know what things Internals needs to support setDefersLoading()?
Comment 6 Ryosuke Niwa 2012-06-19 00:54:41 PDT
Comment on attachment 147226 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=147226&action=review

> Tools/DumpRenderTree/mac/LayoutTestControllerMac.mm:-492
> -    [[mainFrame webView] setDefersCallbacks:defers];

Unfortunately this API has non-DRT clients such as _documentFragmentFromPasteboard in WebHTMLView.mm.
We should probably add some WebKit API test for this before removing the dependency.
Comment 7 Gyuyoung Kim 2012-06-19 01:18:00 PDT
Thank you for your explain.