Commit graph

5408 commits

Author SHA1 Message Date
Ms2ger
747bfc6f15 Implement global.console in workers. 2014-07-15 22:29:04 +02:00
Ms2ger
3074b4747a Store the JSContext in a field on the worker global scope. 2014-07-15 22:29:04 +02:00
Ms2ger
b11440750b Load scripts in workers. 2014-07-15 22:29:03 +02:00
Ms2ger
7b7303e6bc Add a constructor for DedicatedWorkerGlobalScope. 2014-07-15 22:29:03 +02:00
Ms2ger
2d74f4d8d8 Spawn a thread for workers. 2014-07-15 22:29:03 +02:00
Ms2ger
25abe8b289 Parse the URL passed to the Worker constructor. 2014-07-15 22:29:03 +02:00
Ms2ger
d8152646f3 Add worker scope variants to the Global enums. 2014-07-15 22:29:03 +02:00
Ms2ger
a345f413cb Implement stub classes for WorkerGlobalScope and DedicatedWorkerGlobalScope.
Part of #2811.
2014-07-15 22:29:03 +02:00
Ms2ger
712955e96a Implement a stub Worker interface.
Part of #2811.
2014-07-15 22:29:03 +02:00
Ms2ger
d97ec69957 Merge pull request #2839 from Ms2ger/globals
Introduce abstractions for global scopes; r=Manishearth,larsberg
2014-07-15 22:28:43 +02:00
Ms2ger
df9d063b36 Add newlines in global.rs. 2014-07-15 20:09:07 +02:00
Ms2ger
350a6080d7 Support FormData outside Window scopes. 2014-07-15 20:08:11 +02:00
Lars Bergstrom
f816a92c72 Merge pull request #2825 from Ms2ger/wpt-expectations
Update web-platform-tests expectations.
2014-07-15 09:07:37 -05:00
Ms2ger
829259fb79 Introduce abstractions for global scopes.
Part of #2811.
2014-07-15 15:33:57 +02:00
Ms2ger
a14bb68c3f Remove some Cells for immutable members. 2014-07-15 15:33:57 +02:00
Ms2ger
e8d013794b Make some DOM fields private.
Relevant to #2242.
2014-07-15 15:33:56 +02:00
Ms2ger
a665fec9d0 Put some 'use' statements in alphabetical order. 2014-07-15 15:33:56 +02:00
Ms2ger
954ab7a2e3 Simplify the implementation of cx_for_dom_reflector. 2014-07-15 15:33:56 +02:00
Ms2ger
f963ed99ac Rename variables that refer to global objects.
This clarifies whether those variables will point to a Window object or an
arbitrary global object.

