Commit Graph

59101 Commits

Author SHA1 Message Date
Jay Harris
7c7fa081d8 Bug 1333979 - Adds a check in the WidevineVideoDecoder before shutting down r=cpearce
DeinitializeDecoder will now only be called if InitializeDecoder has been called first

MozReview-Commit-ID: 93WexomWp92

--HG--
extra : rebase_source : 96dfa5666041340d56fbfce7a46fb7f8f67181dc
2017-01-27 10:54:04 +13:00
J.C. Jones
ff0d7b7db5 Bug 1333592 - Fix a regression with U2F sign() called with multiple keys r=keeler
Add a test that U2F supports signing with multiple keys.

Reorder the WaitGroupDone calls to ensure they always fire, even if there
are multiple actions in flight.

Also, change the status lanbda captures to capture by reference, and disable
the copy constructor that would let the by-value work. Interestingly, the
compiler is choosing by-reference by default -- at least logs show that the
behavior is correct without this change, but still - this is the right thing to
do.

Updated: Fix the unit tests and write a README that explains why they have to
         use an iframe, while WebAuthn tests do not.

MozReview-Commit-ID: AqSyxU5N4yu

--HG--
extra : rebase_source : b8f18973891ba63ac364203dece65a0689f46ee5
2017-01-26 15:18:50 -07:00
Gerald Squelart
09a3dc03ac Bug 1334230 - media.wmf.allow-unsupported-resolutions=true should not disable H264 - r=jya
Previously the combined tests meant that if a track was H264, and we supported
H264, BUT media.wmf.allow-unsupported-resolutions==true, we would just skip the
whole block, meaning we would return 'false' (unsupported) in the end.

Instead, if a track is H264, and we support H264, we should return 'true'
(supported), unless media.wmf.allow-unsupported-resolutions==false and the
resolution is too high.

MozReview-Commit-ID: 5YUhlxmfPIO

--HG--
extra : rebase_source : 48fdcdc0ec83368fe1e97f30d87fb9384129700f
2017-01-27 06:58:41 +11:00
Wes Kocher
c8f30b0f17 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 2ebTz0mtSc6
2017-01-26 16:32:51 -08:00
Wes Kocher
8fa84ca644 Merge inbound to central, a=merge
MozReview-Commit-ID: BZgxmhS6OtM
2017-01-26 16:19:05 -08:00
Catalin Badea
d766bfbd2b Bug 1333112 - Fix windowClient.Navigate leak. r=bkelly 2017-01-26 21:37:17 +02:00
Olli Pettay
c3fe34260f Bug 1333903 - ErrorEvent, CloseEvent, ProgressEvent and FileList should be exposed in workers, r=baku
--HG--
extra : rebase_source : efcc0f77c1ae9838f1c999ec53a129b6f76c4f01
2017-01-26 18:57:59 +02:00
Ben Kelly
3f5c467b20 Bug 1319278 P5 Removed unused TimerThreadEventTarget. r=baku 2017-01-26 08:01:33 -08:00
Ben Kelly
aec8848418 Bug 1319278 P4 Make ServiceWorkerPrivate use new WorkerControlEventTarget instead of TimeThreadEventTarget. r=baku 2017-01-26 08:01:33 -08:00
Ben Kelly
67f0e950f9 Bug 1319278 P3 Make worker GC use new WorkerControlEventTarget. r=baku 2017-01-26 08:01:33 -08:00
Ben Kelly
e3e5175758 Bug 1319278 P2 Make the WorkerPrivate create a WorkerControlEventTarget. r=baku 2017-01-26 08:01:32 -08:00
Ben Kelly
9dfba8baab Bug 1319278 P1 Add a WorkerControlEventTarget that executes runnables as WorkerControlRunnables. r=baku 2017-01-26 08:01:32 -08:00
Trevor Saunders
5e44465e8d bug 1333514 - fix race between PDocAccessibleConstructor messages and PBrowser::Destroy messages r=billm 2017-01-26 10:01:43 -05:00
Olli Pettay
121666c25e Bug 1333901, fix hazard issue, r=me
--HG--
extra : rebase_source : 204c37d51ab7534211364ddda8162da678b5734e
2017-01-26 16:09:24 +02:00
Olli Pettay
68d3ebc645 Bug 1333901 - support document.createEvent(ErrorEvent), r=masayuki
--HG--
extra : rebase_source : c0cb764a8d7d99fb681cafb7c99bb334627299c8
2017-01-26 12:00:16 +02:00
Carsten "Tomcat" Book
3ba519c29b Backed out changeset 3f1285bd1cbd (bug 1319531) for test failures in own test on a CLOSED TREE 2017-01-26 14:41:33 +01:00
Carsten "Tomcat" Book
e8b6225b69 Backed out changeset fe6d35a774ed (bug 1333901) for causing hazard warnings after landing 2017-01-26 14:40:42 +01:00
Andrew Sutherland
a00fb459e2 Bug 1319531 - Ensure all streams provided by DatabaseFile can be read without generating NS_BASE_STREAM_WOULD_BLOCK errors. r=janv
IndexedDB database operations are written such that they must execute
synchronously.  For this reason, the add/put operation reads/writes its
Blobs to disk in a synchronous fashion.  However, with the introduction
of SendStream-backed Blobs for large (>1 MiB) blobs whose contents are
streamed to the parent replacing nsStringInputStream-backed Blobs
(whose contents were sent up in a single IPC message that might exceed
the size limit and cause a crash), this has no longer been a safe
assumption.  However, the problems weren't immediately obvious because
most pre-WASM Blobs are smaller than the 1MiB threshold and even when
they exceeded the size, their memory-backed contents could rapidly be
sent to the parent via IPC, making NS_BASE_STREAM_WOULD_BLOCK errors
rare/hard to reproduce.  (rr and its enforced single-threading is a
good way to reproduce, however.  Also, see the testing patch on the
bug that introduces artificial delays into SendStream.)

