Граф коммитов

577770 Коммитов

Автор SHA1 Сообщение Дата
Gurzau Raul e12c30afe7 Backed out changeset 5bb16f349a38 (bug 1430825) for Windows build bustage on a CLOSED TREE 2018-01-22 21:54:08 +02:00
Gurzau Raul 1e61b297a4 Backed out changeset de52bf2201a6 (bug 1431539) for mochitest failures on layout/style/test/test_visited_reftests.html on a CLOSED TREE 2018-01-22 21:37:23 +02:00
Ed Lee 4fb6289fb8 Bug 1431945 - Fix right-to-left icons, site-context-menu drags and bug fixes to Activity Stream. r=dmose
MozReview-Commit-ID: KFgZvupU3ml

--HG--
extra : rebase_source : 639cebe33379cc527effc9da06c5fdf00f43e371
2018-01-20 11:02:49 -08:00
Brad Werth 97bcf6103f Bug 1429744: Relax a test of StyleRuleAdded events to allow for the possibility that style rules could arrive before import rules. r=emilio
MozReview-Commit-ID: COIK852QzUm

The test also verifies that when an import rule event arrives, that the rule has a loaded stylesheet.

--HG--
extra : rebase_source : ca4e0cece11382ce204d6b9cf0823bf1d66f0255
2018-01-12 08:39:50 -08:00
Julian Descottes 46f8ae7efd Bug 1431758 - do not use netmonitor data to fetch stylesheets over 1MB;r=jryans
MozReview-Commit-ID: Gz6dRLiLREm

--HG--
extra : rebase_source : dc25347c977b7890231b7434622d171d217f7bc6
2018-01-20 00:24:41 +01:00
Andrew Halberstadt 337dcdeb9d Bug 1430825 - [mozlint] Split work up by paths instead of by linters, r=standard8
The initial motivation for this patch, was to prevent command lines that are
too long on Windows. To that end, there is a cap to the number of paths that
can be run per job. For now that cap is set to 50. This will allow for an
average path length of 160 characters, which should be sufficient with room to
spare.

But another big benefit of this patch is that we are running more things in
parallel. Previously, mozlint ran each linter in its own subprocess, but that's
it. If running eslint is 90% of the work, it'll still only get a single
process. This means we are wasting cores as soon as the other linters are
finished.

This patch chunks the number of specified paths such that there will be N*L
jobs where 'N' is the number of cores and 'L' is the number of linters.  This
means even when there's a dominant linter, we'll be making better use of our
resources. This isn't perfect of course, as some paths might contain a small
number of files, and some will contain a very large number of files.  But it's
a start

A limitation to this approach is that if there are fewer paths specified than
there are cores, we won't schedule enough jobs per linter to use those extra
cores. One idea might be to expand specified directories and individually list
all the paths under the directory. But this has some hairy edge cases that
would be tough to catch. Doing this in a non-hacky way would also require a
medium scale refactor.

So I propose further parallelization efforts be destined for follow-ups.

MozReview-Commit-ID: JRRu13AFaii

--HG--
extra : rebase_source : 6cd73d8b6888723de3410df043f7ed042ba3349f
2018-01-16 16:01:20 -05:00
Kartikaya Gupta 30277f6a9c Bug 1426386 - Add reftests for position:sticky items inside a transform. r=mstange
MozReview-Commit-ID: 8qNnWhg0zd9

--HG--
extra : rebase_source : 6ee5a308245560d6cb5149d235902b41dcbb7601
2018-01-22 12:00:31 -05:00
Kartikaya Gupta 474ec938e7 Bug 1426386 - Split the transform sent to webrender back into the transform and positioning components. r=mstange
MozReview-Commit-ID: XHqgYPwjZ0

--HG--
extra : rebase_source : 4d04ec882147368733854b9322e00a6030a73b2c
2018-01-22 12:00:30 -05:00
Kartikaya Gupta 18a07f55d3 Bug 1426386 - Expose WR stacking context bounds via StackingContextHelper. r=mstange
MozReview-Commit-ID: AGFSq0wxxQi

