Commit Graph

18223 Commits

Author SHA1 Message Date
Zack Herrick
50c0d3d538 Bug 1335907 - Reorganize the preferences based on feedback from user research. r=mconley
The FX_PREFERENCES_CATEGORY_OPENED probe must be extended to version 59 to support the fallback "forked" preference implementation (in-content-old).

The switchToAdvancedSubPane within utilityOverlay's openPreferences must also remain until the fallback has been removed (bug 1349689).

Patch co-authored by Zack Herrick <herrickz@msu.edu> and Ziyan Long <lzylong@gmail.com>.

MozReview-Commit-ID: 1sx0Wj15yM7
2017-03-29 11:52:08 -04:00
Luca Greco
e4109d58b1 Bug 1345992 - Fix pageAction icon size on Android. r=kmag
MozReview-Commit-ID: LRECvCvTmEy
2017-03-16 17:09:27 +01:00
Kirk Steuber
fada0072b5 Bug 1350381 - Change Flash blocking to allow the setting "Ask to Activate" to control CTA of unknown documents. r=qdot
Previously, we operated under the understanding that with Flash blocking activated, non-whitelisted documents would be set to CTA. We are changing that such that now, documents will only be CTA'ed if Flash is set to "Ask to Activate".

Flash blocking will now behave according to the following chart:

User Setting   Flash block   Whitelisted sites   Blacklisted sites    Unlisted sites
"Never ..."    Off           Deny                Deny                 Deny
"Ask ..."      Off           Ask                 Ask                  Ask
"Always ..."   Off           Allow               Allow                Allow
"Never ..."    On            Deny                Deny                 Deny
"Ask ..."      On            Allow               Deny                 Ask
"Always ..."   On            Allow               Deny                 Allow

This patch also completely reworks the flash blocking testing. Test data and most code remains consolidated, but will be run in multiple different tests. This avoids having to extend the timeout for Flash block testing to an extremely long length. The new Flash block testing additionally tests each of the six cases (rows) in the table above.

MozReview-Commit-ID: 5aPGUEiUiCv
2017-03-24 14:15:02 -07:00
Alessio Placitelli
935681bcef Bug 1321349 - Make histogram.add check 'this' for the proper JSClass. r=gfritzsche 2017-02-21 01:55:00 +01:00
Federico Padua
93e55c8dae Bug 1279985 - Description for SSL_CIPHER_SUITE_* out of date; r=chutten
This patch updates the description for the probes SSL_CIPHER_SUITE_FULL and
SSL_CIPHER_SUITE_RESUMED found in Histograms.json to point to
AccumulateCipherSuite which contains the key exchanges instead of the previous
HandshakeCallback.

MozReview-Commit-ID: Bf3xKGdK4Sd
2017-03-25 12:24:22 +01:00
Chris H-C
79504a7b9d bug 1353295 - Remove addonHistograms from Telemetry r=Dexter
addonHistograms isn't being used and has started getting in the way.
So it goes.

Leave the "Addon Histograms" section in about:telemetry for 60 days.
Remove it in bug 1355882

MozReview-Commit-ID: 4lm7ONirofl
2017-04-06 15:31:58 -04:00
Alessio Placitelli
5cac0296b4 Bug 1354482 - Turn on sending the "shutdown" ping using the pingsender from the second Firefox session. r=chutten,gfritzsche
MozReview-Commit-ID: IEYfziF86mF
2017-04-10 12:51:45 +02:00
Carsten "Tomcat" Book
31dc193e82 Backed out changeset 65cf36aa783f (bug 1352115) for bustage 2017-04-12 16:58:55 +02:00
Marco Bonardo
7b2f9a8241 Bug 977177 - Invalidate the page-icon image cache when necessary. r=adw
Remove page-icon entries when the icon changes, so that we start showing the
new content.
Also adds an SVG page-icon test.

MozReview-Commit-ID: 10MIOvwbQ20
2017-03-31 17:03:25 +02:00
Marco Bonardo
165e65df87 Bug 977177 - Don't expire root domain icons with history, and don't associate pages to them. r=adw
Root domain icons should be retained as far as possible, and only expired when
a domain is removed from the database. We do that through the moz_hosts trigger.
Additionally, since we return root domain icons without the need for a direct
association, we can save a lot of database space and performance by not storing
associations at all for root domain icons.
This has some downsides, since we don't exactly know if the page was really
associated with that root icon or not, but the perf gains are far superior.
Note that we still create associations during migration, since it would be too
expensive to examine every single url to figure out if it's a root domain icon.

