Commit Graph

53214 Commits

Author SHA1 Message Date
Aaron Klotz
76125849c6 Bug 1511080: Add launcher process pref and enable reflection to/from the registry; r=mhowell
Depends on D15756

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

--HG--
extra : moz-landing-system : lando
2019-01-09 23:35:25 +00:00
Aaron Klotz
64310051e7 Bug 1511078: Add LauncherRegistryInfo as a temporary mechanism for runtime disabling of launcher process; r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D15756

--HG--
rename : browser/app/winlauncher/NativeNt.h => mozglue/misc/NativeNt.h
rename : browser/app/winlauncher/test/TestNativeNt.cpp => mozglue/tests/TestNativeNt.cpp
rename : browser/app/winlauncher/LauncherResult.h => toolkit/xre/LauncherResult.h
extra : moz-landing-system : lando
2019-01-15 20:19:46 +00:00
Andreas Tolfsen
c34e8d40b6 bug 1520228: toolkit: improve error description when ActorChild is missing EventTarget; r=Felipe
When an ActorChild is predefined to listen for DOM events and it
does not implement EventTarget.handleEvent(), a standard JS error is
thrown in toolkit/modules/ActorManagerChild.jsm that the handleEvent
property is missing.

If you have more than one ActorChild this error message is cryptic as
it does not refer to _which_ of the children that is missing handleEvent.

This patch introduces a type check for handleEvent that throws an
error (as before) when it is not implemented.

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

--HG--
extra : moz-landing-system : lando
2019-01-15 18:10:33 +00:00
dlee
cb7ce369ed Bug 1513490 - Support update cryptomining and fingerprinting list in SafeBrowsing. r=gcp
Add the fingerprinting and cryptomining tables to the SafeBrowsing
update list.
Leave the preference of blacklist/whitelist tables empty until the
shavar server is ready.

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

--HG--
extra : moz-landing-system : lando
2019-01-15 19:29:49 +00:00
Dimi Lee
008ab261fd Bug 1513490 - Refactor SafeBrowsing.jsm with feature list. r=gcp
When we add a table to SafeBrowsing.jsm we need to add related code in
various places. This patch simplify the work by providing a FEATURE
table which defines the data required.

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

--HG--
extra : moz-landing-system : lando
2019-01-15 20:04:40 +00:00
Dave Townsend
af79c239e7 Bug 1520139: Make sure nsXREDirProvider can find commonupdatedir.h regardless of whether the updater is enabled. r=froydnj
When the updater is disabled toolkit/mozapps/update/common is not traversed as
part of the build. But toolkit/mozapps/update/common/commonupdatedir.cpp is
included in the toolkit/xre build regardless and GetInstallHash is used. This
makes nsXREDirProvider.cpp able to find the header that defines it.

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

--HG--
extra : moz-landing-system : lando
2019-01-15 18:29:22 +00:00
Mark Striemer
19fb7b37fe Bug 1520164 - Include a fallback icon for extension shortcuts r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D16579

--HG--
extra : moz-landing-system : lando
2019-01-15 18:01:46 +00:00
Michael Kelly
28e4764f00 Bug 1509888: Remove Browser Error Collection. r=Gijs,flod
Differential Revision: https://phabricator.services.mozilla.com/D15879

--HG--
extra : moz-landing-system : lando
2019-01-15 18:04:28 +00:00
Cosmin Sabou
1558607307 Backed out 6 changesets (bug 1514806) for causing windows 2012 opt repack bustages.
Backed out changeset 63debb1d02d3 (bug 1514806)
Backed out changeset 803d20ba3f80 (bug 1514806)
Backed out changeset 3b95c5d8466d (bug 1514806)
Backed out changeset eb09e108a439 (bug 1514806)
Backed out changeset 6a738993de29 (bug 1514806)
Backed out changeset 303b19a8b923 (bug 1514806)

