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

49721 Коммитов

Автор SHA1 Сообщение Дата
Christoph Kerschbaumer 232720eac5 Bug 1263286 - Move base-uri CSP check into SetBaseURIUsingFirstBaseWithHref. r=bz 2016-04-26 11:48:29 +02:00
Paul Adenot 32e1303937 Bug 1243857 - Enable duplex audio for Windows/WASAPI. r=jesup
MozReview-Commit-ID: 4h1JTGSHr2v
2016-03-30 17:21:16 +02:00
ctai 4e89100cf8 Bug 1266644 - Rename DOMMediaStream:: CreateXXXStream to DOMMediaStream:: CreateXXXStreamAsInput. r=jesup r=pehrsons
MozReview-Commit-ID: 4X0Q1XuENa4
2016-04-25 11:43:27 +08:00
ctai 864b8381af Bug 1266644 - Remove redundant step. r=jesup r=pehrsons
MozReview-Commit-ID: KAyRvjP2Elq
2016-04-25 11:48:10 +08:00
ctai a06045fa0f Bug 1266644 - Update the comments to reflect the latest code base. r=jesup r=pehrsons r=padenot 2016-04-25 15:00:43 +08:00
ctai 5d4238b60d Bug 1266644 - Simple refactoring. r=jesup r=pehrsons
Update some comments, rename.

MozReview-Commit-ID: A747Fd8mH3D
2016-04-07 11:44:00 +08:00
ctai 1bcafe7412 Bug 1266644 - Unlock mMutex earlier. r=jesup r=pehrsons
MozReview-Commit-ID: 3Pf3yxwQlHI
2016-04-25 11:59:39 +08:00
ctai e22bc567de Bug 1266644 - Remove unused codes. r=jesup r=pehrsons
MozReview-Commit-ID: 4Ib1qWhoBw3
2016-04-25 11:54:54 +08:00
ctai 8fcb64e480 Bug 1266644 - Rename StreamBuffer to StreamTracks. r=jesup r=pehrsons
Rename StreamBuffer to StreamTracks. We still need a place to keep the track information in every MediaStream, even the StreamBuffer::Track::mSegment is empty.

--HG--
rename : dom/media/StreamBuffer.cpp => StreamTracks.cpp
rename : dom/media/StreamBuffer.h => StreamTracks.h
2016-01-26 10:49:01 +08:00
Stone Shih 2f90ac66c5 Bug 1266637 - Followup to Bug1240436 - Add test case to load service worker script with special characters. r=khuey 2016-04-21 10:01:00 +08:00
J.C. Jones fa14e077d5 Bug 1265211 - Fix intermittent U2F Test r=mgoodwin
- The u2futil.js script's verifySignature method was causing an intermittent
  in test_frame_register_sign.html due to incomplete ASN.1 decoding. Since
  we're calready pulling in an ASN.1 parsing library, this changes that code to
  do a complete parse and santizize, which should cover all cases.

MozReview-Commit-ID: 9kDWT2KUFdq

--HG--
extra : transplant_source : %A9CD%CD%E7E%11s%0A%82ls%5B%7B%80jQ%FC%FE%0B
2016-04-19 08:49:13 -07:00
bechen 136e5a6371 Bug 1205865 - Enable test_mediarecorder_bitrate.html for android. r=jwwang
MozReview-Commit-ID: o34eRYFNEm

--HG--
extra : transplant_source : %97%CF%BA3%DC%12%FF%06y%20%F4%0FDi%F3L%8B%E5A%1C
2016-04-22 11:47:48 +08:00
Andrea Marchesini 55614d4c60 Bug 1266194 - Implement boolean or EventListenerOptions as 3rd param to addEventListener, r=smaug 2016-04-26 16:23:17 +08:00
Bob Owen c4ec1107e4 Bug 1258609: Initialize nsICanvasRenderingContextInternal with a DrawTarget instead of a gfxASurface. r=jrmuizel
MozReview-Commit-ID: JNQ9GWvDUSq
2016-04-21 10:30:38 +01:00
Jean-Yves Avenard f18daf30b6 Bug 1247138: [MSE] P2. Add mochitest. r=gerald
2nd media segment also exercise bug 1264622 resolution

MozReview-Commit-ID: F5euopyUiPk

