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

63539 Коммитов

Автор SHA1 Сообщение Дата
Ryan VanderMeulen 31beca4070 Backed out changeset 4ac329aeaaf9 (bug 1361461) for various dead window related test failures on a CLOSED TREE.
--HG--
extra : amend_source : ffabeac2fe1f784474d5c720420b996a60ad1ba0
2017-05-24 18:21:34 -04:00
Ehsan Akhgari c200b63e89 Bug 1361461 - Dispatch WindowDestroyedEvent to the idle queue; r=smaug 2017-05-24 17:32:32 -04:00
Ryan VanderMeulen 56b8e8c07e Merge m-c to inbound. a=merge
CLOSED TREE
2017-05-24 16:33:30 -04:00
Ryan VanderMeulen 30caacbb11 Merge inbound to m-c. a=merge 2017-05-24 16:32:59 -04:00
Ehsan Akhgari dfaa48605d Bug 1366812 - Initialize TimeoutManager::mThrottleTrackingTimeouts to false; r=smaug
This way we won't rely on code which may have potentially not run yet.
2017-05-24 14:48:53 -04:00
Nicolas B. Pierron 9812c67569 Bug 1366773 - Move buffer argument from JS::StartIncrementalEncoding to JS::FinishIncrementalEncoding. r=mrbkap,shu 2017-05-24 18:28:19 +00:00
Bill McCloskey ab129f71c8 Bug 1366845 - Use XPCOM threads for hang monitor (r=mrbkap)
MozReview-Commit-ID: 3zMWYDATDch
2017-05-24 11:11:28 -07:00
Ryan VanderMeulen 38a48a48ce Backed out 4 changesets (bug 816784) for intermittent GC crashes.
Backed out changeset 9a553b9dc922 (bug 816784)
Backed out changeset ac4a48a831ce (bug 816784)
Backed out changeset e80197b11567 (bug 816784)
Backed out changeset 7e8f428a3edf (bug 816784)
2017-05-24 12:07:07 -04:00
Garvan Keeley 6ff03f9654 Bug 1363966 - Cleanup network geo provider: removed unneeded listener function wrapper and the call to non-existent listener.locationUpdatePending(). r=jdm
--HG--
extra : rebase_source : 8e64cfda5c5a4186401a774c8caa621441d81cfd
2017-05-24 07:22:00 -04:00
Luke Wagner 00312ec84c Bug 1351488 - Baldr: remove unintentional shadowing of 'rv' (r=janv)
MozReview-Commit-ID: 3oggzFUoqYP
2017-05-24 10:23:02 -05:00
Chun-Min Chang c369131664 Bug 1365225 - Prevent overflow. r=jwwang
MozReview-Commit-ID: 6jA1DTgVmrU
2017-05-24 09:22:42 -04:00
Sebastian Hengst d1ec3e6aa9 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-05-24 11:27:29 +02:00
Sebastian Hengst 795da9ebf8 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: HGZE1dfSDNK
2017-05-24 11:25:03 +02:00
Andrea Marchesini d09988bbc2 Bug 1367075 - Get rid of AudioChannelService::IsParentProcess, r=me - CLOSED TREE 2017-05-24 09:49:35 +02:00
Yoshi Huang f150e4d3c9 Bug 1366699 - rewrite dom/tests/mochitest/whatwg/test_postMessage_special.xhtml. r=ckerschb
Rewrite test_postMessage_special.xhtml to make it match the latest spec.
2017-05-24 10:03:53 +08:00
Andrea Marchesini c6a0819b83 Bug 1367075 - AudioChannelService doesn't need to be unregistered as observer for ipc:content-shutdown, r=alwu 2017-05-24 07:31:58 +02:00
Andrea Marchesini 10c6acd1a4 Bug 1359718 - Get rid of PBlob - part 5 - Fixing #includes, r=smaug 2017-05-23 18:06:52 +02:00
Andrea Marchesini eaa44dbb26 Bug 1359718 - Get rid of PBlob - part 4 - PBlob DOMTypes, r=smaug 2017-05-23 18:06:22 +02:00
Andrea Marchesini fa9cfac9fb Bug 1359718 - Get rid of PBlob - part 3 - nsIRemoteBlob, r=smaug 2017-05-23 18:05:51 +02:00
Andrea Marchesini 281c7e8cdd Bug 1359718 - Get rid of PBlob - part 2 - PBlob, r=smaug, r=kanru 2017-05-23 18:05:19 +02:00
Andrea Marchesini bc8f9a2827 Bug 1359718 - Get rid of PBlob - part 1 - Remove PBlobStream, r=smaug, r=kanru 2017-05-23 18:04:27 +02:00
Andrea Marchesini 28479706ea Bug 1359718 - Get rid of PBlob - part 0 - remove PMemoryStream, r=smaug 2017-05-23 18:00:30 +02:00
Makoto Kato 54382f83cb Bug 1366218 - Use fast path to check empty value. r=smaug
HTMLInputElement::IsValueEmpty uses DocumentEncoder when input element has focus.  DocumentEncoder is slow, so we should use fast path (nsTextEditorState::HasNonEmptyValue) to check whether value is empty.

MozReview-Commit-ID: 1JxAeZ6z5A4

--HG--
extra : rebase_source : 8cf89721bf59f0bde09e217428bb593ad6d328de
2017-05-23 12:27:23 +09:00
Ryan VanderMeulen 0bd37c1ea1 Merge inbound to m-c. a=merge 2017-05-23 18:12:57 -04:00
Ryan VanderMeulen 2942c9f721 Backed out changeset 1a261952f14a (bug 1365187) for frequent Win7 test_linkErrorInCommon2.html failures. a=me 2017-05-23 18:11:48 -04:00
Ryan VanderMeulen 27fd4cc7e2 Merge inbound to m-c. a=merge 2017-05-23 18:11:35 -04:00
Ehsan Akhgari 1040ee9f65 Bug 1347035 - Store the maximum touch points for each tab child on the object instead of querying it synchronously from the parent actor when neeeded; r=smaug ipc-r=kanru 2017-05-23 17:00:09 -04:00
Bill McCloskey 691628a34e Bug 1364570 - Dispatch link prefetch events asynchronously to avoid DocGroup mismatches (r=bz)
When we send out a prefetch request, we act as if the load came
from one of the possibly many documents containing <link> element
for the given URL. The docgroup assigned to this request is
derived from this document. Later, when the load finishes, the
OnStopRequest code runs in a runnable labeled with this
docgroup. OnStopRequest dispatches a load event to *all* the link
elements, including some that might be in different docgroups
from the OnStopRequest runnable. This generates an assertion.

To fix this, I decided to dispatch the load events
asynchronously. I'm hoping the extra round trip through the event
loop shouldn't hurt us too much since I doubt anyone actually
listens for these events.

MozReview-Commit-ID: FTkjuHO7RFp
2017-05-23 13:56:49 -07:00
Ryan VanderMeulen 41f95294f5 Backed out changeset eeb73d8c0542 (bug 1364570) for static analysis failures on a CLOSED TREE. 2017-05-23 15:31:16 -04:00
Timothy Nikkel c8ba76db41 Bug 1366875. Apply the same sync decoding heuristic to SVG <image> as we do to HTML <img>. r=mats
--HG--
rename : layout/svg/nsSVGImageFrame.cpp => layout/svg/nsSVGImageFrame.h
2017-05-23 14:11:13 -05:00
Bill McCloskey 226f6b9185 Bug 1366869 - Make DISPATCH_NORMAL be the default flags argument for nsIEventTarget::Dispatch (r=froydnj)
MozReview-Commit-ID: 5DVcIaMHH95
2017-05-23 12:05:43 -07:00
Bill McCloskey 79d1a76b44 Bug 1364570 - Dispatch link prefetch events asynchronously to avoid DocGroup mismatches (r=bz)
When we send out a prefetch request, we act as if the load came
from one of the possibly many documents containing <link> element
for the given URL. The docgroup assigned to this request is
derived from this document. Later, when the load finishes, the
OnStopRequest code runs in a runnable labeled with this
docgroup. OnStopRequest dispatches a load event to *all* the link
elements, including some that might be in different docgroups
from the OnStopRequest runnable. This generates an assertion.

To fix this, I decided to dispatch the load events
asynchronously. I'm hoping the extra round trip through the event
loop shouldn't hurt us too much since I doubt anyone actually
listens for these events.

