Commit Graph

18223 Commits

Author SHA1 Message Date
Alexandre Poirot
208511b0d3 Bug 1356231 - Use toolkit EventEmitter.jsm instead of devtools module. r=mossop
MozReview-Commit-ID: 49JI7NtLwKK
2017-04-27 17:58:09 +02:00
Doug Thayer
c8eb3cc7f1 Bug 1326572 - Provide an API for nsIProfiler r=kmag,mstange
In order to rewrite the Gecko Profiler add-on as a WebExtension,
we need an API for the profiler which allows us to control the
nsIProfiler, and symbolicate the stacks that it provides. This
is the implementation of the simpler parts of that API.

TODO:
- Support profiling of remote targets through a new devtools
  API.
- Support the dump_syms breakpad code which was asm.js in the
  old extension by directly calling into native code.
- Figure out a faster way to send the large volume of data from
  getSymbols all the way from our extension down to the content
  process and then into the page's context.

MozReview-Commit-ID: JzDbV4l2eXd
2017-04-11 09:03:40 -07:00
Chris H-C
28adafda5a bug 1357457 - Report non-overlapping Input Responses to Telemetry. r=bsmedberg,masayuki data-r=bsmedberg
Say there's a single lag event, a GC or a busy loop, during which the user
types several characters.

Is this one (lag) event? Several (input) events?

We have INPUT_EVENT_RESPONSE_MS which will accumulate several lagged events in
this case. However, that is more of an indication of how users use Firefox than
how good we've been at eliminating sources of lag.

INPUT_EVENT_RESPONSE_COALESCED_MS records the coalesced time spend waiting for
responses to input events. So in this case it will record one value for the
entire duration of the lag.

MozReview-Commit-ID: H5rYnhwF0q3
2017-04-19 15:53:30 -04:00
Carsten "Tomcat" Book
eb1595e913 Merge mozilla-central to autoland 2017-04-27 16:36:41 +02:00
Bob Silverberg
bd21ddc865 Bug 1358127 - Fix bookmarks.search so it doesn't return the contents of tag folders, r=mak
Also fix bookmarks.search so it doesn't return separators.

MozReview-Commit-ID: 18tkepk72f8
2017-04-24 09:04:59 -04:00
Jean-Yves Avenard
f7aa04a974 Bug 1357484: [mp4] Add m4v major type support. r=jolin
MozReview-Commit-ID: LEJvov1ZfVA
2017-04-25 12:52:56 +02:00
Phil Ringnalda
cc1b685ac9 Backed out changeset ddcbb81610fd (bug 1355198) for Android test_ext_proxy.html bustage
MozReview-Commit-ID: KetgckpyHea
2017-04-26 20:38:36 -07:00
Wes Kocher
1f5ff5465f Merge m-c to autoland a=merge
MozReview-Commit-ID: LOGgOErcV9L
2017-04-26 17:43:38 -07:00
Wes Kocher
78efa7b9c0 Merge inbound to central, a=merge CLOSED TREE
MozReview-Commit-ID: 9HQViJrDT6S
2017-04-26 17:30:31 -07:00
Marco Bonardo
6ac329305e Bug 1359737 - Preferences.jsm is unused in PlacesSyncUtils.jsm. r=kitcambridge
MozReview-Commit-ID: JDhW8mmr3x0
2017-04-26 13:44:48 +02:00
Brad Werth
9c98eb4ff2 Bug 1351383 Part 1: Define a new histogram to measure usage of css box align props in block containers. r=bsmedberg
MozReview-Commit-ID: L9TtQLj4dWi
2017-04-25 15:58:28 -07:00
Sebastian Hengst
597e84b9bb Backed out changeset 03a3ed5fbce1 (bug 1331915) for telemetry bustage. r=backout 2017-04-27 01:05:03 +02:00
Andrea Marchesini
b8849e9429 Bug 1357846 - Introducing nsIFilePicker.displaySpecialDirectory, r=smaug
nsIFilePicker.displaySpecialDirectory is a string that can be set to TmpD,
Desk, or any other special directory value. The real value of this directory
will be read in the parent process.
2017-04-26 18:20:19 +02:00
Carsten "Tomcat" Book
592baf4201 Merge mozilla-central to mozilla-inbound 2017-04-26 09:04:59 +02:00
Carsten "Tomcat" Book
dc7e8b78ef merge mozilla-inbound to mozilla-central a=merge 2017-04-26 08:41:31 +02:00
Carsten "Tomcat" Book
00da9b8f70 merge autoland to mozilla-central a=merge 2017-04-26 08:40:02 +02:00
Nicholas Nethercote
c768a954ae Bug 1358320 - Make TimeStamp::ProcessCreation()'s outparam optional. r=gsvelto.
TimeStamp::ProcessCreations()'s aIsInconsistent outparam is ignored by the
majority of its caller. This patch makes it optional. Notably, this makes
ProcessCreation() easier to use in a constructor's initializer list.
2017-04-26 14:55:54 +10:00
Wes Kocher
676e3eb6b3 No bug - Fix up merge bustage from an unsaved change a=me
MozReview-Commit-ID: CdGDhCgrksv
2017-04-25 13:58:03 -07:00
Wes Kocher
1bb3fcd58a Merge inbound to m-c a=merge
MozReview-Commit-ID: A85cs7Yriqj
2017-04-25 13:53:00 -07:00
Joel Maher
e782a7096d Bug 1334336 - Intermittent toolkit/components/passwordmgr/test/browser/browser_capture_doorhanger.js. temporarily disable. r=gbrown 2017-04-25 15:25:56 -06:00
Tim Taubert
747ba454cd Bug 1359429 - Remove superfluous telemetry probes r=mikedeboer f=bsmedberg
FX_SESSION_RESTORE_COLLECT_DATA_LONGEST_OP_MS can go because that's exactly the same as FX_SESSION_RESTORE_COLLECT_DATA_MS now.