--HG--
extra : rebase_source : b1e1199317612e159507583bcbc4753d106580a6
2016-04-15 01:46:36 +10:00
Jean-Yves Avenard 624abac6d4 Bug 1247138: [MSE] P1. Allow change of audio format. r=gerald
MozReview-Commit-ID: 9fktsFVXtdt

--HG--
extra : rebase_source : bba6b286c6281b34d21cd2a1d1341ef05a4977e4
2016-04-14 19:12:44 +10:00
Jean-Yves Avenard ffad2f30e5 Bug 1264199: P10. renable test now that core issue likely fixed. r=gerald
Reversal of change from bug 1258922.

--HG--
extra : rebase_source : 644b5fae5e1e16d88b89a1e77e78494653e416fd
2016-04-26 12:24:52 +10:00
Jean-Yves Avenard bb9dfe8544 Bug 1264199: P9. Include pending frames in HasUnplayedFrames calculation. r=jwwang
MozReview-Commit-ID: 5m8zCe4cB2s

--HG--
extra : rebase_source : 5c33353294acfc0ec51385bf7d00fea9aa985b39
2016-04-26 00:13:01 +10:00
Jean-Yves Avenard 2fb52f2e0d Bug 1264199: P8. Handle potential resampling errors. r=kinetik
The speex resampler can never return an error in its current state. But just in case and to handle any future changes to the speex resampler.
Also ensure that we can never access a stale speex resampler.

MozReview-Commit-ID: CEME0AA9ghK

--HG--
extra : rebase_source : 3dc40aa0833a85646be6d1d1a3b927fa0b5eb038
2016-04-19 14:53:18 +10:00
Jean-Yves Avenard 45a02f35c6 Bug 1264199: P6. Drain resampler when changing format or reaching the end. r=kinetik
MozReview-Commit-ID: KqcB0FYxNtC

--HG--
extra : rebase_source : 63eff5cb4d66483ecc2871440dda6bc9f73d9822
2016-04-14 15:44:02 +10:00
Jean-Yves Avenard 33f592b6a5 Bug 1264199: P5. Perform all downmixing operations in DecodedAudioDataSink. r=kinetik
Performing all audio processing operations in the same place, allows to simplify the code.

Additionally, if accessibility.monoaudio.enable is not set, we always upmix mono to stereo so that if the first audio stream seen was mono, we aren't stuck playing all future streams in mono.

MozReview-Commit-ID: 5yANN6PLFhX

--HG--
extra : rebase_source : 8b2138368d97f4ec2857c021ed9605c633282ed2
2016-04-13 20:25:50 +10:00
Jean-Yves Avenard 82191ba4a5 Bug 1264199: P4. Add mono to stereo upmix to AudioConverter. r=rillian
MozReview-Commit-ID: 4sCvNWKEMZS

--HG--
extra : rebase_source : aeb02fb5b7bbfb0cb5f810900d3cd6ffbf404590
2016-04-13 19:50:54 +10:00
Jean-Yves Avenard ec0a733d51 Bug 1264199: P3. Attempt to minimize audio quality loss and unnecessary processing. r=kinetik
We attempt to avoid unnecessary resampling of 44.1kHz and 48kHz content, for all others we use cubeb's preferred sampling rate as final sampling rate.

MozReview-Commit-ID: 413qnsDFHzY

--HG--
extra : rebase_source : ca3508aefb29e2e64e84774bddb9fe77654c8945
2016-04-13 17:55:48 +10:00
Jean-Yves Avenard 68dc5cfd31 Bug 1264199: P2. Ensure the AudioStream only ever receive the same content format. r=kinetik
The audio is automatically converted to always match the format of the first processed sample.
This is a temporary approach, as it would be preferred to use a final sampling rate not causing too much quality loss.

MozReview-Commit-ID: Lo3827aon43

--HG--
extra : rebase_source : 946eabde451a33018722cb6f1c0ca7b8c1d87009
2016-04-13 17:30:23 +10:00
Jean-Yves Avenard fa7bd08dd2 Bug 1264199: P1. Perform audio conversion in the MSDM taskqueue and ahead of use. r=kinetik
This will allow to easily detect audio configuration change prior immediate playback.

MozReview-Commit-ID: IwDUGOd17ND

--HG--
extra : rebase_source : ef2b492cfeed5eca8fdfcb5442dedc2b65fc1d8f
2016-04-13 17:17:54 +10:00
Jean-Yves Avenard a9c347c652 Bug 1264199: P0.1. Export SaferMultDiv method. r=gerald
MozReview-Commit-ID: CzewhPB1Nod

