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

53551 Коммитов

Автор SHA1 Сообщение Дата
Masayuki Nakano 7826a090ce Bug 1286464 part.8 ContentEventHandler::OnQueryTextRectArray() should handle line break before a node r=smaug
Some elements causes a line break before itself. In such case, OnQueryTextRectArray() should append one or two rects for such line breakers.

This patch also implements GetLineBreakerRectBefore(). It computes line breaker rect for the given frame. Even if it's a <br> frame, we cannot use its rect because <br> frame height is computed with line height but we need text's height (i.e., font height) and both height and width are 0 if it's in quirks mode and in non-empty line.  Therefore, this patch computes it with frame's baseline, font's max-ascent and max-descent.

Although, this patch computes a line breaker rect caused by a open tag of a block level element with block frame's rect. However, it shouldn't be used actually as far as possible.  Following patches will kill the path to the hack.

MozReview-Commit-ID: 9cym04j9NH9

--HG--
extra : rebase_source : 3117d68f056dc69550a16f52adade82049ba8277
2016-08-05 13:36:22 +09:00
Masayuki Nakano 85f2cccc4f Bug 1286464 part.7 ContentEventHandler::OnQueryTextRect() should redirect the query event to OnQueryCaretRect() if its query range is empty r=smaug
When eQueryTextRect's query range length is 0 (this may be caused by native IME's bug), it should return caret rect. Therefore, it should redirect such query events to OnQueryCaretRect(). Such IME must want caret rect in such case.

MozReview-Commit-ID: JaUwhw1Cn5G

--HG--
extra : rebase_source : aef43e028fdf19b1e4977ce0d73e3fd700793ba9
2016-07-25 23:19:53 +09:00
Masayuki Nakano d170e03f6c Bug 1286464 part.6 ContentEventHandler::OnQueryCaretRect() should use eQueryTextRect event when it needs to guess the caret rect r=smaug
ContentEventHandler::OnQueryTextRect() is now too complicated. So, we shouldn't duplicate similar code in OnQueryCaretRect(). When it needs to guess a caret rect from a character rect, we shouldn't compute character rect by itself.

MozReview-Commit-ID: 5G4MzQJzmoV

--HG--
extra : rebase_source : 31f2ec578eeb2af82b8af2d938448eb42afd50ea
2016-07-29 00:37:09 +09:00
Masayuki Nakano 20e4c11caf Bug 1286464 part.5 Create ContentEventHandler::EnsureNonEmptyRect() for query various rect event handlers r=smaug
This can kill the duplicated code in a lot of places in ContentEventHandler.

MozReview-Commit-ID: BRpBkbXyeBs

--HG--
extra : rebase_source : 98021e68cd0150149e6417c5a8f91979f5baad76
2016-08-05 13:01:17 +09:00
Masayuki Nakano d8cc4e966b Bug 1286464 part.4 ContentEventHandler::SetRangeFromFlatTextOffset() should set end of the range to after a line break when the range is end between a set of native line breakers r=smaug
Currently, ContentEventHandler::SetRangeFromFlatTextOffset() sets end point to before a line breaker when the end of queried range is between a set of native line breakers (i.e., "\r]\n" on Windows). This causes unexpected empty range (e.g., "[]\n") when it queries a text rect at [\r]\n.

Therefore, it should select an XP line breaker in such case (i.e., the range should be "[\n]" when it queries "[\r]\n" or "\r[\n]").

Note that we don't need to do anything at setting selection start because it's always aligned to before the line breaker.

MozReview-Commit-ID: 6ht8QNAhibY

--HG--
extra : rebase_source : b7933554c2a5bf51b8faabe3a96d006971510e0a
2016-07-28 17:23:47 +09:00
Masayuki Nakano 92692b4cb4 Bug 1286464 part.3 Make static methods, AdjustTextRectNode() and GetFirstFrameInRange(), members of ContentEventHandler r=smaug
This patch makes the static methods members of ContentEventHandler because ContentEventHandler::NodePosition is useful for them.

* nsINode* AdjustTextRectNode(nsINode*, int32_t&) -> NodePosition GetNodeHavingFlatText(nsINode* int32_t)
* nsIFrame* GetFirstFrameInRange(nsRange*, int32_t&) -> FrameAndNodeOffset GetFirstFrameHavingFlatTextInRange(nsRange*)

So, this patch avoids unclear in/out arguments of them.

MozReview-Commit-ID: 7yWeIkRdGj

--HG--
extra : rebase_source : 635cec95ee9f3d73f619186925464ae17010e929
2016-08-05 12:43:40 +09:00
Wes Kocher 88bc8189f9 Merge m-c to autoland, a=merge 2016-08-15 14:54:25 -07:00
bechen 235bef146b Bug 1294142 - TextTrackManager::mTextTracks is null after CC. r=jwwang
MozReview-Commit-ID: 7EU54n1erpZ

--HG--
extra : rebase_source : de8b3461afdfe02402433eeb397103bf05a4f5c4
2016-08-11 18:09:06 +08:00
Kaku Kuo 4ffe57b7d1 Bug 1294656 - apply FastSeek to video files without audio track; r=jwwang
MozReview-Commit-ID: 8r4Ghd9RXbq

--HG--
extra : rebase_source : 165b74bde60d816a864e92dde1bc64f4dc8896fe
2016-08-12 17:37:02 +08:00
Wei-Cheng Pan 192781cb4a Bug 1046166 - Send userContent.css URL to content processes. r=dbaron
MozReview-Commit-ID: 4NTxwYeFGSU

--HG--
extra : rebase_source : 2e6b1c147acd9f38ffe3d8867bc2b98c2e1f6c33
2016-07-21 18:57:35 +08:00
Joel Maher 37e7cf1020 Bug 1291015 - move more clipboard tests and plugin tests to the hardware based m-cl job. r=RyanVM
MozReview-Commit-ID: HJHdiFrNRWM

--HG--
extra : rebase_source : e211c8f0751c7f3a58fac0430bb63c18023c3c07
2016-08-03 15:07:39 -04:00
Sumit Tiwari 823932d68c Bug 1292999 - Replace Iterator() in dom/; r=arai
MozReview-Commit-ID: Ngh6bDGOEZ

--HG--
extra : rebase_source : 9619b7f1f7097b51e8444e62a02a6a39029c8ad8
2016-08-11 22:05:49 -04:00
Bobby Holley c2cbbe5f56 Bug 1295370 - Stop lazily creating the root node in nsTextEditorState::GetRootFrame. r=ehsan
AFAICT this doesn't change behavior, since all the callers of GetRootNode should
occur after we've already called BindToFrame. However, it makes it easier for
future static analysis to see that we don't trigger node creation from
nsTextControlFrame::AppendAnonymousContentTo.
2016-08-17 12:46:53 -07:00
Bobby Holley c0ad82fd11 Bug 1295370 - Add missing include. r=ehsan
Including this header without this causes compilation problems.
2016-08-17 12:46:49 -07:00
Shih-Chiang Chien 2bfa235595 Bug 1153134 - Part 1, establish TLS socket to encrypted control server. r=junior.
MozReview-Commit-ID: BamVPUoQP1r
2016-07-18 18:45:07 +08:00
Kilik Kuo b7644b831d Bug 1077294 - remove NETWORK_LOADED from the test cases. r=jwwang
MozReview-Commit-ID: 7tvTT7DVSqH

--HG--
extra : transplant_source : %DCC%1D%9E%AE%001%EB%06%A4%E5B%80%80%89%8C%E4%FCv%F6
2016-08-08 15:27:14 +08:00
Carsten "Tomcat" Book d9e0b4c565 merge mozilla-inbound to mozilla-central a=merge 2016-08-09 15:44:51 +02:00
Cameron McCormack 4a1bd90eff Comment grammar fix; no bug (DONTBUILD). r=sbaratheon
MozReview-Commit-ID: 2pNBAS1oeSN
2016-08-09 15:10:57 +08:00
Randell Jesup bf711891aa Bug 1271585: Disable peerconnection_addtrack_removetrack_events, not getusermedia rs=jesup 2016-08-08 22:17:42 -05:00
Jeff Walden 5a875fc573 Backed out changeset c3f06ba15fda -- worker setup isn't happening quite as early as it was assumed to occur, so we have impermissible cross-thread happenings occurring sometimes. r=three-to-five-oranges-per-push-per-philor 2016-08-08 19:43:15 -07:00
Matt Woodrow 05bc28c9a1 Bug 1279136 - Specify a format for our D3D9 video device to avoid the driver needing to compute one. r=cpearce 2016-08-09 13:28:51 +12:00
Yura Zenevich 7d6abb5975 Bug 527003 - separating XPCOM parts from nsAccessibilityService. Removing a11y service in favour of using nsAccessibilityService directly. Adding support for a11y service shutdown. r=surkov
MozReview-Commit-ID: KKeywNi3fQb
2016-08-08 20:51:39 -04:00
Wes Kocher 78ec753b6f Merge m-c to inbound, a=merge 2016-08-08 16:29:21 -07:00
Kyle Machulis 28447218eb Bug 1291988 - Allow arbitrary number of axes/buttons in Windows Gamepad API; r=ted r=cleu
MozReview-Commit-ID: HNf5MwwFKEG
2016-08-08 15:58:05 -07:00
Olli Pettay 06c2ac8e59 Bug 1292699 - Add a small helper to deal with cases when native side needs to ensure that slow script dialog shows up, r=bholley
--HG--
extra : rebase_source : ab0fc332e5b54921d7a05e0c008c65b29947ee27
2016-08-08 23:29:05 +03:00
Jean-Yves Avenard 57bcb09a90 Bug 1128069: [MSE] P6. Call NotifyDataArrived from MediaDecoder. r=gerald
Calling NotifyDataArrived from each sourcebuffer will cause multiple unnecessary NotifyDataArrived to the MediaFormatReader when it could only be done once. Additionally, it ensures that the media duration is updated prior to the reader actioning on the notification.

