Commit Graph

109274 Commits

Author SHA1 Message Date
Nicholas Nethercote
1b5371c422 Bug 797695 (part 3) - Exactly root js_NewFunction(). r=terrence.
--HG--
extra : rebase_source : afece8e51f17ad3ed4d7cef013f169fa957362d4
2012-10-04 16:21:51 -07:00
Nicholas Nethercote
763815ff83 Bug 797695 (part 2) - Exactly root jsfun.cpp. r=terrence.
--HG--
extra : rebase_source : 9a46d4b08cf0e71f34b7d87699329bc8f6ec4e47
2012-10-04 16:21:40 -07:00
Nicholas Nethercote
83edc53765 Bug 797695 (part 1) - Exactly root jsexn.cpp. r=terrence.
--HG--
extra : rebase_source : 9680504cb9e93a9fe10af0ff6f2cd3253c011b06
2012-10-04 16:21:36 -07:00
Frank Yan
21d4a1617e Bug 796909 - Part 2: Use 2x search engine logo on about:home in HiDPI mode. r=dolske 2012-10-04 22:28:04 -07:00
Frank Yan
7dd580eb2f Bug 796909 - Part 1: Use 2x images on about:home in HiDPI mode. r=dolske 2012-10-04 22:28:03 -07:00
Jesse Ruderman
51af2c917c Bug 797677 - getPluginInfo indexes into navigator.mimeTypes unsafely. r=keelerd,jaws 2012-10-04 22:17:27 -07:00
Andrew Quartey
3b4dab9dc0 Bug 792581 - part 13: Replace LL_MOD macro with modulo operator. r=ehsan 2012-10-05 01:05:28 -04:00
Andrew Quartey
52003ca06d Bug 792581 - part 12: Replace LL_DIV with division operator. r=ehsan 2012-10-05 01:05:28 -04:00
Andrew Quartey
42f2f3750f Bug 792581 - part 11: Replace LL_MUL macro with multiplication operator. r=ehsan 2012-10-05 01:05:28 -04:00
Andrew Quartey
1839819e70 Bug 792581 - part 10: Replace LL_SUB macro with mathematical minus operator. r=ehsan 2012-10-05 01:05:27 -04:00
Andrew Quartey
5fcf688c9c Bug 792581 - part 9: Replace LL_ADD with mathematical plus operator. r=ehsan 2012-10-05 01:05:27 -04:00
Andrew Quartey
6d4a3feed8 Bug 792581 - part 8: Replace LL_NEG macro with negation. r=ehsan 2012-10-05 01:05:27 -04:00
Andrew Quartey
cd55ab6dce Bug 792581 - part 7 - Remove LL_AND macro with logical AND. r=ehsan 2012-10-05 01:05:27 -04:00
Kannan Vijayan
374d722ef8 Bug 786126 - part 3 - Allow null/undefined in typeset of target object of GetProp ICs. (r=sstangl) 2012-10-05 00:28:36 -04:00
Mark Hammond
553e50ff3c Bug 796309 - callback must be invoked if same social chat url opened twice. r=mixedpuppy 2012-10-05 14:13:11 +10:00
Fabrice Desré
eb6e622169 Bug 798132 - Builds without the crash reporter don't start anymore. [r=hub] 2012-10-04 21:10:45 -07:00
Nicholas Nethercote
3c85b6f213 Bug 798129 - Unbreak --enable-jprof and --enable-dmd builds.
--HG--
extra : rebase_source : 3028a08a8546c58f7814bb8ae3c02719388633e7
2012-10-04 16:01:32 -07:00
Mark Hammond
0c77f7d61b Bug 796222 - create the social toolbar panel/iframe with a default width as a workaround for bug 793057. r=jaws 2012-10-05 14:00:53 +10:00
Ehsan Akhgari
5e6b533bf5 Bug 796839 - Part 4: Don't pretend that empty text nodes are not editable; r=roc
This is the real fix for this bug.  Previously we mistakenly thought
that if a text node is empty (or has only whitespace content), it is not
editable.  This patch removes that check completely and makes us treat
text nodes the same way that we treat element nodes.
2012-10-03 21:25:00 -04:00
Ehsan Akhgari
3ac41e17eb Bug 796839 - Part 3: Don't get the inline properties from empty text nodes; r=roc
This is basically the equivalent of the previous part, just for getting
the inline properties.
2012-10-04 20:58:00 -04:00
Ehsan Akhgari
beb0d8fe09 Bug 796839 - Part 2 - Don't set inline properties on empty text nodes; r=roc
This part, similar to the previous one, ensures that we skip empty text
nodes when setting inline properties.  Previously we were implicitly
getting this behavior becasue we were calling IsEditable, but we need to
be explicit about this.
2012-10-04 20:37:45 -04:00
Ehsan Akhgari
7a5a838773 Bug 796839 - Part 1: Make sure not to try wrapping empty text nodes when applying alignment in editable regions; r=roc
The code here is just missing this condition, and this patch is needed
to make the last part of this series pass tests.  Previously,
nsEditor::IsEditable would return false when it hit an empty text node,
which implied this property almost by accident.  This check makes this
property explicit, so this patch by itself doesn't really change
semantics.
2012-10-04 11:34:58 -04:00
Wes Johnston
383ed173bc Bug 795053 - Always send the profile to Gecko if it isn't sent in the original intent. r=mfinkle 2012-10-03 17:43:21 -07:00
Wes Johnston
52bc1b4f6a Bug 795053 - Unlock locked profiles on Android. r=blassey 2012-10-05 12:35:26 -07:00
Nick Hurley
d158d44f4b Bug 786086 - Make the new default cache size display properly. r=michal 2012-10-05 12:29:14 -07:00
Andrew McCreight
5b96566402 Bug 797649 - Truncate URLs logged in --DOMWINDOW. r=bz 2012-10-05 12:15:04 -07:00
Kyle Huey
17621cc7a7 Bug 797940: Don't use a static nsRefPtr for sScriptCacheCleaner. r=smaug 2012-10-05 12:10:30 -07:00
Kyle Huey
3b1062dc73 Bug 797889: Make sure IndexedDB does not send messages to thechild after it has begun shutting down. r=bent 2012-10-05 12:09:33 -07:00
Sean Stangl
23f5bfd011 Bug 797551 - Use callWithABI() for Math.random(). r=dvander 2012-10-05 12:05:21 -07:00
OHZEKI Tetsuharu
b1f5762d25 Bug 772319 - Add an option to disable the "Close other tabs" prompt. r=dao 2012-10-05 11:50:30 -07:00
Daniel Holbert
7edeb4ff2a Bug 797953: Mark flexbox-widget-* reftests as having a some occasionally fuzzy pixels (at corners of buttons) 2012-10-05 11:50:29 -07:00
Jan de Mooij
cda495f49b Bug 797825 - Port Array.prototype.concat fast path from JM to Ion. r=dvander
--HG--
extra : rebase_source : e5213bb7085685821f80ad9978b7b81706289c36
2012-10-05 20:25:21 +02:00
Steven Michaud
9674a8be45 Bug 797834: Fix build error on OSX 10.6 in nsMacWebAppUtils; r=dwalkowski 2012-10-04 11:30:00 -07:00
Sriram Ramasubramanian
fd78e95c79 Bug 794581: CyanogenMod doesn't take touch events on submenu. [r=bnicholson] 2012-10-05 11:29:36 -07:00
Sriram Ramasubramanian
45f9f08f7f Bug 798135: Update comments for GeckoAsyncTask. [r=cpeterson] 2012-10-05 11:13:55 -07:00
Sriram Ramasubramanian
61d4858950 Bug 798135: Make GeckoAsyncTask run on GeckoBackgroundThread. [r=cpeterson]
--HG--
extra : rebase_source : 6b9d9d5b992bb3d641a959a8734d5844a51087db
2012-10-05 11:07:14 -07:00
Rafael Ávila de Espíndola
601484e332 Bug 798429 - Add new talos test names. r=jhammel. 2012-10-05 13:06:34 -04:00
Bobby Holley
d2677f7903 Bug 761695 - Put Proxy and DOM expandos on the expando object, rather than the holder. r=peterv 2012-10-05 18:59:24 +02:00
Bobby Holley
65d701d159 Bug 761695 - Hoist expando-checking (but not expando-creating) operations into common code. r=peterv
We do this for delete_, enumerateNames, and resolveOwnProperty. This doesn't change
existing behavior, because for ProxyXrayTraits and DOMXrayTraits the expando object
will (currently) always be null.
2012-10-05 18:59:24 +02:00
Bobby Holley
c0372a746c Bug 761695 - Create XrayTraits::resolveOwnProperty. r=peterv 2012-10-05 18:59:23 +02:00
Bobby Holley
b568e20af2 Bug 761695 - Reorder checks for expandos and nodePrincipal. r=peterv
Peter and I decided this was ok. We can't hoist expando stuff otherwise.
2012-10-05 18:59:23 +02:00
Bobby Holley
9f982e86a6 Bug 761695 - Implement expando traps for ProxyXrayTraits DOMXrayTraits. r=peterv
For new DOM proxies, we could probably use the Xray expando machinery for the
regular expando object as well, and free up one of the reserved slots. That's
more than I want to bite off for the moment, though.

I also decided not to block on bug 760095 and just kick the problem of globals
with new binding down the road a little bit.
2012-10-05 18:59:23 +02:00
Bobby Holley
bde8b4dc55 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
83413fc2ff Bug 761695 - Make expando chain getting/setting a virtual trap. r=peterv 2012-10-05 18:59:23 +02:00
Bobby Holley
27d1f16b24 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
24447452ab 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
bc9563cdd3 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
14a7c3faef 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
39eb44c43c 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
39b50f40b1 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