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

286650 Коммитов

Автор SHA1 Сообщение Дата
Bobby Holley 6894d29805 Bug 761695 - Move wrapper preservation stuff into a virtual trap. r=peterv
I'm not sure this stuff is correct for non-WN objects. Hopefully that will
come out in review.

Anyway, with this change, the expando infrastructure in XrayTraits is now
fully generic and non-WN-specific. To make things work for other objects,
we now need to implement the virtual traps and hoist the code that calls the
expando machinery out of XPCWrappedNativeXrayTraits.
2012-10-05 18:59:23 +02:00
Bobby Holley e5b93a88c9 Bug 761695 - Make expando chain getting/setting a virtual trap. r=peterv 2012-10-05 18:59:23 +02:00
Bobby Holley d9be4b7c75 Bug 761695 - Hoist expando infrastructure into XrayTraits. r=peterv
It's still WN-only, now we can move the WN-only bits into virtual traps.

Note that the new-binding reparenting code will need to have a call to
CloneExpandoChain.
2012-10-05 18:59:23 +02:00
Bobby Holley 9b34e0d88e Bug 761695 - Hoist Xray identification machinery into XrayWrapper, and use it for trait identification. r=peterv
We don't currently have a good way of selecting the traits used by a given Xray
wrapper. This lets us do that.

Note: We add a call to js::UnwrapObject to GetXrayType while hoisting it. When
it was used only in WrapperFactory, this was unnecessary, because |obj| was
always unwrapped. But for our new purposes, it might not be. Aside from that,
there are no changes to the function.
2012-10-05 18:59:23 +02:00
Bobby Holley 79702a4c27 Bug 761695 - Move Xray expando infrastructure further down in the file. r=peterv
Just cut/paste. No code changes.
2012-10-05 18:59:23 +02:00
Bobby Holley 1a9081b1ce Bug 761695 - Unify holder creation and access. r=peterv
With this patch, all holders are created lazily. There are two common accessors,
getHolder() and ensureHolder(). The former returns null if no holder exists, the
latter lazily creates the holder if it doesn't exist. It does this by calling into
a virtual trap on XrayTraits, which lets the appropriate Xray type do its thing.
2012-10-05 18:59:23 +02:00
Bobby Holley 05eeb2aa4e Bug 761695 - Get the WN directly from the wrapper. r=peterv
All this indirection was getting seriously mucky. This, incidentally, means that
the XPCWN holder no longer needs a reserved slot pointing to the WN.
2012-10-05 18:59:23 +02:00
Bobby Holley 3b46b5fe43 Bug 761695 - Hoist call and construct traps into Traits, since the current implementations are XPCWN-specific. r=peterv 2012-10-05 18:59:22 +02:00
Bobby Holley 655913416f Bug 761695 - Rename getInnerObject to getTargetObject. r=peterv
The current name potentially implies that the object returned is an inner
object in the JS sense, which isn't true. Really we just want the thing
we're Xraying to.
2012-10-05 18:59:22 +02:00
Bobby Holley 3ae8dedbf2 Bug 761695 - Hoist getInnerObject into XrayTraits. r=peterv
The only special handling here with wrapped natives is to make sure that we
bypass outer windows. But we can do this with js::UnwrapObject.
2012-10-05 18:59:22 +02:00
Bobby Holley 0aab228c02 Bug 761695 - Make Xray traits inherit from a common superclass and give them a singleton instance. r=peterv
There's some code that can be shared between different Xray traits, but can't
(yet) be hoisted into XrayWrapper, because it needs to be callable from outside
XrayWrapper where we don't have the appropriate template parameters. Moreover,
this code benefits from virtual function specialization. The use case here is
illuminated in the next patch.

