Commit Graph

64864 Commits

Author SHA1 Message Date
Nico Grunbaum
91a00d57b9 Bug 1374465 - add framesDecoded to vid inbound stream stats;r=jib,smaug
MozReview-Commit-ID: GqbcQxOb69r

--HG--
extra : rebase_source : 9e25ffed93b6685c9c1848bc0d2642a4b8cda579
2017-07-03 14:17:40 -07:00
Kyle Machulis
37abc6d73b Bug 1378537 - Store PerformanceEntry objects in AutoTArray; r=smaug
Storing PerformanceEntry objects in an AutoTArray (currently sized to
match our limit for resource timing entries) should omit some
per-entry allocations and give us a small speedup with creating
entries in tight loops.

MozReview-Commit-ID: LNgVhMn461g

--HG--
extra : rebase_source : 10250c2fad5ebaf0e89bf9759d157b7d1d855ffa
2017-07-05 15:15:08 -07:00
Botond Ballo
8b7ba8ac1c Bug 1377020 - Use MOZ_DEFINE_ENUM instead of a sentinel enumerator for enumerations in gfx/layers. r=kats
MozReview-Commit-ID: IUQDb0VIAwQ

--HG--
extra : rebase_source : 50d05ab09a5fb03d16c044edd38f0f3e0dba7ada
2017-06-30 21:18:55 -04:00
Wes Kocher
414ea49c45 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 7DxSsYpFh3X
2017-07-05 17:19:40 -07:00
Wes Kocher
2fff726ced Backed out changeset 8eb0c588a43e (bug 1378218) for frequent win debug xpcshell failures in test_sanitizer.js a=backout
MozReview-Commit-ID: EsfsviyLVbw

--HG--
extra : source : b7373e1df03eac30bca7b882a352a7282775059e
2017-07-05 15:08:13 -07:00
Wes Kocher
288405ee34 Merge inbound to m-c a=merge
MozReview-Commit-ID: LpxvieHR7VH
2017-07-05 17:10:43 -07:00
Max Weller
63a3fa3f00 Bug 1377790 - Fix setting of default gateway's IP address. r=snorp
--HG--
extra : rebase_source : 1518df38bc64757699dfc50387264bebd830adeb
2017-07-02 23:11:46 +02:00
Kartikaya Gupta
cad9534e69 Bug 1377090 - Turn gfxMatrix into a typedef for MatrixDouble. r=jrmuizel
Most of this patch is updating a few places that use gfxMatrix to use
the equivalent-but-differently-named functions on MatrixDouble:
- Translate/Rotate/Scale get turned into PreTranslate/PreRotate/PreScale
- Transform(Point) gets turned into TransformPoint(Point)
- gfxMatrix::TransformBounds(gfxRect) gets turned into
  gfxRect::TransformBoundsBy(gfxMatrix).
- gfxMatrix::Transform(gfxRect) gets turned into
  gfxRect::TransformBy(gfxMatrix).
The last two functions are added in this patch as convenience wrappers
to gfxRect instead of Matrix.h because we don't want Matrix.h to "know"
about gfxRect (to avoid adding gecko dependencies on Moz2D). Once we
turn gfxRect into a typedef for RectDouble these will be eliminated
anyway.

MozReview-Commit-ID: BnOjHzmOSKn

--HG--
extra : rebase_source : cf1692d1f0d44a4b05d684a66678739181a426d5
2017-07-05 11:18:49 -04:00
Kartikaya Gupta
1c54bb2347 Bug 1377090 - Make the Matrix class templated so we can instantiate it with a double type. r=bas
This extracts a BaseMatrix template of which Matrix is now a particular
specialization. The BaseMatrix allows us to reuse the same code for
floats and doubles, much like the other "base" classes (BasePoint,
BaseRect, etc.).

MozReview-Commit-ID: HO7bA83S9E0

--HG--
extra : rebase_source : dcd84d9a978cdea00bb54eb11eefcca9c6635901
2017-07-05 11:18:48 -04:00
Sebastian Hengst
8b1992d948 Backed out changeset 9137ed21a66f (bug 1377614) for bustage: not finding mozilla/SandboxSettings.h at netwerk/protocol/res/ExtensionProtocolHandler.cpp:46. r=backout 2017-07-05 22:51:58 +02:00
Gian-Carlo Pascutto
2032eb5262 Bug 1377614 - Part 1 - Move IsDevelopmentBuild() to common code. r=Alex_Gaynor
MozReview-Commit-ID: AcO0XaMS4Gp