MozReview-Commit-ID: FTkjuHO7RFp
2017-05-23 12:04:31 -07:00
Bill McCloskey c1a1aeca32 Bug 1365184 - Fix docgroup mismatch during cycle collection (r=smaug)
MozReview-Commit-ID: Ld68RGU6lmB
2017-05-23 12:04:31 -07:00
Andreas Farre 32f9f451fa Bug 1367025 - Don't start throttling delay timers while suspended. r=bkelly
From c350a6db4069d1a33a21546a287714bfe07e0590 Mon Sep 17 00:00:00 2001
---
 dom/base/TimeoutManager.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
2017-05-23 15:36:08 +02:00
Daosheng Mu a720df3b9d Bug 1358395 - Part 2: Enable GamepadExtensions Web API the for the release build; r=kip,qdot
MozReview-Commit-ID: BuIKJy3NEHq

--HG--
extra : rebase_source : 731a0ddd01e12c07f3eaaba491ff203527fd40d1
2017-05-19 00:11:45 +08:00
Daosheng Mu e3e60c3019 Bug 1358395 - Part 1: Enable WebVR APIs of test_interfaces for the release build; r=kip,qdot
MozReview-Commit-ID: 2gsY6JQwKkA

--HG--
extra : rebase_source : 29a2935d764875d409b33006dea325453a2ea714
2017-05-17 18:58:54 +08:00
Alfredo Yang 55d6ddef12 Bug 1365872 - remove parsing mp4v mCodecSpecificConfig which is for b2g. r=jya
MozReview-Commit-ID: G3l6AtEH0hO

--HG--
extra : rebase_source : bad9f7ae16715acb53826a494203cd7bbee138b3
2017-05-18 16:54:43 +08:00
Gerald Squelart 4d566af858 Bug 1366936 - Telemetry: Watermark of number of block owners during MediaCache sessions - r=cpearce,francois
MozReview-Commit-ID: Ed1Eah9TuSJ

--HG--
extra : rebase_source : b539ba0f551c821d0b093435f0fdba958ecd3aaa
2017-05-23 14:59:16 +12:00
Chris Pearce 1291d78800 Bug 1366907 - Remove BufferDecoder's GMPCrashHelper. r=karlt
We no longer support decoding non-EME audio via GMPs, so it's not possible
for a GMP to be used for decoding content that passes through a WebAudio
BufferDecoder. So we don't need to keep the GMPCrashHelper around in the
WebAudio code. If EME content is being used, there will be a crash helper on
the MediaKeys object anyway.

MozReview-Commit-ID: BThxnTANSTD

--HG--
extra : rebase_source : 2c2ce4e982dcef6e3985c426386974083505c953
2017-05-23 11:09:08 +12:00
Gerald Squelart 8183f3fe78 Bug 1366929 - Telemetry: Watermark (in KB) reached by each MediaCache session - r=cpearce
MozReview-Commit-ID: 6BDFFYq1JnJ

--HG--
extra : rebase_source : dd67c472369d3c0db714333e1eb9f7c665514b17
2017-05-23 14:44:06 +12:00
Ron Waisberg 56e5364aaf Bug 1326154 - Fix to prevent FlyWebService from pointing to a URL with a different origin. r=djvj
--HG--
extra : rebase_source : ef7e60f1c16f3d9faaf7bf88db4b5c39699de7f9
2017-05-23 15:17:02 -04:00
Ryan VanderMeulen 4202c4feab Merge m-c to autoland. a=merge 2017-05-23 18:13:54 -04:00
bechen 5eb2235537 Bug 1325001 - TextTrackList::GetShowingCues should return cues whose kind is Subtitles or Captions. r=rillian
We should only render the Subtitles/Captions cue on the screen. In addition, rename the activeCues to showingCues.
Because the meaning of "active" and "showing" are different. Showing means we can see the cue on the screen, active means the current playback time touches the cue.

MozReview-Commit-ID: 1BfHhxFXBDP

--HG--
extra : rebase_source : 2c4d6b0b052758f1bb01a7794365bf75b556304c
2017-05-22 11:30:22 +08:00
Mike Conley a6e4cd7b77 Bug 1362866 - Get rid of MozTabChildNotReady event and all of its required infrastructure. r=billm
This event is no longer necessary, since checking nsITabParent.hasPresented is enough to know
if we need to blank out the tab or not.

MozReview-Commit-ID: 445XMqhorxC

--HG--
extra : rebase_source : 1a05de827502c409d979a621471978b08ce39fb2
2017-05-07 21:26:08 -04:00
Ryan VanderMeulen 22d214ae4b Merge autoland to m-c. a=merge 2017-05-23 10:32:42 -04:00
Alex Chronopoulos ef928e094b Bug 1366707 - update callers of cubeb_device_collection_destroy. r=kinetik
MozReview-Commit-ID: JByi6XfgWh2

--HG--
extra : rebase_source : 440f791a101d9b94b74c55e2ba6802cc4e66fecb
2017-05-23 11:30:05 +03:00
Georg Fritzsche 31c702afef Bug 1361661 - Part 2 - Make Telemetry IPC code pass around Telemetry::ProcessID. r=dexter
Switching to Telemetry::ProcessID allows us to break out extension process data from the content process data.
2017-05-23 13:47:58 +07:00
Axel Nennker 9738486c01 Bug 1364991 - Make U2FTokenManager use const where possible r=qdot
The U2F Soft Token, due to its usage of NSS, has to have const values be
marked non-const - but no such limitation should exist for other implementations
of U2F, so this patch moves the const_cast-ing from the U2FTokenManager-level
down to the U2FSoftTokenManager, where it is actually necessary.

Credit to Axel Nennker for this patch.

MozReview-Commit-ID: Kw6zfTDI3GL

--HG--
extra : rebase_source : 90e31e2da9e021043509653a476ddaae03078e55
2017-05-22 16:40:29 -07:00
Ting-Yu Chou 6d83ca4000 Bug 816784 part 2 - Optimize NukeCrossCompartmentWrappers() to iterate only the targetting wrappers. r=jonco
Changed the type of argument |targetFilter| of NukeCrossCompartmentWrappers()
from CompartmentFilter to JSCompartment* because it is always a single target
compartment, and we can optimize the iteration not to iterate the outer map.

MozReview-Commit-ID: 7cDCgJI0H9z

--HG--
extra : rebase_source : 4973dfd4c3326bf48b78088979962e425e35030c
2017-05-03 13:56:54 +08:00
Chris Pearce e5bb59cbdf Bug 1366639 - Add telemetry to track max number of PChromiumCDM video frame shmems. r=francois,gerald
This will enable us to pre-allocate the correct number of shared memory buffers
that we pre-allocate for sending video frames between the CDM and Gecko. That
means we won't need to take the slow path to recover from underestimating how
many shmems we need.



MozReview-Commit-ID: Q4mX2rYMz3

--HG--
extra : rebase_source : f9573cfbf4e65013803b46c0909be2c68566e512
2017-05-22 15:03:00 +12:00
JW Wang 5a222af5cc Bug 1366640 - add a telemetry probe to debug main thread hang in VideoFrameContainer. r=cpearce,francois
MozReview-Commit-ID: 6crTtq1IeD9

--HG--
extra : rebase_source : 106afd126a00c63ce866781917d178aa17c29781
extra : source : 31e57a8b0c07f4053341d0f046db994b4476fd83
2017-05-19 12:37:37 +08:00
Wes Kocher 9a8d52f7af Merge m-c to autoland, a=merge
MozReview-Commit-ID: AVwPRGa5re9
2017-05-22 16:38:46 -07:00
Wes Kocher 2933592c4a Merge inbound to central, a=merge
MozReview-Commit-ID: 7NiWtCjPk84
2017-05-22 16:26:12 -07:00
Wes Kocher eb349179a4 Backed out 2 changesets (bug 1342289) for crashtest leaks a=backout
Backed out changeset 3744676f7923 (bug 1342289)
Backed out changeset d0a029765f69 (bug 1342289)

MozReview-Commit-ID: Fb6GfKo6AhJ