MozReview-Commit-ID: 3mlfcOV8ixC
2017-03-30 15:16:41 +02:00
Marco Bonardo
aea9513618 Bug 977177 - Add favicons.sqlite to profile related lists. r=adw,jmaher
MozReview-Commit-ID: HkYpXQ0UFmd
2017-03-30 13:08:05 +02:00
Marco Bonardo
1167b6cacc Bug 977177 - Split ico files into native frames. r=adw
When optimizing an ico file, split it into its single resources and pick only
the sizes we care about. This also de-dupes same size resources.
The migration path doesn't split ico files, since it's a performance hot path
and we should try to reduce the I/O load at that time. The worst case is that
some icons may not look that much crisp until the next page reload.
Note that while the "resource" naming would be more appropriate for ico files,
compared to "frame" that is more appropriate for animations, the patch still
uses the frame name, cause it's far less generic and can be more easily
associated with the concept of a graphical asset. Regardless, it's not exposed
in any public API.

MozReview-Commit-ID: 3vrGXzJDfjX
2017-03-28 17:30:28 +02:00
Marco Bonardo
0defdaed15 bug 977177 - Fallback to the root domain icon. r=adw
When an icon for a specific page is not available, try to fallback for the root
domain icon.
This is valid for both getFaviconUrlForPage and getFaviconDataforPage, as well
as the page-icon: protocol.

MozReview-Commit-ID: JC4cx1PAY38
2017-03-28 11:50:53 +02:00
Marco Bonardo
9ec4611b7c Bug 977177 - Expire old page to icon relations to avoid serving deprecated icons. r=adw
Inserting new payloads for a page should expire old ones, otherwise if the page
should change favicons, we'd retain old associations forever.
At the same time, setting multiple payloads for a page should keep working.

MozReview-Commit-ID: 2y1XLUiKAQo
2017-03-16 14:51:03 +01:00
Marco Bonardo
0938ab7f9a Bug 977177 - Add size ref fragment to icon protocols. r=adw
Both page-icon: and moz-anno:favicon: should support a simple #size=NNN ref
fragment to allow consumers to request a specific sized icon (if available).
The service will do its best to satisfy the request, but it's not guaranteed.
If no size hint is found, it will default to the biggest icon payload available.

It's currently not possible to test the fragment on moz-anno:favicon: since that
requires imagelib support to extract payloads from ico files. Thus a test will
be added at a later time.

MozReview-Commit-ID: G221MKY7rfs
2017-03-15 16:08:28 +01:00
Federico Padua
9ef5d51f37 Bug 1338555 - Add an accumulation limit to Scalars IPC messages; r=chutten
This patch adds an accumulation limit to Scalars IPC messages,
in a similar way as this limit was already implemented for Histograms.
After a discussion in the bug entry, 10000 was chosen as limit.

MozReview-Commit-ID: ARBUOFnfDBr
2017-03-24 23:22:05 +01:00
Cervantes Yu
c2014c712d Bug 1024669 - Part 1: Annotate crash reports with thread names. r=gsvelto
MozReview-Commit-ID: 4RpAWzTuvPs
2017-02-07 18:57:23 +08:00
Benjamin Smedberg
8636d0ae7e Bug 1345905 - remove FLASH_PLUGIN_* telemetry, r=felipe
MozReview-Commit-ID: CgIvYJKLIHm
2017-03-09 10:46:18 -05:00
Ehsan Akhgari
6f80de5d9a Bug 1350781 - Avoid recomputing gBrowserThumbnails._topSiteURLs for 1 minute after computing it to speed up session restore; r=markh 2017-04-10 10:00:38 -04:00
Carsten "Tomcat" Book
f677a83d79 Backed out changeset 16e85d7e7400 (bug 1344295) for test failures in test_TelemetrySendOldPings.js 2017-04-10 15:25:31 +02:00
djmdev
0a9157c821 Bug 1344295 - Consolidate Telemetry preferences in TelemetryUtils.Preferences. r=dexter
Moved all Preferences declarations to Preferences object in TelemetryUtils.jsm
and used them in the test files.
2017-04-08 11:31:18 +05:30
Carsten "Tomcat" Book
e6d6caf1f8 Backed out changeset 7a52d887bcea (bug 1024669) for bustage 2017-04-10 11:43:49 +02:00
Cervantes Yu
eb13868db5 Bug 1024669 - Part 1: Annotate crash reports with thread names. r=gsvelto
MozReview-Commit-ID: 4RpAWzTuvPs
2017-02-07 18:57:23 +08:00
nechen
a0ffdd2954 Bug 1329157 - Safely collect caller app information. r=frank,sebastian data-r?bsmedberg
MozReview-Commit-ID: 7oXYArRyWKY
2017-03-14 12:06:08 +08:00
Henry Chang
4543c61a48 Bug 1339050 - Asynchronously apply safebrowsing DB update. r=francois,gcp
A new function Classifier::AsyncApplyUpdates() is implemented for async update.
Besides, all public Classifier interfaces become "worker thread only" and
we remove DBServiceWorker::ApplyUpdatesBackground/Foreground.

