Commit Graph

566503 Commits

Author SHA1 Message Date
Alastor Wu
7440c83cae Bug 1362440 - part2 : parsing entire content to decide whether it's media segment. r=kinetik
The spec [1] defines what's the media segment, and the parser would return error
if the format is not correct.

[1] https://w3c.github.io/media-source/webm-byte-stream-format.html

MozReview-Commit-ID: 4hq59Pywz2t

--HG--
extra : rebase_source : 1136d2a673f11d612e0eb711db6affdce42bb525
2017-10-30 15:27:30 +08:00
Alastor Wu
58382a8ca5 Bug 1362440 - part1 : add timecode checking for parser r=kinetik
The spec [1] defines that
"Timecode (e7) MUST appear before Block (a1) or SimpleBlock (a3)".

[1] https://www.matroska.org/technical/specs/index.html

MozReview-Commit-ID: 7g8lgckuNif

--HG--
extra : rebase_source : 4945dc4b0ab4b7480bf9c6416f9776fd6313c1e1
2017-10-30 15:27:27 +08:00
Andi-Bogdan Postelnicu
bd50b9031f Bug 1411630 - make mozilla::gfx::VRHMDSensorState to be trivial typed. r=kip
MozReview-Commit-ID: 7BniyasLIQD

--HG--
extra : rebase_source : ad7603dd8e2f8ea93989833de09624108aa7bd31
2017-10-30 10:43:14 +02:00
Jean-Yves Avenard
7838f76570 Bug 1412339 - Enable AVX2 optimizations on Linux x86_64. r=jwwang
MozReview-Commit-ID: 6mMf93LQeRj

--HG--
extra : rebase_source : 531b88872914e02b6924f53c452a22323002d53a
2017-10-27 16:20:39 +02:00
Alfredo.Yang
510e47a924 Bug 1412183 - use BufferReader instead of ByteReader in DecoderData. r=kinetik
MozReview-Commit-ID: AgcOuWn7ouo

--HG--
extra : rebase_source : e2aa46b47e848a8d51dc6e48a58e46db6f669b68
2017-10-25 15:40:24 +08:00
Alfredo.Yang
c4c528d6c5 Bug 1412183 - use BufferReader instead of ByteReader in H264 parser. r=kinetik
MozReview-Commit-ID: KhwWj1Nr85E

--HG--
extra : rebase_source : 6994f676d9946a38d5577956a4ad33577ef3b535
2017-10-25 15:26:45 +08:00
Alfredo.Yang
ae23abee61 Bug 1412183 - use BufferReader instead of ByteReader in AnnexB parser. r=kinetik
MozReview-Commit-ID: YZ4vo7o0Gs

--HG--
extra : rebase_source : 01d7242162cc31dfe1d703e4ded03cd8c5d93748
2017-10-25 09:58:43 +08:00
Alfredo.Yang
86695f2d80 Bug 1412183 - use BufferReader instead of ByteReader in mp4 index parser. r=kinetik
MozReview-Commit-ID: KNfqpgzQleE

