Commit Graph

606069 Commits

Author SHA1 Message Date
Emilio Cobos Álvarez
f48df04e5b Bug 1478330: Generate StyleDisplay using cbindgen. r=heycam
We use the same setup WR uses, which is checking-in the files.

But I think it's much better than keeping the two things in sync manually :)

When you add a new value, you need to add it to the rust source, then run the
command, but since it doesn't need to build the style crate (it uses the Rust
AST, doesn't build) there's no problem.

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

MozReview-Commit-ID: DnXkNAzP54H
2018-07-26 17:06:05 +02:00
Matthew Gaudet
19e3a1f44e Bug 1438727: [Part 16] Support shifts in CacheIR r=tcampbell
--HG--
extra : rebase_source : 1d2ec177ccb644debbe9aef7067b94374a2f0900
2018-05-08 18:32:37 -04:00
Matthew Gaudet
3356cf50eb Bug 1438727: [Part 15] Implement flexible shift macroassembler helpers r=tcampbell
--HG--
extra : rebase_source : 7c9f3cc7651d2ce8067df328705ff0d219d2c9eb
2018-05-08 18:31:04 -04:00
Matthew Gaudet
6968e15c35 Bug 1438727: [Part 14] Support Double DIV and Double MOD r=tcampbell
--HG--
extra : rebase_source : 6a7e5568bf2b33354c4c49fc1a10adfb0952c452
2018-05-08 16:05:48 -04:00
Matthew Gaudet
6e05394437 Bug 1438727: [Part 13] Handle Double+Int32 bitwise operations r=tcampbell
--HG--
extra : rebase_source : 3f5fdefedcebf54bc2f05814a489a73d35287c3a
2018-05-08 15:31:19 -04:00
Matthew Gaudet
8ffa0c044f Bug 1438727: [Part 12] Implement JSOP_MOD in CacheIR r=jandem
--HG--
extra : rebase_source : ed5e8c223093501270cab7ad7cc26d17815fa4d9
2018-05-01 14:35:19 -04:00
Matthew Gaudet
9df2c19321 Bug 1438727: [Part 11] Implement JSOP_DIV in CacheIR r=jandem
--HG--
extra : rebase_source : 4926515b6dd4061a8287d05e88061d8929cb3906
2018-05-01 13:56:32 -04:00
Matthew Gaudet
0fba2182f3 Bug 1438727: [Part 10] Implement flexible{quotient,remainder}32 r=tcampbell
--HG--
extra : rebase_source : f29676ad062788159debe46922e445100226c78a
2018-05-08 14:04:41 -04:00
Matthew Gaudet
2df0aa879c Bug 1438727: [Part 9] Implement flexibleDivMod r=tcampbell
--HG--
extra : rebase_source : 9b3affffe347a66995cc2e1e95e8eae0a204ff6b
2018-05-31 15:02:39 -04:00
Jon Coppeard
6377680671 Bug 1476239 - Improve assertions around saved slots/elements ranges r=sfink 2018-07-26 15:33:46 +01:00
Jon Coppeard
cfe1729a7c Bug 1476239 - Check cell pointers are valid when pushed/popped to/from the mark stack r=sfink 2018-07-26 15:33:46 +01:00
Jon Coppeard
8a5a42b6ed Bug 1476239 - Poison unused mark stack memory r=sfink 2018-07-26 15:33:46 +01:00
Jon Coppeard
894082c06b Bug 1476239 - Replace MarkStack memory allocation code with a Vector r=sfink 2018-07-26 15:33:46 +01:00
Franziskus Kiefer
3d0b306faa Bug 1464828 - DAR API with libsecret and NSS back-end, r=keeler,m_and_m,froydnj
This implements an API in `nsIOSKeyStore.idl` and `OSKeyStore.cpp` to encrypt and decrypt bytes with a key that is stored in the OS key store.
There are two OS adapters in this patch.
Libsecret is used on Linux if available.
The NSS key store is used as fallback if no OS specific key store is implemented.

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