In DBServiceWorker::FinishUpdate, instead of calling Classifier::ApplyUpdates,
we call Classifier::AsyncApplyUpdates and install a callback for notifying
the update observer when update is finished. The callback will occur on the
caller thread (i.e. worker thread.)

As for the shutdown issue, when the main thread is notified to shut down,
we at first *synchronously* dispatch an event to the worker thread to
shut down the update thread. After getting synchronized with all other
threads, we send last two events "CancelUpdate" and "CloseDb" to notify
dangling update (i.e. BeginUpdate is called but FinishUpdate isn't)
and do cleanup work.

MozReview-Commit-ID: DXZvA2eFKlc
2017-04-06 07:07:56 +08:00
Chris H-C
b079c34722 bug 1339026 - Affirm that Data Collection Review is required for Scalars and Events, too. r=gfritzsche
Previously we only called it out for Histograms.

Oh, and while we're here, also for Custom Pings.

MozReview-Commit-ID: Jh7wxRjQcuQ
2017-04-05 15:52:04 -04:00
Wei-Cheng Pan
3d7238eddc Bug 1350624 - Adjust *_EVENT_RECEIVED_MS telemetry probes. r=mystor
MozReview-Commit-ID: KUsBulGRINn
2017-03-30 14:52:14 -04:00
Alessio Placitelli
911c61cd38 Bug 1348250 - Change TelemetryStorage to load crash pending pings outside of the profile. r=chutten
MozReview-Commit-ID: 1kqdGgEwXvI
2017-03-31 12:01:32 +02:00
Gijs Kruitbosch
65da082651 Bug 1309946 - remove all traces of add-on performance monitoring, r=Yoric
This removes all the code for add-on performance watching from the
perfmonitoring component. This should mean that for add-on
compartments, we no longer trigger jank or CPOW monitoring in the JS
engine. This should result in minor performance improvements. As a
result, about:performance no longer reports on add-on performance
(but still reports on web page performance).

It also removes the AddonWatchers.jsm module and the related Nightly-
only UI (disabled in the parent commit) and strings. This UI wasn't
ready for release, there wasn't sufficient data it was creating
value for users, and there was some evidence that it didn't always
correctly identify the cause of performance issues, thus potentially
leading to user confusion or annoyance. Removing it therefore seemed
the right thing to do.

MozReview-Commit-ID: LsRwuaUtq6L
2017-03-29 11:03:47 +01:00
Gijs Kruitbosch
9764ffe2f9 Bug 1309946 - disable addonwatcher for easy uplift, r=Yoric
MozReview-Commit-ID: 1mjO3oPhSOw
2017-03-28 18:34:44 +01:00
Makoto Kato
8a66aa54a4 Bug 1348177 - Part 2. Remove GetProcAddress for shell32 to use Vista+/7+ API (tookit part). r=jimm
It is unnecessary to use Vista/7+ API via GetProcAddress.

MozReview-Commit-ID: AT6OJhhf4r2
2017-03-17 11:04:33 +09:00
Bob Silverberg
e2f005fc59 Bug 1311260 - Fix Intermittent toolkit/components/extensions/test/mochitest/test_chrome_ext_idle.html, r=mixedpuppy
Bumped up the amount of time that we add to the current idleTime in the test, which is then used in the background page
to test browser.idle.queryState() with an expectation that the state will be "active".

Also added more logging to detect times when there is a large delay between getting the idleTime in the test, and when
the idleTime is read by the API code in the background page, which I believe is the cause of this intermittent.

MozReview-Commit-ID: DXvbYJ8zBKR
2017-03-08 09:09:26 -05:00
Sebastian Hengst
73c0729e22 Backed out changeset 9ef667136bbe (bug 1335907) for failing browser_datachoices_notification.js. r=backout 2017-03-28 23:43:11 +02:00
Luca Greco
d0f1fb2bab Bug 1351381 - Provide a console API object in experiments API sandbox. r=kmag
MozReview-Commit-ID: CNPgru9jVLO
2017-03-28 09:51:31 -07:00
Zack Herrick
11d8b74c55 Bug 1335907 - Reorganize the preferences based on feedback from user research. r=mconley
The FX_PREFERENCES_CATEGORY_OPENED probe must be extended to version 59 to support the fallback "forked" preference implementation (in-content-old).

The switchToAdvancedSubPane within utilityOverlay's openPreferences must also remain until the fallback has been removed (bug 1349689).

Patch co-authored by Zack Herrick <herrickz@msu.edu> and Ziyan Long <lzylong@gmail.com>.

MozReview-Commit-ID: 1sx0Wj15yM7
2017-03-28 14:32:54 -04:00
Gijs Kruitbosch
4d22728a9a Bug 1356030 - move HiddenFrame.jsm to toolkit, r=kmag
MozReview-Commit-ID: DUuYqamNMdT
2017-04-13 11:42:56 +01:00
Wes Kocher
c794a89d78 Merge m-c to inbound, a=merge CLOSED TREE 2017-04-05 14:56:38 -07:00
Frank-Rainer Grahl
18032d54c1 Bug 1353439 - Cc and Ci are not defined in printUtils.js so use Components full names. r=jhector 2017-04-05 03:08:00 -04:00
Alisha
7fd23886d5 Bug 1346200 - Remove B2G code branches from Telemetry JS modules. r=chutten 2017-03-31 17:55:00 -04:00
Alessio Placitelli
70c97fb2f2 Bug 1354482 - Turn on sending the "shutdown" ping using the pingsender from the second Firefox session. r=chutten,gfritzsche
MozReview-Commit-ID: IEYfziF86mF
2017-04-10 12:51:45 +02:00
Henry Chang
259a763c10 Bug 1338638 - Fix race condition for DBService APIs to avoid long delayed initial download. r=francois
When starting up, SafeBrowsing.jsm will try to use DBService to add testing entries. Meanwhile,
listmanager will request StreamUpdater to download lists with a random initial delay.

The requests that listmanager issue to StreamUpdater will be queued up
if DBserve is busy and will be retried when StreamUpdater is notified that
the previous update is complete. However, in some edge cases,
the queued requests may not be processed until the next update request from listmanager.
For example, SafeBrowsing.jsm calls DBService.beginUpdate at t0 and the update is
complete at t1. If listmanager sends all requests via StreamUpdate between t0 and t1,
they will all be queued up and no further request can trigger the queued ones.

So in this patch I add a timer to re-trigger FetchNextRequest() in case StreamUpdater is not
notified the previous update is complete.

MozReview-Commit-ID: 3hHsS5N7WRI
2017-04-11 17:13:01 +08:00
Patrick McManus
b8754bd82b Bug 1355592 - clean up some necko telemetry entries r=bagder
MozReview-Commit-ID: zds07xuje
2017-04-13 11:15:17 -04:00
Wes Kocher
b0f256ac8a Backed out changeset 6d376d7031df (bug 1319821) for test_webextension_theme.js failures a=backout CLOSED TREE 2017-03-30 15:10:49 -07:00
Alessio Placitelli
d0dc520ab5 Bug 1336360 - Use the PingSender for sending pings when the browser shuts down. r=chutten,gsvelto
MozReview-Commit-ID: 6bNQs87UQ9m
2017-02-23 14:58:02 +01:00
John Dorlus
2059750e7a Bug 1301781 - Add test harness for telemetry tests r=ato
These tests are for the testing of the telemetry client. The tests
spin up an http server to capture ping data sent from firefox. The test
test_ping_server_received_ping tests that the ping server is up and running
and that the harness properly waits for the ping data.

MozReview-Commit-ID: 5kIjqgX3YiW
2017-03-29 17:10:52 -04:00
Zibi Braniecki
01205d9549 Bug 1339650 - Introduce mozIntl.DateTimeFormat. r=jfkthame
MozReview-Commit-ID: 1jnit4IlDN6
2017-03-02 16:39:17 -08:00
Mike de Boer
b15f95ca4c Bug 1319821 - Themes should allow for multiple background images in the toolbar. r=jaws,mattw
This patch also changes the 'headerURL' and 'theme_frame' properties to be of type
ExtensionURL, instead of strings. This improves validation robustness.
Alignment and tiling properties for the additional background images can be
specified in the newly introduced 'properties' section of the manifest.

MozReview-Commit-ID: BzvS3eHmDCY
2017-03-30 12:54:59 +02:00
Robert Helmer
c349eb2f59 Bug 1357460 - add isWebExtension to Telemetry Environment r=Dexter,kmag
MozReview-Commit-ID: lzeHG7nXhf
2017-04-18 20:08:48 -07:00
Robert Helmer
eda64762b2 Bug 1357460 - add isWebExtension to Telemetry Environment collection docs r=bsmedberg
MozReview-Commit-ID: 36QAFhKlKfh
2017-04-18 10:00:02 -07:00
Brad Werth
b3f2d494ce Bug 1302470 Part 3: Branch IsRangeVisible to delegate to IsRangeRendered when range is in viewport. r=masayuki
MozReview-Commit-ID: LZyvt08I9vz
2017-04-20 10:21:52 -07:00