[Webkit-unassigned] [Bug 131033] New: Security Policy error when using SVG image + foreign object as a WebGL texture

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 1 06:26:02 PDT 2014


https://bugs.webkit.org/show_bug.cgi?id=131033

           Summary: Security Policy error when using SVG image + foreign
                    object as a WebGL texture
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
               URL: http://www.maths-informatique-jeux.com/international/m
                    athml-in-webgl/threejs/
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebGL
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: fred.wang at free.fr
                CC: bfulgham at webkit.org, cfleizach at apple.com,
                    krit at webkit.org, mrobinson at webkit.org


Created an attachment (id=228278)
 --> (https://bugs.webkit.org/attachment.cgi?id=228278&action=review)
Screenshot of the testcase (Gecko)

The page

http://www.maths-informatique-jeux.com/international/mathml-in-webgl/threejs/

uses THREE.js to draw three squares with the following textures:

- A red PNG square: http://www.maths-informatique-jeux.com/international/mathml-in-webgl/threejs/32x32.png
- A green SVG square: http://www.maths-informatique-jeux.com/international/mathml-in-webgl/threejs/32x32.svg
- A blue SVG square with MathML foreign object: http://www.maths-informatique-jeux.com/international/mathml-in-webgl/threejs/32x32-mathml.svg

In attachment, I give a screenshot of the rendering in Gecko.

In WebKit, the two first squares render correctly, but the last one fails with "SecurityError: DOM Exception 18: An attempt was made to break through the security policy of the user agent.".

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list