Commit Graph

257 Commits

Author SHA1 Message Date
William Chen
24793a0aee Bug 1131470 - Part 3: Implement ScreenOrientation interface. r=baku 2015-08-18 14:55:21 -07:00
Nathan Froyd
598d0413cc Bug 968923 - part 6 - add use counters for deprecated operations; r=bz 2015-06-17 12:28:26 -04:00
Cameron McCormack
37d6d7d684 Bug 968923 - part 3a - add core DOM use counter functionality; r=smaug
This patch gives ns{I,}Document the ability to track use counters and
also to send those to telemetry at document destruction time.  We push
things to telemetry lazily because we're can't definitively say whether
something has been used until the document is torn down.
2015-06-03 12:39:18 -04:00
Robert Longson
ce7f732639 Bug 1194619 - fix comment r=dholbert 2015-08-14 19:22:22 +01:00
Aryeh Gregor
666c1973e1 Bug 874838 - Make CreateElem return Element. r=khuey 2015-08-13 07:50:00 -04:00
Francois Marier
0c5febeb03 Bug 992096 - Implement Sub Resource Integrity [1/2]. r=baku,r=ckerschb
Code changes
2015-08-12 20:19:11 -07:00
Aryeh Gregor
6e1dae88e0 Bug 874842 - Return Event instead of nsIDOMEvent 2015-08-12 14:39:31 +03:00
Xidorn Quan
0186985856 Bug 1191148 - Don't count fullscreen request handled if we don't change the document state. r=smaug 2015-08-06 15:37:48 +10:00
Xidorn Quan
14717bc2ae Bug 1190669 part 3 - Introduce new fullscreen reason which exits fullscreen without fullscreen transition, and use it for ExitFullscreenInDocTree. r=smaug 2015-08-06 15:37:48 +10:00
Xidorn Quan
f936e5c752 Bug 1190669 part 2 - Move the part which runs script from ExitFullscreenInDocTree to a runnable, and protect it with AddScriptRunner. r=smaug 2015-08-06 15:37:48 +10:00
Xidorn Quan
39084c2136 Bug 1190669 part 1 - Remove helper function SetWindowFullScreen and its helper runnable. r=smaug
All of the callsites of this helper function has a synchronous event
dispatch which indicates the AddScriptRunner in that helper function
makes no sense.

Also it seems that most of the callsites are actually safe to run
script, except ExitFullscreenInDocTree() which may be called from
Element::UnbindFromTree(). It'll be fixed in the following patch.
2015-08-06 15:37:48 +10:00
Xidorn Quan
58b7be0fea Bug 1191112 part 1 - Clear pending fullscreen requests on page close. r=smaug 2015-08-06 15:37:48 +10:00
Aryeh Gregor
6dc0679b1b Bug 1190823 - Move OwningNonNull.h to xpcom/base/; r=froydnj 2015-08-05 15:28:27 +03:00
Nicholas Nethercote
62022ea522 Bug 1189156 (part 2) - Don't use enumeration style for nsTHashtable::SizeOf{In,Ex}cludingThis(). r=erahm.
After this change, we have ShallowSizeOf{In,Ex}cludingThis(), which don't do
anything to measure children. (They can be combined with iteration to measure
children.)

And we still have the existing single-arg SizeOf{In,Ex}cluding() functions,
which work if the entry type itself defines SizeOfExcludingThis().
2015-07-29 01:50:52 -07:00
Christoph Kerschbaumer
78bc31e5fe Bug 1182539 - Use channel->ascynOpen2 in dom/base/nsDocument.cpp (r=sicking) 2015-07-31 08:58:14 -07:00
Carsten "Tomcat" Book
e6e850d811 Backed out changeset 8e006947db44 (bug 1186780) 2015-07-27 08:00:29 +02:00
Kyle Huey
1f0f23a0c9 Bug 1186780: Replace EnumerateRead with new iterators in some DOM code. r=bkelly 2015-07-26 19:34:29 -07:00
Kartikaya Gupta
0913401924 Bug 1186004 - Add a pref to enable/disable APZ zooming behaviour. r=botond 2015-07-22 23:42:08 -04:00
Birunthan Mohanathas
55c4600faa Bug 1182980 - Part 9: Use nsTHashtable::Iterator in rest of nsDocument. r=khuey 2015-07-22 09:42:01 -07:00
Birunthan Mohanathas
06edf67fcb Bug 1182980 - Part 8: Use nsTHashtable::Iterator in nsIDocument::EnumerateActivityObservers. r=khuey 2015-07-22 09:42:01 -07:00
Birunthan Mohanathas
544bc69b61 Bug 1182980 - Part 7: Use nsTHashtable::Iterator in nsIdentifierMapEntry::FireChangeCallbacks. r=khuey 2015-07-22 09:42:01 -07:00
Xidorn Quan
78af55b64d Bug 1160017 part 1 - Remove fullscreen permission code from nsDocument. r=smaug 2015-07-21 20:50:20 +10:00
Boris Zbarsky
980b01eecd Bug 909154. Remove the prefixed mozRequestAnimationFrame and its accoutrements. r=bkelly 2015-07-20 10:14:24 -04:00
Xidorn Quan
a9eeb693db Bug 1184443 - Make async ExitFullscreen call ask the window to exit fullscreen first. r=smaug 2015-07-19 10:30:52 +10:00
Sam E. Giles
f1dcf22f1c Bug 1177991 - document.adoptNode should throw a HierarchyRequestError when adopting a ShadowRoot. r=wchen 2015-07-17 11:12:02 -07:00
Sam E. Giles
2e0a350a16 Bug 1177914 - throw a NotSupportedError when running document.importNode on a ShadowRoot or Document. r=wchen 2015-07-17 11:11:14 -07:00
Birunthan Mohanathas
a29151dc87 Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
The bulk of this commit was generated by running:

  run-clang-tidy.py \
    -checks='-*,llvm-namespace-comment' \
    -header-filter=^/.../mozilla-central/.* \
    -fix
