Commit Graph

595953 Commits

Author SHA1 Message Date
Jan de Mooij
80e44e8003 Bug 1461292 part 1 - Rename JSAutoCompartment to JSAutoRealm. r=bz,luke 2018-05-16 10:53:16 +02:00
Julian Seward
bbe16552f5 Bug 1461291 - [wasm] Crash [@ __sanitizer::internal_memmove] or Crash [@ __memmove_ssse3_back] through [@ js::wasm::Instance::memCopy]. r=lth.
This is due to incorrect range checks in Instance::memCopy and
Instance::memFill.  In particular, the checks inadvertantly succeed in the
wraparound cases where (uint32_t)(byteOffset + len) == 0, for the relevant
byteOffset and len pairings.  This patch fixes the checks.

--HG--
extra : rebase_source : 28570b96f5ca39e8d3e5fbbaaad86c65e2471897
2018-05-15 16:10:28 +02:00
Chris Peterson
d64b13a882 Bug 1461243 - Part 6: Stub out obsolete NPAPI APIs _getJavaEnv and _getJavaPeer. r=jimm
MozReview-Commit-ID: JkroiRAqzqg

--HG--
extra : rebase_source : 52cc13aec25d9dd5bc958347fc69b480c9b1d553
extra : intermediate-source : 53f9104261ba0b492d066fbdc3c106bfc216ede9
extra : source : 2ac3387ef82e725ea5200cb814ee466fedcda8bf
extra : histedit_source : 931f721ab33b38efe68cb91e7ab0410818813c31
2018-02-20 01:47:57 -08:00
Chris Peterson
a952ac2911 Bug 1461243 - Part 5: Stub out obsolete DOM API navigator.javaEnabled(). r=jimm r=bz
We can't remove navigator.javaEnabled() entirely because that would break any web content that tries to call the function.

MozReview-Commit-ID: KIOBrZuMu9r

--HG--
extra : rebase_source : 112ec5308d59e8d12a8ea540784ea157e575d09c
extra : intermediate-source : e9b145757c2f27440749408d9de31df7b5d60ff8
extra : source : 5fe4a7a8723bbd9cd954905cbf3937f45706d660
extra : histedit_source : a62c9571a53a834ef15778a01cb993d7e8dc3daa
2017-04-28 18:54:33 -07:00
Chris Peterson
6eae5519e2 Bug 1461243 - Part 4: Remove obsolete CHECK_JAVA_ENABLED telemetry probe. r=jimm r=chutten
MozReview-Commit-ID: Gzpuluq22pO

--HG--
extra : rebase_source : 46f1eb9ebfb60ea8b3782fb9bb905d24647009b1
extra : intermediate-source : 238978e95ca941094824d82e483e395a7964db65
extra : source : 0703de4e8568784e6ef1e58b13bebbfff147be65
2017-04-29 01:03:56 -07:00
Chris Peterson
e5986134d4 Bug 1461243 - Part 3: Remove unused Java codebase check from nptest plugin. r=jimm
MozReview-Commit-ID: 7BHECmnqbsz

--HG--
extra : rebase_source : dfd25a3968d64e9fa52cd27b27db5eca7cffb74c
extra : intermediate-source : 81f870f0e92fb1be29c6579c1b02b56db2e0f409
extra : source : a9f1daca4e61261dc437dabd984a36cea79a327c
2018-02-19 15:05:32 -08:00
Chris Peterson
94658984be Bug 1461243 - Part 2: Remove unused functions NS_CheckIsJavaCompatibleURLString() and NS_MakeRandomInvalidURLString(). r=jimm
These functions were only used in some Java workarounds in NPAPI _getproperty.

MozReview-Commit-ID: FqCd5ss1VqQ

--HG--
extra : rebase_source : b1513e5dbdcf652b401529a5e3f9cfce09a73a62
extra : intermediate-source : 54c6b063aecba84c5a40bb1b1c298278b3d0b320
extra : source : 53754664b3c6eb49f3a9367e38776bf32739b85c
2016-11-22 01:10:40 -08:00
Chris Peterson
8bbbeee495 Bug 1461243 - Part 1: Remove unused member variable mHaveJavaC2PJSObjectQuirk. r=jimm
MozReview-Commit-ID: 4WihVmQaclk

--HG--
extra : rebase_source : 44cdc24585cfd847833bd217ed39c39206f896ed
extra : intermediate-source : d1c028cb1f42741d2bfb42435f79ddfb0022ba11
extra : source : 15e8c2a618839f34cc269a105832d5d7763a4b30
2017-04-29 01:27:21 -07:00
Tom Prince
e05a92c940 Bug 1461784: [release-promotion] Always respect previous graphs, even on try; r=aki
Differential Revision: https://phabricator.services.mozilla.com/D1290

