Commit Graph

14323 Commits

Author SHA1 Message Date
Szu-Yu Chen [:aknow]
c62552db1c Bug 818393 - Part 2: Call barring DOM implementation. r=htsai, smaug.
---
 dom/network/src/MobileConnection.cpp |   26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
2013-05-21 13:12:59 +08:00
Szu-Yu Chen [:aknow]
6c4ff9fab3 Bug 818393 - Part 1: Add interface for call barring config. r=htsai. sr=mounir.
---
 dom/network/interfaces/nsIDOMMobileConnection.idl  |   84 +++++++++++++++++++-
 .../interfaces/nsIMobileConnectionProvider.idl     |    7 +-
 2 files changed, 87 insertions(+), 4 deletions(-)
2013-05-21 13:08:57 +08:00
Ralph Giles
3d52d52549 Bug 833385 - Implement HTMLTrackElement and TextTrack. r=bz,Ms2ger
Add webidl interfaces and implementations of the HTML <track>
element and related TextTrack, TextTrackList, TextTrackCue,
and TextTrackCueList dom objects.

Visibility is controlled by the media.webvtt.enabled pref,
which defaults to false.

HTMLMediaElement:NewURIFromString() is hoisted to
nsGenericHTMLElement so it's available to the track
element as well.

This patch is primarily work by Dale Karp, David Humphrey
and others as Seneca College.
2013-05-22 00:14:00 +08:00
Bobby Holley
11f2396ec2 Bug 868110 - Introduce a more private API for the consumers that really do need the default compartment object. r=luke
The primary consumer of this is the whole inner/outer DOM window setup, which
uses the default global to track the current inner. But there are few other
random ones as well.