--HG--
rename : other-licenses/7zstub/firefox/7zSD.win32.manifest => other-licenses/7zstub/firefox/7zSD.manifest
rename : other-licenses/7zstub/firefox/7zSD.Win32.sfx => other-licenses/7zstub/firefox/7zSD.sfx
2019-01-15 19:17:09 +02:00
Bogdan Tara
7b951cf2bc Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-01-15 18:12:37 +02:00
Bogdan Tara
e94442500f Merge inbound to mozilla-central. a=merge 2019-01-15 18:09:48 +02:00
Tarek Ziadé
5b8e30faac Bug 1519038 - Fixing Assertion failure: IsIdle(oldState) r=baku
Differential Revision: https://phabricator.services.mozilla.com/D16529

--HG--
extra : moz-landing-system : lando
2019-01-15 13:20:17 +00:00
Matt Howell
f8a790571f Bug 1514806 Part 6 - Disable running UPX in the installer package for targets it doesn't support. r=firefox-build-system-reviewers,mshal#firefox-build-system-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D15984

--HG--
extra : moz-landing-system : lando
2019-01-14 21:59:06 +00:00
Oana Pop Rus
c42c2ac75f Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-01-15 11:39:31 +02:00
Alastor Wu
c3c5cb9cdf Bug 1506290 - part2 : add test. r=cpearce
Differential Revision: https://phabricator.services.mozilla.com/D15451

--HG--
extra : moz-landing-system : lando
2019-01-14 23:47:35 +00:00
Mark Banner
34b072b8e1 Bug 1519812 - toolkit/content/tests/browser/browser_autoplay* tests should be marked as the 'Audio/Video: Playback' component. r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D16451

--HG--
extra : moz-landing-system : lando
2019-01-14 19:00:38 +00:00
Brian Grinstead
cdd4391679 Bug 1519461 - Don't return values from docShellIsActive, renderLayers, and userTypedValue setters;r=mconley
This is more consistent with other setters, and lets us handle the null frameLoader
case a bit more simply.

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

--HG--
extra : moz-landing-system : lando
2019-01-14 20:36:25 +00:00
Brian Grinstead
cdd04b8d1b Bug 1519461 - Unify the hasLayers getter to use the same frameLoader check as renderLayers and docShellIsActive;r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D16369

--HG--
extra : moz-landing-system : lando
2019-01-14 20:36:23 +00:00
Brian Grinstead
7fb9763db0 Bug 1519461 - Check for frameLoader existence before accessing it in docShellIsActive;r=mconley
Alternatively, we could check for mInitialized in `AsyncTabSwitcher.logState` before accessing
the getter. But this matches an existing pattern for other browser getters that rely on the
frameLoader existing, and will support other callers that hit this case.

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

--HG--
extra : moz-landing-system : lando
2019-01-14 20:36:16 +00:00
Kaio Augusto de Camargo
18f2aa68a5 Bug 1513496 - Stop logging failure warnings if the scalar is expired. r=chutten
Currently, when operating with scalars, if a call to internal_GetScalarByEnum (or its keyed variant) return an error, then a warning will be logged. If one of the requested scalars is expired, this could lead to an unwated flood of logs. With this change, the return of the function is checked, and if it is NS_ERROR_NOT_AVAILABLE (i.e. expired scalar), then no warning is issued.

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

--HG--
extra : moz-landing-system : lando
2019-01-14 18:33:13 +00:00
Dave Townsend
961eb5b518 Bug 1518591: Make the profile service responsible for protecting against downgrading to builds before dev-edition had a separate profile. r=froydnj
Because older versions of Firefox auto-select a profile if there is only one in
the database when running dev-edition which uses its own profile we create a
default for normal channels to use. Currently the browser code is responsible
for doing this but it uses a bad heuristic for deciding when to do that. It's
much easier to do it from the profile manager when the dev-edition profile is
created.

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

