Commit Graph

3540 Commits

Author SHA1 Message Date
David Parks
743b6a47ce Bug 1334182 - Turn off sandbox violation logging by default on Windows. r=jimm
Make security.sandbox.logging.enabled false by default on Windows only.
2017-01-26 09:42:02 -08:00
Michelangelo De Simone
0a8df87097 Bug 1269531 - Make the Geolocation test suite secure-context aware. r=jdm
MozReview-Commit-ID: 4WPUsGAO7xF
2017-01-26 15:38:16 -07:00
David Parks
3cc8bac5f7 Bug 1317735 - Consolidate env vars for logging. r=jimm
Assigns the preference security.sandbox.logging.enabled and the environment variable MOZ_SANDBOX_LOGGING to control whether or not sandbox violations are logged.  The pref defaults to true.  On Linux, only the environment variable is considered.
2017-01-23 12:46:49 -08:00
Mike Hommey
672182dcc9 Bug 1332523 - Add BinaryPath::Get variant that returns a UniquePtr instead of filling a stack buffer. r=bsmedberg 2017-01-13 09:40:54 +09:00
Mike Hommey
46f514d8b8 Bug 1332523 - Make GetBootstrap take the path to an arbitrary file next to libxul. r=bsmedberg
The FileExists check can be removed because the code loading the library
will handle that case already.
2017-01-13 09:27:39 +09:00
Mike Hommey
e8fdec5f55 Bug 1332523 - Remove nsXPCOMGlue.h. r=bsmedberg 2017-01-13 07:56:05 +09:00
Mike Hommey
853c307fdf Bug 1332523 - Move message indicating when the blocklist is initialized after user32.dll was loaded to the blocklist itself. r=dmajor 2017-01-12 11:13:40 +09:00
Mark Banner
ad6ad043eb Bug 737836 - Improve frecency handling for multiple redirect sequences, and add a test. r=mak
MozReview-Commit-ID: ImJMF5KDvtz
2017-01-18 14:12:58 +00:00
Mark Banner
903e536db0 Bug 737836 - Don't rely on past visits for frecency calcuations for redirects. r=mak
MozReview-Commit-ID: GfgZSInN9Lv
2017-01-18 14:09:09 +00:00
Mike Hommey
e521d08008 Bug 1330533 - Use FuzzerDriver directly instead of wrapping it in a libfuzzer_main function. r=decoder
Going further from the previous changes, all libfuzzer_main really does
is call the init function, and then proceed to call the fuzzer driver
with the testing function.

So instead of calling that function for it to do all that, the
LibFuzzerRunner can just call the init function itself, and then
call the fuzzer driver with the testing function.
2017-01-12 14:44:18 +09:00
Mike Hommey
688aecac16 Bug 1330533 - Pass LibFuzzerInitFunc and LibFuzzerTestingFunc to libfuzzer_main. r=decoder
The LibFuzzerRunner code lives in libxul. It's unnecessary complications
to have it call back a function in the firefox executable just so that
it calls another function that is in libxul. Passing the init and
testing functions to the libfuzzer_main function allows to just bypass
that roundtrip, simplifying the setup.
2017-01-12 14:50:14 +09:00
Mike Hommey
e55bae1e11 Bug 1330533 - Remove argc/argv arguments to XRE_LibFuzzerSetMain. r=decoder
The function given to XRE_LibFuzzerSetMain is called from somewhere that
does have access to argc/argv already, so we can avoid passing them
to XRE_LibFuzzerSetMain.

This actually might fix subtle issues with argc/argv not really matching
reality when calling the LibFuzzerMain function in the current code:
some arguments are handled before the call, and both argc and argv are
modified from within XRE_main, but the values stored for the
LibFuzzerMain call still are the original ones.

Argv being a pointer, and it not being reallocated, the value stored for
the LibFuzzerMain call points to the changed one, but argc, being an
integer, is not modified accordingly.

In fact, it's actually worse, because while the Gecko code doesn't
reallocate argv, gtk_main might. So if some GTK flag is passed on the
command line, there's also a possibility that the LibFuzzerMain function
will do a use-after-free.

So all in all, it's just better to use the set of modified argc/argv
from XRE_main instead of storing them from main().
2017-01-12 11:59:37 +09:00
Brian Grinstead
7002bd291c Bug 1323833 - Trim the list of recommended themes from 5 to 3;r=Gijs
MozReview-Commit-ID: 2TFNxwMT1qz
2017-01-19 13:28:33 -08:00
David Parks
01bbe540a2 Bug 1306239 - Add pref to toggle OS X sandbox violation debugging, default on. r=haik
Turns on sandbox denial logging if security.sandbox.logging.enabled is true.

