Граф коммитов

66368 Коммитов

Автор SHA1 Сообщение Дата
Kevin Chen 9fa0238d13 Bug 1362321 - Do not crash in gfxPlatform:Init if there is a TDR happening; r=bas
MozReview-Commit-ID: 9gJCErHosg1

--HG--
extra : rebase_source : 6fc0e95b18ee795f2571d82ca81f3a72970142b3
2017-08-09 18:00:01 +08:00
Sebastian Hengst c5b98b786f merge mozilla-central to autoland. r=merge a=merge on a CLOSED TREE
--HG--
extra : amend_source : 138539eda803df4aa7fa2d161e78ad36cf3f55ef
2017-08-23 16:31:21 +02:00
Sebastian Hengst 99e5cb9c14 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: GSKVB94r7Kk
2017-08-23 16:29:51 +02:00
James Cheng d2336908c9 Bug 1392976 - Do not assert IsOnMessageLoopThread() in ChromiumCDMChild::GetCurrentWallTime(). r=cpearce
MozReview-Commit-ID: Je4uTzFtLih

--HG--
extra : rebase_source : d602bc311d5bbddc1563c4d637f7e513b4efae8d
2017-08-23 17:40:14 +08:00
Makoto Kato fa46fdd1ad Bug 1348073 - Part 1. MoveCaret should move caret when focus node is whitespace only even if it is no frame. r=jfkthame
When enabling lazy frame construction, whitespace only node might not have frame.  So editor/libeditor/tests/test_bug1315065.html is failure because nsFrameSelection::MoveCaret returns error since focus node is whitespace only node that has no frame.

So if focus node is whitespace only, we should promote to parent to get primary frame then try again.

MozReview-Commit-ID: K83T2LP3Pc5

--HG--
extra : rebase_source : 707584424e83574dd3151e12a915473f676ce5a0
2017-08-23 19:09:07 +09:00
Emilio Cobos Álvarez 1e6e97fed1 Bug 1389743: Only reconstruct frames synchronously from ContentRemoved when called from frame construction. r=mats
There's only one case of sync frame construction from ContentRemoved now, and
it's not on the element being removed, but on the whitespace siblings if needed,
and _only_ when they don't support lazy frame construction.

Basically, this switches all the RecreateFramesForContent calls to use
`aAsyncInsert` (which I changed to an enum class for readability), except when
we're already reframing.

Also, it switches ReframeTextIfNeeded to opt-in into lazy frame construction,
since it's used only when aFlags == CONTENT_REMOVED.

This allows to simplify the DestroyFramesFor API (which I'm happy to rename to
something more meaningful, since now it's something like
DestroyFramesForAndRecreateThemAsync), and do some other consistency cleanups.

A bunch of the ContentRemoved callsites were pretty random at passing
aAsyncInsert, and that was some kind of a mess. This patch ensures consistency,
and makes it impossible to do O(n^2) work when removing DOM nodes, which is
nice.

The underlying reason for this is explained in the description of bug 1377848,
and basically allows us to remove a bunch of Servo hacks on the longer term (a
few of them are going away already, yay!).

MozReview-Commit-ID: 2DrUTxGV8RX

--HG--
extra : rebase_source : f428d839a5482477dea22c0fea600d54f3e8799c
2017-08-23 09:58:57 +02:00
Bobby Holley 7210bd7226 Bug 1383332 - Track the restyle root and use it to do less work during the traversal. r=emilio
MozReview-Commit-ID: A8O3JOpsv4E
2017-08-22 21:19:24 -07:00
Xidorn Quan dd29c6636a Bug 1370779 - Bump version of cssparser.
MozReview-Commit-ID: Atb37wr8iMA
2017-08-23 13:04:03 +10:00
Tom Tung 3eb6957b71 Bug 1328398 - Add telemetry to measure service worker launch time. r=bkelly,francois datareview=francois
This patch is mainly to add a probe to measure sw launch time. To do this, this
patch records the sw launch time when the sw is just spwaned and it's ready to
handle the incoming fetch event.

MozReview-Commit-ID: 3w5MNyhQNnd