Extra: mEnded is only ever accessed on the main thread, there's no need to make it atomic.

MozReview-Commit-ID: IKq7IRBbWic

--HG--
extra : rebase_source : 6cf18b1f71f5ee6c8e82c73bdd2857e783f343b8
2016-08-08 13:56:38 +10:00
Jean-Yves Avenard 41f815e7fa Bug 1128069: [MSE] P5. Adjust currentTime to end position in MediaDecoder. r=jwwang
The duration in the MediaDecoder is the canonical. It has as such a more up to date value than the mirror.
Under some circumstances, the MDSM may have reached the end of media playback before the duration mirror had time to update. So perform the currentTime adjustment in the MediaDecoder instead.

MozReview-Commit-ID: 1RFr4mT5LpA

--HG--
extra : rebase_source : 3151d86561b53d5d1922c7c16f042792bfd47283
2016-08-08 13:49:51 +10:00
Jean-Yves Avenard 5b0b40ef42 Bug 1128069: [MSE] P4. Do not adjust duration to what data we may have been seen in the past. r=jwwang
With MediaSource, the duration is always known and exact. It is entirely possible that we have played data at some point, then removed that data and adjusted the duration.

MozReview-Commit-ID: HZe2yXtQfIL

--HG--
extra : rebase_source : be1b57575c28142d6b3091b23894a7e4e1c9b405
2016-08-05 16:03:01 +10:00
JW Wang 2d84b3c90e Bug 1291633 - Don't call MediaDecoder::SeekingStarted when visibility is Suppressed. r=kaku
MozReview-Commit-ID: 15YOmFCoXGp

--HG--
extra : rebase_source : b5269f7a4883ff08dbfdb797df9eb78334315108
2016-08-03 17:18:54 +08:00
Karl Tomlinson 1a85ce6cf7 bug 1288702 suppress all GTK3 deprecated warnings r=glandium
Functions deprecated in GTK3 are often used for compatibility with GTK2
builds.

MozReview-Commit-ID: F220phw3wVO

--HG--
extra : rebase_source : 128e885652b184c5a7916378d9cebb067ab97eb0
2016-07-27 13:17:00 +12:00
JW Wang 6d1ce3ea1a Bug 1292449. Part 3 - Assert IsShutdown() is false in MediaDecoder::Shutdown(). Shutdown() should be only called once. r=kaku
MozReview-Commit-ID: 6iFKkTTb7qD

--HG--
extra : rebase_source : 773cdf796a11a0ca7b6577c348ec411c422a0342
2016-08-01 16:11:20 +08:00
JW Wang 862e36e74c Bug 1292449. Part 2 - Assert IsShutdown() is false in NotifyBytesDownloaded(). r=jya
1. Called from SourceBuffer::AppendDataCompletedWithSuccess() where mMediaSource->GetDecoder() is not null.
2. Called from MediaDecoder::ResourceCallback::NotifyBytesDownloaded() which is disconnected in Shutdown().

MozReview-Commit-ID: 103pxZP02Bb

--HG--
extra : rebase_source : 72e8a9c29d5ca6a4932de3a119497b05bfadbe68
2016-08-01 16:01:16 +08:00
JW Wang 63442be770 Bug 1292449. Part 1 - Assert IsShutdown() is false in NotifyDataArrived(). r=jya
1. Called from SourceBuffer::AppendDataCompletedWithSuccess() where mMediaSource->GetDecoder() is not null so this must happen before Shutdown().
2. Called from SourceBuffer::Ended() where mMediaSource->GetDecoder() is not null.
3. Called from MediaDecoder::ResourceCallback::TimerCallback() which is canceled in Disconnect().

MozReview-Commit-ID: 5dqVuOcrABy

--HG--
extra : rebase_source : a134f552c4fae2317cbf93dc1e861199d4c91346
2016-08-01 15:58:10 +08:00
JW Wang aace2f0c8d Bug 1290809 - Remove MediaDecoder::IsEndedOrShutdown(). r=gerald
MozReview-Commit-ID: 4XUcJyQlmfk

--HG--
extra : rebase_source : fc2a044ca2776744ef0fff32300faf647666e73c
2016-08-01 15:22:32 +08:00
JW Wang 8ce157e06f Bug 1290364 - clear mOwner in Shutdown(). r=cpearce
MozReview-Commit-ID: 2CsYKcSrEOJ

--HG--
extra : rebase_source : 3fd60ea1dbbf57c168fa8cebb9bb5594ee8c19fb
2016-07-29 14:44:22 +08:00
Mantaroh Yoshinaga ae2e808431 Bug 911987 part 4 - Add onwebkitanimation** and onwebkittransitionend event handlers. r=smaug
Add the onwebkit prefixed event handler attributes of CSS-Animation
and CSS-Transition.

We need to support both content attributes and IDL attributes like
onanimation** attributes.

We should support attribute of lower-case and mixed-case. But currently
Gecko defined as mixed-case only. [1][2]

[1] https://dxr.mozilla.org/mozilla-central/rev/6608e5864780589b25d5421c3d3673ab30c4c318/dom/base/nsContentUtils.cpp#747
[2] https://dxr.mozilla.org/mozilla-central/rev/6608e5864780589b25d5421c3d3673ab30c4c318/dom/events/EventNameList.h#977

So we can't find the related Atom when we set content attributes as lower-case. [3]

[3] https://dxr.mozilla.org/mozilla-central/rev/6608e5864780589b25d5421c3d3673ab30c4c318/dom/base/nsGlobalWindow.h#818

In this patch, I add two Atoms in order to support mixed and lower case.

MozReview-Commit-ID: 8nOfVGQ8h7R

--HG--
extra : rebase_source : fe954eb5c79d305660bdc3ef95b14e55cdb34534
2016-08-05 14:12:38 +09:00
Mantaroh Yoshinaga bd81fb18be Bug 911987 part 1 - Add onanimation** and ontransitionend event handlers. r=masayuki,smaug
This event handler is defined CSS-Animation and CSS-Transition.
https://drafts.csswg.org/css-animations-1/#event-animationevent
https://github.com/w3c/csswg-drafts/pull/344

MozReview-Commit-ID: ARgsibd7wST

--HG--
extra : rebase_source : 7b4f366a8661508185d60ead9ce68fb234959577
2016-08-05 08:12:14 +09:00
Chris Pearce b4c569d8b8 Bug 1293101 - Refactor CDMCaps.cpp to treat keys marked as output-restricted as usable in all cases. r=gerald
This is a follow up from bug 1289623, as I missed a few cases in that bug.

MozReview-Commit-ID: DM7FtVSZUo3

--HG--
extra : rebase_source : 4fd7ae93b1418ded54f0c21a50a654fc962d4892
2016-08-08 10:41:38 +12:00
Bryce Van Dyk fe6ac1173a Bug 1292396 - Replace Marionette context string literals with symbolic variables. r=automatedtester
MozReview-Commit-ID: 9tRUYmVsaXO

--HG--
extra : rebase_source : 2776e4984543f9f6fec69d1b33c36bd8de073013
2016-08-03 14:21:27 +12:00
Bryce Van Dyk fde8c66d92 Bug 1292394 - Update external media test dependencies. r=automatedtester
Bump deps. Previous deps resulting in failures with current builds.

MozReview-Commit-ID: BUEfDmmE00E

