Changeset 201876 in webkit
- Timestamp:
- Jun 9, 2016, 11:47:21 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 5 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/workers/WorkerGlobalScope-properties-prototype-expected.txt (added)
-
LayoutTests/fast/workers/WorkerGlobalScope-properties-prototype.html (added)
-
LayoutTests/fast/workers/self-hasOwnProperty-expected.txt (modified) (1 diff)
-
LayoutTests/fast/workers/self-hasOwnProperty.html (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/bindings/scripts/CodeGeneratorJS.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r201875 r201876 1 2016-06-09 Chris Dumez <cdumez@apple.com> 2 3 WorkerGlobalScope attributes / operations should be on the prototype 4 https://bugs.webkit.org/show_bug.cgi?id=158568 5 <rdar://problem/26720079> 6 7 Reviewed by Geoffrey Garen. 8 9 * fast/workers/WorkerGlobalScope-properties-prototype-expected.txt: Added. 10 * fast/workers/WorkerGlobalScope-properties-prototype.html: Added. 11 Add layout test coverage. 12 13 * fast/workers/self-hasOwnProperty-expected.txt: 14 * fast/workers/self-hasOwnProperty.html: 15 Update test I added a couple of days ago because it wrongly expected 16 the 'navigator' property to be on the instance. This check was failing 17 in other browsers (Firefox and Chrome). 18 1 19 2016-06-09 Tim Horton <timothy_horton@apple.com> 2 20 -
trunk/LayoutTests/fast/workers/self-hasOwnProperty-expected.txt
r201808 r201876 6 6 self.hasOwnProperty('DedicatedWorkerGlobalScope'): true 7 7 self.hasOwnProperty('WorkerGlobalScope'): true 8 self.hasOwnProperty(' navigator'): true8 self.hasOwnProperty('postMessage'): true 9 9 PASS successfullyParsed is true 10 10 -
trunk/LayoutTests/fast/workers/self-hasOwnProperty.html
r201808 r201876 11 11 worker.postMessage("eval self.hasOwnProperty('DedicatedWorkerGlobalScope')"); 12 12 worker.postMessage("eval self.hasOwnProperty('WorkerGlobalScope')"); 13 worker.postMessage("eval self.hasOwnProperty(' navigator')");13 worker.postMessage("eval self.hasOwnProperty('postMessage')"); 14 14 worker.postMessage("eval DONE"); 15 15 -
trunk/Source/WebCore/ChangeLog
r201875 r201876 1 2016-06-09 Chris Dumez <cdumez@apple.com> 2 3 WorkerGlobalScope attributes / operations should be on the prototype 4 https://bugs.webkit.org/show_bug.cgi?id=158568 5 <rdar://problem/26720079> 6 7 Reviewed by Geoffrey Garen. 8 9 WorkerGlobalScope attributes / operations should be on the prototype 10 because WorkerGlobalScope is not marked as [Global] / [PrimaryGlobal]: 11 - https://html.spec.whatwg.org/multipage/workers.html#the-workerglobalscope-common-interface 12 - http://heycam.github.io/webidl/#es-attributes 13 - http://heycam.github.io/webidl/#es-operations 14 15 DedicatedWorkerGlobalScope is the interface that is marked as [Global] 16 and whose attributes / operations should be on the instance. 17 18 This brings the number of failures on http://w3c-test.org/workers/interfaces.worker 19 from 65 to 34. It also aligns our behavior with Firefox and Chrome. 20 21 Test: fast/workers/WorkerGlobalScope-properties-prototype.html 22 23 * bindings/scripts/CodeGeneratorJS.pm: 24 (InterfaceRequiresAttributesOnInstance): 25 (OperationShouldBeOnInstance): 26 1 27 2016-06-09 Tim Horton <timothy_horton@apple.com> 2 28 -
trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm
r201852 r201876 559 559 return 1 if $interface->isException; 560 560 561 return 1 if IsDOMGlobalObject($interface); 561 # FIXME: Add support for [PrimaryGlobal] / [Global]. 562 return 1 if IsDOMGlobalObject($interface) && $interface->name ne "WorkerGlobalScope"; 562 563 563 564 return 1 if InterfaceRequiresAttributesOnInstanceForCompatibility($interface); … … 597 598 my $function = shift; 598 599 599 return 1 if IsDOMGlobalObject($interface); 600 # FIXME: Add support for [PrimaryGlobal] / [Global]. 601 return 1 if IsDOMGlobalObject($interface) && $interface->name ne "WorkerGlobalScope"; 600 602 601 603 # FIXME: The bindings generator does not support putting runtime-enabled operations on the instance yet (except for global objects).
Note:
See TracChangeset
for help on using the changeset viewer.