Commit Graph

62922 Commits

Author SHA1 Message Date
Wes Kocher
02015c2300 Merge m-c to autoland a=merge CLOSED TREE
MozReview-Commit-ID: 5T8pxvbfKXv
2017-05-10 17:29:04 -07:00
Emilio Cobos Álvarez
68f1504992 Bug 1355343: Take all the snapshots into account. r=bholley
I've chosen this approach mainly because there's no other good way to guarantee
the model is correct than holding the snapshots alive until a style refresh.

What I tried before this (storing them in a sort of "immutable element data") is
a pain, since we call into style from the frame constructor and other content
notifications, which makes keeping track of which snapshots should be cleared an
which shouldn't an insane task.

Ideally we'd have a single entry-point for style, but that's not the case right
now, and changing that requires pretty non-trivial changes to the frame
constructor.

MozReview-Commit-ID: FF1KWZv2iBM

--HG--
extra : rebase_source : b02d516ea164fc567110338411bf6ba251d53dab
2017-05-07 16:36:47 +02:00
Tom Tung
150ceb8855 Bug 1348050 - Part 4: Mark channel as urgent-start for loading media. r=baku
The part is mainly to set urgent-start for loading media when it's initiated by
user interaction. For the HTMLMedia element, it has its algorithm to pre-load
the media and users will get feedback once they play the media. Thus, I only
set urgent-start when the media element has autoplay attribute since the sooner
enough resource is loaded the sooner the media will be played.

MozReview-Commit-ID: 7nu3PUt8iYo

--HG--
extra : rebase_source : f1abfecdccb74f4ec79a057534c2e9a1bfd5ae41
2017-04-28 15:27:10 +08:00
Ryan VanderMeulen
fad3aeb3a3 Merge m-c to autoland. a=merge 2017-05-11 09:34:04 -04:00
Fernando Jimenez Moreno
74d09d6ab3 Bug 1361994 - Part 1: Add separate CSSDocumentRule class. r=xidorn
MozReview-Commit-ID: DMDOHvBWLHX

--HG--
extra : rebase_source : 5602924c03eb0821d304bae264f73f1db7ea8591
2017-05-11 14:11:15 +02:00
Fernando Jimenez Moreno
a78f5fdae0 Bug 1361994 - Part 0: Add MOZ_DOCUMENT to nsIDOMCSSRule. r=xidorn
MozReview-Commit-ID: HoqiuW6l9QB

--HG--
extra : rebase_source : e574e36b50a28bc135c6d5a48e121466d3cbd1d6
2017-05-11 14:11:15 +02:00
Bobby Holley
de6dd624ed Bug 1363375 - Pack nsINode better on 64-bit and stop conditionally compiling mServoData. r=smaug 2017-05-11 13:51:28 +02:00
Bobby Holley
4c9431ce8a Bug 1363375 - Add static assert for element sizes on 64-bit. r=smaug 2017-05-11 13:51:28 +02:00
JW Wang
2c2b5b8639 Bug 1362910. P3 - add a gtest to test move-only types with MozPromise. r=gerald
MozReview-Commit-ID: 5LP7POyxNt3

--HG--
extra : rebase_source : a394993f55180c115c8f5ea7192dfa5ee75b69ea
extra : source : 531a38af11fcb704c1b3c5f5e0856b11b0cc2da3
2017-05-11 11:51:58 +08:00
JW Wang
4018e22ad9 Bug 1362910. P2 - fix callers. r=gerald
Since RefPtr<T>&& can't be converted to T* implicitly, we need to change
T* to RefPtr<T> in resolve/reject callbacks to make it compile again.

We should review the changes later to look for the opportunity to
optimize away unnecessary AddRef/Release pairs.

MozReview-Commit-ID: 22rHQ8dhxJv

--HG--
extra : rebase_source : 1b09f353d6e86d60c93a2746333585ec0dba8526
2017-05-11 08:30:39 +08:00
Hiroyuki Ikezoe
2cdc2fb924 Bug 1356916 - Update reftest expectations. r=heycam
MozReview-Commit-ID: 93fi2Z5ZPtE

--HG--
extra : rebase_source : 15353de0bd02c4dd343936aec6f62e1836fc123b
2017-05-11 07:55:27 +09:00
Makoto Kato
66f56b4e7d Bug 1360154 - Part 2. Add fast path to check whether valus is emtpy. r=masayuki
Actually, we use GetValue to check whether value is empty or not for placeholder.  But since GetValue uses TextEditor::OutputToString when on editor, it is expensive.  Since editor has DocumentIsEmpty method, we should use it for this case.

MozReview-Commit-ID: rQX8yjnWQz