--HG--
extra : source : 4d13294ef068adfab6e36d969113f74b8aa7dbc3
2017-05-22 12:50:23 -07:00
Sebastian Hengst b3a2c130d0 Backed out changeset 9cf5185e6d6f (bug 1361661) 2017-05-22 16:19:26 +02:00
Sebastian Hengst 2a69fd246c Backed out changeset 367734cc9370 (bug 1339105) 2017-05-22 16:14:27 +02:00
Mats Palmgren 297b9d70e1 Bug 1365614 part 3 - Backout bug 1333482 part 1-9. Removes support for [-webkit-]appearance for now b/c web compat issues. r=bz
MozReview-Commit-ID: IbwWM0FL6HF

--HG--
extra : source : bbb688fe1ba3f5201a190c6e25b693ef7272ea2d
2017-05-21 17:15:00 +08:00
Kershaw Chang 8b2e612d40 Bug 1312515 - Part 2: Lower the channel's priority if this Fetch is created from tracking script. r=baku
If the Fetch request is created by a tracking script, we want to lower the priority of the http channel.

--HG--
extra : rebase_source : fc258770a2f58a503777dec8a05fd2aeab2ff889
2017-05-19 01:29:00 -04:00
Kershaw Chang 383c9e3e60 Bug 1312515 - Part 1: Lower the channel's priority if this XHR is created from tracking script. r=baku
With nsIDocument::IsScriptTracking, we know that whether a script is a tracking script. If the XHR is created by a tracking script, we want to lower the priority of the http channel.

--HG--
extra : rebase_source : 7c9d2a545968a50c8ec34a3395132f0d99087058
2017-05-19 01:28:00 -04:00
Georg Fritzsche 0a9d674afd Bug 1361661 - Part 2: Make Telemetry IPC code pass around Telemetry::ProcessID. r=dexter
Switching to Telemetry::ProcessID allows us to break out extension process data from the content process data.
2017-05-22 15:40:58 +07:00
Jeff Gilbert eb27aad2c1 Bug 1357090 - Check that a texture's level_base is not too high. r=daoshengmu
MozReview-Commit-ID: 1EKDTrcTacw
2017-05-22 09:53:23 -04:00
Carsten "Tomcat" Book 6373e5e631 Merge mozilla-central to mozilla-inbound 2017-05-22 15:47:03 +02:00
Carsten "Tomcat" Book 00d4ea331d Backed out changeset bbb688fe1ba3 (bug 1365614) 2017-05-22 15:45:31 +02:00
Bob Owen 62c455086d Bug 1339105 Part 3: Move NPAPI windows process sandbox file rules into SandboxBroker. r=jimm
This also removes a rule that was added for sandboxing the Java plugin,
which we never did and we now only allow Flash anyway.
2017-05-22 14:29:06 +01:00
Andrea Marchesini 7af48e36ff Bug 1359357 - Test for IPCBlob and workers, r=smaug 2017-05-22 13:33:00 +02:00
Andrea Marchesini cf22d699db Bug 1359357 - IPCBlobInputStreamChild should be protected by a WorkerHolder, r=smaug 2017-05-22 13:33:00 +02:00
Carsten "Tomcat" Book 3c3ff310ce Merge mozilla-central to mozilla-inbound 2017-05-22 13:07:41 +02:00
Carsten "Tomcat" Book 469e512b06 merge mozilla-inbound to mozilla-central a=merge 2017-05-22 13:00:17 +02:00
Sebastian Hengst 85e2f2bc08 Backed out changeset 173a14d9e1d2 (bug 1240275) for failing layout/reftests/svg/radialGradient-fr-02.svg on Windows 8 x64. r=backout 2017-05-22 11:16:58 +02:00
Bob Owen 5e5fc1cf93 Bug 1366445: Add and correct pref settings for some file content process tests. r=Gijs
This fixes:
browser\base\content\test\tabs\browser_new_web_tab_in_file_process_pref.js
dom\html\test\browser_form_post_from_file_to_http.js
2017-05-22 09:02:36 +01:00
Iris Hsiao 65ea740eda Merge mozilla-central to mozilla-inbound 2017-05-22 11:53:00 +08:00
Emilio Cobos Álvarez 47dc11465b Bug 1366474: While we're here, devirtualize GetSMILOverrideStyle too. r=birtles
Also, update an outdated comment that was leftover.

MozReview-Commit-ID: CC865rj3o3S

--HG--
extra : rebase_source : 094ed5c23a55f8f00f7aeb18856c539caa80ff86
2017-05-20 13:02:43 +02:00
Emilio Cobos Álvarez 9d58320b21 Bug 1366474: Devirtualize Element::{Get,Set}SMILOverrideStyleDeclaration. r=birtles
MozReview-Commit-ID: JYLt6lE0bZt

--HG--
extra : rebase_source : 4c57e9d274db1319504ac3072031b16da98d9e7c
2017-05-20 12:59:33 +02:00
Hiroyuki Ikezoe 5c43533704 Bug 1362914 - Drop initial values of properties other than font-size and font-family in serialization of canvas font attribute. r=manishearth
According to the canvas spec [1], we must drop initial values other than
font-size and font-family when we serialize canvas font attribute.
As for font-size and font-family, the default values, '10px sans-serif' [2]
are not dropped at all.

[1] https://html.spec.whatwg.org/multipage/scripting.html#dom-context-2d-font
[2] https://html.spec.whatwg.org/multipage/scripting.html#canvastextdrawingstyles

MozReview-Commit-ID: EyOxzJCQYQl

--HG--
extra : rebase_source : d358a8e97fa7849a320a3619e746a526fe2a8439
2017-05-20 07:38:26 +09:00
Hiroyuki Ikezoe 5ea0aea575 Bug 1329077 - Drop redundant waitForIdleCallback(). r=boris
We have already waitForIdle() in testcommon.js.

MozReview-Commit-ID: 64XTU2g8CO7

--HG--
extra : rebase_source : 028e6827f4d67b789b979673ceb5a8bef501dbf7
2017-05-20 20:33:59 +09:00
Hiroyuki Ikezoe 3de2aa4e0c Bug 1329077 - Revert the hack that opens a new window to use requestIdleCallback. r=boris
requestIdleCallback has been enable by default in bug 1314959.

MozReview-Commit-ID: 7rwqdsCdjNb

--HG--
extra : rebase_source : cb60996accfe733714c9b5dff983c2210c4fa98b
2017-05-20 20:33:26 +09:00
Robert Longson a1d45be365 Bug 1240275 - Support SVG 2 radialGradient fr attribute. r=cam r=peterv (see comment 16) 2017-05-22 07:28:30 +01:00
Mats Palmgren e706869580 Bug 1365614 part 3 - Backout bug 1333482 part 1-9. Removes support for [-webkit-]appearance for now b/c web compat issues. r=bz 2017-05-21 17:15:00 +08:00
Jan-Ivar Bruaroey 85b8864f71 Bug 1366415: Unprefix mozAutoGainControl and mozNoiseSuppression w/deprecation warnings. r=jesup,smaug
MozReview-Commit-ID: EdWjSsIhtIM

--HG--
extra : rebase_source : 373bf802ae7a0f957770f2f6ec18fa4cc6c736da
2017-05-19 20:57:44 -04:00
btian de5fa4f269 Bug 1299390 - part 5: Remove useless AudioChannelService code. r=alwu
Changes:
- remove code addressed by reviewer
- remove PContent.ipdl, PBrowser.ipdl, and ProcessPriorityManager code
  that relates only to removed AudioChannelService methods
- correct test case listening to event from removed code
- remove useless test case files

MozReview-Commit-ID: I96nR8zTXJt

--HG--
extra : rebase_source : 127876c672744811c025ca55839ff2e8a06b1fce
2017-05-18 09:51:53 +08:00
btian f8198225e8 Bug 1299390 - part 4: Clean up BrowserElementAudioChannel related test cases. r=alwu
MozReview-Commit-ID: 4DFYPoafau7

--HG--
extra : rebase_source : 66b8e0c41df141874afebb5d58df5f8980bf59f6
2017-05-18 09:31:01 +08:00
btian 03466ff5ab Bug 1299390 - part 3: Remove BrowserElement methods required by BrowserElementAudioChannel only. r=alwu,baku
MozReview-Commit-ID: LAyGMvmmZpz

