Commit Graph

51651 Commits

Author SHA1 Message Date
Xidorn Quan
0826f76d6e Bug 1282334 part 2 - Ensure scheduling flush for fullscreen change. r=smaug
The refresh driver may not be triggered regularly if the page is static.
In that case, we need to ensure a flush is scheduled for fullscreen
change, otherwise the page may get stuck.

MozReview-Commit-ID: c5FhqaIUQW

--HG--
extra : source : 10269de859e1a6b532ecd02fafff205365c51f2b
2016-06-30 14:57:30 +10:00
Marcos Caceres
7d0789d464 Bug 1280777 - put window.oninstall behind a pref. r=bkelly r=baku 2016-06-29 19:04:00 +02:00
Xidorn Quan
4cbe3b8fd3 Bug 1279991 - Use [Func=] for EventTarget.mozSystemGroup. r=peterv
MozReview-Commit-ID: B5pMVCUuss9

--HG--
extra : transplant_source : %F7%8A4%2B%B5d_%D8%3AR%19%C4%21%D7%D6%8C%AE%82%FE%1B
2016-06-20 15:49:11 +10:00
Paul Roberts
edd71bdffd Bug 671389 - Extend CSP tests for iframe sandbox with CSP sandbox directive tests r=grobinson
--HG--
extra : rebase_source : 4a37c0828701909f32870c0079b75b5c55144381
2016-06-28 14:06:06 -07:00
Paul Roberts
6e2b739762 Bug 671389 - Tests for CSP sandbox directive. r=grobinson, r=smaug
--HG--
extra : rebase_source : 8906837f0a8f0afdb3ba3db5463265ef62220f92
2016-06-28 14:03:45 -07:00
Paul Roberts
6707fd2982 Bug 671389 - Export document sandbox flags to chrome JS. r=smaug
--HG--
extra : rebase_source : 91463b43748b72283644d25b56242c244cc2a6bf
2016-06-19 12:34:08 -07:00
Paul Roberts
ec18fc5ff7 Bug 671389 - Implement CSP sandbox directive. r=ckerschb r=smaug
--HG--
extra : rebase_source : d9c5f5868c2558a3696cd489674da6f243be11ad
2016-06-29 07:48:44 -07:00
Xidorn Quan
08afc24ae9 Bug 1199529 followup - Remove unused function.
MozReview-Commit-ID: JNQ2iOsc1gM

--HG--
extra : source : 2e3801df5da9b5221886240a95389b31b8904db8
2016-06-30 09:55:41 +10:00
Xidorn Quan
ac2b4d49af Bug 1199529 - Remove :-moz-full-screen-ancestor pseudo-class as well as its state bit. r=smaug
MozReview-Commit-ID: J0hGsLLdyam

--HG--
extra : source : cd7387a33f05453690ba755454686f2469f7b562
2016-06-30 09:24:41 +10:00
Xidorn Quan
737139c4a7 Bug 1216049 part 2 - Remove Element::IsFullScreenAncestor() and replace its trivial callsites. r=smaug
MozReview-Commit-ID: F46GXziXTIR

--HG--
extra : source : 7f41b62bbdc368ae1cc8b85e24c3582868805bfc
2016-06-30 09:24:41 +10:00
Xidorn Quan
227146d238 Bug 1216049 part 1 - Remove the use of Element::IsFullScreenAncestor() in Element::UnbindFromTree(). r=smaug
Since UnbindFromTree() would eventually be called synchronously for
every element unbound, we don't have to check whether the root of
unbound elements is a fullscreen ancestor.

MozReview-Commit-ID: F6mxNsVZ2yl

--HG--
extra : source : ed575daf8d8907ad9b45040423b176d32b9c0a08
2016-06-30 09:24:41 +10:00
Ralph Giles
b9106558db Bug 1282963 - Share CodecDelay prepend code. r=kinetik
Both the WebM and mp4 demuxers need to pack this value into
the the CodecSpecificConfig, so move the shared implementation
to the OpusDecoder, near where it is unpacked so the two can
be kept in sync.

MozReview-Commit-ID: 2pQaruJoAWr
2016-06-29 15:49:04 -07:00
Masatoshi Kimura
e4ae8f8bff Bug 1282038 - Allow allowfullscreen for rewritten YouTube Flash embeds. r=qdot,jst
MozReview-Commit-ID: I8y0gMA5BxE

