Commit Graph

131931 Commits

Author SHA1 Message Date
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
e20a1d8a0f Bug 860941 - Add an explicit flag to track modal content windows. r=jst
Tracking this with CHROME_MODAL is problematic, because that gets inherited by
any dependent windows opened by the modal content window, which may or may not
be modal content windows themselves. Thankfully, we have a few free bits lying
around.
2013-05-16 23:33:13 -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
Mike Hommey
346d1b3774 Bug 859966 - Switch linux builds to gcc 4.7.2. r=gps 2013-05-17 08:21:45 +02:00
Frank Yan
9ba7482a19 Bug 861465 - Hide overlay buttons when showing app bars or in fullscreen mode. r=mbrubeck 2013-05-16 22:14:29 -07:00
Alexander Surkov
269fd16985 Bug 873322 - need handy function for easy getText... testing, r=tbsaunde 2013-05-17 15:08:27 +09:00
Benjamin Peterson
420bd21438 No bug - Fix indentation. r=trivial DONTBUILD 2013-05-17 00:20:35 -05: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
Alexander Surkov
008083f642 Bug 872964 - wrong result for getTextBeforeOffset for start word boundary at text length offset, r=tbsaunde 2013-05-17 13:06:13 +09:00
Phil Ringnalda
c19f6561ae Back out 9675dce26f53 (bug 839342) for browser-chrome bustage 2013-05-16 20:09:24 -07:00
Christian Sonne
9239a70d8b Bug 857236 - followup fixing erroneous getBoolPref() call r=gavin 2013-05-16 19:14:45 -07:00
Benjamin Peterson
125cb1c0c5 Bug 873309 followup - Killed another unused function. r=me CLOSED TREE 2013-05-16 20:44:04 -05:00
David Zbarsky
7e26888daa Fix b2g build, no bug 2013-05-16 18:07:12 -07:00
Tim Abraldes
9948921421 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. r=bbondy 2013-05-16 17:47:46 -07:00
David Zbarsky
e38d5abf49 Bug 873309 - Remove unused GetAllInFlowPaddingRects(Union) function r=roc 2013-05-16 17:46:10 -07:00
Allison Naaktgeboren
51468cdfcc Bug 873255 - Fx Metro: Remove option to always show tabs. r=mbrubeck 2013-05-16 17:43:57 -07:00
Ian Melven
c2c1482711 Bug 842657 - Flip the pref to enable the CSP 1.0 parser for Firefox (r=jst) 2013-05-16 08:06:43 -07:00
Ian Melven
3cb5f27888 Bug 763879 - implement inline stylesheet blocking for CSP (r=dbaron) 2012-08-30 10:58:24 -07:00
Ryan VanderMeulen
a61b407d08 Merge m-c to inbound. 2013-05-16 20:30:29 -04:00
Ryan VanderMeulen
3b2fb8dd48 Merge inbound to m-c. 2013-05-16 20:29:40 -04:00
Ryan VanderMeulen
374a1b9b73 Merge fx-team to m-c. 2013-05-16 20:28:17 -04:00
Ryan VanderMeulen
f61dd730f5 Merge birch to m-c. 2013-05-16 20:27:55 -04:00
Ehsan Akhgari
8e8fe6fed9 Bug 836599 - Part 14: Run most of the existing Web Audio tests using OfflineAudioContext as well as AudioContext; r=roc
This helps us get a decent amount of test coverage on OfflineAudioContext in
both the existing tests and the future tests.
2013-05-16 19:31:08 -04:00
Ehsan Akhgari
f08b3af866 Bug 836599 - Part 13: Add a unit test for OfflineAudioContext; r=roc 2013-05-16 19:31:08 -04:00
Ehsan Akhgari
e5e74aa411 Bug 836599 - Part 12: Fix the lifetime management of the Web Audio graph in presence of OfflineAudioContexts; r=roc
Here we make the non-realtime graphs to go to sleep until they're shut down
from the main thread.  This allows us to use the common forced shutdown code
path in MediaStreamGraphImpl::RunThread.  We also need to delete the graph
object when the last message is dispatched to it.

