Commit Graph
928 Commits
Author SHA1 Message Date
Brian Hackett 4c16410a4e Backed out changeset 072f8d4a9964 (bug 1355109) for causing crashes with various extensions. a=lizzard 2017-09-26 14:12:25 -04:00
Kris Maglione 1721ba5bed Bug 1369533: Return dead wrappers rather than null for dead CallbackObject values. r=bz
We don't have access to an appropriate context to create the dead wrapper in
when the callback is nuked, so instead, this patch creates a new dead wrapper
in the caller compartment each time the property is accessed. This is the same
behavior we'd get when trying to re-wrap a cross-compartment dead wrapper, so
it's consistent with the way we handle these situations elsewhere.

MozReview-Commit-ID: 3cMeR4z8EOe
2017-09-04 17:21:06 -07:00
Kris Maglione 60abf50eb7 Bug 1399997: Part 3 - Update module environment tests with TODOs for shared module eval bindings. r=tcampbell
MozReview-Commit-ID: LVTNnN3HlKK
2017-09-14 13:08:17 -07:00
Kris Maglione 51dc332f05 Bug 1398895: Part 2 - Ensure component loader initialization after user prefs load. r=mccr8
The script precompiler needs to begin its work very early in the startup
process in order to be effective. At the moment, this means before user
preferences are loaded. It also needs to be able to compile scripts into
the shared JSM global when that's in use, in order to avoid unnecessary script
clones.

Since we can't know whether global sharing is enabled by that point, instead,
we just always compile module scripts into the shared module global rather
than the XPC compillation scope.

This also changes the global sharing tests to make a failure to respect the
user preference value a fatal error.

MozReview-Commit-ID: G0NkSOl2vU9
2017-09-11 13:52:13 -07:00
Ted Campbell 6101acec85 Bug 1398601 - Add testcase for loading subscripts within a JSM r=kmag
MozReview-Commit-ID: I09eoUnQYCG
2017-09-10 14:57:04 -04:00
Phil Ringnalda 66ed3a445a Backed out 5 changesets (bug 1398601) for unexpected crashtest assertions
Backed out changeset b728872f4d9a (bug 1398601)
Backed out changeset 05957a92b1a5 (bug 1398601)
Backed out changeset f5c26c3407c0 (bug 1398601)
Backed out changeset eddc38b0afd0 (bug 1398601)
Backed out changeset 776a65d43a5e (bug 1398601)

MozReview-Commit-ID: 9lfUtdlZy7F
2017-09-12 20:11:49 -07:00
Ted Campbell 6c6fd9a514 Bug 1398601 - Add testcase for loading subscripts within a JSM r=kmag
MozReview-Commit-ID: I09eoUnQYCG
2017-09-10 14:57:04 -04:00
Phil Ringnalda fb35608dbf Backed out 4 changesets (bug 1398601) for Windows Marionette crashes @ ExecuteInExtensibleLexicalEnvironment
Backed out changeset 7aac2595bc17 (bug 1398601)
Backed out changeset 7a4bb5a1848a (bug 1398601)
Backed out changeset dd4af7998505 (bug 1398601)
Backed out changeset e9816be61b49 (bug 1398601)

MozReview-Commit-ID: LLJ99dkRQEg
2017-09-11 20:20:16 -07:00
Ted Campbell f110f4833d Bug 1398601 - Add testcase for loading subscripts within a JSM r=kmag
MozReview-Commit-ID: I09eoUnQYCG
2017-09-10 14:57:04 -04:00
Andrew McCreight a72d749bab Bug 1377587, part 1 - Always act like __exposedProps__ is missing. r=krizsa
This patch gently removes support for __exposedProps__ by changing
ExposedPropertiesOnly::check() to always return false, while still
failing silently in deny for some kinds of access.

The tests that I changed all involve testing the behavior with
__exposedProps__. I adjusted them to expect it to fail, or to adjust
the error message they get when they fail. That seemed better than
deleting them entirely.

Note that test_bug1065185.html had a bug, so that it never executed
the first case. I fixed that, and then fixed up the test to work when
__exposedProps__ is not supported.

This also removes various bits of the test framework that use
__exposedProps__, but don't actually need to.

MozReview-Commit-ID: 8fvkAmITmXY
2017-08-22 14:24:11 -07:00
Kris Maglione e96a539f0c Bug 1398499: Part 3 - Add Marionette tests for global sharing. r=mccr8
This tests both that the settings have the desired effect and that switching
between sharing enabled and sharing disabled without a startup cache flush
does not cause any issues.

Tests for user pref changes are currently non-fatal, since they're known not
to work reliably.

MozReview-Commit-ID: 1ZFwyiNf3da
2017-09-09 17:33:01 -07:00
Ted Campbell 6ea74569cf Bug 1394490 - Javascript loader environments test. r=kmag
This are some unit tests to track regressions in the environment
behavior exposed to embeddings for various javascript loaders inside
Gecko.