--HG--
extra : rebase_source : 62ba354170dc9cbddf3d5571c5a55be481038226
2018-01-22 12:00:30 -05:00
Jan Henning 9358e0df96 Bug 1414928 - Part 2 - Updating the progress bar once is enough. r=nechen
We still need to explicitly set the progress when loading stops, so the progress
bar animates to completion before updateProgressState hides it, but in all other
cases calling just updateProgressState is enough to set the new progress value.

MozReview-Commit-ID: 9mQr5s83i9F

--HG--
extra : rebase_source : 7ce8751a97ea4220df7f3502c268507cd53a00dc
2017-11-06 20:36:10 +01:00
Jan Henning 3e8680bacd Bug 1414928 - Part 1 - Rename updateProgressvisibility to make its function clearer. r=nechen
MozReview-Commit-ID: 8mLUsJ0tfS3

--HG--
extra : rebase_source : e66859475406e5c1d6c64c5e0aadd0f7b63a0c51
2018-01-13 13:43:15 +01:00
Jan Henning c64da558ae Bug 1427260 - Skip deleted items when getting Activity Stream highlights. r=Grisha
All they do is clutter up the log with "HighlightsRanking: Skipping invalid
highlight item." entries, so we should just skip them in the query already.

MozReview-Commit-ID: 1ra7LcYxp4m

--HG--
extra : rebase_source : 5f150e9ed5fd293f27f110cd2973525d5b82e86d
2018-01-05 20:43:06 +01:00
Emilio Cobos Álvarez edd0b400cd Bug 1431539: Tests. r=dholbert
MozReview-Commit-ID: FSkzeMjIWN1
2018-01-22 19:36:31 +01:00
abhinav 78189660d8 Bug 1335316 - Include URL parameters in network request logs; r=Honza
MozReview-Commit-ID: 4NqKiX46vqz

--HG--
extra : rebase_source : f0917415233452acb4c5cda5b13f51ff21b58ce1
2018-01-20 00:33:58 +05:30
Ted Mielczarek b7fbfa59d0 bug 1255485 - add some tests for building programs in dist/bin. r=nalexander
MozReview-Commit-ID: 94uOsInnWmT

--HG--
extra : rebase_source : 8b2a3b6b328e9eabfd7e06b1d9bbdd4264f26ef5
2018-01-17 11:19:19 -05:00
Ted Mielczarek 4c95b3dc36 bug 1255485 - force import libraries to be generated in objdir, not dist/bin. r=chmanchester
The MSVC linker winds up generating import libraries when linking some of
our executables, presumably because they contain functions that are
__declspec(dllexport). By default the import libraries get written
alongside the exe, so we force them to be written to the objdir so they don't
clutter up dist/bin.

MozReview-Commit-ID: 7DTfCo3OdDQ

--HG--
extra : rebase_source : fea69e8f60633b824726269c2296af9fe812d3ed
2017-11-27 09:03:31 -05:00
Ted Mielczarek be1e5a70e4 bug 1255485 - Remove NSDISTMODE=copy support from config.mk. r=nalexander
MozReview-Commit-ID: L5Pe4NexbJD

--HG--
extra : rebase_source : 3a499c357948da288fa12e28010bee069510b00d
2017-11-22 15:31:01 -05:00
Ted Mielczarek e3f2c0b1a3 bug 1255485 - Remove NSDISTMODE=copy from Makefiles. r=nalexander
MozReview-Commit-ID: GJV2O6zvEx2

--HG--
extra : rebase_source : 6150647b3a2cc288444c79aeb0f79f34d7dadd0d
2017-11-22 15:30:06 -05:00
Ted Mielczarek 2a410dbcc3 bug 1255485 - build PROGRAMs directly in dist/bin instead of copying them. r=nalexander
Historically we built all our binaries in directories in the objdir, then
symlinked them into dist/bin. Some binaries needed to be copied instead
so that certain relative path lookups work properly, so we resorted to
sprinkling `NSDISTMODE=copy` around Makefiles.