--HG--
extra : rebase_source : 25ec89385d704f5c4d2d0a15021c2a59b0201983
2017-05-11 14:04:18 +09:00
Kartikaya Gupta
9e5e792b0f Back out bug 1353060 (3 csets) for possibly causing a checkerboarding regression. r=backout
MozReview-Commit-ID: AIHvzAUUCeu
2017-05-09 13:23:20 -04:00
Tom Tung
0e308b0c4f Bug 1348050 - Part 3: Mark channel as urgent-start for loading image. r=baku,mayhemer
This part is mainly to mark the channel as urgent-start if src related
attributes in HTMLImageElement and HTMLInputElement is set and the channel is
open due to user interaction. Unfortunately, we cannot just check the event
state just after creating channel since some loading image tasks will be queue
and execute in stable state. Thus, I store the event state in elements and
pass it to the place where create the channel.

MozReview-Commit-ID: GBdAkPfVzsn

--HG--
extra : rebase_source : 715352317b4b600f8a7f78b7bc22b894bb272d27
2017-04-25 09:17:38 +08:00
Tom Tung
a93ae19e1d Bug 1348050 - Part 2: Create a chrome mochitest for Fetch and XHR to ensure we set the urgent-start flag only when they are triggered by user input events. r=baku,mayhemer
Create a test to guarantee current behaviors. We should only set urgent-start
when it is triggered by user input events rather the other events or no any
events.

MozReview-Commit-ID: 1ehiD3ua5Kl


MozReview-Commit-ID: H6bL8PpzijJ

--HG--
extra : rebase_source : ae66b05eded40907d690ac69ea37a739413b9e51
2017-04-25 17:37:22 +08:00
Milan Sreckovic
725d1c193f Bug 1358297: Part 3. Create special case for stripping CR and LF on TSubstring, and use it in all the places that it is called. Use ASCIIMask to make it fast. r=froydnj
MozReview-Commit-ID: 5ugh3Ma0OtH

--HG--
extra : rebase_source : 956a7a0535c3b7433fadfa65d0cfc26d9915f61a
2017-05-10 13:12:36 -04:00
Ralph Giles
708b853aaa Bug 1363500 - Remove TestMP4Reader. r=jya
The MP4Reader class was removed in bug 1163486, replaced
by MediaFormatReader combined with MP4Demuxer. Bug 1175752
disabled the corresponding gtest, but as the underlying
object is gone, the test should be removed instead.

MozReview-Commit-ID: 7mU4Q98LtKA

--HG--
extra : rebase_source : 10b20e749321a50bac708c493badbdf32b41f859
2017-05-09 12:03:07 -07:00
Ralph Giles
f56cb16c14 Bug 1336153 - Remove MOZ_RUST. r=ted
We now have code that unconditionally requires the rust
compiler and are committed to adding more. Remove this
last vestige of conditional support.

MozReview-Commit-ID: EK6FBnAbR

--HG--
extra : rebase_source : 6efda10a74f9ca0482304c2b1ffe6941e42138f8
2017-05-09 11:36:13 -07:00
Alastor Wu
acab9ac022 Bug 1357633 - part1 : request audio focus again when resume media from page. r=baku
Should also update audio playing changed after resumed from page.

MozReview-Commit-ID: 66vuJJFeWN3

--HG--
extra : rebase_source : 06802b2e49f5e712a1d9fd34d4ae017995faaa75
2017-05-10 23:43:11 +08:00
Masayuki Nakano
b56195251f Bug 1363278 Get rid of nsIPhonetic and HTMLInputElement.phonetic r=smaug
Nobody uses them anymore.  Therefore, we can remove them from the tree.

MozReview-Commit-ID: KTqCeI2eeFW

--HG--
extra : rebase_source : f3fc274f39c135af51245efd4c4aebbc4c49a61f
2017-05-09 16:27:08 +09:00
Tom Tung
b1a0b88c98 Bug 1348050 - Part 1: Mark channel as urgent-start when the Fetch and XHR are triggered by user input events. r=baku,mayhemer
Raise the urgent-start flag in the ClassOfService when the Fetch and XHR are
triggered by user input events. The urgent-start classification will tell the
network requests scheduler to perform it with the highest priority and also
ignoring any parallelism or overall connection limits.

MozReview-Commit-ID: 2YavWbuFaln

--HG--
extra : rebase_source : 40f41d1a4b9e323c0cf5710c6d5f2a1e45e93076
2017-04-21 13:29:31 +08:00
Chris Pearce
59c8ad9b72 Bug 1363605 - Widevine should support SW_SECURE_CRYPTO video robustness. r=gerald
Turns out that Chrome treats the robustness values as SW_SECURE_DECODE to mean
that SW_SECURE_CRYPTO is also supported. So we'd better follow suit...


MozReview-Commit-ID: 6J68IsSQhyL

--HG--
extra : rebase_source : 08baf83f0812f52670f1643e7e86ced0a0972f64
2017-05-10 16:00:21 +12:00
Xidorn Quan
fa9c49fce4 Bug 1330235 - Remove NS_STDCALL_FUNCPROTO and replace its usage with decltype. r=froydnj
MozReview-Commit-ID: 5jrTqTfDzSk

