gecko-dev/xpcom/tests/unit
Andrew McCreight 20b03783b4 Bug 1550770 - Error instead of implicitly converting XPCOM interfaces to builtinclass. r=nika
XPIDL has the requirement that [scriptable] interfaces with [notxpcom]
methods or attributes are [builtinclass]. Currently, if you don't
explicitly mark something builtinclass when it should be, then the
XPIDL compiler will just silently treat it like builtinclass. This
means that you can cause the JS implementation of an XPCOM to start
failing without any warning by marking a method notxpcom.

This patch instead makes it an error. A prior patch fixed the existing
instances in the tree that relied on the implicit behavior.

I also added a test that we reject such classes missing builtinclass
at compile time, as well as classes that inherit from builtinclass
interfaces without themselves being builtinclass. I left behind a part
of the runtime test for this behavior, but now this test just ensures
that you can't implement a [builtinclass] interface in JS.

Differential Revision: https://phabricator.services.mozilla.com/D30984

--HG--
extra : moz-landing-system : lando
2019-05-14 17:39:14 +00:00
..
data Bug 1545851, part 1 - Change test_process_directives.js to use nsIProperty. r=froydnj 2019-04-22 14:34:55 +00:00
bug725015.manifest
compmgr_warnings.manifest
head_xpcom.js
test_bug121341.js Bug 1520868 - Replacing AsyncOpen2 with AsyncOpen always r=valentin 2019-02-12 16:08:25 +00:00
test_bug325418.js
test_bug332389.js
test_bug333505.js
test_bug364285-1.js
test_bug374754.js
test_bug476919.js
test_bug478086.js
test_bug725015.js
test_bug745466.js
test_bug1434856.js
test_debugger_malloc_size_of.js
test_file_createUnique.js
test_file_equality.js
test_file_renameTo.js
test_hidden_files.js
test_home.js
test_iniParser.js Bug 1544286 - xpcom/ manual ESLint no-throw-literal fixes. r=erahm 2019-04-16 15:02:10 +00:00
test_ioutil.js
test_localfile.js
test_mac_bundle.js
test_notxpcom_scriptable.js Bug 1550770 - Error instead of implicitly converting XPCOM interfaces to builtinclass. r=nika 2019-05-14 17:39:14 +00:00
test_nsIMutableArray.js
test_nsIProcess_stress.js
test_nsIProcess.js
test_pipe.js
test_process_directives_child.js
test_process_directives.js Bug 1545851, part 1 - Change test_process_directives.js to use nsIProperty. r=froydnj 2019-04-22 14:34:55 +00:00
test_seek_multiplex.js
test_storagestream.js
test_streams.js Bug 1544834 - Replace deprecated generics in test code r=evilpie 2019-04-17 19:03:19 +00:00
test_stringstream.js
test_symlinks.js
test_systemInfo.js
test_versioncomparator.js
test_windows_cmdline_file.js
test_windows_registry.js
xpcshell.ini