We use this as an opportunity to convert a bunch of consumers from the two-step
GetNativeContext() -> JS_GetGlobalObject() into just |GetNativeGlobal()|. This
will make things much easier to convert when we start tracking the current inner
explicitly.
2013-05-22 15:42:44 -06:00
Bobby Holley
b8a53552ce Bug 873698 - Remove JS_GetGlobalObject from plugins. r=gabor 2013-05-22 15:42:44 -06:00
Ryan VanderMeulen
f55afa2982 Backed out changesets e52c6f7200b3 and 2718954757e1 (bug 874869) for intermittent Windows leaks. 2013-05-22 15:22:26 -04:00
Jan-Ivar Bruaroey
ee9ecdb021 Bug 872839 - Part 1: Put new PeerConnections on global list earlier, ensuring close is called should PC.initialize fail. r=jesup 2013-05-22 13:05:20 -04:00
Bobby Holley
1b2f22fe61 Bug 868130 - Remove the lion's share of JSAutoRequests in gecko. r=gabor
There are still a handful that either are used with other runtimes, or that
happen very early/late in cx the lifetime of various things where it doesn't
necessarily make sense to have a cx on the stack. This should definitely ensure
that we're not doing double-duty with the nsCxPusher change, though.
2013-05-22 10:05:28 -06:00
Bobby Holley
c34a6c0e71 Bug 868130 - Fix sketchy cx consumers identified by gabor. r=gabor 2013-05-22 10:05:27 -06:00
Bobby Holley
2b2cd4e0b7 Bug 868130 - Remove the dependencies of the nsCxPusher machinery on nsContentUtils, use nsCxPusher in xpcshell, and privatize APIs. r=gabor
No more xpc::danger, for now. ;-)
2013-05-22 10:05:26 -06:00
Bobby Holley
ba05c93769 Bug 868130 - Include nsCxPusher.h everywhere we need it, and stop including it from nsContentUtils.h. r=gabor 2013-05-22 10:05:26 -06:00
Bobby Holley
2e08885c40 Bug 868130 - Make sure mContext is stack-top in the various places where nsJSEnvironment uses it. r=gabor
I also replaced some uses of mJSContext with AutoJSContext upon auditing that
they're only ever called by other nsJSContext functions that just pushed. This
makes the code much easier to audit because we know that we're just inheriting
the caller's cx (which is stack-top) rather than injecting a potentially-
unrelated cx.
2013-05-22 10:05:24 -06:00
Bobby Holley
d35a455af1 Bug 868130 - Make sure to push a JSContext in TabParent::ReceiveMessage. r=gabor 2013-05-22 10:05:24 -06:00
Bobby Holley
a08274d59c Bug 868130 - Use an AutoSafeJSContext in hueyfix. r=gabor 2013-05-22 10:05:23 -06:00
Bobby Holley
783eb84d1c Bug 868130 - Make sure mContext is stack-top in nsJSContext::CompileScript. r=gabor 2013-05-22 10:05:23 -06:00
Ehsan Akhgari
8225f28a47 Bug 874869 - Disallow setting AudioNode.channelCount to zero; r=roc 2013-05-22 11:30:31 -04:00
Aryeh Gregor
b14c2cbab2 Bug 867101 - Fix more implicit conversion to already_AddRefed; r=Ms2ger 2013-04-28 14:52:10 +03:00
Edgar Chen
86756df783 Bug 859220 - Part 4: Fix marionette tests for IccManager. r=allstars.chh 2013-04-09 14:30:03 +08:00
Edgar Chen
e824e7154e Bug 859220 - Part 3: Separate IPC messages in RadioInterfaceLayer. r=allstars.chh 2013-04-09 14:18:43 +08:00
Edgar Chen
93c08b0598 Bug 859220 - Part 2: Separate mozIccManager from mozMobileConnection (DOM). r=smaug 2013-04-08 18:34:10 +08:00
Edgar Chen
7a0e7b0690 Bug 859220 - Part 1: Separate mozIccManager from mozMobileConnection (IDL). r=allstars.chh. sr=sicking 2013-04-08 15:13:09 +08:00
Ryan VanderMeulen
65358ec7df Merge inbound to m-c. 2013-05-20 16:21:45 -04:00
Fabrice Desré
88c373ec17 Bug 872100 - app.clearBrowserData appears to not clear browser data immediately sr=mounir, r=jduell,ferjm 2013-05-20 10:20:19 -07:00
Ryan VanderMeulen
c024c79160 Merge m-c to inbound. 2013-05-20 11:29:37 -04:00
Ryan VanderMeulen
cac6523ada Merge m-c to birch. 2013-05-20 08:22:31 -04:00
Marco Chen
1f5a09f0ba Bug 870682 - [gonk-jb-4.2] Add basic support for audio control API. r=mwu 2013-05-20 15:34:42 +08:00
Zachary Easterbrook
6108c1b539 Bug 868952 - Fix the getAll(...) function in AlarmDB to be more efficient. r=clian 2013-05-20 07:47:38 -04:00
Gina Yeh
e1e19c9cdb Bug 853235 - Combine pairing-related system messages into one type, r=echou 2013-05-20 15:34:45 +08:00
Ms2ger
2750a39e8f Bug 868778 - Part c: Move DataChannel to WebIDL; r=mounir+jesup
--HG--
rename : content/base/public/nsIDOMDataChannel.idl => dom/webidl/DataChannel.webidl
2013-05-20 09:19:45 +02:00
Ms2ger
8bca342419 Bug 873417 - Part b: Use CGClass for CGDictionary; r=bz 2013-05-20 09:10:59 +02:00
Ms2ger
11bd01effd Bug 873417 - Part a: Cleanup and fix some bugs in CGClass; r=bz 2013-05-20 09:10:58 +02:00
Thomas Zimmermann
1eba5d1c06 Bug 873400: Fix destination directory for Bluetooth file transfers, r=echou
Bluetooth file transfers store the file in 'downloads/bluetooth'. This
patch changes the location to 'Download/Bluetooth' for consistency with
other sub-systems.
2013-05-20 11:41:03 +08:00
Ms2ger
9d5803279f Merge backout. 2013-05-19 20:26:58 +02:00
Ms2ger
e0c18984a5 Backout bug 549861 (changesets 27fb48df15ce:7ecd4e3863b4) for insufficient review. 2013-05-19 20:23:19 +02:00
Masatoshi Kimura
8897c8b3e0 Bug 871786 - Remove KeyboardEvent classinfo. r=smaug 2013-05-19 10:28:48 +09:00
Masatoshi Kimura
ffd5f17a14 Bug 871786 - Separate D2E KeyEvent constants and a method from KeyboardEvent. r=smaug, bz
--HG--
rename : dom/webidl/KeyboardEvent.webidl => dom/webidl/KeyEvent.webidl
2013-05-19 10:28:47 +09:00
Andrea Marchesini
0e20d68ea0 Bug 870856 - Convert DOMError to WebIDL. r=Ms2ger, r=bz 2013-05-18 13:52:06 -04:00
Mike Hommey
616b5aae26 Backout changeset be729bc526a3 (part of bug 864035) 2013-05-18 11:10:45 +02:00
Mike Hommey
5638e38904 Bug 864035 - Don't use a forward declaration for mozilla::dom::SpeechRecognition for use with a WeakPtr. r=smaug 2013-05-18 09:51:54 +02:00
Reuben Morais
0745f908eb Bug 873684 - Improve error reporting when a value can't be converted to the expected type. r=bz
--HG--
extra : rebase_source : 3385999de823c9df659103239e62df8ffca5f15a
2013-05-17 21:14:18 -07:00
Boris Zbarsky
620839f027 Bug 868312 finale: finish rooting dom/ code. r=smaug 2013-05-17 21:48:25 -04:00
Boris Zbarsky
081b1f0e2e Bug 873337. Change the order of the decl and holder in js-to-native conversions to clean up the code some. Now the holder always comes after the decl. r=smaug 2013-05-17 21:48:25 -04:00
Ryan VanderMeulen
99be99720b Merge m-c to inbound. 2013-05-17 21:42:32 -04:00
Ryan VanderMeulen
e3d33b7b45 Merge inbound to m-c. 2013-05-17 21:41:13 -04:00
Gregory Szorc
c1b865f669 Bug 873629 - Remove 129 empty Makefile.in files; r=ted 2013-05-17 16:20:11 -07:00
Reuben Morais
4d7c90ddd3 Bug 873647 - Teach codegen how to wrap Dates in constructors. r=bz
--HG--
extra : rebase_source : f4267f15b7076aacb47fb94e4173a05dac8de255
2013-05-17 13:52:32 -07:00
Dave Hylands
9d725309a5 Bug 873391 - Volume state changes may get processed out of order in child processes. r=qDot 2013-05-17 12:55:14 -07:00
Anthony Jones
5b2d5a18de Bug 833795 - Sample offset on touch start. r=drs 2013-05-16 17:58:07 +12:00
Ryan VanderMeulen
f6095ecc82 Merge m-c to birch. 2013-05-17 12:45:19 -04:00
Andrea Marchesini
1b8e2e2d05 Bug 850941 - Blob size is wrong in open activity after bluetooth image transfer. r=bent 2013-05-17 10:41:53 -04:00
Ryan VanderMeulen
3b2fb8dd48 Merge inbound to m-c. 2013-05-16 20:29:40 -04:00
Ryan VanderMeulen
3e961f82d0 Merge m-c to birch. 2013-05-16 16:18:21 -04:00
Dave Hylands
0ff57167d1 Bug 872170 - Fix camera file saving with composite device storage. r=mikeh 2013-05-16 11:12:29 -07:00
Dave Hylands
b0983b5c8a Bug 872800 - Fix volume availability notifications for composite storage areas. r=mchen 2013-05-16 11:11:58 -07:00
Dave Hylands
c9cd935895 Bug 872800 - Remove extraneous printfs added from Bug 858416. r=mchen 2013-05-16 11:11:54 -07:00
Thomas Zimmermann
ee736f72fb Bug 873065 - Use DEVICESTORAGE_SDCARD for unknown file types. r=dhylands
The method DeviceStorageFile::CreateUnique fails for files with an
unknown extension. It calls DeviceStorageFileChecker::GetTypeFromFileName
to retrieve the default location. The returned value is "Unknown", which
is passed to the constructor of DeviceStorageFile. This class doesn't
handle "Unknown" in it's initialization, and fails without creating a
file.