--HG--
extra : rebase_source : e2345a4f518757ed9760618d07599a60353875cc
2017-05-09 23:00:37 +10:00
Wes Kocher
e2902f93a3 Merge inbound to m-c a=merge
MozReview-Commit-ID: Fp2oBAcru51
2017-05-09 14:34:34 -07:00
Ray Lin
066b7e3af1 Bug 1340488 - Add a chrome-only previewValue attribute to <select> for showing preview text. r=baku,heycam
MozReview-Commit-ID: En8e0hO35Lj

--HG--
extra : rebase_source : aab314899af1e117feb8b3b047b4157682b570d3
2017-05-03 17:08:44 +08:00
Carsten "Tomcat" Book
2346aecbda Backed out changeset 656b4466e33b (bug 1340488) for Bustage in nsComboboxControlFrame.h 2017-05-09 16:54:26 +02:00
Ray Lin
08482ec01f Bug 1340488 - Add a chrome-only previewValue attribute to <select> for showing preview text. r=baku,heycam
MozReview-Commit-ID: En8e0hO35Lj

--HG--
extra : rebase_source : dbbfcf951520006144e04451844fbe2ea21a113f
2017-05-03 17:08:44 +08:00
Kris Maglione
bcc24533a6 Bug 1353060: Disable remote frameloaders in small popup widgets. r=kats
Since we now want to support APZ for remote frameloaders in popups, but do not
want to needlessly enable it in simple popup widgets which should never host
remote content, we need to prevent remote content from being loaded into those
popups.

MozReview-Commit-ID: WfjMC2p2eK
2017-04-17 13:45:08 -07:00
Kris Maglione
503713f913 Bug 1353060: Use the correct layer manager for frameloaders in <popup>s. r=kats,mattwoodrow
Currently, we only correctly support remote layer trees for frameloaders that
use the same layer manager as their document. Since we need to be able to host
remote <browser> content in popup widgets for remote WebExtensions, we need to
tie the frameloaders to the layer manager of their host element, rather than
the root layer manager for the document.

MozReview-Commit-ID: 4RCsamFBiQw
2017-04-17 21:41:18 -07:00
Sebastian Hengst
a5890afd0f Backed out changeset e0a52989a521 (bug 1352852) for timing out in dom/events/test/test_dragstart.html. r=backout 2017-05-11 18:07:41 +02:00
Michael Layzell
12717ff1a6 Bug 1352852 - Add dummy data to the DataTransfer when dragging a draggable object, r=enndeakin
When dragging a `draggable=true` HTML DOM node, if no data is added to the
DataTransfer during the DragStart event, we currently cancel the drag. This is
inconsistent with Chrome's behaviour.

This patch adds a chrome-only (hidden from content) item to the DataTransfer:
application/x-moz-dummy-data. This data is added only when no other data has
been added to the DataTransfer, and the target of the dragstart event was a
draggable=true HTML DOM node.

This hidden node allows for the drag event to complete successfully, while
appearing the same as Chrome's behavior to content scripts.

MozReview-Commit-ID: HVqEr7aR6DD
2017-05-11 10:09:14 -04:00
Lee Salzman
ed014c1f54 Bug 1340627 - part 8 - reftest fuzzing for update to Skia m59. r=mchang 2017-05-11 09:54:15 -04:00
Ryan VanderMeulen
8921035eb6 Merge m-c to inbound. a=merge 2017-05-11 09:33:18 -04:00
Shawn Huang
0deb22583d Bug 1362318 - Part2: Fallback override MIME type to application/octet-stream, r=baku
Set override MIME type to 'application/octet-stream', if type is not a parsable
MIME type.
2017-05-11 18:59:10 +08:00
Shawn Huang
c5dd1dadc2 Bug 1362318 - Part1: Use text/xml as fallback response MIME type, r=baku
If response MIME type is the empty byte sequence, then set type to 'text/xml'.
2017-05-11 18:59:00 +08:00
Carsten "Tomcat" Book
f40e5ddeb7 Merge mozilla-central to mozilla-inbound 2017-05-11 12:53:41 +02:00
Olli Pettay
11f1740840 Bug 1358832, don't flush layout when swapping frameloaders, r=bz 2017-05-09 18:48:09 +03:00
Munro Mengjue Chiang
c8de52fd2d Bug 1363261 - Remove a callId from mCallIds when the corresponding GetUserMediaTask is removed from mActiveCallbacks. r=jib
MozReview-Commit-ID: DcSQ8O9MoCb
2017-04-24 15:11:51 +08:00
Ryan VanderMeulen
5af348937a Bug 1362954 - Move some atoms outside of the ACCESSIBILITY guard to fix --disable-accessibility bustage. r=hsivonen 2017-05-09 10:33:21 -04:00
Andrea Marchesini
f4482d75a5 Bug 1360992 - RecvStreamReady() should be protected by mutex as any other method in IPCBlobInputStreamChild, r=qdot 2017-05-04 08:37:54 +02:00
Carsten "Tomcat" Book
76ca853e3e Merge mozilla-central to mozilla-inbound 2017-05-09 14:40:11 +02:00
Bevis Tseng
e51e1bdbb8 Bug 1362946 - Set SystemGroup EventTarget to ReleasingTimerHolder. r=baku
1. Label ReleasingTimerHolder with SystemGroup since ReleasingTimerHolder
   touches nothing related to the web content but releases the handle of
   the BlobImpl object.