--HG--
extra : rebase_source : 29d72475fcc809a3e5d1f6f74a8fc3d703987457
2017-05-18 09:31:00 +08:00
btian eb73e59657 Bug 1299390 - part 2: Remove AudioChannelService methods required by BrowserElementAudioChannel only. r=alwu,baku
Changes:
- remove nsIAudioChannelService methods
- remove method AudioChannelService::RefreshAgentsVolumeAndPropagate and IPC method AudioChannelChangeNotification
- remove workaround for bug 1183033

MozReview-Commit-ID: BqlXYVhgrat

--HG--
extra : rebase_source : 64905901d645aea801b93e742472ac67ff7fb49e
2017-05-18 09:31:00 +08:00
btian a3d3d85da1 Bug 1299390 - part 1: Remove BrowserElementAudioChannel. r=alwu,baku
MozReview-Commit-ID: BdRE9biPn5r

--HG--
extra : rebase_source : 53dd4eecac1512a235b340e181d2a5ecb4d88540
2017-05-18 09:31:00 +08:00
bechen 1ac826c95f Bug 1298307 - Check cue's active state first, then verify displaystate. r=alwu,smaug
MozReview-Commit-ID: 4sqPNY9Czsr

--HG--
extra : rebase_source : e612e00520c839c3460d56618b5f3e30e47bc026
2017-05-18 11:02:25 +08:00
Bryce Van Dyk fd8d18e66b Bug 1354457 - Add test to check video is paused and resumed correctly in MediaRecorder. r=pehrsons
MozReview-Commit-ID: Gn9LRsVPFhY

--HG--
extra : rebase_source : bc5da3aaba9f695a0f4a5f2ac64fa9814047e7e7
2017-05-15 08:56:27 +12:00
Bryce Van Dyk 5b66c825ed Bug 1354457 - Record time spent paused in media encoder and adjust time stamps when muxing. r=pehrsons
MozReview-Commit-ID: 7J6oQf7qn4u

--HG--
extra : rebase_source : 715046ccff225d481d32330db105697e1112528e
2017-05-05 15:13:11 +12:00
Bryce Van Dyk a5678a3a43 Bug 1354457 - Remove old suspend logic from media encoder. r=pehrsons
The switch from duration to time stamp based samples has removed the need for
this logic.

MozReview-Commit-ID: 7J6oQf7qn4u

--HG--
extra : rebase_source : 5ab566c03c4af0ab1067e814fdd51fa8879e95f1
2017-05-05 15:12:03 +12:00
Bryce Van Dyk 2f7721fac1 Bug 1354457 - Stop video frames being forwarded for direct connections when recorder is suspended. r=pehrsons
MozReview-Commit-ID: 7J6oQf7qn4u

--HG--
extra : rebase_source : 6cd2959d01de8c07cbf11c826b43c013dc730e46
2017-05-01 14:29:46 +12:00
Andrew McCreight 05d8bb3c65 Bug 989373, part 1 - Remove pref for reusing globals with JSMs. r=kmag
Removing support for this preference means that mReuseLoaderGlobal
will always be false, which lets us eliminate that field, and remove a
lot of code.

This also means that false is always passed to
PrepareObjectForLocation for aReuseLoaderGlobal.

ReadCachedFunction is no longer used, so it is deleted.

MozReview-Commit-ID: 5JD24EYVcQf

--HG--
extra : rebase_source : 3b23b4b8d2b1a2f6a53223477afb4cb13b8a671c
2017-05-15 14:33:21 -07:00
Wes Kocher c23cbd4a57 Backed out 2 changesets (bug 1342289) for crashtest leaks a=backout
Backed out changeset 3744676f7923 (bug 1342289)
Backed out changeset d0a029765f69 (bug 1342289)

MozReview-Commit-ID: Fb6GfKo6AhJ

--HG--
extra : rebase_source : 8ac1045485a4f3b0aa94b01103933814ff89e23a
2017-05-22 12:50:23 -07:00
Brad Werth 406f447552 Bug 1342289 Part 2: Re-enable crashtest dom/html/crashtests/795221-3.html. r=heycam
MozReview-Commit-ID: 3demWEDa3Ws

--HG--
extra : rebase_source : a127def77e36dc1981efdcd07681af2bf60bc7b9
2017-05-19 09:19:04 -07:00
Jan-Ivar Bruaroey 78cd34d508 Bug 1359662 - Make track.getSettings() output nominal values for width and height instead of crazy high ones. r=jesup
MozReview-Commit-ID: JSfLX4vgkvS

--HG--
extra : rebase_source : a0239acf9be4cb9dbec215d3ad9641f9dd71c82e
2017-04-25 22:32:06 -04:00
Carsten "Tomcat" Book 1bdc87018b Merge mozilla-central to autoland
--HG--
extra : rebase_source : 4e9c2047973e5a540496b19e456a2e7bd14715ad
2017-05-22 15:48:11 +02:00
Jessica Jong 7a32dbad28 Bug 1337830 - [DateTimeInput] Home/End keys should have no effect on year field. r=mossop
MozReview-Commit-ID: LjYetlucSnT

--HG--
extra : rebase_source : 7ed48047adf0e4c22e524017424b5b50f9e1d5a2
2017-05-19 14:55:39 +08:00
Carsten "Tomcat" Book 2a6d28c4ab Merge mozilla-central to autoland 2017-05-22 13:08:46 +02:00
Francois Marier c10dd4c73c Bug 1364262 - Convert SRI metadata to ASCII before parsing it. r=ckerschb
MozReview-Commit-ID: Ekw8lNzDvou

--HG--
extra : rebase_source : a2fe92e804b5b690856c44783e88d815e38e2922
2017-05-16 17:33:22 -07:00
Ryan VanderMeulen bda1298f43 Merge m-c to autoland. a=merge
CLOSED TREE
2017-05-24 16:34:01 -04:00
Ting-Yu Lin 2b96e807e3 Bug 1367286 - Remove loading user html binding via "dom.userHTMLBindings.uri". r=bz
MozReview-Commit-ID: 175udoeRUmT

--HG--
extra : rebase_source : fd1b3cbc546d972bba184223426e5d4761b714b9
2017-05-24 13:10:12 -04:00
Ting-Yu Lin 911f08dd7f Bug 1363640 Part 6 - Use bound document's style backend when creating an XBL document. r=heycam
The <content> in an XBL document could be injected into documents with
different style backend types. Therefore, we need to set the XBL document's
style backend to the same as the bound document's so that the style
attribute of the content can be processed by the correct backend. <marquee>
elements in xbl-marquee.xml is one such example.

MozReview-Commit-ID: 7M33zlbZqNF

--HG--
extra : rebase_source : 363fd7c2bc91e959fbcfb288bdc1b65cfd1bba97
2017-05-11 17:16:27 -07:00
Ting-Yu Lin 7e1743b337 Bug 1363640 Part 5 - Add a table in nsXULPrototypeCache to cache XBL documents with servo backend. r=bz,heycam
We assume those XBL documents without a bound document use gecko style
backend. Their backend type will be explicitly set when loading in Part 6.

MozReview-Commit-ID: 5c5xtYFvgAD

--HG--
extra : rebase_source : 578b50953d98ffa5280dac3440979e2aba7519cb
2017-05-19 15:18:00 -07:00
Ting-Yu Lin 832d727a8b Bug 1363640 Part 4 - Rename TableForBackendType to StyleSheetTableFor. r=heycam
In the next part, mXBLDocTable will be split into mGeckoXBLDocTable and
mServoXBLDocTable, and a helper function XBLDocTableFor will be added. Hence
this rename to avoid confusion.

MozReview-Commit-ID: CPCd67wKgb1

--HG--
extra : rebase_source : 08dd5c38fd3efab152a0be9e44c4d6536824d67a
2017-05-19 14:32:44 -07:00
Ting-Yu Lin 200de4b5fa Bug 1363640 Part 3 - Strip whitespaces for files under dom/xbl. r=heycam
MozReview-Commit-ID: 3WBsFIgFZU9

--HG--
extra : rebase_source : 63699a4f10a418171cf9fa3205761c7b53129360
2017-05-09 20:45:11 -07:00
Ting-Yu Lin e28f16e90e Bug 1363640 Part 2 - Move the logic in SupportsServoStyleBackend() to UpdateStyleBackendType(). r=heycam
SupportsServoStyleBackend() uses methods in nsIDocument, so it would be more
straightforward to do that in UpdateStyleBackendType().