--HG--
rename : dom/base/test/test_youtube_flash_embed.html => dom/base/test/file_youtube_flash_embed.html
2016-06-24 19:12:53 +09:00
Tom Schuster
4455e57052 Bug 1114580 - Change ESClassValue to an enum class. r=jorendorff 2016-06-30 00:04:56 +02:00
Andrea Marchesini
5cddd3946d Bug 1283061 - HTMLInputElement type=file webkitdirectory/directory should show just 1 button, r=smaug 2016-06-29 18:18:42 +02:00
Ralph Giles
e9e5b9c48f Bug 1267887 - Log short opus codec config blocks. r=kinetik
MozReview-Commit-ID: 8Kgj1cytJtE
2016-06-29 09:13:17 -07:00
Ralph Giles
72ecfe6999 Bug 1267887 - Support Opus in mp4 with the rust demuxer. r=kinetik
Update C++ caller code for for mp4parse 0.4.0. Now feeds data through
a read callback in mp4parse_io.

Hook up the GetTrackInfo method to the rust demuxer results.

Prefer rust demuxer only if there's an Opus track.

Fill in audio and video track metadata. Pass audio codec_specific_config
to the decoder.

With this change sample.mp4 plays.

MozReview-Commit-ID: F8xwWPZZBfZ
2016-06-29 09:12:45 -07:00
Brad Lassey
e680d73b96 bug 1186948 - remove plugins that are click-to-play from navigator.plugins (restricted to Flash) r=jst 2015-08-03 19:24:35 -04:00
Carsten "Tomcat" Book
2ca762b096 merge mozilla-central to mozilla-inbound 2016-06-29 16:20:21 +02:00
Carsten "Tomcat" Book
5c90a99952 merge mozilla-inbound to mozilla-central a=merge 2016-06-29 16:13:05 +02:00
Christoph Kerschbaumer
9e62aecdfc Bug 1278272 - Convert test_csp_upgrade_insecure_request_header.js to channel.asyncOpen2() r=jkt 2016-06-29 13:08:47 +02:00
Christoph Kerschbaumer
1a5fda4297 Bug 1240193 - Skip TYPE_DOCUMENT assertions for loads initiated by JS tests (r=tanvi) 2016-06-29 12:59:45 +02:00
Paul Adenot
576c333825 Bug 1282820 - Change the specification URL in webidl files for the Web Audio API. DONTBUILD. r=smaug
This patch has been written with this command, ran from the root of the tree:

```
gsed -i 's!https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html!https://webaudio.github.io/web-audio-api/!' dom/webidl/*
```
2016-06-29 11:30:13 +02:00
Masayuki Nakano
ef2fb8753d Bug 1282669 Get rid of nsIMEUpdatePreference::DontNotifyChangesCausedByComposition() r=m_kato
I think that we can drop nsIMEUpdatePreference::DontNotifyChangesCausedByComposition(), i.e., nsIMEUpdatePreference::NOTIFY_CHANGES_CAUSED_BY_COMPOSITION because it's now used only by TSFTextStore but TSFTextStore ignores if SelectionChangeDataBase::mCausedByComposition or TextChangeDataBase::mCausedOnlyByComposition is true (for supporting async changes in e10s mode).  So, only issue is, dropping the flag might cause increasing computing TextChangeData cost during composition in TSF mode.  However, now, it's already enough fast and even if it'd cause performance regression, we could add a hack with TextComposition's offset information.  Therefore, we don't need to worry about the performance regression so seriously.

MozReview-Commit-ID: HNT3G4isONj

--HG--
extra : rebase_source : 164231023aa2a17ceab94d92fb49ba0a00dab429
2016-06-28 16:51:59 +09:00
Masayuki Nakano
e1d8dafcd9 Bug 1282668 Get rid of nsIMEUpdatePreference::NOTIFY_SELECTION_CHANGE r=m_kato
Currently, all widgets request selection change notifications to IMEContentObserver.  Additionally, IMEContentObserver needs to listen selection changes for caching latest selection for eQuerySelectedText.  Therefore, it doesn't make sense to keep defining nsIMEUpdatePreference::NOTIFY_SELECTION_CHANGE.

If widgets didn't need selection change notifications, they could just ignore the unnecessary notifications.