--HG--
extra : rebase_source : 2fa012f693ad7855c2c6e7b8399edf3c0e734299
2017-07-03 11:17:04 -07:00
Kartikaya Gupta
4826f32d87 Bug 1377169 - Turn gfxRect into a typedef. r=jrmuizel
One thing to note here is that the Scale function on gfxRect has a
different implementation than that in gfx::Rect which is replacing it.
The former just scales the width/height directly whereas the latter
scales the XMost/YMost and recomputes the width/height.

MozReview-Commit-ID: 5FImdIaNfC3

--HG--
extra : rebase_source : 98662d2a52ff9652ec60b066641a07c6d5ee8e08
2017-07-05 11:22:00 -04:00
Michael Layzell
3f6761346c Bug 1375627 - Avoid running ShouldLoadURIInThisProcess when aURI is null in ProvideWindowCommon, r=smaug
MozReview-Commit-ID: 8LXGHjztRdu
2017-07-05 13:11:47 -04:00
Carsten "Tomcat" Book
49921c11be Merge mozilla-central to autoland 2017-07-05 13:05:51 +02:00
Carsten "Tomcat" Book
b72c4833d5 merge mozilla-inbound to mozilla-central a=merge 2017-07-05 13:01:22 +02:00
Wes Kocher
1a83241dad Backed out 3 changesets (bug 1372433) for stylo assertions in ServoRestyleManager.cpp a=backout
Backed out changeset 3abe2b5f8b24 (bug 1372433)
Backed out changeset cbb550def80d (bug 1372433)
Backed out changeset 78b5ca196c54 (bug 1372433)

MozReview-Commit-ID: H6t8LpY3FHX
2017-07-04 22:32:54 -07:00
Daisuke Akatsuka
d1aa803f11 Bug 1371115 - Part 14: add tests for moz prefixed properties. r=hiro
Since we implement following properties animatable, append to test.

* -moz-border-bottom-colors
* -moz-border-left-colors
* -moz-border-right-colors
* -moz-border-top-colors

MozReview-Commit-ID: E3zWaDcRdtE

--HG--
extra : rebase_source : 27301a4bc354f14cf3f90e8c8271be6022d99721
2017-07-05 13:54:08 +09:00
Masayuki Nakano
5533f095cb Bug 1377653 - part3: WidgetEvent::mFlags should have a bool flag if it's been posted to at least one remote process r=smaug
Currently, it's not been managed yet that whether an event is posted to at least one remote process.  So, for managing the state, BaseEventFlags should have a new bool flag and WidgetEvent and BaseEventFlags should have helper methods for it.

Additionally, this fixes a bug of nsGUIEventIPC.h. In a lot of ParamTraits, static_cast<Foo> is used for using base class's ParamTraits.  However, it causes creating temporary instance with copy constructor.  Therefore, WidgetEvent::MarkAsPostedToRemoteProcess() call in ParamTraits<mozilla::WidgetEvent>::Write() didn't work as expected.

MozReview-Commit-ID: DdafsbVfrya

--HG--
extra : rebase_source : 94205f3a7b36455c3c9f607c35866be033e627c1
2017-07-05 18:59:44 +09:00
Masayuki Nakano
57f359b0de Bug 1377653 - part2: Add helper methods to WidgetEvent and BaseEventFlags to manage propagation state between parent process and remote process r=smaug
Currently, we have 2 bool flags (and optional 2 bool flags with related purpose) for managing propagation state between parent process and remote process.  However, it's really complicated.  Actually, setting these flags and referring the flags is usually follow explanation.

So, for making simpler, WidgetEvent and BaseEventFlags should have some utility methods for making them as self documented code.

This patch moves WidgetKeyboardEvent::mIsReserved to BaseEventFlags::mIsReservedByChrome.  That allows us to manage the cross process event propagation state in same place.

MozReview-Commit-ID: IXEDQJ4GpAZ