This patch changes the default return value of GetTypeFromFileName to the
constant DEVICESTORAGE_SDCARD. All files with unknown extension will now
be stored on the sd card.
2013-05-16 12:33:18 -04:00
Ryan VanderMeulen
015d7a6235 Merge m-c to inbound. 2013-05-16 11:26:58 -04:00
Randy Lin
440c264cce Bug 868932 - All channel volume is not updated. r=mwu 2013-05-16 12:00:02 +08:00
Shawn Huang
ef018f54a0 Bug 872428 - Fix missing setForceUse to BT SCO for audio path, r=mwu 2013-05-16 14:31:21 +08:00
Boris Zbarsky
810766595d Bug 873735 part 2. Change nsIXPConnectJSObjectHolder::GetJSObject to return a JSObject*. r=bholley 2013-05-20 08:44:18 -04:00
Boris Zbarsky
be0882e3a1 Bug 873735 part 1. Fix the more or less mechanical browser rooting hazards. r=terrence 2013-05-20 08:40:06 -04:00
Ryan VanderMeulen
2825d31a5a Merge m-c to inbound. 2013-05-20 08:02:31 -04:00
Andrea Marchesini
026738f75a Bug 871551 - ToDOMAnimatedRect to ToSVGAnimatedRect. r=Ms2ger 2013-05-20 07:46:12 -04:00
Fernando Jiménez
a56c0eb5ea Bug 821589 - mozApps.installPackage doesn't have any automated tests at the DOM level; r=fabrice 2013-05-20 11:23:33 +02:00
Fernando Jiménez
6f7ce8ea43 Bug 821589 - Packaged apps installation and update tests. Part 0: autoConfirmAppInstall for packaged apps; r=fabrice 2013-05-20 11:23:32 +02:00
Fernando Jiménez
5ebeabd263 Bug 873134 - Notify install success before starting to download package. r=fabrice 2013-05-20 11:23:32 +02:00
Jonathan Kew
822443a603 bug 873939 - the long list in test_interfaces.html should be alphabetical. r=khuey 2013-05-20 13:55:01 +08:00
John Daggett
6ef6e22846 Bug 549861 - add missing files from reland patch. r=bustage 2013-05-20 12:47:32 +09:00
John Daggett
aa507d8c18 Bug 549861 - reland font-variant subproperties with DOM-peer review. r=khuey 2013-05-20 11:59:20 +09:00
Jan-Ivar Bruaroey
879514b941 Bug 823512: Part 4: Workaround for lack of serializer support (bug 863402). r=bz 2013-05-15 01:07:49 -04:00
Patrick Wang
a9b20ef573 Bug 849725: remove RIL.iccInfoPrivate.SPN.spn. r=allstars.chh 2013-05-14 11:32:16 +08:00
Ryan VanderMeulen
d9824dd1e6 Merge inbound to m-c. 2013-05-15 21:14:58 -04:00
John Daggett
6758cb5e04 Bug 549861. Implement support for @font-feature-values rule. r=dbaron 2013-05-13 18:45:37 +09:00
Ed Morley
2710e5d6a9 Backed out changeset 496846474ed3 (bug 864774) 2013-05-13 10:05:49 +01:00
Jan-Ivar Bruaroey
ecc638b46f Bug 823512: Part 3: Deprecated API calls emit warnings to web-console. r=jesup,bz 2013-05-11 20:48:29 -04:00
Jan-Ivar Bruaroey
9386baa685 Bug 823512: Part 2: Update PeerConnection to spec. states + DataChannel. r=bz,rjesup,ekr 2013-05-16 19:40:23 -04:00
Ehsan Akhgari
1ad083a454 Bug 871201 - Part 2: Implement AudioBufferSourceNode.gain; r=roc
X-Git-Commit-ID: db8923b372db098aa7a5dc1cbf42674310b61aef
X-Mailer: git-send-email

