Commit Graph

604361 Commits

Author SHA1 Message Date
Chris Peterson
11ee6d0d0c Bug 1475882 - clang-analyzer: Enable clang-analyzer-cplusplus.NewDelete check. r=andi
Check for double-free, use-after-free and offset problems involving C++ delete. There are currently no clang-analyzer-cplusplus.NewDelete warnings in mozilla-central!

https://clang-analyzer.llvm.org/available_checks.html

MozReview-Commit-ID: 9sVp4fc4JTj

--HG--
extra : rebase_source : 733974ff07b873f6e5cd1e83104f82eafbf7f3c7
extra : source : 778684b276e6658fb9f3fa125aaec984cca8760a
2018-07-14 23:07:40 -07:00
Chris Peterson
4ab09c5491 Bug 1473217 - Part 3: clang-tidy: Enable misc-unused-raii check. r=andi
Finds temporaries that look like RAII objects.

https://clang.llvm.org/extra/clang-tidy/checks/bugprone-unused-raii.html

MozReview-Commit-ID: KDYoF3YEbMu

--HG--
extra : rebase_source : 294b56106e9b44a5dd9b9a1778877921df0cf698
extra : intermediate-source : ca55794cb22c35c9cf1f29ff06e32cbcbb22230f
extra : source : 4b59f7e733d31e28a700213ad63d3581951ccc05
2018-07-02 10:52:35 -07:00
Chris Peterson
06a7d5c549 Bug 1473217 - Part 2: dom: Fix misc-unused-raii warnings. r=baku
nsPrintfCString creates a formatted string, but doesn't print it.

ExtractOriginData is called for its constructor's scope and origin out parameters. This ExtractOriginData object doesn't really need a name because it is unused after we have scope and origin,  but this change makes clang-tidy happy and makes the code clear that ExtractOriginData is an object and not a funcion being called.

MozReview-Commit-ID: nxUBwzL4Uq

--HG--
extra : rebase_source : 5fd3a592ac628b14b8221bf2df4fc442fb407106
extra : source : 1dfaf199d2ede7a445b40ec7585c66010f5a1a6b
2018-07-03 22:09:54 -07:00
Eric Rahm
3eed00fc26 Bug 1448034 - Part 2: Lazily create ProxyResolution thread. r=bagder
This delays the creation of the PAC thread until we need to dispatch a
runnable to it.