--HG--
extra : moz-landing-system : lando
2019-01-10 21:15:53 +00:00
Dave Townsend
55dc7cb4db Bug 1518587: Move startup profile selection to nsToolkitProfileService. r=froydnj
Currently nsAppRunner is responsible for choosing or creating a profile to use
at startup. It then has to create a reset profile if necessary and lock the
selected profile directories. But these latter things are done in different
places of the selection code and done in different ways, sometimes we delay
while trying to get the lock, sometimes we don't.

This patch moves the profile selection part of the code to its own function so
that then we only have to have one place that does the profile reset and
locking logic.

It makes a lot of sense to have the selection code live in the profile service.
It can use information from the database load to help make the choices and it
also means that we can expose the profile selection code through xpcom allowing
it to be easily automatically tested. It will also be more important for future
patches for the dedicated profiles feature.

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

--HG--
extra : moz-landing-system : lando
2019-01-14 17:27:34 +00:00
Csoregi Natalia
4a86022f41 Merge mozilla-central to autoland. CLOSED TREE 2019-01-14 19:19:46 +02:00
John Lin
4784690b43 Bug 1516089 - Remove inset and outset class from global.css r=dao
Differential Revision: https://phabricator.services.mozilla.com/D16439

--HG--
extra : moz-landing-system : lando
2019-01-14 16:19:00 +00:00
Csoregi Natalia
438136eb9e Merge mozilla-central to mozilla-inbound. CLOSED TREE 2019-01-14 12:46:01 +02:00
James Teh
5dc4d81ca1 Bug 1514687 - Allow accessibility code to focus XUL radio buttons without selecting them. r=bgrins,smaug,MarcoZ,paolo
1. This requires exposing radiogroup's focusedItem property to C++.
Unfortunately, there's no existing equivalent in nsIDOMXULSelectControlItemElement.
radiogroup is the only element that needs this, so a new interface has been created for it.

2. Accessibility uses focusedItem instead of selectedItem when setting focus.

3. When an item is focused, accessibility needs to be notified.
This is done using a DOMMenuItemActive event.

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

--HG--
extra : moz-landing-system : lando
2019-01-11 04:52:50 +00:00
Coroiu Cristina
9624fd7043 Backed out changeset a3bbf490ea41 (bug 1419109) for browser-chrome failures at browser/test-oop-extensions/browser_ext_browserAction_pageAction_icon_permissions.js 2019-01-13 18:51:03 +02:00
Dimi Lee
dcc7462a9b Bug 1519660 - Remove flash info bar from SafeBrowsing list. r=gcp
Differential Revision: https://phabricator.services.mozilla.com/D16397

--HG--
extra : moz-landing-system : lando
2019-01-14 15:47:23 +00:00
Mark Striemer
890829b813 Bug 1303384 - Part 3: Manage extension shortcuts page r=aswan,Gijs,flod
MozReview-Commit-ID: KeZsoB6qj88

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

--HG--
extra : moz-landing-system : lando
2019-01-12 06:45:17 +00:00
Mark Striemer
50cfffaeaa Bug 1303384 - Part 2: Move some extension shortcut utils to ShortcutUtils r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D4506

--HG--
extra : moz-landing-system : lando
2019-01-11 22:32:39 +00:00
Mark Striemer
0fc4897c74 Bug 1303384 - Part 1: Extract extension commands management to a module r=aswan
MozReview-Commit-ID: E1RTINVtrbQ

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

--HG--
extra : moz-landing-system : lando
2019-01-11 22:32:28 +00:00
David Major
9ed87684ba Bug 1484835 - Extend the Windows JIT unwind handler to ARM64 r=luke
Because the .xdata format on ARM64 can only encode sizes up to 1M (much too small for our JIT code regions), we register a function table callback to provide RUNTIME_FUNCTIONs at runtime. Windows doesn't seem to care about the size fields on RUNTIME_FUNCTIONs that are created in this way, so the same RUNTIME_FUNCTION can work for any address in the region. We'll set up a generic one in RegisterExecutableMemory and the callback can just return a pointer to it.

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

