Commit Graph

605989 Commits

Author SHA1 Message Date
Makoto Kato
ca2b74b983 Bug 1462019 - Part 1. Support abstract socket address on nsIServerSocket and nsISocketTransportService. r=mayhemer
--HG--
extra : rebase_source : e7f4e258ce746f21c5792b148fd5ac4b4370eea6
2018-07-26 18:06:42 +09:00
Jan de Mooij
e67d9e1b9e Bug 1474540 part 0 - Don't try to use mCallback's global in NativeCallbackDelegateSupport::Call. r=jchen
The object could be a cross-compartment wrapper and we want to make it impossible to get a CCWs global.
2018-07-26 11:10:06 +02:00
Jan de Mooij
bb3767cb60 Bug 1478275 part 3 - Rename GlobalHasExclusiveExpandos to CompartmentHasExclusiveExpandos and make it use IsInSandboxCompartment. r=bholley 2018-07-26 11:00:21 +02:00
Jan de Mooij
ce81f1f7ef Bug 1478275 part 2 - Add a CompartmentPrivate::isSandboxCompartment flag and xpc::IsInSandboxCompartment(obj). r=bholley
Wrappers are per-compartment, not per-realm, so this will simplify the next patch. Also, considering the upcoming Realms proposal, it might eventually be possible to have multiple globals in a sandbox compartment.
2018-07-26 10:58:37 +02:00
Jan de Mooij
1f193575a4 Bug 1478275 part 1 - Remove unused CompartmentPrivate::isAddonCompartment. r=bholley 2018-07-26 10:57:15 +02:00
Jan de Mooij
2264882701 Bug 1477989 part 4 - Use JS::GetNonCCWObjectGlobal in xpc::GetXBLScopeOrGlobal. r=bz
GetOrCreateMapEntryForPrototype is the only caller where the object could be a CCW. However there cx and proto are same-compartment (GetOrCreateMapEntryForPrototype asserts this) so I changed that code to use JS::CurrentGlobalOrNull.
2018-07-26 10:53:21 +02:00
Jan de Mooij
3bfc3b953e Bug 1477989 part 3 - Use JS::GetNonCCWObjectGlobal in nsXBLProtoImpl::InstallImplementation. r=bz
It should not be a CCW; we already use JS::GetNonCCWObjectGlobal on this object in nsXBLProtoImplField::InstallAccessors.
2018-07-26 10:53:00 +02:00
Jan de Mooij
99c47ba5c5 Bug 1477989 part 2 - Use JS::GetNonCCWObjectGlobal in nsXBLBinding::DoInitJSClass. r=bz 2018-07-26 10:52:41 +02:00
Jan de Mooij
b1f2f847f1 Bug 1477989 part 1 - Use JS::GetNonCCWObjectGlobal in nsXBLBinding::LookupMember. r=bz
mBoundElement is a dom::Element* and reflectors are not CCWs.
2018-07-26 10:52:27 +02:00
Jan de Mooij
0873f847dd Bug 1474542 - Use the unwrapped object's global in FetchUtil::StreamResponseToJS. r=luke 2018-07-26 10:52:01 +02:00
Brian Birtles
b903929384 Bug 1478213 - Drop the workaround in DevTools for setting an animation's startTime to something non-null before setting it to null; r=daisuke
The optimization this code was working around has now been fixed.

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

--HG--
extra : rebase_source : 586f19d9254c4aab88f54bd7b4122b613e1b39e8
extra : histedit_source : 4555f3e34c9863ae9db41f437f2c9ce6a3fed006
2018-07-26 15:08:10 +09:00
Brian Birtles
0a7609ac13 Bug 1478213 - Don't ignore a redundant change to setting the animation start time if we are pending; r=hiro
As discussed here:

  https://github.com/w3c/csswg-drafts/issues/2691

We have a similar check in SetCurrentTime (with the exception that, according to
the spec, this behavior applies to either play OR pause pending, instead of just
pause-pending) so this patch tries to match the comment and format of that
check.

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

--HG--
extra : rebase_source : 519a976424b021203a369926344c2174662e6156
2018-07-26 15:07:52 +09:00
Brian Birtles
f8376242e1 Bug 1478213 - Add test that fails if we ignore a seemingly redundant setting of startTime to null; r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D2409