--HG--
extra : rebase_source : 5b63ac4f1d15e40e8bfc88423e336de28caa8ab6
2017-07-05 13:58:41 +09:00
Nicholas Nethercote
1c45fc829f Bug 1378011 (part 1) - Remove nsToken.h, because it is unused. r=mrbkap. 2017-07-04 11:25:09 +10:00
Shawn Huang
5291833e48 Bug 1324163 - Make sure loadFrameScript() is called before postMessage() for Indexeddb prompt tests, r=janv 2017-07-05 10:20:55 +08:00
Ehsan Akhgari
86018d0bcc Bug 1377447 - Add a new flush type between Frames and InterruptibleLayout to initialize layout if needed and use it from CheckIfFocusable; r=smaug 2017-07-04 22:00:09 -04:00
Nicholas Nethercote
5d446671a8 Bug 1375776 (part 4) - Allow ProfilerMarkerPayload.h to be #included unconditionally. r=mstange.
This requires:

- Moving the constructors of ProfilerMarkerPayload and its subclasses into the
  .h file so they are visible even when ProfilerMarkerPayload.cpp isn't
  compiled.

- Similarly, using a macro to make StreamPayload() a crashing no-op when the
  profiler isn't enabled. (It is never called in that case.)

--HG--
extra : rebase_source : 7aad2fdb1bd4e49782024dba6664e8f992771520
2017-06-23 16:24:15 +10:00
Mats Palmgren
977a9e5f89 Bug 1376498 part 4 - Make all nsClassHashtable::RemoveAndForget() consumers use Remove() instead. r=froydnj
MozReview-Commit-ID: G64YQLlgm6r
2017-07-05 02:01:45 +02:00
Mats Palmgren
9542d00e58 Bug 1376498 part 2 - Use plain Remove(key) in some places instead of Lookup(key).Remove() for simplicity. r=froydnj
MozReview-Commit-ID: 7GlCL1jyGAz
2017-07-05 02:01:44 +02:00
Olli Pettay
21b0ca3bbf Bug 1378196, Make IsEventAttributeName non-virtual in common case, r=ehsan
--HG--
extra : rebase_source : 9daf46de13698348b7ab6b68f8da13ffb338c0a0
2017-07-04 23:54:30 +03:00
Michael Layzell
2eb92d98f1 Backout Bug 1365309 for test failures on a CLOSED TREE
MozReview-Commit-ID: 143ac9l7Goq
2017-07-04 17:31:13 -04:00
Michael Layzell
43a4681e74 Bug 1372433 - Part 3: Explicitly check SystemGroup is initialized before getting its event target on a CLOSED TREE, a=bustage
MozReview-Commit-ID: YRMM8Lifhg
2017-07-04 17:17:25 -04:00
Ehsan Akhgari
dd036d1249 Backout bug 1377447 for more test failures on a CLOSED TREE 2017-07-04 17:01:42 -04:00
Michael Layzell
04e528fe8e Bug 1372433 - Part 2: Fix build bustage on a CLOSED TREE, a=bustage
MozReview-Commit-ID: 3snpLQbdVrO
2017-07-04 16:01:10 -04:00
Michael Layzell
e9a63f2761 Bug 1372433 - Label the PContent::Msg_NotifyVisited runnable, r=billm
I don't bother to label the runnables in the parent process being fired by
VisitedQuery, as we are not planning to perform scheduling in the parent process
if I remember correctly. It would be possible to label those runnables as well.

This also adds a mSeen boolean to the mObservers array, to fix a race caused
when a link is being registered as an observer between NotifyVisited and
NotifyVisitedForDocument being run.

MozReview-Commit-ID: EosNOu62fEV
2017-07-04 15:16:19 -04:00
Ehsan Akhgari
04bd0e3db3 Bug 1377447 - Add a new flush type between Frames and InterruptibleLayout to initialize layout if needed and use it from CheckIfFocusable; r=smaug 2017-07-04 15:13:20 -04:00
Ehsan Akhgari
71cf452a94 Bug 1377801 - Add a var cache for the browser.autofocus pref; r=mystor 2017-07-04 13:49:41 -04:00
Michael Layzell
a318e760bd Bug 1365309 - Part 4: Disable the BackgroundHangMonitor in GMP processes, r=froydnj
This involved a change to BackgroundHangMonitor, as it initialized sDisabled
incorrectly to false, instead of true, We need sDisabled initialized to true, as
we cannot assume that it is enabled until BackgroundHangMonitor::Startup() is
called.

