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

604694 Коммитов

Автор SHA1 Сообщение Дата
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 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
Andrei Lazar 65f0721e90 Bug 1450447 - Start using notification channels. r=jchen
Made all the notifications within the app to use notification channel for devices with API26 and higher.

MozReview-Commit-ID: CVmpitNsS66

--HG--
extra : amend_source : 6628a1e06975e23b7b38a43650df12c9835cb3ee
2018-07-06 17:57:22 +03:00
Sylvestre Ledru 78e9c0dd0f Bug 1468273 - Add closure-lib and intl/icu into the flake8 ignore list r=ahal
MozReview-Commit-ID: A68UyXSHO9l

--HG--
extra : rebase_source : 92c965aba41d31d47e437ef3e72070fe5d060338
2018-06-12 23:11:40 -07:00
Petru Lingurar ad67bdea7e Bug 1465323 - Update FxAccountUpgradeReceiver. r=JanH
Listening for `ACTION_MY_PACKAGE_REPLACED` [1] is the easiest way to get notified
when the app has been updated.
This broadcast, while not explicitly exempt from Oreo's Background Execution
Limits [2] is considered explicit because it is sent only to the package being
replaced and so it is compatible with the new limitations.

The previous intent action was chosen because at that time this action was not
supported by all platforms Fennec ran on [3], but this is not the case anymore.

[1] https://developer.android.com/reference/android/content/Intent.html#ACTION_MY_PACKAGE_REPLACED
[2] https://developer.android.com/guide/components/broadcast-exceptions
[3] 5c06063be6

MozReview-Commit-ID: Ak0dd2koJ9U

--HG--
extra : rebase_source : 58f32f574b13e5d7e9256f578821445eae1e3b57
extra : histedit_source : 204d858fe7408276714b2d228b612baddf76804d
2018-06-12 19:26:53 +03:00
Petru Lingurar 4378fd95bb Bug 1465323 - Update PackageAddedReceiver. r=JanH
This Receiver was used for implicit broadcasts and registered statically.
Refactored MmaDelegate() to register it dynamically in the init() method,
called in activity's onCreate and unregister it in activity's onDestroy.
This way we will still get notified immediately if the user installs any of
the apps we are interested in, even though he might not return to Fennec
immediately after. This will help to better asses the impact of suggestions to
install recommended packages.

For the cases in which the user installs the packages without us suggesting to
or if he kills our app before completing the new install, we will trigger a
check for the install status of the packages in MmaDelegate().init().

Also cleaned the code a little.

MozReview-Commit-ID: I00mLS2snzj

--HG--
extra : rebase_source : 9d767744dc3f4f2a44ab6de67c20f68a137a3beb
extra : histedit_source : e33a46fe4ece77b08eb8c9d161513e669fc14631
2018-07-16 21:15:32 +03:00
Petru Lingurar 55070cd7e6 Bug 1465323 - Update NotificationReceiver. r=JanH
The only change needed was to make sure the broadcast for
NotificationHelper.HELPER_BROADCAST_ACTION is sent explicitly to
our receiver.
The other 2 broadcasts that this receiver listens for are already explicit.

MozReview-Commit-ID: C3A88ijqIsd

--HG--
extra : rebase_source : bd6beb4a6b5656b59ee61d0122a133042d77e380
extra : histedit_source : 63103038680580f5e30082e245fb0be5168529eb
2018-06-12 13:01:23 +03:00
Petru Lingurar f249aa63e8 Bug 1465323 - Update WhatsNewReceiver. r=JanH
Listening for `ACTION_MY_PACKAGE_REPLACED` [1] is the easiest way to get
notified when the app has been updated.
This broadcast, while not explicitly exempt from Oreo's Background Execution
Limits [2] is considered explicit because it is sent only to the package being
replaced and so it is compatible with the new limitations.
The previous intent action was chosen because at that time this action was not
supported by all platforms Fennec ran on [3], but this is not the case anymore.

The other broadcast - `ACTION_NOTIFICATION_CANCELLED` that this receiver
listens to is send explicitly.