--HG--
extra : rebase_source : a5437a86a875531945c558fab9427c6c31059289
2016-08-01 13:43:29 +12:00
Wes Kocher 005ac12647 Merge fx-team to m-c a=merge 2016-08-07 00:16:15 -07:00
Phil Ringnalda d88f9174f3 Merge m-i to m-c, a=merge 2016-08-06 23:34:37 -07:00
Phil Ringnalda c4f467ea52 Back out 6 changesets (bug 1290116) for a 70% chance of WinXP debug timing out in test_subscription_change.html
Backed out changeset aa715b19902b (bug 1290116)
Backed out changeset c9922c014310 (bug 1290116)
Backed out changeset 44b50089c079 (bug 1290116)
Backed out changeset ca998a8cbe48 (bug 1290116)
Backed out changeset 74ceee4dc2f4 (bug 1290116)
Backed out changeset 90006dffbe5b (bug 1290116)
2016-08-06 18:58:23 -07:00
Wes Kocher 0201cd41e9 Merge m-c to fx-team, a=merge 2016-08-05 14:06:23 -07:00
Wes Kocher e62bb051c9 Merge inbound to central, a=merge 2016-08-05 14:01:56 -07:00
Carsten "Tomcat" Book a826042a1d Merge mozilla-central to mozilla-inbound 2016-08-05 12:03:44 +02:00
Carsten "Tomcat" Book cf611bec79 merge mozilla-inboudn to mozilla-central a=merge 2016-08-05 12:01:14 +02:00
Carsten "Tomcat" Book 99002c6dcd merge fx-team to mozilla-central a=merge 2016-08-05 12:00:16 +02:00
Carsten "Tomcat" Book 931e6d0f57 Backed out changeset c0b0e54e156e (bug 1290634) for webgl regressions 2016-08-05 11:00:13 +02:00
Carsten "Tomcat" Book f40d4e1782 Backed out changeset 4b7cd5b39cca (bug 1290634) 2016-08-05 11:00:00 +02:00
Randell Jesup fd8a8c3c74 Bug 1290075: Always Init() the VoiceEngine when enumerating audio inputs r=jib 2016-08-04 21:24:05 -04:00
Andrew McCreight c054f8ec15 Bug 1292289, part 3 - Remove dependency of Console on xpcprivate.h. r=mrbkap
This file only uses functions on nsIXPConnect, so it can get it from
nsContentUtils and stop including xpcprivate.h, which eliminates
another file from being rebuilt when xpcprivate.h gets touched.

MozReview-Commit-ID: AT5Khu0vkyf

--HG--
extra : rebase_source : fa40afb7df9afe1dede714c111947e4e85aee34e
2016-08-04 11:35:13 -07:00
Jean-Yves Avenard 91fecd5799 Bug 1292157: Ignore preload value when dealing with MediaSource originated URI. r=jwwang
MozReview-Commit-ID: CN9w9XJj2YR

--HG--
extra : rebase_source : 60c809ab8d65f9abfe75ec524a1ae2ecbd6b7f00
2016-08-05 11:15:50 +10:00
Carsten "Tomcat" Book 0cd188453a Merge mozilla-central to autoland 2016-08-05 12:15:20 +02:00
Wes Kocher 1d69e33b22 Merge m-c to autoland, a=merge 2016-08-05 14:06:46 -07:00
Aaron Klotz 2bbffe8138 Bug 1273635: Enable alertable waits in content process main thread; r=jimm
MozReview-Commit-ID: 2qGdGj41M0n

--HG--
extra : rebase_source : e404ba43a47151d38330052c9ac93e7b252ad0f4
2016-08-03 11:54:35 -06:00
Carsten "Tomcat" Book 1f5f6ac888 Merge mozilla-central to fx-team 2016-08-04 16:06:09 +02:00
Carsten "Tomcat" Book 389a3e0817 merge mozilla-inbound to mozilla-central a=merge
--HG--
rename : mobile/android/base/java/org/mozilla/gecko/GeckoAppShell.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoAppShell.java
rename : mobile/android/base/java/org/mozilla/gecko/gfx/GeckoLayerClient.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/gfx/GeckoLayerClient.java
rename : mobile/android/base/java/org/mozilla/gecko/gfx/LayerRenderer.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/gfx/LayerRenderer.java
rename : mobile/android/base/java/org/mozilla/gecko/gfx/PanningPerfAPI.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/gfx/PanningPerfAPI.java
2016-08-04 15:55:50 +02:00
Jim Chen 4b8a8da17c Bug 1289208 - Add native methods to AndroidGamepadManager; r=snorp
Add native method calls to AndroidGamepadManager to replace the gamepad
events in GeckoEvent. Implement those calls in AndroidGamepad.cpp. The
jni/Refs.h change is necessary to fix a compile error when using
jni::BooleanArray.
2016-08-04 09:16:05 -04:00
Jim Chen e5eac1e286 Bug 1289208 - Move gamepad methods out of GeckoAppShell; r=snorp
Move gamepad methods called by native code out of GeckoAppShell and into
AndroidGamepadManager.
2016-08-04 09:16:05 -04:00
Boris Zbarsky d7821950f4 Bug 1278583 part 5. Switch DOM code from using hasInstance class hooks to using Symbol.hasInstance. r=peterv 2016-08-03 18:32:07 -07:00
Boris Zbarsky ba5962ed70 Bug 1278583 part 4. Rip out the now-unused construct hook holder bits in bindings. r=peterv 2016-08-03 18:32:06 -07:00
Boris Zbarsky ab204ba73e Bug 1278583 part 3. Make static stuff (static attributes, methods, constants) actually work on globals. r=peterv 2016-08-03 18:32:06 -07:00
Bobby Holley 83d2ff11d1 Bug 1291891 - Switch to NS_WARNING for unimplemented <style scoped>. r=emilio 2016-08-03 18:30:57 -07:00
Wes Kocher d8f6cabd88 Backed out 4 changesets (bug 1290116) for w-e10s(5) failures on linux 64 opt
Backed out changeset 3e95eb4821b8 (bug 1290116)
Backed out changeset d6a336a1fa97 (bug 1290116)
Backed out changeset c50283f07370 (bug 1290116)
Backed out changeset db014dc92795 (bug 1290116)
2016-08-03 17:17:49 -07:00
Wes Kocher ae855cdb28 Merge m-c to inbound, a=merge 2016-08-03 16:47:07 -07:00
Wes Kocher 9605851be0 Backed out 7 changesets (bug 1231764) for apparently causing linux debug wpt bustage
Backed out changeset 4b71272c92cf (bug 1231764)
Backed out changeset 234d8a930afa (bug 1231764)
Backed out changeset f9b204c2f5a7 (bug 1231764)
Backed out changeset f933119e57e4 (bug 1231764)
Backed out changeset e3af0b1d3473 (bug 1231764)
Backed out changeset 643b03aae1dd (bug 1231764)
Backed out changeset a945dbf63410 (bug 1231764)

--HG--
extra : rebase_source : e71360fa4b5e3e74859c82e74e183e13e6211c4c
2016-08-03 16:27:06 -07:00
Ben Kelly 7a325c9d30 Bug 1290116 P3 Delay removing registration until active worker is idle. r=asuth 2016-08-03 07:14:33 -07:00
Ben Kelly 423e5f0f72 Bug 1290116 P2 Clean up ServiceWorkerManager::StopControllingADocument(). r=asuth 2016-08-03 07:14:33 -07:00
Ben Kelly a8f08a2715 Bug 1290116 P1 Expose a ServiceWorkerRegistrationInfo::IsIdle() method. r=asuth 2016-08-03 07:14:33 -07:00
Jeff Gilbert 974f4e1ea8 Bug 1291083 - Explicitly make WEBGL_depth_texture formats filterable. - r=mtseng
MozReview-Commit-ID: DaVpIHZZ0cI
2016-08-03 12:24:47 -07:00
Jeff Gilbert 901ccc3aeb Bug 1291083 - Textures with depth-compare should be filterable. - r=mtseng
This also makes depth-textures follow filtering rules, whereas before we
allowed filtered depth textures for WEBGL_depth_texture.