MozReview-Commit-ID: 94slLTkNk3C
2017-07-04 13:19:26 -04:00
Sebastian Hengst
6df5db8045 Backed out changeset bd3edebd5f20 (bug 1377447) for failing its own test 1377447-1.html on Windows 7 and OS X. r=backout 2017-07-04 18:18:30 +02:00
Ehsan Akhgari
d39018ac62 Bug 1377447 - Add a new flush type between Frames and InterruptibleLayout to initialize layout if needed and use it from CheckIfFocusable; r=smaug 2017-07-04 11:13:30 -04:00
Ehsan Akhgari
42cecdc81e Bug 1378044 - Switch the SVGImageContext::Hash() hashing code to use PLDHashNumber; r=dholbert 2017-07-04 11:08:28 -04:00
Ehsan Akhgari
f2eb6c6f8d Bug 1378042 - Part 2: Make WebIDLNameTableKey::mHash PLDHashNumber; r=baku 2017-07-04 11:06:52 -04:00
Ehsan Akhgari
5bf9b25941 Bug 1378042 - Part 1: Make nsMappedAttributes::HashValue() return PLDHashNumber; r=baku 2017-07-04 11:06:51 -04:00
Catalin Badea
8d614681bb Bug 1369063 - Remove mCurrentIndex from txMozillaXPathTreeWalker and use (Next/Previous)Sibling instead. r=peterv 2017-07-04 13:38:19 +01:00
Shawn Huang
2b06d377ba Backed out changeset 6c2c9d812fd6 (bug 1324163) for js error a=backout
--HG--
extra : amend_source : ce1681bcbd1b63a9aaf50c6bdff11822f521bb2b
2017-07-04 17:33:41 +08:00
Carsten "Tomcat" Book
75c2b6acd0 Merge mozilla-central to mozilla-inbound 2017-07-04 11:09:13 +02:00
Shawn Huang
3704e21b9a Bug 1324163 - Make sure loadFrameScript() is called before postMessage() for Indexeddb prompt tests, r=janv 2017-07-04 16:53:41 +08:00
Carsten "Tomcat" Book
8e3fa527c9 merge mozilla-inbound to mozilla-central a=merge 2017-07-04 10:48:33 +02:00
Andrea Marchesini
b90c39afee Bug 1377656 - Bug 1377656 - Remove visibility check in BrowserElement API, r=kanru 2017-07-04 05:43:52 +02:00
Andrea Marchesini
7398ce85e3 Bug 1360320 - Use a temporary directory for testing Entries API, r=smaug 2017-07-04 05:40:50 +02:00
Andrea Marchesini
c3f6540638 Bug 1377260 - Entries API must return results also when the underlying files of a directory change, r=smaug 2017-07-04 05:39:43 +02:00
Chris Pearce
7705e10c17 Bug 1373618 - Prevent ChannelMediaResource from making a "Range: bytes=$length-" request at end of stream. r=jwwang
Not all web servers consistently handle an HTTP 1.1 Byte Range Request for
"Range: bytes=$length-". Apache responds with 416, but others do not. So to
make us impervious to servers that respond with something other than 416, just
have us not make such a request when we know that the server thinks our
requested range is unsatisfiable.

We make such a request when we reach end of stream for a stream that has been
suspended/resumed. We are now more likely to suspend and resume streams with the
recent changes to our throttling logic.



MozReview-Commit-ID: 6URqzjLglOM

--HG--
extra : rebase_source : bcac7fde91b625e214d7d041c135a211833a1e85
extra : source : 75a37fe77f397576b5bb60d38293f215c815e61a
2017-07-04 12:05:23 +12:00
Gerald Squelart
1c7ccdf867 Bug 1377575 - MEDIACACHE_MEMORY_WATERMARK records the MemoryBlockCache memory use watermark - r=cpearce,francois
MozReview-Commit-ID: 1KLofciLxo1

--HG--
extra : rebase_source : 90bba01741635f6c1bb900ac01c0eca339de1a07
2017-06-30 15:09:38 -07:00
Gerald Squelart
be79b8f64f Bug 1377575 - Rename MemoryBlockCache's mCombinedSizes to gCombinedSizes - r=cpearce
As it is a static (hence Global) member.

MozReview-Commit-ID: 8NUQRoixr4N

--HG--
extra : rebase_source : 4373db35d448e483f6c1b169f6db68ef456b52b8
2017-06-30 10:43:41 -07:00
Gerald Squelart
878dd6dcf9 Bug 1377575 - No need to explicitly print 'this' from MemoryBlockCache logging - r=cpearce
Because it is already printed by LOG() itself.