Removes most sandbox violation messages but some related messages generated
by other processes will still get through.
2017-01-17 15:47:13 -08:00
Chris Pearce
3ccff1fde4 Bug 1329543 - Remove GMPAudioDecoder and unencrypted GMP decoding. r=gerald
MozReview-Commit-ID: JLlHmyEg6Qo
2017-01-14 11:44:41 +08:00
Chris Pearce
67c01d5323 Bug 1329543 - Remove uses of MOZ_ADOBE_EME. r=glandium
MozReview-Commit-ID: DCQ5KsZEJLP
2017-01-09 21:43:23 +08:00
Mike Hommey
3349e52d3c Bug 1306327 - Move reading application.ini to XRE_main. r=bsmedberg
Reading application.ini involves using nsCOMPtr<nsIFile>, and that can
only happen through the XPCOM glue, which we eventually want to get rid
of.

So, while keeping the command line argument/environment variable
handling in nsBrowserApp, we move the actually parsing of the file to
XRE_main, where things can be handled without the XPCOM glue.
2017-01-10 16:43:23 +09:00
Mike Hommey
b365aff82e Bug 1306327 - Use the new XRE Bootstrap API in Desktop Firefox. r=bsmedberg
This just wraps all the XRE method calls to go through the Bootstrap API
instead of relying on the XPCOM glue methods.
2016-12-16 11:10:02 +09:00
Mike Hommey
2756f99622 Bug 1306327 - Remove NS_XRE_DLL_BLOCKLIST_ENABLED. r=bsmedberg
Instead of having nsBrowserApp.cpp set a flag in XREAppData to indicate
whether the DLL blocklist properly initialized, just have XRE code ask
the blocklist itself.
2017-01-10 09:10:36 +09:00
Mike Hommey
f89620bd8c Bug 1306327 - Remove the flags argument to XRE_main. r=bsmedberg
This hasn't been used since the removal of the Metro code in bug
1039866, close to two years ago.
2017-01-10 14:15:50 +09:00
Mike Hommey
31e59dce13 Bug 1306327 - Don't set XREAppData.xreDirectory from nsBrowserApp.cpp. r=bsmedberg
It turns out nsAppRunner.cpp sets it to the exact same thing when it's
not already set, so we might as well use that.
2017-01-10 08:02:43 +09:00
Mike Hommey
772b6a862b Bug 1306327 - Remove XPCOMGlueEnablePreload. r=froydnj
Back in bug 632404, when the function was added, preloading was
conditional. But after some A/B testing, the conclusion in bug 771745
was that we would just do preloading unconditionally.

Which means in practice, we don't need to have a function to enable it
manually anymore, since we're always enabling it.
2016-12-15 17:37:53 +09:00
Johann Hofmann
ac774acafd Bug 1206232 - Add temporary permission states to SitePermissions.jsm. r=jdm,Paolo
MozReview-Commit-ID: zQVeEHhIax
2016-09-22 23:09:30 +02:00
Phil Ringnalda
86429d1d93 Merge m-i to m-c, a=merge
MozReview-Commit-ID: 1NtOkt6oQ7d
2017-01-14 09:38:58 -08:00
Phil Ringnalda
5f6d3629a3 Merge autoland to m-c, a=merge
MozReview-Commit-ID: 1NoQxmEjpqA
2017-01-14 08:56:07 -08:00
ffxbld
d3eb27bc64 No bug, Automated blocklist update from host bld-linux64-spot-223 - a=blocklist-update 2017-01-14 07:05:20 -08:00
Matthew Wein
947aa30d36 Bug 1330337 - Add basic theme framework hidden behind pref r=mikedeboer
MozReview-Commit-ID: 1kje3tc7y9O
2017-01-11 14:34:23 -05:00
Brian Grinstead
266c79c64e Bug 1314091 - Expose 'compact' themes instead of the Dev Edition theme;r=Gijs
This commit does the following:
* Install two lightweight themes instead of one
* Introduce a build config to install the themes instead of relying on channel: INSTALL_COMPACT_THEMES
* Change browser-compacttheme to use the new themes instead of the old one
* Remove inferBrightness since the lwt colors are part of the compact theme definision, as opposed
  to the devedition theme which could be light or
* Update CSS to use :-moz-lwtheme-darktext and :-moz-lwtheme-brighttext instead of [devtoolstheme]