MozReview-Commit-ID: 8pn56Skwbat
2017-09-06 13:43:55 -04:00
Masatoshi Kimura 69cad753eb Bug 1098412 - Remove and update tests that use the legacy Iterator constructor. r=luke
MozReview-Commit-ID: G7q3ARzOYFf
2017-08-24 22:45:53 +09:00
Phil Ringnalda aa66b2ff8b Backed out 4 changesets (bug 1098412) for failing browser_webconsole_bug_632347_iterators_generators.js
Backed out changeset f4da55f291cb (bug 1098412)
Backed out changeset e9a0298824d6 (bug 1098412)
Backed out changeset 8281805e7c3c (bug 1098412)
Backed out changeset 1643079d7661 (bug 1098412)

MozReview-Commit-ID: 5kuHtUjx1UM
2017-08-28 21:28:26 -07:00
Masatoshi Kimura 3b3ca4618e Bug 1098412 - Remove and update tests that use the legacy Iterator constructor. r=luke
MozReview-Commit-ID: G7q3ARzOYFf
2017-08-24 22:45:53 +09:00
Carsten "Tomcat" Book b087432a96 merge mozilla-inbound to mozilla-central a=merge 2017-08-16 11:23:24 +02:00
Jan de Mooij 777018ee7b Bug 1390159 - Remove throw-on-set setProperty hooks on WrappedNatives. r=mrbkap 2017-08-16 09:01:56 +02:00
Wes Kocher d76abfe897 Merge m-c to autoland, a=merge
MozReview-Commit-ID: D96bIJACwZe
2017-08-15 19:16:12 -07:00
Masatoshi Kimura e40c1c203e Bug 1390106 - Stop using versioned scripts in js/xpconnect. r=mccr8
MozReview-Commit-ID: LP7bXQd7ahD
2017-08-14 20:45:14 +09:00
Bill McCloskey aafbf1c240 Bug 1382172 - Compute names for all JS-implemented XPCOM objects (r=mrbkap)
MozReview-Commit-ID: 4kPbqOpGYnq
2017-08-14 22:42:42 -07:00
Phil Ringnalda 01453b705a Backed out changeset c0c52209c8f2 (bug 1382172) for static build bustage
CLOSED TREE

MozReview-Commit-ID: 9GzjXjoIrp5
2017-08-14 22:23:57 -07:00
Bill McCloskey c372237a71 Bug 1382172 - Compute names for all JS-implemented XPCOM objects (r=mrbkap)
MozReview-Commit-ID: 4kPbqOpGYnq
2017-08-14 21:10:14 -07:00
Tooru Fujisawa 1d086a8dec Bug 1352312 - Enable Async Iteration. r=till 2017-08-15 20:18:00 +09:00
Makoto Kato fe67a51107 Bug 676965 - Turn on test_localeCompare.js on Android since we use ICU. r=gandalf
We should turn on test_localeCompare.js again on Android since we use ICU.

MozReview-Commit-ID: 1H0DsKpWkId
2017-08-02 17:21:03 +09:00
Jim Blandy 9f20002d87 Bug 1383161 - Return a dead wrapper when asked to wrap a dead WindowProxy object. r=kmag 2017-07-28 15:16:21 -07:00
Kris Maglione 62a259b24d Bug 1383215: Part 5 - Update tests that relied on loading the same JSM from multiple URLs.
MozReview-Commit-ID: KEXGiMrauH7
2017-07-21 18:01:42 -07:00
Brian Hackett c3ea362000 Bug 1355109 - Add IC for property reads on xrays, r=jandem,bz. 2017-07-21 07:49:53 -07:00
Christoph Kerschbaumer 1fac5c6207 Bug 1382815 - Convert more tests within js/xpconnect to comply with new data: URI inheritance model. r=smaug 2017-07-21 10:28:47 +02:00
Boris Zbarsky 59c9fac654 Bug 1381408. Make cross-origin-exposed non-symbol properties enumerable. r=bholley
The list of exposed properties can be gotten via
Object.getOwnPropertyNames/Symbols already, so there's nothing to be won from
the non-enumerability.

The web platform test changes are backports of
https://github.com/w3c/web-platform-tests/pull/6538 and
https://github.com/w3c/web-platform-tests/pull/6571 and
https://github.com/w3c/web-platform-tests/pull/6583