--HG--
extra : rebase_source : 3228213d0ea6be1d23b9c49382f1f8d3c2f358f1
2017-08-17 18:32:36 +08:00
Wes Kocher 655a23a70a Merge m-c to autoland, a=merge
MozReview-Commit-ID: CxIXNml1xZW
2017-08-22 17:24:16 -07:00
Wes Kocher 6dd42e2664 Merge inbound to central, a=merge
MozReview-Commit-ID: BMWuqvmTljV
2017-08-22 17:07:23 -07:00
Honza Bambas 51907c6b32 Bug 1388448 - Logs for better network requests and context tracking. r=mcmanus 2017-08-17 12:16:00 -04:00
Masatoshi Kimura 5f035965ac Bug 1390209 - Remove unused nsIDOMHTML*Element interfaces. r=qdot
MozReview-Commit-ID: DagD3IHhRZy

--HG--
extra : rebase_source : 2add5ad8e9181ba9bf29f53a6df75b730ab5ea78
2017-08-15 01:31:47 +09:00
Jean-Yves Avenard 33058da3e1 Bug 1347518 - P2. Don't attempt to determine frame type when encrypted. r=cpearce
The data being encrypted, is nonsensical. So we always rely on the container information

MozReview-Commit-ID: 4uQ9l3Q1Ebl

--HG--
extra : rebase_source : 675f9d23d73765387735212f8894235d5ba668e5
2017-08-21 18:54:44 +02:00
Stone Shih 3c63a111d2 Bug 1389314 Part4: Disable the input priority event when shutting down. r=smaug.
MozReview-Commit-ID: CWV1kr3xMQL
2017-08-02 16:53:04 +08:00
Stone Shih fca19b3588 Bug 1389314 Part3: Temporarily disable the input priority events when dnd is active. r=smaug.
MozReview-Commit-ID: AWfYmhjjsq0
2017-08-02 15:23:35 +08:00
Stone Shih 2c638fc04f Bug 1389314 Part2: Support enabling and disabling the input priority events in runtime. r=smaug.
MozReview-Commit-ID: 3a2TNVqguVb
2017-07-28 15:14:54 +08:00
Stone Shih 60d437ddc2 Bug 1389314 Part1: Rename event prioritization to input event queue. r=smaug.
MozReview-Commit-ID: 7wPWYwIjIet
2017-07-27 16:20:01 +08:00
Jeff Gilbert 2e973d35a6 Bug 1330433 - OES_texture_float_linear+WebGL2 should make R32F and RG32F filterable. - r=daoshengmu
MozReview-Commit-ID: LFv8Daa6Taj
2017-08-23 01:55:30 -07:00
Christoph Kerschbaumer 2ae1ae3098 Bug 1387871 - CSP: Test 'self' within meta csp in data: URI iframe. r=dveditz 2017-08-23 09:50:20 +02:00
Christoph Kerschbaumer 79a239cba5 Bug 1387684 - CSP: Special case 'self' for unique opaque origins. r=dveditz 2017-08-23 10:05:12 +02:00
Bevis Tseng 09f48a33cf Bug 1392195 - Label PContentPermissionRequest actor. r=billm
--HG--
extra : rebase_source : 0ae882125c89bf44ccce29eb6930b119584247b0
2017-08-21 17:06:05 +08:00
btian 0610efa5fc Bug 1384661 - Part 3: Invalidate cached child array when list of children changes. r=smaug 2017-08-18 11:56:38 +08:00
btian 2683456670 Bug 1384661 - Part 2: Add class nsParentNodeChildContentList. r=smaug 2017-08-21 16:11:56 +08:00
btian 05a1fd9f6a Bug 1384661 - Part 1: Rename class nsChildContentList to nsAttrChildContentList. r=smaug 2017-08-11 10:12:17 +08:00
Wes Kocher 168eaceb20 Merge m-c to inbound, a=merge
MozReview-Commit-ID: IHPBV4z9vPi
2017-08-22 17:14:32 -07:00
Ehsan Akhgari 67ac6e84f7 Bug 1385530 - Avoid addrefing the presshell in Selection::ScrollIntoView() for the asynchronous scrolling case; r=mats 2017-08-22 19:33:13 -04:00
bechen@mozilla.com 69fdded22d Bug 1374183 - Add a reftest to verify seeking to 0.466667 of street.mp4 should be the 15th frame. r=alwu
MozReview-Commit-ID: 39UUIkoH38S

--HG--
extra : rebase_source : b82e4bc3c2da305e4eaaa0c4dfb49b8825d2fa0c
2017-08-22 14:12:12 +08:00
J.C. Jones e5ca3874f4 Bug 1392366 - WebAuthn must use the WebCrypto SHA-256 algorithm identifier r=keeler
WD-05 changed the "hashAlg" parameter of the CollectedClientData definition
from using an internally-defined "S256" string to identify the sha256 digest
to the definition in WebCrypto [1]. This only appears once, hard-coded in
WebAuthn (since U2F only supports SHA-256), so we need to change that one
instance.

