WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 42536
WebKitTestRunner needs to support layoutTestController.setFrameFlatteningEnabled
https://bugs.webkit.org/show_bug.cgi?id=42536
Summary
WebKitTestRunner needs to support layoutTestController.setFrameFlatteningEnabled
Maciej Stachowiak
Reported
2010-07-18 21:38:24 PDT
WebKitTestRunner needs to support layoutTestController.setFrameFlatteningEnabled
Attachments
fix patch
(10.70 KB, patch)
2011-04-21 08:08 PDT
,
Chang Shu
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Maciej Stachowiak
Comment 1
2010-07-18 21:50:52 PDT
<
rdar://problem/8204906
>
Kenneth Rohde Christiansen
Comment 2
2010-10-08 04:42:51 PDT
This should be easy to implement, there is already a WebKit2 C API for turning on frame flattening.
Chang Shu
Comment 3
2011-04-13 11:43:06 PDT
(In reply to
comment #2
)
> This should be easy to implement, there is already a WebKit2 C API for turning on frame flattening.
Kenneth, the current api is for UIProcess. We need one for WebProcess, do I get it right?
Kenneth Rohde Christiansen
Comment 4
2011-04-14 00:51:59 PDT
(In reply to
comment #3
)
> (In reply to
comment #2
) > > This should be easy to implement, there is already a WebKit2 C API for turning on frame flattening. > > Kenneth, the current api is for UIProcess. We need one for WebProcess, do I get it right?
Right :-) well then it is just calling into WebCore::Settings
Chang Shu
Comment 5
2011-04-14 10:45:09 PDT
Per discussion on IRC with Maciej, we planned to send an InjectedBundle message from WebProcess to UIProcess, and calling WK API to set preference over there. I have managed to make the code work. But only partially, because even I used synchronous messaging from WebProcess, the 2nd message (preferenceDidChange) from UIProcess is async, and it causes some problem, I believe. I doubt we can make both messaging synchronous because the WebProcess is pending on waiting for the 1st message back.
Chang Shu
Comment 6
2011-04-18 07:44:31 PDT
Based on my investigation, I plan to add WK API in WebProcess and notify UIProcess through preferenceDidChange message. I think the race condition of setting from UIProcess and WebProcess at the same time is not critical since there is no use case of such. Any thoughts, concerns? Thanks.
Chang Shu
Comment 7
2011-04-21 06:08:49 PDT
It seems the notify-UIprocess part is not necessary for most of the setting changes, including this one. And we don't have to touch the preference store either. So it should be trivial as Kenneth has stated. :)
Chang Shu
Comment 8
2011-04-21 08:08:35 PDT
Created
attachment 90534
[details]
fix patch
WebKit Commit Bot
Comment 9
2011-04-22 18:14:24 PDT
Comment on
attachment 90534
[details]
fix patch Clearing flags on attachment: 90534 Committed
r84721
: <
http://trac.webkit.org/changeset/84721
>
WebKit Commit Bot
Comment 10
2011-04-22 18:14:30 PDT
All reviewed patches have been landed. Closing bug.
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