This will allow us to turn JSGlobalThis into a more generic proxy.
Created attachment 165513 [details] Fix
Comment on attachment 165513 [details] Fix r=me
Fixed in r129456
After this patch it seems, http/tests/security/xss-eval.html started failing on EFL port with the following diff: --- /home/buildslave-1/webkit-buildslave/efl-linux-64-debug/build/layout-test-results/http/tests/security/xss-eval-expected.txt +++ /home/buildslave-1/webkit-buildslave/efl-linux-64-debug/build/layout-test-results/http/tests/security/xss-eval-actual.txt @@ -5,7 +5,7 @@ If the test passes, you'll see a pass message below. PASS: eval.call(frames[0], 'document') should be EvalError and is. -PASS: childEval.call(frames[0], 'document') should be EvalError and is. +FAIL: childEval.call(frames[0], 'document') should be EvalError but instead is [object HTMLDocument]. PASS: childEvalCaller('document') should be TypeError and is. -PASS: childLocalEvalCaller('document') should be EvalError and is. +FAIL: childLocalEvalCaller('document') should be EvalError but instead is [object HTMLDocument].
(In reply to comment #4) > After this patch it seems, http/tests/security/xss-eval.html started failing on EFL port with the following diff: > --- /home/buildslave-1/webkit-buildslave/efl-linux-64-debug/build/layout-test-results/http/tests/security/xss-eval-expected.txt > +++ /home/buildslave-1/webkit-buildslave/efl-linux-64-debug/build/layout-test-results/http/tests/security/xss-eval-actual.txt > @@ -5,7 +5,7 @@ > If the test passes, you'll see a pass message below. > > PASS: eval.call(frames[0], 'document') should be EvalError and is. > -PASS: childEval.call(frames[0], 'document') should be EvalError and is. > +FAIL: childEval.call(frames[0], 'document') should be EvalError but instead is [object HTMLDocument]. > PASS: childEvalCaller('document') should be TypeError and is. > -PASS: childLocalEvalCaller('document') should be EvalError and is. > +FAIL: childLocalEvalCaller('document') should be EvalError but instead is [object HTMLDocument]. Same on mac: http://build.webkit.org/builders/Apple%20Lion%20Release%20WK1%20%28Tests%29/builds/3958
(In reply to comment #5) > Same on mac: > http://build.webkit.org/builders/Apple%20Lion%20Release%20WK1%20%28Tests%29/builds/3958 And same on Qt: http://build.webkit.org/builders/Qt%20Linux%20Release/builds/52514
new bug report to track the regression: https://bugs.webkit.org/show_bug.cgi?id=97529