[1] https://www.w3.org/TR/WebCryptoAPI/#sha-registration

MozReview-Commit-ID: 8de2CIGBBGA

--HG--
extra : rebase_source : e54c0d1f3f9551be48c3a72444edf62c45c647c4
2017-08-21 12:06:15 -07:00
Masayuki Nakano 2eff2ba40d Bug 1392181 - part1: nsTextFragment::SetTo() shouldn't use CheckedInt r=smaug
nsTextFragment::SetTo() may be hot path of performance test but it needs to be
careful for computing allocation size.  However, nsTextFragment uses uint32_t
with only 29 bits to store its text length and using CheckedInt sometimes causes
appearing CheckedInt in profile.  So, using CheckedInt in it doesn't make sense
(and also wrong).

This patch defines NS_MAX_TEXT_FRAGMENT_LENGTH and make SetTo() check the length
of new text by itself.

MozReview-Commit-ID: 5zHtU1Kk6X2

--HG--
extra : rebase_source : e9aecc6b721bb5211ccc1194e027343ef090e2c2
2017-08-21 17:23:41 +09:00
Aryeh Gregor b7375b6f60 Bug 834209 - Return HTMLCollection from HTMLDocument named getter; r=bkelly
The spec says HTMLCollection, and this appears to be what all other
browsers do.

https://html.spec.whatwg.org/#dom-window-nameditem
https://html.spec.whatwg.org/#dom-document-nameditem

MozReview-Commit-ID: 87aABNaQmiz

--HG--
extra : rebase_source : dfc6e445fd00d718632464357727be378da41e6c
2017-08-20 17:20:24 +03:00
Aryeh Gregor 1b3b415680 Bug 1389421 - Support nonce IDL property; r=ckerschb,smaug
We already support the actual functionality, but nobody added support
for the IDL property to the .webidl file.

Also added <style nonce> to the web-platform-tests reflection tests,
since nobody updated that to the current spec either.

This does not add support for .nonce to SVGScriptElement, because I
couldn't find any standard that specified it.  I updated the wpt tests
to expect .nonce to work on HTMLScriptElement but not SVGScriptElement.

MozReview-Commit-ID: F1K7WMfMoDi

--HG--
extra : rebase_source : 247c63b63446dc0d60062bb9d9c61228c379b989
2017-08-21 14:49:44 +03:00
Sebastian Hengst 2f56a032cd merge mozilla-central to autoland. r=merge a=merge 2017-08-22 11:50:08 +02:00
Sebastian Hengst 75955d0246 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 8fJX1xXgzhD
2017-08-22 11:49:04 +02:00
Ting-Yu Lin c7dc325aed Bug 1388165 - Clear mPresContext after creating XBL styleset. r=xidorn
MozReview-Commit-ID: VBmKMTt8lc

--HG--
extra : rebase_source : e2b16da8f3d9c55a1485558f76285dc10c39b530
2017-08-22 14:46:25 +08:00
Nicholas Nethercote ac72ddb583 Bug 1390760 - Measure ServoComputedData::visited_style. r=bholley.
For the Obama wikipedia page, this covers about 85% of the unmeasured
ComputedValues structs. The about:memory output looks like this:

> +---2,443,648 B (02.41%) -- computed-values
> |   +--1,088,272 B (01.07%) -- dom
> |   +----945,744 B (00.93%) -- non-dom
> |   +----409,632 B (00.40%) -- visited

I'm not sure why some CVs are still being missed.

MozReview-Commit-ID: 1bYWwSi4ihn

--HG--
extra : rebase_source : 14e4bd36a54bbbd8fd265f559704bec5a5e3b154
2017-08-21 16:07:16 +10:00
Wes Kocher 02a5ad9edd Merge m-c to inbound, a=merge
MozReview-Commit-ID: dovwD1TzZR
2017-08-21 17:10:59 -07:00
Wes Kocher 88c4efea2a Merge inbound to m-c a=merge
MozReview-Commit-ID: 7PZEeFIzle5
2017-08-21 16:39:56 -07:00
Nicholas Nethercote 8a72cf2251 Bug 1390428 (part 2, attempt 2) - Remove more nsXPIDLCString local variables. r=erahm.
--HG--
extra : rebase_source : 69d58b0cfb56efc6b03d8e2d7be2ce3c3e6cd843
2017-08-21 20:01:27 +10:00
Jan Beich 434eece1c8 Bug 1391993 - plugins: Fix -Wunreachable-code-return in PluginInstanceChild.cpp for non-OSX. r=kats
MozReview-Commit-ID: 9qIndwc8G0N

