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

309459 Коммитов

Автор SHA1 Сообщение Дата
Bobby Holley 3d0e47e04e 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 ea304d6343 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 f8a3b362a1 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 7b7f24f6d5 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 0a5e943de8 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 9eef721690 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 2614718339 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 6dd0992a9b 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 9da0a2d33f Bug 859966 - Switch linux builds to gcc 4.7.2. r=gps 2013-05-17 08:21:45 +02:00
Frank Yan 1dabec7d89 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 afcc697d9e Bug 873322 - need handy function for easy getText... testing, r=tbsaunde 2013-05-17 15:08:27 +09:00
Benjamin Peterson 2a1e282326 No bug - Fix indentation. r=trivial DONTBUILD 2013-05-17 00:20:35 -05:00
Tim Abraldes bb4ee51634 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 cf3228fe35 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 a82109f5f1 Back out 9675dce26f53 (bug 839342) for browser-chrome bustage 2013-05-16 20:09:24 -07:00
Christian Sonne 88e6ffbfce Bug 857236 - followup fixing erroneous getBoolPref() call r=gavin 2013-05-16 19:14:45 -07:00
Benjamin Peterson fd9a559fd3 Bug 873309 followup - Killed another unused function. r=me CLOSED TREE 2013-05-16 20:44:04 -05:00
David Zbarsky b7a4767301 Fix b2g build, no bug 2013-05-16 18:07:12 -07:00
Tim Abraldes a8f80df70f 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 2dbc8290e2 Bug 873309 - Remove unused GetAllInFlowPaddingRects(Union) function r=roc 2013-05-16 17:46:10 -07:00
Allison Naaktgeboren 983bc4e034 Bug 873255 - Fx Metro: Remove option to always show tabs. r=mbrubeck 2013-05-16 17:43:57 -07:00
Ian Melven b8080d575d 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 8b39be405f Bug 763879 - implement inline stylesheet blocking for CSP (r=dbaron) 2012-08-30 10:58:24 -07:00
Ryan VanderMeulen 5b207a88f1 Merge m-c to inbound. 2013-05-16 20:30:29 -04:00
Ryan VanderMeulen 91eae578bd Merge inbound to m-c. 2013-05-16 20:29:40 -04:00
Ryan VanderMeulen d9e34b6f60 Merge fx-team to m-c. 2013-05-16 20:28:17 -04:00
Ryan VanderMeulen a026bb0c33 Merge birch to m-c. 2013-05-16 20:27:55 -04:00
Ehsan Akhgari 56b05d7b13 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 1d49386d36 Bug 836599 - Part 13: Add a unit test for OfflineAudioContext; r=roc 2013-05-16 19:31:08 -04:00
Ehsan Akhgari 5e74778928 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 73fcbb6b99 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 a7c05da424 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 ee70633121 Bug 836599 - Part 9: Implement the DOM binding for OfflineAudioContext; r=roc 2013-05-16 19:30:41 -04:00
Ehsan Akhgari 8d5f66955c 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 23bebc9642 Bug 873253 Crash clicking on file input in XUL whitelisted site r=bz 2013-05-16 23:57:18 +01:00
Myk Melez 7ff10bebb3 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 5d89a58470 Merge m-c to fx-team. 2013-05-16 16:19:25 -04:00
Ryan VanderMeulen c87dc8562f Merge m-c to birch. 2013-05-16 16:18:21 -04:00
Ryan VanderMeulen da157db5d0 Merge the last PGO-green inbound changeset to m-c. 2013-05-16 16:16:42 -04:00
Jan Keromnes 83f967e360 Bug 873216 - Fixed a typo in `./mach help`; r=gps
DONTBUILD (NPOTB)
2013-05-16 12:59:00 -07:00
Sid Stamm 5136b7c1e1 Backout changeset 000ed86d069f (bug 861117) which caused bug 871560
--HG--
extra : rebase_source : 6359c671885b93f7885ca2cabfd8da772692d548
2013-05-16 11:26:33 -07:00
Dave Hylands 70ed43e46c Bug 872170 - Fix camera file saving with composite device storage. r=mikeh 2013-05-16 11:12:29 -07:00
Dave Hylands 4a56501d24 Bug 872800 - Fix volume availability notifications for composite storage areas. r=mchen 2013-05-16 11:11:58 -07:00
Dave Hylands e3d9f00e8e Bug 872800 - Remove extraneous printfs added from Bug 858416. r=mchen 2013-05-16 11:11:54 -07:00
Thomas Zimmermann 90691b7347 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 5e3f06d12c additional patch for Bug 847594, remove bogus assertion, r=bz, CLOSED TREE 2013-05-16 19:16:29 +03:00
Benjamin Peterson 4e92847ef8 Bug 872893 - Make EmitElemOp static. r=bhackett
--HG--
extra : rebase_source : ef256ee76e7d08e9a9b1ebfcd5f4b2cdd126c546
2013-05-16 10:54:26 -05:00
Jim Mathies 7aed63cdce Bug 868217 - Hide sync flyout description when sync is setup properly. r=ally 2013-05-16 08:53:34 -07:00
Jim Mathies 1fefbb9ddb Bug 872292 - Update progress bar styling. r=mbrubeck 2013-05-16 08:53:28 -07:00
Panos Astithas 259e2a67eb 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