WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
72597
[Qt] Layer violation: ThirdPartyCookiesQt.cpp uses QWebSettings in two places
https://bugs.webkit.org/show_bug.cgi?id=72597
Summary
[Qt] Layer violation: ThirdPartyCookiesQt.cpp uses QWebSettings in two places
Simon Hausmann
Reported
2011-11-17 04:00:48 PST
We should pass the NetworkingContext instead and add missing functionality there as interface between WebCore and WebKit.
Attachments
[Qt] Layer violation: ThirdPartyCookiesQt.cpp uses QWebSettings in two places
(30.18 KB, patch)
2011-11-17 06:20 PST
,
Simon Hausmann
no flags
Details
Formatted Diff
Diff
Updated patch with no qwebsettings changes
(27.79 KB, patch)
2011-11-18 00:07 PST
,
Simon Hausmann
kenneth
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Simon Hausmann
Comment 1
2011-11-17 06:20:38 PST
Created
attachment 115577
[details]
[Qt] Layer violation: ThirdPartyCookiesQt.cpp uses QWebSettings in two places
Tor Arne Vestbø
Comment 2
2011-11-17 10:27:31 PST
Comment on
attachment 115577
[details]
[Qt] Layer violation: ThirdPartyCookiesQt.cpp uses QWebSettings in two places View in context:
https://bugs.webkit.org/attachment.cgi?id=115577&action=review
> Source/WebKit/qt/Api/qwebsettings.cpp:401 >
All the other settings have a verb, Always_allow_, etc. Perhaps UseGlobalSetting? Come to think of it, isn't this handled by "If a setting is not configured, then it is looked up in the global settings object, which can be accessed using globalSettings()". Ie, do we need an enum for it, or is the behavior enough?
Simon Hausmann
Comment 3
2011-11-17 12:01:25 PST
(In reply to
comment #2
)
> (From update of
attachment 115577
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=115577&action=review
> > > Source/WebKit/qt/Api/qwebsettings.cpp:401 > > > > All the other settings have a verb, Always_allow_, etc. Perhaps UseGlobalSetting? Come to think of it, isn't this handled by "If a setting is not configured, then it is looked > up in the global settings object, which can be accessed using globalSettings()". Ie, do we need an enum for it, or is the behavior enough?
Yeah the main issue is that the "inheritance" of settings from global settings only works for things that can be enabled, disabled or unset. For the enum the "unset" option is what the patch adds. Another option would be to just keep the old behaviour and say that the setting only has an effect on QWebSettings::globalSettings(). But now that we _can_ support it per page, we might as well. How about QWebSettings::UseGlobalThirdPartyCookieSetting ?
Simon Hausmann
Comment 4
2011-11-17 23:57:04 PST
For the time being I'm preparing a patch that doesn't change the behaviour, i.e. always query QWebSettings::globalSettings().
Simon Hausmann
Comment 5
2011-11-18 00:07:02 PST
Created
attachment 115751
[details]
Updated patch with no qwebsettings changes
Simon Hausmann
Comment 6
2011-11-18 00:24:06 PST
Committed
r100731
: <
http://trac.webkit.org/changeset/100731
>
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