--HG--
extra : rebase_source : dc4bffc041e237dddac7ae36a3a3b2f9c5de3421
2018-07-16 16:05:39 -07:00
Eric Rahm
dba1589cc2 Bug 1448034 - Part 1: Get rid of SysProxySetting threads. r=bagder
--HG--
extra : rebase_source : 4d8de477d605801ae19579eac1bf2b647cf444c9
2018-07-10 18:02:21 -07:00
David Parks
90d1dba800 Bug 1445444: Properly initialize plugin window drawing type on Windows r=jimm
Sets the default plugin window type to windowed on Windows.  Most of the time, plugins use async drawing so this will be overwritten but it should be properly initialized for cases where we do not switch to async.
2018-06-25 13:16:44 -07:00
Eitan Isaacson
c555f6075c Bug 1474688 - Support line movement granularity and remove defunct paragraph. r=yzen r=jchen 2018-07-16 15:59:00 +03:00
Eitan Isaacson
3fa0f4108f Bug 1475087 - Include boundaryType in vc change event. r=surkov 2018-07-16 13:56:00 +03:00
Tooru Fujisawa
54398673f2 Bug 1475464 - Add more description about FunctionScope data. r=jandem DONTBUILD because comment only 2018-07-17 10:00:42 +09:00
Xidorn Quan
823be07d6e Bug 1476128 - Have HIDDEN_VIEWPORT_OVERFLOW_TYPE recorded on main process as well. r=botond
--HG--
extra : source : fdf8a2b9cd052dd192001889149b88ce97c7740e
2018-07-17 08:54:37 +10:00
David Major
6b830c8485 Bug 1475660: Make clang-cl PGO enable LTO (enables ThinLTO in official builds) r=froydnj,glandium
--HG--
extra : rebase_source : e4efb8d4bf7994ff51f20f51c6cd1eb45bd8339b
2018-07-16 17:59:49 -04:00
Bogdan Tara
c039bd785b Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-07-17 01:00:53 +03:00
Bogdan Tara
a8850882a7 Merge autoland to mozilla-central. a=merge 2018-07-17 00:58:15 +03:00
Gurzau Raul
c05f725b1e Backed out 6 changesets (bug 1476054) for failing on servo/ports/geckolib/glue.rs on a CLOSED TREE
Backed out changeset f4941fe345ad (bug 1476054)
Backed out changeset cc571c618e4c (bug 1476054)
Backed out changeset 0a712d7bcb66 (bug 1476054)
Backed out changeset 62293a989ed2 (bug 1476054)
Backed out changeset ef2a43e3fc6c (bug 1476054)
Backed out changeset a2bb0089cf1d (bug 1476054)
2018-07-16 23:56:23 +03:00
Eitan Isaacson
30579dc4fd Bug 1475078 - Go to last substring in current position when movePreviousByText. r=surkov
In the case of an unbound pivot (endOffset == startOffset == -1), we
should move to the last substring in the current position when
movePreviousByText is called.
2018-07-16 13:46:23 -07:00
Eitan Isaacson
16dbdcb14b Bug 1475068 - If accessible's parent has text interface, use it in pivot move by text. r=surkov 2018-07-16 13:46:23 -07:00
Gurzau Raul
117e86643a Backed out changeset ed8baebfeb78 (bug 1475087) for Windows build bustages on mozilla/a11y/DocAccessibleParent.h on a CLOSED TREE 2018-07-16 23:20:28 +03:00
Emilio Cobos Álvarez
7dd15c8788 Bug 1476054: Remove a useless cfg. r=me
MozReview-Commit-ID: HrVqhA6FiIA
2018-07-16 21:38:49 +02:00
Emilio Cobos Álvarez
1e1dcdda64 Bug 1476054: Fix Servo build and unit tests build. r=me
MozReview-Commit-ID: Azyet6aYLez
2018-07-16 21:38:47 +02:00
Emilio Cobos Álvarez
9325870208 Bug 1476054: Fixes and cleanups for Servo PR #21156. r=me
Similar to the previous patch, logical clear doesn't appear in computed style
objects.

MozReview-Commit-ID: FbN0hiUGzYa
2018-07-16 21:38:46 +02:00
Philipp Klein
c501db36f9 Bug 1476054: Move clear CSS property outside mako. r=emilio
Imports servo/servo#21156.
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>

MozReview-Commit-ID: CLZN4FdUvDN
2018-07-16 21:38:45 +02:00
Emilio Cobos Álvarez
cd116a52c4 Bug 1476054: Fixes and cleanups for Servo PR #21139. r=me
Logical floats don't appear in the computed style objects, so there's no need to
check for them.

MozReview-Commit-ID: 3ocJrRB3jeO
2018-07-16 21:38:44 +02:00
Philipp Klein
2912d63914 Bug 1476054: Move float CSS property outside mako. r=emilio
Imports servo/servo#21139.
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>

MozReview-Commit-ID: EoLK36GMq3d
2018-07-16 21:38:43 +02:00
Eitan Isaacson
95b1000eef Bug 1475087 - Include boundaryType in vc change event. r=surkov 2018-07-16 12:36:31 -07:00
Petru Lingurar
10add268a1 Bug 1473872 - Start targeting API 26; r=nalexander
MozReview-Commit-ID: GqBiQbRy4bu

--HG--
extra : amend_source : 57b2ce873af5aedf99ef337abc669a3bcd624fed
2018-07-06 16:57:36 +03:00
Nicolas Chevobbe
ab7d6e7707 Bug 1463674 - Run all jsterm test with both the old and the new version; r=bgrins.
This will allow us to avoid regression for both versions.
Also, the test were adapted to the codeMirror jsterm.

