Commit Graph

18223 Commits

Author SHA1 Message Date
Andrew Swan
11daacfbe1 Bug 1197420 Part 2 Extension cleanups for optional permissions r=kmag
- Convert the object used to represent permissions to the format
  used in the optional permissions UI (property hosts becomes origins)
- Turn Extension.userPermissions into a getter

MozReview-Commit-ID: Dc44DMfKjG
2017-03-23 21:45:25 -07:00
Andrew Swan
24044dfd72 Bug 1197420 Part 1 Schema groundwork for optional permissions r=kmag
MozReview-Commit-ID: JIfPYjxjFfM
2017-03-24 11:10:26 -07:00
Phil Ringnalda
bb0cc6a131 Backed out 5 changesets (bug 1197420) for test_ext_permissions.js and test_chrome_ext_permissions.html timeouts on Fennec
CLOSED TREE

Backed out changeset 8a0125e00903 (bug 1197420)
Backed out changeset 925e3a9499ee (bug 1197420)
Backed out changeset 46e135035f10 (bug 1197420)
Backed out changeset 440bab141509 (bug 1197420)
Backed out changeset 3e690bbe8b5a (bug 1197420)
2017-03-24 20:43:24 -07:00
Andrew Swan
a943135938 Bug 1197420 Part 5 Tests for optional permissions r=kmag
MozReview-Commit-ID: 8uViXB1Jgz3
2017-03-16 14:36:26 -07:00
Andrew Swan
43dbe20442 Bug 1197420 Part 4 Apply dynamic permission changes r=kmag
MozReview-Commit-ID: 6TdcUv1fHPh
2017-03-23 17:28:52 -07:00
Andrew Swan
1ab93c4095 Bug 1197420 Part 3 Initial browser.permissions api support r=kmag
With this patch, permissions are not actually applied,
but the permissions api is in place.

MozReview-Commit-ID: CTaXz5sa1xy
2017-03-24 13:55:09 -07:00
Andrew Swan
f04930d0f2 Bug 1197420 Part 2 Extension cleanups for optional permissions r=kmag
- Convert the object used to represent permissions to the format
  used in the optional permissions UI (property hosts becomes origins)
- Turn Extension.userPermissions into a getter

MozReview-Commit-ID: Dc44DMfKjG
2017-03-23 21:45:25 -07:00
Andrew Swan
d0493e77e2 Bug 1197420 Part 1 Schema groundwork for optional permissions r=kmag
MozReview-Commit-ID: JIfPYjxjFfM
2017-03-24 11:10:26 -07:00
Wes Kocher
1df124f305 Merge inbound to central, a=merge
MozReview-Commit-ID: JGfQoBJy2jt
2017-03-24 17:17:27 -07:00
Sebastian Hengst
3e366ef2c2 Backed out changeset 6c4c29c0b05a (bug 1197420) for failing test_ext_all_apis.html. r=backout 2017-03-24 20:56:54 +01:00
Sebastian Hengst
f4d206dc20 Backed out changeset 3de2de388ac9 (bug 1197420) 2017-03-24 20:56:14 +01:00
Sebastian Hengst
7b11b686c6 Backed out changeset 7df6cc66a2eb (bug 1197420) 2017-03-24 20:56:10 +01:00
Sebastian Hengst
07e3b9be93 Backed out changeset cb352ddee812 (bug 1197420) 2017-03-24 20:56:05 +01:00
Sebastian Hengst
53bc3eea4c Backed out changeset 5750ae148c78 (bug 1197420) 2017-03-24 20:56:01 +01:00
Andrew Swan
81adbb1dea Bug 1197420 Part 5 Tests for optional permissions r=kmag
MozReview-Commit-ID: 8uViXB1Jgz3
2017-03-16 14:36:26 -07:00
Andrew Swan
df98c5adb3 Bug 1197420 Part 4 Apply dynamic permission changes r=kmag
MozReview-Commit-ID: 6TdcUv1fHPh
2017-03-23 17:28:52 -07:00
Andrew Swan
925ea0071d Bug 1197420 Part 3 Initial browser.permissions api support r=kmag
With this patch, permissions are not actually applied,
but the permissions api is in place.

MozReview-Commit-ID: CTaXz5sa1xy
2017-03-23 21:48:03 -07:00
Andrew Swan
8fc99c4b75 Bug 1197420 Part 2 Extension cleanups for optional permissions r=kmag
- Convert the object used to represent permissions to the format
  used in the optional permissions UI (property hosts becomes origins)
- Turn Extension.userPermissions into a getter

