Commit Graph

309471 Commits

Author SHA1 Message Date
Ed Morley
e14725b05d Backed out changeset 98594535c1e9 (bug 860941) 2013-05-17 09:08:49 +01:00
Ed Morley
05a8c3826c Backed out changeset 474792d1fb89 (bug 860941) 2013-05-17 09:08:46 +01:00
Ed Morley
4521aa4875 Backed out changeset 0ad1a92ca568 (bug 860941) 2013-05-17 09:08:44 +01:00
Ed Morley
0a165f6339 Backed out changeset 90b318fb8375 (bug 860941) 2013-05-17 09:08:41 +01:00
Ed Morley
7cad02c90f Backed out changeset 95006bb32743 (bug 860941) 2013-05-17 09:08:38 +01:00
Ed Morley
b0fa1fd657 Backed out changeset de30d8faf09a (bug 860941) 2013-05-17 09:08:36 +01:00
Ed Morley
68d837546f Backed out changeset d2505c0f1c45 (bug 860941) 2013-05-17 09:08:33 +01:00
Ed Morley
952cea0245 Backed out changeset 34c65a615373 (bug 860941) 2013-05-17 09:08:31 +01:00
Victor Porof
1c9cbd0553 Bug 872864 - Intermittent browser_net_simple-request-data.js | The requestHeaders attachment has an incorrect |headers| property. - Got 6, expected 7 | browser_net_simple-request-details.js | There should be 13 header values displayed in this tabpanel. etc, r=rcampbell 2013-05-17 10:59:04 +03:00
Mark Banner
ac87dbbe99 Bug 872323 Ensure places is enabled in social tests now that they rely on places, so that apps which disable places by default have their tests passing. r=mixedpuppy 2013-05-17 09:51:36 +02:00
Bobby Holley
54353aa3da Bug 860941 - Remove assertion annotations for the now-removed mArguments assertion. r=jst 2013-05-16 23:33:15 -07:00
Bobby Holley
7181d1829c 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
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