Commit Graph

20582 Commits

Author SHA1 Message Date
Mike de Boer
ed65e8c9b2 Bug 1402267 - Add a scalar telemetry probe that tracks SessionFile worker restarts. data-r=liuche, r=chutten,liuche,ttaubert
MozReview-Commit-ID: F3kCfz18kcQ
2017-10-17 12:04:37 +02:00
Mike de Boer
6baee94b7d Bug 1402267 - Allow PromiseWorkers to be 'restarted', which is terminate the current worker and instantiate a new one when needed. r=Yoric
MozReview-Commit-ID: KC5xnDwqQK8
2017-10-17 11:59:27 +02:00
Sebastian Hengst
040a1b2bbb merge mozilla-central to autoland. r=merge a=merge 2017-10-17 11:46:52 +02:00
Brendan Dahl
73b1e91ce7 Bug 1399956 - Disable some mochitests in headless. r=jrmuizel
These tests will need more work and are low priority.

MozReview-Commit-ID: H0J16E8FqNr
2017-10-16 16:15:45 -07:00
Kris Maglione
edb5338a4e Bug 1405286: Part 4 - Don't overwrite existing state with finishedtransferringdata. r=mixedpuppy
In cases where data transfer finishes immediately after we close a request, we
can sometimes wind up overwriting that state information with
"finishedtransferringdata", which allows scripted callers to break certain
invariants and cause crashes.

MozReview-Commit-ID: Do3GttF3M9S
2017-10-14 20:01:18 -07:00
Kris Maglione
12b1b432af Bug 1405286: Part 3 - Test that filterResponseData from cached onHeadersReceived doesn't crash. r=mixedpuppy
It currently isn't possible to suspend a channel from onHeadersReceived for a
cached response. And since it's not possible to add a new stream filter after
a response has started, adding a stream filter at that point will crash if the
channel is still registered.

This test is a basic sanity check for that scenario.

MozReview-Commit-ID: ALYUtxX7mci
2017-10-14 19:25:35 -07:00
Kris Maglione
dc934d5217 Bug 1405286: Part 2 - Ensure ordered processing of StreamFilter events. r=mixedpuppy
Our current StreamFilter code doesn't behave well when data delivery is
targeted to a thread pool, rather than a single thread.

Thread pools don't guarantee ordered processing of events. It's theoretically
always possible for multiple events dispatched to a pool to be processed in
parallel, or even slightly out of order.

For the most part, this should only be a theoretical concern, unless several
data events are dispatched at the same time, and the pool has enough available
threads to service all of them (which is an unlikely scenario in this code).
However, when data delivery is targeted to a thread pool, the OnDataAvailable
callbacks do not have access to the thread pool itself, only the thread that
the callback was dispatched to. This means that after each OnDataAvailable
call, we likely store a new IO thread, and writes end up queued to a different
single thread depending on exactly when they happen.

Threads in thread pools often wind up executing long-running runnables, such
as synchronous IO or network operations. Which means that we introduce
arbitrary delays for some writes, and are likely to wind up with highly
arbitrary ordering.


This patch solves both of these problems by introducing strict event queue
ordering, and also dispatching IO events to the original explicit delivery
target, rather than whatever the current thread happened to be at the time of
the last data event.