MozReview-Commit-ID: 6dBESWQtNkQ

--HG--
extra : rebase_source : 37d1b5360825543a9e28443167219a50adfdebef
2017-06-30 15:17:39 -07:00
Brian Birtles
f6eddc29f3 Bug 1365472 - Use animated class names when doing selector matching in Servo; r=heycam
Using SVG SMIL it is possible to animate the class attribute of an element using
markup such as the following:

  <style>
    .red {
      fill: red;
    }
  </style>
  <svg>
    <circle cx="50" cy="50" r="30" fill="blue">
      <set attributeName="class" to="red" begin="1s"/>
    </circle>
  </svg>

In Gecko, Element::GetClasses handles this case by looking for an animated class
string when the element in question is an SVG element.

This patch causes our Servo bindings to use GetClasses when querying attribute
values for selector matching.

Note that animating the class attribute is *not* expected to affect attribute
selectors such as `circle[class="red"]`. It does in Chrome, but that is due to
a Blink bug where animating attributes using SMIL affects the result of
getAttribute:

  https://bugs.chromium.org/p/chromium/issues/detail?id=735820

This patch adjusts the behavior for both the GeckoElement case and the
ServoElementSnapshot case.

MozReview-Commit-ID: DAFWHSH1aYB

--HG--
extra : rebase_source : 292c4e2fb419818ea851aca12790ff7e70f2e1d4
2017-06-27 10:55:03 -07:00
Wes Kocher
fe8f466015 Merge m-c to autoland a=merge
MozReview-Commit-ID: 3aVeSLStD5W
2017-07-03 17:42:41 -07:00
Wes Kocher
50ae69bb30 Merge inbound to m-c a=merge
MozReview-Commit-ID: 2BQd8Y4xcTc
2017-07-03 17:35:58 -07:00
Dylan Roeh
e11705f181 Bug 1356921 - Enable SENSOR_ROTATION_VECTOR for DeviceOrientation events. r=esawin 2017-06-30 10:27:24 -07:00
Carsten "Tomcat" Book
4529b3adc4 merge mozilla-inbound to mozilla-central a=merge 2017-07-03 10:14:42 +02:00
Nicholas Nethercote
3e439bb4f8 Bug 1376638 - Minimize uses of prmem.h. r=glandium.
It's silly to use prmem.h within Firefox code given that in our configuration
its functions are just wrappers for malloc() et al. (Indeed, in some places we
mix PR_Malloc() with free(), or malloc() with PR_Free().)

This patch removes all uses, except for the places where we need to use
PR_Free() to free something allocated by another NSPR function; in those cases
I've added a comment explaining which function did the allocation.

--HG--
extra : rebase_source : 0f781bca68b5bf3c4c191e09e277dfc8becffa09
2017-06-30 19:05:41 -07:00
Andreas Farre
132ec026c3 Bug 1362322 - Throttle background timeouts using budget. r=bkelly
Deduct timeout execution time from a continuously regenerating
execution budget. Then throttle timeouts by using that budget in
TimeoutManager::MinSchedulingDelay to adjust the minimum value if
the budget is negative. The minimum value is adjusted to be a
value where the budget would have regenerated to be +0 ms.

The execution budget is clamped by values in ms defined in prefs:

* dom.timeout.background_throttling_max_budget: 50
* dom.timeout.foreground_throttling_max_budget: -1

A value equal or less than 0 means that the budget is infinite.

The regeneration rate can be controlled by the following prefs:

* dom.timeout.background_budget_regeneration_rate
* dom.timeout.foreground_budget_regeneration_rate

one each for foreground and background throttling.

To not starve timeouts indefinitely we clamp the minimum delay using
the pref:

* dom.timeout.budget_throttling_max_delay: 15000

The feature is behind the pref:

* dom.timeout.enable_budget_timer_throttling
2017-07-02 18:02:38 +02:00
Phil Ringnalda
915412e692 Merge m-i to m-c, a=merge
MozReview-Commit-ID: HINQtggBLDr
2017-07-01 17:36:09 -07:00
Robert Longson
57cdb660f1 Bug 1374861 - add const keyword where appropriate. r=birtles 2017-07-01 10:55:27 +01:00
Bevis Tseng
f0e932a3f9 Bug 1377484 - Label the use of NS_NewInputStreamPump in CacheScriptLoader. r=bkelly 2017-06-30 10:52:06 -07:00
JW Wang
c1d11b49ba Bug 1377370. P3 - remove HLS related code from MediaResource.cpp. r=kikuo
MozReview-Commit-ID: FnZEMNDjjmE