--HG--
extra : rebase_source : ef97f84ba308df097097a9ef84e3c3378078d432
2017-10-23 10:43:30 +08:00
Xidorn Quan
1ffe8a8ec6 servo: Merge #19055 - Add support for -moz-window-opacity to stylo (from upsuper:window-opacity); r=Manishearth
Fixes [bug 1374177](https://bugzilla.mozilla.org/show_bug.cgi?id=1374177).

Source-Repo: https://github.com/servo/servo
Source-Revision: 17bfe5c12013a47c09e0198d029f3ded2ccbc42c

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : a4e372b3e9aba45088e102470ab7c11561a7c92f
2017-10-30 00:42:45 -05:00
Mike Hommey
7f63a01cca Bug 1412717 - Make malloc_initialized atomic. r=njn
Interestingly, this turns single-instruction checks into
two-instructions checks (at least with GCC, from one cmpb to a movl
followed by a testl), but this is due to Atomic<bool> being actually
backed by a uint32_t, not by the use of atomics.

--HG--
extra : rebase_source : cfc0bec2113b44635120216b4abbbbbe9028b286
2017-10-30 09:30:41 +09:00
Masayuki Nakano
68626e182f Bug 1411687 - part 3: Add webplatform-test for testing "insertParagraph" command when user-defined element is the editing host r=m_kato
MozReview-Commit-ID: 4h53PBCGlU2

--HG--
extra : rebase_source : 1fc5ac1e41008f43956fea3840cdc89da7985df5
2017-10-27 16:01:59 +09:00
Masayuki Nakano
f802692190 Bug 1411687 - part 2: Rewrite the check to insert a <br> element in HTMLEditRules::WillInsertBreak() r=m_kato
Currently, HTMLEditRules::WillInsertBreak() checks if the editing host can
contain a <p> element as a child or a descendant.  However, this is not enough.
If an inline element has a block element which can contain a <p> element,
current implementation considers to insert a <br>.  This is possible when
* The editing host is an unknown element including user defined element.
* The editing host is an inline element and its children and/or descendants
  were added by JS.  E.g., <span contenteditable> element can have <div>
  element.

I think that we should consider to insert a <br> element when:
- There is no block ancestors in the editing host.
- The editing host is the only block element and it cannot contain <p> element
  or the default paragraph separator is <br> element.
- The nearest block ancestor isn't a single-line container declared in the
  execCommand spec and there are no block elements which can contain <p>
  element.

Note that Chromium checks if CSS box of ancestors is block too.  However,
it must be out of scope of this bug.

MozReview-Commit-ID: HdjU9t83Nd1

--HG--
extra : rebase_source : 7030671268a610613359b5d8ae5d126e120f59bd
2017-10-27 01:27:44 +09:00
Masayuki Nakano
2b96b7532a Bug 1411687 - part 1: HTMLEditor::GetBlockNodeParent() and HTMLEditor::GetBlock() should take an ancestor limiter node optionally r=m_kato
Perhaps, most callers don't need parent block outside active editing host.
Therefore, callers of these methods should be able to specify the editing
host for making those methods stop looking for a block ancestor.

Then, callers can avoid using EditorUtils::IsDescendantOf() and
nsContentUtils::IsContentDescendantOf().

MozReview-Commit-ID: 7IK4gAVHY5d

--HG--
extra : rebase_source : 31cd55026f0ce005d906499de4ebe5d1c39555e9
2017-10-26 22:54:30 +09:00
Masayuki Nakano
bb82521595 Bug 1411687 - part 0: Get rid of HTMLEditor::GetBlockNodeParent(nsIDOMNode*) r=m_kato
Currently, HTMLEditor::GetBlockNodeParent(nsIDOMNode*) is used only by
HTMLEditor::DoInsertHTMLWithContext() and there is a variable of nsINode*.

So, we don't need to keep it anymore.

MozReview-Commit-ID: LEWaiR5BEB9

--HG--
extra : rebase_source : 64ef772f3b7883bd4aae48dec737663e6036553b
2017-10-26 22:37:45 +09:00
Fred Lin
1e17939ca3 Bug 1409977 - mark Onboarding tour will set as completed instantly via define a tour property;r=Fischer
MozReview-Commit-ID: 4zsPzXieZap

--HG--
extra : rebase_source : fdefc23e74d268359e0f421271d1cae867ddea36
2017-10-30 10:44:39 +08:00
JW Wang
cd62426903 Bug 1412187 - ChannelMediaResource::Resume() should call Seek() instead of CacheClientSeek(). r=gerald
CacheClientSeek() will call Seek() asynchronously and should be used by MediaCache only.
ChannelMediaResource::Resume() runs on the main thread and can call Seek() directly.
Note this is a missing change from bug 1411504 P3.

MozReview-Commit-ID: I2X1Rk5HoDV

--HG--
extra : rebase_source : 66dce75aefc4bfebecf69ebe107e9b4c9286f3a5
extra : source : 20e5463e15049095a941f501acd3fa7dd4e9b1db
2017-10-27 11:50:37 +08:00
JW Wang
c94f001983 Bug 1412181 - add a proxy to be registered with ClearOnShutdown() to clear MediaCache::sThread. r=gerald
MozReview-Commit-ID: 9SXSKTP9Twb

--HG--
extra : rebase_source : 1cec3d8e307c980e2634fdc43ff9333833cb5547
extra : source : 2fa3d4a310a6e5765ee51cd3115013434d4662e5
2017-10-27 11:38:53 +08:00
Hiroyuki Ikezoe
40de7fdd1a Bug 1379564 - Make zeroDuration in AnimationEffectReadOnly::GetComputedTimingAt static const. r=birtles
MozReview-Commit-ID: 1fPRVuH2dCJ

--HG--
extra : rebase_source : 54e1c8ac1101fca13c7eeb4945c8ed1fd69f17f6
2017-07-10 16:36:28 +09:00
Hiroyuki Ikezoe
12c6f62e78 Bug 1379564 - Make BaseTimeDuration::Forever() constexpr. r=birtles
MozReview-Commit-ID: DFse9SD1taP

--HG--
extra : rebase_source : a23d92c8b959c7f680b06c223e266ff1646813b0
2017-07-10 16:21:34 +09:00
Hiroyuki Ikezoe
ef7ed06a84 Bug 1379564 - Use BaseTimeDuration::bool() to check the TimeDuration is not zero. r=birtles
In TimingParams::CalcActiveDuration(), we intentionally use IsZero() instead
of the bool() operator since the value |aDuration| is Maybe<StickyTimeDuration>
, it's easily misread as Maybe::bool().

MozReview-Commit-ID: D5Nb7cxh7wi

--HG--
extra : rebase_source : e30fe73c5b02d09ab5116bcfc6ca20a902b13b75
2017-07-10 16:21:30 +09:00
James Cheng
004b993f6b Bug 1412736 - Extend the blacklist of disabling adaptive playback feature for Galaxy S4 SCH-R970 model. r=jolin
MozReview-Commit-ID: LfwcrdWtrDC

--HG--
extra : rebase_source : af2dcfc90cd60ff87b9aee70066ef455d3a1c6ae
2017-10-30 10:57:50 +08:00
Evan Tseng
1afc53a921 Bug 1409640 - Remove menulist-dropmarker's margin top and bottom values in preferences.css then the smaller values (in common.css) will be applied since the space for the drop marker image is too small. r=dao
MozReview-Commit-ID: FT5DslnUqkK

--HG--
extra : rebase_source : 6560c42b0db53784ee2be009401f833991b00fcd
2017-10-27 16:52:26 +08:00
DimiL
a814160005 Bug 1384753 - Add dummy login reputation service in reputationservice component. r=francois
Login reputation service is initialized during idle startup.

--HG--
extra : rebase_source : 4f5b9fb730432c3fdb56f811128499628b76345c
2017-10-26 11:27:17 +08:00
DimiL
34c0f59f0b Bug 1384753 - Move Application Reputation files into a new component. r=francois
--HG--
rename : toolkit/components/downloads/ApplicationReputation.cpp => toolkit/components/reputationservice/ApplicationReputation.cpp
rename : toolkit/components/downloads/ApplicationReputation.h => toolkit/components/reputationservice/ApplicationReputation.h
rename : toolkit/components/downloads/chromium/LICENSE => toolkit/components/reputationservice/chromium/LICENSE
rename : toolkit/components/downloads/chromium/chrome/common/safe_browsing/csd.pb.cc => toolkit/components/reputationservice/chromium/chrome/common/safe_browsing/csd.pb.cc
rename : toolkit/components/downloads/chromium/chrome/common/safe_browsing/csd.pb.h => toolkit/components/reputationservice/chromium/chrome/common/safe_browsing/csd.pb.h
rename : toolkit/components/downloads/chromium/chrome/common/safe_browsing/csd.proto => toolkit/components/reputationservice/chromium/chrome/common/safe_browsing/csd.proto
rename : toolkit/components/downloads/nsIApplicationReputation.idl => toolkit/components/reputationservice/nsIApplicationReputation.idl
rename : toolkit/components/downloads/test/unit/.eslintrc.js => toolkit/components/reputationservice/test/unit/.eslintrc.js
rename : toolkit/components/downloads/test/unit/data/block_digest.chunk => toolkit/components/reputationservice/test/unit/data/block_digest.chunk
rename : toolkit/components/downloads/test/unit/data/digest.chunk => toolkit/components/reputationservice/test/unit/data/digest.chunk
rename : toolkit/components/downloads/test/unit/data/signed_win.exe => toolkit/components/reputationservice/test/unit/data/signed_win.exe
rename : toolkit/components/downloads/test/unit/head_download_manager.js => toolkit/components/reputationservice/test/unit/head_download_manager.js
rename : toolkit/components/downloads/test/unit/xpcshell.ini => toolkit/components/reputationservice/test/unit/xpcshell.ini
extra : rebase_source : 0ee026299fbe2122f94588de63d46b3752bcf26d
2017-10-23 16:18:52 +08:00
Daosheng Mu
c32ea833f2 Bug 1406327 - Part 3: VRSystemManager for multi-threads; r=kip
MozReview-Commit-ID: 4bE5hruFcT2

--HG--
extra : rebase_source : 3aa00d81127c90974f00571bd89174bd62a9d117
2017-10-26 17:45:44 +08:00
Daosheng Mu
10a11e397e Bug 1406327 - Part 2: When loading VR content, launching the VR listener thread; r=kip
MozReview-Commit-ID: IyBzJyDEVdv

--HG--
extra : rebase_source : 415b474b94e3b71ac7cc111d4f59a820ebc8cae0
2017-10-26 17:28:37 +08:00
Daosheng Mu
f6e2fb5654 Bug 1406327 - Part 1: Shutdown VR listener thread when no VR content in seconds; r=dvander,kip
MozReview-Commit-ID: AnYJT8WBkI7

--HG--
extra : rebase_source : 373040a7e578e79c4b2ab2bbda8c155c77fdbbc5
2017-10-26 16:51:14 +08:00
gasolin
54175fc332 Bug 1404193 - enable customizable logo, speech bubble string, and hide the skip tour button;r=Fischer
MozReview-Commit-ID: 1VjDxOeYPem

--HG--
extra : rebase_source : 91dae4630d0876721d3641c7358cd959ba65efe4
2017-10-25 18:16:19 +08:00
Glenn Watson
e6bb904d2f servo: Merge #19054 - Update WR (driver bug fix, optimize DL writer) (from glennw:update-wr-drivers); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: f4cf5dceee2ad70ea5335573a04d756fc37c20a0

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : b14a373503afd5cf414255b9256b02068a89fcfb
2017-10-29 20:28:16 -05:00
Fred Lin
1e3e1ce1c7 Bug 1408539 - Onboarding Tour: update customize, library, and screenshot illustration;r=Fischer
MozReview-Commit-ID: KHab4CFeLdQ

--HG--
extra : rebase_source : 3047e5a301ca81a6ab3f32051bd4ec9416767506
2017-10-27 15:58:08 +08:00
btian
4ca4fdd5ff Bug 1404842 - P4: Revise expected test results under other folders, r=smaug
MozReview-Commit-ID: 4SSW3ZLKHMy

--HG--
extra : rebase_source : ea01062b2757f76dab29dd9b0b26644a1d07bfd8
2017-10-27 16:08:05 +08:00
Ben Tian
78f8319b33 Bug 1404842 - P3: Revise expected test results under css, r=smaug
MozReview-Commit-ID: 2hhPCLgDULy

--HG--
extra : rebase_source : 744b7fca73ef67633d6994d4bf2fd7af4a1f5e3c
2017-10-19 17:21:46 +08:00
Ben Tian
1c93de35e9 Bug 1404842 - P2: Revise expected test results under shadow-dom, r=smaug
MozReview-Commit-ID: IYfyAa7h4JN

--HG--
extra : rebase_source : 95837a286a77514901257d906c6d4a355b1e92e9
2017-10-19 18:06:12 +08:00
Ben Tian
a4fe26d361 Bug 1404842 - P1: Implement Element.attachShadow and Element.slot, r=smaug
MozReview-Commit-ID: KWy8mDqEw4o

--HG--
extra : rebase_source : d8378628b8f7028f6b3600c5abd20dc4fc6a9ccb
2017-10-19 14:44:35 +08:00
Hiroyuki Ikezoe
c3948ad723 Bug 1379515 - Set layout.reflow.synthMouseMove false to avoid synthetic mouse move. r=birtles
The synthetic mouse move flushes animation styles during running test cases on
Linux, it breaks these tests!

MozReview-Commit-ID: DOT7m3fhrZi

--HG--
extra : rebase_source : 6fe04028073277276df9ae4a24ad62f9e4419d5c
2017-10-30 09:50:27 +09:00
Hiroyuki Ikezoe
dee2a02766 Bug 1379515 - Run test_restyles.html in content. r=birtles
MozReview-Commit-ID: 7PPYQYBIo5Y

--HG--
rename : dom/animation/test/chrome/test_restyles.html => dom/animation/test/mozilla/file_restyles.html
extra : rebase_source : 24990119842e92362e123b51519bfec773e0a392
2017-10-30 09:49:32 +09:00
Hiroyuki Ikezoe
ddb1e94651 Bug 1379515 - Propagate testharness functions only if we use testharness.js. r=birtles
We are going to use SimpleTest.js in the sub window.

MozReview-Commit-ID: HAAMnY7xDNn

--HG--
extra : rebase_source : 3600376a992abf5e1e55baba99bff1a656afdaa6
2017-10-30 09:49:29 +09:00
Hiroyuki Ikezoe
886e45f39e Bug 1379515 - Make test cases that use synthesizeWheelAtPoint proper. r=birtles
We shouldn't call synthesizeWheelAtPoint() in an rAF callback and observe
animation restyle makers there since we might end up observing an animation
restyle maker which is brought by flushing throttled animation styles for
hit-testing caused by the wheel event.  Now we have sendWheelAndPaintNoFlush
which does not flush any styles before sending the wheel event, we use it.

MozReview-Commit-ID: 6WP2ExA7fAv

--HG--
extra : rebase_source : a2a5cea00fbe431dea8096b584a9f82c658158aa
2017-10-30 09:49:23 +09:00
Hiroyuki Ikezoe
2fa9a3a408 Bug 1379515 - Add another variant of sendWheelAndPaint but without flushing layout for obtaining target element position before sending the wheel event. r=smaug
MozReview-Commit-ID: 6jyYjVhHXjM

--HG--
extra : rebase_source : f924e0060b2a397b00a827d8f3a8365903982f9b
2017-10-30 09:43:20 +09:00
Hiroyuki Ikezoe
1ec24b403d Bug 1379515 - Change a child element position to be able to move into view of the parent by mouse wheel. r=birtles
Before this patch the child element actually did not move into the view and
observed an unrelated restyle maker.  In the next patch we fix the observation
of the unrelated restyle maker.

MozReview-Commit-ID: 1DejqwF6hJg

--HG--
extra : rebase_source : ea6d6a48043f1b2a52ddedcbc41c321624a723d2
2017-10-30 09:43:04 +09:00
Hiroyuki Ikezoe
886e615302 Bug 1379515 - Unify test cases that checks animation are/were in scrolled out elements. r=birtles
It much makes more sense to check the animation in out-of-view is throttled
and unthrottled once it got visible in a single test.

MozReview-Commit-ID: AZY5Xc0cbDF

--HG--
extra : rebase_source : bcdf999ee10283853c7b0bda8f450a53990a0e1c
2017-10-30 09:42:56 +09:00
Bryce Van Dyk
822e6a7a58 Bug 1367955 - Remove onended handler during ended handling to avoid video.ended race issues. r=pehrsons
Bug 1386489 means that ended is not reliably set in relation to the test
seeking machinery. This results in the following behaviour being possible:
- seekToNextFrame seeks to last frame
- the seek promise resolves and invokes check to see if video has ended
- ended is not yet set (race), so another seekToNextFrame is setup
- onended handler is invoked at some point (1st time)
- seekToNextFrame seeks again, remains at last frame
- oneended handler is invoked again due to the seek (2nd time)
- finish() has been called twice

This changeset should bandaid the above being possible.

MozReview-Commit-ID: BkskWUnaJQ9

--HG--
extra : rebase_source : 0108cf82a805136a87752d0128c1c0f2e7997ff6
2017-10-27 08:32:12 +13:00
Mike Hommey
5b2f666e8a Bug 1412235 - Be consistent about the magic number assertions in mozjemalloc. r=njn
- First, MOZ_DIAGNOSTIC_ASSERT_ENABLED is always true when MOZ_DEBUG is
  set, so don't check for MOZ_DEBUG.
- Second, all the magic number assertions should be
  MOZ_DIAGNOSTIC_ASSERTs instead of MOZ_ASSERTs.

--HG--
extra : rebase_source : 5601cd13604e21c46a9f0ad8b0b4d6fc399b853e
2017-10-27 17:29:12 +09:00
Mike Hommey
7fca98c0c3 Bug 1412234 - Make all allocator API entry points handle initialization properly. r=njn
Some need initialization to happen, some can be skipped when the
allocator was not initialized, and others should crash.

--HG--
extra : rebase_source : d6c2697ca27f6110fe52a067440a0583e0ed0ccd
2017-10-27 17:25:18 +09:00
Mike Hommey
5b0f50a0fc Bug 1412234 - Make malloc_init return whether the allocator was successfully initialized. r=njn
--HG--
extra : rebase_source : 744ffd666b626059197bebf90acfe3fd670847d4
2017-10-27 17:05:47 +09:00
Sebastian Hengst
794abc6fba merge mozilla-central to autoland. r=merge a=merge 2017-10-29 23:01:08 +01:00
Sebastian Hengst
a6ee12714b Bug 1365425 - [bn-BD] Add search engine setup for Firefox Mobile for Bengali (Bengladesh): Replace 'ddg' with 'duckduckgo' to fix bn-BD Fennec L10n nightly. r=nightly-fix a=nightly-fix
MozReview-Commit-ID: 8eJYHVajz3o
2017-10-29 22:56:44 +01:00
Sebastian Hengst
f55fb22829 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 9Vo6y3ECMme
2017-10-29 22:53:09 +01:00
Sebastian Hengst
251c6478de merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: AgOQA5cp8C2
2017-10-29 22:50:47 +01:00
ffxbld
8af3c26b61 No bug, Automated HPKP preload list update from host bld-linux64-spot-033 - a=hpkp-update 2017-10-29 11:34:19 -07:00