When constructing a JS wrapper object, there is always going to be a corresponding DOM object. Therefore we should pass the DOM object by Ref&& rather than PassRefPtr.
Created attachment 245462 [details] Patch
Comment on attachment 245462 [details] Patch Clearing flags on attachment: 245462 Committed r179353: <http://trac.webkit.org/changeset/179353>
All reviewed patches have been landed. Closing bug.
Several WebGL tests started to flakily fail around the time of this change. Can it be the culprit? http://webkit-test-results.appspot.com/dashboards/flakiness_dashboard.html#showAllRuns=true&tests=webgl%2F1.0.2%2Fconformance%2Fglsl%2Ffunctions%2Fglsl-function-cos.html