MozReview-Commit-ID: LxepCb4WEkr
2016-08-03 12:24:39 -07:00
Sebastian Hengst 9a11ee24d8 Backed out changeset b531c8bff6e9 (bug 1201363) for timeout in GTest VP8VideoTrackEncoder.FrameEncode. r=backout 2016-08-03 19:33:55 +02:00
Sebastian Hengst 120f502e2a Backed out changeset 3851902daa94 (bug 1201363) 2016-08-03 19:33:25 +02:00
Sebastian Hengst 70a5dca1bd Backed out changeset 263cc3ad83c2 (bug 1201363) 2016-08-03 19:33:25 +02:00
Sebastian Hengst 1fe0a1cfb8 Backed out changeset 91e5ccbeef19 (bug 1201363) 2016-08-03 19:33:25 +02:00
Sebastian Hengst f0fd44f274 Backed out changeset 0744bfe6854f (bug 1201363) 2016-08-03 19:33:25 +02:00
Sebastian Hengst f4671c3b11 Backed out changeset 4111e388bd90 (bug 1201363) 2016-08-03 19:33:25 +02:00
Sebastian Hengst e7ab762e14 Backed out changeset 7c07c4aa3569 (bug 1201363) 2016-08-03 19:33:24 +02:00
Sebastian Hengst 253063065c Backed out changeset 64b256cf2807 (bug 1201363) 2016-08-03 19:33:24 +02:00
Sebastian Hengst 0c81148980 Backed out changeset ecee67ed1ddf (bug 1201363) 2016-08-03 19:33:24 +02:00
Bobby Holley 19f8c5faa5 Bug 1291390 - Make parsing mode an immutable property of the StyleSheet. r=heycam 2016-08-03 10:26:14 -07:00
Bobby Holley 1dfd6a8070 Bug 1291390 - Hoist the ParsingMode getter to the superclass and give it a special binary name for WebIDL. r=bholley,r=heycam
In the next patch we want to introduce an accessor called ParsingMode, which conflicts with this one.
2016-08-03 10:26:14 -07:00
Michael Layzell 420156f40f Bug 1271819 - Rewrite browser_focus_steal_from_chrome to avoid race condition, r=enndeakin 2016-08-03 13:25:06 -04:00
JW Wang cff471d7a8 Bug 1283724 - throttle notifications from stochastic network activity to save computation of buffer ranges. r=jya
MozReview-Commit-ID: BRBv2Flqu3u

--HG--
extra : rebase_source : fe28566c79f2f31a5054e4cda35d96c938985299
2016-08-01 14:39:39 +08:00
Jarda Snajdr e8b9017f0d Bug 1286281 - Part 2: Add static chrome-only method to create server-side WebSocket to WebIDL r=baku
MozReview-Commit-ID: CNEkI9UP2mw
2016-07-29 07:01:00 -07:00
Jarda Snajdr b49ae6fec7 Bug 1286281 - Part 1: Make the nsITransportProvider interface scriptable r=sicking
MozReview-Commit-ID: LCNmwWKTiJt
2016-07-27 08:46:00 -07:00
Tobias Schneider 5c1c1c37f3 Bug 1290749 - Skip plugin content plugin of no URI specified. r=francois 2016-07-26 10:59:41 -07:00
JW Wang b67ae659b3 Bug 1291185 - Remove the DECODER_WARN_HELPER trick. r=bechen
MozReview-Commit-ID: 7U1p0VOvmY3

--HG--
extra : rebase_source : 207a2a5546b780c3173644becb961cf0f96ecc54
2016-08-02 16:45:28 +08:00
Alexandre Lissy 0af5b943b6 Bug 1284674 - Remove NUWA r=cyu
MozReview-Commit-ID: GyMRNzOBKw6

--HG--
extra : rebase_source : 293af1cd55f2035ce6a99f4ebf144059c32a2b8f
2016-08-02 14:54:00 +02:00
Carsten "Tomcat" Book 6b13b3cde6 Merge mozilla-central to autoland 2016-08-03 17:08:48 +02:00
Carsten "Tomcat" Book eeacfbeff0 merge mozilla-inbound to mozilla-central a=merge 2016-08-03 17:03:41 +02:00
Carsten "Tomcat" Book 57bfee62b0 merge fx-team to mozilla-central a=merge 2016-08-03 17:01:16 +02:00
Tom Schuster 473d3dc22d Bug 1197324 - Fix new warnings. r=froydnj 2016-08-03 14:37:31 +02:00
Neil Deakin 2d46e97dbd Bug 1284914, add support in html for the ondragexit attribute, r=smaug 2016-08-03 07:45:46 -04:00
Neil Deakin 147caccc2c Bug 1194027, add a flag to select elements to indicate if the parent process has the popup open, r=mrbkap 2016-08-03 07:45:46 -04:00
Carsten "Tomcat" Book 0c9ef42915 Merge mozilla-central to fx-team to fix bustage 2016-08-02 17:49:13 +02:00
Carsten "Tomcat" Book 740bb4ed16 Backed out changeset eb7f310f128d (bug 1274626) for breaking unified builds 2016-08-02 17:47:47 +02:00
Carsten "Tomcat" Book 1ec9279c2a Backed out changeset a722438c2be6 (bug 1274626) 2016-08-02 17:47:31 +02:00
Carsten "Tomcat" Book 2bcc300cca Backed out changeset 12e3777de139 (bug 1274626)
--HG--
rename : dom/media/platforms/ReorderQueue.h => dom/media/platforms/apple/ReorderQueue.h
2016-08-02 17:47:29 +02:00
Carsten "Tomcat" Book c5f40500b4 Backed out changeset 222b4883bf79 (bug 1274626) 2016-08-02 17:47:27 +02:00
Carsten "Tomcat" Book d647d056e2 Backed out changeset c5b79d4a6913 (bug 1274626) 2016-08-02 17:47:26 +02:00
Carsten "Tomcat" Book 5a3c68ee72 Backed out changeset 221e8d2b180e (bug 1274626) 2016-08-02 17:47:24 +02:00
Carsten "Tomcat" Book cc6b6404c0 Merge mozilla-central to fx-team 2016-08-02 17:13:42 +02:00
Carsten "Tomcat" Book bd81ddd0b0 merge mozilla-inbound to mozilla-central a=merge 2016-08-02 17:09:31 +02:00
Carsten "Tomcat" Book 02adb43791 Backed out changeset 726ee2bcfdef (bug 1201363) for static build bustage 2016-08-02 12:54:13 +02:00
Carsten "Tomcat" Book 7e324b6cdb Backed out changeset b018ce9d1484 (bug 1201363) 2016-08-02 12:53:59 +02:00
Carsten "Tomcat" Book 72c34b88b3 Backed out changeset 488e4a5e859b (bug 1201363) 2016-08-02 12:53:57 +02:00
Carsten "Tomcat" Book 44057dc31a Backed out changeset cc59ebb35b26 (bug 1201363) 2016-08-02 12:53:56 +02:00
Carsten "Tomcat" Book f4f5b9bafc Backed out changeset a6bafaf6bbe6 (bug 1201363) 2016-08-02 12:53:54 +02:00
Carsten "Tomcat" Book 27cb7f4d79 Backed out changeset 06c0a7eb7bc6 (bug 1201363) 2016-08-02 12:53:53 +02:00
Carsten "Tomcat" Book 2854eb5e13 Backed out changeset 1c8af95cd440 (bug 1201363) 2016-08-02 12:53:51 +02:00
Carsten "Tomcat" Book 1d6d29d0c6 Backed out changeset 5b926a6a6e4e (bug 1201363) 2016-08-02 12:53:49 +02:00
Carsten "Tomcat" Book 1cddcd1b7d Backed out changeset e350d8c25d2e (bug 1201363) 2016-08-02 12:53:46 +02:00
Masayuki Nakano 78b4a701e3 Bug 1259665 part.3 Rename WidgetPointerEvent::isPrimary to mIsPrimary r=smaug
MozReview-Commit-ID: LfKzpwCjMcz

--HG--
extra : rebase_source : d4fd41db8ff4dc39a7156f2f509aae89d1c126a1
2016-08-03 17:34:53 +09:00
Masayuki Nakano b38025c056 Bug 1259665 part.2 Rename WidgetPointerEvent::height to mHeight r=smaug
MozReview-Commit-ID: Ji4X53dByiH

--HG--
extra : rebase_source : 0e79a45d34142453e79f2412eddb7abc132e11d7
2016-08-03 17:23:56 +09:00
Masayuki Nakano 924e7f39e5 Bug 1259665 part.1 Rename WidgetPointerEvent::width to mWidth r=smaug
MozReview-Commit-ID: 3V5gyOvPuQi

--HG--
extra : rebase_source : 6adf7908e8a84bc2cfb86d8f7823662f1b72170f
2016-08-03 17:18:04 +09:00
Masayuki Nakano 91380f92d1 Bug 1259672 Rename InternalFormEvent::originator to mOriginator r=smaug
MozReview-Commit-ID: 1RoHVeziNr3

--HG--
extra : rebase_source : 85c63944e477603cee3a36e435c83890ea037715
2016-08-03 17:06:10 +09:00
JW Wang 32c54a1d7b Bug 1290028 - Remove the check for IsShutdown() from MediaDecoder::OwnerHasError(). r=gerald
MozReview-Commit-ID: Cg5UoFngxFr