Included SpecialPowersObserver.jsm minor changes to "CreateFiles":
- appendRelativePath is used instead of appendPath because appendPath
  only allows a single path component to be appended.  In other words,
  file creation is limited to files at the root of the profile
  directory using appendPath, which is needlessly limiting.
- outStream is now closed even if no data is provided.  This is
  essential on windows where file deletion only occurs when all handles
  are closed.  Without this fix, "RemoveFiles" side-effect of deleting
  the created files might not take effect until garbage collection runs
  and collects the outStream.
2017-01-26 05:46:59 -05:00
Olli Pettay
c479f3ffbf Bug 1333901 - support document.createEvent(ErrorEvent), r=masayuki 2017-01-26 12:00:16 +02:00
Timothy Nikkel
a721701822 Bug 1264798. Include the composite end time in the MozAfterPaint event. r=smaug r=mattwoodrow 2017-01-25 23:01:33 -06:00
Phil Ringnalda
39e57631eb Merge m-c to m-i 2017-01-25 20:48:39 -08:00
Phil Ringnalda
7da3c9dcf4 Merge autoland to m-c, a=merge 2017-01-25 20:37:29 -08:00
Wes Kocher
5856ed7acc Backed out changeset c429f0a0040e (bug 1316282) for timing out Windows PGO builds a=backout CLOSED TREE
MozReview-Commit-ID: K88JI9UiHqU
2017-01-25 16:59:20 -08:00
Bevis Tseng
aa7ad0363c Bug 1333371 - Fallback to AbstractThread::MainThread() if the inner window is not provided. r=billm 2017-01-25 13:43:30 +08:00
Liang-Heng Chen
413f0cb0b4 Bug 1328106 - check IPC state before sending event; r=jdm
MozReview-Commit-ID: CeWCIG0dyKS

--HG--
extra : rebase_source : c980a395bc61c1d21226c52568d62c69e1848175
2017-01-23 16:23:34 +08:00
Nils Ohlmeier [:drno]
ede12d1bfb Bug 1333185: memset PRNetAddr for UDPSocket::connect(). r=schien
MozReview-Commit-ID: JJb18xXNy1c

--HG--
extra : rebase_source : a13f661eeb9ba4bc0b6c38f522b3c89c62ef9cc4
2017-01-23 13:40:29 -08:00
Chris Pearce
f234632cce Bug 1333259 - Remove test_gmp_playback.html. r=gerald
We have removed unencrypted decoding via GMP, so we can remove its test.

MozReview-Commit-ID: 5VRbcbDFrhu