Also, call StyloEnabled() before doing other logic so that the warning about
"no docshell" won't show up when stylo is built but disabled.

MozReview-Commit-ID: 9ZUYatPBv1r

--HG--
extra : rebase_source : ea130cdf2ef0b49d73bd688aeca1fc227431441c
2017-05-09 18:33:57 -07:00
Ting-Yu Lin bd80f687dc Bug 1363640 Part 1 - Move IsContentDocument() and IsTopLevelContentDocument() from nsDocument to nsIDocument. r=heycam
In this way, the callers who have nsIDocument don't need to cast to nsDocument.

MozReview-Commit-ID: 8zVUjkbrlaG

--HG--
extra : rebase_source : c444a103a430e3746508cc894902e677d58e65fe
2017-05-09 18:28:36 -07:00
Sebastian Hengst af0f9643cf merge mozilla-central to autoland. r=merge a=merge 2017-05-20 18:53:36 +02:00
Sebastian Hengst 79f625ac56 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: EqC7wKnn6Jt
2017-05-20 18:48:53 +02:00
Wes Kocher 8b07ba2a07 Merge m-c to inbound a=merge
a=release IGNORE BAD COMMIT MESSAGES
2017-05-19 15:18:51 -07:00
Wes Kocher 15edcfd962 Merge inbound to central, a=merge
MozReview-Commit-ID: EI67EKp8ykS
2017-05-19 15:14:19 -07:00
Wes Kocher b3e139291b Merge graphics to m-c a=merge a=release
IGNORE BAD COMMIT MESSAGES because something landed and was backed out for no bug number

--HG--
extra : amend_source : 1134c379d1134fe160fd2d889488d07acd9f4177
2017-05-19 14:27:32 -07:00
Olli Pettay 2d735273d9 Bug 1366250, don't flush layout when calling element.focus() on already focused element. Ensure layout is flushed after changing input.type, r=ehsan
--HG--
extra : rebase_source : 294d0220cc3c2b6be38566ff28722c5e9acc87a9
2017-05-19 23:20:48 +03:00
Ben Kelly 0c0a1ef46b Bug 1343912 P5 Removed the fixed limit on consecutive Timeout callbacks. r=ehsan 2017-05-19 13:45:55 -07:00
Ben Kelly 07eac0b288 Bug 1343912 P4 Only execute consecutive timeout handlers for a limit period of time. r=ehsan 2017-05-19 13:45:55 -07:00
Ben Kelly 2473d25f1f Bug 1343912 P3 Remove unused Timeout::mPrincipal member variable. r=ehsan 2017-05-19 13:45:55 -07:00
Ben Kelly d642ac9124 Bug 1343912 P2 Change TimeoutManager firing depth to a unique ID that can be expired to optimize cleanup. r=ehsan 2017-05-19 13:45:55 -07:00
Ben Kelly 845f88bba1 Bug 1343912 P1 Cleanup logic in TimeoutManager::RunTimeout() to keep firing depth and other data consistent. r=ehsan 2017-05-19 13:45:55 -07:00
Kartikaya Gupta 5320a75266 Merge m-c to graphics
MozReview-Commit-ID: Fq2lBUWyr0m
2017-05-19 13:19:35 -04:00
Ryan VanderMeulen acb2f518fc Merge inbound to m-c. a=merge 2017-05-19 11:46:56 -04:00
Kartikaya Gupta 5d656fab0f Merge m-c to graphics
MozReview-Commit-ID: HvsAeMjJAIA
2017-05-19 09:30:48 -04:00
Iris Hsiao 09507c3bc6 Backed out 3 changesets (bug 1366011, bug 1359357) for mochitest failures in test_ipcBlob_workers.html
Backed out changeset a20220d687d4 (bug 1359357)
Backed out changeset 9f71fb3f4d1e (bug 1359357)
Backed out changeset 70e5477cdda0 (bug 1366011)
2017-05-19 15:59:55 +08:00
Ryan VanderMeulen 9f0c23d7c6 Merge m-c to inbound. a=merge 2017-05-19 12:25:23 -04:00
Andrea Marchesini b50678ce59 Bug 1359357 - Test for IPCBlob and workers, r=smaug 2017-05-19 07:57:25 +02:00
Andrea Marchesini b6695129b2 Bug 1359357 - IPCBlobInputStreamChild should be protected by a WorkerHolder, r=smaug 2017-05-19 07:57:18 +02:00
Andrea Marchesini 318848612a Bug 1366011 - IPCBlob should not have race conditions between Send__delete__ and RecvStreamNeeded, r=smaug 2017-05-18 23:06:22 +02:00
Kartikaya Gupta aca076b94b Merge m-c to graphics
MozReview-Commit-ID: DFNbcj14mg9

--HG--
rename : memory/mozjemalloc/jemalloc.c => memory/mozjemalloc/mozjemalloc.cpp
rename : memory/mozjemalloc/jemalloc_types.h => memory/mozjemalloc/mozjemalloc_types.h
2017-05-18 08:34:15 -04:00
Carsten "Tomcat" Book 24c443a440 merge mozilla-inbound to mozilla-central a=merge 2017-05-18 14:19:18 +02:00
Jeff Muizelaar b9411eb4eb Bug 1364626. Ensure our transaction arrives at the compositor before asking the parent to paint. r=dvander
This makes UpdateLayerTree synchronous enough to ensure that the layer
transaction from the child reaches the compositor. Given the comment in
http://searchfox.org/mozilla-central/rev/484d2b7f51b7aed035147bbb4a565061659d9278/dom/interfaces/base/nsIDOMWindowUtils.idl#106
this seems to be the original intent of this function anyways. Without this, we
can have a race between the child talking to the compositor and the child
talking to the parent talking to the compositor.

This also changes GetCompositorBridgeChild to work even when the widget doesn't
have a CompositorBridge
2017-05-17 10:45:33 -04:00
Jeff Muizelaar 0ed20eff4a Revert "Ensure our transaction arrives at the compositor before asking the parent to paint"
This reverts commit e0ec2a72700f.
2017-05-17 10:44:33 -04:00
Jeff Muizelaar b2c7a3fec1 Ensure our transaction arrives at the compositor before asking the parent to paint
This makes UpdateLayerTree synchronous enough to ensure that the layer
transaction from the child reaches the compositor. Given the comment in
http://searchfox.org/mozilla-central/rev/484d2b7f51b7aed035147bbb4a565061659d9278/dom/interfaces/base/nsIDOMWindowUtils.idl#106
this seems to be the original intent of this function anyways. Without this, we
can have a race between the child talking to the compositor and the child
talking to the parent talking to the compositor.

This also changes GetCompositorBridgeChild to work even when the widget doesn't
have a CompositorBridge
2017-05-17 10:42:09 -04:00
Carsten "Tomcat" Book 6bd33f52d5 merge mozilla-inbound to mozilla-central a=merge 2017-05-17 11:16:52 +02:00
Carsten "Tomcat" Book b5eb8a2a1b Backed out changeset be04f96bf78b (bug 1347791) 2017-05-17 08:11:09 +02:00
Carsten "Tomcat" Book 771b1095ef Backed out changeset 37d295d7eec9 (bug 1347791) 2017-05-17 08:11:07 +02:00
JW Wang 39a57b5d00 Bug 1365484 - Remove the call to AbstractThread::GetCurrent() in Benchmark.cpp. r=gerald
See bug 1365483 for the rationale.

MozReview-Commit-ID: ITKtWISQ3A3

--HG--
extra : rebase_source : 0bc0521ad8a00e643dcd762c495b6fb5f4ae3ecb
2017-05-17 13:56:40 +08:00
cku 19af87ab38 Bug 1205475 - Part 1. Hold MAY_HAVE_OPACITY_ANIM/ MAY_HAVE_TRANSFOMR_ANIM information in EffectSet. r=mattwoodrow
FRAME_STATE_BIT of nsFrame and nsINode::mBoolFlags are both full, we need to
find another place to hold MAY_HAVE_OPACITY information.

nsINode::mSlots might be a choice, but since we always use this information in
painting, memory footprint of nsINode will become larger after this change.

So I decide to put this information right in EffectSet. The drawback of storing
this information in EffectSet is, although unnecessary Effect look-up is
prevented, we still need EffectSet property look-up in each time
HasOpacityInternal call, so we need Part 2.