--HG--
rename : content/media/webaudio/test/test_audioBufferSourceNode.html => content/media/webaudio/test/test_audioBufferSourceNodeGain.html
rename : content/media/webaudio/test/test_audioBufferSourceNode.html => content/media/webaudio/test/test_delayNodeWithGainAlternate.html
extra : rebase_source : 2cc9259229209fa926970e78ddfc2ef5765f4ad5
2013-05-13 00:17:55 -04:00
Ben Turner
442a070ba4 Bug 861903 - Enable test. 2013-05-12 21:10:58 -07:00
Fabrice Desré
2f021b5f96 Bug 871435 - Allow for a customized appcache_path to be used for preinstalled hosted apps using appcache r=ochameau 2013-05-15 13:51:41 -07:00
Jan-Ivar Bruaroey
7921c9c1e4 Bug 823512: Rewrite PeerConnection in JS-implemented WebIDL r=bz,jesup 2013-05-07 20:55:21 -04:00
Ed Morley
445750b6e6 Backed out changeset 70c3a3a74362 (bug 860941) for mochitest-3 timeouts on a CLOSED TREE 2013-05-17 09:09:21 +01:00
Ed Morley
16fd94e608 Backed out changeset 98594535c1e9 (bug 860941) 2013-05-17 09:08:49 +01:00
Ed Morley
3bc91f40b5 Backed out changeset 474792d1fb89 (bug 860941) 2013-05-17 09:08:46 +01:00
Ed Morley
b61d46f51a Backed out changeset 0ad1a92ca568 (bug 860941) 2013-05-17 09:08:44 +01:00
Ed Morley
a220dc1713 Backed out changeset 90b318fb8375 (bug 860941) 2013-05-17 09:08:41 +01:00
Ed Morley
7861834d38 Backed out changeset 95006bb32743 (bug 860941) 2013-05-17 09:08:38 +01:00
Ed Morley
003d17a5f8 Backed out changeset de30d8faf09a (bug 860941) 2013-05-17 09:08:36 +01:00
Ed Morley
e5680f1e17 Backed out changeset d2505c0f1c45 (bug 860941) 2013-05-17 09:08:33 +01:00
Ed Morley
4384f18cd0 Backed out changeset 34c65a615373 (bug 860941) 2013-05-17 09:08:31 +01:00
Bobby Holley
9ff358e18b Bug 860941 - Remove assertion annotations for the now-removed mArguments assertion. r=jst 2013-05-16 23:33:15 -07:00
Bobby Holley
3bf84f7d8d Bug 860941 - Tests. r=jst
We augment the existing showModalDialog tests with test coverage for
dialogArguments and returnValue.
2013-05-16 23:33:15 -07:00
Bobby Holley
6e3c37021b Bug 860941 - Stop clearing return values on navigation. r=jst
Since this stuff is a property on the browsing context, this only makes sense
as a security check. But now that we're using a DialogValueHolder, the origin
checks are taken care of. So we can kill this off.
2013-05-16 23:33:15 -07:00
Bobby Holley
3072f4271d Bug 860941 - Use DialogValueHolder for returnValue. r=jst
The spec currently has returnValue as a DOMString, but this doesn't match
reality given my testing. I filed [1] to fix it.