MozReview-Commit-ID: eZBvLv7JBH

--HG--
extra : rebase_source : 445a0a81607b85d2245fb81db6563b9023796932
2018-07-05 16:49:53 +02:00
Nicolas Chevobbe
2e04728654 Bug 1463674 - Add a missing test for hitting arrow keys when autocomplete popup is displayed; r=Honza.
When migrating the old code to codeMirror, I saw that two defined behaviors
were not tested:
- ArrowLeft when popup is displayed should hide the popup and the autocompletion test
- ArrowRight when popup is displayed should complete the input with the selected element.

This patch add a test for those two cases.

MozReview-Commit-ID: HZYtHssfB55

--HG--
extra : rebase_source : 77a333a7137b233f3280cddcfc81bc3008953530
2018-07-05 16:48:01 +02:00
Nicolas Chevobbe
6227906abb Bug 1463674 - Add new test helpers for JsTerm; r=bgrins.
Since we are dealing with 2 versions of this component, we
introduce new helpers that abtracts how we get or assert
some values.

MozReview-Commit-ID: 1XNPcmwwsBj

--HG--
extra : rebase_source : 5b916fe9ad953ce80c058be1ea2eb8894c625c8e
2018-07-05 16:52:38 +02:00
Nicolas Chevobbe
0f940f40b7 Bug 1463674 - Enable autocompletion popup in codeMirror JsTerm; r=bgrins.
This patch translates old key handlers to codeMirror ones.

MozReview-Commit-ID: FGJehgGaBGI

--HG--
extra : rebase_source : bf88130eb8e92b2bf29dac5024f0dc49f727e9c7
2018-07-05 16:22:45 +02:00
Nicolas Chevobbe
c09c80f824 Bug 1463674 - Refactor char and chevron width measurement; r=bgrins.
Create a separate function to measure the chevron width, and make
the function that measure the char width pure by only returning
the width.
The assignment to internal properties (_inputCharWidth, _chevronWidth),
is now done in componentDidMount which simplify reading this code.

MozReview-Commit-ID: FitY97Y03Sg

--HG--
extra : rebase_source : d35caaf19b14d9a5cfbddaf58d20bc6c7aeb4aaa
2018-07-05 16:40:03 +02:00
Nicolas Chevobbe
1ab949fecd Bug 1463674 - Add shadow autocompletion text capability to the source editor; r=bgrins.
This functionnality is used in the webconsole to display to the user
what will be inserted if they hit Tab.
Since CodeMirror does not provide such feature, we take advantage of
markText to put the autocompletion text in a title attribute and
then display it using a CSS after pseudo element.
This way, we don't have to run any complex computation for positioning
nor styling.

MozReview-Commit-ID: 1tFdlR51418

--HG--
extra : rebase_source : aa728e3ee3254e2ef7eb1768e3f8621decca0535
2018-07-05 16:18:53 +02:00
Nicolas Chevobbe
a47aba9281 Bug 1463674 - Allow sourceeditor consumer to have <kbd>Tab</kbd> handling; r=bgrins.
Since the source editor already defines its own extraKeys.Tab,
anything the consumer set was ignored.
This patch now also runs consumer extraKeys.Tab if defined.

MozReview-Commit-ID: 5FeMXoystAb

--HG--
extra : rebase_source : 4d57be89965691948609c9037ef60d8850cea8af
2018-07-05 16:15:35 +02:00
Kartikaya Gupta
4316cc3e7d Bug 1475909 - Mark some WPT reftests passing with webrender. r=mattwoodrow
MozReview-Commit-ID: 3nYyajcQZbS

--HG--
extra : rebase_source : eef7517eb439d9c75ad07cf37016b00e546cbc70
2018-07-16 10:42:44 -04:00
Haik Aftandilian
70bdba7624 Bug 1475707 - [Mac] Flash sandbox on Nightly/Beta causes OS X 10.9 file upload dialog Flash plugin crash r=Alex_Gaynor
Add the com.apple.xpcd service to the Flash plugin sandbox for OS X 10.9 systems to avoid crashes when opening file dialogs.