Conceptually, Part 1 and Part 2 are independent.

MozReview-Commit-ID: 6sfBFSHjxQb

--HG--
extra : rebase_source : 394141cec3b44bb352297a0add8f9763d815bddb
2017-05-16 19:11:04 +08:00
Sebastian Hengst e07a98a1b3 Backed out changeset 44635c073692 (bug 1345058) on suspicion of causing intermittent xpcshell failures in toolkit/components/url-classifier/tests/unit/test_bug1274685_unowned_list.js on OS X. r=backout 2017-05-19 13:13:18 +02:00
Jean-Yves Avenard b35c566d48 Bug 1364870: [ffmpeg] only check format if frame has been decoded. r=gerald
The format member isn't set when an audio frame hasn't been decoded yet.

MozReview-Commit-ID: IgUj6bjVzdF

--HG--
extra : rebase_source : bb47fa523384f9a85ee7d0ed5b6de4fe2c73526a
2017-05-19 09:52:12 +02:00
Jean-Yves Avenard fb5df1656c Bug 1366208: Make sure no empty RefPtr are ever stored. r=gerald
Should any error occurred while checking the tracks, we could end up with a null pointer stored in the list of track demuxers.

MozReview-Commit-ID: 13FllESrpbg

--HG--
extra : rebase_source : 335de6320c12f758858e462ed22fc9f9ffe8e305
2017-05-19 11:55:16 +02:00
Andrea Marchesini 7cf1d1c9b0 Bug 1366101 - Remove extra warnings in SessionStorageManage, r=smaug 2017-05-19 17:26:42 +02:00
Jessica Jong efae3978c1 Bug 1365395 - Resetting select should reset option dirtiness too. r=smaug
Also added a extra flag NO_RESELECT, to avoid selecting the same option (with
default value false) again after setting it to its default value, and later no
way of deselecting it because it's dirtiness is set to false already.

MozReview-Commit-ID: L35sBMWwi3m
2017-05-18 02:44:00 -04:00
Andreas Farre 1494e1d3e8 Bug 1364858 - Make sure throttle timer isn't recreated. r=smaug
MozReview-Commit-ID: DU8ukd9JqI6
2017-05-19 16:07:52 +02:00
Boris Zbarsky 682fe478ec Bug 1237503. Add support for [Cached] and [StoreInSlot] things on DOM proxies. r=qdot
The only difference between proxies and non-proxies is that proxies only support
up to MAX_FIXED_SLOTS slots all told (reserved plus private slot).  SpiderMonkey
already has static asserts to make sure we don't ask for too many reserved slots
on a proxy.
2017-05-19 09:24:30 -04:00
Andrea Marchesini 0d165be73b Bug 1366011 - IPCBlob should not have race conditions between Send__delete__ and RecvStreamNeeded, r=smaug 2017-05-19 14:00:31 +02:00
Wes Kocher e9b5549946 Merge m-c to autoland a=merge
a=release IGNORE BAD COMMIT MESSAGES
2017-05-19 15:21:13 -07:00
Boris Chiou 9525862a92 Bug 1334036 - Part 12: Enable off-main thread animations. r=birtles
Remove the unconditional return from FindAnimationsForCompositor(), so
we can check if there is any property running on compositor.
Also, enable a reftest and fix the mochitest expectation:
1. The expectation numbers of test_animations_omta.html in e10s and non-e10s
   are different, so skip non-e10s.
2. We pass all tests in test_animations_omta_start.html with e10s;
   however, got 3 test failures with non-e10s, so skip this file with
   non-e10s.

MozReview-Commit-ID: IuOyAsUYguU

--HG--
extra : rebase_source : 8f8549063f2d1907e95d0bab450e1b6f851f8c84
2017-05-08 11:22:13 +08:00
Boris Chiou 38215cedea Bug 1334036 - Part 11: Trigger animation-only restyle when we handle an event with coordinates. r=birtles,heycam
We need to request an animation-only restyle to force flush all throttled
animations on main thread when we handle an event with coordinates
(e.g. mouse event).

MozReview-Commit-ID: KkjeQVsLgTl

--HG--
extra : rebase_source : 314408062e719e9f52df9a6726e2f3dad817bbef
2017-05-19 16:16:41 +08:00
Boris Chiou 731ab38439 Bug 1334036 - Part 10: Return AnimationValue for BaseStyle. r=hiro
We need to retrieve the correct base style for Servo backend, so change
the return value to AnimationValue and update
KeyframeEffectReadOnly::BaseStyle().

MozReview-Commit-ID: 9FL3h1DLoJt

--HG--
extra : rebase_source : 42284c5fe8b8135910cde44b0815eb475ca2f1cc
2017-05-10 11:06:19 +08:00
Mark Banner 3161044b80 Bug 1363795 - Enable some Mozilla ESLint recommended rules for dom/indexedDB/test - manual fixes. r=bevis
MozReview-Commit-ID: L79wR0OhqMz

--HG--
extra : rebase_source : 8f843dae15241ac9e471d71110d813d76d542c5f
2017-05-10 17:28:55 +01:00
Mark Banner 52a86c565f Bug 1363795 - Enable some Mozilla ESLint recommended rules for dom/indexedDB/test - automatic fixes. r=bevis
MozReview-Commit-ID: I8FKV241Inw

--HG--
extra : rebase_source : 3efeabcfcf6bec378f0d1eca60c84c920e265bc4
2017-05-10 17:19:34 +01:00
Mark Banner e123b6dfb8 Bug 1363795 - Enable some Mozilla ESLint recommended rules for dom/indexedDB/test (no-undef). r=bevis
MozReview-Commit-ID: G6uRTV9i0uX

--HG--
extra : rebase_source : d882067602831bc2a257283aa2e70529568ddf0f
2017-05-10 17:05:18 +01:00
Xidorn Quan f5f29c5f7b Bug 1345697 part 2 - Add CSSKeyframesRule and CSSKeyframeRule base class. r=heycam
MozReview-Commit-ID: GZzZIV3eYgo

--HG--
extra : source : a97464201a12620b28bea580ad7e911fd64f8599
2017-05-19 16:12:34 +10:00
Alastor Wu b961882e7a Bug 1362793 - part2 : add test. r=jwwang
If video gets error after loaded metadata, its duration should still be available.

MozReview-Commit-ID: GvwqX28I04o

--HG--
extra : rebase_source : fe0d41a5a031bc020fd7de200c1de4f59f443485
2017-05-19 12:42:40 +08:00
Alastor Wu 6ad4f8c987 Bug 1362793 - part1 : shouldn't shutdown decoder too early. r=jwwang
The spec says that we don't need to change the ready state when getting the error.
If the ready state is "HAVE_METADATA", it means we could get the video's duration
at that time.

However, if we shutdown decoder too early, we won't get the correct duration.

In addition, since we remove old decoder prior to create new one in the function
HTMLMediaElement::SetDecoder(), we can remove the decoder checking assertion
in HTMLMediaElement::InitializeDecoderForChannel().

MozReview-Commit-ID: CHRJHng8Xm0

--HG--
extra : rebase_source : 32b2114f5b4bce2d777826295959a6ce0701984d
2017-05-19 12:38:17 +08:00
Xidorn Quan fbf065fd31 Backed out changeset 94b5ea8bed5c (bug 1355683)
MozReview-Commit-ID: AJJ7hSuOQNX

--HG--
extra : source : d149b46f49c26eae291cead8dc65d2844452b1b3
2017-05-19 14:57:35 +10:00
JW Wang a80b2eab10 Bug 1365524. P2 - replace use of nsAutoPtr with UniquePtr. r=jya
MozReview-Commit-ID: 8zR7ZRXl1ON

--HG--
extra : rebase_source : 24053b1be0149ffb6e0dc2c1276c487a64787f32
2017-05-18 16:35:49 +08:00
JW Wang dccac51c32 Bug 1365524. P1 - Make MetadataHolder non-ref-counted. r=jya
Since MozPromise supports move-only types, we don't need to make MetadataHolder a ref-counted type.

MozReview-Commit-ID: E7KJuFQNWxe