--HG--
extra : rebase_source : 5035a91206da73ab2d8c76d99789ec6ca89ce679
extra : source : c4be1a0fd151c5da20a959da05bdf2246c46a487
2017-06-30 10:22:36 +08:00
JW Wang
b02249e698 Bug 1377370. P2 - simplify HLSDecoder::Clone() for HLSResource doesn't support clone at all. r=kikuo
MozReview-Commit-ID: FxebHdK4EmM

--HG--
extra : rebase_source : d1074b8e5edf646244922a734839c19f8a4fb1b4
extra : source : 418066ce151ef0e5dc4b817f8663c281fc5fcc0d
2017-06-30 10:20:32 +08:00
JW Wang
7d2785b4a8 Bug 1377370. P1 - let HLSDecoder override Load() so it can create an HLSResource directly without going through MediaResource::Create(). r=kikuo
MozReview-Commit-ID: BL8bt2JtKfa

--HG--
extra : rebase_source : 70231ab332fee2316e86aa73e834f108183b23d8
extra : source : e97125ebc28890e0d538c4ef4d8abc9232e69bac
2017-06-30 10:11:42 +08:00
David Anderson
bea091ec98 Add a reftest for bug 1377303. r=mattwoodrow
--HG--
extra : rebase_source : deb6c86702311b4af9326a6ddacebcb602dc124c
2017-06-30 15:36:13 -07:00
Xidorn Quan
f336c138a5 Bug 1376130 - Don't notify page-{shown,hidden} observers or dispatch pageshow/pagehide events when the document is an SVG used as image. r=smaug
MozReview-Commit-ID: 45L1MBYqTeK

--HG--
extra : rebase_source : 79eaccb1fedb3aa261b6bb02a304024b0674ba4b
2017-06-30 11:26:14 -07:00
Wes Kocher
5226f27e3e Merge m-c to inbound, a=merge
MozReview-Commit-ID: 7LPTKLiLUcj
2017-07-03 17:37:38 -07:00
Bill McCloskey
5ea47d3cf9 Bug 1376981 - Label nsBindingManager::PostProcessAttachedQueueEvent (r=smaug)
MozReview-Commit-ID: G0xxNwtXsex
2017-07-03 16:20:04 -07:00
Bill McCloskey
4b6dd14d76 Bug 1376851 - Label non-addon PJavaScript messages (r=dvander)
MozReview-Commit-ID: DuhRz9BOXFi
2017-07-03 16:20:02 -07:00
Bill McCloskey
224d56eb18 Bug 1377222 - Eliminate nsITimer::InitWithFuncCallback in favor of InitWithNamedFuncCallback (r=froydnj)
MozReview-Commit-ID: 9zN9aAd7daA
2017-07-03 16:19:56 -07:00
Jeff Gilbert
0b1caa2664 Bug 1377827 - Don't try to initialize texture data unless the texture is otherwise complete. - r=daoshengmu
MozReview-Commit-ID: 4alHrHS2vMJ
2017-07-03 15:39:59 -07:00
Ehsan Akhgari
8c93d464fc Bug 1377818 - Reserve 10 elements of storage in nsContentList::mElements to avoid paying excessive allocation overhead when manipulating content lists; r=smaug 2017-07-03 17:20:47 -04:00
Wes Kocher
591f4e3159 Merge m-c to inbound, a=merge 2017-06-30 15:12:24 -07:00
Kartikaya Gupta
e436c26203 Bug 1370089 - Assume APZ is enabled in TabChild if we are queried before we have the compositor options. r=dvander a=bustage
MozReview-Commit-ID: KHvAvGCQQUr