--HG--
extra : moz-landing-system : lando
2019-01-14 14:06:24 +00:00
Tarek Ziadé
c9ddafea1f Bug 1406872 - Remove perf monitoring code - r=jandem,Gijs
This patch removes the StopWatch code that was used in the first version of
about:performance, and not being used anymore.

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

--HG--
extra : moz-landing-system : lando
2019-01-14 14:09:09 +00:00
Ehsan Akhgari
9324c0a183 Bug 1519205 - Reduce the amount of UTF encodings we do when checking content blocking rules; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D16233

--HG--
extra : moz-landing-system : lando
2019-01-14 08:24:41 +00:00
Varun Dey
f1106e6ffc Fix Bug 1419109 - Empty default icon shows blank icon in toolbar r=mixedpuppy
If the extension had either default_icon or one of it's property as an empty string, it would show a black icon in the toolbar. With this patch, it checks if any of default_icon property is empty and throws an error on extension load.

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

--HG--
extra : moz-landing-system : lando
2019-01-10 18:05:12 +00:00
Julien Wajsberg
22f0b04ab9 Bug 1433754 - Fix username filling on Fortuneo website r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D16389

--HG--
extra : moz-landing-system : lando
2019-01-12 17:18:34 +00:00
Narcis Beleuzu
7d7aca6a93 Merge inbound to mozilla-central. a=merge 2019-01-12 11:40:44 +02:00
Kris Maglione
125c4e077a Bug 1509968: Disable subprocess performance task in ccov builds. r=aswan 2019-01-11 20:46:57 -08:00
Gijs Kruitbosch
f460180422 Bug 1516767 - adjust button border, outline and box-shadow to be compatible with High-Contrast Mode and less glitchy, r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D16328

--HG--
extra : moz-landing-system : lando
2019-01-11 23:24:43 +00:00
Rob Wu
f8d91f5c26 Bug 1504018 - Support unrestricted schemes in permission warnings r=aswan
If an extension with the "mozillaAddons" permission is updated, the
permission diffing logic should support restricted schemes.
Otherwise the MatchPattern will throw and prevent the update from being
installed.

`Extension.comparePermissions` is called with the result of
`.userPermissions`, which in turn is equivalent to the result of the
`manifestPermissions` getter. This already filters out restricted
schemes if needed. Therefore we can unconditionally use
`restrictSchemes:false` in `comparePermissions`.

And update the regexp in formatPermissionStrings to support permissions
that start with "about:", since the "MatchPatternUnestricted" type in
toolkit/components/extensions/schemas/manifest.json supports this,
and the lack of "//" in about:-URLs prevents the scheme from being
matched by the existing pattern.

Depends on D14963

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

--HG--
extra : moz-landing-system : lando
2019-01-11 19:19:06 +00:00
Rob Wu
0074eaeaf7 Bug 1504018 - Skip host permissions for which a warning has been shown before r=aswan
Permission warnings only include the host name (ignoring any scheme),
so the comparison of old and new permissions should ignore schemes too.

Any origin permission has to match the definition of "MatchPattern"
as defined in toolkit/components/schemas/manifest.json.
For normal (non-privileged extensions), this is either <all_urls>, or a
pattern consisting of the "http", "https", "ws", "wss", "file", "ftp"
schemes.

Depends on D5527

Depends on D5527

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

--HG--
extra : moz-landing-system : lando
2019-01-11 19:16:59 +00:00
Rob Wu
e60742dbc8 Bug 1484263 - Clean up manifest permission parser and add tests r=aswan
The "permissions" array of the raw manifest is not (and should not) be
used for permission checking, so it is not necessary to strip the
"mozillaAddons" permission from it.

This commit moves the validation of the "mozillaAddons" permission to
classifyPermission, so that the "manifestPermissions" getter (that uses
this method too) accurately reflects the supported permissions of an
extension.

New tests has been added to verify the permission warnings for some
combinations of permissions. This also includes tests that verify
that only privileged extensions can use "mozillaAddons" to unlock
unrestricted schemes.

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

