Title: [135560] trunk/Source/WebCore
Revision
135560
Author
[email protected]
Date
2012-11-22 23:32:46 -0800 (Thu, 22 Nov 2012)

Log Message

[V8] Make worker context prototype chain match other browsers
https://bugs.webkit.org/show_bug.cgi?id=103057

Patch by Dan Carney <[email protected]> on 2012-11-22
Reviewed by Adam Barth.

The following should be defined in a worker:
Object.getOwnPropertyDescriptor(this.__proto__, "postMessage")
It is currently undefined in chrome only. This patch fixes that.

No new tests. No change in functionality.

* bindings/scripts/CodeGeneratorV8.pm:
(GenerateImplementation):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (135559 => 135560)


--- trunk/Source/WebCore/ChangeLog	2012-11-23 06:39:18 UTC (rev 135559)
+++ trunk/Source/WebCore/ChangeLog	2012-11-23 07:32:46 UTC (rev 135560)
@@ -1,3 +1,19 @@
+2012-11-22  Dan Carney  <[email protected]>
+
+        [V8] Make worker context prototype chain match other browsers
+        https://bugs.webkit.org/show_bug.cgi?id=103057
+
+        Reviewed by Adam Barth.
+
+        The following should be defined in a worker:
+        Object.getOwnPropertyDescriptor(this.__proto__, "postMessage")
+        It is currently undefined in chrome only. This patch fixes that.
+
+        No new tests. No change in functionality.
+
+        * bindings/scripts/CodeGeneratorV8.pm:
+        (GenerateImplementation):
+
 2012-11-22  Rafael Brandao  <[email protected]>
 
         Remove PLATFORM(HAIKU) leftovers code

Modified: trunk/Source/WebCore/bindings/scripts/CodeGeneratorV8.pm (135559 => 135560)


--- trunk/Source/WebCore/bindings/scripts/CodeGeneratorV8.pm	2012-11-23 06:39:18 UTC (rev 135559)
+++ trunk/Source/WebCore/bindings/scripts/CodeGeneratorV8.pm	2012-11-23 07:32:46 UTC (rev 135560)
@@ -3047,7 +3047,7 @@
     instance->SetAccessCheckCallbacks(V8DOMWindow::namedSecurityCheck, V8DOMWindow::indexedSecurityCheck, v8::External::New(&V8DOMWindow::info), false);
 END
     }
-    if ($interfaceName eq "HTMLDocument") {
+    if ($interfaceName eq "HTMLDocument" or $interfaceName eq "DedicatedWorkerContext" or $interfaceName eq "SharedWorkerContext") {
         push(@implContent, <<END);
     desc->SetHiddenPrototype(true);
 END
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to