2. Name ReleasingTimerHolder for telemetry.

--HG--
extra : rebase_source : dce59a96780f8b8accbfcc7e6fb981d8446365eb
2017-05-09 15:02:54 +08:00
Joel Maher
5e10562ae6 Bug 1360452 - Intermittent dom/media/test/test_background_video_resume_after_end_show_last_frame.html. disable on win/debug. r=kaku
MozReview-Commit-ID: Gtte0SbVEj2
2017-05-09 06:22:49 -04:00
Andrea Marchesini
93aa78bfde Bug 1363309 - Fix for an intermittent failure in dom/file/ipc/test/test_ipcBlob_fileReaderSync.html, r=me 2017-05-09 11:07:33 +02:00
Andrea Marchesini
40bc26c0ee Bug 1360807 - FileReaderSync must work with sync inputStream - part 4 - Base64EncodeInputStream needs a sync inputStream, r=smaug 2017-05-09 11:04:49 +02:00
Andrea Marchesini
64737e4496 Bug 1360807 - FileReaderSync must work with sync inputStream - part 3 - tests, r=smaug 2017-05-09 11:04:29 +02:00
Andrea Marchesini
30c1ec2e08 Bug 1360807 - FileReaderSync must work with sync inputStream - part 2 - nsIConverterInputStream needs a syncInputStream, r=smaug 2017-05-09 11:04:07 +02:00
Andrea Marchesini
4e5948b3f2 Bug 1360807 - FileReaderSync must work with sync inputStream - part 1 - SyncRead should read as much as required, r=smaug 2017-05-09 11:03:40 +02:00
Shawn Huang
001b63cc33 Bug 1350787 - DocGroup labeling runnables in dom/xhr, r=baku, f=bevistseng
This patch is to label the runnables dispatched to main thread of the
content process.
The major changes in xhr are to replace DispatchTo{Current,Main}Thread and
replace NS_DispatchToCurrentThread with |mWorkerPrivate->DispatchToMainThread|
in which a DocGroup-specific EventTarget on main thread for worker.
2017-05-09 16:14:51 +08:00
Emilio Cobos Álvarez
1da66ba5c4 Bug 1355343: Move node restyle bits to Element, and add bits for snapshot handling. r=bholley
MozReview-Commit-ID: 6OrUKX5RcBq
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>

--HG--
extra : rebase_source : 83b38b7d67ce739160d3bb0efc89ed6f8f43092d
2017-04-16 08:16:24 +02:00
Daniel Holbert
b216b7b0e8 Bug 1344398 part 2: React to some CSS 'overflow' changes on body/html by simply calling UpdateViewportScrollbarStylesOverride() instead of reframing. r=bz,tnikkel
MozReview-Commit-ID: Lpr9aNv9hAB

--HG--
extra : rebase_source : c8cccf8e6495ab1d57f9680c07b3e43a488e8691
2017-05-10 13:53:27 -07:00
Matt Brubeck
0c70ae6c1d Bug 1349651 - stylo: Implement HasAuthorSpecifiedRules. r=bholley
MozReview-Commit-ID: 8ta5KqKzncZ

--HG--
extra : rebase_source : 3ec29f283dc6bfec4d2a1676ab3f78296893d94b
2017-05-10 13:11:36 -07:00
Lie Ryan
70866b3ba5 Bug 1352572 - Remove unused code that implement NPN_PostURLNotify(file=true) and NPN_PostURL(file=true); r=bsmedberg
- Remove nsNPAPIPlugin.cpp:MakeNewNPAPIStreamInternal(file) parameter
- Remove nsPluginHost::PostURL(isFile) parameter
- Remove nsPluginHost::CreateTempFileToPost() unused function

MozReview-Commit-ID: 7bCBzGz9oSM

--HG--
extra : rebase_source : f59948b85e0da7baa9aec90878ebd6b76a5a3ca3
2017-04-12 14:28:50 +00:00
Lie Ryan
9db89db495 Bug 1352572 - Return NPERR_GENERIC_ERROR if plugin calls NPN_PostURLNotify(file=true); r=bsmedberg
NPN_PostURLNotify(file=true) is no longer supported in NPAPI.