--HG--
extra : source : 4ded92f42403ecd4582638f2209c534e64350c60
2017-06-30 14:51:33 -04:00
Eden Chuang
c3f02d3246 Bug 1376623 - PaymentMethodData.supportedMethods is now DOMString. r=baku 2017-07-01 01:17:12 +08:00
Carsten "Tomcat" Book
daa67cc9e3 merge mozilla-inbound to mozilla-central a=merge 2017-06-30 12:59:45 +02:00
Jessica Jong
d400a98b87 Bug 1374967 - Part 2: Consider step when deciding whether to show second/millisecond field. r=smaug
We should consider step and step base when deciding whether to show second and
millisecond field, since step and step base can affect the valid time intervals,
and the valid intervals may have second/millisecond part.

MozReview-Commit-ID: H4mJvLTvBOM
2017-06-29 11:47:00 -04:00
Shawn Huang
f0f1e72503 Bug 1345457 - Part 1: Fire up an upload abort event when mFlagHadUploadListenersOnSend is true, r=baku
Fire upload.onabort and upload.onloadend when abort() called. Original code
won't fire onabort if mUploadComplete is true.

Per https://xhr.spec.whatwg.org/#request-error-steps xhr.upload.onabort fires before .onabort
2017-06-30 10:48:25 -07:00
Sebastian Hengst
be21e05aa7 Backed out changeset aa05515c1c87 (bug 1373660) for frequently timing out in toolkit/components/extensions/test/xpcshell/test_ext_i18n.js on OS X 10.10 opt. r=backout 2017-06-30 01:43:45 +02:00
Paul Adenot
eb97e8d9df Bug 1341555 - Make static analysis happier.
MozReview-Commit-ID: 18kvK2pMDd4

--HG--
extra : rebase_source : 357118b4e139e2242501930fe21033d0a7454812
2017-06-29 13:11:23 -07:00
Paul Adenot
404c800005 Bug 1341555 - Consolidate use of the MSG's AbstractMainThread, and stop having AbstractMainThread on MediaStreams. r=pehrsons
MozReview-Commit-ID: 5hGDQcfpH6a

--HG--
extra : rebase_source : 41bb678f37cfcdbc9912a25f45a5ca488084aabe
2017-06-29 11:30:57 -07:00
Paul Adenot
91cc425f9a Bug 1341555 - Label MSG runnables. r=pehrsons
MozReview-Commit-ID: 4sfRH3FxtBT

--HG--
extra : rebase_source : 1c473d1f6c7f79462c39126dc7bb9116948cca54
2017-06-29 11:31:17 -07:00
Paul Adenot
6e485889b8 Bug 1330360 - Create new MSGs for each nsPIDOMWindow. r=jesup
MozReview-Commit-ID: 5m1MGcLmT7J

--HG--
extra : rebase_source : b9c05464bb545c047b7718a048eb7e5de3fe275d
2017-06-23 16:18:34 -07:00
Paul Adenot
d1a2003316 Bug 1371719 - Don't create a MediaStreamGraph without doing anything with it. r=jesup
The MediaStreamGraph relies on having at least one message sent to its message
queue on creation, or it will just sit there and do nothing, and block shutdown
because its not running its rendering loop, so it's not progressing in the
MediaStreamGraph life cycle state machine.

This patch makes sure the `captureStream` will succeed before creating an MSG.

MozReview-Commit-ID: CN1arWydmxC

--HG--
extra : rebase_source : b59a8ec4de17aa90d274819ea0c7d687673c8075
2017-06-28 15:19:39 -07:00
Yoshi Huang
150b31524e Bug 1374944 - rewrite mochitest-3 tests for using data: URI. r=smaug 2017-06-30 10:21:52 -07:00
Bevis Tseng
1847f5c49a Bug 1377275 - Label the use of NS_NewInputStreamPump in serviceWorkerScriptCache with SystemGroup. r=bkelly 2017-06-29 15:06:43 -07:00
Shawn Huang
8ebd1a59a4 Bug 1362228 - Make sure messageManager.loadFrameScript() is called before window.postMessage(), r=janv
After BrowserLoaded got called and persist() been resolved, there is no guarantee window.postMessage()
is executed after addEventListener(). In order to call window.postMessage() after addEventListener(),
make sure messageManager.loadFrameScript() is registered "message" in chrome privileged script,
instead of via web content.
2017-06-30 09:40:19 -07:00
Carsten "Tomcat" Book
59605ed6b5 Merge mozilla-central to mozilla-inbound 2017-06-30 15:11:49 +02:00
Olli Pettay
15af1ecf7d Bug 1376614 - Pass budget to forgetSkippable and return early when budget has been used, r=mccr8 2017-06-30 13:44:59 +03:00
Andrew McCreight
2f8c208b53 Bug 1018394 - Remove unused functionality to do extra forget skippable calls before a CC. r=smaug
We never actually use this, and it causes assertions with fuzzing, so
just delete it.