This change makes it so we build PROGRAMs (not any other sort of targets)
directly in dist/bin instead. We could do the same for our other targets
with a little more work.

There were several places in the tree that were copying built binaries to
some other place and needed fixup to match the new location of binaries.

On Windows pdb files are left in the objdir where the program was
originally linked. symbolstore.py needs to locate the pdb file both to
determine whether it should dump symbols for a binary and also to copy
the pdb file into the symbol package. We fix this by simply looking for
the pdb file in the current working directory if it isn't present next
to the binary, which matches how we invoke symbolstore.py.

MozReview-Commit-ID: 8TOD1uTXD5e

--HG--
extra : rebase_source : 9140be949b206bb595d9188ce7e8357347ecd9a9
2018-01-10 14:26:12 -05:00
Jed Davis bba4ea8274 Bug 1401062 - Avoid doing sandbox-related things to unsandboxed child processes. r=gcp
This is a small piece of cleanup that turned out to not be strictly
necessary for the rest of this, so I've made it a separate commit.

Sandbox-related launch adjustments (currently, interposing libc
functions and providing a file descriptor for the syscall reporter)
are no longer applied to processes that won't be sandboxed.  The
MOZ_SANDBOXED environment variable communicates this to the child
process, which allows SandboxEarlyInit to be skipped in that case as
well.  The idea is that disabling sandboxing for a process type, as part
of troubleshooting, should disable everything sandbox-related.

As a side-effect, this also skips some very minor but unnecessary
overhead for NPAPI process startup.

MozReview-Commit-ID: D0KxsRIIRN

--HG--
extra : rebase_source : 89836bea80d0a171324a8e3ff15c6b8e2a163ea9
2018-01-09 19:54:56 -07:00
Jed Davis 6cc01043ce Bug 1401062 - Create Linux child processes with clone() for namespace/chroot sandboxing. r=gcp
Namespace isolation is now handled by using clone() at process creation
time, rather than calling unshare.

pthread_atfork will no longer apply to sandboxed child processes.
The two significant uses of it in Firefox currently are to (1) make
malloc work post-fork, which we already avoid depending on in IPC and
sandboxing, and (2) block SIGPROF while forking, which is taken care of;
see SandboxFork::Fork for details.  Note that if we need pthread_atfork
in the future it could be emulated by symbol interposition.

clone() is called via glibc's wrapper, for increased compatibility vs.
invoking the syscall directly, using longjmp to recover the syscall's
fork-like semantics the same way Chromium does; see comments for details.

The chroot helper is reimplemented; the general approach is similar,
but instead of a thread it's a process cloned with CLONE_FS (so the
filesystem root is shared) from the child process before it calls
exec, so that it still holds CAP_SYS_CHROOT in the newly created user
namespace.  This does mean that it will retain a CoW copy of the
parent's address space until the child starts sandboxing, but that is a
relatively short period of time, so the memory overhead should be small
and short-lived.

The chrooting now happens *after* the seccomp-bpf policy is applied;
previously this wasn't possible because the chroot thread would have
become seccomp-restricted and unable to chroot.  This fixes a potential
race condition where a thread could try to access the filesystem after
chrooting but before having its syscalls intercepted for brokering,
causing spurious failure.  (This failure mode hasn't been observed in
practice, but we may not be looking for it.)

This adds a hidden bool pref, security.sandbox.content.force-namespace,
which unshares the user namespace (if possible) even if no sandboxing
requires it.  It defaults to true on Nightly and false otherwise, to
get test coverage; the default will change to false once we're using
namespaces by default with content.

MozReview-Commit-ID: JhCXF9EgOt6

