<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>30290</bug_id>
          
          <creation_ts>2009-10-11 17:19:44 -0700</creation_ts>
          <short_desc>Log mixed content warnings to console</short_desc>
          <delta_ts>2009-10-11 20:15:22 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>https://crypto.stanford.edu/~collinj/research/mixed-content/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>Enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Collin Jackson">collinj</reporter>
          <assigned_to name="Collin Jackson">collinj</assigned_to>
          <cc>abarth</cc>
    
    <cc>commit-queue</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>153955</commentid>
    <comment_count>0</comment_count>
    <who name="Collin Jackson">collinj</who>
    <bug_when>2009-10-11 17:19:44 -0700</bug_when>
    <thetext>Mixed content warnings are often hard to debug, since the insecure content is buried in some obscure stylesheet or iframe. 

By logging information about a mixed content event as a console warning, we can make removing mixed content easier for site developers.

The most important pieces of information that we can log are the URL of the page that&apos;s attempting to include insecure content, and the URL of the content.

I&apos;m not sure if the console message type should be error or warning, but I&apos;m leaning towards warning. Chrome used a warning before the mixed content detection was moved into WebKit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>153956</commentid>
    <comment_count>1</comment_count>
      <attachid>41009</attachid>
    <who name="Collin Jackson">collinj</who>
    <bug_when>2009-10-11 17:22:35 -0700</bug_when>
    <thetext>Created attachment 41009
patch

I ran the existing mixed content http tests and they passed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>153961</commentid>
    <comment_count>2</comment_count>
      <attachid>41009</attachid>
    <who name="Adam Barth">abarth</who>
    <bug_when>2009-10-11 19:49:50 -0700</bug_when>
    <thetext>Comment on attachment 41009
patch

Thanks Collin!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>153967</commentid>
    <comment_count>3</comment_count>
      <attachid>41009</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2009-10-11 20:15:18 -0700</bug_when>
    <thetext>Comment on attachment 41009
patch

Clearing flags on attachment: 41009

Committed r49431: &lt;http://trac.webkit.org/changeset/49431&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>153968</commentid>
    <comment_count>4</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2009-10-11 20:15:22 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>41009</attachid>
            <date>2009-10-11 17:22:35 -0700</date>
            <delta_ts>2009-10-11 20:15:18 -0700</delta_ts>
            <desc>patch</desc>
            <filename>mixed-content.patch</filename>
            <type>text/plain</type>
            <size>1761</size>
            <attacher name="Collin Jackson">collinj</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYkNvcmUvQ2hhbmdlTG9n
CShyZXZpc2lvbiA0OTQyOSkKKysrIFdlYkNvcmUvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBA
IC0xLDMgK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