--HG--
extra : rebase_source : e6c18d94ab7bcf1106e7027378ca2d8a494b6058
2016-04-26 11:16:23 +10:00
Jean-Yves Avenard b9ddae6e51 Bug 1264199: P0. Fix nsDequeue/MediaQueue methods constness. r=jwwang
MozReview-Commit-ID: BiOedq3IHt

--HG--
extra : rebase_source : 87175a92efdcfea864256482ced7eeee61301690
2016-04-25 12:13:55 +10:00
Randell Jesup 37ad6cbc0c Bug 964092: don't let DOM DataChannels get GC'd if they have an active callback r=smaug,jib
MozReview-Commit-ID: 48gjdDpHOM9
2016-04-26 00:28:53 -04:00
CJKu f75bface0f Bug 1265715 - Part 2. Add nsDisplayListBuilderMode parameter into nsLayoutUtils::PaintFrame; r=jfkthame
MozReview-Commit-ID: 1jkJOOH8KCi

--HG--
extra : rebase_source : c3a67cf66bb1f19cb3a0acc0cab3a45f1f02ea00
2016-04-26 00:26:40 +08:00
Haik Aftandilian 8fc23a5fdd Bug 1266484 - Fix crash in libsystem_kernel.dylib@0x16db6 when using Pinboard bookmarklet. r=gabor
--HG--
extra : histedit_source : 695d0b91bfaab84089e8a74ac2762c749960fb8d
2016-04-25 09:33:00 -04:00
Josh Matthews 4c6d253f1d Bug 1134194 - Ensure that load events are dispatched for all cases when a responsive source updates. r=johns
MozReview-Commit-ID: DZmJCAIuhQb

--HG--
extra : transplant_source : %AF%A1%2C%08FB%D1Q%26%0D%E4%9B%D3%FAf%CDDH%05%AD
extra : histedit_source : a3e049c9842d69a348ab8d33c69c2f14704ef401
2016-01-06 15:40:09 -05:00
Junior Hsu 55052e066a Bug 1263878 - Randomize presentation session ID in test. r=schien
--HG--
extra : histedit_source : ecd3cc5d33e9d99e3c003e041f2931a08c34ccac
2016-04-24 23:21:00 -04:00
Ryan VanderMeulen b7422710b7 Bug 1226477 - Disable test_fileapi_slice.html on e10s for causing intermittent crashes.
--HG--
extra : histedit_source : d48c8740ff0b49ba2c068349bc37e88528e96e2b
2016-04-25 21:45:46 -04:00
Ryan VanderMeulen 395004da77 No bug - Re-enable some more tests that were disabled on e10s without a tracking bug.
--HG--
extra : histedit_source : fa83d576e38f400a6ec395101ea34b58573676aa
2016-04-25 21:45:46 -04:00
Ryan VanderMeulen 1d760a3be1 Bug 1252677 - Re-enable the dom/canvas mochitests on Windows debug e10s.
--HG--
extra : histedit_source : 9da03a92ae41e0ef860e72930da3bd0fc636fc78
2016-04-25 21:45:46 -04:00
Jeff Gilbert 084156ef40 Bug 1186688 - Remove cached state check for DrawBuffer maximums, since it's invalid with min-cap mode. - r=jrmuizel 2016-04-25 17:50:43 -07:00
Kyle Huey c73656947b Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj 2016-04-25 17:23:21 -07:00
Ben Kelly 379983f49b Bug 1267357 Cycle collect NotificationPermissionRequest::mCallback. r=mccr8 2016-04-25 14:29:58 -07:00
Kit Cambridge 3cf5513966 Bug 1266821 - Remove `PushPermissionDescriptor` from the Permissions API. r=baku
MozReview-Commit-ID: 7BngZ6Lwpfu

--HG--
extra : rebase_source : 844c129d3cbaa016f44f3cc6aaa65d4202ca70e0
extra : histedit_source : b2aee5b9c8d8857ad5385255aab9092e7715d61c
2016-04-22 11:22:42 -07:00
Kit Cambridge b3e4980239 Bug 1266569 - Avoid including the `ChromeUtils` binding in `Base64.h`. r=froydnj
MozReview-Commit-ID: 8ZLdMhJMaUe