We can remove FX_SESSION_RESTORE_COLLECT_COOKIES_MS because that's just a flat line since bug 912717 landed.
2017-04-25 21:48:22 +02:00
Ehsan Akhgari
88afb100de Backout bug 1350765 for having caused bug 1358259 2017-04-25 11:20:04 -04:00
Gabor Krizsanits
57873c6622 Bug 1352961 - P2: Measure for the delay before a new tab starts processing the first URL. r=mconley, data-r=bsmedberg
Opening pages in a new tab might suffer an extra delay from e10s-multi because
the new process has to start up and then run all the process / frame scripts
before it can react on the request from the parent to load the first page.

There are two code paths. Either we start the tab with a remote browser and
then the RemoteWebNavigation will send the request. Or we start with a non-remote
browser and have to change the remoteness flag on it, and then the SessionStore
will send the request.

In each cases we start the timer on the parent side, send it with the message,
and when the child receives it it stops the timer and reports the measured delay.
2017-04-25 17:11:12 +02:00
Gabor Krizsanits
bb288d9a9c Bug 1352961 - P1: Exposing a timer to JS that can be used across the process boundaries. r=chutten 2017-04-25 17:11:05 +02:00
Mike Conley
ffb4cca140 Bug 1352501 - Remove Reader Mode promotion panel. r=jaws,MattN
Note that the UITour library can still show a panel in the event that we want to
promote the feature that way.

MozReview-Commit-ID: FzKSzO987h7
2017-04-19 16:42:10 -04:00
Andrew Swan
64a8d967b0 Bug 1358620 Add telemetry for non-MPC extensions r=bsmedberg
MozReview-Commit-ID: 5LwLr4wXmHq
2017-04-24 11:30:51 -07:00
Christoph Kerschbaumer
9044a8bb83 Bug 1359092 - Extend loadURI within nsIWebNavigation.idl by a triggeringPrincipal argument. r=bz 2017-04-25 12:22:25 +02:00
Carsten "Tomcat" Book
c9c22f180a Backed out changeset 3e42f84996ea (bug 1359092) for causing assertion failures 2017-04-25 10:46:31 +02:00
Chris Peterson
7fcf616cf5 Bug 1358949 - Lower eslint cyclomatic complexity threshold in some directories. r=standard8
We can lower the eslint cyclomatic complexity threshold in some directories without adding eslint suppression comments in any .js source files. We need to specify the complexity rule in accessible/.eslintrc because it doesn't inherit the mozilla/recommended rules. eslint's default complexity threshold is 20.

Also bump the eslint-plugin-mozilla version because we modified the mozilla/recommended rules.

MozReview-Commit-ID: 57T4gAjPH7z
2017-04-23 19:23:18 -07:00
Chris Peterson
e530c41979 Bug 1358947 - Make eslint "max-nested-callbacks" rule an error. r=standard8
eslint's default max-nested-callbacks threshold is 10, but now we make it an error. We could further lower the max-nested-callbacks threshold globally to 8, like browser/.eslintrc.js, but that would require adding suppression comments in (two) more .js test files. 10 seems good enough for now since it's the eslint default.

We need to specify max-nested-callbacks in accessible/.eslintrc because it doesn't inherit the mozilla/recommended rules.

Also bump the eslint-plugin-mozilla version because we modified the mozilla/recommended rules.

MozReview-Commit-ID: JA41vsi4U7j
2017-04-21 23:00:26 -07:00
Chris Peterson
dccd140861 Bug 1358948 - Remove redundant eslint "no-spaced-func" rules and standardize on new "func-call-spacing" name. r=standard8
The "no-spaced-func" name was deprecated in ESLint v3.3.0 and replaced by "func-call-spacing", which is already specified in the mozilla/recommended rules and some other .eslintrc.js files. We need to specify func-call-spacing in accessible/tests/browser/.eslintrc.js because it doesn't inherit the mozilla/recommended rules.