--HG--
extra : source : c5af9ca746a83f7a1c05e3b11f31e5f2840e42d0
extra : amend_source : 42bf68bb7905955548957b0b07452937b4c0075a
2018-05-03 04:25:03 -06:00
Matt Woodrow
a0234783e6 Bug 1460802 - Switch GFX_SMALL_PAINT_PHASE_WEIGHT to a histogram since we need to know all the values, not just the sum. r=Bas, datareview=francois 2018-05-16 12:59:48 +12:00
layely
6a5599421c Bug 1460737 - Wait for tab-switch to finish before executing checks. r=jaws
MozReview-Commit-ID: KRJZdKmzViG

--HG--
extra : rebase_source : f347e5c527086fe9cd34c68bdf110b1a18a1a1d4
extra : amend_source : ab717da7dc752cd375485b4b7921ea620eb81489
2018-05-14 19:20:31 +00:00
Kris Maglione
138f000a06 Bug 1461308: Fix tests that rely on fake privileged signatures for unpacked extensions. r=aswan
MozReview-Commit-ID: DFN6w5qLIKN

--HG--
extra : rebase_source : 4b67f8673a1b82eade9bff7485973e131c8b1da1
2018-05-14 18:13:21 -07:00
Steve Fink
2049e5471b Bug 1460021 - Resurrect "0in" test, r=Waldo
--HG--
extra : topic : nursery.strings
extra : rebase_source : 8994c3870e450e8b684047a2fd33073cf0bc285b
2018-05-08 11:17:52 -07:00
bobslept
bb465f5091 Bug 1460675 - Clear old social prefs from profiles 2018-05-15 17:03:39 +02:00
Felipe Gomes
fd0a264b26 Bug 1457988 - Implement XPCOMUtils.defineLazyProxy. r=kmag
This implements a new kind of lazy getter in XPCOMUtils that creates an object (implemented as a JS Proxy) that is resilient to be passed around as references to other functions, and will only evaluate the getter when it really needs to be used
2018-05-15 19:49:17 -03:00
Xidorn Quan
150bb2e75b Bug 1461696 - Add telemetry for DOMAttrModified event. r=smaug
MozReview-Commit-ID: D6cjCJB92ex

--HG--
extra : amend_source : dbc6529d056040dbc3e87c3099e4a259c4638548
2018-05-16 08:42:48 +10:00
Tom Prince
6ed31b7c54 Bug 1421062: [release] Use configured scriptworker scope prefix for checksum signing; r=aki
Differential Revision: https://phabricator.services.mozilla.com/D1291

--HG--
extra : source : 6e2b1a7e5949fd4d1af3a836dff5fe52128b1e58
extra : amend_source : 7f6317866927f38fad8209ea3eff0ecf45a4ce32
2018-05-15 13:31:15 -06:00
Dorel Luca
f76b1b99de Merge mozilla-central to mozilla-inbound 2018-05-16 01:01:29 +03:00
Dorel Luca
0d2ff9e60d Merge mozilla-inbound to mozilla-central. a=merge 2018-05-16 00:54:22 +03:00
Kris Maglione
1ff74da18d Bug 1461590: Lower-case hostnames when adding substitutions. r=smaug f=dveditz
Since URI hostnames are defined to be case-insensitive, we only ever see
lower-case hostnames when looking up substitutions. That means that
substitutions containing capital letters are inaccessible, which is a footgun
that has hit many people.

The handler should lower-case substitutions when they're added so that
look-ups are always case-insensitive.

MozReview-Commit-ID: C936hS2cSyY