MozReview-Commit-ID: Dc44DMfKjG
2017-03-23 21:45:25 -07:00
Andrew Swan
76af68d8d8 Bug 1197420 Part 1 Schema groundwork for optional permissions r=kmag
MozReview-Commit-ID: JIfPYjxjFfM
2017-03-24 11:10:26 -07:00
Marco Bonardo
5de64a180b Bug 1344205 - Remove unsatisfied assertion on database page removals and protect removals from orphaning. r=standard8
Due to the asynchronous behavior of history, it's possible a race condition
causes a page to be used when it was about to be removed.
For example a bookmark to a page could be added between the point where we
decide the page is an orphan, and the point where we actually remove the page.
Notifications in such a case may be improperly ordered, and there is no cheap
way to guarantee we won't notify a removal in such a case.
Since applicable solutions would be too expensive (code and perf wise), for now
just remove the assertion we can't satisfy, and protect removals from possibly
creating unexpected orphans.
Testing this would require a special setup where we can guarantee thread
scheduling order, so for now this comes without a test. Regardless it's
basically only adding safety guards.

MozReview-Commit-ID: KYkaqAv8fCB
2017-03-23 17:51:52 +01:00
Carsten "Tomcat" Book
6a90d0370d Merge mozilla-central to mozilla-inbound 2017-03-24 14:29:00 +01:00
Carsten "Tomcat" Book
5f0d3d4e50 merge mozilla-inbound to mozilla-central a=merge 2017-03-24 14:24:21 +01:00
Kris Maglione
0181a1e24c Bug 1348442: Part 3 - Do not evict cached stylesheets while they're still being used by extant documents. r=aswan
There are some optimizations, both existing and under way, that allow us to
share some stylesheet data between documents that they're loaded into. Keeping
cached sheets around as long as they're still in use should be a net memory
savings.