MozReview-Commit-ID: 1SdYjS6ltqw
2017-10-14 18:58:53 -07:00
Marco Bonardo
dcbda9bca0 Bug 1405722 - Remove the IsLivemark() bookmarks observer from PlacesUIUtils. r=standard8
MozReview-Commit-ID: 586IR54ggbm
2017-10-10 12:05:19 +02:00
Kris Maglione
60872d7b31 Bug 1404198: Part 2f - Switch to NS_NewTimer* in toolkit. r=njn
MozReview-Commit-ID: 185rZ99R6zV
2017-10-15 23:14:00 -07:00
Boris Zbarsky
6b54ed77bb Back out bug 1354730 to reopen CLOSED TREE.
MozReview-Commit-ID: RzUofi384C
2017-10-16 14:34:23 -04:00
Boris Zbarsky
8710ee90ff Bug 1354730. Disable named property object (aka global scope polluter) behavior for all Xrays. r=kmag
MozReview-Commit-ID: KmbXFfSzH0N
2017-10-16 10:58:09 -04:00
Dan Banner
5af4450327 Bug 1408777 - Automatically fix instances of missing semicolons in the tree. r=Standard8
MozReview-Commit-ID: Jm8BRgt6mIv
2017-10-15 20:50:39 +01:00
MilindL
7d7d80db18 Bug 1063635 Part 3 - Fix tests for native writeAtomic. r=Yoric
MozReview-Commit-ID: 94lNCMUEg7c
2017-08-29 20:20:26 +05:30
MilindL
eac41890d9 Bug 1063635 Part 2 - Call native writeAtomic code instead of JS backend when applicable. r=Yoric
MozReview-Commit-ID: fiIS2xPc2r
2017-07-27 19:41:00 +05:30
MilindL
1534c266e7 Bug 1063635 Part 1 - Add native code for OS.File.writeAtomic. r=smaug,Yoric
MozReview-Commit-ID: 2TKZh6jCsq5
2017-06-27 13:10:11 +05:30
Kirk Steuber
63ae96269e Bug 1394851 - downloads.download API should default to use Firefox's "Save As" pref r=kmag
This patch changes the behavior of the downloads.download API's saveAs option. Previously, the behavior when neither value is provided (the "default behavior") was not defined by our documentation or Chrome's. Now, the default behavior is changing to rely on the Firefox "Save As" pref (browser.download.useDownloadDir). If Firefox is configured to open the "Save As" dialog for all downloads (browser.download.useDownloadDir == false), that behavior will be the default for the downloads.download API. Otherwise, the default behavior will be not to show the dialog.

This patch also moves some test functionality out of test_chrome_ext_downloads_saveAs.html. Previously, that test would test the saveAs option and also the conflictAction:"uniquify" option. In order to add testing for the new default behavior, it was necessary to move the testing of the conflictAction:"uniquify" option to a new test: test_chrome_ext_downloads_uniquify.html

MozReview-Commit-ID: u6VA4kexlr
2017-10-04 14:39:58 -07:00
Bob Silverberg
67a5cde2e4 Bug 1408099 - Fix ExtensionPreferencesManager.getLevelOfControl to deal with undefined settings, r=aswan
Prior to this, if getLevelOfControl was called before the setting was defined to the EPM, an
exception was thrown. This fixes it by returning a level of control of "not_controllable"
if the setting has not yet been defined.

MozReview-Commit-ID: 96jXLoJlUI
2017-10-12 17:31:27 -04:00
Brad Werth
78b922b799 Bug 1358299 Part 2: Remove the histogram definition for BOX_ALIGN_PROPS_IN_BLOCKS_FLAG. r=chutten
MozReview-Commit-ID: JGnBmtRkO3C
2017-10-13 12:44:09 -07:00
Alexandre Poirot
7a9b575bdc Bug 1405584 - Add telemetry to track toolbox open time. r=francois,jdescottes datareview=francois
MozReview-Commit-ID: EuaYQBx8rbE
2017-10-11 11:43:25 +02:00
Sebastian Hengst
ded2f7a0dd Merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 5oI3jfNbQVt
2017-10-13 11:12:47 +02:00
Kris Maglione
0b33e0da90 Bug 1407056: Follow-up: Skip test on Android debug for flakiness. r=bustage
MozReview-Commit-ID: 39slYE2zP95
2017-10-12 19:48:48 -07:00
Ben Kelly
34cf9299c7 Bug 1380255 P3 Disable channel thread retargeting when webrequest is tracing the channel. r=kmag 2017-10-12 19:23:16 -07:00
Andrew Swan
726384a9e2 Bug 1408179 Fix manifestCacheKey for langpacks r=gandalf
MozReview-Commit-ID: Et0EyyTAi8x
2017-10-12 15:27:40 -07:00
Sebastian Hengst
fc3c7e1a08 merge mozilla-central to autoland. r=merge a=merge on a CLOSED TREE 2017-10-13 00:53:56 +02:00
Sebastian Hengst
7c300df4d9 Merge mozilla-central to mozilla-inbound. r=merge a=merge on a CLOSED TREE 2017-10-12 12:03:15 +02:00
Nicholas Nethercote
d5b5ca8771 Bug 1407103 - Convert wstring attributes to AString in widget/nsIPrint*.idl. r=bobowen.
This avoids a lot of mismatches between nsAString and char16_t*, thus removing
many getter_Copies() and ToNewUnicode() and get() calls, and generally making
things simpler.