--HG--
extra : rebase_source : d5cb2b5bcc587bad95e6223d18ef38c6937f9270
extra : histedit_source : 208b28d87e223333c2995fd615e0602b11d5bb68
2016-04-22 07:41:58 -07:00
Kit Cambridge 341af4d90b Bug 1265914 - Remove Push UDP wake-up. r=dragana
MozReview-Commit-ID: 9uyrp75slCX

--HG--
extra : rebase_source : 92c211831bfb732ddf3b86eefd259b878f3ea7d5
extra : histedit_source : d363fd7b1fcaa0dfc48ff15425e0400ea91d6c20
2016-04-19 17:29:16 -07:00
Kit Cambridge 49323c9a2d Bug 1265915 - Remove adaptive pings from the Push WebSocket backend. r=dragana
MozReview-Commit-ID: 9QuMFgIlOPQ

--HG--
extra : rebase_source : bee5228f2658bb1f01639a57af469054e5984080
extra : histedit_source : 0883971413987576abe6949819eb1377471aa0e6
2016-04-19 16:41:12 -07:00
Jeff Gilbert 8e4716b337 Bug 1266262 - Remove nearly-unused GLContext::mGLFormats. - r=jrmuizel 2016-04-25 13:17:25 -07:00
James Willcox cbf30986b7 Bug 1266102 - Don't run VP9 benchmark on Android r=jya 2016-04-25 10:06:03 -05:00
JW Wang 0c694cb31b Bug 1246051 - have MediaQueue<T>::Peek/PeekFront return a RefPtr<> to avoid dangling pointers per comment 0. r=gerald.
MozReview-Commit-ID: JhPVlqMWsTu
2016-04-25 14:36:07 +08:00
Carsten "Tomcat" Book 94cebd7b33 Backed out changeset a9fcd0e98cc3 (bug 1231981) 2016-04-25 16:28:53 +02:00
Carsten "Tomcat" Book 42f342e18c Backed out changeset 4cff2bed6747 (bug 1231975) 2016-04-25 16:28:47 +02:00
Carsten "Tomcat" Book 32ca72ac3a Backed out changeset 8aa793156ad0 (bug 1231975) 2016-04-25 16:28:46 +02:00
Carsten "Tomcat" Book 658315807b Backed out changeset aa8850420313 (bug 1231975) 2016-04-25 16:28:39 +02:00
Byron Campen [:bwc] ca64c2e86d Bug 1231975 - Part 6: Disable NAT tests on android due to bug 1266217 r=drno
MozReview-Commit-ID: 60vkF8cY08G

--HG--
extra : rebase_source : 370923aea661cac9063bd1463ded3af8716a75c0
2016-04-21 09:53:36 -05:00
Byron Campen [:bwc] e0f2cf28b2 Bug 1231975 - Part 2: Break a reference cycle between NrTcpSocketIpc and TCPSocketChild, in the same manner as the UDP case. r=mcmanus
MozReview-Commit-ID: FNscaNoeloU

--HG--
extra : rebase_source : 4c4c7878bb6cdd9e291070fc045f698e1a902eff
2016-04-07 12:51:59 -05:00
Byron Campen [:bwc] 98c17059df Bug 1231975 - Part 1: Basic audio mochitests for NAT scenarios. r=drno
MozReview-Commit-ID: 1chfSrXeCL1

--HG--
extra : rebase_source : 20d6bc3424e433fbc0a98739310598c3c9433c87
2016-03-14 13:31:01 -05:00
Byron Campen [:bwc] 50135632ac Bug 1231981 - Part 3: Set up TURN server for webrtc mochitests, when configured to. r=drno
MozReview-Commit-ID: CVbAYPrwpuB

--HG--
extra : rebase_source : f52583fe21269d4d4214b93315cc75f0535de55d
2016-03-04 15:45:57 -06:00
Jon Coppeard d5b6a661f0 Bug 1259021 - Rename Vector::extractRawBuffer to extractOrCopyRawBuffer r=Waldo 2016-04-25 13:41:25 +01:00
Paul Adenot 62993a3f50 Bug 1265397 - Add a `length` attribute to OfflineAudioContext. r=smaug
MozReview-Commit-ID: J3TqIDI4saW
2016-04-25 11:45:59 +02:00
Paul Adenot d6dc2d1ec6 Bug 1267096 - Check the return value of Promise::Create in AudioContext::StartRendering. r=smaug
MozReview-Commit-ID: 6w6XDDPbbiV

