https://chromiumcodereview.appspot.com/9838050/diff/1/chrome/browser/ui/prefs/prefs_tab_helper.cc File chrome/browser/ui/prefs/prefs_tab_helper.cc (left): https://chromiumcodereview.appspot.com/9838050/diff/1/chrome/browser/ui/prefs/prefs_tab_helper.cc#oldcode575 chrome/browser/ui/prefs/prefs_tab_helper.cc:575: UpdateWebPreferences(); It's OK to remove this, right? It was ...
8 years, 9 months ago
(2012-03-23 10:41:11 UTC)
#1
https://chromiumcodereview.appspot.com/9838050/diff/1/chrome/browser/ui/prefs/prefs_tab_helper.cc File chrome/browser/ui/prefs/prefs_tab_helper.cc (left): https://chromiumcodereview.appspot.com/9838050/diff/1/chrome/browser/ui/prefs/prefs_tab_helper.cc#oldcode620 chrome/browser/ui/prefs/prefs_tab_helper.cc:620: WebPreferences prefs = rvhd->GetWebkitPrefs(); Where do we fill in ...
8 years, 9 months ago
(2012-03-23 10:48:14 UTC)
#3
8 years, 9 months ago
(2012-03-23 11:34:33 UTC)
#6
https://chromiumcodereview.appspot.com/9838050/diff/1/webkit/glue/webpreferen...
File webkit/glue/webpreferences.h (left):
https://chromiumcodereview.appspot.com/9838050/diff/1/webkit/glue/webpreferen...
webkit/glue/webpreferences.h:52: bool images_enabled;
On 2012/03/23 10:58:23, Mikhail Naganov (Chromium) wrote:
> On 2012/03/23 10:48:14, Bernhard Bauer wrote:
> > I think we still need this, no? Remember that we're only removing per-tab
> > preferences from Chrome, but Webkit still has the flag.
>
> The flag has a default value, set in glue. There were no need to alter it
before
> I came in.
But couldn't it still be changed by a different content embedder (i.e. Android)?
mnaganov (inactive)
On 2012/03/23 11:34:33, Bernhard Bauer wrote: > https://chromiumcodereview.appspot.com/9838050/diff/1/webkit/glue/webpreferences.h > File webkit/glue/webpreferences.h (left): > > https://chromiumcodereview.appspot.com/9838050/diff/1/webkit/glue/webpreferences.h#oldcode52 ...
8 years, 9 months ago
(2012-03-23 11:40:49 UTC)
#7
On 2012/03/23 11:34:33, Bernhard Bauer wrote:
>
https://chromiumcodereview.appspot.com/9838050/diff/1/webkit/glue/webpreferen...
> File webkit/glue/webpreferences.h (left):
>
>
https://chromiumcodereview.appspot.com/9838050/diff/1/webkit/glue/webpreferen...
> webkit/glue/webpreferences.h:52: bool images_enabled;
> On 2012/03/23 10:58:23, Mikhail Naganov (Chromium) wrote:
> > On 2012/03/23 10:48:14, Bernhard Bauer wrote:
> > > I think we still need this, no? Remember that we're only removing per-tab
> > > preferences from Chrome, but Webkit still has the flag.
> >
> > The flag has a default value, set in glue. There were no need to alter it
> before
> > I came in.
>
> But couldn't it still be changed by a different content embedder (i.e.
Android)?
OK. I agree that it might be useful. Matt, can you please leave 'images_enabled'
in view_messages.h and in webpreferences.{h|cc}?
falken
On 2012/03/23 11:40:49, Mikhail Naganov (Chromium) wrote: > On 2012/03/23 11:34:33, Bernhard Bauer wrote: > ...
8 years, 9 months ago
(2012-03-23 11:56:20 UTC)
#8
On 2012/03/23 11:40:49, Mikhail Naganov (Chromium) wrote:
> On 2012/03/23 11:34:33, Bernhard Bauer wrote:
> >
>
https://chromiumcodereview.appspot.com/9838050/diff/1/webkit/glue/webpreferen...
> > File webkit/glue/webpreferences.h (left):
> >
> >
>
https://chromiumcodereview.appspot.com/9838050/diff/1/webkit/glue/webpreferen...
> > webkit/glue/webpreferences.h:52: bool images_enabled;
> > On 2012/03/23 10:58:23, Mikhail Naganov (Chromium) wrote:
> > > On 2012/03/23 10:48:14, Bernhard Bauer wrote:
> > > > I think we still need this, no? Remember that we're only removing
per-tab
> > > > preferences from Chrome, but Webkit still has the flag.
> > >
> > > The flag has a default value, set in glue. There were no need to alter it
> > before
> > > I came in.
> >
> > But couldn't it still be changed by a different content embedder (i.e.
> Android)?
>
> OK. I agree that it might be useful. Matt, can you please leave
'images_enabled'
> in view_messages.h and in webpreferences.{h|cc}?
OK, done.
Bernhard Bauer
LGTM!
8 years, 9 months ago
(2012-03-23 12:02:07 UTC)
#9
LGTM!
falken
Bernhard and Mikhail, thanks for the review! Avi: chrome/browser/tab_contents OWNER Peter: chrome/browser/ui OWNER Tony: webkit ...
8 years, 9 months ago
(2012-03-23 12:11:18 UTC)
#10
Bernhard and Mikhail, thanks for the review!
Avi: chrome/browser/tab_contents OWNER
Peter: chrome/browser/ui OWNER
Tony: webkit OWNER
tony
Does this turn off the xss auditor? Was it enabled before?
8 years, 9 months ago
(2012-03-23 18:05:05 UTC)
#11
Does this turn off the xss auditor? Was it enabled before?
falken
On 2012/03/23 18:05:05, tony wrote: > Does this turn off the xss auditor? Was it ...
8 years, 9 months ago
(2012-03-23 18:15:48 UTC)
#12
On 2012/03/23 18:05:05, tony wrote:
> Does this turn off the xss auditor? Was it enabled before?
It's reverting https://chromiumcodereview.appspot.com/9264071/
Mikhail, can you confirm that the change to xss_auditor_enabled in
webpreferences.cc is OK?
Peter Kasting
LGTM w/question http://codereview.chromium.org/9838050/diff/16/chrome/browser/ui/prefs/prefs_tab_helper.h File chrome/browser/ui/prefs/prefs_tab_helper.h (left): http://codereview.chromium.org/9838050/diff/16/chrome/browser/ui/prefs/prefs_tab_helper.h#oldcode21 chrome/browser/ui/prefs/prefs_tab_helper.h:21: class PrefsTabHelper : public content::WebContentsObserver, Can this ...
8 years, 9 months ago
(2012-03-23 18:19:55 UTC)
#13
In Chrome xss_auditor_enabled is initialized using a command-line flag: http://code.google.com/searchframe#OAMlx_jo-ck/src/content/browser/tab_contents/tab_contents.cc&exact_package=chromium&q=xss_auditor_enabled&type=cs&l=368 So it's actually doesn't matter ...
8 years, 9 months ago
(2012-03-23 18:27:53 UTC)
#14
8 years, 9 months ago
(2012-03-26 03:54:24 UTC)
#16
lgtm
falken
On 2012/03/26 03:54:24, Avi wrote: > lgtm Thanks. I just noticed render_view_context_menu.cc should be checking ...
8 years, 9 months ago
(2012-03-26 04:38:47 UTC)
#17
On 2012/03/26 03:54:24, Avi wrote:
> lgtm
Thanks. I just noticed render_view_context_menu.cc should be checking
kWebKitGlobalJavascriptEnabled, not kWebkitJavaScriptEnabled. It's a trivial
change so shouldn't need another review. It will move back when I remove the
"Global" names in a subsequent patch.
I also looked for other bad accessing of the removed per-tab pref names and
didn't find any.
falken
On 2012/03/26 03:39:02, falken wrote: > I've changed the xss auditor back to enabled by ...
8 years, 9 months ago
(2012-03-26 06:15:51 UTC)
#18
On 2012/03/26 03:39:02, falken wrote:
> I've changed the xss auditor back to enabled by default (so now there's no
> change to webkit/).
>
> Peter, Avi (OWNERS): please take another look.
>
>
http://codereview.chromium.org/9838050/diff/16/chrome/browser/ui/prefs/prefs_...
> File chrome/browser/ui/prefs/prefs_tab_helper.h (left):
>
>
http://codereview.chromium.org/9838050/diff/16/chrome/browser/ui/prefs/prefs_...
> chrome/browser/ui/prefs/prefs_tab_helper.h:21: class PrefsTabHelper : public
> content::WebContentsObserver,
> On 2012/03/23 18:19:55, Peter Kasting wrote:
> > Can this parent class be removed now too? Or do you still need to observe
it?
>
> It looks right to remove it. Done.
I'll go ahead and land this as the change to remove the WebContentsObserver
parent class was quite simple.
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/falken@chromium.org/9838050/9016
8 years, 9 months ago
(2012-03-26 06:16:21 UTC)
#19
Issue 9838050: Remove per-tab preference machinery.
(Closed)
Created 8 years, 9 months ago by falken
Modified 8 years, 9 months ago
Reviewers: Bernhard Bauer, mnaganov (inactive), Avi (use Gerrit), Peter Kasting, tony
Base URL: svn://svn.chromium.org/chrome/trunk/src
Comments: 10