--HG--
extra : rebase_source : 33eb8fb084c48ecd2dcf28ba3caf5da37fa5de26
2017-01-24 13:58:43 +13:00
Kate McKinley
88fa83b99b Bug 1329940 - Ignore window.opener for password manager warnings r=baku,jwatt,MattN
MozReview-Commit-ID: KiIR6WEddgO

--HG--
extra : rebase_source : eeae09dad3d10895b9266b249beacdedded3e1a2
2017-01-12 16:57:44 -08:00
Nils Ohlmeier [:drno]
5a71699e24 Bug 1332826: return error when calling addIceCandidate before setRemoteDescription. r=jib
MozReview-Commit-ID: LYeDkr5G7Tx

--HG--
extra : rebase_source : ecd3e3e1eff4ed11a2ca0989570b8a367f7527e7
2017-01-21 01:12:46 -08:00
Christian Holler
4dc29b3b09 Bug 1332361 - Expose TestingFunctions to content in FUZZING builds. r=jandem.
MozReview-Commit-ID: HA0oodPzAeS

--HG--
extra : rebase_source : 896f4d9465b8bd2a5655dec63165f893b0f0f5df
2017-01-25 13:39:54 +01:00
Kartikaya Gupta
1af1a82edf Bug 1312319 - Add a NS_INLINE_DECL_PURE_VIRTUAL_REFCOUNTING macro and replace existing pure-virtual AddRef/Release declarations. r=froydnj
MozReview-Commit-ID: 5yt3O4Hoois

--HG--
extra : rebase_source : 5dad12cd8400b8a783e8407de874d4b7c75cb645
2017-01-25 14:51:34 -05:00
Andi-Bogdan Postelnicu
41b6ea29d4 Bug 1334081 - prevent null pointer dereference in StreamReaderFunc. r=baku
MozReview-Commit-ID: 4kiFdHrkQmf

--HG--
extra : rebase_source : d764bda2690e06a5be63a1143f46ea99756f4225
2017-01-26 14:39:11 +02:00
Carsten "Tomcat" Book
58b6101373 Merge mozilla-central to autoland 2017-01-26 12:37:41 +01:00
Stone Shih
c46ac6128d Bug 1332527 - [Pointer Event] Remove redundent codes in PointerEvent test cases. r=masayuki
MozReview-Commit-ID: EiV7PvyFBTU

--HG--
extra : rebase_source : 76788d0ba26411b759f1d51f9560ad0257d9e814
2017-01-20 09:58:15 +08:00
Wes Kocher
26ef67bc84 Merge m-c to autoland, a=merge CLOSED TREE
MozReview-Commit-ID: 86aFtkvKHHj
2017-01-25 17:18:56 -08:00
Carsten "Tomcat" Book
ff34e66ec7 Merge mozilla-central to autoland 2017-01-25 13:52:18 +01:00
Carsten "Tomcat" Book
182312677f merge mozilla-inbound to mozilla-central a=merge 2017-01-25 13:47:25 +01:00
Bob Owen
d3150f7bc4 Bug 1317293: Only allow nsFrameLoader::SwapWithOtherRemoteLoader when remote types match. r=billm 2017-01-25 07:18:00 +00:00
Florian Quèze
1907780e48 Bug 1331599 - tests fixed by hand after making addEventListener use the once option when possible, r=jaws. 2017-01-25 07:03:42 +01:00
Florian Quèze
0e0865f4fc Bug 1331599 - script-generated patch to replace removeEventListener calls with the once option when possible, r=jaws. 2017-01-25 07:01:52 +01:00
Phil Ringnalda
5d85cca30d Backed out 2 changesets (bug 1333289) for ASan mda leaks
Backed out changeset e72c737ab6ed (bug 1333289)
Backed out changeset 5a910c074e14 (bug 1333289)
2017-01-24 21:29:30 -08:00
Andi-Bogdan Postelnicu
6a8fbda077 Bug 1316282 - do not expose sWebMSample in XUL. r=jya
MozReview-Commit-ID: CVQpk5n4RrQ

--HG--
extra : rebase_source : 5e40b43778b5cf91e5cb9fcd13c15c022f7ef2b7
2017-01-25 12:33:26 +02:00
Mantaroh Yoshinaga
3ad37c274f Bug 1308099 part 1 - Rename AnimationPhase::Null to AnimationPhase::Idle. r=hiro
In Web Animations specification, if the animation effect is in none of the any phase, it define as 'Idle' phase. [1]
But, in the gecko, it defined as 'Null' phase.