--HG--
extra : rebase_source : b4019e46f164af4cbe53e6437dddda4b8c1292a9
2016-04-25 11:16:08 +02:00
Paul Adenot 0b33e8847a Bug 1267096 - Return early if we have no global when creating a Promise. r=smaug
MozReview-Commit-ID: LQeFGaRRAVq

--HG--
extra : rebase_source : 679009e7b26ddffe64fb2c746a187f63c7448e11
2016-04-25 11:06:30 +02:00
Takahiro Aoyagi 4f6a58fd72 Bug 1259669 Rename WidgetCommandEvent::command to WidgetCommandEvent::mCommand r=masayuki
--HG--
extra : rebase_source : 7755c962f01deb2583aa3581de82289c28124f7c
2016-04-25 16:04:09 +09:00
Jean-Yves Avenard e6d396075d Bug 1267036: Force recalculation of readyState when download is progressing. r=jwwang
Under some circumstances, the MP3Demuxer is unable to calculate the buffered range which would prevent the readyState value to be recalculated. To get around this we force recalculation when the progress event is fired.

MozReview-Commit-ID: DTaxJjOX4JU

--HG--
extra : rebase_source : 83389805b14c88061e492525abaada1d63b4d5ea
2016-04-24 23:34:23 +10:00
Andrea Marchesini bad9abbf97 Bug 1263392 - ConsoleCallData::mStatus should be set also when ConsoleCallData is not used in workers, r=smaug 2016-04-25 13:53:49 +08:00
Bas Schouten a7d662a2b1 Bug 1262898: Keep the GeckoChildProcessHost alive for the lifetime of the CompositorBridge and ImageBridge parent actors. r=jimm r=nical
MozReview-Commit-ID: 1rsWqRpbhgN
2016-04-25 03:54:07 +00:00
Xidorn Quan 97fdb0dd94 Bug 1264968 part 2 - Allow persisting attributes of xul:window if its owner document is not root. r=enndeakin
MozReview-Commit-ID: 12rz0WMZp0L

--HG--
extra : source : e53a0459cd77040271b04e748f53cc66f5f0c70e
2016-04-25 09:40:16 +08:00
Ryan VanderMeulen 2fea4e0c11 Backed out 3 changesets (bug 1234492) for frequent OSX test_presentation_dc_receiver.html failures.
Backed out changeset 94ec70bf8c22 (bug 1234492)
Backed out changeset ac0e65743b5d (bug 1234492)
Backed out changeset 801cac365dd9 (bug 1234492)
2016-04-24 18:50:55 -04:00
Frederik Braun 582caa399f Bug 1142332 - Prevent calling CSP_EnumToKeyword with CSP_HASH. r=ckerschb
MozReview-Commit-ID: I1w9QrWJeEo

--HG--
extra : histedit_source : 1258cfc50d32c10f0de90ba1e863e21ae3ebf0f8
2016-04-24 14:56:22 -04:00
KuoE0 fce8602ee4 Bug 1234492 - Part 3: Add test case. r=smaug
--HG--
extra : rebase_source : fdd973e8d68d8d23b57967e5c074247991653c07
extra : histedit_source : 70aaf5ba5fb504238c2e8c91e546a60f7185e4fa
2016-03-04 12:01:09 +08:00
KuoE0 dbb9382505 Bug 1234492 - Part 2: Use the role definition in nsIPresentationService. r=smaug
--HG--
extra : rebase_source : c0f20c1d9603ebf416c68e6ce3b4fc27bcd86aef
extra : histedit_source : 07ce3d509e8aa9dd62558123a3f8b6b799ba385a
2016-04-18 15:13:54 +08:00
KuoE0 e5175b9483 Bug 1234492 - Part 1: Add direction in PresentationService. r=smaug
--HG--
extra : rebase_source : 56c30d5565e5875b2f30f8f07fad01f91a15f0f0
extra : histedit_source : 7273fb211f9656ab0487301227b3d6361644b7e8
2015-11-27 16:06:32 +08:00
J.C. Jones f55c5966d7 Bug 1264472 - Use nsRunnables in FIDO U2F. r=keeler
- Move the AppID/FacetID algorithm into its own (potentially reentrant) method
  to facilitate Bug 1244959
- Change the Register and Sign operations to be Runnables so that in the future
  they can be executed after (future) remote fetches
- Clean up error handling
- Remove unnecessary remote-load Facet test files; we'll re-add some form of
  them when the remote load algorithm is completed

MozReview-Commit-ID: 4K1q6ovzhgf

