Commit Graph

3919 Commits

Author SHA1 Message Date
Bobby Holley
4378070396 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-17 10:43:18 -07:00
Andrew McCreight
8765722e58 Bug 865320 - Move the logic for deciding when to doing a merging CC into the cycle collector. r=smaug 2013-04-29 16:41:41 -07:00
Jan-Ivar Bruaroey
98794b08f6 Bug 823512: Rewrite PeerConnection in JS-implemented WebIDL r=bz,jesup 2013-05-07 20:55:21 -04:00
Ed Morley
478afea680 Backed out changeset 70c3a3a74362 (bug 860941) for mochitest-3 timeouts on a CLOSED TREE 2013-05-17 09:09:21 +01:00
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
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
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
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
Phil Ringnalda
a82109f5f1 Back out 9675dce26f53 (bug 839342) for browser-chrome bustage 2013-05-16 20:09:24 -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
Ryan VanderMeulen
91eae578bd Merge inbound to m-c. 2013-05-16 20:29:40 -04:00
Ryan VanderMeulen
c87dc8562f Merge m-c to birch. 2013-05-16 16:18:21 -04:00
Dave Hylands
4a56501d24 Bug 872800 - Fix volume availability notifications for composite storage areas. r=mchen 2013-05-16 11:11:58 -07:00
David Zbarsky
680b9b7951 Bug 871189 - Remove Document classinfo r=bz 2013-05-16 11:06:21 -07:00
Scott Johnson
753cf214e9 Bug 862763, Followup 1: Make MaybeReflowForInflationScreenWidthChange trigger a reflow when font inflation prefs change in either direction. [r=dbaron] 2013-05-16 10:06:04 -05:00
Scott Johnson
5c4218d9ad Bug 862763: Cache whether font size inflation is enabled in the pres shell for efficiency. [r=dbaron] 2013-05-16 10:06:03 -05:00
Ted Mielczarek
3cfd62c3d2 bug 871712 - make MSVC PGO opt-in per-directory, and opt-in in the directories that matter. r=glandium 2013-05-16 09:33:26 -04:00
Boris Zbarsky
42f794f96b Bug 871177. Fix rooting hazard in IsNotDateOrRegexp. r=smaug 2013-05-15 21:46:44 -04:00
Nathan Froyd
817c5fbc24 Bug 872558 - fix uninitialized variable warning in nsDOMWindowUtils::SelectAtPoint; r=bz 2013-05-15 11:08:50 -04:00
David Zbarsky
bf7a4693fd Bug 868312 - Rooting fixes for dom r=bz 2013-05-14 16:25:32 -07:00
Ryan VanderMeulen
6ffca1e991 Merge m-c to inbound. 2013-05-14 10:51:43 -04:00
Ryan VanderMeulen
c834d91a7c Merge m-c to birch. 2013-05-14 08:38:59 -04:00
Reuben Morais
86c2e45a3e Bug 862353 - Remove NavigatorPropertyHelper. r=bent 2013-05-13 18:32:26 -07:00
Ehsan Akhgari
cc7519e043 Bug 871315 - Fix some rooting hazards in content/; r=till,bzbarsky 2013-05-13 13:43:53 -04:00
Ryan VanderMeulen
4038e4710f Merge m-c to inbound. 2013-05-13 12:02:04 -04:00
Masatoshi Kimura
de5b4fd388 Bug 673919 - Remove captureEvents, releaseEvents, and routeEvent. r=smaug 2013-05-14 21:18:39 +09:00
David Zbarsky
8e335194cb Backed out changeset 3b73e9c7a5d0 for orange 2013-05-14 01:00:11 -07:00
David Zbarsky
90f74823e7 Bug 868312 - Rooting fixes for dom r=bz 2013-05-14 00:15:53 -07:00
Mounir Lamouri
d5af9d6e1e Bug 851642 - Make sure fullscreenchange event is sent even when the document is being removed from the doctree. r=smaug
... instead of relying on nsScreen being destroyed which was causing flaky
behaviour on Firefox Android (based on GC) and was creating a race condition bug
on Firefox OS.
2013-05-13 12:00:42 +01:00
Ehsan Akhgari
04e1c87b5e Backed out 2 changesets (bug 871315) because different compilers have different standards on what is and is not C++
Backed out changeset d0d2e13e8b83 (bug 871315)
Backed out changeset be3976bd2d57 (bug 871315)

Landed on a CLOSED TREE
2013-05-13 14:42:03 -04:00
Dave Hylands
c53a4e7f72 Bug 858416 - Create a composite device storage interface. r=dougt
* * *
Bug 858416 - Fix try test failures
2013-05-11 02:10:18 -07:00
David Zbarsky
e35c65d6d0 Bug 868312 - Some more rooting fixes for dom r=bz 2013-05-10 22:39:45 -04:00
Boris Zbarsky
e822a2af3a Bug 870667. Reinstate a way to turn off performance.timing bits using a pref. r=smaug
This is used by the Tor project, for example.
2013-05-10 18:57:58 -04:00
David Zbarsky
480bf64980 Bug 868312 - Rooting fixes for dom r=bz 2013-05-10 14:22:21 -04:00
Mitchell Mebane
b27593f36d Bug 814379 - Don't use cached userAgent for fallback when no site-specific UA exists. r=dao 2013-05-10 08:40:44 -04:00
Ehsan Akhgari
9dda412b4e Bug 871315 - Fix some rooting hazards in content/; r=till,bzbarsky 2013-05-13 13:43:53 -04:00
Boris Zbarsky
546d9f565d Bug 868996. Allow setting opener on the window to non-null, for just the lifetime of the page. r=bholley 2013-05-09 13:07:39 -04:00
Ryan VanderMeulen
9edc2f4aa0 Backed out 6 changesets (bug 868996, bug 867903, bug 869014, bug 870219, bug 861587) for PGO bustage.
CLOSED TREE
2013-05-09 17:11:59 -04:00
Andrea Marchesini
5feea46ee3 Bug 853386 - Remove nsIDOMSVGRect and classinfo for SVGRect. r=Ms2ger 2013-05-09 13:42:12 -04:00
Andrea Marchesini
da5e259b0e Bug 866796 - Convert SVGAnimatedRect to WebIDL. r=Ms2ger 2013-05-09 13:42:12 -04:00