[1] https://developer.android.com/reference/android/content/Intent.html#ACTION_MY_PACKAGE_REPLACED
[2] https://developer.android.com/guide/components/broadcast-exceptions
[3] 5c06063be6

MozReview-Commit-ID: DLUdw906i3P

--HG--
extra : rebase_source : a8544ae169344896aba4c7b922b68af4ad4bc94c
extra : histedit_source : c41c60cedea452ba8662fa836faa2aa8f9b5627e
2018-06-12 12:43:55 +03:00
Petru Lingurar 0940f02f48 Bug 1467840 - Use a JobIntentService for GCM token refresh; r=JanH
Whenever the GCM token expires it need to be refreshed.
For this, after targeting Android 8.0 (API level 26) or higher
Google recommends using a JobIntentService
https://developers.google.com/cloud-messaging/android/client

MozReview-Commit-ID: 1vz092TQfbz

--HG--
extra : amend_source : afecc9454dd64c1b0a83bc469d7cf201909ee2ae
2018-06-26 19:04:10 +03:00
Petru Lingurar 37e967daf5 Bug 1467840 - Migrate GeckoService to JobIntentService; r=snorp
This simple Service needed to be migrated to JobIntentService because it could
be started from background and we don't want it as a foreground service
(with a notification).
(For example: when the app is updated org.mozilla.gecko.PackageReplacedReceiver
would try and start this service. If in background, the app would crash)

Had to break the initial Service into separate JobIntentServices because in the
event that there are concurrent calls (even with different Intent actions)
JobScheduler would assume they are for the same already running service.

INTENT_ACTION_UPDATE_ADDONS was removed as it was being unused.

MozReview-Commit-ID: 2GiWFZdAVvp

--HG--
extra : amend_source : 7236a78707b781ee24eafe1e69662c10bd6a0ea6
2018-06-26 18:41:38 +03:00
petru 86aa31b5f4 Bug 1407046 - Migrate FileCleanupService to JobIntentService: Follow-up to for android-test. r=test-fix 2018-07-16 21:46:15 +03:00
Eitan Isaacson 6d59d60177 Bug 1471951 - Support expand selection with caret (2/2). r=yzen r=jchen 2018-07-16 10:53:27 -07:00
Eitan Isaacson ffbf9af4d8 Bug 1471951 - Support set selection and clipboard actions (1/2). r=yzen r=jchen 2018-07-16 10:53:27 -07:00
Masatoshi Kimura 632e94cf4d Bug 1476000 - Support warnings format from clang-cl. r=dmajor
--HG--
extra : rebase_source : faf01d659a589c81718e58e2c73b1b46063ce989
2018-07-17 01:08:04 +09:00
David Major 6043bb48c5 Bug 1448980: Make --enable-lto work with clang-cl. r=froydnj 2018-07-16 12:26:36 -04:00
David Major 1eb86751ab Bug 1448980 prequel: Rename LTO `flags` to `cflags`. r=froydnj 2018-07-16 12:25:40 -04:00
David Major 85279470b7 Bug 1448976: Pick up two LLVM fixes for ThinLTO undefined symbols on Windows. r=froydnj
https://bugs.llvm.org/show_bug.cgi?id=38105#c4
https://bugs.llvm.org/show_bug.cgi?id=38139#c5
2018-07-16 12:24:57 -04:00
Petru Lingurar 417a481b63 Bug 1467461 - Migrate CrashReportingService to JobIntentService. r=snorp
Use the fact that a JobIntentService is still a Service to keep most of the
previous implementation and method of starting CrashReportingService.
On 26+ devices it will be called with "start-foreground-service".
This ensures it can be started even from background and the crash reporting
process would work as before but ActivityManager will post an ANR error to
logcat after 5 seconds because we aren't calling Service.startForeground()
(which would mean a user visible notification).

Will use different Job Ids depending on if the app is Firefox Release or
Firefox Beta.
The Job Id will be passed to GeckoThread when first initializing and then be
made available to CrashHandler and nsExceptionHandler.cpp to be sent in the
Intent that starts the CrashReporterService.