--HG--
extra : moz-landing-system : lando
2019-01-11 18:56:18 +00:00
Mike Hommey
7c72587da6 Bug 1519047 - Move FFVPX_ASFLAGS and related variables to python configure. r=nalexander
This also moves the corresponding ASFLAGS from moz.build to python
configure.

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

--HG--
extra : moz-landing-system : lando
2019-01-11 18:17:36 +00:00
Mike Hommey
70f1ad55e1 Bug 1519307 - Add a new project to build useful parts of breakpad independently. r=froydnj
With `ac_add_options --enable-project=tools/crashreporter` in a
mozconfig, `./mach build` builds minidump_stackwalk, dump_syms
and fileid.

One caveat is that due to limitation in how the build system works
currently, it's cumbersome to keep dump_syms as a host program for
Gecko, and to make it a target program for this project. For now,
keep it as a host program. We're not going to use it on automation,
but it's still convenient to have for quick local builds (I've had
to resort to awful hacks downstream).

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

--HG--
extra : moz-landing-system : lando
2019-01-11 16:01:15 +00:00
Mike Hommey
94ff361bf4 Bug 1519325 - Move D3D compiler DLL detection to python configure. r=froydnj
MOZ_D3D_CPU_SUFFIX and MOZ_HAS_WINSDK_WITH_D3D are not used in the
build, and nothing includes d3d10.h except some angle code in a
preprocessed branch that is only taken for a macro we never define,
so we don't move the code corresponding to those. We also simplify the
detection code, which is convoluted now that it doesn't search for
multiple different DLLs.

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

--HG--
extra : moz-landing-system : lando
2019-01-11 22:21:24 +00:00
Noemi Erli
7cd3732360 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-01-11 23:59:12 +02:00
Noemi Erli
d9c49c81c5 Merge inbound to mozilla-central. a=merge 2019-01-11 23:54:33 +02:00
Jan Henning
70dd21256f Bug 1498812 - Part 9: Switch session store/session history to use visual viewport for scroll position tracking. r=mikedeboer,snorp
For simplicity's sake, for now we keep storing only one scroll position per
history entry (bug 1499210), so if we have to choose between the layout and the
visual viewport, the latter is a vastly better choice, as it more accurately
represents the scroll position as perceived by the user, especially when the
page has been pinch-zoomed.

This also means that instead of the normal scroll events, the session store now
has to listen for the corresponding events specific to the visual viewport.

We also extend the scroll position test to check that the scroll position isn't
just properly saved, but also actually properly restored in practice as well.
We only add this test now instead of already adding it beforehand like we did
with the rest of the test
- to avoid having to temporarily extend the checkScroll() helper function to
  deal with todo()/todo_is etc.
- because getting that part of the test to complete without timing out (which
  would be one of its natural failure modes, because the expected events would
  be missing) would require faking even more scroll events
- because we already have the todo() tests that are telling us the we didn't
  *store* any scroll position in the first place, so there's no point in trying
  to actually restore anything

For the GeckoView saveAndRestoreState test, we now spin the event loop once
before setting the scroll position in order to give APZ opportunity to settle
down after the initial page load.

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

--HG--
extra : moz-landing-system : lando
2019-01-11 19:50:09 +00:00
Jan Henning
ea0543a948 Bug 1498812 - Part 5: Allow registering System event listeners through nsSessionStoreUtils. r=nika
Our internal Visual Viewport scroll events are dispatched system group-only, so
this is the only way to catch them.

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

--HG--
extra : moz-landing-system : lando
2019-01-11 19:49:28 +00:00
Kershaw Chang
74f3ba17c3 Bug 1513057 - P8: Report telemetry from socket process to parent process r=dragana,mayhemer,janerik
Differential Revision: https://phabricator.services.mozilla.com/D14362

--HG--
extra : moz-landing-system : lando
2019-01-11 20:59:35 +00:00