--HG--
extra : rebase_source : a70e8ceb822879e51c3a40232b7dffdfb9c0a185
2018-05-15 13:02:08 -07:00
Jim Chen
0d7a720986 Bug 1459301 - 4. Follow up to fix tests for local runs; r=me
Manually turn off the popup blocker for all link-clicking tests so local
runs of the tests pass.
2018-05-15 16:44:15 -04:00
Nathan Froyd
d0ba1c83de Bug 1410186 - turn Maybe assertions into diagnostic assertions; r=bkelly
We out-of-line the relevant functions because assertions can generate
quite a bit of code, and we'd rather let the compiler determine if these
functions should be inlined now.
2018-05-15 16:34:59 -04:00
Geoff Brown
432ab75dea Bug 1460411 - Follow-up - diffoscope repo moved; updated url; r=me on a CLOSED TREE 2018-05-15 11:36:28 -06:00
Andrea Marchesini
625539c9d7 Bug 1458466 - Implement Console.timeLog(optional DOMString label = "default") - fixed an intermittent failure, r=me 2018-05-15 18:11:44 +02:00
Jan de Mooij
28a86c9503 Bug 1461272 - Add missing sealed elements check to ArraySetLength fast path. r=anba
--HG--
extra : rebase_source : 9eb9d4f1ce3c3f24025feccb4d7859f6472982dc
2018-05-15 18:05:40 +02:00
Jan de Mooij
96d904a66b Bug 1375504 - Add some asserts to the CacheIR code. r=tcampbell
--HG--
extra : rebase_source : b16050a49af45d4b0c07d56cf80571276b065682
2018-05-15 18:04:17 +02:00
Tokio Kajitsuka
d4d0782393 Bug 1438193 - part10: SetCurrentItem r=surkov
turn SetCurrentItem & GetChromeFlags & HasChildren into const functions
2018-05-13 19:14:55 +09:00
Tokio Kajitsuka
d50e800761 Bug 1438193 - part9: CurrentItem r=surkov
turn Accessible::CurrentItem into const functions
2018-05-13 18:26:02 +09:00
Tokio Kajitsuka
828718a230 Bug 1438193 - part8: XULTreeItemIterator r=surkov
turn Accessible* in XULTreeItemIterator into const
2018-05-13 18:14:29 +09:00
Geoff Brown
bd4f5cfdbf Bug 1460411 - Add kvm to desktop1604-test image; r=jmaher
Our normal ubuntu 16.04 test image is suitable for hosting an Android x86
emulator with these minor updates: Install kvm and make sure /dev/kvm
rw permissions are open for everyone. Note that /dev/kvm is generally
only visible when running docker with --privileged; its permissions
cannot be modified in the Dockerfile, only at run-time: run-task is the
first opportunity.
2018-05-15 09:57:27 -06:00
Ben Kelly
2a66c823ae Bug 1461326 Add some release assertions to dom/clients/manager code. r=baku 2018-05-15 08:53:54 -07:00
Ben Kelly
a480b8e15c Bug 1460635 Add ServiceWorkerImpl class to isolate ServiceWorkerInfo from the binding layer. r=baku 2018-05-15 08:53:03 -07:00
Jonathan Kew
2579d09699 Bug 1458301 followup #2, also use explicit namespace for std::isinf. r=preemptive bustage fix on CLOSED TREE 2018-05-15 15:37:45 +01:00
Jonathan Kew
35c8691c6f Bug 1458301 followup, use explicit namespace for std::isfinite to fix build failure on some platforms. r=bustage fix on CLOSED TREE 2018-05-15 15:32:33 +01:00
J.C. Jones
e5c3745f29 Bug 1460617 - land NSS 6e4b0141df2f UPGRADE_NSS_RELEASE, r=fkiefer
--HG--
extra : transplant_source : %3D%28%5E94%D6e%DD%F4%22rM%E5%E0%AB%0B%DFmE%F7
2018-05-15 07:07:28 -07:00
Nathan Froyd
5873523189 Bug 1461383 - fix test_build.py for local builds; r=chmanchester,f=mshal
test_build.py fails on local builds with messages like:

make[4]: Entering directory '/tmp/tmp65BjCH'
make[4]: *** No rule to make target 'buildid.h'.  Stop.
make[4]: Leaving directory '/tmp/tmp65BjCH'
/home/froydnj/src/gecko-dev.git/config/faster/rules.mk:76: recipe for target '/tmp/tmp65BjCH/buildid.h' failed
make[3]: *** [/tmp/tmp65BjCH/buildid.h] Error 2
make[3]: *** Waiting for unfinished jobs....
make[4]: Entering directory '/tmp/tmp65BjCH'
make[4]: *** No rule to make target 'source-repo.h'.  Stop.
make[4]: Leaving directory '/tmp/tmp65BjCH'
/home/froydnj/src/gecko-dev.git/config/faster/rules.mk:76: recipe for target '/tmp/tmp65BjCH/source-repo.h' failed
make[3]: *** [/tmp/tmp65BjCH/source-repo.h] Error 2
make[3]: Leaving directory '/tmp/tmp65BjCH/faster'
Makefile:155: recipe for target 'faster' failed