The js/xpconnect/tests/mochitest/*crossOriginObject* tests being removed are
just older versions of the web platfrom test.
2017-07-19 11:47:39 -04:00
Christoph Kerschbaumer d3c5466cec Bug 1380249 - Convert tests within js/xpconnect to comply with new data: URI inheritance model. r=bholley 2017-07-13 08:18:59 +02:00
Geoff Brown 04ab04e6b1 Bug 1255284 - Skip test_bug484459.xul on linux-opt for intermittent failures; r=me,test-only 2017-06-26 10:11:52 -06:00
Florian Quèze d0406d270c Bug 1374282 - script generated patch to remove Task.jsm calls, r=Mossop. 2017-06-22 12:51:42 +02:00
Alex Gaynor dd2a59500e Bug 1221148 - Allow passing blob:// URIs to mozIJSSubScriptLoader; r=smaug
This is useful for legacy addons as we increasingly lockdown filesystem access
in content processes.

MozReview-Commit-ID: AZbsSFpbIvt
2017-06-07 11:00:24 -04:00
Kris Maglione 0e0a0857ee Bug 1363301: Always provide live wrappers for ScriptSourceObjects. r=shu,bholley
MozReview-Commit-ID: LTNN66FywU4
2017-06-14 15:38:59 -07:00
Ehsan Akhgari a79ca5b5e4 Bug 1361461 - Dispatch the compartment-nuking part of WindowDestroyedEvent to the idle queue; r=smaug 2017-06-08 09:49:49 -04:00
Carsten "Tomcat" Book 0b32191c8a Backed out changeset 575e351a12af (bug 1361461) for causing frequent reftest assertion failures like Assertion failure: false (Ran out of memory while building cycle collector graph), at z:/build/build/src/xpcom/base/nsCycleCollector.cpp:929 2017-06-08 11:27:43 +02:00
Ehsan Akhgari 6fa1d2956b Bug 1361461 - Dispatch the compartment-nuking part of WindowDestroyedEvent to the idle queue; r=smaug 2017-06-07 21:49:03 -04:00
Ehsan Akhgari d6e6762bbf Backout bug 1361461 due to potentially introducing some intermittent reftest failures 2017-06-07 13:01:24 -04:00
Ehsan Akhgari 32212d5c00 Bug 1361461 - Dispatch the compartment-nuking part of WindowDestroyedEvent to the idle queue; r=smaug 2017-06-07 10:57:09 -04:00
Ehsan Akhgari 24b82acbcb Bug 1370100 - Make browser_dead_object.js correctly wait for the window to be destroyed instead of relying on the scheduling of the corresponding event; r=kmag 2017-06-04 21:42:09 -04:00
Kris Maglione e5aca6859e Bug 1322235: Part 6 - Replace AddonPolicyService with a stub implementation in ExtensionPolicyService. r=mixedpuppy,zombie
This replaces the JS policy service stubs with a pure C++ version which
directly makes policy decisions based on active WebExtensionPolicy objects.

This is the first step in a larger refactoring, which will remove the
ExtensionManagement module entirely, and replace the current add-on policy
service with direct, non-virtual access to native WebExtensionPolicy objects.

It will also be followed by related changes to migrate the content script and
extension page matching to native code, based on the existing MatchPattern and
WebExtensionPolicy bindings.

MozReview-Commit-ID: 2MpbmXZGiPZ
2017-06-03 17:12:14 -07:00
Ehsan Akhgari e94221142b Bug 1370101 - Make test_windowProxyDeadWrapper.html correctly wait for the window to be destroyed instead of relying on the scheduling of the corresponding event; r=kmag 2017-06-04 19:33:16 -04:00
Ehsan Akhgari 040f60423c Bug 1368275 - Make test_nukeContentWindow.html correctly wait for the window to be destroyed instead of relying on the scheduling of the corresponding event; r=kmag 2017-06-03 12:20:27 -04:00
Andrea Marchesini 6b40a42692 Bug 1369073 - Expose MessagePort/MessageChannel to xpcshell tests, r=bholley 2017-05-31 21:16:03 +02:00
Ehsan Akhgari dee876f124 Bug 1368285 - Make test_nuke_webextension_wrappers.js correctly wait for the window to be destroyed instead of relying on the scheduling of the corresponding event; r=kmag 2017-05-31 09:31:47 -04:00
Kris Maglione 843b87bfff Bug 1354733: Part 2 - Never rewrap dead wrappers. r=bholley
MozReview-Commit-ID: 2oSGtKe9pkI
2017-05-20 11:51:05 -07:00
Alexandre Poirot c381176234 Bug 1363539 - Remove dependency on DevTools from test_onGarbageCollection.html. r=sfink
MozReview-Commit-ID: LQ8oCAyC7sF
2017-02-22 12:45:11 +01:00
Andrew Swan 40619f69de Bug 1354682 Add transform to XPCOMUtils.defineLazyPreferenceGetter r=kmag
MozReview-Commit-ID: Lm59IHMNcy9
2017-04-28 22:39:13 -07:00
Phil Ringnalda 602322539a Backed out 3 changesets (bug 1354682) for sessionstore browser-chrome bustage
CLOSED TREE

Backed out changeset 55405fd328f9 (bug 1354682)
Backed out changeset 56b8122e64a3 (bug 1354682)
Backed out changeset 9374009a95e5 (bug 1354682)

MozReview-Commit-ID: BNVhwID8NwD
2017-04-28 20:24:34 -07:00
Andrew Swan 88b2e5e245 Bug 1354682 Add transform to XPCOMUtils.defineLazyPreferenceGetter r=kmag
MozReview-Commit-ID: Lm59IHMNcy9
2017-04-28 16:10:44 -07:00