MozReview-Commit-ID: 12JlYduC7R8

--HG--
extra : rebase_source : dc9bd752f74b727d003c1371211095bc6656b8d3
2017-05-06 07:27:08 +00:00
Lie Ryan
32b857541b Bug 1352572 - Add negative test for NPN_PostURLNotify(); r=bsmedberg
Note that this test never actually fails short of passing file parameter to
NPN_PostURLNotify actually causing the browser to crash. It can't distinguish
between the case when file is working or not.

MozReview-Commit-ID: 1G590ZWpHsE

--HG--
extra : rebase_source : c294bc109b893c81b6ee4c3114bb039eab77af08
2017-04-11 13:27:50 +00:00
Lie Ryan
d52bc4b27e Bug 1352572 - Implement nptest.cpp:streamTest(postFile) parameter; r=bsmedberg
This is an optional parameter that can be used to test streams via file. It may
be necessary to back out this change when NPAPI sandbox is completed as the
testplugin may no longer be able to access files.

MozReview-Commit-ID: FsYxhKKr4hS

--HG--
extra : rebase_source : 5ee413531b5b178c92a1d5cf5c2223e624e02296
2017-04-27 03:10:59 +00:00
Lie Ryan
3b84e93d4a Bug 1352572 - Fix misleading/incorrect comment in streamTest; r=bsmedberg
MozReview-Commit-ID: 7c8bLjMuqI2

--HG--
extra : rebase_source : 7bfa1cc78f638bccfaf65c6acac3eab0c01c2881
2017-04-09 16:05:10 +00:00
Lie Ryan
bdde925f5b Bug 1352572 - Return an NPERR_GENERIC_ERROR if plugin tries to call NPN_PostURL(file=true); r=bsmedberg
NPN_PostURL(file=true) is no longer supported in NPAPI.

MozReview-Commit-ID: IyLJSj4bKRR

--HG--
extra : rebase_source : f684a634c649eb3bae4f802f43fe810d3d88f96b
2017-04-08 16:48:47 +00:00
Lie Ryan
44dd9f66cc Bug 1352572 - Add support in nptest plugin to test NPN_PostURL(file=true); r=bsmedberg
MozReview-Commit-ID: BDifZ0vRdgj

--HG--
extra : rebase_source : a23a723e016d167a6ab735db463edc19a40a9c86
2017-04-27 11:17:52 +00:00
Lie Ryan
a8215361f6 Bug 1352572 - Fix buffer overflow in verbose debug log; r=bsmedberg
Sometimes ptrStreamBuffer may not be null-terminated and random memory
areas get printed out when running MOZ_LOG=Plugin:5,PluginNPP:5,PluginNPN:5

MozReview-Commit-ID: 4cyDhukl1Tx

--HG--
extra : rebase_source : 5e7b762d9634b8902f441143994a13d241e29ea0
2017-04-07 10:57:31 +00:00
Henry Chang
3f6c2504c6 Bug 1353159 - Use IPC_MESSAGE_SIZE2 to unify the expired IPC_MESSAGE_SIZE and MESSAGE_MANAGER_MESSAGE_SIZE2 r=billm
The new telemetry tag is for probing the best IPC message pre-allocate size to avoid
realloc overhead. We only count those message size which is greater than 4096.
This tag integrates IPC_MESSAGE_SIZE and MESSAGE_MANAGER_MESSAGE_SIZE2 which
have both expired.

MozReview-Commit-ID: GjvuidGJ7pz

--HG--
extra : rebase_source : 1da13b3f2b5b042d0445abd6051993e2fb317f93
2017-05-04 16:34:20 +08:00
btian
bc058622e6 Bug 1351795 - part 2: Remove console.markTimeline. r=baku
MozReview-Commit-ID: EmbscFp9oD4

--HG--
extra : rebase_source : 3f620c05faf82731d384dfca369db62ae8eb871e
2017-05-09 15:34:18 +08:00
btian
c28f35b424 Bug 1351795 - part 1: Remove console.timeline and timelineEnd. r=baku
MozReview-Commit-ID: DLoqGD5NDwt

--HG--
extra : rebase_source : 43b55175f9ba1671e8269a227078e205581c8f1c
2017-05-09 11:39:27 +08:00
Jean-Yves Avenard
ab282a14d4 Bug 1357040: P2. Don't rely on NotifyDataArrived to resolve MSE init promise. r=gerald
MozReview-Commit-ID: KUxVqfU9umw

--HG--
extra : rebase_source : c6f11109490fbb6fbfbda1b0fe2be1c8088ca4a2
2017-04-27 19:53:53 +02:00
Jean-Yves Avenard
f0cabce941 Bug 1357040: P1. Abort if demuxer initialisation isn't complete. r=jwwang
MozReview-Commit-ID: 9SSgQq272My

