plone/plone.app.toolbar — comment on commit 30d6e4d4b34217e63f8fcb2624e24e254430b28d
File:  line 0
By izak:

On Thu, Mar 8, 2012 at 4:42 PM, Izak Burger wrote:
> Okay, that works. Rather nicely. But Jean Jordaan, who responded on
> the dev list, is going to hate us for this. Opening folder_contents in
> another tab is now horribly broken.

Alright, strictly speaking there is nothing wrong with this technique.
The problem is that the toolbar skin is very sparse on css and
javascript. When loaded in an overlay, no problem, we already have all
the css and javascript loaded, but loading in a new tab leaves it
without any styling.

If I disable theming but leave the skin untouched, then it works okay,
but it gets css from plone.app.theming which should not be there. It
appears that HTTP_X_THEME_ENABLED is still set on the request. Setting
request['HTTP_X_THEME_ENADLED'] to false rather than changing the skin
to toolbar seems to work better.