--HG--
extra : transplant_source : /%7F/%96o1%3E%5E%17%20%A2%D0%AA%10%21%88%19%D9%B3%C9
extra : histedit_source : 4d3c61294951920a22e1f1eb7846a2a03f7cd2f0
2016-04-18 14:49:07 -07:00
Jan Beich d8d938eb8b Bug 1266772 - Unbreak FreeBSD build after bug 881587. r=dminor
MozReview-Commit-ID: 5oZ1R0vYnRm

--HG--
extra : transplant_source : %BDk%E1x%29%1E%D5%92%40%24%ACVN%CB%F0U%2A%B6_%B2
2016-04-22 15:31:09 +00:00
Wei-Cheng Pan daa8e38158 Bug 1259641 - Do not force reflow for all tabs when size mode changed. r=smaug
MozReview-Commit-ID: GoTCM60Hmlf

--HG--
extra : transplant_source : S%88%AD%A3%99%9Bk%D3%E4U%0302%82%87o3%28%FFK
2016-04-20 11:41:42 +08:00
Ben Kelly e5a1d1af80 Bug 1266857 Make Clients.claim() use observer document list instead of secondary hashtable. r=bz 2016-04-24 08:11:32 -07:00
Ben Kelly 30a63e3626 Bug 1265771 P3 Expand browser_force_refresh.js to verify Clients.matchAll() behavior on refresh. r=bz 2016-04-24 08:11:32 -07:00
Ben Kelly 2464cb6262 Bug 1265771 P1 Only store active documents in the global observer list. r=bz 2016-04-24 08:11:32 -07:00
Jonathan Watt 6a7fdf9b55 No Bug - Remove some unnecessary SVGImageContext.h includes and add comments. r=sparky 2016-04-22 15:07:31 +01:00
Kris Maglione 6d36833e42 Bug 1254194: Apply a content security policy to all WebExtension documents. r=gabor
MozReview-Commit-ID: HsFFbWdq00b

--HG--
extra : rebase_source : 07e4b6ec8c32f696d5b5987091ffc5ebde2c3061
extra : histedit_source : 20983fe6a9590d7f410276fac248c3d2f711caaa
2016-04-23 20:56:56 -07:00
Kris Maglione f3feb0cfd3 Bug 1254194: Allow iterating over and inspecting sources of parsed CSP directives. r=ckerschb
MozReview-Commit-ID: G8b86UvSv0y

--HG--
extra : rebase_source : c7857e88af0d94dd1162dccfe12aae6567945f2c
2016-04-23 20:42:43 -07:00
Andreas Pehrson 122b4efd17 Bug 1266680 - Fix stopping MediaStreamTrack when there are clones. r=jib
MozReview-Commit-ID: KMeOd9QvVFf

--HG--
extra : rebase_source : 0a341b2bededabe2a3ece678abcca208a933f5e5
2016-04-22 17:15:06 +02:00
Andreas Pehrson 1e072d6fc3 Bug 1266680 - Rename BlockTrackId to BlockSourceTrackId. r=jesup
It wasn't clear which TrackID should be passed to MediaInputPort::BlockTrackId(); source or destination.

MozReview-Commit-ID: I9LoSjdpRwE

--HG--
extra : rebase_source : 20eeb5e4ee47eb1cdf00e94cdc72ee11177bbee2
2016-04-22 17:14:26 +02:00
Josh Matthews 62ce0e2f1d Bug 1209095 - Accept opaqueredirection fetch results if the request redirection type is manual. r=bkelly 2015-12-16 19:06:54 -05:00
Masayuki Nakano 79ea112b87 Bug 1257759 part.10 PluginInstanceChild should consume WM_*CHAR messages which follow consumed WM_*KEYDOWN or WM_*KEYUP message r=jimm
nsWindow for Windows cannot decide if a preceding WM_*KEYDOWN or WM_*KEYUP which is a preceding message of WM_*CHAR is consumed because nsWindow cannot know if WM_*CHAR message came from same window which received the preceding WM_*KEYDOWN or WM_*KEYUP.  Therefore, PluginInstanceChild should do that.

MozReview-Commit-ID: 1uuZ0nTJ5Xb

