Commit Graph

131935 Commits

Author SHA1 Message Date
Bobby Holley
7f49ad21dd Bug 860941 - Remove assertion annotations for the now-removed mArguments assertion. r=jst 2013-05-16 23:33:15 -07:00
Bobby Holley
0812b158a7 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
c845ac4102 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
d4c5c27a89 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
49223662aa 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
983ad0969a 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
5162bde228 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
1423107658 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
0d5c9c4ac9 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
0e71f8d44e 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
1e7e266874 Bug 859966 - Switch linux builds to gcc 4.7.2. r=gps 2013-05-17 08:21:45 +02:00
Frank Yan
08b4ff69d9 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
d935934099 Bug 873322 - need handy function for easy getText... testing, r=tbsaunde 2013-05-17 15:08:27 +09:00
Benjamin Peterson
9b8d841a43 No bug - Fix indentation. r=trivial DONTBUILD 2013-05-17 00:20:35 -05:00
Tim Abraldes
4a868b408f 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
d20b4ce4b4 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
eb385de2df Back out 9675dce26f53 (bug 839342) for browser-chrome bustage 2013-05-16 20:09:24 -07:00
Christian Sonne
cb955637f5 Bug 857236 - followup fixing erroneous getBoolPref() call r=gavin 2013-05-16 19:14:45 -07:00
Benjamin Peterson
68051dd3dd Bug 873309 followup - Killed another unused function. r=me CLOSED TREE 2013-05-16 20:44:04 -05:00
David Zbarsky
f3e4506def Fix b2g build, no bug 2013-05-16 18:07:12 -07:00
Tim Abraldes
b11ea57c38 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
4a4ca2b48f Bug 873309 - Remove unused GetAllInFlowPaddingRects(Union) function r=roc 2013-05-16 17:46:10 -07:00
Allison Naaktgeboren
61e42263c1 Bug 873255 - Fx Metro: Remove option to always show tabs. r=mbrubeck 2013-05-16 17:43:57 -07:00
Ian Melven
9f8a874161 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
48879dbfb8 Bug 763879 - implement inline stylesheet blocking for CSP (r=dbaron) 2012-08-30 10:58:24 -07:00
Ryan VanderMeulen
5b8d25f0d3 Merge m-c to inbound. 2013-05-16 20:30:29 -04:00
Ryan VanderMeulen
0a63e25ce6 Merge inbound to m-c. 2013-05-16 20:29:40 -04:00
Ryan VanderMeulen
3f98932fa2 Merge fx-team to m-c. 2013-05-16 20:28:17 -04:00
Ryan VanderMeulen
0aef836fd9 Merge birch to m-c. 2013-05-16 20:27:55 -04:00
Ehsan Akhgari
3894f484df 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
30c4151889 Bug 836599 - Part 13: Add a unit test for OfflineAudioContext; r=roc 2013-05-16 19:31:08 -04:00
Ehsan Akhgari
d2c63bc836 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
e31cd426d8 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
1428a73574 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
e7318c89ad Bug 836599 - Part 9: Implement the DOM binding for OfflineAudioContext; r=roc 2013-05-16 19:30:41 -04:00
Ehsan Akhgari
a8cb458faf 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
2e42030f56 Bug 873253 Crash clicking on file input in XUL whitelisted site r=bz 2013-05-16 23:57:18 +01:00
Myk Melez
7759fb1944 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
0a6914a2e7 Merge m-c to fx-team. 2013-05-16 16:19:25 -04:00
Ryan VanderMeulen
5fb63368ec Merge m-c to birch. 2013-05-16 16:18:21 -04:00
Ryan VanderMeulen
819ece47cb Merge the last PGO-green inbound changeset to m-c. 2013-05-16 16:16:42 -04:00
Jan Keromnes
387b27d7aa Bug 873216 - Fixed a typo in ./mach help; r=gps
DONTBUILD (NPOTB)
2013-05-16 12:59:00 -07:00
Sid Stamm
edfad880d3 Backout changeset 000ed86d069f (bug 861117) which caused bug 871560
--HG--
extra : rebase_source : 6359c671885b93f7885ca2cabfd8da772692d548
2013-05-16 11:26:33 -07:00
Dave Hylands
179cac5202 Bug 872170 - Fix camera file saving with composite device storage. r=mikeh 2013-05-16 11:12:29 -07:00
Dave Hylands
22d3b834a6 Bug 872800 - Fix volume availability notifications for composite storage areas. r=mchen 2013-05-16 11:11:58 -07:00
Dave Hylands
4e6b1ff1bd Bug 872800 - Remove extraneous printfs added from Bug 858416. r=mchen 2013-05-16 11:11:54 -07:00
Thomas Zimmermann
02099f2087 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
a140d82a9a additional patch for Bug 847594, remove bogus assertion, r=bz, CLOSED TREE 2013-05-16 19:16:29 +03:00
Benjamin Peterson
167fdfd8f7 Bug 872893 - Make EmitElemOp static. r=bhackett
--HG--
extra : rebase_source : ef256ee76e7d08e9a9b1ebfcd5f4b2cdd126c546
2013-05-16 10:54:26 -05:00
Jim Mathies
d3baed76f4 Bug 868217 - Hide sync flyout description when sync is setup properly. r=ally 2013-05-16 08:53:34 -07:00