--HG--
extra : rebase_source : e58c1f2d2980f2fd6a29e5e053dcf0ec2130c3ca
2017-08-19 18:05:42 +00:00
JW Wang 2834911596 Bug 1391170 - lessen the assertion in AddMediaElementToURITable() so we can move MediaDecoder::GetResource() to private. r=gerald
If AddMediaElementToURITable() is called after the decoder Load failed, mDecoder
will be reset and it is sufficient to assert mDecoder only.

MozReview-Commit-ID: 58WT8zFeiFj

--HG--
extra : rebase_source : 712579b544e9a9ce971778b85795d06e58bd4ea5
extra : intermediate-source : 470e2d8a20010e11d7a7dce5540957e89439811e
extra : source : 59f4b2b33212794aa1cf3e8782737a2d4af8c241
2017-08-17 15:41:22 +08:00
Kaku Kuo d824321d11 Bug 1388309 - let VideoDecoderChild::InitIPDL() return false if we don't want to decode video on GPU process; r=mattwoodrow
MozReview-Commit-ID: DD7xVkXT6fk

--HG--
extra : rebase_source : 0db172786e24d358640112e6a3461e8308103665
extra : intermediate-source : ce7e905e0ef5fdbc584c1e63cc6b62df9d566ec4
extra : source : 546c8abe515b4fc887d355c165643862346aff78
2017-08-14 18:03:12 +08:00
Francesco Lodolo (:flod) 95bcdec305 Bug 1391933 - Fix localization issues in Kill Add-on dialogs, r=kmag
Changes originally landed in bug 1356334:
* Removed SUMO link as a localizable string.
* Updated SUMO link: removed "en-US" from link and "cache" parameter.
* Use ordered placeholder instead of %S.
* Fix typo ("responsing").
* Use "extension" instead of "add-on" in DOM strings for consistency.
* Removed period from KillAddonScriptGlobalMessage, since it's a checkbox.

MozReview-Commit-ID: 5IFH2ruISZb

--HG--
extra : rebase_source : a0e84e5338b22e39c0f629c89b4d4b42b3d6bcbe
2017-08-20 10:52:32 +02:00
JW Wang 41cd273f4e Bug 1391142. P3 - remove IsLiveStream() from MediaResource. r=gerald
MozReview-Commit-ID: DBFrYfj2lGB

--HG--
extra : rebase_source : 18532f55f38c5ac54660c11f078741e09273a30a
extra : source : 0e45bca0cdc0b2428216e6c9a55f8651e5b21017
2017-08-17 15:20:40 +08:00
JW Wang b8ff3673d9 Bug 1391142. P2 - remove MDSM::mResource and related functions. r=gerald
MozReview-Commit-ID: 4od7b8YNrMh

--HG--
extra : rebase_source : 2a471cc2e8049f98e65b96af626a00de4e4919f4
extra : source : a8dd8625a688555448cdc4c5429a23278e3e21c4
2017-08-17 11:52:29 +08:00
JW Wang b5f3c097c3 Bug 1391142. P1 - dispatch IsLiveStream changes from MediaDecoder to MDSM. r=gerald
This allows us to remove the dependency on MediaResource from MDSM in P2.

MozReview-Commit-ID: I46fWXfnGQK

--HG--
extra : rebase_source : 4808c7218d8c48c7425da16fadf4fd748cb2932f
extra : source : 10ac012e4c252438db1f64bb57dff181aff42a65
2017-08-17 11:48:08 +08:00
Honza Bambas 2f9f6408e0 Bug 1053321 - Correctly pass info about 'defer' and 'async' attributes to HTML5 parser invoked script preload. r=bkelly 2017-08-19 05:35:00 -04:00
Gabor Krizsanits 60d53ef3a0 Bug 1391363 - This test should be only disabled for non-e10s. r=me 2017-08-18 12:25:58 +02:00
Sebastian Hengst 02a34cdd40 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-08-21 13:43:53 +02:00
Paul Adenot a202254933 Bug 1388243 - r=jesup
MozReview-Commit-ID: Jexghw0QFrB

--HG--
extra : amend_source : 624073ea6dc7c13728945a0feebf10f891c33174
2017-08-21 11:56:13 +01:00