--HG--
extra : rebase_source : b99f8057d5e93035a769af2506292ff7d2cb8f4a
2016-04-22 14:22:03 +09:00
Masayuki Nakano 8f62c5aa3c Bug 1257759 part.8 nsXBLWindowKeyHandler should handle eKeyDownOnPlugin and eKeyUpOnPlugin events only with reserved shortcut key handlers r=smaug
eKeyDownOnPlugin (mozkeydownonplugin) and eKeyUpOnPlugin (mozkeyuponplugin) should execute if the key combination is reserved by the linked <command> element.

Note that there is no eKeyPressOnPlugin.  Therefore, eKeyDownOnPlugin may execute shortcut key handler which is registered as a keypress event handler.

MozReview-Commit-ID: CpjsFW02y26

--HG--
extra : rebase_source : 361be61bc6ff0213e3386427878d2f81321ca0df
2016-04-23 02:12:54 +09:00
Masayuki Nakano eb041d2df7 Bug 1257759 part.7 Add new internal events which represent key events on plugin r=smaug
If a plugin process posts native key events to the widget, it needs to check if the key combination is reserved by chrome because if it's reserved by chrome, the reserved shortcut key handler should be executed and the event shouldn't be handled by the focused plugin.

This patches add eKeyDownOnPlugin and eKeyUpOnPlugin.  nsXBLWindowKeyHandler will listen to them and handle them as normal keydown and keypress or keyup event.  Note that these events won't be fired on content in the default event group and won't be sent to the remote process.

MozReview-Commit-ID: H5OKPLtVdr6

--HG--
extra : rebase_source : c6852423e47c40e9953b72061262730f7cce35d7
2016-04-23 01:22:49 +09:00
Masayuki Nakano ff3ddc1d56 Bug 1257759 part.6 Keep event order between keyboard events and IME events in a plugin process r=jimm
On Windows, applications cannot handle IME messages asynchronously.  Therefore, we cannot put off to send IME messages to plugin even if there are some pending keyboard events which were posted to the parent process.

This patch makes PluginInstanceChild consume all key events which are returned from the parent process during IME composition. And when an IME composition is committed, mark pending key events as outdated.

MozReview-Commit-ID: 7P3LEJ6pDir

--HG--
extra : rebase_source : 42e304c45cd980f339b29526ab65854d196198ad
2016-04-14 17:28:49 +09:00
Masayuki Nakano b332dc9ff4 Bug 1257759 part.5 PluginInstanceChild should post received native key event to chrome process if the key combination may be a shortcut key r=jimm
When PluginInstanceChild receives native key events, it should post the events to the chrome process first for checking if the key combination is reserved.  However, posting all key events to the chrome process may make damage to the performance of text input.  Therefore, this patch starts to post a key event whose key combination may be a shortcut key.  However, for avoiding to shuffle the event order, it posts following key events until all posted key events are handled by the chrome process.

For receiving response from widget, this patch defines nsIKeyEventInPluginCallback.  It's specified by nsIWidget::OnWindowedPluginKeyEvent() for ensuring the caller will receive the reply.  Basically, the caller of nsIWidget::OnWindowedPluginKeyEvent() should reply to the child process.  However, if the widget is a PuppetWidget, it cannot return the result synchronously.  Therefore, PuppetWidget::OnWindowedPluginKeyEvent() returns NS_SUCCESS_EVENT_HANDLED_ASYNCHRONOUSLY and stores the callback to mKeyEventInPluginCallbacks.  Then, TabParent::HandledWindowedPluginKeyEvent() will call PuppetWidget::HandledWindowedPluginKeyEvent().

MozReview-Commit-ID: G6brOU26NwQ

--HG--
extra : rebase_source : 8140456de278956d2d594e85c7b397ae366b4962
2016-04-19 20:09:37 +09:00
Masayuki Nakano f19611cb89 Bug 1257759 part.2 Separate Windows' message and related definitions from nsWindowDefs.h to mozilla/widget/WinMessages.h r=jimm
This patch separates Windows' message definition and related definitions from nsWindowDefs.h to mozilla/widget/WinMessages.h because the definitions are useful in plugin module but nsWindowDefs.h cannot be included from plugin module since it depends on some headers in under widget.

MozReview-Commit-ID: KNUAffLMKT1

--HG--
rename : widget/windows/nsWindowDefs.h => widget/windows/WinMessages.h
extra : rebase_source : ae9390e700ca97a0a4eea3b2977d4d5568ce9408
2016-04-09 15:15:31 +09:00
Masayuki Nakano 3a41e70ea1 Bug 1257759 part.1 Use switch-case at the first message handling in PluginInstanceChild::PluginWindowProcInternal() r=m_kato
PluginInstanceChild::PluginWindowProcInternal() should use switch-case statement at checking each message because adding new message handler may make damage to the performance and switch-case statement is easier to read for Windows message handler.