In addition, we need to make sure that the AudioNodes also get released when
they're no longer needed.  To do this, we need for force the SelfReference of
AudioBufferSourceNodes to be released when the context is shut down, and also
trigger the destruction of the graph there.
2013-05-16 19:31:08 -04:00
Ehsan Akhgari
3922e3215b Bug 836599 - Part 11: Implement the processing of OfflineAudioContext; r=roc
We use a custom AudioNodeEngine for the destination nodes belonging to
OfflineAudioContexts, and there we record the rendered buffer.  Once the buffer
is full, we resample it if the sampling rate of the OfflineAudioContext is
different than the ideal sampling rate, and then we hand it off to the main
thread in order for the complete event to be dispatched.
2013-05-16 19:30:57 -04:00
Ehsan Akhgari
e27939f54d Bug 836599 - Part 10: Use the non-realtime MediaStreamGraph API and a custom destination node engine for OfflineAudioContext; r=roc
We offload most of the logic for OfflineAudioContext to the destination node,
since that's where the sample recording needs to happen, so doing this will
make the code simpler.
2013-05-16 19:30:42 -04:00
Ehsan Akhgari
a96e98f013 Bug 836599 - Part 9: Implement the DOM binding for OfflineAudioContext; r=roc 2013-05-16 19:30:41 -04:00
Ehsan Akhgari
aecaa516ae Bug 836599 - Part 8: Add a non-realtime media graph API to produce a given number of ticks; r=roc 2013-05-16 19:30:41 -04:00
Bobby Holley
0a7cefa97a Bug 873253 Crash clicking on file input in XUL whitelisted site r=bz 2013-05-16 23:57:18 +01:00
Myk Melez
c5b21393b4 bug 860043 - don't log by default; remove extraneous newlines; r=sicking
--HG--
extra : rebase_source : 0eadba653575f9faf9037ecce5904bab107d2f5c
2013-05-16 15:42:18 -07:00
Ryan VanderMeulen
0789066b2f Merge m-c to fx-team. 2013-05-16 16:19:25 -04:00
Ryan VanderMeulen
3e961f82d0 Merge m-c to birch. 2013-05-16 16:18:21 -04:00
Ryan VanderMeulen
048f4afd65 Merge the last PGO-green inbound changeset to m-c. 2013-05-16 16:16:42 -04:00
Jan Keromnes
f525c580be Bug 873216 - Fixed a typo in ./mach help; r=gps
DONTBUILD (NPOTB)
2013-05-16 12:59:00 -07:00
Sid Stamm
0cd440877e Backout changeset 000ed86d069f (bug 861117) which caused bug 871560
--HG--
extra : rebase_source : 6359c671885b93f7885ca2cabfd8da772692d548
2013-05-16 11:26:33 -07: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
Olli Pettay
9e26f82682 additional patch for Bug 847594, remove bogus assertion, r=bz, CLOSED TREE 2013-05-16 19:16:29 +03:00
Benjamin Peterson
d1ff8a67e2 Bug 872893 - Make EmitElemOp static. r=bhackett
--HG--
extra : rebase_source : ef256ee76e7d08e9a9b1ebfcd5f4b2cdd126c546
2013-05-16 10:54:26 -05:00
Jim Mathies
cc65352afa Bug 868217 - Hide sync flyout description when sync is setup properly. r=ally 2013-05-16 08:53:34 -07:00
Jim Mathies
04c9b1a623 Bug 872292 - Update progress bar styling. r=mbrubeck 2013-05-16 08:53:28 -07:00
Panos Astithas
6b052b1e91 Bug 871510 - Some event handlers appear as undefined, hiding the appropriate null values in the prototype; r=msucan 2013-05-16 18:42:15 +03:00
Ryan VanderMeulen
015d7a6235 Merge m-c to inbound. 2013-05-16 11:26:58 -04:00
Ehsan Akhgari
2f3ac0380a Bug 873038 - Remove the old MSVC PGO exclusions across the tree; r=glandium 2013-05-16 11:16:30 -04:00