So we will need to use 'Idle' phase for consistency.

[1] https://w3c.github.io/web-animations/#idle-phase

MozReview-Commit-ID: FlPpYOqdM4X

--HG--
extra : rebase_source : ec294c84f9c77a42d6128e3d43380b80fc130513
2017-01-25 15:43:57 +09:00
Boris Chiou
a7cc28900f Bug 1317209 - Part 7: Skip some crash tests due to unimplemented features. r=emilio,heycam
MozReview-Commit-ID: ClB3wro1Q7D

--HG--
extra : rebase_source : 56ce49409109b763695ec15369ab3e17b497afc9
2017-01-25 11:18:55 +08:00
Boris Chiou
d45e2346f6 Bug 1317209 - Part 6: Support transition cascade level. r=heycam
Implement the mapping between EffectCompositor::CascadeLevel in Gecko and
EffectCompositor_CascadeLevel in Servo, so we can pass it as a parameter into
Gecko_GetAnimationRule.

MozReview-Commit-ID: GRedooyGE8c

--HG--
extra : rebase_source : c18d54dabb093242c66d46be8ca03424a2c6ca78
2017-01-24 15:33:10 +08:00
Boris Chiou
f338c9e47d Bug 1317209 - Part 5: Trigger composeStyle if there is an animation. r=heycam
1. Add one new FFI, Gecko_GetAnimationRule, which will try
   to update the animation rule and retrieve a ServoAnimationRule
   from EffectSet.
2. Add GetServoAnimationRule, which calls Animation::ComposeStyle and updates
   mElementsToRestyle.
3. There is no eRestyle_{CSSAnimations|CSSTransitions}, so we use
   eRestyle_Self and eRestyle_Subtree for stylo.

MozReview-Commit-ID: 9RpJurPSFMk

--HG--
extra : rebase_source : 6f1246b73a920aee86faeeaccc42b7f51ed2a6c8
2017-01-24 15:27:56 +08:00
Boris Chiou
e408a629aa Bug 1317209 - Part 4: Don't ref-count nsDOMNavigationTiming in DocumentTimeline. r=heycam
nsDOMNavigationTiming is not thread-safe ref-counted, so it's better not to
put it into RefPtr because we might call those functions from servo side.
Actually, nsDOMNavigationTiming is held by the document, and the document
must still live in these functions.

MozReview-Commit-ID: AyZ4k749btm

--HG--
extra : rebase_source : 06c0f3654a32483594b80042ec854d3c09a21d9c
2017-01-13 17:34:38 +08:00
Boris Chiou
6ed12ee8b7 Bug 1317209 - Part 3: Add constness to GetEffectSet. r=hiro
We need to call GetEffectSet() from Servo code, which passes an
immutable reference to GeckoElement, so it's better to make dom::Element
const.

MozReview-Commit-ID: GqQEB7BwkJA

--HG--
extra : rebase_source : 4b025f56949d8327781be26d1607e6d9f4668f2f
2017-01-13 17:06:35 +08:00
Boris Chiou
93204df88d Bug 1317209 - Part 2: Call Servo's Interpolation from Gecko. r=heycam,manishearth
1. Call Servo's interpolation from KeyframeEffectReadOnly::ComposeStyle().
2. Store the results into ServoAnimationRule.

MozReview-Commit-ID: LOp2mbXforg

--HG--
extra : rebase_source : eda5e275e81f2413b2a729e8d06663eae496c15c
2017-01-24 15:21:52 +08:00
Boris Chiou
05b18b1257 Bug 1317209 - Part 1: Introduce ServoAnimationRule and implement uncompute FFI. r=heycam,manishearth
1. Introduce ServoAnimationRule, which is an equivalent of AnimValuesStyleRule.
2. Wrap ServoAnimationRule and AnimValuesStyleRule into a struct, and
   use it as the parameter of Animation::ComposeStyle and
   KeyframeEffectReadOnly::ComposeStyle.
3. Uncompute the RawServoAnimationValues in ServoAnimationRule when we
   need it.

MozReview-Commit-ID: HahXDYBCAhH

--HG--
extra : rebase_source : cd8c6f3a8409abf97f04af888953ff0e77d98348
2017-01-24 15:19:18 +08:00