MozReview-Commit-ID: GATl6Waa9St

--HG--
extra : amend_source : 70bc130b9411df336181e825ebb3e19bdc5a778c
2018-07-02 17:32:10 +03:00
Petru Lingurar 8ee271210b Bug 1407046 - Migrate UpdateService to JobIntentService. r=jchen
Broke the big IntentService into four small JobIntentServices because
the same JobIntentService class cannot be used with multiple JobIds
(b6838fd2d2/compat/src/main/java/android/support/v4/app/JobIntentService.java (L121))
Also:
    - will make the code easier to be migrated to WorkManager in the future
    - more in line with SRP. It was initially doing too much.

All the functionality of the big UpdateService class has been incorporated in
Updater.java, UpdatesPrefs.java and UpdatesServiceHelper.java
with the main logic to drive the important actions inside the new Services.
UpdaterService is used as parent of the newly created service to help avoid
duplicated code.
Created an inner BroadcastReceiver to act upon notification actions while
the service which posted it is running as it's state needed to be modified.
Created a BroadcastReceiver to act on actions from notifications which remained
posted after the service that posted them finished. This receiver will just
start another UpdaterService.
Otherwise the services are to be started from the UpdateServiceHelper class.

MozReview-Commit-ID: 2OyBZ4YYvgh

--HG--
extra : rebase_source : 17b98a1209409c09227490ca66d75d8d37717a6e
2018-07-13 20:53:38 +03:00
Petru Lingurar 0ce784d030 Bug 1407046 - Migrate FileCleanupService to JobIntentService. r=JanH
Also cleaned the code a little.

MozReview-Commit-ID: Bs3bUdxxz8k

--HG--
extra : rebase_source : bf564b683e786010d8f4836a1ee75aefa0514fa8
2018-06-26 17:42:28 +03:00
Petru Lingurar d1e02a31c5 Bug 1407046 - Migrate TelemetryUploadService to JobIntentService. r=JanH
MozReview-Commit-ID: 8UGDzgmY81y

--HG--
extra : rebase_source : c5495972fe15769eb15f97ea6121123804868bd2
2018-06-26 17:40:48 +03:00
Petru Lingurar 41571be939 Bug 1407046 - Migrate FxAccountDeletedService to JobIntentService. r=jchen
MozReview-Commit-ID: 5ksrTc1Stre

--HG--
extra : rebase_source : 01bf5896d1fd23baf1cab223cd7a3985ab4e8450
2018-06-26 17:38:30 +03:00
Petru Lingurar cbed3e4cc6 Bug 1407046 - Migrate FxAccountProfileService to JobIntentService. r=JanH
Also cleaned the code a little.

MozReview-Commit-ID: 1Zm3oLVVZ8s

--HG--
extra : rebase_source : 88c392f4276860785e98a6f7d7122fc4ca689d19
2018-06-26 17:36:11 +03:00
Petru Lingurar 198f113ef4 Bug 1407046 - Migrate TabReceivedService to JobIntentService. r=JanH
MozReview-Commit-ID: 5CEfJtUfmHq

--HG--
extra : rebase_source : 430bf2dde4dc7f52c954c404fa7bbec4641e9eb9
2018-06-26 17:33:58 +03:00
Petru Lingurar 8830f08311 Bug 1407046 - Migrate DownloadContentService to JobIntentService. r=snorp
Broke the big IntentService into four small JobIntentServices because
the same JobIntentService class cannot be used with multiple JobIds
(b6838fd2d2/compat/src/main/java/android/support/v4/app/JobIntentService.java (L121))
Also:
    - will make the code easier to be migrated to WorkManager in the future
    - more in line with SRP. It was initially doing too much.

Cleaned the code a little, removed the superfluous creation of new Threads for
DownloadContentCatalog().persistChanges() / .startLoadFromDisk()
as those methods are always called from the background threads
of the new JobIntentServices.
The new DlcHelper helps reducing duplicated code.

