<?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>43196</bug_id>
          
          <creation_ts>2010-07-29 09:41:56 -0700</creation_ts>
          <short_desc>Java applets should be blocked when plugins are blocked (in Chromium, at least)</short_desc>
          <delta_ts>2010-07-29 15:10:03 -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>Java</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Bernhard Bauer">bauerb</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>andersca</cc>
    
    <cc>brettw</cc>
    
    <cc>commit-queue</cc>
    
    <cc>darin</cc>
    
    <cc>fishd</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>257740</commentid>
    <comment_count>0</comment_count>
    <who name="Bernhard Bauer">bauerb</who>
    <bug_when>2010-07-29 09:41:56 -0700</bug_when>
    <thetext>After removing click-to-play in Chromium, Java applets aren&apos;t blocked when plugins are disabled in the content setting (http://crbug.com/50506). 

Turns out, this was already broken some time before click-to-play landed, namely since http://trac.webkit.org/changeset/60178. Even before that, applets were only blocked pretty much as a side effect of the code removed in that revision.

Patch forthcoming.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>257742</commentid>
    <comment_count>1</comment_count>
      <attachid>62964</attachid>
    <who name="Bernhard Bauer">bauerb</who>
    <bug_when>2010-07-29 09:49:01 -0700</bug_when>
    <thetext>Created attachment 62964
Check if plugins are allowed before creating a Java applet</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>257747</commentid>
    <comment_count>2</comment_count>
    <who name="Bernhard Bauer">bauerb</who>
    <bug_when>2010-07-29 09:53:53 -0700</bug_when>
    <thetext>Bonus: with this patch, you also get the plugins blocked bubble (you didn&apos;t before).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>257789</commentid>
    <comment_count>3</comment_count>
      <attachid>62964</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2010-07-29 11:23:22 -0700</bug_when>
    <thetext>Comment on attachment 62964
Check if plugins are allowed before creating a Java applet

This is not a Chromium-specific patch. Do all platforms want to block Java if plug-ins are blocked?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>257884</commentid>
    <comment_count>4</comment_count>
      <attachid>62964</attachid>
    <who name="Darin Fisher (:fishd, Google)">fishd</who>
    <bug_when>2010-07-29 14:25:13 -0700</bug_when>
    <thetext>Comment on attachment 62964
Check if plugins are allowed before creating a Java applet

R+CQ=me

No other ports override allowPlugins to block plugins on a per-frame basis.
Other ports use the global settings to block Java, etc.  It seems appropriate
to me to treat Java as a plugin.  (It is an ordinary NPAPI plugin these days,
at least on Windows.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>257905</commentid>
    <comment_count>5</comment_count>
      <attachid>62964</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-07-29 15:09:58 -0700</bug_when>
    <thetext>Comment on attachment 62964
Check if plugins are allowed before creating a Java applet

Clearing flags on attachment: 62964

Committed r64311: &lt;http://trac.webkit.org/changeset/64311&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>257906</commentid>
    <comment_count>6</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-07-29 15:10:03 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>62964</attachid>
            <date>2010-07-29 09:49:01 -0700</date>
            <delta_ts>2010-07-29 15:09:58 -0700</delta_ts>
            <desc>Check if plugins are allowed before creating a Java applet</desc>
            <filename>block_java.patch</filename>
            <type>text/plain</type>
            <size>1335</size>
            <attacher name="Bernhard Bauer">bauerb</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYkNvcmUvQ2hhbmdlTG9nIGIvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXgg
YWFiNTliYS4uYzdkYTg2YiAxMDA2NDQKLS0tIGEvV2ViQ29yZS9DaGFuZ2VMb2cKKysrIGIvV2Vi
Q29yZS9DaGFuZ2VMb2cKQEAgLTEsMyArMSwxMyBAQAorMjAxMC0wNy0yOSAgQmVybmhhcmQgQmF1
ZXIgIDxiYXVlcmJAY2hyb21pdW0ub3JnPgorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAo
T09QUyEpLgorCisgICAgICAgIENoZWNrIGlmIHBsdWdpbnMgYXJlIGFsbG93ZWQgYmVmb3JlIGNy
ZWF0aW5nIGEgSmF2YSBhcHBsZXQuCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3No
b3dfYnVnLmNnaT9pZD00MzE5NgorCisgICAgICAgICogbG9hZGVyL1N1YmZyYW1lTG9hZGVyLmNw
cDoKKyAgICAgICAgKFdlYkNvcmU6OlN1YmZyYW1lTG9hZGVyOjpjcmVhdGVKYXZhQXBwbGV0V2lk
Z2V0KToKKwogMjAxMC0wNy0yOCAgWm9sdGFuIEhlcmN6ZWcgIDx6aGVyY3plZ0B3ZWJraXQub3Jn
PgogCiAgICAgICAgIFJldmlld2VkIGJ5IE5pa29sYXMgWmltbWVybWFubi4KZGlmZiAtLWdpdCBh
L1dlYkNvcmUvbG9hZGV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