--HG--
rename : security/sandbox/linux/LinuxCapabilities.cpp => security/sandbox/linux/launch/LinuxCapabilities.cpp
rename : security/sandbox/linux/LinuxCapabilities.h => security/sandbox/linux/launch/LinuxCapabilities.h
extra : rebase_source : f37acacd4f79b0d6df0bcb9d1d5ceb4b9c5e6371
2017-10-06 17:16:41 -06:00
Jed Davis 5161a86c36 Bug 1401062 - Delete the old namespace/chroot code and reorganize sandbox init. r=gcp
This is mostly deletion, except for SandboxEarlyInit.  The unshare()
parts are going away, and the "unexpected threads" workaround can go away
along with them, but the signal broadcast setup still needs to happen
early so we can prevent blocking the signal.

So, SandboxEarlyInit's contract changes slightly from "call before
any other threads exist" to "before any threads that might block all
signals", and everything that can be deferred to immedately before
sandbox startup is.  As a result, some getenv()s change to PR_GetEnv
because there can be threads, and there is now an NSPR dependency.
(This may mean that mozglue can no longer interpose symbols in NSPR,
because libmozsandbox is preloaded, but I don't think we're doing that.)

MozReview-Commit-ID: 7e9u0qBNOqn

--HG--
extra : rebase_source : 1a8442f7e0e26231ecf01b19078433d1b5b2763c
2017-08-31 20:38:25 -06:00
Marco Bonardo ext:(%20%3Cmbonardo%40mozilla.com%3E) bed8d88705 Bug 1428342 - Make Places queries directly inherit options from their parent. r=standard8
Rather then trying to guess options from the parent or the root node, make query nodes directly
inherit some options from their parent.

MozReview-Commit-ID: 1YgDjrrMqGY

--HG--
extra : rebase_source : 5714e6243b0080c977cf6ab454c3f624990414dd
2017-12-14 10:06:37 -06:00
Alexandre Poirot 3694b8f1fa Bug 1431395 - Set fixed size on all columns. r=Honza
MozReview-Commit-ID: KNdjHyc7abU

--HG--
extra : rebase_source : 0ff553a1d30822e9986872df6f45e3150bd28905
2018-01-17 14:34:52 -08:00
Kartikaya Gupta a2063aef65 Bug 1432222 - Actually default cargo check to gkrust when invoked without any crate arguments. r=froydnj
MozReview-Commit-ID: JIgippNiBP

--HG--
extra : rebase_source : 256682c3664ac14ddb7a7cf5cf0089e8612ac022
2018-01-22 12:40:28 -05:00
Jan Odvarko c59f2d5676 Bug 1311177 - Implement the devtools.network.getHAR API method; r=jdescottes,rickychien,rpl
MozReview-Commit-ID: gUtGjbr0FQ

--HG--
extra : rebase_source : 78f837101f83d5ad455fc7e2d1f53db054cec4cc
2018-01-22 18:30:46 +01:00
Jared Wein e6e26da7d7 Bug 1431368 - Change from keypress to keydown per standards change. r=MattN
MozReview-Commit-ID: phprPvOfuU

--HG--
extra : rebase_source : 97e54363820fe6c074df76656cce18c53309886d
2018-01-18 06:29:54 -05:00
Emilio Cobos Álvarez 9e0eab64a0 Bug 1429723: Remove static analysis special-case that is no longer relevant. r=sfink
MozReview-Commit-ID: bqCHE0eOx
2018-01-22 18:14:26 +01:00
Emilio Cobos Álvarez 7063cec276 Bug 1429723: Graphics cleanup. r=jrmuizel
MozReview-Commit-ID: LHo9K4lLtah
2018-01-22 18:14:19 +01:00
Emilio Cobos Álvarez a2c0cd700d Bug 1429723: Remove -moz-border-*-colors. r=xidorn
MozReview-Commit-ID: 3P6f7rFcDa6
2018-01-22 18:14:07 +01:00
Emilio Cobos Álvarez 105d76e307 servo: Merge #19833 - style: Remove -moz-border-*-colors (from emilio:bye-border-colors); r=xidorn
Bug: 1429723
Reviewed-by: xidorn
MozReview-Commit-ID: 3P6f7rFcDa6
Source-Repo: https://github.com/servo/servo
Source-Revision: abb04ce7c6d68bd6fa24d39692d2884c6cbc371d

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : b4a3eabc09839446268f144b720169f52d15ab9f
2018-01-22 09:23:20 -06:00
Jim Chen d7308576ea Bug 1430241 - Call PreventNativeKeyBindings for all key events in child; r=esawin
Call PreventNativeKeyBindings() for all key events to prevent triggering
an assertion in PuppetWidget.