MozReview-Commit-ID: 4gKU68drlE2
2017-01-13 11:53:58 -08:00
Andrea Marchesini
e562c32f8d Bug 1328756 - Add a pref for and options to the Long Press of the plus button, r=gijs 2017-01-12 18:30:47 +01:00
Brian Grinstead
4f6a48859d Bug 1329207 - Change the default theme icon in about:addons and customize mode;r=Gijs
MozReview-Commit-ID: KOdm4BUb1Es
2017-01-12 12:42:18 -08:00
Henry Chang
85dc14974a Bug 1305486 - Enable v4 tables on nightly build. r=francois
MozReview-Commit-ID: 4iGduuYqMQs
2016-11-20 15:10:19 +08:00
Eric Rahm
cf65aeb92a Bug 1322735 - Remove MOZ_STACKWALKING define. r=glandium
With frame pointer omission disabled we should always have usable stacks on Windows. This allows us to remove the MOZ_STACKWALKING define as it will always be enabled.

MozReview-Commit-ID: 54xs3Hf1r4P
2016-12-20 15:11:36 -08:00
Phil Ringnalda
d24ca1e4dc Backed out 3 changesets (bug 1322735) for ASan leaks and xpcshell/selftest.py failures
CLOSED TREE

Backed out changeset 01cfc71ce542 (bug 1322735)
Backed out changeset 84c729c41230 (bug 1322735)
Backed out changeset b419aaefae95 (bug 1322735)
2017-01-10 20:17:34 -08:00
Eric Rahm
60ffec900a Bug 1322735 - Remove MOZ_STACKWALKING define. r=glandium
With frame pointer omission disabled we should always have usable stacks on Windows. This allows us to remove the MOZ_STACKWALKING define as it will always be enabled.

MozReview-Commit-ID: 54xs3Hf1r4P
2016-12-20 15:11:36 -08:00
Wes Kocher
11f7fb1a9e Backed out changeset 5ee958f9deca (bug 1305486) for test_safe_browsing_initial_download.py failures a=backout
MozReview-Commit-ID: ICQovv1KLdw
2017-01-10 18:29:00 -08:00
Henry Chang
e9913e1edb Bug 1305486 - Enable v4 tables on nightly build. r=francois.
MozReview-Commit-ID: 4iGduuYqMQs
2016-11-20 15:10:19 +08:00
Edouard Oger
39b1782c8b Bug 1201335 - Display notification when a new device is added to Sync account. r=markh
MozReview-Commit-ID: D03prgIdL1M
2017-01-04 19:21:36 -05:00
Iris Hsiao
73d8e055ea Merge mozilla-central to mozilla-inbound 2017-01-06 11:10:58 -05:00
Iris Hsiao
273fb0f3c2 merge autoland to mozilla-central a=merge 2017-01-06 11:06:17 -05:00
Iris Hsiao
9390923fe1 merge mozilla-inbound to mozilla-central a=merge 2017-01-06 10:59:19 -05:00
ffxbld
ed64129559 No bug, Automated blocklist update from host bld-linux64-spot-039 - a=blocklist-update 2017-01-06 07:23:27 -08:00
Dão Gottwald
51ee83518a Bug 1322738 - Implement compact about:newtab tiles styling. r=gijs 2017-01-04 22:39:52 +01:00
Dão Gottwald
08ad0e2efc Bug 1322737 - Implement ability to show basic placeholders for missing about:newtab thumbnails. r=gijs 2017-01-06 15:00:25 +01:00
Scott Wu
7d513d2535 Bug 1326153 - Change Form Autofill feature flag to browser.formautofill.experimental r=MattN
MozReview-Commit-ID: 6QF0RVLRS61
2016-12-29 16:09:33 +08:00
ffxbld
75d4b0a1d7 No bug, Automated blocklist update from host bld-linux64-spot-1064 - a=blocklist-update 2017-01-04 06:34:34 -08:00
ffxbld
9be54f86d5 No bug, Automated blocklist update from host bld-linux64-spot-058 - a=blocklist-update 2017-01-03 06:55:03 -08:00
Tanvi Vyas
3bf09bba97 Bug 1217152 - Flip a pref to disable autofilling saved password on HTTP pages. Flip a pref to enable showing insecure password warnings in the password field autocomplete drop down. r=MattN
MozReview-Commit-ID: EAGsSpkOlEp
2017-01-02 17:47:43 -05:00
Wes Kocher
e9b6dc155a Merge autoland to central, a=merge
MozReview-Commit-ID: ARlpf5Z77fz
2016-12-29 11:58:24 -08:00
ffxbld
0fe420112a No bug, Automated blocklist update from host bld-linux64-spot-079 - a=blocklist-update 2016-12-29 07:05:51 -08:00
ffxbld
e2d7dce05f No bug, Automated blocklist update from host bld-linux64-spot-139 - a=blocklist-update 2016-12-27 06:43:58 -08:00