MozReview-Commit-ID: G3fsWYOGEbR

--HG--
extra : rebase_source : 5bdc3e64a44b7a3f77743b2b2f8f5d528a7b51c3
2018-06-26 17:31:19 +03:00
Emilio Cobos Álvarez 8805f43898 Bug 1473813: Don't make pseudo-elements replaced by content: url(..). r=bz
Differential Revision: https://phabricator.services.mozilla.com/D1996
2018-07-16 18:06:39 +02:00
Emilio Cobos Álvarez 0da3dae9c9 Bug 1472403: Simplify generated image content. r=bz,dholbert
This way we reuse the same machinery everywhere for the content property.

The only difference is that we need to look at the parent style for content
instead of just our style, and at a given index.

Again, this is fine because changing content reframes, so no chance to mess up.

This allows the generated content stuff to not implement nsImageLoadingContent
and all that stuff, nor deal with events, which makes it much simpler IMO.

Now it just tracks an index. We may not even need for it to be an HTML element,
but I've kept that for now.

I added a crashtest that used to crash because of the bogus
nsCSSFrameConstructor code which trusted the node name without checking it was
native anonymous.

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

MozReview-Commit-ID: 1pAzIvRRVnL
2018-07-16 18:06:38 +02:00
Emilio Cobos Álvarez 09e04b0f0f Bug 1475980: A moved table should be empty. r=froydnj
MozReview-Commit-ID: 7K9wNGhIhaD
2018-07-16 18:06:37 +02:00
Andrea Marchesini ceea0172b0 Bug 1473587 - CSP Violation events should have the correct sample for inline contexts, r=jorendorff, r=ckerschb 2018-07-16 17:58:04 +02:00
Sylvestre Ledru b7066a4a1c Bug 1468273 - Ignore ipc/chromium r=ahal
MozReview-Commit-ID: HhXbRSMrTLP

--HG--
extra : rebase_source : 817f9a42af334bdeb73a091468d81fe0d06501a0
2018-06-11 17:31:33 -07:00
Sylvestre Ledru eb7d846340 Bug 1468273 - autopep8 on ipc/ r=froydnj
MozReview-Commit-ID: 63pBUqmDlkZ

--HG--
extra : rebase_source : 6570b1b12e56c2ae1009b00d1cf9a70fb3f651d8
2018-06-10 14:29:07 +02:00
Sylvestre Ledru 91907444b3 Bug 1468273 - Fix flake8/pep8 in intl/ r=froydnj
MozReview-Commit-ID: IDqjd7nBRS

--HG--
extra : rebase_source : 1679528701e0cab59fb827224f19eced9c8fda00
2018-06-10 14:25:47 +02:00
Sylvestre Ledru 6c3c26c3f7 Bug 1468273 - Fix flake8/pep8 issues by hand in gfx/ r=ted
MozReview-Commit-ID: BFnq9JpWZxq

--HG--
extra : rebase_source : d56375d1ff0f183f95e0565851191190fe41e34b
2018-06-10 14:15:18 +02:00
Sylvestre Ledru 13b20f9b86 Bug 1468273 - autopep8 on gfx/ r=ted
MozReview-Commit-ID: 8j8EU3E08GP

--HG--
extra : rebase_source : 1f38ac0b7283505622cc95a120a0a0d4cea96803
2018-06-10 14:13:44 +02:00
Jeff Walden 7c76915841 Bug 1476409 - Fix a case where during tokenization we could overread source text by one code unit -- but safely, due to conservatively-written subsequent code. r=arai 2018-07-17 21:00:28 -07:00
Jeff Walden cf5cb73a65 Bump the gcc version-check on defining JS_BROKEN_GCC_ATTRIBUTE_WARNING to account for 8.1.x all probably being buggy. (8.1.0 was, so probably the whole patchlevel will be buggy.) No bug, rs=me
--HG--
extra : rebase_source : 00ca2a9f9300d4ea879cd266b6f2e5e8b6fa897f
2018-07-17 14:04:50 -07:00