MozReview-Commit-ID: 3x96p9baTze

--HG--
extra : rebase_source : 1f1477074e49ca7be9b3f3956289adf4f288a223
2018-01-19 17:52:27 -05:00
Emilio Cobos Álvarez af5c08c014 Bug 1409672: Handle document state changes using the invalidation machinery. r=xidorn
MozReview-Commit-ID: EoSMrYPS7dl
2018-01-22 17:57:05 +01:00
Mike Conley b511744f61 Bug 888784 - Modify testFormHistory Fennec test to wait until FormHistory database is created. r=nalexander
MozReview-Commit-ID: Joysv4Qu9Li

--HG--
extra : rebase_source : b270fdc34fc4e0a37b3f946a5bec776819ad8e28
2018-01-10 17:17:31 -05:00
Mike Conley bdabb0dbe9 Bug 888784 - Use Sqlite.shutdown instead of AsyncShutdown to close FormHistory database connection. r=mak
MozReview-Commit-ID: GsM0bf8V7XD

--HG--
extra : rebase_source : 8dd681f555d04f55132abab3ae3fa750f90edabf
2018-01-09 15:47:49 -05:00
Mike Conley 8d8d6feabf Bug 888784 - Make satchel tests wait for FormHistory to be clear when shutting down. r=mak
MozReview-Commit-ID: 9rxyT48VnNj

--HG--
extra : rebase_source : b4b0dd42bdda44182bd83baf8715fbe6813e00a5
2018-01-09 18:54:58 -05:00
Mike Conley 4f3a1a157d Bug 888784 - Prevent duplicate fieldname/value pairs from being inserted in FormHistory. r=mak
MozReview-Commit-ID: 9icdBPW2Px9

--HG--
extra : rebase_source : 56c5fe6c9603b62238139c96b928f5a722f77664
2018-01-09 18:54:39 -05:00
Mike Conley bda00666a9 Bug 888784 - Make sure Fennec's Sanitizer.jsm resolves a clearing Promise only after a data clearing attempt has finished. r=Grisha
MozReview-Commit-ID: 62JjwgozS5b

--HG--
extra : rebase_source : 6b96acf1b34168eaba681a0f400a487eba061df3
2018-01-09 15:48:33 -05:00
Mike Conley f79e6f625d Bug 888784 - Get rid of dead mozIStorageService code in FormHistory.jsm. r=mak
MozReview-Commit-ID: XLOFLpMsPv

--HG--
extra : rebase_source : 2e5974c17f733d1a260f663c4fc778e16065512c
2017-12-01 14:55:24 -05:00
Mike Conley 11e6bb7968 Bug 888784 - Make FormHistory.expireOldEntries use new Sqlite.jsm database backend. r=mak
MozReview-Commit-ID: KSaWz0s6hF1

--HG--
extra : rebase_source : f31d3688fab80b3e0ab277c5f7b37289e1294cac
2017-12-01 14:54:02 -05:00
Mike Conley 015183b465 Bug 888784 - Make FormHistory.getAutoCompleteResults use Sqlite.jsm backend. r=mak
MozReview-Commit-ID: 7rYj1lMosLW