--HG--
extra : rebase_source : a9d0abfaefaf2861dfca58b328fdef46505a7aaf
2017-04-25 15:28:31 +02:00
Gerald Squelart
bc7b6779e4 Bug 1356138 - Backout bug 1337063 (Msg_GetGraphicsDeviceInitData opt) for Talos regression - r=dvander
MozReview-Commit-ID: LS1Gg1HRwKo

--HG--
extra : rebase_source : 8b20bc37b20feac4c0b590c8b286a9ee834646e2
2017-05-09 14:40:11 +12:00
Ho-Pang Hsu
1adbd519a1 Bug 1290951 - Part 4.2: Add a mochitest for an useless imported script after an update. r=bkelly.
--HG--
extra : rebase_source : e3069ff9a0a4955f3e6403955119746e25e7fcf0
2017-04-07 15:02:23 +08:00
Ho-Pang Hsu
d466693cc4 Bug 1290951 - Part 3.2: Tolerate missing imported scripts. r=bkelly.
--HG--
extra : rebase_source : 8b35a807eb9ded5116b8dc16855012d4cb8f5d2b
2017-05-04 01:38:52 +08:00
Ho-Pang Hsu
0eeb558276 Bug 1290951 - Part 3.1: Extend the bytecheck to imported scripts. r=bkelly
--HG--
extra : rebase_source : 637903d78e82ccbb7dfa93d2306ef3e1a22b6b99
2017-05-04 01:38:01 +08:00
Ho-Pang Hsu
49bbe28c16 Bug 1290951 - Part 2.8: Remove CompareManager::SetMaxScope() and CompareManager::SaveLoadFlags(). r=bkelly
--HG--
extra : rebase_source : d168ba55d3c984f54db374223697385d8e573a13
2017-05-04 01:36:59 +08:00
Ho-Pang Hsu
811c4bbcac Bug 1290951 - Part 2.7: Unify how CompareManager, CompareNetwork and CompareCahce report errors during initialization and other operations. r=bkelly
--HG--
extra : rebase_source : d208639745b53cce1b13cf943b66ea3238310aac
2017-05-09 22:41:32 +08:00
Ho-Pang Hsu
3552f45590 Bug 1290951 - Part 2.6: Change the relationship between CompareManager, CompareNetwork, and CompareCache. r=bkelly
--HG--
extra : rebase_source : 9dc72c45789e63bc67982cd3b3fe3edf7169e4f5
2017-05-09 13:08:06 +08:00
Ho-Pang Hsu
305b6601e3 Bug 1290951 - Part 2.5: Move ChannelInfo and PrincipalInfo into CompareNetwork. r=bkelly
--HG--
extra : rebase_source : 3b042fc85924c7b80fa793b71e560c16cea6a66b
2017-04-13 15:01:28 +08:00
Ho-Pang Hsu
27f3010bb9 Bug 1290951 - Part 2.4: Add mIsMainScript to CompareNetwork. r=bkelly
--HG--
extra : rebase_source : 7a123c23c07cb3c13777b37c41e69e7dd2b1b8a8
2017-04-07 14:57:19 +08:00
Ho-Pang Hsu
1fbf9e14ad Bug 1290951 - Part 2.3: Update the lifecycle of CompareCache. r=bkelly
--HG--
extra : rebase_source : 9fb447f0301d2e4fbef536f783f39939a0fc59b2
2017-05-09 13:07:09 +08:00
Ting-Yu Chou
7057a51c5c Bug 1328070 - Update window activation state when the owner content is swapped. r=enndeakin+6102
MozReview-Commit-ID: 58uYaH7iFIU

--HG--
extra : rebase_source : f1ec9ff84d9478c510d2b0e777c7ad54a913555a
2017-04-06 15:58:02 +08:00
JW Wang
ed2b1d901a Bug 1362927 - handle AddBlocker() failure in MediaShutdownManager::InitStatics(). r=gerald
AddBlocker() could fail during main thread shutdown. We should clear sInstance
on failure so next Register() calls can fail gracefully.

MozReview-Commit-ID: KiRRhO9ymbf

--HG--
extra : rebase_source : ed514f71f85c3d2f7ed6a8ee6f701ae131ec5962
extra : source : 1f379bcfc15b77cc89ee7a3a9e12e85f63a83524
2017-05-08 16:09:03 +08:00
Edgar Chen
5e15c14056 Bug 1353647 - Fix the custom elements v0 upgrade inconsistency; r=wchen
There are two places doing prototype setup in old upgrade,
- If definition comes after JS reflector creation, CustomElementRegistry::Upgrade will do prototype swizzling.
- If definition comes before JS reflector creation, Element::WrapObject will set up the prototype.

The later one does SubsumesConsideringDomain, but the former doesn't not.

This patch is to fix the inconsistency, i.e. the former case should also do SubsumesConsideringDomain.

MozReview-Commit-ID: G3gVsaEa0YF