MozReview-Commit-ID: 595M09mD0K2

--HG--
extra : rebase_source : 7fdcbeaa6db0c92b5818eae48624f0c74e660505
2017-07-03 12:53:54 -07:00
JW Wang
147505b83d Bug 1375922 - don't send frames to the compositor if the 1st one is a future frame. r=cpearce
A/V sync will be broken for the compositor will render the 1st frame
immediately without considering its timestamp.

MozReview-Commit-ID: 6j7GLccrFcX

--HG--
extra : rebase_source : 924a2404d8d944262d1f8744794a072c051ac556
extra : source : 1e254ff8491084b66dfebbb2e1be03790c95ed11
2017-07-03 11:51:39 +08:00
Chris Pearce
2aa281e7d2 Bug 1370177 - Treat compressed HTTP channels as having infinite length and as unseekable in media code. r=jwwang.
The problem here is that the server is setting the Content-Length to the size
of the gzipped file, which is confusing our media code as that's not the length
of the decompressed stream. Necko's decompressor is streaming, so we can't know
the length of the stream in advance unless we wait for the entire file to
download first. We also can't seek in compressed HTTP resources anyway.

So just have our code assume that compressed HTTP channels are of infinite
length and have un unseekable transport. Then we can seek in the buffered
regions at least.

MozReview-Commit-ID: 9SiLuMZGSeJ

--HG--
extra : rebase_source : ca561776a684a4a0a39a830ecda499732666daaa
2017-07-04 15:31:48 +12:00
Chris Pearce
5c3bbc5b04 Bug 1370177 - Add test case for gzipped MP4 with Content-Length set to compressed file length. r=jwwang.
Adds a testcase corresponding to what's happening here; we have a gzipped
file with a Content-Length which is the length of the compressed stream.

MozReview-Commit-ID: 8SDayegP11W

--HG--
extra : rebase_source : 1ae21d0f202e24f6e0236d3f2d2363ab930b0c2e
2017-07-04 23:37:14 +12:00
Carsten "Tomcat" Book
2f89ff146f Backed out changeset 9342f0d949f1 (bug 1362330) for failures like nsFocusManager.cpp:1166:31: error: member access into incomplete type 'mozilla::dom::nsIContentParent'
--HG--
extra : rebase_source : f66736599ced81fde3b0f0555bb1f85934ecec54
2017-07-04 09:53:36 +02:00
Carsten "Tomcat" Book
78937d0e56 Backed out changeset 4b95aa66ba1a (bug 1362330)
--HG--
extra : rebase_source : 5110263566353fa082b21fb65e45de54db5133c6
2017-07-04 09:53:13 +02:00
Carsten "Tomcat" Book
63e37c85e1 Backed out changeset ad0560789e1e (bug 1331932)
--HG--
extra : rebase_source : 234862b52d30a4a9ffd371c1088b67dd80a253af
2017-07-04 09:53:11 +02:00
Beekill95
4b50ba3fad Bug 1331932 - Suppress window animations while we're restoring window dimension. r=mikedeboer,jimm,mstange 2017-06-22 14:27:05 +07:00
Beekill95
441d70f009 Bug 1362330 - Part 2: Add testcases for C++ XPathGenerator's functions. r=mikedeboer,r=smaug
MozReview-Commit-ID: HhFE20QgoZb
2017-06-15 08:51:41 +07:00
Beekill95
fd725fa7ce Bug 1362330 - Part 1: Move XPath generation to Node's interface and move all remaining XPathGenerator.jsm functions to FormData. r=mikedeboer, r=smaug
MozReview-Commit-ID: Ej45wPeddtQ
2017-06-15 08:49:17 +07:00
Paul Adenot
e55c008768 Bug 1372247 - Make the AudioOutputObserver a member of the MediaEngineWebRTCMicrophoneSource so it's not a global singleton anymore. r=jesup
MozReview-Commit-ID: 3yC1PvG3sW7

--HG--
extra : rebase_source : 950c1633d127ee0b6670b112bb31637a8851a583
2017-06-12 17:14:26 +02:00