Note: the patch removes GetDefaultPrinterNameFromGlobalPrinters() by simply
inlining it at its two callsites, which is easy with the changed types.
2017-10-09 10:08:09 +11:00
Kris Maglione
e2676ab417 Bug 1404652: Follow-up: Fix timing issues in webRequest HSTS tests.
MozReview-Commit-ID: HFW73u6wp5S
2017-10-11 20:03:11 -07:00
Byron Campen [:bwc]
d432c7b4f9 Bug 1404535: Add telemetry that times nr_ice_gather. r+drno r=chutten,drno,liuche
MozReview-Commit-ID: I4nH8sZNX5g
2017-09-29 17:49:32 -05:00
Kris Maglione
86d70533eb Bug 1407056: Part 3 - Test that CSP overrides apply correctly based on triggering principals. r=bz
MozReview-Commit-ID: EbGsI3keeG6
2017-10-12 15:44:32 -07:00
Kris Maglione
5fb4a6a9a0 Bug 1404652: Part 2 - Coalesce multiple event dispatches into a single message during an idle slice. r=zombie
Sending MessageManager messages is expensive, but a lot of the overhead is
per-message more than it's tied to the complexity of the message. In
particular:

- Each sendAsyncMessage call incurs separate XPConnect method call overhead.

- Each message requires acquiring a lock, and separate message setup overhead
  for IPC.

- The message data itself must be structured cloned, which requires
  (expensive) allocation of buffers to hold the serialized data. Each buffer
  segment is 4KB, which is generally enough to hold multiple serialized
  messages, so coalescing messages means fewer buffer allocations.

Moving some of this work into idle slices also means less likelihood of
interfering with UI responsiveness.

MozReview-Commit-ID: 5SAMZNLVaY3
2017-09-28 20:14:17 -07:00
Masatoshi Kimura
16e51e3462 Bug 1406695 - Fail if a browser.test.onMessage handler throws an error. r=aswan
MozReview-Commit-ID: BXOrdtla1qE
2017-10-07 19:24:32 +09:00
Ryan VanderMeulen
7496e4294f Merge m-c to autoland. a=merge 2017-10-11 17:55:13 -04:00
Phil Ringnalda
ab8ea3deab Backed out 2 changesets (bug 870460) for xperf failures
Backed out changeset 50368fa3e040 (bug 870460)
Backed out changeset 5aa7980268cb (bug 870460)

MozReview-Commit-ID: H0rzd5F9dOr
2017-10-11 13:26:34 -07:00
Marco Bonardo
b19c6a5663 Bug 1406860 - Make urlbar tests a bit more reliable. r=standard8
MozReview-Commit-ID: 71ZzDbCq8n0
2017-10-10 01:18:23 +02:00
Kit Cambridge
6e6130777a Bug 1405563 - Ignore and clean up tombstones for undeleted synced bookmarks. r=mak,markh
MozReview-Commit-ID: KqnZFn35qId
2017-10-04 13:29:54 -07:00
Kit Cambridge
c97f9acc91 Bug 1380606 - Add a Places maintenance task to fix up items with invalid GUIDs. r=mak
This task assigns new GUIDs to items with missing or invalid ones, and
bumps the Sync change counter for the affected items and their parents.
We also invalidate the GUID cache for the affected items, and write
tombstones for invalid GUIDs that have already been synced.