--HG--
extra : rebase_source : 5e2081e470473cd1a1f642a2dc693127cb9486ca
2017-04-04 23:42:22 +08:00
Edgar Chen
0a24632278 Bug 1354013 - Creating customized built-in elements without relevant definitions registered first shouldn't throw NotFoundError; r=wchen
per spec change: https://github.com/w3c/webcomponents/issues/608

MozReview-Commit-ID: 3W4qTndQsP7
2017-04-06 17:00:41 +08:00
Andrea Marchesini
667a1e29ae Bug 1363395 - nsGlobalWindow::GetLocation should support to be called on the outer window, r=smaug 2017-05-09 22:41:19 +02:00
Andrea Marchesini
18368ca143 Bug 1359087 - Use IPCBlob in FileHandle - part 4 - FileHelper::SyncCopy must work with asyncInputStream, r=asuth 2017-05-09 22:35:43 +02:00
Andrea Marchesini
018dbb6ceb Bug 1359087 - Use IPCBlob in FileHandle - part 3 - Changes in IndexedDB StreamWrapper, r=janv 2017-05-09 22:35:42 +02:00
Andrea Marchesini
13532cc30e Bug 1359087 - Use IPCBlob in FileHandle - part 2 - FileHandle and IPCBlob, r=janv 2017-05-09 22:35:42 +02:00
Andrea Marchesini
242df9338b Bug 1359087 - Use IPCBlob in FileHandle - part 1 - PPendingIPCBlob protocol, r=janv 2017-05-09 22:35:27 +02:00
Jeff Gilbert
c77bde9df0 Bug 1310222 - Relax PoT requirement for resource size limits in WebGL. - r=daoshengmu
MozReview-Commit-ID: 33kGMdPOHkT
2017-05-09 13:28:44 -07:00
Kyle Machulis
a3738835c9 Bug 1323339 - Modify WebAuthn mochitests to work with IPC API; r=jcj r=baku
Change tests to run serially with async API, since order is no longer
enforced by the IPC protocol being synchronous.

MozReview-Commit-ID: 9BtnsVhDvPS
2017-05-09 13:21:24 -07:00
Kyle Machulis
00a81563a5 Bug 1323339 - Add U2FSoftToken Manager; r=baku r=jcj
Takes functionality from NSSU2FToken/NSSU2FTokenRemote classes, and
moves it into a U2FSoftToken class. Leaves
NSSU2FToken/NSSU2FTokenRemote classes intact so as not to break U2F
API code (to be ported to async IPC in bug 1354330).

MozReview-Commit-ID: El2MCcYUrtE
2017-05-09 13:21:23 -07:00
Kyle Machulis
4f61492d32 Bug 1323339 - Add U2FTokenManager class and support IPC Parent classes; r=jcj r=baku
Takes functionality that was in the WebAuthentication class that now
needs to be handled by the parent process, and moves it to the
U2FTokenManager singleton class. U2FTokenManager is created on the
PBackground thread during the first WebAuthn transaction, and manages
hardware access and transaction management for the lifetime of the
browser session. Patch also adds parent classes for WebAuthn IPC
protocol.

MozReview-Commit-ID: EnhgUTPdlMZ
2017-05-09 13:21:23 -07:00
Kyle Machulis
e0c24a5abd Bug 1323339 - Add WebAuthnManager and support IPC Child classes; r=jcj r=baku
Takes functionality once in the WebAuthentication DOM class that needs
to be handled by the content process, and moves it to a
singleton (per-content-process) manager class. This allows the
WebAuthn API to centralize management of transactions and IPC
channels. Patch also creates the child (content-process) classes for
WebAuthn IPC channels.

MozReview-Commit-ID: 6ju2LK8lvNR
2017-05-09 13:21:23 -07:00
Kyle Machulis
b0260e8176 Bug 1323339 - Turn WebAuthenication into a simple DOM class that passes to WebAuthnManager; r=jcj r=baku
Before the patch set for bug 1323339, WebAuthentication was managing
almost all content-side functionality for the WebAuthn API. This
would've made it difficult to support IPC, transaction interruption,
etc... This patch strips most of the functionality out of
WebAuthentication. The functionality will be moved to the
WebAuthnManager class in the next patch, for sake of review coherence.

MozReview-Commit-ID: 9Uup8NhLVBj
2017-05-09 13:21:23 -07:00
Kyle Machulis
8ad053f05d Bug 1323339 - Cleanup of WebAuthn DOM classes; r=jcj r=baku
Changes WebAuthn DOM classes to take nsPIDOMInnerWindow* as parent
pointer, instead of WebAuthentication* pointer.

