Commit Graph

133 Commits

Author SHA1 Message Date
Olli Pettay
86960abf23 Bug 1089861 - Don't dispatch activate/deactivate to content window objects., r=masayuki 2015-01-21 13:45:47 +02:00
Nicholas Nethercote
4604f714c6 Bug 1123151 (part 2) - Add PLDHashTable::IsInitialized(). r=froydnj.
This encapsulates most of the uses of PLDHashTable::ops.
2015-01-19 16:11:34 -08:00
Nicholas Nethercote
009293c72a Bug 1123151 (part 1) - Set PLDHashTable::ops consistently. r=froydnj.
Currently the setting of PLDHashTable::ops is very haphazard.

- PLDHashTable has no constructor, so it's not auto-nulled, so lots of places
  null it themselves.

- In the fallible PLDHashTable::Init() function, if the entry storage
  allocation fails we'll be left with a table that has |ops| set -- indicating
  it's been initialized -- but has null entry storage. I'm not certain this can
  cause problems but it feels unsafe, and some (but not all) callers of Init()
  null it on failure.

- PLDHashTable does not null |ops| in Finish(), so some (but not all) callers
  do this themselves.

This patch makes things simpler.

- It adds a constructor that zeroes |ops|.

- It modifies Init() so that it only sets |ops| once success is ensured.

- It zeroes |ops| in Finish().

- Finally, it removes all the now-unnecessary |ops| nulling done by the users
  of PLDHashTable.