MozReview-Commit-ID: A40Mov98Ddy

--HG--
extra : rebase_source : 3aa7471f239bd64d9e153e2e7076e99006358f1f
2018-07-13 12:58:40 -07:00
Andrew Halberstadt
a4378ab77d Bug 1468812 - [taskgraph] Move 'use_fetches' transform to the job section r=gps
The 'use_fetches' transform is currently only being used by toolchain tasks,
but we'd like to expand this to more kinds (like 'test' and 'source_test').

The problem is that 'use_fetches' doesn't have a schema, and assumes things
about the kinds of keys that will be set in the job. For example, it assumes
that job['worker']['env'] is going to be forwarded up to the jobdesc properly.

By moving this transform into the set applied to all 'job' tasks, we:

A) Have a task schema we can reliably depend on
B) Can automatically use it from any 'job' task without kind specific
modifications

Since the toolchain tasks apply the 'job' transforms (almost) right after
the 'use_fetches' transform, this change just works.

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

--HG--
extra : moz-landing-system : lando
2018-07-16 16:47:04 +00:00
ffxbld
e42f8d1c4c No Bug, mozilla-central repo-update HSTS HPKP remote-settings - a=repo-update r=mtabara
Differential Revision: https://phabricator.services.mozilla.com/D2163

--HG--
extra : moz-landing-system : lando
2018-07-16 18:20:48 +00:00
Bogdan Tara
a7481969d4 Backed out changeset 4aa2f74bad5b (bug 1474663) for contain size failures CLOSED TREE 2018-07-16 21:11:42 +03:00
Ursula Sarracini
95af8b91ca Bug 1474410 - Move ActivityStream instantiation and uninit into AboutNewTab r=Mardak
MozReview-Commit-ID: 5PupSQra62m

--HG--
extra : rebase_source : ae481f0884f827e61eb6d611a5e5a154f824a58e
2018-07-16 11:58:35 -04:00
Morgan Rae Reschenberg
da09c07290 Bug 1474663 - Implement contain:size for nsColumnSetFrame. r=dholbert
MozReview-Commit-ID: EE7Un9LUJcV

--HG--
extra : rebase_source : c89ee8a403821b9f7f901116a8e9a6cb8687cbd0
2018-07-12 09:10:52 -07:00
Brian Grinstead
e09fd8bb6c Bug 1469339 - Put strings needed for the edit context menu into ftl at toolkit/locales;r=flod
This also registers the locale through the build system and browser glue since
it's the first ftl file in toolkit/.

MozReview-Commit-ID: 7XDqKmVU0vh

--HG--
extra : rebase_source : b179e78554f667fdaf3c3fc32a020a8c176b5021
2018-07-16 08:53:23 -07:00
Cameron McCormack
53f61d2eec Bug 1475904 - Add .swp files (for open, unnamed vim buffers) to .gitignore. r=froydnj
MozReview-Commit-ID: KIEbQWijXrJ

--HG--
extra : rebase_source : 3eef5532a70d5d9fb8f6c46c8f7793bf8fad96de
2018-07-16 12:26:13 +10:00
Simon Fraser
0d74149678 Bug 1476003 Update python virtual environment for |mach python-safety| r=davehunt
Following the lead from 1473727 and python-test.

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

--HG--
extra : moz-landing-system : lando
2018-07-16 15:36:50 +00:00
Andrew Halberstadt
0e4eda282f Bug 1471990 - Implement |mach try again| to repeat your last 'try_task_config.json' try push r=gbrown
One of the big downsides to |mach try fuzzy| is that if you use the interactive
finder, there's no way to repeat your last action. If you want to run the same
push again, you have to manually re-select all the same tasks a second time.

It is possible to save presets, but this is fairly heavy-weight and (more)
permanent. Sometimes you just want to re-run a push a few times and forget
about it. It's also possible to craft the query on the command line with -q,
but then you don't get the immediate visual feedback, so you can't be sure that
you typed out the right things without actually pushing.