--HG--
extra : rebase_source : 2426755c6b4acb6ebd436ac6329a3e4291785da4
2017-12-01 10:53:32 -05:00
Mike Conley 03777d4776 Bug 888784 - Get rid of FormHistory.shutdown. r=mak
FormHistory.shutdown was called via FormHistoryStartup.js's profile-before-change
observer to close the database synchronously.

Now FormHistory uses AsyncShutdown and closes the database asynchronously, so
FormHistory.shutdown is no longer required.

MozReview-Commit-ID: Lok5vx1dOTW

--HG--
extra : rebase_source : c368ab3895fd0c4f39d01d195578afdcf49a5f91
2017-11-30 18:11:18 -05:00
Mike Conley 0fa7ca4dd1 Bug 888784 - Make FormHistory.update use Sqlite.jsm database backend. r=mak
MozReview-Commit-ID: 7Ku1kFtTYZK

--HG--
extra : rebase_source : e3679c4724ec8c8ba7dc5e99198152f23c754775
2017-11-30 18:09:54 -05:00
Mike Conley 4f1d95addb Bug 888784 - Remove FormHistory.getSchemaVersion and update some tests that used it to use add_task. r=mak
MozReview-Commit-ID: EQBksMqeNm2

--HG--
extra : rebase_source : 81e4a64cefce1352a7e34d855047ca9922132689
2017-11-30 17:00:07 -05:00
Mike Conley 9eb3d19277 Bug 888784 - Make FormHistory.search use Sqlite.jsm database backend. r=mak
MozReview-Commit-ID: J1ElTJpWHza

--HG--
extra : rebase_source : 3568f430594adcd72bdcd7750ef86bf17f2441dd
2017-11-30 15:15:10 -05:00
Mike Conley 8ca16cc1b4 Bug 888784 - Make FormHistory.count use Sqlite.jsm database backend. r=mak
MozReview-Commit-ID: 53gec0qQL1y

--HG--
extra : rebase_source : 9ef8414f98ad4a36a20e56735a0d681eb13d8c33
2017-11-30 14:28:13 -05:00
Mike Conley d2c296a580 Bug 888784 - Add a new Sqlite.jsm based database connector to FormHistory.jsm. r=mak
MozReview-Commit-ID: JADYzdAokVJ

--HG--
extra : rebase_source : 226f858c2a85ac7e57a9289925136d8e1788f127
2017-11-30 14:03:04 -05:00
Narcis Beleuzu e449275782 Backed out changeset 41262016e149 (bug 1431758) for build bustage. on a CLOSED TREE 2018-01-22 18:42:13 +02:00
Julian Descottes 4fa078bd65 Bug 1431758 - do not use netmonitor data to fetch stylesheets over 1MB;r=jryans
MozReview-Commit-ID: Gz6dRLiLREm

--HG--
extra : rebase_source : 74d73ecd50cc1e56a66c6e45d43b1ca48f136cf2
2018-01-20 00:24:41 +01:00
Narcis Beleuzu a9239fc56d Backed out 14 changesets (bug 888784) for ESlint failure on /FormHistory.jsm. on a CLOSED TREE
Backed out changeset 8c3fc3cb35b7 (bug 888784)
Backed out changeset 4f1b033d3cc0 (bug 888784)
Backed out changeset 4f7816c12e0b (bug 888784)
Backed out changeset 456d0f3e4e34 (bug 888784)
Backed out changeset 5044e2244d17 (bug 888784)
Backed out changeset 8a44ddb5f2c2 (bug 888784)
Backed out changeset 9e70d1f4489e (bug 888784)
Backed out changeset a799d6cd42e4 (bug 888784)
Backed out changeset f33b9cc53b30 (bug 888784)
Backed out changeset dc3b1653e70c (bug 888784)
Backed out changeset 53cb7d7c71da (bug 888784)
Backed out changeset 5f88a6ef1aac (bug 888784)
Backed out changeset 291e111da6ef (bug 888784)
Backed out changeset b2682e434b20 (bug 888784)
2018-01-22 18:13:06 +02:00