gecko/dom/base
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
..
crashtests
test 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
ConsoleAPI.js Bug 855058 - Fix for intermittent browser/dom/tests/browser/browser_ConsoleAPITests.js | timer duration is positive; r=rcampbell 2013-04-30 21:35:07 +03:00
ConsoleAPI.manifest
ConsoleAPIStorage.jsm Bug 862970 - Don't lock images on the active page on B2G. r=jlebar,joe 2013-04-25 18:36:53 -07:00
Crypto.cpp Bug 868312: Various dom rooting fixes r=bz 2013-05-04 03:52:57 -04:00
Crypto.h Bug 849086: Remove unused *_CLASSNAME defines. r=bsmedberg 2013-03-15 10:52:10 -07:00
DOMCursor.cpp Bug 864727 part 5. Make all the WrapObject methods take a handle for the scope object. r=ms2ger 2013-04-25 12:29:54 -04:00
DOMCursor.h Bug 864727 part 5. Make all the WrapObject methods take a handle for the scope object. r=ms2ger 2013-04-25 12:29:54 -04:00
domerr.msg
DOMError.cpp
DOMError.h
DOMRequest.cpp Bug 869073 - make WebIDL enums enum classes instead of plain enums; r=bz 2013-05-06 15:28:13 -04:00
DOMRequest.h Bug 869073 - make WebIDL enums enum classes instead of plain enums; r=bz 2013-05-06 15:28:13 -04:00
DOMRequestHelper.jsm
IndexedDBHelper.jsm
Makefile.in 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
moz.build Backed out changeset 496846474ed3 (bug 864774) 2013-05-13 10:05:49 +01:00
Navigator.cpp Bug 872800 - Fix volume availability notifications for composite storage areas. r=mchen 2013-05-16 11:11:58 -07:00
Navigator.h Bug 861496 - Replace #ifdef MOZ_SYS_MSG by a preference. r=fabrice 2013-04-30 09:01:46 -04:00
nsBarProps.cpp Bug 864166 - Part d: Outparamdel nsGlobalWindow::GetWebBrowserChrome; r=mounir 2013-04-26 08:51:04 +02:00
nsBarProps.h
nsContentPermissionHelper.cpp
nsContentPermissionHelper.h
nsDOMCID.h
nsDOMClassInfo.cpp Bug 860941 - Separate the handling of |dialogArguments| and |arguments|, and use IDL for the |dialogArguments| getter. r=jst 2013-05-16 23:33:14 -07:00
nsDOMClassInfo.h Bug 871189 - Remove Document classinfo r=bz 2013-05-16 11:06:21 -07:00
nsDOMClassInfoClasses.h Bug 871189 - Remove Document classinfo r=bz 2013-05-16 11:06:21 -07:00
nsDOMClassInfoID.h Back out bug 860591 (rev 8488f69f8f91) because it causes orange, resulting in a CLOSED TREE 2013-04-12 12:50:06 -04:00
nsDOMException.cpp Bug 861729 - Remove nsPIDOMWindow::GetExtantDocument r=Ms2ger 2013-04-24 00:22:37 -04:00
nsDOMException.h
nsDOMJSUtils.h Bug 868122 - Remove nsIScriptContextPrincipal. r=gabor 2013-05-06 16:53:10 -07:00
nsDOMNavigationTiming.cpp [Bug 857884] Use dom::EventTarget more instead of nsIDOMEventTarget Part 7 r=Ms2ger 2013-04-21 21:25:28 -04:00
nsDOMNavigationTiming.h
nsDOMScriptObjectFactory.cpp Bug 865729 - Remove nsIJSContextStack from dom/foo. r=gabor 2013-04-29 11:16:18 -07:00
nsDOMScriptObjectFactory.h Bug 851791 - Kill some script type id stuff; r=bz 2013-04-04 09:04:50 +02:00
nsDOMString.h
nsDOMWindowList.cpp
nsDOMWindowList.h
nsDOMWindowUtils.cpp 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
nsDOMWindowUtils.h
nsFocusManager.cpp Backout bug 862693 (Stop the :-moz-focusring pseudo-class from matching if an element is themed and the theme will display a visual indication of focus for the element. r=roc) 2013-04-21 11:30:11 +01:00
nsFocusManager.h Backout bug 862693 (Stop the :-moz-focusring pseudo-class from matching if an element is themed and the theme will display a visual indication of focus for the element. r=roc) 2013-04-21 11:30:11 +01:00
nsGlobalWindow.cpp Bug 860941 - Separate the handling of |dialogArguments| and |arguments|, and use IDL for the |dialogArguments| getter. r=jst 2013-05-16 23:33:14 -07:00
nsGlobalWindow.h Bug 860941 - Separate the handling of |dialogArguments| and |arguments|, and use IDL for the |dialogArguments| getter. r=jst 2013-05-16 23:33:14 -07:00
nsGlobalWindowCommands.cpp Bug 861729 - Remove nsPIDOMWindow::GetExtantDocument r=Ms2ger 2013-04-24 00:22:37 -04:00
nsGlobalWindowCommands.h
nsHistory.cpp Bug 861729 - Remove nsPIDOMWindow::GetExtantDocument r=Ms2ger 2013-04-24 00:22:37 -04:00
nsHistory.h
nsIDOMClassInfo.h
nsIDOMDOMCursor.idl
nsIDOMDOMError.idl
nsIDOMDOMRequest.idl Bug 853158 - Update the uuid of nsIDOMEventTarget and subclasses. 2013-03-30 10:45:37 +01:00
nsIDOMScriptObjectFactory.h
nsIEntropyCollector.idl
nsIGlobalObject.h Bug 820170 - nsIGlobalObject. r=bholley 2013-04-04 11:27:06 +02:00
nsIJSEventListener.h Bug 868312: Various dom rooting fixes r=bz 2013-05-04 03:52:57 -04:00
nsIJSNativeInitializer.h Bug 865410 - Use CallArgs for nsIJSNativeInitializer::Initialize. r=bz 2013-05-04 19:25:15 +02:00
nsIScriptChannel.idl
nsIScriptContext.h Bug 868312 - Rooting fixes for dom r=bz 2013-05-10 14:22:21 -04:00
nsIScriptExternalNameSet.h
nsIScriptGlobalObject.h Merge m-c to m-i. 2013-04-04 14:15:56 +02:00
nsIScriptGlobalObjectOwner.h
nsIScriptNameSpaceManager.h
nsIScriptObjectPrincipal.h
nsIScriptRuntime.h Bug 851568 - Remove HoldScriptObject and DropScriptObject; r=smaug 2013-03-19 10:20:22 -07:00
nsIScriptTimeoutHandler.h Back out Bug 810644 part 1 to fix b2g test_closeOnGC.html orange on CLOSED TREE 2013-04-08 22:56:06 -04:00
nsISiteSpecificUserAgent.idl
nsISizeOfEventTarget.h
nsJSEnvironment.cpp Bug 860941 - Separate the handling of |dialogArguments| and |arguments|, and use IDL for the |dialogArguments| getter. r=jst 2013-05-16 23:33:14 -07:00
nsJSEnvironment.h Bug 868312 - Rooting fixes for dom r=bz 2013-05-10 14:22:21 -04:00
nsJSTimeoutHandler.cpp Bug 868312: Various dom rooting fixes r=bz 2013-05-04 03:52:57 -04:00
nsJSUtils.cpp Bug 853607: Replace spammy NS_ENSURE_TRUE with explicit null-check-and-return, in nsJSUtils::GetStaticScriptGlobal(). r=bz 2013-03-21 18:50:44 -07:00
nsJSUtils.h Bug 868765. Make the jsid constructor for nsDependentJSString take a Handle. r=ms2ger 2013-05-06 08:30:56 -04:00
nsLocation.cpp Bug 865729 - Remove nsIJSContextStack from dom/foo. r=gabor 2013-04-29 11:16:18 -07:00
nsLocation.h
nsMimeTypeArray.cpp Bug 856455 - Make nsCOMArray::SetCapacity return void; r=bsmedberg 2013-03-31 16:06:18 -04:00
nsMimeTypeArray.h
nsPerformance.cpp Bug 870667. Reinstate a way to turn off performance.timing bits using a pref. r=smaug 2013-05-10 18:57:58 -04:00
nsPerformance.h Bug 870667. Reinstate a way to turn off performance.timing bits using a pref. r=smaug 2013-05-10 18:57:58 -04:00
nsPIDOMWindow.h Bug 860941 - Separate the handling of |dialogArguments| and |arguments|, and use IDL for the |dialogArguments| getter. r=jst 2013-05-16 23:33:14 -07:00
nsPIWindowRoot.h Bug 857884 - Use dom::EventTarget more in content/ and dom/ r=Ms2ger 2013-04-05 20:44:15 -04:00
nsPluginArray.cpp Bug 418615 - Neuter the code which tries to reframe existing plugin instances when navigator.plugins.refresh(true) is called. Instead, only scan for new plugins, unload unused plugins. The DOM code will continue to refresh the current page which calls navigator.plugins.refresh(true). r=jschoenick sr=bz 2013-04-23 16:02:12 -04:00
nsPluginArray.h bug 856777 - observe plugin-info-updated in nsPluginArray, not Navigator r=khuey 2013-04-10 13:59:45 -07:00
nsQueryContentEventResult.cpp
nsQueryContentEventResult.h
nsScreen.cpp Bug 871177. Fix rooting hazard in IsNotDateOrRegexp. r=smaug 2013-05-15 21:46:44 -04:00
nsScreen.h Bug 851642 - Make sure fullscreenchange event is sent even when the document is being removed from the doctree. r=smaug 2013-05-13 12:00:42 +01:00
nsScriptNameSpaceManager.cpp Bug 863704 - Make global-constructor and navigator-property categories respect a preference. r=jst 2013-05-01 18:44:44 -07:00
nsScriptNameSpaceManager.h Bug 851639 - Allow JS implemented WebIDL to be registered on window.navigator. r=bz 2013-04-30 13:30:25 -07:00
nsStructuredCloneContainer.cpp Bug 868634 - Remove compartment entry in nsStructuredCloneContainer. r=bz 2013-05-07 14:18:03 -07:00
nsStructuredCloneContainer.h Bug 849086: Remove unused *_CLASSNAME defines. r=bsmedberg 2013-03-15 10:52:10 -07:00
nsWindowMemoryReporter.cpp Bug 861729 - Remove nsPIDOMWindow::GetExtantDocument r=Ms2ger 2013-04-24 00:22:37 -04:00
nsWindowMemoryReporter.h
nsWindowRoot.cpp [Bug 857884] Use dom::EventTarget more instead of nsIDOMEventTarget Part 6 r=Ms2ger 2013-04-19 18:18:33 -04:00
nsWindowRoot.h Bug 835643 part 4. Put in place all the infrastructure to switch EventListener to WebIDL codegen. r=smaug 2013-04-16 17:16:08 -04:00
nsWrapperCache.h Bug 864727 part 5. Make all the WrapObject methods take a handle for the scope object. r=ms2ger 2013-04-25 12:29:54 -04:00
nsWrapperCacheInlines.h Bug 777548 - Make non-cc-participant tracing indirect; r=smaug,billm,jst 2013-03-28 13:37:22 -07:00
ObjectWrapper.jsm
ScreenOrientation.h Bug 847839 - Part 2: Remove obsolete files for Android XUL Fennec. r=mfinkle 2013-03-07 17:55:49 +00:00
SiteSpecificUserAgent.js 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
SiteSpecificUserAgent.manifest
StructuredCloneTags.h
URL.cpp
URL.h