--HG--
extra : rebase_source : afece4f66454cf7b2c68ede4b5802fc445be96fa
2016-07-28 17:21:09 +08:00
JW Wang 64c1909e96 Bug 1290780. Part 9 - Assert IsShutdown() is false in DurationChanged(). r=kaku
1. The watch manager disconnect callbacks in Shutdown().
2. SetExplicitDuration() asserts !IsShutdown().
3. SetInfinite() asserts !IsShutdown().

MozReview-Commit-ID: FwWf4m5OAOP

--HG--
extra : rebase_source : 374e9c4ef31abf56f0be76826c98cd852bef1e7a
2016-07-28 16:57:09 +08:00
JW Wang 453c175228 Bug 1290780. Part 8 - Assert IsShutdown() is false in SetExplicitDuration(). r=kaku
It is called from MediaSourceDecoder::SetMediaSourceDuration() which asserts !IsShutdown().

MozReview-Commit-ID: LF8rRPZhkA2

--HG--
extra : rebase_source : 886778f70d00e8670a203e9d322e442c9d117a72
2016-07-28 16:54:53 +08:00
JW Wang 95cf484548 Bug 1290780. Part 7 - We don't want to trigger DurationChanged(). So just set mExplicitDuration without calling SetExplicitDuration(). r=jya
MozReview-Commit-ID: 5yWLhteUgQt

--HG--
extra : rebase_source : 9a17eccfc572d92317f7859d84e15e7b973e8fcd
2016-07-28 16:50:10 +08:00
JW Wang 887d693c49 Bug 1290780. Part 6 - Assert IsShutdown() is false in SetMediaSourceDuration(). r=jya
1. It is called from SetInitialDuration() when mMediaSource is non-null which happens before Shutdown() which clears |mMediaSource|.
2. It is called from MediaSource::SetDuration() which happens before MediaSourceDecoder::Shutdown() for |mDecoder| is non-null.
3. It is called from MediaSource::DurationChange() where |mDecoder| is non-null.

MozReview-Commit-ID: 56AmWRLkkiv

--HG--
extra : rebase_source : 1f9443ac3670b12401ffa5ad397638c095e72566
2016-07-28 15:52:30 +08:00
JW Wang e7c35e7871 Bug 1290780. Part 5 - Assert IsShutdown() is false in PlaybackEnded() since the callback is disconnect in Shutdown(). r=kaku
MozReview-Commit-ID: hYJjKZFhA6

--HG--
extra : rebase_source : 706b770c7f11fa53cdb2bb9f9eeae89a146601a6
2016-07-28 15:16:32 +08:00
JW Wang e073bd7c27 Bug 1290780. Part 4 - Assert IsShutdown() is false in SeekingStarted() since the callback is disconnected in Shutdown(). r=kaku
MozReview-Commit-ID: 7Q9EAhy3O7w

--HG--
extra : rebase_source : a68a9d50d0c2c669dd4c5ae0897e06c1538811d1
2016-07-28 15:13:31 +08:00
JW Wang 3d1ea356e3 Bug 1290780. Part 3 - Assert IsShutdown() is false in UpdateLogicalPositionInternal(). r=kaku
1. It is called from OnSeekResolved() which asserts !IsShutdown().
2. It is called from UpdateLogicalPosition which asserts !IsShutdown().

MozReview-Commit-ID: J8iuHdUamLS

--HG--
extra : rebase_source : 97215383aa7c409f8b63f5a6726b81df53252227
2016-07-28 15:09:03 +08:00
JW Wang b6a261b9f3 Bug 1290780. Part 2 - Assert IsShutdown() is false in MediaDecoder::OnSeekResolved() since the seek request is disconected in Shutdown(). r=kaku
MozReview-Commit-ID: Cc0iF3Lc7d2

--HG--
extra : rebase_source : 107592fc8f3a5a301599f43ebbc1c7c7c708f017
2016-07-28 15:04:36 +08:00
JW Wang cb02478192 Bug 1290780. Part 1 - Assert IsShutdown() is false in MediaDecoder::UpdateLogicalPosition(). r=kaku
1. Callbacks from the watch manager are disconnected in Shutdown().
2. It is called from MediaOmxCommonDecoder::NotifyOffloadPlayerPositionChanged() which will not happen after Shutdown().
3. It is called from MediaOmxCommonDecoder::ResumeStateMachine() which returns early when IsShutdown() is true.

MozReview-Commit-ID: COmPFaQzNTq

--HG--
extra : rebase_source : ac88698c66f4586b00fe62ad4dcdbb1cb4ce8542
2016-07-28 14:43:50 +08:00
Andrew Comminos 395c323784 Bug 1284742 - Replace profile directory traversal with a generated directory tree in dom/filesystem/test/test_basic.html. r=mystor
MozReview-Commit-ID: HSX9i5KDDEj

--HG--
extra : rebase_source : 7f95f6e9ca59f839c01be1cd75847aaa60cdf81c
2016-08-02 15:48:13 -04:00
Jan-Ivar Bruaroey a512138827 Bug 1290629 - Make default cam, which is supposed to model a real cam, nonetheless independent of webrtc includes. r=jesup
MozReview-Commit-ID: 2RiRxXCNHv6

--HG--
extra : rebase_source : 9f80a1a2170f54495d6fea3ebbb593e9b360cf6a
2016-08-01 15:36:34 -04:00
Jan-Ivar Bruaroey d3b37a02ba Bug 1213441 - Remove pc.removeStream properly. r=jesup,smaug
MozReview-Commit-ID: CvmDVGUVMN2

--HG--
extra : rebase_source : 5bd3a0f17af4160d714cf090bbc4131c22e2d4f5
2016-08-01 16:18:38 -04:00
Chris Pearce 7261eef5aa Bug 1289942 - Make MediaKeyStatusMap.get() return undefined for unknown keys. r=bz
The spec requires the MediaKeyStatusMap.get(keyId) function to return an 'any'
type, which is undefined for known keys, or a MediaKeyStatus enum value for
known keys.

https://w3c.github.io/encrypted-media/#idl-def-mediakeystatusmap


MozReview-Commit-ID: 3TOFYLacZSc

--HG--
extra : rebase_source : cd067f545cdbd9352ba64fea914128201b458d9c
2016-07-28 14:03:01 +12:00
JW Wang 6c38af47f2 Bug 1289976. Part 10 - Remove the IsShutdown() check from MediaDecoder::UpdateDormantState(). r=kaku
1. It is called from DormantTimerExpired(). The timer is canceled in Shutdown().
2. It is called from NotifyOwnerActivityChanged() which happens before Shutdown().
3. It is called from Play() which happens before Shutdown().
4. It is called from Seek() which happens before Shutdown().

MozReview-Commit-ID: EnKHF61FBXf

--HG--
extra : rebase_source : 04df59b6722c8340e5163a00eb916442799cfcf1
2016-07-27 10:56:46 +08:00
JW Wang 6ca3a55b72 Bug 1289976. Part 9 - Remove the IsShutdown() check from MediaDecoder::StartDormantTimer(). r=kaku
We don't need to check IsShutdown() which is a subset of |mPlayState != PLAY_STATE_PAUSED && !IsEnded()|.

MozReview-Commit-ID: BjYoLOLuPfC

--HG--
extra : rebase_source : 0d04b30a8bf955faed4907f77f0da29e0ccc011d
2016-07-27 10:52:01 +08:00
JW Wang 85e1a73473 Bug 1289976. Part 8 - Remove the IsShutdown() check from UpdateReadyState(). The callback is disconnected by the watch manager in Shutdown(). r=kaku
MozReview-Commit-ID: xVSWdj1Q0y

--HG--
extra : rebase_source : 948f622c399e1c072b4c15730a7a8c5fbd2ec696
2016-07-27 10:59:23 +08:00
JW Wang 31dcc3816b Bug 1289976. Part 7 - Remove the IsShutdown() check from MediaDecoder::Seek(). r=kaku
1. It is called from DurationChanged() which returns early when IsShutdown() is true.
2. It is called from Play() when IsEnded() is true.

MozReview-Commit-ID: Ixy5OMZHxIm

--HG--
extra : rebase_source : 4cd7229084c6af8b7123ee6c85156ef4932308f3
2016-07-27 10:49:14 +08:00
JW Wang f3ffeca57a Bug 1289976. Part 6 - Remove the IsShutdown() check from MediaDecoder::RemoveMediaTracks(). r=kaku
1. It is called from ChangeState() when IsEnded() is true.
2. It is called from OnMetadataUpdate(). The callback is disconnected in Shutdown().

MozReview-Commit-ID: 8m4jtcl91hT