--HG--
extra : rebase_source : d303c4d119504a289fe60cf5cdd2793ebf58d643
2017-05-18 10:20:44 +08:00
Henry Chang a8cf105ce8 Bug 1345058 - Asynchronously decide if a flash document should be blocked. r=baku,bytesized
Technically speaking, we use the new async API 'nsIURIClassifier.asyncClassifyLocalWithTables'
to replace the old sync API. However, since we cannot guarantee the async call will be done when
we neet its result, we need a sync call as a fallback in this case. This is a sub-optimal
solution and we will be investigating if there's a better solution if the sync call
is used too frequently.

MozReview-Commit-ID: L1uQ2eaYr1e

--HG--
extra : rebase_source : 148e0e85796c932ea85d123092f479e1373ecec9
extra : intermediate-source : 53007a31b576fcd4f16ad6523cccd0a9b90c66f0
extra : source : 1175b9c64b31da2ca2ab88f78488aed6fdc405bc
2017-05-10 15:32:34 +08:00
Wes Kocher 90573b0612 Merge m-c to autoland, a=merge
MozReview-Commit-ID: FYdNNRDmEla
2017-05-18 17:21:30 -07:00
Cykesiopka 73916bae28 Bug 1362735 - Clean up nsIPKCS11 implementation. r=keeler
The changes here:
1. Make it easier to discover where nsIPKCS11 is implemented / make it easier to
   discover what the file implements.
2. Reduce global scope pollution.
3. Make nsCrypto.h no longer unnecessarily exported.
4. Remove NS_CRYPTO_CONTRACTID from nsDOMCID.h, since the define isn't used
   anywhere.
5. Move the definition of NS_PKCS11_CONTRACTID from nsDOMCID.h into PSM code,
   since this contract ID is firmly in PSM territory now.

MozReview-Commit-ID: 2PdFM0mlL4R

--HG--
rename : security/manager/ssl/nsCrypto.cpp => security/manager/ssl/PKCS11.cpp
rename : security/manager/ssl/nsCrypto.h => security/manager/ssl/PKCS11.h
extra : rebase_source : 46667edef5a1d8c910d96dec1125c05bc3477bee
2017-05-19 00:57:46 +08:00
Kirk Steuber e74f1cd513 Bug 1363481 - Add the old attribute value as a parameter to Element::AfterSetAttr r=bz
In order to facilitate the movement of code with side-effects called by Element::SetAttr to Element::BeforeSetAttr and Element::AfterSetAttr, Element::AfterSetAttr should have access to the old value of the attribute. This includes information about whether there was previously a value set or not.

Accomplishing this involved passing an additional argument through functions that find and change the old attribute value in order to ensure that we can differentiate between an empty old value and an absent old value (attribute was not set).

Note that while I tried to ensure that accurate values (and their absence) are reported to Element::AfterSetAttr, I largely ignored SVG. While the old value reported for SVG values should be however accurate the value already being reported to SetAttrAndNotify was, SVG elements do not currently report unset values properly because they will never pass a null pointer to SetAttrAndNotify.

MozReview-Commit-ID: K1mha8CNFZP

--HG--
extra : rebase_source : 42776eb01451d371e4aebcc17fe3dd112c8d268b
2017-05-18 14:09:01 -07:00
Andrew McCreight 21f4802365 Bug 1365417 - mozJSComponentLoader::FindTargetObject() is infallible. r=kmag
MozReview-Commit-ID: Iw4ke16CTKg

--HG--
extra : rebase_source : b2c6f5b0dec1849e1bd814ecdcde78b376ffb8ca
2017-05-16 14:27:50 -07:00
Chris Pearce 61c23b5287 Bug 1355252 - Reject navigator.requestMediaKeySystemAccess if no MediaCapabilities supplied. r=jwwang
As required by step 15 of EME's Get Supported Configuration and Consent algorithm,
https://www.w3.org/TR/encrypted-media/#get-supported-configuration-and-consent

MozReview-Commit-ID: 8c24VrmygBx

--HG--
extra : rebase_source : cccb8c05cefc06396683317f3827885f6b91ba0e
2017-05-17 17:10:14 +12:00
Chris Pearce 5064845788 Bug 1355252 - Don't assume default codecs for MP4 and WebM in EME MediaCapabilities r=jwwang
Step 10 of EME's "Get Supported Capabilities for Audio/Video Type" algorithm
says we can assume default codecs only if a container normatively implies a
specific set of codec and codec constraints. Our code assumes that WebM implies
Vorbis/VP8 and MP4 implies AAC/H.264, but those aren't actually normatively
required by either of these containers' specifications. So we shouldn't assume
these containers imply those codecs.

MozReview-Commit-ID: G9TDOmrjhpp

--HG--
extra : rebase_source : 2f040d76c8cb240359401fe1dc1e3eefa029d77b
2017-05-11 14:23:33 +12:00
Gerald Squelart 0078b05711 Bug 1365538 - Postpone FileBlockCache writes while reading - r=cpearce
While inside FileBlock::Read, the mIsReading flag is set, which in turn
prevents starting the writer task, or makes it exit as soon as possible.
This should help multi-block reads (while data is being received) by giving
them priority, so that that blocking call can return faster.
At the end of Read, the writer task is re-dispatched if needed.

MozReview-Commit-ID: J32tHGFRMNU

--HG--
extra : rebase_source : 8eb3e869888cb1f593d3561191bc6b8c5a53f1bd
2017-05-17 17:10:57 +12:00
Gerald Squelart 97557fcddf Bug 1365538 - Use Mutex instead of Monitor in FileBlockCache - r=cpearce
Since both FileBlockCache Monitor's are only used as locks, we should just use
simple Mutex'es (smaller, faster, and tighter API).

MozReview-Commit-ID: DdNNPN1kFrs