MozReview-Commit-ID: KfL0LtHL6GV

--HG--
extra : rebase_source : 3d729cf0c34990019dcf52fad72c748f31ea4d71
2016-03-18 16:39:42 +09:00
Masayuki Nakano d3b2d91e89 Bug 1252058 IMEContentObserver::IMENotificationSender shouldn't post notifications when IMEContentObserver which is the owner of it stopped observing contents r=smaug
When IMEContentObserver stopped observing contents, posting pending notifications to current thread may cause infinite loop because it's impossible to send notifications to widget until the IMEContentObserver is reinitialized.

When IMEContentObserver is reinitialized, pending notifications are automatically flushed.  So, in such case, IMEContentObserver::IMEnotificationSender shouldn't clear the pending notifications but don't post the notifications to current thread immediately.

MozReview-Commit-ID: 5xXT3VB4Jjb

--HG--
extra : rebase_source : 5529f1921cffe14b32779199e6919f1252051dcb
2016-04-19 18:57:13 +09:00
Phil Ringnalda 296f3a95c3 Back out 4 changesets (bug 1265771, bug 1266857) for leaks in browser_DownloadPDFSaver.js on Windows
CLOSED TREE

Backed out changeset a0c85ccffafd (bug 1266857)
Backed out changeset 1cf8785bdc0c (bug 1265771)
Backed out changeset e411c3ccd7b6 (bug 1265771)
Backed out changeset a298cd2c9417 (bug 1265771)
2016-04-22 21:27:11 -07:00
Ben Kelly b4090694b7 Bug 1266857 Make Clients.claim() use observer document list instead of secondary hashtable. r=bz 2016-04-22 00:50:13 -07:00
Ben Kelly da6964ef2b Bug 1265771 P3 Expand browser_force_refresh.js to verify Clients.matchAll() behavior on refresh. r=bz 2016-04-22 00:50:13 -07:00
Ben Kelly ad90cd164e Bug 1265771 P1 Only store active documents in the global observer list. r=bz 2016-04-22 00:50:13 -07:00
Boris Zbarsky b66f459c87 Bug 1266077. Fix <base> href getter to follow the spec; it should be using the fallback base URI to resolve against, not the document URI. r=bkelly 2016-04-22 17:59:16 -04:00
Andrew McCreight f417b18c2b Bug 1263001 - Don't Notify() an unlinked nsGeolocationRequest. r=jdm
If an unlinked nsGeolocationRequest somehow stays alive, then calling
Notify() on it will likely cause a null-deref crash.
2016-04-22 14:15:36 -07:00
Boris Zbarsky d17aec7b6a Bug 1260511 part 3. In dom::Throw, ignore the pending xpconnect exception if we were given a non-default message string (because we don't want to lose that string). Also, make sure to always clear the pending xpconnect exception there. r=khuey 2016-04-22 16:03:05 -04:00
Boris Zbarsky 40c7808bf8 Bug 1260511 part 2. Change XPConnect's handling of exceptions thrown from JS components so that if an nsresult integer is thrown we convert it into an actual exception object before handing it out to content instead of propagating out the numeric value. r=khuey 2016-04-22 16:03:05 -04:00
David Anderson 70e16efcdf Remove dead code from nsPluginInstanceOwner::GetPluginPort. (bug 1266513, r=jimm) 2016-04-21 15:02:08 -04:00
Nicholas Hurley 65e701bed3 Bug 1122642 - Have an error page for H2 INADEQUATE_SECURITY r=mcmanus,bz 2016-04-22 09:56:42 -07:00
Paul Adenot 8fda7f21b4 Bug 1266438 - Remove workaround on OSX when switching device, not necessary with duplex mode. r=jesup
MozReview-Commit-ID: 7IontuEuiQj
2016-04-22 16:24:19 +02:00
Paul Adenot b3adcea90b Bug 1266438 - Reset the AEC and other processing when audio devices change. r=jesup
MozReview-Commit-ID: Jrr9E9ZSukv
2016-04-22 16:24:17 +02:00
Ben Kelly d472e3219c Bug 1266221 P1 Get devtools http service worker testing option from top window. r=bz 2016-04-21 16:26:42 -07:00