--HG--
extra : rebase_source : 0988128ec6d05f07ab7b072cc70a9c2970c829c5
2016-07-27 10:44:43 +08:00
JW Wang a2d26a630a Bug 1289976. Part 5 - Remove the IsShutdown() check from MediaDecoder::Pause(). r=kaku
1. Pause() is called from HTMLMediaElement and happens before Shutdown().
2. Pause() is called from SetPlaybackRate() which is called from HTMLMediaElement.

MozReview-Commit-ID: DDr7Bg8jkF2

--HG--
extra : rebase_source : 8b8a4fdc914d0bce7572d9a1ccb0f530bdba062c
2016-07-27 10:42:20 +08:00
JW Wang 348c35b5dd Bug 1289976. Part 4 - Remove the IsShutdown() check from MediaDecoder::NotifyOwnerActivityChanged() which happens before Shutdown(). r=kaku
MozReview-Commit-ID: 9tWLW4JE0Uv

--HG--
extra : rebase_source : 9f33359f5d8833a8f90319303a96cf029460f3ac
2016-07-27 10:38:25 +08:00
JW Wang 00ce40fb6c Bug 1289976. Part 3 - Remove the IsShutdown() check from MediaDecoder::FireTimeUpdate(). r=kaku
FireTimeUpdate() is only called from UpdateLogicalPositionInternal() which returns early when IsShutdown() is true.

MozReview-Commit-ID: 4GZwrI85aXj

--HG--
extra : rebase_source : 9d7cbd571fd794369c833723ea5fc50a26380e51
2016-07-27 10:36:09 +08:00
JW Wang 61a6cb705b Bug 1289976. Part 2 - Remove the IsShutdown() check from MediaDecoder::DumpDebugInfo() which happens before Shutdown(). r=kaku
MozReview-Commit-ID: HU3ybjFZMsE

--HG--
extra : rebase_source : 15d9adb47be449fdaca6a37587e70ff4f1d013bf
2016-07-27 10:33:50 +08:00
JW Wang 0a748cd015 Bug 1289976. Part 1 - Remove the IsShutdown() check from MediaDecoder::ConstructMediaTracks(). r=kaku
1. ConstructMediaTracks() is called from ChangeState() when |mPlayState == PLAY_STATE_PLAYING|.
2. ConstructMediaTracks() is called from MetadataLoaded() which asserts |!IsShutdown()|.

MozReview-Commit-ID: 6OaPYcCOCii

--HG--
extra : rebase_source : 9db9e841fe8a0d797a39cd527abf4f4e95b67131
2016-07-27 10:31:14 +08:00
Matt Woodrow f323872778 Bug 1292032 - Clean up VideoData static constructor methods. r=jya
--HG--
extra : rebase_source : e025c9a15ad00e970f9027f72c78b5d6effbc301
2016-08-04 15:31:52 +12:00
Michael Layzell 2513a13f51 Bug 1291741 - Relax setTimeout throttling in background tabs when an AudioContext is present, rather than only when audio is playing, r=bkelly 2016-08-04 16:53:58 -04:00
Eugen Sawin 92fabd41a0 Bug 1291543 - [1.1] Accept partial information from VBR headers. r=jya 2016-08-04 22:20:26 +02:00
David Anderson 9e49bc37bb Introduce gfxVars for sharing graphics variables across processes. (bug 1288259 part 2, r=jrmuizel,billm)
--HG--
extra : rebase_source : cbac742f7165a2fbdec3e4d1179c9ed49324579f
2016-08-04 11:33:42 -07:00
Terrence Cole e57d650fcf Bug 1291928 - Expose JSSavedStack's stack before returning; r=bz 2016-08-03 16:12:51 -07:00
Decky Coss b69450d2ea Bug 1287655 - place textarea/input cursor at end of text when initialized; r=smaug
MozReview-Commit-ID: 2srGXFmla07