--HG--
extra : rebase_source : 99d7d646968a46a13ffa61885bb246f6d3e443e4
2018-07-26 16:05:35 +02:00
Ted Campbell
9c7e54a1de Bug 1367743 - Use no-remote flag when starting new browser from about:profiles. r=baku
MozReview-Commit-ID: 59I75Za6izI
2018-07-26 10:05:10 -04:00
Ben Hearsum
a495c10987 bug 1477021: run funsize with 'pipenv run'. r=sfraser 2018-07-26 09:59:03 -04:00
shindli
a007b2dc62 Backed out changeset 230ea1f373ff (bug 1478330) for Linting failure on a CLOSED TREE 2018-07-26 16:49:19 +03:00
Nathan Froyd
322d49add1 Bug 1477009 - use a dependent CString on Android for finding breakpad ids; r=njn
This is slightly more efficient, since we don't have to copy the string.
2018-07-26 09:47:05 -04:00
Nathan Froyd
cd8b60fc05 Bug 1478337 - avoid useless work in nsTArray::RemoveElement; r=erahm
When removing an element that exists in the array, there's no need to
perform extra bounds checks for actually removing the element; the
presence of the element guarantees that we have a valid index and a
valid range to remove.  So split RemoveElementsAt into a safe interface
and an unsafe interface, and let RemoveElement call the latter as an
internal optimization.  The same logic applies to RemoveElementSorted.

We call RemoveElement depressingly often, so this is a nice little win.
2018-07-26 09:37:48 -04:00
Emilio Cobos Álvarez
42a2ddb5b9 Bug 1478330: Generate StyleDisplay using cbindgen. r=heycam
We use the same setup WR uses, which is checking-in the files.

But I think it's much better than keeping the two things in sync manually :)

When you add a new value, you need to add it to the rust source, then run the
command, but since it doesn't need to build the style crate (it uses the Rust
AST, doesn't build) there's no problem.

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

MozReview-Commit-ID: DnXkNAzP54H
2018-07-26 15:35:24 +02:00
shindli
f6e583f8fd Backed out changeset e5423d29aaf0 (bug 1357487) for reftest failures in file:///Z:/task_1532567375/build/tests/reftest/tests/layout/reftests/css-blending/blend-difference-stacking.html on a CLOSED TREE 2018-07-26 16:21:39 +03:00
Ben Hearsum
49d4d780ee bug 1477021: create pipfile-update task for funsize-update-generator. r=sfraser
--HG--
extra : rebase_source : 8a7bc1b481b6d477dc6b1ea6a0bd392e73f16f74
2018-07-26 08:56:08 -04:00
Ben Hearsum
9d82e727e0 bug 1477021: create a docker image that can update Pipfile.lock, and attach diffs to phabricator. r=sfraser
--HG--
extra : rebase_source : 15c8c6ea7f2124863f8e9198a6962cbb37a28ab2
2018-07-26 08:54:45 -04:00
Ben Hearsum
505d868007 bug 1477021: switch funsize-update-generator to a Pipfile. r=sfraser
--HG--
extra : rebase_source : 24f2e89e4a076a90718c498497f8deb40ae3dea3
2018-07-26 08:19:29 -04:00
Emilio Cobos Álvarez
9004e91bec Bug 1478385: Fix confusion in GetCachedWidgetBorder. r=karlt
aWidgetType is a NS_THEME_* constant. What this code is comparing is not.

This was exposed by a patch of mine converting -moz-appearance to be an enum
class.

MozReview-Commit-ID: 9BsbYk04vop
2018-07-26 14:48:08 +02:00
Emilio Cobos Álvarez
47b44daec3 Bug 1477965: Fix SVGAnimationElement::AfterSetAttr. r=heycam
It's not fine to only check if we're in a document in one of the code
paths.

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