With |mach try again|, everytime you generate a try_task_config.json via
'fuzzy', 'empty' or any other subcommands that may exist in the future, it'll
get stored in a history file under ~/.mozbuild. Then running |mach try again|
will simply re-run the most recent try_task_config.json.

You'll also be able to view the whole history via |mach try again --list| and
select a specific try_task_config.json (i.e not the most recent one) via
|mach try again --index <index>|.

Example usage will be:
$ ./mach try fuzzy
<select a bunch of tasks>
$ ./mach try again
<re-pushes exact same set of tasks>

MozReview-Commit-ID: 3EZjVCy08uq

Depends on D1808.

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

--HG--
extra : moz-landing-system : lando
2018-07-16 13:35:30 +00:00
Paul Adenot
1e98c50388 Bug 1456271 - Ajust tests to reflect the alignment to the spec. r=padenot
Both for mochitest (simply an expectation adjustment), and in mochitest (align
with the code).

MozReview-Commit-ID: 2UIq4zrcd02

--HG--
extra : rebase_source : 1858e73b3ad89aade3219ee8556c653c55c85bed
2018-07-16 15:04:11 +02:00
Petru Lingurar
1621c3cb1f Bug 1349523 - Add support for playing videos in Picture-in-picture mode; r=jchen
MozReview-Commit-ID: DKlBFRo9q8t

--HG--
extra : amend_source : a38477d2530fb3e53548be6ab909d994f35534c0
2018-06-22 12:57:02 +03:00
Vlad Baicu
17a2dd33c2 Bug 1474961 - Change StumblerService to a foreground service when targeting Android Oreo. r=jchen
Also made broadcasts involving Stumbler explicit.

MozReview-Commit-ID: 7CK2Cr2JqX0

--HG--
extra : amend_source : 4a7de557ad76f6cb2a0dcad5419ec2b37ca89e05
2018-07-11 20:02:24 +03:00
Andrei Lazar
7ea3509c52 Bug 1451061 - Review Permissions usage for Android 8 behaviour changes r=jchen,JanH
Added reading permission as a safety measure for any future android updates.

MozReview-Commit-ID: Be6V8hn9KF8
***

--HG--
extra : amend_source : 501deb367f68b0592a1d91015c640782700c62f3
2018-07-05 13:15:10 +03:00
Vlad Baicu
34f5dfce43 Bug 1465102 - Updated NotificationService for Oreo. r=JanH
Modified NotificationClient to use new start/stop intents for NotificationService for
Android O. We are keeping a reference to the notification the service was first
started with in order to comply with the mandatory startForeground call for Oreo.

MozReview-Commit-ID: 4CzM4pvANJt

--HG--
extra : amend_source : 3bb93cae58b214c680a3ea67fe60d3680767b558
2018-07-05 19:35:16 +03:00
Vlad Baicu
f434b908e1 Bug 1384866 - Refactored MediaControlService logic to GeckoMediaControlAgent. r=jchen
Moved the logic ouf of MediaControlService to a new singleton GeckoMediaControlAgent,
which delegates all media-related actions.Currently, MediaControlService is used
for the foreground notification and to retrieve actions from the notification
pending intents. Removed redundant test cases.

MozReview-Commit-ID: KukAmpnn33S

--HG--
rename : mobile/android/app/src/test/java/org/mozilla/gecko/media/TestMediaControlService.java => mobile/android/app/src/test/java/org/mozilla/gecko/media/TestGeckoMediaControlAgent.java
extra : amend_source : 251b7821f4ddefcf852480de72ca1004cbd261bf
2018-06-22 19:02:54 +03:00
Andrei Lazar
fc8235eccf Bug 1473518 - Abide by Android Oreo background execution limits [Leanplum after upgrade] r=nalexander
Refactored existing LeanplumPushInstanceIDService to support Oreo background
execution limits in Leanplum after upgrade.

MozReview-Commit-ID: JjUlrOv34KR
***

--HG--
extra : amend_source : df46ff00a671a02dc1c6fda3d0402d9216d7e84f
2018-07-06 13:21:27 +03:00