MozReview-Commit-ID: HUZzs6HhuFM
2017-03-18 16:07:58 -07:00
Kris Maglione
7553f01ab3 Bug 1348442: Part 2c - Refactor Script class into ES6 class. r=aswan
MozReview-Commit-ID: Dtci1mfQts0
2017-03-18 15:19:29 -07:00
Kris Maglione
d06b5048db Bug 1348442: Part 2b - Add getWinUtils helper. r=aswan
MozReview-Commit-ID: 9vvCbYovyoN
2017-03-18 15:16:16 -07:00
Kris Maglione
c97f45a8ff Bug 1348442: Part 2a - Asynchronously load and cache content script CSS. r=aswan
MozReview-Commit-ID: 1BzLNbdXMfU
2017-03-23 18:51:38 -07:00
Federico Padua
d28d150c61 Bug 1337022 - Fix the regex in the Telemetry event parser. r=Dexter
This patch fixes the regex defined by IDENTIFIER_PATTERN in
toolkit/components/telemetry/parse_events.py to be less strict and fixes the
relative documentation.
To be precise, before this fix, the regex did not allow the category "ui" (which is described
in the documentation at the webpage
https://gecko.readthedocs.io/en/latest/toolkit/components/telemetry/telemetry/collection/events.html)
to be matched so the documentation was wrong.
The reason for that was that the regex required at least one extra character or
number to be in the string, so for example "uig" would have matched.
With this fix the category "ui" is allowed and matched by the new regex and the documentaion
(https://gecko.readthedocs.io/en/latest/toolkit/components/telemetry/telemetry/collection/events.html#limits)
is updated to reflect the change.

MozReview-Commit-ID: ID2aKOM1v7
2017-03-17 11:59:17 +01:00
Gabriele Svelto
4ff26d2d74 Bug 1341349 - Enable sending the crash ping from the crashreporter client only when the overall configuration would allow pings to be sent r=Dexter,gfritzsche
The crashreporter client will send a crash ping autonomously only when it
finds a valid TelemetryServerUrl annotation. This patch makes this annotation
conditional on all the preferences that regulate sending pings (including
official telemetry flags) and prevents it from sending pings before the user
has been notified of the privacy policy.

This is achieved by adding a new _annotateCrashReport() method to the
TelemetrySend obejct which can be called before we've initialized the rest of
the components. It is invoked manually early in the startup process so that
startup crashes are properly annotated, then it's invoked again when the user
is informed of the privacy policy as well as when one of the relevant
preferences is altered. This ensures that the annotations are stripped if the
user disables uploading pings without having to restart Firefox.

MozReview-Commit-ID: 2DKnoWGT1Bp
2017-03-08 15:00:26 +01:00
Wes Kocher
f0eabd8bb7 Merge inbound to central, a=merge
MozReview-Commit-ID: 6od53T3ozcm
2017-03-23 16:15:37 -07:00
Carsten "Tomcat" Book
626d44b38b Merge mozilla-central to mozilla-inbound 2017-03-23 13:57:16 +01:00
Carsten "Tomcat" Book
758a758bd5 merge mozilla-inbound to mozilla-central a=merge 2017-03-23 13:44:09 +01:00
Carsten "Tomcat" Book
0947398f26 merge autoland to mozilla-central a=merge 2017-03-23 13:42:40 +01:00
Carsten "Tomcat" Book
6405e0b39a Backed out changeset 9476c9a5f4c9 (bug 1349389) for causing dt4 perma failures 2017-03-23 10:47:18 +01:00
Wes Kocher
b14725241c Merge inbound to central, a=merge
MozReview-Commit-ID: EQ7w1Gld1K2
2017-03-22 17:10:01 -07:00
Carsten "Tomcat" Book
0ba47846aa Merge mozilla-central to mozilla-inbound 2017-03-22 16:13:03 +01:00
Carsten "Tomcat" Book
6610746b51 merge mozilla-inbound to mozilla-central a=merge 2017-03-22 14:26:27 +01:00
Andrea Marchesini
8f5f953fba Bug 1343933 - Renaming Principal classes - part 2 - NullPrincipal, r=qdot 2017-03-22 11:38:40 +01:00
Mark Banner
ec9074e132 Bug 1347712 - Change the testing configurations into ESLint configurations within eslint-plugin-mozilla - automatically update .eslintrc.js test config files for new config locations. r=jaws
MozReview-Commit-ID: LH0CQOPfoe6
2017-03-20 12:36:37 +01:00
Florian Quèze
c31ae0841d Bug 1345080 - bump the max version of the SEARCH_SERVICE_ENGINE_COUN probe, r=rweiss. 2017-03-15 15:18:03 +01:00
Wes Kocher
1fa645d370 Bug 1349467 - Fix some Audio/Video BUG_COMPONENTs in moz.build files r=jmaher
MozReview-Commit-ID: 3ItJdCtiOul
2017-03-22 17:23:12 -07:00
Mike Conley
93e5abc6ea Bug 1339775 - Add role="checkbox" for specially styled in-content checkboxes. r=jaws
MozReview-Commit-ID: IZhRECggz4j
2017-03-23 00:05:03 -04:00
Konstantin
8d4f6174e7 Bug 1344853 - Enable flake8 rule E127: "continuation line over-indented for visual indent". r=Dexter
MozReview-Commit-ID: HdEe1UCeKOh
2017-03-22 23:38:19 +03:00
Timothy Nikkel
db9df154e7 Bug 1347302. Add animated image specific probes for several imagelib telemetry probes. r=aosmond f=bsmedberg 2017-03-23 00:02:54 -05:00
Iris Hsiao
13ba8c0abf Backed out changeset 140374af2570 (bug 1341531) for build bustage 2017-03-22 15:52:39 +08:00
Gabriele Svelto
30d88a559a Bug 1322611 - After a crash compute the SHA256 hash of a minidump and attach it to the crash ping; r=Ted, nchen
This patch changes the crashreporter client code as well as the crash service
code to compute a SHA256 hash of a crash' minidump file and add it to the
crash ping. The crash service code computes the hash on the fly before handing
over the crash to the crash manager; the crash manager will then add it to the
crash ping. The crashreporter client on the other hand sends the hash via the
ping it generates but it also adds it to the event file so that the crash
manager can pick it up and send it along with its own crash ping. On Fennec
the crashreporter activity takes care of computing the hash.

SHA256 hash computation uses nsICryptoHash in the crash service, the
java.security.MessageDigest class in Fennec, the bundled NSS library in the
crashreporter when running on Windows and Mac and the system-provided NSS
library under Linux. The latter is required because the crashreporter client
uses the system curl library which is linked to NSS and which would thus clash
with the bundled one if used together.

This patch introduces two new methods for the nsICrashService interface:
|getMinidumpForID()| and |getExtraFileForID()|, these reliably retrieve the
.dmp and .extra files associated with a crash and ensure the files exist
before returning. These new methods are used in the CrashService for
processing and will become the only way to reliably retrieve those files
from a crash ID.

MozReview-Commit-ID: 8BKvqj6URcO
2017-02-16 07:36:57 +01:00
djmdev
5157206b3b Bug 1344737 - Update TelemetrySession.jsm to async function & await. r=chutten
Updated Task.async, Task.spawn and yield to async and await.
2017-03-12 11:31:38 +05:30
srivatsav
f03d2bb24c Bug 1343497 - Remove the unused .eslintrc.js. r=standard8 2017-03-21 19:16:09 +05:30
Wes Kocher
1ae5314550 Merge m-c to inbound, a=merge
MozReview-Commit-ID: GjXiiENYBmx
2017-03-21 16:20:08 -07:00
Wes Kocher
6342adb165 Merge inbound to central, a=merge
MozReview-Commit-ID: FKkx5SygvHz
2017-03-21 16:08:32 -07:00
Wes Kocher
ad6e14c46f Backed out 2 changesets (bug 1345894) for build bustage a=backout CLOSED TREE
Backed out changeset 6ad5c0f245e2 (bug 1345894)
Backed out changeset ec18ee811b9a (bug 1345894)

MozReview-Commit-ID: 3uonLJOmEAC
2017-03-21 14:35:19 -07:00