Note in particular that all IDL Constructors will accept an arbitrary global
object.
2014-07-15 15:33:56 +02:00
Lars Bergstrom
ab1a188e95 Merge pull request #2838 from Ms2ger/text-clone
Remove an unnecessary string copy in the Text constructor.
2014-07-15 08:30:37 -05:00
Ms2ger
054ab27e3b Remove an unnecessary string copy in the Text constructor. 2014-07-15 14:19:33 +02:00
Ms2ger
cd87775d4e Merge pull request #2826 from Ms2ger/get_attribute_parts-slices
Return slices from get_attribute_parts; r=Manishearth
2014-07-15 10:57:20 +02:00
Ms2ger
46c906ccd6 Merge pull request #2830 from Ms2ger/constructor-unused-variable
Remove the unused 'obj' local from the construct hook; r=Manishearth
2014-07-15 10:56:47 +02:00
Ms2ger
d0a3619cd9 Merge pull request #2836 from zwarich/image-cache-comment
Fix comments in image_cache_task; r=Ms2ger
2014-07-15 10:30:39 +02:00
Matt Brubeck
ad08a11fa2 Merge pull request #2837 from mbrubeck/comment-fix
Fix comment about "impossible" render messages. r=zwarich
2014-07-14 18:09:51 -07:00
Matt Brubeck
7b79cb4092 Comment spelling fix 2014-07-14 17:30:00 -07:00
Matt Brubeck
dc4709dfde Fix comment about "impossible" render messages.
These messages are not impossible; they happen when a page contains iframes.
2014-07-14 17:07:24 -07:00
Cameron Zwarich
99987a2eb7 Fix comments in image_cache_task
The Cell that used to be here is now gone, and there is a typo in
another comment.
2014-07-14 16:12:47 -07:00
Manish Goregaokar
a8e8105cea Merge pull request #2833 from Ms2ger/attrlist-window
Remove the unused window member of AttrList.
2014-07-14 22:16:55 +05:30
Manish Goregaokar
2d4d9afcda Merge pull request #2834 from Ms2ger/file-window
Remove the unused window field from File; r=Manishearth
2014-07-14 22:15:44 +05:30
Ms2ger
1d27e96eca Return slices from get_attribute_parts. 2014-07-14 18:39:02 +02:00
Lars Bergstrom
1c61963b51 Merge pull request #2803 from nnethercote/jemalloc-stats
Include some jemalloc stats in the -m measurements.
2014-07-14 11:23:45 -05:00
Ms2ger
879aa92550 Merge pull request #2829 from Ms2ger/validitystate-window
Remove the unused window field from ValidityState; r=Manishearth
2014-07-14 18:23:00 +02:00
Ms2ger
80a932ac3a Merge pull request #2831 from Ms2ger/perf-cleanup
Simplify the initialization of Performance; r=Manishearth
2014-07-14 18:22:20 +02:00
Ms2ger
c8760d0228 Merge pull request #2832 from Ms2ger/nodelist-window
Remove the unused window fields from NodeList and HTMLCollection; r=Manishearth
2014-07-14 18:21:57 +02:00
Lars Bergstrom
45f72397e8 Merge pull request #2800 from SimonSapin/travis-email
Enable email notifications from Travis CI
2014-07-14 11:18:00 -05:00
Lars Bergstrom
08bc68e8c8 Merge pull request #2827 from glennw/add-string-cache
Add stringcache to build, now that phf is working on android
2014-07-14 11:13:33 -05:00
Ms2ger
5aceb80279 Remove the unused window field from File. 2014-07-14 18:04:51 +02:00
Ms2ger
6190281945 Remove the unused window member of AttrList. 2014-07-14 17:46:59 +02:00
Ms2ger
c747df0e59 Remove the unused window field from HTMLCollection. 2014-07-14 17:14:52 +02:00
Ms2ger
7b9cdf4c1e Remove the unused window field from NodeList. 2014-07-14 17:14:34 +02:00
Ms2ger
31bd6f3fc6 Simplify the initialization of Performance. 2014-07-14 12:18:31 +02:00
Ms2ger
a51ed7045c Remove the unused 'obj' local from the construct hook. 2014-07-14 11:42:42 +02:00
Ms2ger
9317ff137a Remove the unused window field from ValidityState.
It is only necessary if the ValidityState would create new objects, which it
doesn't.
2014-07-14 11:20:32 +02:00
Glenn Watson
9af9ce4bc0 Add stringcache to build, now that phf is working on android 2014-07-14 10:17:42 +10:00
Ms2ger
91de702edb Merge pull request #2824 from jgraham/remove_attribute_str
Make Element.remove_attribute take &str instead of DOMString; r=Ms2ger
2014-07-13 20:18:36 +02:00
Ms2ger
74a08cc8a2 Update web-platform-tests expectations. 2014-07-13 19:54:41 +02:00
James Graham
130cf760ee Make Element.remove_attribute take &str instead of DOMString 2014-07-13 18:31:46 +01:00
Ms2ger
f99d8cef9f Merge pull request #2821 from Ms2ger/update-rust-mozjs
Update the rust-mozjs submodule pointer; r=jdm
2014-07-13 17:30:41 +02:00
Ms2ger
a7447a4302 Merge pull request #2820 from Ms2ger/RegisterBindings
Move the call to RegisterBindings::Register into WindowBinding::Wrap; r=jdm
2014-07-13 17:21:23 +02:00