MozReview-Commit-ID: JXLexono4kv
2018-07-26 14:47:42 +02:00
Dragana Damjanovic
ea14bba80a Bug 1468523 - Fix the history entry for http-equiv=refresh. r=smaug 2018-07-26 15:31:59 +03:00
Jan de Mooij
fad02aba7d Bug 1474540 - Assert we don't pass cross-compartment wrappers to AutoJSAPI::Init. r=bholley 2018-07-24 09:19:25 +02:00
shindli
9319e91d10 Backed out 2 changesets (bug 1416723) for failures in dom/serviceworkers/test/test_serviceworker_interfaces.html on a CLOSED TREE
Backed out changeset b2242216d11b (bug 1416723)
Backed out changeset bfaf82051dfd (bug 1416723)
2018-07-26 14:23:43 +03:00
shindli
f36ee2923a Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-07-26 14:21:26 +03:00
shindli
c451675096 Backed out 2 changesets (bug 1462019) for org.mozilla.geckoview.test.AccessibilityTest.testMoveByCharacter failures on a CLOSED TREE
Backed out changeset 0b0036d13e81 (bug 1462019)
Backed out changeset 6fb8d7cb6c29 (bug 1462019)
2018-07-26 13:36:46 +03:00
Narcis Beleuzu
d47c829065 Backed out 4 changesets (bug 1478308) for ESlint failure on AttributionCode.jsm. CLOSED TREE
Backed out changeset a809b45ff49b (bug 1478308)
Backed out changeset c68131530742 (bug 1478308)
Backed out changeset 0e4ba7a6dc1a (bug 1478308)
Backed out changeset 32a27f317a77 (bug 1478308)
2018-07-26 11:13:28 +03:00
Mark Banner
58e5c3e98f Bug 1478308 - Remove unnecessary ChromeUtils.imports in accessible/ r=surkov
MozReview-Commit-ID: 2l6rvxykrWB

--HG--
extra : rebase_source : 9bfe49a329b0ef38e45b5886070e2c1af1edecbe
2018-07-25 11:07:07 +01:00
Mark Banner
d95c1526b8 Bug 1478308 - Remove unnecessary ChromeUtils.imports in toolkit/ r=mikedeboer
MozReview-Commit-ID: 45Tfs2ZZ06r

--HG--
extra : rebase_source : 10f2f734c883a1ac85b5dee21df119a4c6ae2898
2018-07-25 11:00:35 +01:00
Mark Banner
fba7b63903 Bug 1478308 - Remove unnecessary ChromeUtils.imports in services/ r=lina
MozReview-Commit-ID: 1oprv2tG0HG

--HG--
extra : rebase_source : 89471677bab059efe9d9cb8a48b2cd557bd41e33
2018-07-25 09:13:11 +01:00
Mark Banner
180233c593 Bug 1478308 - Remove unnecessary ChromeUtils.imports in browser/ r=mikedeboer
MozReview-Commit-ID: BYTDdLU2HoM

--HG--
extra : rebase_source : 67dc15c0cdff0234d3274f1a8978d1f2a5b3f411
2018-07-25 09:10:07 +01:00
Petru Lingurar
1f25f2a1cc Bug 1476900 - Can't update Nightly from about:firefox or notification bar; r=jchen
The problem was because on API >=26 the JobIntentServices used for the updater
functionality will be used by JobScheduler by binding to them.
But because they were set to run in a different process the binding was not
possible.

MozReview-Commit-ID: I8rbcoLyhyJ

--HG--
extra : rebase_source : 1bc423f6012aff6c9b0d960b046af04f32b8bd7b
2018-07-24 17:31:59 +03:00
Benjamin Bouvier
c33c3f309f Bug 1416723: Remove SIMD.js support; r=luke, r=nbp
--HG--
extra : rebase_source : 486095f8e51318b104b7348330a7df6377a15302
extra : histedit_source : 5415a1ce4bd366464612bd4751093588d30aa562
2018-07-24 15:15:01 +02:00
Benjamin Bouvier
06e2cac5c8 Bug 1416723: Move SIMD code generation to masm methods; r=lth
--HG--
extra : rebase_source : de3832c54a670ff9f6f747a60fff577e54377a58
extra : histedit_source : 0ce3e99119939505e91b551d4255c44e377ef5ee
2018-07-24 19:34:06 +02:00
Makoto Kato
5986ed199f Bug 1462019 - Part 2. Use abstract socket address for USB remote debugging. r=jryans
--HG--
extra : rebase_source : 4eedeb0d058ddaa2b96e4fe0d69ec81ef9f16097
2018-07-25 14:47:49 +09:00
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