MozReview-Commit-ID: 7L8fuVtTu0X
2017-04-23 19:40:28 -07:00
Florian Queze
5920b597b6 Bug 1359130 - stop using FileUtils.jsm in the search service, r=adw. 2017-04-25 09:21:50 +02:00
Florian Queze
f156577d13 Bug 1359130 - stop using NetUtil.jsm in the search service, r=adw. 2017-04-25 09:21:50 +02:00
Florian Queze
c9a0637249 Bug 1359111 - stop using BrowserUtils.makeURI, r=jaws. 2017-04-25 09:21:49 +02:00
Christoph Kerschbaumer
2d7ff6175c Bug 1359092 - Extend loadURI within nsIWebNavigation.idl by a triggeringPrincipal argument. r=bz 2017-04-24 21:57:25 +02:00
Drew Willcoxon
7b7f613405 Bug 1359278 - Typo in UnifiedComplete causes browser.urlbar.restrict.searches not to be used. r=mak
MozReview-Commit-ID: GVf8gAWNN3M
2017-04-24 17:45:56 -07:00
Matthew Wein
16f7a437e0 Bug 1355198 - Fix "DIRECT" return type to take no arguments and update error handling r=mixedpuppy
MozReview-Commit-ID: AKY6cjDoSmZ
2017-04-11 12:19:53 -04:00
Tom Ritter
c0d7e12fd5 Bug 1331915 Add Telemetry probe to Graphite library usage r=jfkthame
MozReview-Commit-ID: 1aU5ddQoLnV
2017-04-21 14:09:53 -05:00
Hemant Singh Patwal
97ad6f6141 Bug 1354519 - De-duplicate already ESLint recommended rules in toolkit/components/passwordmgr/.eslintrc.js. r=standard8
MozReview-Commit-ID: 8QjmEmRz7YJ
2017-04-26 22:24:19 +05:30
Hemant Singh Patwal
cc2a3cdcc8 Bug 1354518 - De-duplicate already recommended ESLint rules in toolkit/components/narrate/.eslintrc.js. r=standard8
MozReview-Commit-ID: 2QClhuKkLVU
2017-04-25 19:55:58 +05:30
Aryeh Gregor
594c362b60 Bug 1251198 - Remove various obsolete events from document.createEvent r=smaug
Other browsers do not support any of these (IIRC), telemetry reports
essentially zero usage, and supporting them is contrary to the DOM spec.

Notes on specific events:

CommandEvent and SimpleGestureEvent: These are not supposed to be
web-exposed APIs, so I hid the interfaces from web content too
(necessary to avoid test_all_synthetic_events.html failures).

DataContainerEvent: This was a non-standard substitute for CustomEvent
that seemed to have only one user, so I removed it entirely and switched
the user (MozillaFileLogger.js) to CustomEvent.

ScrollAreaEvent: This is entirely non-standard, but we apparently expose
it deliberately to web content, so I didn't see any reason to remove it
from createEvent.

SimpleGestureEvent and XULCommandEvent: Can still be created from
createEvent(), but not by content.

TimeEvent: This is still in because it has no constructor, so there's no
other way to create it.  Ideally we'd update the SMIL spec to add a
constructor.  I did remove TimeEvents.

MozReview-Commit-ID: 7Yi2oCl9SM2
2017-04-20 15:45:37 +03:00
Iris Hsiao
771051c3c3 merge mozilla-inbound to mozilla-central a=merge 2017-04-25 11:21:30 +08:00
Wes Kocher
b0c9708840 Merge inbound to central, a=merge
MozReview-Commit-ID: 2tbIf1rfy0p
2017-04-24 15:53:30 -07:00
Carsten "Tomcat" Book
7a4463ab6f Merge mozilla-central to mozilla-inbound 2017-04-24 16:07:21 +02:00
Carsten "Tomcat" Book
9341996a77 Merge mozilla-central to mozilla-inbound 2017-04-24 13:13:02 +02:00
Carsten "Tomcat" Book
39576196e6 Merge mozilla-central to autoland 2017-04-24 12:43:55 +02:00
Carsten "Tomcat" Book
dd164777f2 Backed out changeset 79579aab8851 (bug 1331742) 2017-04-24 12:27:45 +02:00
Ehsan Akhgari
15aee0c599 Bug 1356922 - Part 1: Replace the next TabParent global pointer with per-window/tab next TabParent ID; r=billm,mconley
This patch replaces the usage of sNextTabParent pointer to store the next
PBrowser parent actor to be used by the next frame loader with the
following information:

  * In the case where the content JS has requested a new tab, the ID of the
    next TabParent will be stored on the <xul:browser> element.
  * In the case where the content JS has requested a new window, the ID of
    the next TabParent will be stored on the created nsXULWindow.
2017-04-24 14:18:29 -04:00
Paolo Amadini
60fca15e25 Bug 1348062 - Test that channels are properly marked for downloads. r=mak
Downloads handled by nsIExternalHelperAppService pass a null request to the final onStateChange notification, thus we need to hold a reference to the request earlier. This also allows unit tests to access the request while the download is running.

MozReview-Commit-ID: 21rapDmMIZw
2017-04-19 10:42:00 +01:00
Honza Bambas
a4e98b5ed2 Bug 1348062 - Mark channels used for downloads as throttable, r=nick+paolo
MozReview-Commit-ID: 9cg4PwrXtNa
2017-04-16 14:53:30 +01:00