Note that all widgets don't need selection change notifications if a plugin has focus and IMEContentObserver cannot observe selection changes in the plugin.  Therefore, if IMEContentObserver is initialized with a plugin, it shouldn't listen selection changes (and doesn't need to notify widgets of selection changes).

MozReview-Commit-ID: FOVFFgA2nOz

--HG--
extra : rebase_source : 3e16d5023835f99f82934e754d2e7db70474f9ee
2016-06-28 15:23:12 +09:00
Mantaroh Yoshinaga
e5f9ec2f98 Bug 1267510 part 6 - Add animation test of gecko dependent. r=birtles
MozReview-Commit-ID: 1ZnXUCECMiH

--HG--
extra : rebase_source : 0ba0ffd392da1eadcf10e22c55dcbf286b218508
2016-06-29 11:14:12 +09:00
Mantaroh Yoshinaga
cdd8a825b4 Bug 1267510 part 4 - Modify WebIDL of DocumentTimeline. r=smaug
The specification of DocumentTimeline interface is as follow.
https://w3c.github.io/web-animations/#the-documenttimeline-interface

MozReview-Commit-ID: jmcJPiVK9i

--HG--
extra : rebase_source : 8d69144c4ae7b241c6e91f075d72607350725b2d
2016-06-29 11:14:11 +09:00
Mantaroh Yoshinaga
8bc07a20e3 Bug 1267510 part 3 - Add DocumentTimeline constructor. r=birtles
MozReview-Commit-ID: CqqDlHQsm0p

--HG--
extra : rebase_source : 4495e289009af105b61413526ffd03200b5bee6b
2016-06-29 11:13:45 +09:00
Mantaroh Yoshinaga
943f1fd84b Bug 1267510 part 2 - Add origin time invariant to DocumentTimeline. r=birtles
MozReview-Commit-ID: Kf7PzzAH9Tj

--HG--
extra : rebase_source : 29f8eb0a6f3a624ff9c5af07f558bd5522847844
2016-06-29 10:59:35 +09:00
Bevis Tseng
2673621c4b Bug 1281377 - In IDBKeyRange.includes(), do not compare the given value with the unset boundary. r=khuey 2016-06-22 13:40:12 +08:00
Christoph Kerschbaumer
ce1e85f2a3 Bug 1119989 - Assert that mPrincipal and doc's Principal are same origin in WebSocket.cpp. r=tanvi 2016-06-21 13:31:56 +02:00
Jonathan Kingston
daa6f72c59 Bug 1279420 - Adding in security.csp.experimentalEnabled pref check to require-sri-for directive in CSP. r=ckerschb
MozReview-Commit-ID: 799ZZoW0YiG

--HG--
extra : transplant_source : %CAC%12%16%C6a%10AP%BEc%85%BA%93Z%7Cq%D43%8D
2016-06-20 19:49:38 +01:00
Ray Lin
e1b4b9465e Bug 985915 - Vertically move up closed caption to not overlap control bar. r=rillian
MozReview-Commit-ID: HzJ3ppbmQnk

--HG--
extra : rebase_source : dda5febc3c799c375e4dbe39cf52f96504740b55
2016-06-27 11:22:15 +08:00
Makoto Kato
c603b26d13 Bug 1203871 - Part 5. Use mozilla::Move for rect array. r=masayuki
To optimize copy of text rect array, we should use mozilla::Move.  Also, after using it, we should mark is invalid result into SetEventResult

MozReview-Commit-ID: HH9H7DhK12

--HG--
extra : rebase_source : 4e02ece73583306c386597bc92e203fa147cfcbc
extra : histedit_source : 726621cdaf262b9d173ae19d505575f10563cc36
2016-06-14 16:52:31 +01:00
Makoto Kato
954a8896f5 Bug 1203871 - Part 4. Implement QUERY_TEXT_RECT_ARRAY to nsIDOMWindowUtils for unit test. r=masayuki,smaug
To test eQueryCharRectArray, I would like to add it to nsIDOMWindowUtils.  Also this require unit test and will require external keyboard support on Android

Masayiki asks me more review to smaug this due IDL change.

MozReview-Commit-ID: 24lvQxXBnRX

--HG--
extra : rebase_source : 30788f550a465dc1ee058bf71d56656a89e364c2
extra : histedit_source : 2d2a2d4309b1fde6416408fe0e0d6b0f313898fb
2016-06-23 10:42:00 +01:00
Carsten "Tomcat" Book
261fe13dcd merge mozilla-inbound to mozilla-central a=merge 2016-06-28 16:09:05 +02:00
Carsten "Tomcat" Book
b043df6724 Backed out changeset a2c87cb66cce (bug 1281115) for causing frequent timeouts in test_ResumeAfterClearing_mp4.html 2016-06-28 13:53:10 +02:00
Wes Kocher
c73d13f1bb Merge m-c to fx-team, a=merge 2016-06-27 14:09:55 -07:00
Wes Kocher
a5dca92e10 Merge inbound to central, a=merge 2016-06-27 14:04:56 -07:00
Wes Kocher
cd463132d8 Backed out 8 changesets (bug 1267510) for causing unacceptably frequent failures in animation mochitests a=backout
Backed out changeset 2a2c42608ff0 (bug 1267510)
Backed out changeset 4cdb7f5b6f7c (bug 1267510)
Backed out changeset e89ec30077a0 (bug 1267510)
Backed out changeset 884243ce4287 (bug 1267510)
Backed out changeset 130a231c5acc (bug 1267510)
Backed out changeset 1ace442f6123 (bug 1267510)
Backed out changeset 058ad3199edb (bug 1267510)
Backed out changeset a7d18185f28d (bug 1267510)

--HG--
rename : testing/web-platform/tests/web-animations/timing-model/timelines/default-document-timeline.html => testing/web-platform/tests/web-animations/interfaces/AnimationTimeline/document-timeline.html
rename : testing/web-platform/tests/web-animations/interfaces/DocumentTimeline/idlharness.html => testing/web-platform/tests/web-animations/interfaces/AnimationTimeline/idlharness.html
2016-06-27 11:49:06 -07:00
bechen
727ebe7fcf Bug 1277192 - Correct the association between Cue and TextTrack. r=rillian
MozReview-Commit-ID: 2B2swKL4iM2

--HG--
extra : transplant_source : %C9%C2%EE%A9%2A%FA%80v%7D%B2s%01%B4%A5%B4%98%F2z%06%D0
2016-06-27 10:41:20 +08:00
Andreas Farre
6e8409f046 Bug 1282375 - Add missing namespace qualifiers. r=baku
MozReview-Commit-ID: DUtnCS8xeFn
2016-06-27 02:47:00 +02:00
Alfredo Yang
b1e6bc8fcb Bug 1282014: check duration when set seek target. r=jwwang
MozReview-Commit-ID: 9ktjaL07sFA

--HG--
extra : rebase_source : 3e80bf8f8b84bb022a3023a40235c14c900cd7bc
2016-06-24 16:00:45 +08:00
Mantaroh Yoshinaga
34329c9de8 Bug 1267510 part 6 - Add animation test of gecko dependent. r=birtles
MozReview-Commit-ID: 1ZnXUCECMiH

--HG--
extra : rebase_source : 8614f8416b005e9a8157427e6d31427461e4431f
2016-06-27 08:09:32 +09:00
Mantaroh Yoshinaga
055d720954 Bug 1267510 part 4 - Modify WebIDL of DocumentTimeline. r=smaug
The specification of DocumentTimeline interface is as follow.
https://w3c.github.io/web-animations/#the-documenttimeline-interface

MozReview-Commit-ID: jmcJPiVK9i

--HG--
extra : rebase_source : 9ceb4cd2211fa08ee51742fbe659aba6864cff86
2016-06-27 08:09:32 +09:00
Mantaroh Yoshinaga
5b4de2dcff Bug 1267510 part 3 - Add DocumentTimeline constructor. r=birtles
MozReview-Commit-ID: CqqDlHQsm0p

--HG--
extra : rebase_source : 6f6f4583ffa57a4375af62c64a76081902b1f361
2016-06-27 08:09:32 +09:00
Mantaroh Yoshinaga
a9ead4dd43 Bug 1267510 part 2 - Add origin time invariant to DocumentTimeline. r=birtles
MozReview-Commit-ID: Kf7PzzAH9Tj

--HG--
extra : rebase_source : 1cb1ff9f06c778d55f8a4a6beedccba946a31fbc
2016-06-27 08:09:31 +09:00
Christoph Kerschbaumer
25f6f710d7 Bug 1100181 - CSP: Enforce connect-src when submitting pings. r=arroway 2016-06-24 15:25:11 +02:00
Olli Pettay
b8eb7f0a9e Bug 1274806, got NS_ERROR_UNEXPECTED error when I call range.extractContents() for DOM element with iframe , r=mats 2016-06-27 01:16:27 +03:00
Arthur Edelstein
54c8149d55 Bug 1281949 - When resisting fingerprinting, spoof screen.orientation
When privacy.resistFingerprinting is enabled, make sure that
screen.orientation.angle -> 0 and
screen.orientation.type -> "landscape-primary"

Also refactors screen.mozOrientation.

Based on https://trac.torproject.org/18958
2016-06-24 09:53:00 -07:00