2015-01-19 16:01:24 -08:00
Olli Pettay
03fb9ea773 Bug 1121473, define the list of void tags only in one place, r=hsivonen 2015-01-19 13:17:22 +02:00
Nicholas Nethercote
d746138aca Bug 1121304 (part 2, attempt 2) - Remove PLDHashTableOps::{alloc,free}Table. r=froydnj. 2015-01-14 14:35:56 -08:00
Phil Ringnalda
41e41579d9 Backed out 2 changesets (bug 1121304) for consistent b2g hangs in webgl-color-test.html?frame=1&__&preserve&premult&_____
Backed out changeset 20651ac19549 (bug 1121304)
Backed out changeset 758afec77c95 (bug 1121304)
2015-01-14 22:02:23 -08:00
Nicholas Nethercote
70f5bf6167 Bug 1121304 (part 2) - Remove PLDHashTableOps::{alloc,free}Table. r=froydnj. 2015-01-14 14:35:56 -08:00
Nicholas Nethercote
43fc26b699 Bug 1120476 (part 4) - Remove PLDHashTableOps::finalize. r=froydnj. 2015-01-13 19:02:35 -08:00
Nicholas Nethercote
eda870fe92 Bug 1120476 (part 3) - Remove PLDHashTable::data. r=froydnj. 2015-01-13 16:42:13 -08:00
Ehsan Akhgari
0f02dbc8c0 Bug 1097452 - Use fallible allocation when setting the value of an <input> or <textarea> element; r=jst,froydnj
This patch handles most of the call sites for these allocations except
for a few where I added TODO comments with some information.  Handling
those places may require reworking lots of code, so I prefer to not do
that here.
2015-01-14 17:31:41 -05:00
Valentin Gosu
50976fcc0d Bug 1093611 - nsStandardURL::SetRef only does percent-encoding if dom.url.encode_decode_hash is true r=honzab 2015-01-13 02:11:02 +02:00
Valentin Gosu
05d69d17f3 Bug 1093611 - AnchorElement.hash should be the encoded version of the href attribute's fragment r=smaug 2014-11-12 03:14:04 +02:00
Michael Pruett
cbe37abc44 Bug 1118024 - Use new PL_DHashTable{Add,Lookup,Remove} functions. r=nfroyd 2015-01-05 20:27:28 -06:00
Bobby Holley
ce1edcbe74 Bug 1117851 - Make GetCallingLocation take an nsA{,C}String. r=smaug 2015-01-06 15:50:29 -05:00
Ryan VanderMeulen
14b6c1e12c Backed out changeset 9035e4de3c03 (bug 1117851) for suspicion of causing Linux32 dromaeo DOM regressions (bug 1118257). 2015-01-06 15:24:45 -05:00
Ehsan Akhgari
2acefe2331 Bug 1117264 - Mark virtual overridden functions as MOZ_OVERRIDE in dom/base code; r=baku 2015-01-06 11:52:45 -05:00
Ehsan Akhgari
f4a0889620 Backed out changeset bc7e683ef708 (bug 1117264) for build bustage on a CLOSED TREE 2015-01-05 21:55:18 -05:00
Ehsan Akhgari
b7013d8f05 Bug 1117264 - Mark virtual overridden functions as MOZ_OVERRIDE in dom/base code; r=baku 2015-01-05 20:54:28 -05:00
Bobby Holley
d8c11acf65 Bug 1117851 - Make GetCallingLocation take an nsA{,C}String. r=smaug 2015-01-05 13:53:27 -08:00
Neil Deakin
1dfdc906ea Bug 1072342, propagate the window activation state down to child process windows, r=smaug,mstange 2014-11-27 08:28:26 -05:00
Boris Zbarsky
ffbd31df6a Bug 1087851 part 1. Rename WrapNewBindingObject to GetOrCreateDOMReflector to make it clearer what it does. r=peterv for the idea; patch itself is just search-and-replace 2014-11-26 14:25:20 -05:00
Carsten "Tomcat" Book
ed27296492 Backed out changeset ec354ea4ace0 (bug 1093611) for talos svgr bustage 2014-11-26 15:08:54 +01:00
Valentin Gosu
ff0e25caf6 Bug 1093611 - AnchorElement.hash should be the encoded version of the href attribute's fragment r=smaug 2014-11-12 03:14:04 +02:00
Andrea Marchesini
77e924566e Bug 1104193 - nullcheck in nsContentUtils::GetASCIIOrigin, r=smaug 2014-11-24 21:43:11 +01:00
Andrea Marchesini
518848527c Bug 1104193 - nullcheck for the principal in nsContentUtils::GetUTFOrigin(), r=smaug 2014-11-24 20:54:59 +01:00
Andrea Marchesini
124eeb140b Bug 1101584 - sContentUtils::GetUTFOrigin should check if the URI has the nsIURIWithPrincipal interface, r=bz, r=smaug 2014-11-19 11:40:00 +01:00
Wes Kocher
aee3b987f3 Backed out changeset 8e604ebfc313 (bug 1101584) for m-oth failures on a CLOSED TREE 2014-11-19 12:07:15 -08:00
Andrea Marchesini
f704a8992e Bug 1101584 - sContentUtils::GetUTFOrigin should check if the URI has the nsIURIWithPrincipal interface, r=bz 2014-11-19 16:32:47 +00:00
Sid Stamm
29bcaaf68b Bug 704320 - apply referrer policies to image loads (r=seth) 2014-11-18 08:46:53 -05:00
Ting-Yu Lin
228b1a821f Bug 1059165 - Part 2 - Make HasNonEmptyTextContent() descend recursively. r=ehsan
This will be used in part 3.
2014-10-29 00:28:00 +01:00
Paolo Amadini
5ee237abd0 Bug 1013625 - Process Promise resolution runnables outside of main event queue. r=bz,khuey 2014-10-28 12:08:19 +00:00
Ms2ger
a7ec7d2c24 Bug 1089370 - Don't null-check a reference in nsContentUtils::CreateContextualFragment; r=jst
This triggers an undefined-bool-conversion warning in recent LLVM. The
dereference is safe because nsAutoTArray is infallible.
2014-10-27 08:53:54 +01:00
Birunthan Mohanathas
e9068bbc4f Bug 946065 - Part 12: Move content/base/ to dom/ and flatten subdirectories. r=peterv 2014-10-25 20:25:22 +03:00