Commit Graph

181 Commits

Author SHA1 Message Date
Jose Antonio Olivera Ortega
87d9a01446 Bug 1041339 - ServiceWorkers: Update implementation based on clarification of force-refresh. r=nsm 2015-03-04 02:54:00 +01:00
Andrea Marchesini
f15c430443 Bug 1134280 - Get rid of Tag() - patch 7 - Followup to fix bustage. CLOSED TREE 2015-03-03 11:50:16 +00:00
Andrea Marchesini
ae571f51bb Bug 1134280 - Get rid of Tag() - patch 2.3 - dom/base and docshell - Fix all the occurrences, m=smaug, r=surkov 2015-03-03 11:09:00 +00:00
Andrea Marchesini
6b10d5e43e Bug 1134280 - Get rid of Tag() - patch 1 - Is{HTML,XUL,MathML,SVG}Element and IsAnyOf{HTML,XUL,MathML,SVG}Elements, r=smaug 2015-03-03 11:08:59 +00:00
Olli Pettay
4dd0a9145c Bug 1138395 - Optimize nsDocument::mExpandoAndGeneration.expando out from the cc graphs when possible, r=mccr8 2015-03-02 17:56:36 +02:00
Boris Zbarsky
88c7fdc875 Bug 1136292 part 2. Stop passing an explicit JS::NullPtr parent to JS_NewObjectWithGivenProto in nsDocument. r=peterv 2015-02-26 09:40:07 -05:00
Gabor Krizsanits
5857317bce Bug 1134981 - Quick fix in registerElement. r=bz 2015-02-26 15:20:37 +01:00
Boris Zbarsky
4e8d9b9061 Bug 1136388. Change nsIDocumentLoaderFactory and nsIURIContentListener to take MIME types as an XPCOM string, not a char*. r=smaug 2015-02-25 10:26:51 -05:00
Boris Zbarsky
eb107b4d37 Bug 1134559. DOMContentLoaded should not be cancelable. r=ms2ger 2015-02-19 14:36:02 -05:00
John Schoenick
303bd3cb54 Bug 1067345 - Part 3 - Implement speculative load operations for <picture> and <img srcset> 2014-12-10 18:54:00 -05:00
Nicholas Nethercote
3b0764a330 Bug 1131901 (part 1) - Make PL_DHashTableAdd() infallible by default, and add a fallible alternative. r=froydnj.
I kept all the existing PL_DHashTableAdd() calls fallible, in order to be
conservative, except for the ones in nsAtomTable.cpp which already were
followed immediately by an abort on failure.
2015-02-02 14:48:58 -08:00
Andrew McCreight
414d2fb22b Bug 1131199, part 2 - Make PLDHashtInitEntry infallible. r=froydnj
Also, drop the unused table argument.
2015-02-11 09:46:40 -08:00
William Chen
75dd02a0c2 Bug 1087460 - Part 2: Call attached and detached callback when attached and detached to/from the composed document. r=smaug 2015-02-09 10:01:24 -08:00
Nicholas Nethercote
1ce96de5ae Back out changesets 2fcef6b54be7, 2be07829fefc, 66dfe37b8532, df3fcd2be8fd, 0a436bce77a6 (bug 1050035) for causing intermittent crashes and assertion failures. 2015-02-10 14:39:49 -08:00
Nicholas Nethercote
0247de46d8 Bug 1127201 (attempt 2, part 1) - Replace most NS_ABORT_IF_FALSE calls with MOZ_ASSERT. r=Waldo. 2015-02-09 14:34:50 -08:00
Andrew McCreight
e048a7df33 Back out Bug 1127201 (part 2) for various problems. 2015-02-06 15:04:32 -08:00
Ryan VanderMeulen
1b50a36452 Backed out 4 changesets (bug 671389) for frequent B2G debug test_tcpsocket_client_and_server_basics.html crashes.
Backed out changeset b782435e5640 (bug 671389)
Backed out changeset 0f8d62109bfe (bug 671389)
Backed out changeset 8d6021f66c49 (bug 671389)
Backed out changeset cd3e227df9dc (bug 671389)
2015-02-05 16:48:18 -05:00
Nicholas Nethercote
40ab0270d5 Bug 1127201 (part 2) - Convert all NS_ABORT_IF_FALSE calls to MOZ_ASSERT. r=Waldo. 2015-02-04 20:05:36 -08:00
Dhi Aurrahman
0ed716e668 Bug 1120649 - document.lastModified should return the current time. r=bz 2015-02-04 18:58:09 +07:00
Deian Stefan
0b6b4a8c33 Bug 671389 - Part 2: Export document sandbox flags to chrome JS r=smaug 2015-02-03 23:45:00 +01:00
Deian Stefan
b42a1f8a52 Bug 671389 - Part 1: Implement CSP sandbox directive r=ckerschb,smaug 2015-02-03 23:40:00 +01:00
Nicholas Nethercote
a3bf151ee6 Bug 1050035 (part 4) - Make PL_DHashTableAdd() infallible by default, and add a fallible alternative. r=froydnj.
I kept all the existing PL_DHashTableAdd() calls fallible, in order to be
conservative, except for the ones in nsAtomTable.cpp which already were
followed immediately by an abort on failure.
2015-02-02 14:48:58 -08:00
Nicholas Nethercote
073c69e299 Bug 1050035 (part 3) - Remove PL_NewDHashTable() and PL_DHashTableDestroy(). r=froydnj.
Because they are now just equivalent to |new PLDHashTable()| +
PL_DHashTableInit() and PL_DHashTableFinish(t) + |delete t|, respectively.