2015-07-13 08:25:42 -07:00
Christoph Kerschbaumer
1db7f6a887 Bug 1139297 - Implement CSP upgrade-insecure-requests directive - document changes (r=smaug) 2015-07-10 09:14:09 -07:00
Andrea Marchesini
60baab7361 Bug 1181528 - nsISimpleEnumerator.h is needed by nsDocument.cpp, r=smaug 2015-07-09 01:36:35 +01:00
Xidorn Quan
16b5f7fb40 Bug 1181413 - Use enum to distinguish fullscreen request for Fullscreen Mode and Fullscreen API. r=smaug 2015-07-09 08:00:33 +10:00
Dragana Damjanovic
f5e3e71a6d Bug 905127 - Part 2 - remove unnecessary nsNetUtil.h includes r=jduell 2015-07-06 07:55:00 +02:00
Emanuel Hoogeveen
b30abdc582 Bug 905127 - Part 1 - Make some functions from nsNetUtil not inline. r=jduell 2015-07-07 04:17:00 +02:00
Xidorn Quan
ace90611a0 Bug 1179123 - Avoid crash when calling ExitFullscreenInDocTree with a detached fullscreen document with its root exited fullscreen state. r=smaug 2015-07-04 15:12:13 +10:00
Juan Gomez
89035d527e Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-07-03 18:29:00 -07:00
Xidorn Quan
606ad21bdd Bug 1168705 part 4 - Dispatch other fullscreen events with next refresh driver tick. r=smaug 2015-07-02 19:12:31 +10:00
Xidorn Quan
a7af4b68c3 Bug 1168705 part 3 - Make MozDOMFullscreen:{Request,Exit,Entered,Exited} be triggered synchronously. r=dao,smaug
MozDOMFullscreen:{Request,Exit} are simply used to redirect the request
to the parent process, hence there is no need to align them with refresh
driver tick or dispatch asynchronously.

MozDOMFullscreen:{Entered,Exited} are also used to notify the content
process about the change, hence dispatching them later could cause
unwanted delay on fullscreen change. Their handlers are also changed in
this patch to avoid recursive fullscreen change.
2015-07-02 19:12:31 +10:00
Xidorn Quan
afd52853d0 Bug 1168705 part 2 - Move fullscreenchange event to be triggered after the related chrome events. r=smaug 2015-07-02 19:12:31 +10:00
Xidorn Quan
68d3dbfafc Bug 1168705 part 1 - Add mechanism for dispatching events with refresh driver tick. r=roc,khuey 2015-07-02 19:12:31 +10:00
Kartikaya Gupta
e76f44b502 Bug 1178860 - Add dom.meta-viewport.enabled to gfxPrefs. r=dvander 2015-06-30 14:49:02 -04:00
Cameron McCormack
5040660045 Bug 1161413 - Part 4: Move FontFaceSet ownership from nsPresContext to nsIDocument. r=smaug 2015-06-27 11:39:54 +10:00
Patrick McManus
5b5cf0d404 bug 1174152 - crossorigin attribute for link rel=preconnect r=hsivonen 2015-06-19 17:11:42 -04:00
Ryan VanderMeulen
7aba9d7002 Backed out changeset 8b4e4083639e (bug 1171931) for B2G debug emulator bustage. 2015-06-25 19:48:42 -04:00
Juan Gomez
7323e89a40 Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-06-24 14:11:00 -04:00
Xidorn Quan
8167313aa5 Bug 1174966 part 5 - Re-dispatch pointer lock request after all fullscreen requests finish. r=smaug 2015-06-19 10:09:52 +10:00
Xidorn Quan
cbae52a129 Bug 1174966 part 4 - Move pending fullscreen counter manipulation from nsCallRequestFullScreen to FullscreenRequest. r=smaug 2015-06-19 10:09:52 +10:00
Xidorn Quan
390e5bcb6a Bug 1174966 part 3 - Merge FullScreenOptions and FullscreenRequest and makes the latter a single object in the whole lifetime of a request. r=smaug 2015-06-19 10:09:52 +10:00
Xidorn Quan
89026869e7 Bug 1174966 part 2 - Replace mAsyncFullscreenPending flag with mPendingFullscreenRequests counter. r=smaug 2015-06-19 10:09:52 +10:00
Xidorn Quan
1819e4b21f Bug 1174966 part 1 - Change type of mCancelledPointerLockRequests field from uint32_t to bit field. r=smaug 2015-06-19 10:09:52 +10:00
Carsten "Tomcat" Book
707c9e1393 Backed out changeset feb7cd25aafb (bug 1174152) for mulet timeout in test_rel_preconnect.html 2015-06-17 16:58:57 +02:00
Patrick McManus
5216e64bac bug 1174152 link rel=preconnect crossorigin=anonymous r=hsivonen 2015-05-06 10:09:27 -04:00