The tests pass in automation, however, because automation always defines
the rules for buildid.h and source-repo.h in the toplevel Makefile.in.
For local builds, however, those rules are not defined to avoid build
churn.  Let's ensure that the necessary rules are defined during testing
as well.
2018-05-15 10:05:23 -04:00
Nathan Froyd
9bd5c61497 Bug 1459721 - part 8 - pass full paths for IDL files to xpidl-process.py; r=chmanchester
The build system knows at build-backend time where to find each IDL
file; making xpidl-process.py rediscover this by requiring
xpidl-process.py to search through directories to find input IDL files
is silly.  To rememdy this, we're going to modify things so full paths
are passed into the script.  Those paths can then be used directly, with
no searching.
2018-05-15 10:05:23 -04:00
Nathan Froyd
33635829ac Bug 1459721 - part 7 - remove dist_idl install manifest; r=chmanchester
We no longer need to install the IDL files to the objdir for
processing. \o/
2018-05-15 10:05:23 -04:00
Nathan Froyd
6d76a90b37 Bug 1459721 - part 6 - remove redundant dependency code from xpidl Makefile.in; r=chmanchester
The tail end of the xpidl Makefile.in contains a line, generated for
every xpt file:

$(1): $(addsuffix .idl,$(addprefix $(dist_idl_dir)/,$($(basename $(notdir $(1)))_deps)))

This line, in context, is saying that the xpt file depends on all of its
input IDL files.  But xpidl-process.py already generates this
information when we pass it --depsdir, which we do.  So this code is
redundant with what we already generate, and it can be removed.
2018-05-15 10:05:24 -04:00
Nathan Froyd
2f6686cbec Bug 1459721 - part 5 - explicitly specify include directories for xpidl files; r=chmanchester
The previous patch required us to pass a single -I argument pointing at
$(DIST)/idl so IDL include statements would work correctly.  This patch
lifts that limitation and explicitly points xpidl-process.py at the
locations of all the IDL source directories to search for included IDL
files.  Invocations of xpidl-process.py no longer depend on IDL files
being copied to the objdir.
2018-05-15 10:05:24 -04:00
Nathan Froyd
236d75aaae Bug 1459721 - part 4 - explicitly specify input directories for xpidl modules; r=chmanchester
Building on the last patch, we can change the build process to pass in
the directories where the input IDL files can be found.  It is
convenient to pass in just the relative source directory paths, to
encourage people to not look in the object directory and to make the
command lines slightly shorter.

xpidl-process.py still assumes that included IDL files can be found by
looking in a single directory.  We add a single -I argument to the
invocation of xpidl-process.py to accommodate this short-sightedness.
2018-05-15 10:05:24 -04:00
Nathan Froyd
31e67ea398 Bug 1459721 - part 3 - enable multiple input paths for xpidl-process.py; r=chmanchester
The current IDL build setup assumes that all IDL files can be found in a
single directory.  This setup requires that all IDL files be copied to a
single directory, which is suboptimal in terms of disk I/O and also
complicates things like generating IDL files at build time.

As a first step in moving away from this state of affairs,
xpidl-process.py needs to be taught that the input IDL files could
potentially be found in multiple directories.  The current setup can
just specify $(DIST)/idl as the lone directory to examine.  Future
patches will change this to examine multiple directories.
2018-05-15 10:05:24 -04:00
Nathan Froyd
f07a68f051 Bug 1459721 - part 2 - remove install_target member from XPIDLManager.modules; r=chmanchester
This member is unused, so we might as well dispense with it.
2018-05-15 10:05:24 -04:00
Nathan Froyd
1567073b56 Bug 1459721 - part 1 - remove allow_existing keyword arg from register_idl; r=chmanchester
This method is only called in one place, and it doesn't pass
allow_existing.  Whatever ugly thing this keyword was working around
doesn't exist anymore, so let's get rid of it.
2018-05-15 10:05:24 -04:00
Eugen Sawin
c9811f9e91 Bug 1457472 - [2.1] Adjust telemetry controller to support the simplified GeckoView API, the unified clear method and the snapshot persistence lifecycle. r=Dexter,jchen 2018-05-15 16:02:26 +02:00
Eugen Sawin
9c403f8953 Bug 1457472 - [1.1] Simplify telemetry snapshot API to reflect new implementation constraints. r=snorp,jchen 2018-05-15 16:02:26 +02:00
Jonathan Kew
94bd85ef62 Bug 1460764 - patch 2 - Include variationSettings in the gfxFontStyle hash value. r=jwatt 2018-05-15 14:59:26 +01:00
Jonathan Kew
54a3761450 Bug 1460764 - patch 1 - Avoid undefined behavior in gfxFontStyle::Hash() when sizeAdjust is -1.0f. r=jwatt 2018-05-15 14:59:26 +01:00
Jonathan Kew
526ed0b391 Bug 1457417 - Work around Core Text mishandling of 'opsz' axis when set to the font's default, by adjusting to a fractionally-different setting. r=jwatt 2018-05-15 14:59:26 +01:00
Jonathan Kew
dd18e79f08 Bug 1458301 - Remove failure annotations for WPT tests that now pass, due to improved font fallback choices. r=jwatt 2018-05-15 14:59:25 +01:00