They're only used in a handful of places and obscure things more than they
clarify -- I only recently worked out exactly how they different from Init()
and Finish().
2015-02-01 20:36:52 -08:00
Nicholas Nethercote
071d261bc7 Bug 1050035 (part 2) - Remove the fallible version of PL_DHashTableInit(). r=froydnj,mrbkap.
Because it's no longer needed now that entry storage isn't allocated there.
(The other possible causes of failures are much less interesting and simply
crashing is a reasonable thing to do for them.)

This also makes PL_DNewHashTable() infallible.
2015-02-01 20:19:08 -08:00
Chris Double
d39b41b550 Bug 1128742 - Prevent pages with MSE content from being stored in bfcache - r=roc 2015-02-04 13:01:59 +13:00
Tom Schuster
326af0e06e Bug 1127443 - Move some JS_NewObject callers to JS_NewObjectWithGiveProto 2015-01-31 16:18:51 +01:00
Jonathan Watt
09a3f3097e Bug 1105098 - Make AnimationTimeline always return the same parent object (even after document.open()) and replace the document's timeline if the document is reset. r=smaug,birtles 2015-01-26 17:08:51 +00:00
Nicholas Nethercote
c38455902a Bug 1124973 (part 2) - Introduce PL_DHashTableSearch(), and replace most PL_DHashTableLookup() calls with it. r=froydnj.
It feels safer to use a function with a new name, rather than just changing the
behaviour of the existing function.

For most of these cases the PL_DHashTableLookup() result was checked with
PL_DHASH_ENTRY_IS_{FREE,BUSY} so the conversion was easy. A few of them
preceded that check with a useless null check, but the intent of these was
still easy to determine.

I'll do the trickier ones in subsequent patches.
2015-01-22 21:06:55 -08:00
Andrew McCreight
5bc8e9c72c Bug 1124268, part 3 - Rename nsContentUtils::GetSameOriginChecker to SameOriginChecker. r=smaug
This method is infallible, so the name should reflect that.
2015-01-26 09:28:15 -08:00
Andrew McCreight
4216290a9e Bug 1124268, part 1 - Take advantage of the infallibility of nsContentUtils::GetSameOriginChecker(). r=smaug 2015-01-26 09:28:15 -08:00
Sotaro Ikeda
68f9a47b79 Bug 1124844 - Add NotifyActivityChanged call to nsDocument::SetScriptGlobalObject() r=bz 2015-01-25 15:56:50 -08:00
Christoph Kerschbaumer
6b42ee97d4 Bug 1121857 - CSP: document.baseURI should not get blocked if baseURI is null (r=sstamm) 2015-01-15 10:05:06 -08:00
Wes Kocher
d6b5c7de07 Backed out changeset d3e15ba0fd92 (bug 1121857) for cppunit failures 2015-01-21 15:16:33 -08:00
Christoph Kerschbaumer
8625650842 Bug 1121857 - CSP: document.baseURI should not get blocked if baseURI is null (r=sstamm) 2015-01-15 10:05:06 -08:00
Mats Palmgren
f10f4011ca Bug 1116714 part 2 - Don't create a frame for the custom content container when it has no children. r=roc 2015-01-20 18:20:04 +00: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
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
Gabor Krizsanits
944cc3b3f0 Bug 1111633 - Unresolved pseudo class. r=bz 2015-01-13 19:58:06 +01:00
Mats Palmgren
b9731cef23 Bug 1116714 part 0 - Iterate forward instead, to avoid depending on undefined integer behavior. r=roc 2015-01-13 14:44:33 +00:00
Michael Pruett
cbe37abc44 Bug 1118024 - Use new PL_DHashTable{Add,Lookup,Remove} functions. r=nfroyd 2015-01-05 20:27:28 -06:00
Brian Birtles
fd92d42957 Bug 1112422 - Turn on the Web Animations API by default for chrome callers; r=bz 2015-01-08 13:53:24 +09: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
William Chen
fed063ebbc Bug 1102502 - Fire custom elements attachedCallback when elements are created and inserted into the document by the parser. r=smaug 2014-12-22 22:35:32 -08:00
William Chen
b3789d6fc4 Bug 1081039 - cloneNode on a custom element should call createdCallback if cloned in a document with a custom element definition. r=smaug 2014-12-22 18:19:08 -08:00
Brian Birtles
7dd41bd6d7 Bug 927349 part 14 - Store reference to owning document on PendingPlayerTracker; r=jwatt
This patch adds a reference from PendingPlayerTracker back to the document
object that owns it. This is used in the next patch in this series to find the
document's root frame for scheduling a paint.
2014-12-22 09:35:41 +09:00
Patrick Brosset
94162318a4 Bug 1112465 - Fix crashes when navigating to XUL window with devtools opened by checking for GetCanvasFrame in RemoveAnonymousContent. r=ehsan 2014-12-17 04:38:00 -05:00