--HG--
extra : transplant_source : %3Cn%D30%86%24%82%90%29%191%9C%8A%EB%0D%5D%E2%20%22%E5
2016-07-21 14:52:49 -04:00
Thomas Wisniewski 2869846cdb Bug 918752 - Override Accept request header to */* in XMLHttpRequest::Send() if it is not specified by the user. r=jst 2016-08-04 12:33:36 -04:00
Shih-Chiang Chien 2abb975dbb Bug 1254484 - resolve relative presentation URL. r=smaug.
MozReview-Commit-ID: CF3WNGorwH1
2016-08-03 15:35:36 +08:00
Ethan Lin 51818f44f0 Bug 1289975 - Reuse canvas buffer when setting the same dimension. r=nical 2016-08-02 23:00:00 +02:00
Markus Stange ebb461c874 Bug 1012752 - Snap scrolled area to layer pixels. r=tnikkel
We want the maximum scroll position to be aligned with layer pixels. That way
we don't have to re-rasterize the scrolled contents once scrolling hits the
edge of the scrollable area.

Here's how we determine the maximum scroll position: We get the scroll port
rect, snapped to layer pixels. Then we get the scrolled rect and also snap
that to layer pixels. The maximum scroll position is set to the difference
between right/bottom edges of these rectangles.
Now the scrollable area is computed by adding this maximum scroll position
to the unsnapped scroll port size.
The underlying idea here is: Pretend we have overflow:visible so that the
scrolled contents start at (0, 0) relative to the scroll port and spill over
the scroll port edges. When these contents are rendered, their rendering is
snapped to layer pixels. We want those exact pixels to be accessible by
scrolling.

This way of computing the snapped scrollable area ensures that, if you scroll
to the maximum scroll position, the right/bottom edges of the rendered
scrolled contents line up exactly with the right/bottom edges of the scroll
port. The scrolled contents are neither cut off nor are they moved too far.
(This is something that no other browser engine gets completely right, see the
testcase in bug 1012752.)

There are also a few disadvantages to this solution. We snap to layer pixels,
and the size of a layer pixel can depend on the zoom level, the document
resolution, the current screen's scale factor, and CSS transforms. The snap
origin is the position of the reference frame. So a change to any of these
things can influence the scrollable area and the maximum scroll position.
This patch does not make us adjust the current scroll position in the event
that the maximum scroll position changes such that the current scroll position
would be out of range, unless there's a reflow of the scrolled contents. This
means that we can sometimes render a slightly inconsistent state where the
current scroll position exceeds the maximum scroll position. We can fix this
once it turns out to be a problem; I doubt that it will be a problem because
none of the other browsers seems to prevent this problem either.

The size of the scrollable area is exposed through the DOM properties
scrollWidth and scrollHeight. At the moment, these are integer properties, so
their value is rounded to the nearest CSS pixel. Before this patch, the
returned value would always be within 0.5 CSS pixels of the value that layout
computed for the content's scrollable overflow based on the CSS styles of the
contents.
Now that scrollWidth and scrollHeight also depend on pixel snapping, their
values can deviate by up to one layer pixel from what the page might expect
based on the styles of the contents. This change requires a few changes to
existing tests.
The fact that scrollWidth and scrollHeight can change based on the position of
the scrollable element and the zoom level / resolution may surprise some web
pages. However, this also seems to happen in Edge. Edge seems to always round
scrollWidth and scrollHeight upwards, possibly to their equivalent of layout
device pixels.

MozReview-Commit-ID: 3LFV7Lio4tG

--HG--
extra : rebase_source : 3e4e0b60493397e61283aa1d7fd93d7c197dec29
extra : source : d43c2d5e87f31ff47d7f3ada66c3f5f27cef84a9
2016-08-04 23:51:58 -04:00
Jeff Gilbert b25f577275 Bug 1290634 - Use idealUnpack with CopyTexImage, and always respec now that ZeroTextureData doesn't support respec. - r=mtseng
MozReview-Commit-ID: HYzTfzLxF3X
2016-08-04 20:04:56 -07:00
Jeff Gilbert bbed19189c Bug 1290634 - Remove unnecessary respecifyTexture arg from ZeroTextureData. - r=mtseng
MozReview-Commit-ID: 52VirsA4eCQ
2016-08-04 20:04:53 -07:00
Nils Ohlmeier [:drno] db340fd6d5 Bug 1278113: disabled audio stream analyzer debug canvas output r=padenot
MozReview-Commit-ID: CJTnzVyugMH
2016-07-20 12:22:23 -07:00
Nathan Froyd 6b2618fb44 Bug 1231764 - part 6 - build rust code via cargo; r=chmanchester
This patch is really two separate changes.

The first change is that rust crates are large, standalone entities that
may contain multitudes of source files.  It therefore doesn't make sense
to keep them in SOURCES, as we have been doing.  Moving to use cargo
will require a higher-level approach, which suggests that we need a
different, higher-level representation for Rust sources in the build
system.

The representation here is to have the build system refer to things
defined in Cargo.toml files as the entities dealt with in the build
system, and let Cargo deal with the details of actually building things.
This approach means that adding a new crate to an existing library just
requires editing Rust and Cargo.toml files, rather than dealing with
moz.build, which seems more natural to Rust programmers.  By having the
source files for libraries (and binaries in subsequent iterations of
this support) checked in to the tree, we can also take advantage of
Cargo.lock files.

The second is that we switch the core build system over to building via
cargo, rather than invoking rustc directly.

We also clean up a number of leftover things from the Old Way of doing
things.  A number of tests are added to confirm that we'll only permit
crates to be built that have dependencies in-tree.
2016-08-03 19:40:41 -04:00
Nathan Froyd d66b8b184a Bug 1231764 - part 5 - add a Cargo.toml for the dom/media/gtest/ code; r=chmanchester
We are going to need a Cargo.toml for all Rust code in the tree, no
matter how trivial.
2016-08-03 19:40:41 -04:00
Carsten "Tomcat" Book 423bdfd2fd Merge mozilla-central to mozilla-inbound
--HG--
rename : dom/media/platforms/apple/ReorderQueue.h => dom/media/platforms/ReorderQueue.h
2016-08-03 17:08:41 +02:00
Thomas Wisniewski 909bb6c298 Bug 1285036 - Part 9: Clean up the XHR send() API endpoints, and how nsIVariants are handled. r=baku 2016-08-01 14:28:01 -04:00
Thomas Wisniewski 4de0c5c74c Bug 1285036 - Part 8: Change XHR open() and related code to follow the spec more closely. r=baku 2016-07-20 13:02:36 -04:00
Thomas Wisniewski 30e540bdd6 Bug 1285036 - Part 7: Change SetRequestHeader() and related header code to follow the spec more closely. r=baku 2016-08-02 12:50:10 -04:00
Benoit Girard 8e9fe1fc3e Bug 1290505 - Remove E10S NPAPI plugin windows special case. r=jimm
MozReview-Commit-ID: 7F7JeVmudjq

--HG--
extra : rebase_source : 2dd32728fabd7008ec519ce42ca6d1e2e339cdab
2016-07-29 16:39:50 -04:00
JW Wang 3204b02ef5 Bug 1289993. Part 2 - Call DiscardOngoingSeekIfExists() in MediaOmxCommonDecoder::CallSeek() as we do in MediaDecoder::CallSeek(). r=kaku
MozReview-Commit-ID: I1eTehXEWNv

--HG--
extra : rebase_source : 4b4af3becad7d285d09c58a09095f07d875648f8
2016-07-28 14:29:42 +08:00
JW Wang 3ac12f3e3d Bug 1289993. Part 1 - Disconnect seek requests when shutting down MediaDecoder. r=kaku
MozReview-Commit-ID: 6av1OiJatCr

--HG--
extra : rebase_source : 66891c09e3c35029e7d8f1e605b026968019e353
2016-07-28 14:28:26 +08:00
Bryce Van Dyk dc49694098 Bug 1290284 - Centralise string comparisons for H264 and VPX detection. r=cpearce
Remove string comparisons to determine from mime types if content is VPX or
H264. Replace with calls to VPXDecoder::IsVPX or MP4Decoder::IsH264 to
centralise such logic.

This patch introduces MP4Decoder:IsH264, and moves the similar functionality out
of H264Convertor for the sake of consistently having these functions in
decoders.

MozReview-Commit-ID: 5nfYusYHrUR

--HG--
extra : rebase_source : c013c4ebe28d5afedbb91ddfffadb40d23fd0ee3
2016-07-29 14:12:54 +12:00
Iris Hsiao 36c9d770e1 Backed out changeset 41138b630cdc (bug 1293145) for nsCOMPtr crash \
CLOSED TREE
2016-08-09 14:21:22 +08:00
Gerald Squelart 5ab439ad36 Bug 1293145 - Simulate video-decode-suspend for telemetry purposes - r=kamidphish
After a video has been playing while hidden for a certain time, count the time
until it is not hidden anymore (or it has finished playing), to test-drive how
much decoding time would have been saved by the video-decode-suspend feature.

Note that this is done inside HTMLMediaElement by simulating what should happen
in the MDSM, because instrumenting the MDSM itself and friends would have been
harder and more intrusive.

MozReview-Commit-ID: LdxhPtmoXeA

--HG--
extra : rebase_source : c4063d7c39b56e62e4f397bc21ef889ed14307c8
2016-08-08 10:14:39 +08:00
Gregory Szorc a1cbf6ab70 Backed out changeset 7545a33148f1 (bug 1287397) for Valgrind failures 2016-08-08 19:34:41 -07:00
Anthony Jones 4e052f4a73 Bug 1287397 - Fix wave chunk size overflow; r=cpearce
MozReview-Commit-ID: Dg1OT13urxe

--HG--
extra : rebase_source : 60f57edf43f7fb7c83b6db25dffb240993ec5523
2016-08-09 13:34:58 +12:00
Bryce Van Dyk 77cdb2b31b Bug 1211959 - Tests check if video has started using played range. r=automatedtester
Previously the tests would check if playback had started by looking at the first
recorded time, and then looking at the current time. If there were a lag it was
possible for the first recorded time to be at the end of the video (i.e.
playback already finished), in which case the video playing would not register.
This patch instead uses the played ranges from the video element. Now so long as
there is a non-empty played range we trust playback started.

MozReview-Commit-ID: 5C39A42KRdj

--HG--
extra : rebase_source : e4e8a35df3bac4c9e7765272acb6300b44b45d4e
2016-08-05 12:38:54 +12:00
Masayuki Nakano 24e9e4a700 Bug 1286464 part.2 GetFirstFrameInRange() should return node offset since it may return different node's frame r=m_kato
GetFirstFrameInRange() uses AdjustTextRectNode() which may return different node before retrieving the result frame. Therefore, the caller may need offset in the new node.

MozReview-Commit-ID: 2AQU5WfahT9

--HG--
extra : rebase_source : c753d34dc2691da2ec25c9f5a6fe17d67af24a70
2016-07-14 22:57:00 +09:00
Masayuki Nakano bc5856516b Bug 1286464 part.1 Cleaning up ContentEventHandler::OnQueryTextRectArray() r=m_kato
MozReview-Commit-ID: BDLkQLrzoUI

--HG--
extra : rebase_source : c1b0074bde0580be466259f82d0756ff18e29f53
2016-07-14 22:46:37 +09:00
Dan Minor 37a83aa8e1 Bug 1113634 - Update mLastComputedValue in AudioEventTimeline when skipping events of same time; r=karlt
We need to update mLastComputedValue while processing events that occur at the
same time rather than just skipping over them.

MozReview-Commit-ID: LuxSK6PHFHv

--HG--
extra : rebase_source : be323da2a50ea32838aef322267115d153a14c3d
2016-08-08 16:00:35 -04:00
Alastor Wu 422258bfec Bug 1283417 - part2 : notify media element when cue's display states changed. r=bechen
MozReview-Commit-ID: 4bzS62wveGq

--HG--
extra : rebase_source : 0f9f202877b47142ad5833ebd92b4d4a5f7fc017
2016-08-09 16:58:52 +08:00
Alastor Wu d5a9e0c263 Bug 1283417 - part1 : implement function to notify cue's display states changed. r=bechen
MozReview-Commit-ID: AF2S2UOLCt1

--HG--
extra : rebase_source : a49043e2114cba053168b5e3f52f3846c456b2fa
2016-08-09 16:43:07 +08:00
Carsten "Tomcat" Book d32ae51802 Merge mozilla-central to autoland 2016-08-09 15:49:48 +02:00
Gerald Squelart d78a374b2d Bug 1293145 - Simulate video-decode-suspend for telemetry purposes - r=kamidphish
After a video has been playing while hidden for a certain time, count the time
until it is not hidden anymore (or it has finished playing), to test-drive how
much decoding time would have been saved by the video-decode-suspend feature.

Note that this is done inside HTMLMediaElement by simulating what should happen
in the MDSM, because instrumenting the MDSM itself and friends would have been
harder and more intrusive.

MozReview-Commit-ID: LdxhPtmoXeA

--HG--
extra : rebase_source : 151e1f1383ab5c445eb8c957be8363340cdc4ab1
2016-08-08 10:14:39 +08:00
Sebastian Hengst d307cb8dab Backed out changeset 4361c6f3b915 (bug 1289968) for failing encrypted-media-generate-request-disallowed-input.html. r=backout 2016-08-08 15:28:12 +02:00
Henrik Skupin 97aa5e356f Bug 1292465 - Bump firefox-puppeteer to 51.0.0. r=automatedtester
MozReview-Commit-ID: 1xEqCi0LQVQ

--HG--
extra : rebase_source : b26be31fabd4d699fc95f8d3e938bf92699a40a7
2016-08-05 11:41:48 +02:00
Bryce Van Dyk 3055f0dfe7 Bug 1293149 - Mediasource URL check should check for 'blob' instead of 'mediasource'. r=automatedtester
This behaviour changed as part of Bug 1279493, and the tests should be updated
to reflect this.

MozReview-Commit-ID: oITf0hVjKk

--HG--
extra : rebase_source : 26f54e0ac49a2f27f364c75a63851df5a85ce18f
2016-08-08 15:25:06 +12:00
cku 6aaf11c433 Bug 1288812 - Part 2. Correct test cases. r=heycam
MozReview-Commit-ID: 3Bdv2Lmg9kQ

--HG--
extra : rebase_source : 41bc2ee77a6768dcb358aa6b820336a0436c53de
2016-08-06 06:07:50 +08:00
Chris Pearce a41f94398b Bug 1289968 - Ensure ClearKey doesn't assume keyIds can only be 16 bytes. r=gerald
I also added more testing around ClearKey's base64 decoding, since that affected
how keyIds were handled.

MozReview-Commit-ID: 2UH1JNT4NC3

--HG--
extra : rebase_source : 8e2c861e6b030d7e4a1378d3fafed7630324d940
2016-08-01 16:28:10 +12:00
Masayuki Nakano 8a489e63dd Bug 1257446 part.2 ContentEventHandler::OnQueryTextRectArray() shouldn't set empty rect to the result r=m_kato
Returning empty rects for eQueryTextRectArray causes each dispatcher needing to check every rect. It doesn't make sense especially compared with eQueryTextRect.

So, it should ensure that empty rect won't be returned to dispatchers.

MozReview-Commit-ID: CpMqqihzSDf

--HG--
extra : rebase_source : 0343e2eecf5e25043d260157cf4d8b0874e0ceb6
2016-07-12 20:28:06 +09:00
Ben Tian 232f8ad41b Bug 1264769 - Part 2: Dispatch loadstart event for image loading. r=hsivonen
--HG--
extra : rebase_source : b64b9f2dfe8d112bd0cde5ad2fe9f11aa5807c9d
2016-07-12 10:56:42 +08:00
Ben Tian 7d5abfc007 Bug 1264769 - Part 1: Dispatch loadend event for image loading. r=hsivonen
--HG--
extra : rebase_source : 8843a2a3c56c74dc1838f2da3c8251783e20f295
2016-08-16 12:01:12 +08:00
dimi 9f35496517 Bug 1269253 - Blank error page in iframe with insecure connection. r=smaug
MozReview-Commit-ID: 8WCI8cgRZIo

--HG--
extra : rebase_source : fda416da14b9d60937cd5d86976b443d92d1e0bb
2016-08-16 09:47:14 +08:00
Decky Coss 08a416fd4e Bug 1283915 - Preserve input selection properties after type change. r=smaug
MozReview-Commit-ID: 7xJKc3vIpTY

--HG--
extra : rebase_source : 6fa36a607efb1e8eec1cc8efbb174d622aa0281f
2016-07-27 11:04:53 -04:00
Brian Birtles eac25e3163 Bug 1286476 part 2 - Respect the playback rate when calculating phase boundaries; r=hiro
This implements the spec change in 21de090dac

The spec change refers to a binary 'animation direction' flag. Instead of that,
however, we just pass the playback rate along and use it inside
GetComputedTimingAt since this seems simpler.

Also, this patch moves the implementation of
KeyframeEffectReadOnly::GetComputedTiming from the header file into the .cpp
file. This is because with this change, GetComputedTiming needs to call
mAnimation->PlaybackRate() and so mozilla::dom::Animation needs to be a complete
type. However, simply including Animation.h doesn't work because of a cyclic
dependency between KeyframeEffect.h and Animation.h. We might be able to fix
this later but since yet-to-land bug 1049975 moves this code around a lot, I'd
rather not touch it too much just now.

MozReview-Commit-ID: 1h6XRh4xmfI
2016-08-17 08:28:41 +09:00
Brian Birtles 0d8b0d4fda Bug 1291665 - Unregister from refresh driver in DocumentTimeline::Unlink; r=hiro 2016-08-17 09:53:22 +09:00
Nicholas Nethercote a54e0fd248 Bug 1295053 (part 9) - Don't use NS_METHOD for dom/ functions. r=froydnj.
These don't need __stdcall on Win32.

--HG--
extra : rebase_source : 93aa569789dab107137c5493d1c86acc6701329b
2016-08-16 12:12:30 +10:00
Randall Barker 983cc6b2d1 Bug 1291373 - [geckoview] part 4, Remove GeckoEvent and AndroidGeckoEvent r=jchen 2016-08-16 14:33:43 -07:00
Randall Barker c1e108f7ad Bug 1291373 - [geckoview] part 1, Remove JavaPanZoomController (JPZ) from mobile/android r=snorp 2016-08-16 14:33:43 -07:00
Tom Schuster 7314ad853b Bug 1292655 - Limit BatteryManager chargingTime/dischargingTime precision. r=baku 2016-08-16 22:56:21 +02:00
Ethan Lin 41b10604fb Bug 1290628 - Change the assertion rule to prevent assert with large number. r=lsalzman 2016-08-02 19:47:00 +02:00
Kaku Kuo c79eb6f91f Bug 1290371 - handle files with audio and video tracks but no samples at all; r=jya
So, we have 4 boolean variables and here is the truth table.
Case 1, 2, 3, 4, 7, 8, 10 and 12 are not possible to happen.

Then, the remaining cases could be clustered into three categories:
(1) Case 5, 9 and 13: no sample is demuxed at all, return 0.
(2) Case 6, 11, 14 and 15: either audio or video is able to be demuxed, return the known value.
(3) Case 15: both audio and video are demuxed, return the minimum of the values.


For simplifying the logic, I will initialize the audioStartTime and videoStartTime
to be INFINITY if we don't have the first-demuxed sample, otherwise, initialize
them to be the real first-demuxed sample's time.

Then, the final calculation will be:
(1) Case 5, 9 and 13: the minimum of two INFINITY values is still INFINITY, return 0.
(2) Case 6, 11, 14 and 15: return the minimum of one real first-demuxed-time and the INFINITY.
(3) Case 15: return the minimum of two real first-demuxed-time values.

Case   HasAudio   HasVideo   HasAudioSample   HasVideoSample    ExpectedResult
---------------------------------------------------------------------------------------------------
1         F          F             F                 F          not possible
2         F          F             F                 T          not possible
3         F          F             T                 F          not possible
4         F          F             T                 T          not possible
---------------------------------------------------------------------------------------------------
5         F          T             F                 F          return 0
6         F          T             F                 T          return video sample
7         F          T             T                 F          not possible
8         F          T             T                 T          not possible
---------------------------------------------------------------------------------------------------
9         T          F             F                 F          return 0
10        T          F             F                 T          not possible
11        T          F             T                 F          return audio sample
12        T          F             T                 T          not possible
---------------------------------------------------------------------------------------------------
13        T          T             F                 F          return 0
14        T          T             F                 T          return videoSample
15        T          T             T                 F          return audioSample
16        T          T             T                 T          return min(auidoSample, videoSample)

MozReview-Commit-ID: ANsYDth7slJ

--HG--
extra : transplant_source : %DAj%1A%EC%19%82%7B%B3%05%FE%21%04a%16%9A%9F%18x1%95
2016-08-03 16:51:29 +08:00
John Dai 996b1f61aa Bug 1289872 - Fixed the warning log spams due to bug 1275833. r=wchen 2016-08-04 04:22:00 +02:00
Shih-Chiang Chien a99142a2c5 Bug 1287717 - Part 2, close receiver page while loading fail. r=smaug.
MozReview-Commit-ID: Dogham2LmHG
2016-08-04 09:46:14 +08:00
Shih-Chiang Chien 90424f760d Bug 1287717 - Part 1, enter closed state while fail to connect. r=smaug.
MozReview-Commit-ID: L3gacVfSlcd
2016-08-02 18:40:00 +02:00
Andrew McCreight 0d2ed01bc4 Bug 1287204 - Fix typo in nsNodeUtils::CloneAndAdopt(). r=bz 2016-08-04 16:28:15 +02:00
Jessica Jong b92c3511ea Bug 1283023 - Implement the step attribute for <input type=month>. r=smaug
--HG--
extra : rebase_source : 730c799687da786279efcd3134777b7208567e9e
2016-08-03 02:54:00 +02:00