--HG--
extra : rebase_source : 5216929b182d08544b3077374955dfb4ac5b7b16
2017-05-17 16:36:26 +12:00
Wes Kocher 0174ce8ebb Merge inbound to m-c a=merge
MozReview-Commit-ID: AVhTkLAYIv7
2017-05-18 17:13:28 -07:00
Carsten "Tomcat" Book e5197b271a Merge mozilla-central to autoland 2017-05-18 15:00:43 +02:00
Nicolas B. Pierron 9df25fcb32 Bug 1364118 - List JS bytecode cache preferences in all.js. r=mrbkap 2017-05-18 14:12:15 +00:00
Carsten "Tomcat" Book 067f1fa700 Merge mozilla-central to mozilla-inbound 2017-05-18 14:59:47 +02:00
Bob Owen 746d38b25f Bug 1351358 Part 8: Check that reload doesn't cause new process when large allocation browser in tab group. r=mystor 2017-05-18 12:08:58 +01:00
Bob Owen 5f86d7bfd2 Bug 1351358 Part 7: Check that we can form post from file:// URL to http:// URL. r=bz 2017-05-18 12:08:57 +01:00
Shawn Huang b96a934bb0 Bug 1365478 - Use BoolVarCache to cache preferences in XMLHttpRequest, r=baku 2017-05-18 19:02:22 +08:00
Andrea Marchesini fa3e172e3c Bug 1365598 - Updating the Constructor of HTMLOptionElement, r=smaug 2017-05-18 11:56:27 +02:00
Andrea Marchesini c220978a34 Bug 1322316 - Split SessionStorage and LocalStorage implementation - part 11 - SessionStorageCache must have 2 DataSet: default and sessionOnly, r=asuth 2017-05-17 07:01:15 +02:00
Andrea Marchesini ea8fdbd1e1 Bug 1322316 - Split SessionStorage and LocalStorage implementation - part 10 - Move IsSessionOnly() in Storage class, r=asuth 2017-05-17 07:01:15 +02:00
Andrea Marchesini 44f653e013 Bug 1322316 - Split SessionStorage and LocalStorage implementation - part 9 - Move SessionStorageCache in separate files, r=asuth
--HG--
rename : dom/storage/SessionStorage.cpp => dom/storage/SessionStorageCache.cpp
rename : dom/storage/SessionStorage.h => dom/storage/SessionStorageCache.h
2017-05-17 07:01:14 +02:00
Andrea Marchesini 4d15e9cb30 Bug 1322316 - Split SessionStorage and LocalStorage implementation - part 8 - Rename StorageCache to LocalStorageCache, r=asuth
--HG--
rename : dom/storage/StorageCache.cpp => dom/storage/LocalStorageCache.cpp
rename : dom/storage/StorageCache.h => dom/storage/LocalStorageCache.h
2017-05-17 07:01:14 +02:00
Andrea Marchesini 64c5efb312 Bug 1322316 - Split SessionStorage and LocalStorage implementation - part 7 - SessionStorageManager must be a StorageObserverSink, r=asuth 2017-05-17 07:01:14 +02:00
Andrea Marchesini d1223c0fbd Bug 1322316 - Split SessionStorage and LocalStorage implementation - part 6 - Implementation of IsForkOf(), r=asuth 2017-05-17 07:01:14 +02:00
Andrea Marchesini 24bdb3ece3 Bug 1322316 - Split SessionStorage and LocalStorage implementation - part 5 - Shared broadcasting of changes, r=asuth 2017-05-17 07:01:14 +02:00
Andrea Marchesini 9ace5e5eb5 Bug 1322316 - Split SessionStorage and LocalStorage implementation - part 4 - Rename StorageManagerBase to LocalStorageManager, r=asuth
--HG--
rename : dom/storage/StorageManager.cpp => dom/storage/LocalStorageManager.cpp
rename : dom/storage/StorageManager.h => dom/storage/LocalStorageManager.h
2017-05-17 07:01:14 +02:00
Andrea Marchesini 92cdd8d98b Bug 1322316 - Split SessionStorage and LocalStorage implementation - part 3 - SessionStorageManager, r=asuth 2017-05-17 07:01:14 +02:00
Andrea Marchesini 6bb2aff78b Bug 1322316 - Split SessionStorage and LocalStorage implementation - part 2 - Rename Storage.{cpp,h} to LocalStorage.{cpp,h}, r=asuth
--HG--
rename : dom/storage/Storage.cpp => dom/storage/LocalStorage.cpp
rename : dom/storage/Storage.h => dom/storage/LocalStorage.h
2017-05-17 07:01:13 +02:00
Andrea Marchesini 53a425959b Bug 1322316 - Split SessionStorage and LocalStorage implementation - part 1 - SessionStorage, r=asuth 2017-05-17 07:01:12 +02:00
Boris Zbarsky bd29adfa95 Bug 1189822 part 5. Remove the now-unnecessary DOMProxyHandler::ClearExternalRefsForWrapperRelease function. r=peterv
All DOMProxyHandler::ClearExternalRefsForWrapperRelease now does is clear a backpointer to the expando, and that's handled during reflector finalization already.
2017-05-17 00:52:53 -04:00
Boris Zbarsky 0c1348b3ef Bug 1189822 part 4. Fix finalization for DOM overridebuildins proxies to not clear the expando if it's for a different reflector. r=peterv, sfink
This is something that should have happened in bug 1352430 but was missed there.
2017-05-17 00:52:53 -04:00
Boris Zbarsky 9f3244d605 Bug 1189822 part 3. Stop using EnsureExpandoObject in codegen code when we just want to preserver the wrapper for a DOM proxy. r=peterv 2017-05-17 00:52:53 -04:00
Boris Zbarsky 17e91105ca Bug 1189822 part 1. Switch DOMProxyHandler::EnsureExpandoObject to using normal wrapper preservation instead of RegisterDOMExpandoObject. r=peterv 2017-05-17 00:52:52 -04:00
Felipe Gomes c18d8c931c Bug 1364505 - Add a rule to favor plugin fallback content when no srcURI has been specified. r=qDot
MozReview-Commit-ID: 18VcbxHmi0c
2017-05-16 22:56:22 -03:00
Gerald Squelart c2ff0b715a Bug 1365534 - Close temp file in FileBlockCache thread - r=cpearce
Closing the temporary file was done in the FileBlockCache destructor, which is
called on the main thread.

Instead, we are now dispatching a new final task from Close, which will close
the temporary file and then shutdown the thread.
The thread and FD ownerships are transferred to that final task, so that no
more tasks may be unexpectly queued to that thread, and both members can
immediately be reused after Close() returns.

MozReview-Commit-ID: L9djYGhDFn4

--HG--
extra : rebase_source : bedad374454ec94966d10552b8aea26c8997fbb9
2017-05-17 16:00:39 +12:00
Gerald Squelart 42e3e6f1db Bug 1365534 - In non-e10s, open temp file in FileBlockCache thread - r=cpearce
In a parent process, the temporary file was created and opened by calling
NS_OpenAnonymousTemporaryFile() from Init, which was called from the main
thread.
In addition to being called at least once when the first media file is fetched,
it may also be called if caches need to be emptied.

So it should help to move this operation on the FileBlockCache thread, if only
to remove potential background-hang reports from non-e10s configurations.

MozReview-Commit-ID: CjPsHEsL3Ch

--HG--
extra : rebase_source : beaa2793dea82d853669d87c9434139d88562da9
2017-05-17 15:30:32 +12:00
Gerald Squelart 1173cd8973 Bug 1365534 - Remove unneeded IsMainThread assertions - r=cpearce
SetCacheFile, Init, Close, and MoveBlock all had NS_IsMainThread() assertions.
However they all use Monitor's to access member data, so they should be thread-
safe.
(Upcoming patches will actually start using some of these functions from non-
main-threads.)

MozReview-Commit-ID: E1auNEXuoF9

--HG--
extra : rebase_source : 41af7d16f8a9bde5492e864712981a208f3b47be
2017-05-18 16:17:08 +12:00
Mark Banner b5cf40721c Bug 1361760 - Enable some Mozilla ESLint recommended rules for dom/indexedDB/test/unit - manual fixes. r=bevis
MozReview-Commit-ID: 6ThfXUwvojk

--HG--
extra : rebase_source : f76edd5048227d3df7bee48d86aebb2d23828d1f
2017-05-03 17:54:12 +01:00
Mark Banner 9dce8bd209 Bug 1361760 - Enable some Mozilla ESLint recommended rules for dom/indexedDB/test/unit - automatic fixes. r=bevis
MozReview-Commit-ID: 8GVCzudNPiq

--HG--
extra : rebase_source : d924c54b9d5bfe0b22199190c6b9a28feec15622
2017-05-03 17:30:48 +01:00
Boris Chiou 5ab8026281 Bug 1334036 - Part 7: Merge two similiar MaybeUpdateCascadeResults functions. r=birtles
MozReview-Commit-ID: 2NDdQRF3DQ8

--HG--
extra : rebase_source : b6b002e19a459acd644024a78532ab7923e3fc82
2017-05-11 13:26:07 +08:00
Boris Chiou 1e2c865691 Bug 1334036 - Part 5: Implement FFI for finding properties overriding animations. r=birtles,emilio
We need to traverse rule tree to get the important rules, so we will not
override them if they have animations running on compositor.

MozReview-Commit-ID: 67NO2nIcUfq

--HG--
extra : rebase_source : 24a4ea4ca10e00f409d94c81acacb3db72248b3f
2017-05-19 15:58:47 +08:00
Boris Chiou c13897d8fe Bug 1334036 - Part 4: Remove unused UpdateCascadeResults function. r=birtles,hiro
We don't use the public UpdateCascadeResults method, so remove it.

MozReview-Commit-ID: A2lWZaHWHTZ

--HG--
extra : rebase_source : 35a1d77fdeba5a1db74d15f523dba78801b0b48e
2017-05-10 13:46:36 +08:00
Boris Chiou f1f6a5d9dc Bug 1334036 - Part 3: Add a flag to represent we are in pre-traversal. r=birtles
We need this flag to avoid assertion in PostRestyleForAnimation(), which
may be called from MaybeUpdateCascadeResults() in pre-traversal.

MozReview-Commit-ID: 46AfoIUb9o3

--HG--
extra : rebase_source : 3290d9954be43ffaeb94b501ac346622651c452a
2017-05-11 13:08:35 +08:00
Boris Chiou 5561a71847 Bug 1334036 - Part 2: Restyle all elements with animations if there are non-animation restyles. r=birtles
We restyle elements with non-animation restyles even if the animations
are throttled.

MozReview-Commit-ID: Exhd4qVx7su

--HG--
extra : rebase_source : 1632bf949bb60a894372a425fd9173e1b718452d
2017-05-17 11:41:43 +08:00
Iris Hsiao 34b5af799e Merge mozilla-central to mozilla-inbound 2017-05-18 14:16:22 +08:00
Iris Hsiao 77020e4e53 merge mozilla-inbound to mozilla-central a=merge 2017-05-18 12:05:45 +08:00