MozReview-Commit-ID: 7Jm3enYchAz
2017-10-05 11:33:54 -07:00
Kit Cambridge
36c12ac0b0 Bug 1380606 - Add an IS_VALID_GUID() SQL function to Places. r=mak
This exposes `IsValidGUID` to SQL, matching `GENERATE_GUID()` and
making it easier to SELECT rows with invalid GUIDs.

MozReview-Commit-ID: Dspm8A59P5L
2017-10-05 11:32:49 -07:00
Sebastian Hengst
6273f32bbf Backed out changeset 1ac7fce0b369 (bug 1406860) for failing xpcshell tests, e.g. toolkit/components/places/tests/unit/test_000_frecency.js. r=backout 2017-10-11 18:25:57 +02:00
Marco Bonardo
9aedc5efc3 Bug 1406860 - Make urlbar tests a bit more reliable. r=standard8
MozReview-Commit-ID: 71ZzDbCq8n0
2017-10-10 01:18:23 +02:00
Sebastian Hengst
34a37bb246 merge mozilla-central to autoland. r=merge a=merge 2017-10-11 11:51:32 +02:00
Sebastian Hengst
c188d179a2 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: AgDEPuT8DNK
2017-10-11 11:41:04 +02:00
Sebastian Hengst
d1a31a8503 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-10-11 00:01:28 +02:00
Kris Maglione
7b3d1e5b27 Bug 1407258: Dowgrade document loads with expanded principals to their last sub-principal. r=bz
There are currently some corner cases where channels that are eventually
loaded into documents (mainly <img src="data:image/svg+xml,") can inherit
expanded principals from a caller. Since documents aren't allowed to have
expanded principals, this causes crashes.

This patch is a short term workaround for the issue, until we have a longer
term solution that prevents the channels from inheriting the expanded
principals to begin with.

MozReview-Commit-ID: JwqqtVynLjj
2017-10-10 14:08:47 -07:00
Shane Caraveo
cf8c5452ed Bug 1305237 Expose frameAncestors to webextensions, r=bz,kmag
MozReview-Commit-ID: 64lIMu6neaD
2017-10-10 09:54:22 -07:00
Evan Tseng
a8677c594a Bug 1392951 - Implement telemetry probe for home page setup. r=liuche,mconley
- Send a ping when user type in "Home page" box.
  - String is longer than 4 letters and with at least one ".".
  - String is not deleted after 3 seconds.
- Send a ping when "Use Current Page" is clicked.
- Send a ping when "Use Bookmark" is clicked.
- Send the number of "|" is detected in "Home page" box.

MozReview-Commit-ID: 6bYK0eCkYym
2017-10-06 16:13:05 +08:00
Jason Orendorff
6e7ae0564c Bug 1404107 - Test that an Xray expando whose value is a DOM node works when the node is reparented. no_r=me.
Requested by bz, during review of other patches in this bug.
2017-10-07 18:53:02 -05:00
Boris Zbarsky
7fd44fd6e7 Bug 1404107 - Test that Xray expandos are not lost when reparenting wrappers. r=mrbkap 2017-10-03 08:53:13 -05:00
Alessio Placitelli
89cfc87cff Bug 1406097 - Use the cached attribution code in the environment. r=mhowell
This adds a new sync function to AttributionCode.jsm that returns the cached
attribution data. The cached data is then used to populate the environment
instead of relying on the async function.

MozReview-Commit-ID: F0se7kXspo2
2017-10-09 12:03:38 +02:00
Mark Banner
53b1f261ee Bug 1407164 - Fix strict warnings in Bookmarks.jsm relating to undefined property source - don't delete item properties too soon. r=mak
MozReview-Commit-ID: AJJRSHYqPch
2017-10-10 09:13:19 +01:00
Sebastian Hengst
7efb357302 merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-10-10 06:12:26 -03:00