<?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>156001</bug_id>
          
          <creation_ts>2016-03-29 19:05:06 -0700</creation_ts>
          <short_desc>Web Inspector: Console is unusable on sites with frequent Blocked Messages (theverge.com)</short_desc>
          <delta_ts>2026-01-12 09:01:54 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Web Inspector</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>152220</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Joseph Pecoraro">joepeck</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>graouts</cc>
    
    <cc>inspector-bugzilla-changes</cc>
    
    <cc>joepeck</cc>
    
    <cc>mbish2013</cc>
    
    <cc>nvasilyev</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1178914</commentid>
    <comment_count>0</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2016-03-29 19:05:06 -0700</bug_when>
    <thetext>* SUMMARY
Console is unusable on sites with frequent Blocked Messages (theverge.com).

Non-stop console error messages:
CONSOLE ERROR Blocked a frame with origin &quot;http://tpc.googlesyndication.com&quot; from accessing a frame with origin &quot;http://www.theverge.com&quot;. Protocols, domains, and ports must match.
CONSOLE ERROR Blocked a frame with origin &quot;http://tpc.googlesyndication.com&quot; from accessing a frame with origin &quot;http://www.theverge.com&quot;. Protocols, domains, and ports must match.

* STEPS TO REPRODUCE
1. Inspect &lt;http://www.theverge.com&gt;
  =&gt; Non-stop blocked messages to console

* NOTES
Other browsers do not have this error message spammed to their console. Is WebKit doing something wrong? Can we reduce this spam somehow?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1178915</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2016-03-29 19:05:33 -0700</bug_when>
    <thetext>&lt;rdar://problem/25431270&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1194589</commentid>
    <comment_count>2</comment_count>
    <who name="Timothy Hatcher">timothy</who>
    <bug_when>2016-05-18 20:04:09 -0700</bug_when>
    <thetext>Is this better after the recent console changes?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1196090</commentid>
    <comment_count>3</comment_count>
    <who name="Timothy Hatcher">timothy</who>
    <bug_when>2016-05-24 17:26:53 -0700</bug_when>
    <thetext>&lt;rdar://problem/25301506&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1245021</commentid>
    <comment_count>4</comment_count>
    <who name="Blaze Burg">bburg</who>
    <bug_when>2016-10-26 21:52:25 -0700</bug_when>
    <thetext>Still happens a lot. We could reduce it by doing a better job of counting duplicates. In some cases we don&apos;t count it with previous warnings. I think it would be best to just show this inline and on a security audits page, not in the console.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1260272</commentid>
    <comment_count>5</comment_count>
    <who name="Nikita Vasilyev">nvasilyev</who>
    <bug_when>2016-12-15 14:45:54 -0800</bug_when>
    <thetext>Making console only render messages that are in the viewport would solve this as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1260501</commentid>
    <comment_count>6</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2016-12-15 19:39:08 -0800</bug_when>
    <thetext>(In reply to comment #5)
&gt; Making console only render messages that are in the viewport would solve
&gt; this as well.

I don&apos;t think that would help here. The issue here is the deluge of &quot;blocked&quot; messages makes the console unusable. Having the console be fast but still filled with messages would still be unusable in this respect.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1276237</commentid>
    <comment_count>7</comment_count>
    <who name="Michael Bishop">mbish2013</who>
    <bug_when>2017-02-13 10:38:59 -0800</bug_when>
    <thetext>(In reply to comment #6)
&gt; (In reply to comment #5)
&gt; &gt; Making console only render messages that are in the viewport would solve
&gt; &gt; this as well.
&gt; 
&gt; I don&apos;t think that would help here. The issue here is the deluge of
&gt; &quot;blocked&quot; messages makes the console unusable. Having the console be fast
&gt; but still filled with messages would still be unusable in this respect.

Related Chromium thread that resolves exactly this issue in the Chrome fork of webkit: https://bugs.chromium.org/p/chromium/issues/detail?id=17325

The issue stems from cross-domain iframe access attempts that violate the same-origin policy; even when wrapped in a try/catch block, this message is still output. See the following jsfiddle for a simple example showing that the try/catch logic evaluates correctly, but the access attempt is still logged despite the catch. 

There&apos;s a lot of interest from the adtech industry in resolving this issue, since it makes debugging in Safari browsers difficult to impossible.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1276240</commentid>
    <comment_count>8</comment_count>
    <who name="Michael Bishop">mbish2013</who>
    <bug_when>2017-02-13 10:40:18 -0800</bug_when>
    <thetext>(In reply to comment #7)
&gt; (In reply to comment #6)
&gt; &gt; (In reply to comment #5)
&gt; &gt; &gt; Making console only render messages that are in the viewport would solve
&gt; &gt; &gt; this as well.
&gt; &gt; 
&gt; &gt; I don&apos;t think that would help here. The issue here is the deluge of
&gt; &gt; &quot;blocked&quot; messages makes the console unusable. Having the console be fast
&gt; &gt; but still filled with messages would still be unusable in this respect.
&gt; 
&gt; Related Chromium thread that resolves exactly this issue in the Chrome fork
&gt; of webkit: https://bugs.chromium.org/p/chromium/issues/detail?id=17325
&gt; 
&gt; The issue stems from cross-domain iframe access attempts that violate the
&gt; same-origin policy; even when wrapped in a try/catch block, this message is
&gt; still output. See the following jsfiddle for a simple example showing that
&gt; the try/catch logic evaluates correctly, but the access attempt is still
&gt; logged despite the catch. 
&gt; 
&gt; There&apos;s a lot of interest from the adtech industry in resolving this issue,
&gt; since it makes debugging in Safari browsers difficult to impossible.

Edit: Actually including the JSFidddle. :) 

http://jsfiddle.net/90bnkztj/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1283965</commentid>
    <comment_count>9</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2017-03-06 14:32:16 -0800</bug_when>
    <thetext>This is happening on reddit.com now as well. It happens about 10+ times a second.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>