Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Message from discussion Content Security Policy Spec questions and feedback
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Brandon Sterne  
View profile  
 More options Jul 6 2009, 1:58 pm
Newsgroups: mozilla.dev.security
From: Brandon Sterne <bste...@mozilla.com>
Date: Mon, 06 Jul 2009 10:58:08 -0700
Local: Mon, Jul 6 2009 1:58 pm
Subject: Re: Content Security Policy Spec questions and feedback
Thanks for the great feedback, Eric.  I have some additional comments
that I haven't finished yet, but this was a quick one...

Gervase Markham wrote:
> On 06/07/09 01:28, EricLaw wrote:
>> Style-src
>> I don’t know what “style attributes of HTML elements” means.

> It means <div style="some CSS here"></div>

Perhaps the style-src tag does not need to apply to inline style after
all.  Originally, we had thought we needed this restriction to prevent
CSS from being used as a vector for script injection via XBL and CSS
expressions.  However, there is the other restriction already in place
which requires that XBL bindings come from chrome: or resource: URIs, so
the XSS risk is extremely low.  The only other risk of allowing inline
CSS is page defacement, element hiding, etc.

I think we should change the script-src directive to only apply to
external stylesheet loads and let inline styles (<style> elements and
style attributes) behave as they currently do.

-Brandon


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.