For the moment, we skip converting the bulk of the traits calls to virtual
methods, because they're working just fine.
2012-10-05 18:59:22 +02:00
Bobby Holley 5173bb4550 Bug 761695 - Stop stashing a raw WN pointer in XPCWN Xray holders. r=peterv
We might as well do this dynamically, which simplifies the code. Note that we
could avoid the reserved slot by parenting the holder to the wrapper. But the
JS parent API is deprecated, and we need to move away from it to reserved slots
anyhow. We might as well start here, with the added advantage that parenting
to the global makes us consistent with the other Xray types.
2012-10-05 18:59:22 +02:00
Bobby Holley 66236ce627 Bug 761695 - Simplify XPCWN Xray holder creation. r=peterv
The major semantic change here is that we parent holders directly to their
global. This should be fine.
2012-10-05 18:59:22 +02:00
Bobby Holley 54bd828407 Bug 761695 - Fix inaccurate commenting. r=peterv
The .wrappedJSObject property only exists when the Xray wrapper subsumes the wrappee.
2012-10-05 18:59:22 +02:00
Bobby Holley fec49a84ee Bug 798346 - nsContentUtils::PreserveWrapper should explicitly QI its argument to the CC ISupports. r=peterv 2012-10-05 18:59:22 +02:00
Ed Morley 4ef3ea11bf Bug 798419 - Fix incorrect spellings of success(ful) in test output; r=me 2012-10-05 17:48:15 +01:00
Jeff Hammel e619d20092 Bug 792164 - add mozdevice to virtualenv in m-c;r=gps 2012-10-05 09:46:27 -07:00
Nathan Froyd 02948d84c9 Bug 746714 - add a memory reporter for telemetry; r=taras,njn 2012-10-05 12:19:14 -04:00
Sriram Ramasubramanian fa96289660 Bug 786029: Fennec should integrate with Android's search. [f=mfinkle, r=lucasr] 2012-10-04 16:57:39 -07:00
Justin Lebar f489e4717d Bug 796523 - Expire the JS timezone cache whenever we create a new compartment. r=waldo
This is a hack/heuristic to ensure that the JS timezone cache remains
fresh (so that if you navigate to a new page or refresh your gmail, you
always get the right timezone), while not interfering with the role the
cache plays in benchmark performance.
2012-10-05 11:33:36 -04:00
Jan de Mooij 9816e31ab0 Bug 797720 - Don't add MonitorTypes instruction if there's a type barrier. r=dvander 2012-10-05 17:16:11 +02:00
Ehsan Akhgari 36898b20a0 Bug 798345 - Fix the comm-central perma-orange introduced by bug 794606; r=jdm 2012-10-05 11:12:15 -04:00
Vladimir Vukicevic ef31101c74 b=731974, requestAnimationFrame generates too short/long frames; r=bz,smaug,roc 2012-10-02 10:54:46 -04:00
Vladimir Vukicevic 0cf1a2ff8a b=797975, disable browser_tabview_bug587503 test 4 because it's fragile 2012-10-04 19:58:09 -04:00
Vladimir Vukicevic d2042c3f67 b=756425; fix test_mousescroll by driving RefreshDriver directly; r=ehsan 2012-10-02 14:41:04 -04:00
Vladimir Vukicevic b30fc13de4 b=716031 and probably 752808 and 759254; fix test_selection_move_commands by driving RefreshDriver directly; r=ehsan 2012-10-02 14:41:04 -04:00
Vladimir Vukicevic 3f4b63a927 b=796980, fix content/events/test/window_wheel_default_action.html; r=ehsan,orange 2012-10-02 12:35:49 -04:00
Scott Johnson cfe1a7b7fb Bug 795932: Add a preference to enable reflow-on-zoom that is visible from the settings menu on Android. [r=blassey] 2012-10-04 14:41:48 -05:00
Scott Johnson 9ce3aa84f3 Bug 710298: Support reflow-on-zoom by limiting the max line box width after zooming in on mobile. [r=blassey] 2012-10-04 14:41:46 -05:00
Ehsan Akhgari 17af47564d Mark AsyncWaiter as final, no bug, blanket-r=bzbarsky 2012-10-05 10:48:49 -04:00
Chris Lord 66a018ae62 Bug 794130 - Fix intermittent crash in AndroidBridge::ShouldAbortProgressiveUpdate. r=blassey
I messed up the JNI code in AndroidJavaWrappers for this function. It was
always returning false and sometimes crashing.
2012-10-05 15:41:03 +01:00
adrian.tamas@softvision.ro 299e5d8443 Bug 777719 - Leaving only the History test as the others are already covered in existing bugs. r=jmaher 2012-10-04 19:18:14 +03:00
Rafael Ávila de Espíndola c07f94f359 Bug 798310 - Include Accessible-inl.h in nsMaiInterfaceTable.cpp. r=surkov.
--HG--
extra : rebase_source : 87f59b724062ee27e982ea54fceccf45391d228c
2012-10-05 10:20:12 -04:00
Fernando Jiménez 4b814a69e9 Bug 793186 - MMI Codes: implement sendMMI() and cancelMMI() - Part 3: Tests; r=marshall_law 2012-10-05 16:09:07 +02:00
Fernando Jiménez e1e8abbddc Bug 793186 - MMI Codes: implement sendMMI() and cancelMMI() - Part 2: RIL functionality; r=marshall_law 2012-10-05 16:09:00 +02:00
Fernando Jiménez 3f59d15b2a Bug 793186 - MMI Codes: implement sendMMI() and cancelMMI() - Part 1: Rename USSD-MMI; r=philikon 2012-10-05 16:08:55 +02:00
Simone Carletti b53374cfd5 Bug 761769 - Update PSL for .ve. Take 2. r=gerv. 2012-10-05 14:28:00 +01:00
Geoff Brown 4a3354e734 Bug 797942: Propagate SIZE_CHANGED to LayerManagerOGL; r=cwiiis 2012-10-05 04:26:33 -06:00
Alexander Surkov 43ad4eca7c Bug 798205 - move ia2 files under ia2 directory, r=tbsaunde
--HG--
rename : accessible/src/msaa/ia2AccessibleAction.cpp => accessible/src/windows/ia2/ia2AccessibleAction.cpp
rename : accessible/src/msaa/ia2AccessibleAction.h => accessible/src/windows/ia2/ia2AccessibleAction.h
rename : accessible/src/msaa/ia2AccessibleComponent.cpp => accessible/src/windows/ia2/ia2AccessibleComponent.cpp
rename : accessible/src/msaa/ia2AccessibleComponent.h => accessible/src/windows/ia2/ia2AccessibleComponent.h
rename : accessible/src/msaa/ia2AccessibleEditableText.cpp => accessible/src/windows/ia2/ia2AccessibleEditableText.cpp
rename : accessible/src/msaa/ia2AccessibleEditableText.h => accessible/src/windows/ia2/ia2AccessibleEditableText.h
rename : accessible/src/msaa/ia2AccessibleHyperlink.cpp => accessible/src/windows/ia2/ia2AccessibleHyperlink.cpp
rename : accessible/src/msaa/ia2AccessibleHyperlink.h => accessible/src/windows/ia2/ia2AccessibleHyperlink.h
rename : accessible/src/msaa/ia2AccessibleHypertext.cpp => accessible/src/windows/ia2/ia2AccessibleHypertext.cpp
rename : accessible/src/msaa/ia2AccessibleHypertext.h => accessible/src/windows/ia2/ia2AccessibleHypertext.h
rename : accessible/src/msaa/ia2AccessibleImage.cpp => accessible/src/windows/ia2/ia2AccessibleImage.cpp
rename : accessible/src/msaa/ia2AccessibleImage.h => accessible/src/windows/ia2/ia2AccessibleImage.h
rename : accessible/src/msaa/ia2AccessibleRelation.cpp => accessible/src/windows/ia2/ia2AccessibleRelation.cpp
rename : accessible/src/msaa/ia2AccessibleRelation.h => accessible/src/windows/ia2/ia2AccessibleRelation.h
rename : accessible/src/msaa/CAccessibleTable.cpp => accessible/src/windows/ia2/ia2AccessibleTable.cpp
rename : accessible/src/msaa/CAccessibleTable.h => accessible/src/windows/ia2/ia2AccessibleTable.h
rename : accessible/src/msaa/CAccessibleTableCell.cpp => accessible/src/windows/ia2/ia2AccessibleTableCell.cpp
rename : accessible/src/msaa/CAccessibleTableCell.h => accessible/src/windows/ia2/ia2AccessibleTableCell.h
rename : accessible/src/msaa/ia2AccessibleText.cpp => accessible/src/windows/ia2/ia2AccessibleText.cpp
rename : accessible/src/msaa/ia2AccessibleText.h => accessible/src/windows/ia2/ia2AccessibleText.h
rename : accessible/src/msaa/CAccessibleValue.cpp => accessible/src/windows/ia2/ia2AccessibleValue.cpp
rename : accessible/src/msaa/CAccessibleValue.h => accessible/src/windows/ia2/ia2AccessibleValue.h
2012-10-05 22:04:59 +09:00
Alexander Surkov a324e51448 Bug 708927 - enable events/test_focus_menu.xul partially, add more logging capabilities, r=tbsaunde 2012-10-05 22:00:28 +09:00
Ed Morley 2d2237893c Backout 4a76e692a4ab, 2962951f5fcc, d1d2149443ed, 83c3735801e7, 675ef796ed5b, f4b029b6b164, 83fa2144aa1d (bug 765119) for make check failures 2012-10-05 13:12:10 +01:00
Graeme McCutcheon 9ecfe6fc92 Bug 693029 - Followup - inconsistent quoting style sneaked in. DONTBUILD. 2012-10-05 12:17:57 +01:00
Graeme McCutcheon 9047fbf81c Bug 693029 - Don't check for disableFastFind attribute until we've got some of the document loaded. r=gavin 2012-10-05 11:56:22 +01:00
Ed Morley 5de1dcc6d3 Backout 953079e94edd (bug 791769) for xpcshell failures 2012-10-05 11:59:25 +01:00
Gina Yeh 196a8f9079 Bug 797810 - Patch 2: Cleanup for profile connect function, r=qdot 2012-10-05 18:48:05 +08:00
Gina Yeh b8946a2bd3 Bug 797810 - Patch 1: Support command "AT+CKPD=200" in BluetoothHfpManager, r=qdot 2012-10-05 18:48:05 +08:00
Marty Rosenberg 7342528803 Fix windows by adding in an initializer (bug 765119, r=dvander) 2012-10-05 06:15:36 -04:00
Marty Rosenberg 0c5fdbb0a8 Add in two patches that were lost while rebasing (bug 765119, r=jandem) 2012-10-03 09:37:50 -04:00
Marty Rosenberg 21c6d48457 Fix a bunch of bugs that the fuzzers found (bug 765119, r=dvander) 2012-10-02 04:34:28 -04:00
Marty Rosenberg fafb254a05 Teach RangeAnalysis how to deal with unreachable blocks (bug 765119, r=dvander) 2012-10-02 04:34:28 -04:00