Note that nsGlobalModalWindow is already set up to CC mReturnValue. Since
we're swapping in another CC-ed container class, we don't need to make any
changes here.

[1] https://www.w3.org/Bugs/Public/show_bug.cgi?id=21771
2013-05-16 23:33:15 -07:00
Bobby Holley
b062e43926 Bug 860941 - Make dialogArguments default to |undefined| rather than |null|. r=jst
This is correct by my reading of the spec. Quoting:

The dialogArguments IDL attribute, on getting, must check whether its browsing
context's active document's origin is the same as the dialog arguments' origin.
If it is, then the browsing context's dialog arguments must be returned
unchanged. Otherwise, if the dialog arguments are an object, then the empty
string must be returned, and if the dialog arguments are not an object, then
the stringification of the dialog arguments must be returned.
2013-05-16 23:33:14 -07:00
Bobby Holley
01f304382c Bug 860941 - Separate the handling of |dialogArguments| and |arguments|, and use IDL for the |dialogArguments| getter. r=jst
This patch is bigger than I'd like it to be, but there are a lot of interlocked
dependencies and I eventually decided it was easier to just lump it together.

The semantics of |showModalDialog|/|window.dialogArguments| (an web-exposed
HTML5 feature) and |openDialog|/|window.arguments| (a XUL-proprietary feature)
are quite different. The former is essentially a security-checked JSVal, while
the latter gets converted into an array. We handled them together in the old
world, which led to a lot of confusion and muddled semantics. This patch
separates them.

This patch also eschews the roundabout resolve hook for dialogArguments in favor
of returning them directly from the XPIDL getter. This better matches the
behavior in the spec, especially because it allows dialogArguments to live on
the outer as they're supposed to, rather than the first inner that happens to
end up in the docshell. All in all, this should make this all very
straightforward to convert WebIDL when the time comes.

The current spec on the origin checks here is pretty fictional, so I've filed
https://www.w3.org/Bugs/Public/show_bug.cgi?id=21932 to fix it. This patch
should more or less preserve the current security behavior.
2013-05-16 23:33:14 -07:00
Bobby Holley
4ccd299589 Bug 860941 - Remove unnecessary argument cleanup in nsGlobalWindow::DetachFromDocShell. r=jst
This function proceeds to invoke CleanUp(), which also cleans this stuff up.
2013-05-16 23:33:14 -07:00
Bobby Holley
a3e97c9f8e Bug 860941 - Clarify shutdown invariants in ~nsGlobalWindow. r=jst
While the mArguments invariant should hold for _outers_, it doesn't necessarily
hold for inners, so this assertion fires reliably in automation. If mCleanedUp
is true then mArguments is definitely null, so let's disentangle this from
mArguments and be clearer about the invariants we expect.
2013-05-16 23:33:14 -07:00
Bobby Holley
88d503c4d5 Bug 860941 - Remove mArgumentsLast. r=jst
I'm not sure what it used to do, but it sure doesn't do a damn thing now.
2013-05-16 23:33:13 -07:00
Tim Abraldes
b5a70d488d bug 839342. Make metro widget listen for EdgeGestureStarted and EdgeGestureCanceled, in addition to EdgeGestureCompleted. Show the edge UI on EdgeGestureStarted and EdgeGestureCompleted, hide it on EdgeGestureCanceled. This time without bustage! r=bbondy 2013-05-16 21:22:21 -07:00
Phil Ringnalda
c19f6561ae Back out 9675dce26f53 (bug 839342) for browser-chrome bustage 2013-05-16 20:09:24 -07:00