Commit Graph

2263 Commits

Author SHA1 Message Date
Boris Zbarsky
bec6a79bcc Bug 1006718. Add some sanity static asserts about DOM object slot counts. r=peterv,jorendorff 2014-05-07 22:28:57 -04:00
Jan Varga
6ec4b75061 Bug 975696 - Split ArchiveReader and FileHandle implementation into separate dirs. r=bent f=baku
--HG--
rename : dom/file/ArchiveEvent.cpp => dom/archivereader/ArchiveEvent.cpp
rename : dom/file/ArchiveEvent.h => dom/archivereader/ArchiveEvent.h
rename : dom/file/ArchiveReader.cpp => dom/archivereader/ArchiveReader.cpp
rename : dom/file/ArchiveReader.h => dom/archivereader/ArchiveReader.h
rename : dom/file/ArchiveRequest.cpp => dom/archivereader/ArchiveRequest.cpp
rename : dom/file/ArchiveRequest.h => dom/archivereader/ArchiveRequest.h
rename : dom/file/ArchiveZipEvent.cpp => dom/archivereader/ArchiveZipEvent.cpp
rename : dom/file/ArchiveZipEvent.h => dom/archivereader/ArchiveZipEvent.h
rename : dom/file/ArchiveZipFile.cpp => dom/archivereader/ArchiveZipFile.cpp
rename : dom/file/ArchiveZipFile.h => dom/archivereader/ArchiveZipFile.h
rename : dom/file/test/test_archivereader.html => dom/archivereader/test/test_basic.html
rename : dom/file/test/test_archivereader_nonUnicode.html => dom/archivereader/test/test_nonUnicode.html
rename : dom/file/test/test_archivereader_zip_in_zip.html => dom/archivereader/test/test_zip_in_zip.html
rename : dom/file/test/test_bug_793311.html => dom/base/test/test_bug793311.html
rename : dom/file/AsyncHelper.cpp => dom/filehandle/AsyncHelper.cpp
rename : dom/file/AsyncHelper.h => dom/filehandle/AsyncHelper.h
rename : dom/file/File.cpp => dom/filehandle/File.cpp
rename : dom/file/File.h => dom/filehandle/File.h
rename : dom/file/FileHandle.cpp => dom/filehandle/FileHandle.cpp
rename : dom/file/FileHandle.h => dom/filehandle/FileHandle.h
rename : dom/file/FileHelper.cpp => dom/filehandle/FileHelper.cpp
rename : dom/file/FileHelper.h => dom/filehandle/FileHelper.h
rename : dom/file/FileRequest.cpp => dom/filehandle/FileRequest.cpp
rename : dom/file/FileRequest.h => dom/filehandle/FileRequest.h
rename : dom/file/FileService.cpp => dom/filehandle/FileService.cpp
rename : dom/file/FileService.h => dom/filehandle/FileService.h
rename : dom/file/FileStreamWrappers.cpp => dom/filehandle/FileStreamWrappers.cpp
rename : dom/file/FileStreamWrappers.h => dom/filehandle/FileStreamWrappers.h
rename : dom/file/LockedFile.cpp => dom/filehandle/LockedFile.cpp
rename : dom/file/LockedFile.h => dom/filehandle/LockedFile.h
rename : dom/file/MemoryStreams.cpp => dom/filehandle/MemoryStreams.cpp
rename : dom/file/MemoryStreams.h => dom/filehandle/MemoryStreams.h
rename : dom/file/MetadataHelper.cpp => dom/filehandle/MetadataHelper.cpp
rename : dom/file/MetadataHelper.h => dom/filehandle/MetadataHelper.h
rename : dom/file/moz.build => dom/filehandle/moz.build
rename : dom/file/nsIFileStorage.h => dom/filehandle/nsIFileStorage.h
rename : dom/file/test/dummy_worker.js => dom/filehandle/test/dummy_worker.js
rename : dom/file/test/helpers.js => dom/filehandle/test/helpers.js
rename : dom/file/test/mochitest.ini => dom/filehandle/test/mochitest.ini
rename : dom/file/test/moz.build => dom/filehandle/test/moz.build
rename : dom/file/test/test_append_read_data.html => dom/filehandle/test/test_append_read_data.html
rename : dom/file/test/test_getFile.html => dom/filehandle/test/test_getFile.html
rename : dom/file/test/test_getFileId.html => dom/filehandle/test/test_getFileId.html
rename : dom/file/test/test_location.html => dom/filehandle/test/test_location.html
rename : dom/file/test/test_lockedfile_lifetimes.html => dom/filehandle/test/test_lockedfile_lifetimes.html
rename : dom/file/test/test_lockedfile_lifetimes_nested.html => dom/filehandle/test/test_lockedfile_lifetimes_nested.html
rename : dom/file/test/test_lockedfile_ordering.html => dom/filehandle/test/test_lockedfile_ordering.html
rename : dom/file/test/test_overlapping_lockedfiles.html => dom/filehandle/test/test_overlapping_lockedfiles.html
rename : dom/file/test/test_progress_events.html => dom/filehandle/test/test_progress_events.html
rename : dom/file/test/test_readonly_lockedfiles.html => dom/filehandle/test/test_readonly_lockedfiles.html
rename : dom/file/test/test_request_readyState.html => dom/filehandle/test/test_request_readyState.html
rename : dom/file/test/test_stream_tracking.html => dom/filehandle/test/test_stream_tracking.html
rename : dom/file/test/test_success_events_after_abort.html => dom/filehandle/test/test_success_events_after_abort.html
rename : dom/file/test/test_truncate.html => dom/filehandle/test/test_truncate.html
rename : dom/file/test/test_workers.html => dom/filehandle/test/test_workers.html
rename : dom/file/test/test_write_read_data.html => dom/filehandle/test/test_write_read_data.html
2014-05-07 16:32:12 +02:00
Ting-Yu Lin
a4da8b744e Bug 879917 - part 2: Emit useful message on dictionary name collisions. r=bz 2014-05-05 21:50:00 +02:00
Ting-Yu Lin
733a5f0b2e Bug 879917 - part 1: Strip trailing whitespaces in WebIDL.py. r=bz 2014-05-05 21:24:00 +02:00
Bobby Holley
c50411e058 Bug 997987 - Cache the system principal on nsContentUtils and remove nsIScriptSecurityManager::SubjectPrincipalIsSystem. r=Ms2ger,sr=bz 2014-05-06 15:43:03 -07:00
Boris Zbarsky
ea7478fa08 Bug 997285 part 2. Add [ExceptionClass] support to WebIDL. r=peterv 2014-05-05 16:01:57 -04:00
Boris Zbarsky
2b052eec3c Bug 1001157. Assert that there is no exception pending on the JSContext afer a DOM call if the call was not marked as throwing or if it did not throw on the ErrorResult. r=peterv 2014-05-05 16:01:58 -04:00
Wes Kocher
16c59c13d3 Backed out 4 changesets (bug 997285) for mochitest-2,3 and dt3 bustages on a CLOSED TREE r=bz
Backed out changeset 1bc5b733beac (bug 997285)
Backed out changeset ec145c86be71 (bug 997285)
Backed out changeset c0b8aef8b570 (bug 997285)
Backed out changeset 477094180dff (bug 997285)
2014-05-05 14:14:11 -07:00
Wes Kocher
1ddc916438 Backed out changeset 745c46904041 (bug 1001157) for mochitest2,3 and dt3 bustages on a CLOSED TREE r=bz 2014-05-05 14:12:53 -07:00
Boris Zbarsky
35be4d0568 Bug 1001157. Assert that there is no exception pending on the JSContext afer a DOM call if the call was not marked as throwing or if it did not throw on the ErrorResult. r=peterv 2014-05-05 16:01:58 -04:00
Boris Zbarsky
80ad02a4b4 Bug 997285 part 2. Add [ExceptionClass] support to WebIDL. r=peterv 2014-05-05 16:01:57 -04:00
Ms2ger
76d4b3a6bf Bug 995664 - Move CSSRuleList to WebIDL; r=bz
As CSSRuleList is the last consumer of nsArraySH and nsGenericArraySH, this
also removes those classes.
2014-05-03 09:32:54 +02:00
Boris Zbarsky
914525f2b6 Bug 1004766. Make sure to enter the compartment of our new global before working with it when wrapping global objects. r=nsm 2014-05-03 01:08:07 -04:00
Andrew Osmond
b8f1f421e9 Bug 999464 - Standardize on DOMPoint and thus eliminate need for CameraPoint. r=bz, r=mikeh 2014-05-01 15:09:00 -04:00
Gene Lian
c9cca07e6c Bug 949325 - C++ wrapper to support DataStore API on the worker (part 2-3, dispatch tasks on the worker to the main thread). r=baku,khuey f=nsm 2014-02-24 21:57:15 +08:00
Jon Coppeard
bed7fc43d9 Bug 959787 - Handlify remaining JS APIs r=terrence r=bz r=bholley 2014-04-30 10:10:33 +01:00
Rodrigo Rodriguez Jr.
0a5bccece7 Bug 952650 (part 8) - Remove JSVAL_TO_STRING. r=njn.
--HG--
extra : rebase_source : 61ab9459c00849027498904863647e65453a1a43
2014-04-27 19:45:46 -07:00
Michael Shuen
2a4c7b090c Bug 972385 - Make JS::AutoValueVector subscript operator return handles. r=jonco, smaug 2014-04-28 16:53:00 +02:00
Boris Zbarsky
b6824005fe Bug 942121. Fix WebIDL dictionary member tracing to null-check nullable object types before trying to trace them, since passing pointer-to-null to JS_CallObjectTracer is not OK. r=smaug 2014-04-26 21:50:00 -04:00
Boris Zbarsky
2d3a3e88ce Bug 1000944. Allow unions and dictionaries that contain non-SpiderMonkey WebIDL interface types to be copy-constructed. r=dzbarsky 2014-04-26 21:49:59 -04:00
Boris Zbarsky
d558bfb282 Bug 1000675. Don't always include nsContentUtils in example codegen, fix example header guards to not end with __, don't use fully-qualified names in argument types when those argument types are in the mozilla::dom namespace already, and include headers from mozilla/dom. r=jst 2014-04-26 21:49:59 -04:00
Birunthan Mohanathas
4de1915f30 Bug 900903 - Part 2: Change uses of numbered macros in nsCycleCollectionParticipant.h to the variadic variants. r=smaug 2014-04-25 12:49:00 -04:00
Jason Orendorff
b4e94a9f46 Bug 547140, part 4 - Remove flags argument from resolve hooks. r=Waldo. 2014-04-25 16:11:02 -05:00
Jason Orendorff
d50e6f5a9b Bug 547140, part 2 - Remove flags argument from JS_GetPropertyDescriptor and friends. r=Waldo. 2014-04-25 16:11:01 -05:00
Jason Orendorff
db966f6c54 Bug 987007, part 2a - Instead of generating identical DOMProxyHandler::set() methods for many interfaces, implement it in a common base class. r=bz.
--HG--
extra : rebase_source : 15e81591de2a7c07b34a23143b876feadc2d7a1e
2014-04-25 15:07:18 -05:00
Jason Orendorff
f7acb4f179 Bug 987007, part 2 - Handle assignment to named and indexed setters without using JSRESOLVE_ASSIGNING. r=bz, r=bholley.
--HG--
extra : rebase_source : a26eb85a086a18219a4d423cd7ad49a92cfd2584
2014-04-25 15:07:18 -05:00
Jason Orendorff
9c8346b489 Bug 987007, part 1 - Make CGProxyIndexed{Getter,Setter,PresenceChecker,Deleter} return finished C++ code with the type already in it (rather than a template to be filled in later). r=bz.
--HG--
extra : rebase_source : 019165a1081d442b9805eb11d9be2e37f860841a
2014-04-25 15:07:17 -05:00
Jason Orendorff
0a2f37d760 Bug 987618 - More cosmetic changes in Codegen.py. r=bz.
--HG--
extra : rebase_source : 5f495765ffaf3f073cf63a78ea92e74ae16d3bae
2014-04-25 11:50:34 -05:00
Jason Orendorff
9db1fcfa1c Bug 986492, part 3 - Address review comments from peterv on part 2. Remove bogus extra semicolons from Codegen.py output. Fix a spelling error.
--HG--
extra : rebase_source : 0230a4f9bef4690d7382e5982670ccad3f607d0b
2014-04-25 11:50:34 -05:00
Jason Orendorff
0cbc6fd44f Bug 986492, part 2 - Use fill() and dedent() throughout Codegen.py. Change dedent() to strip an initial blank line from its argument, if present. r=peterv.
--HG--
extra : rebase_source : 41a423806998eeb90fc66bf3663ead5bacd2c64b
2014-04-25 11:50:34 -05:00
Aryeh Gregor
45fbfe5e45 Bug 950386 - Move mozilla::Selection to mozilla::dom::Selection; r=ehsan 2014-04-10 19:09:40 +03:00
Terrence Cole
4ab31f28b9 Bug 807168 - Make JSTracer into a real C++ class and kill the macro accessors; r=jonco,mccr8
--HG--
rename : js/public/Tracer.h => js/public/TracingAPI.h
2014-04-11 15:19:05 -07:00
Ryan VanderMeulen
fd959f4c10 Merge inbound to m-c. 2014-04-17 22:31:17 -04:00
Boris Zbarsky
04d5a7c98d Bug 996831. Add a ToJSValue overload for nsresult, to allow rejecting promises from C++ more easily. r=bholley 2014-04-16 15:13:41 -04:00
Boris Zbarsky
5893d08906 Bug 996474. Add a ToJSValue overload that takes a Handle<Value>. r=bholley 2014-04-16 15:13:41 -04:00
Ryan VanderMeulen
3b8839df4c Merge b2g-inbound to m-c. 2014-04-16 22:22:45 -04:00
Ryan VanderMeulen
1829e78b29 Backed out 3 changesets (bug 996474, bug 996831) for B2G bustage on a CLOSED TREE.
Backed out changeset 8f98a4c2257f (bug 996831)
Backed out changeset 7acce569bd84 (bug 996831)
Backed out changeset 1845b09c7578 (bug 996474)
2014-04-16 19:31:41 -04:00
Boris Zbarsky
36fecff94a Bug 996831 followup to fix silly gcc build bustage and reopen the CLOSED TREE 2014-04-16 16:17:01 -04:00
Boris Zbarsky
e152157843 Bug 996831. Add a ToJSValue overload for nsresult, to allow rejecting promises from C++ more easily. r=bholley 2014-04-16 15:13:41 -04:00
Boris Zbarsky
5da84a89ff Bug 996474. Add a ToJSValue overload that takes a Handle<Value>. r=bholley 2014-04-16 15:13:41 -04:00
Carsten "Tomcat" Book
953ae45052 Merge m-c to b2g-i 2014-04-16 15:20:23 +02:00
Thomas Zimmermann
24939db69b Bug 904588: Convert MozIccManager to WebIDL, r=htsai, r=smaug
--HG--
rename : dom/icc/interfaces/nsIDOMIccManager.idl => dom/webidl/MozIccManager.webidl
2014-04-16 09:30:28 +02:00
Bobby Holley
f223b1107f Bug 989528 - Rename AutoSystemCaller to AutoNoJSAPI, and assert against pre-existing exceptions. r=bz 2014-04-14 20:27:00 -07:00
Boris Zbarsky
ac9f0ba11d Bug 843840 part 2. Add a way to ask DOM proxies for only their enumerable property names, and use that in the enumerate hook. r=peterv 2014-04-15 22:58:44 -04:00
Boris Zbarsky
938ba48ab7 Bug 843840 part 1. Add a way to ask DOM proxies with a named getter whether a property is enumerable or not and use that information in getOwnPropertyDescriptor. r=peterv 2014-04-15 22:58:44 -04:00
Boris Zbarsky
7d2331d5b5 Bug 995546. Nix bogus GetParentObject methods on WebIDL objects without a wrapper cache. r=bholley 2014-04-15 22:58:43 -04:00
Terrence Cole
c97877c686 Bug 959787 - Handlify JS_DefineProperty; r=Waldo, r=bz
--HG--
extra : rebase_source : 87991ed47ed071550af4e4125eea54a66fdb0071
2014-01-21 18:11:17 -08:00
Richard Barnes
1f1627b4e8 Bug 997258 - Update TypedArrayCreator to be compatible with simplified Typed Array interface. r=bz 2014-04-16 13:56:52 -04:00
Jon Coppeard
a775e98530 Bug 912581 - Make JS_Add*Root APIs take Heap<T> r=terrence r=bz r=bholley 2014-04-16 09:47:57 +01:00
Gene Lian
42c9f63c01 Bug 949325 - C++ wrapper to support DataStore API on the worker (part 1, C++ stubs for DataStore and DataStoreCursor). r=baku,ehsan
--HG--
rename : dom/datastore/DataStoreCursor.jsm => dom/datastore/DataStoreCursorImpl.jsm
rename : dom/datastore/DataStore.jsm => dom/datastore/DataStoreImpl.jsm
2013-12-20 16:17:49 +08:00