--HG--
extra : rebase_source : c64fb613e3429e10fa6760f0a2abb3c416a2208f
2018-07-26 15:07:35 +09:00
Jeff Walden
718d570ceb Bug 1478170 - Instantiate TokenStreamChars for UTF-8. r=arai
--HG--
extra : rebase_source : 813a88a529f15fcbf4565c9a8d7406fc0a6ea0e3
2018-07-17 21:21:07 -07:00
Jeff Walden
85e8df4f2a Bug 1478170 - Make atomizeSourceChars take a Span<CharT>, and define a specialization for UTF-8. r=arai
--HG--
extra : rebase_source : 3eb308043bc5a6f93ce548c59c971a7add3a842c
2018-07-17 21:21:07 -07:00
Jeff Walden
705b8e96ed Bug 1478170 - Move TokenStreamChars::getCodePoint to a generalized TokenStreamSpecific::getCodePoint that works for any CharT. r=arai
--HG--
extra : rebase_source : 678d69901e73e6732a625ebfdf33cf42953d93b2
2018-07-17 21:13:06 -07:00
Jeff Walden
28450f03f2 Bug 1478170 - Implement TokenStreamChars::getNonAsciiCodePoint for UTF-8. r=arai
--HG--
extra : rebase_source : 8e7c33162279d22000ff70e4c4969459baa95830
2018-06-29 13:46:09 -07:00
Jeff Walden
bdd1805155 Bug 1478170 - Stop specializing TokenStreamCharsBase::addLineOfContext now that the CharT-specialized things it relies on are fully specialized. r=arai
--HG--
extra : rebase_source : d05fc8271ce30bd58be14f94257ad93cae319ffa
2018-07-18 22:46:48 -07:00
Jeff Walden
6060208b38 Bug 1478170 - Specialize SourceUnits::findWindowStart for UTF-8. r=arai
--HG--
extra : rebase_source : 6a9558e7fbf640c17cbbfb0e70d93ad24b3029ed
2018-07-18 22:46:48 -07:00
Jeff Walden
60c707a4bf Bug 1478170 - Specialize SourceUnits::findWindowEnd for UTF-8. r=arai
--HG--
extra : rebase_source : adcb5a4f848c5f1aa9a0f8d9eabc99c2045a0665
2018-07-18 22:46:47 -07:00
Jeff Walden
0d19301205 Bug 1478170 - Implement consumeRestOfSingleLine for UTF-8. r=arai
--HG--
extra : rebase_source : abeb0163f58d4a440b2446ae7da8db77eb9600c9
2018-07-09 16:21:33 -07:00
Jeff Walden
bb8146846f Bug 1478170 - Specialize SourceUnits::consumeKnownCodePoint for UTF-8. r=arai
--HG--
extra : rebase_source : 1218a217834dcc31eb3a6bc0bd7ae659935be341
2018-07-25 18:42:53 -07:00
Jeff Walden
cf12902522 Bug 1478170 - Implement getNonAsciiCodePointDontNormalize for UTF-8. r=arai
--HG--
extra : rebase_source : ab9e28fc001eaab9af3bcb072ce783a88d0f7f07
2018-07-18 22:46:47 -07:00
Jeff Walden
ab4f689aa3 Bug 1478170 - Specialize TokenStreamCharsBase::fillCharBufferFromSourceNormalizingAsciiLineBreaks for UTF-8. r=arai
--HG--
extra : rebase_source : 16aae9722964d3eb23514467b86ed942e753068a
2018-07-18 22:46:47 -07:00
Jeff Walden
83ae856536 Bug 1478170 - Implement SourceUnits::peekCodePoint for UTF-8. r=arai
--HG--
extra : rebase_source : 7d256802f430ba813588fe9535630f67a30fbd56
2018-07-25 14:51:26 -07:00
Jeff Walden
c80f0a244c Bug 1478170 - Replace SpecializedTokenStreamCharsBase::consumeRestOfSingleLineComment with an infallible SourceUnits::consumeRestOfSingleLineComment, in light of the fact that the UTF-8 version can just stop consuming code points when an encoding error is encountered, leaving error-reporting to whatever actually tries to consume the first code point of the "next" line. r=arai
--HG--
extra : rebase_source : 276d3d7062a7a3561da03c7ff4003fa53b78be80
2018-07-25 14:46:44 -07:00
Jeff Walden
3c549b5a88 Bug 1478170 - Make SourceUnits::findWindow{Start,End} const because they can/should be. r=arai
--HG--
extra : rebase_source : 20e849368a033d79740fd8113e482462c3a0239d
2018-07-25 14:24:35 -07:00
Jeff Walden
0a7705ee8e Bug 1478045 - Remove TokenStreamChars::{ungetCodePointIgnoreEOL,ungetNonAsciiNormalizedCodePoint} as unused now that SourceUnits::{peek,consumeKnown}CodePoint have replaced them. r=arai
--HG--
extra : rebase_source : 22f8cea49560ad2e52e14f92a6f290bd897110f8
2018-07-25 14:24:35 -07:00
Jeff Walden
56dc5f34f1 Bug 1478045 - Use SourceUnits::peekCodePoint when examining a non-ASCII code point after non-decimal numeric literals and a subset of decimal numeric literals. r=arai
--HG--
extra : rebase_source : d38cf94029e0d0f94fa93db30e3d1741e76906b2
2018-07-25 14:24:35 -07:00
Jeff Walden
874ebca04d Bug 1478045 - Use SourceUnits::peekCodePoint when examining a non-ASCII code point that might terminate an IdentifierName. r=arai
--HG--
extra : rebase_source : ffc55ca17da8198febeeab84aaa130fba4e6fcd6
2018-07-25 14:24:35 -07:00
Jeff Walden
012736e5f0 Bug 1478045 - Use SourceUnits::peekCodePoint when examining a non-ASCII code point that might terminate a directive in a comment. r=arai
--HG--
extra : rebase_source : 3f9aa6422cbae608c74756b03e65a629a56db743
2018-07-25 14:24:34 -07:00
Jeff Walden
7a5454cf15 Bug 1478045 - Use SourceUnits::peekCodePoint to look for an IdentifierStart after most decimal numeric literals, rather than getting and ungetting. r=arai
--HG--
extra : rebase_source : a62134fb9e201b86a7e9588eaba0c33fac25f29c
2018-07-25 14:24:34 -07:00
Jeff Walden
f124682138 Bug 1478045 - Implement SourceUnits::{peek,consumeKnown}CodePoint for the uncommon cases where a code point must be gotten, tested against one or more predicates, then sometimes ungotten based on those predicates. (This is unfortunately a bit subtle, but getting and ungetting is arguably worse, because ungetting has to unget a variable number of code units -- whereas peeking can compute that number of code units and then use it directly when the peeked code point is consumed, avoiding double-computation and increased potential for error.) r=arai
--HG--
extra : rebase_source : 893bb1905841f2c0cbd38e249389758894da6650
2018-07-25 14:24:23 -07:00
Jeff Walden
42d3c2092f Qualify every other has(T) call in RegisterSets.h to definitively preclude the random manifestation of a gcc ICE ever again. (See also prior cases in RegisterSets.h's history where such qualification was randomly added on an as-needed basis.) No bug, r=me as trivial
--HG--
extra : rebase_source : 1510328508fbd22e215e4bb44bfea4790808f8e8
2018-07-24 13:38:52 -07:00
fvsch
ede286432d Bug 1476902 - all-tabs-menu contrast and hover style; r=jdescottes
--HG--
extra : rebase_source : b8787b3b085a12c95addb025f3156d2201f55ba3
2018-07-23 12:55:07 +02:00
Tooru Fujisawa
3f86b21030 Bug 1473266 - Remove in-tree newline_if_not_empty. r=Yoric,glandium 2018-07-26 15:24:06 +09:00
Brian Birtles
3d5e378f43 Bug 1475852 - Revert bogus re-addition of update-and-send-events.html.ini meta file by wpt-sync bot; a=testonly
This file was removed in bug 1475127 but WPT sync bot decided to re-add it.
2018-07-26 14:02:54 +09:00
Andrew Swan
5950c28d3a Bug 1451513 Part 1: Allow registering chrome: content resources r=kmag
MozReview-Commit-ID: IuUnzb24jCN

--HG--
extra : source : afc5c4bd60da7d08b90b46c70af3f59a4db9fb35
2018-07-05 13:59:25 -07:00
Tooru Fujisawa
62524da118 Bug 1434305 - Part 14: Add testcases. r=jimb 2018-07-26 12:36:18 +09:00
Tooru Fujisawa
c6ed2d9187 Bug 1434305 - Part 13: Print LazyScript filename and line number in GC log. r=jimb 2018-07-26 12:36:18 +09:00
Tooru Fujisawa
1fc743c478 Bug 1434305 - Part 12: Remove JS::ExposeScriptToActiveJS call on scripts returned by IterateScripts. r=jimb,f=jonco
This is no more necessary because we have read barrier in IterateScripts that does the same thing.
2018-07-26 12:36:18 +09:00
Tooru Fujisawa
bc1f29794f Bug 1434305 - Part 11: Support Lazy Parsing in Debugger's eval environment. r=jimb 2018-07-26 12:36:18 +09:00
Tooru Fujisawa
b98505424a Bug 1434305 - Part 10: Support LazyScript in Debugger::ScriptQuery::findScripts. r=jimb 2018-07-26 12:36:18 +09:00
Tooru Fujisawa
c2e6f76e38 Bug 1434305 - Part 9: Rename Debugger::ScriptQuery::vector to Debugger::ScriptQuery::scriptVector. r=jimb 2018-07-26 12:36:17 +09:00
Tooru Fujisawa
da4660b7df Bug 1434305 - Part 8: Support wrapping LazyScript in DebuggerScriptReferent. r=jimb 2018-07-26 12:36:17 +09:00
Tooru Fujisawa
fbc4524d64 Bug 1434305 - Part 7: Support LazyScript variant in DebuggerScriptReferent, and support LazyScript in Debugger.Script accessors and methods. r=jimb 2018-07-26 12:36:17 +09:00
Tooru Fujisawa
2b21d68b08 Bug 1434305 - Part 6: Add DelazifyScript to delazify a certain LazyScript and its all ancestor scripts recursively. r=jimb 2018-07-26 12:36:17 +09:00
Tooru Fujisawa
19b9e9488a Bug 1434305 - Part 5: Support the pair of Debugger and LazyScript in CrossCompartmentKey. r=jimb 2018-07-26 12:36:17 +09:00
Tooru Fujisawa
231cd24eea Bug 1434305 - Part 4: Instantiate TraceManuallyBarrieredCrossCompartmentEdge template for LazyScript. r=jimb 2018-07-26 12:36:17 +09:00
Tooru Fujisawa
1b2c111e0a Bug 1434305 - Part 3: Support LazyScript in WeakMap. r=jimb,sfink 2018-07-26 12:36:16 +09:00