MozReview-Commit-ID: aK3k9Cc7hv
2017-05-09 13:21:23 -07:00
Kyle Machulis
2945d52cd5 Bug 1323339 - IPDL for WebAuthn Protocol and PBackground additions; r=jcj r=baku
MozReview-Commit-ID: 3WzTVZEdjia
2017-05-09 13:21:23 -07:00
Ho-Pang Hsu
c1fe89f859 Bug 1290951 - Part 2.2: Make CompareManager::ComparisonFinished() public. r=bkelly
--HG--
extra : rebase_source : edc8ae36344760c66be726b227fce5602eca662c
2017-02-23 18:34:36 +08:00
Ho-Pang
be755a4180 Bug 1290951 - Part 2.1: Move some functions out of their class definitions. r=bkelly
--HG--
extra : rebase_source : ffd4ac76e38d700e3f0d7666519c739f6f5791d2
2017-02-23 18:34:16 +08:00
Ho-Pang Hsu
3cfcb4c95c Bug 1290951 - Part 1.2: Get the script URL list before actual comparing. r=bkelly
--HG--
extra : rebase_source : b2c1dea51d2de59fb670edae96ab9e721ef16e05
2017-04-07 14:44:35 +08:00
Ho-Pang Hsu
9e5cbeb72a Bug 1290951 - Part 1.1: Move some function implementations out of CompareManager. r=baku
--HG--
extra : rebase_source : 141a78a044bb00cf96c07ea099afe3eb49602e9f
2017-04-07 14:41:22 +08:00
Wes Kocher
0070a44b21 Backed out 3 changesets (bug 469228) for being a possible cause of frequent test_animSVGImage.html failures a=backout
Backed out changeset 1431c80b02ef (bug 469228)
Backed out changeset 8d46046a7367 (bug 469228)
Backed out changeset 2e22c0308a7e (bug 469228)

MozReview-Commit-ID: AMRASDPCWu3

--HG--
extra : rebase_source : 46b5ee0f67ffeaec31e1ef379a2e86c20cdee989
2017-05-10 10:13:54 -07:00
Wes Kocher
24a327994e Backed out 9 changesets (bug 1340627) for graphical glitches a=backout
Backed out changeset 0b1371055c7f (bug 1340627)
Backed out changeset f152be1fadb7 (bug 1340627)
Backed out changeset c691e2ab6a0c (bug 1340627)
Backed out changeset 3cb4bceb8d79 (bug 1340627)
Backed out changeset 026aadd76d06 (bug 1340627)
Backed out changeset fdbd5d281287 (bug 1340627)
Backed out changeset 75fb0d9858a9 (bug 1340627)
Backed out changeset 0d4ec7d38a00 (bug 1340627)
Backed out changeset af6f19870b2a (bug 1340627)

MozReview-Commit-ID: 9dHr7xMZezY

--HG--
rename : gfx/skia/skia/src/core/SkBlitRow.h => gfx/skia/skia/include/core/SkBlitRow.h
rename : gfx/skia/skia/src/effects/SkGaussianEdgeShader.h => gfx/skia/skia/include/effects/SkGaussianEdgeShader.h
rename : gfx/skia/skia/src/xml/SkXMLParser.h => gfx/skia/skia/include/xml/SkXMLParser.h
rename : gfx/skia/skia/include/private/SkMessageBus.h => gfx/skia/skia/src/core/SkMessageBus.h
rename : gfx/skia/skia/src/gpu/ops/GrAAConvexPathRenderer.h => gfx/skia/skia/src/gpu/batches/GrAAConvexPathRenderer.h
rename : gfx/skia/skia/src/gpu/ops/GrAAConvexTessellator.h => gfx/skia/skia/src/gpu/batches/GrAAConvexTessellator.h
rename : gfx/skia/skia/src/gpu/ops/GrAAHairLinePathRenderer.h => gfx/skia/skia/src/gpu/batches/GrAAHairLinePathRenderer.h
rename : gfx/skia/skia/src/gpu/ops/GrAALinearizingConvexPathRenderer.h => gfx/skia/skia/src/gpu/batches/GrAALinearizingConvexPathRenderer.h
rename : gfx/skia/skia/src/gpu/ops/GrPathStencilSettings.h => gfx/skia/skia/src/gpu/batches/GrPathStencilSettings.h
rename : gfx/skia/skia/src/gpu/ops/GrStencilAndCoverPathRenderer.h => gfx/skia/skia/src/gpu/batches/GrStencilAndCoverPathRenderer.h
rename : gfx/skia/skia/include/private/GrGLSL_impl.h => gfx/skia/skia/src/gpu/glsl/GrGLSL_impl.h
2017-05-10 10:01:18 -07:00
Ben Kelly
c33e926418 Bug 1362444 P3 Add a mochitest verifying accessing self.caches does not block idle Worker shutdown. r=baku 2017-05-10 09:27:10 -07:00
Ben Kelly
62239d1de6 Bug 1362444 P2 Allow idle worker shutdown while Cache/CacheStorage DOM objects exist, but block it during Cache operation. r=baku 2017-05-10 09:27:10 -07:00