Commit Graph
227 Commits
Author SHA1 Message Date
Ehsan Akhgari 95141592e9 Bug 1201229 - Return an empty string for a header when an error occurs; r=dragana
This fixes nsIHttpChannel::GetRequestHeader() and
nsIHttpChannel::GetResponseHeader() to always empty out their string
argument even when they fail.  This prevents programming mistakes of
passing the same string object to multiple of these calls and using the
string value without checking the nsresult error code, since otherwise
the string value may be unchanged from a previous call.

Note that this doesn't affect JS consumers of these APIs since we only
empty out the string argument in case the method fails, which will be
translated to a JS exception, and the JS code will never get to see the
emptied string.
2015-09-08 20:08:35 -04:00
Masayuki Nakano 449fe420c0 Bug 895274 part.99 Rename NS_MUTATION_SUBTREEMODIFIED to eLegacySubtreeModified r=smaug 2015-09-07 23:55:51 +09:00
Wes Kocher 9adbe65aad Merge inbound to central, a=merge 2015-09-03 12:20:40 -07:00
Wes Kocher 02052d2865 Backed out 2 changesets (bug 1035091)
a=backout

Backed out changeset 1fc07bdd9aa8 (bug 1035091)
Backed out changeset f6e98029d1cb (bug 1035091)
2015-09-03 11:41:39 -07:00
Kartikaya Gupta 7041fb3b00 Bug 1197824 - Remove the mAllowDoubleTapZoom field from nsViewportInfo as it is not needed. r=botond 2015-09-03 10:30:41 -04:00
Kartikaya Gupta 265e726875 Bug 1197824 - Support the browser.ui.zoom.force-user-scalable pref in the gecko zoom-constraints codepath. r=botond
The browser.ui.zoom.force-user-scalable pref can be modified by the user from
the Fennec settings screen, and allows them zoom pages despite the meta-viewport
tag that might otherwise restrict zooming. This effectively ignores the effect
of the user-scalable, minimum-scale, and maximum-scale meta-viewport tokens.
2015-09-03 10:30:41 -04:00
Kartikaya Gupta 4ac58d7714 Bug 1197824 - Allow zooming in desktop mode. r=botond
This is a long-standing issue that has thus far never been exposed because
the values modified in this patch have not been used (desktop mode only exists
on Fennec, and Fennec does it's own computation for these values in browser.js).
However upcoming patches will change Fennec to use this, and so this issue needs
to be corrected.
2015-09-03 10:30:40 -04:00
Kartikaya Gupta de4d737ae5 Bug 1197824 - Remove unused state and normalize others. r=botond
In the case of DisplayWidthHeight viewports, setting the allowDoubleTapToZoom
flag to true is fine because the ZoomConstraintsClient code will flip it back
to false based on the width of the CSS viewport. Setting it to true in the
GetViewportInfo code allows us to maintain the invariant that the default value
of allowDoubleTapToZoom is the same as the initial value of allowZoom.
2015-09-03 10:30:40 -04:00
Zack Weinberg 4b3150da67 Bug 1035091 part 1: change CSS parser and loader APIs to distinguish UA, user, and author sheets instead of just UA vs everyone else. r=heycam 2015-09-02 13:52:49 -04:00
Masayuki Nakano 106a58fd31 Bug 895274 part.61 Rename NS_LOAD to eLoad r=smaug 2015-09-02 15:07:59 +09:00
Kartikaya Gupta 45a3025f39 Bug 1200402 - Ignore desktop mode for about: pages. r=snorp,khuey 2015-09-01 14:04:58 -04:00
Xidorn Quan 8bd5f89693 Bug 1189200 - Only clear pending fullscreen requests in inclusive descendants of the specified document in ClearPendingFullscreenRequests. r=smaug 2015-08-31 09:25:23 +10:00
Xidorn Quan 359e94a99c Bug 1199522 - Apply :fullscreen pseudo-class to all elements in the fullscreen element stack. r=smaug 2015-08-29 13:53:28 +10:00
Xidorn Quan 21f9c6ab2d Bug 1198563 part 2 - Do no directly apply fullscreen state when window object reports in fullscreen when there are pending request before. r=smaug 2015-08-27 11:21:29 +10:00
Xidorn Quan ad1c4aab22 Bug 1198563 part 1 - Encapsulate iterating fullscreen request list code. r=smaug 2015-08-27 11:21:29 +10:00
Kartikaya Gupta e293c74ddd Bug 1180267 - Ensure that the desktop-mode viewport for Fennec is based on a 980 CSS pixel width rather than the screen size. r=snorp 2015-08-24 13:45:45 -04:00
Chris Lord e6a8b9264d Bug 1181555 - Add 'experimental-webcomponents' permission. r=fabrice 2015-08-20 12:07:54 +01:00
Sebastian Hengst 9edfa6ca2f Backed out changeset e9d838084096 (bug 1181555) for Linux x64 opt and B2G Desktop Linux x64 opt Hazard analysis fail. r=backout 2015-08-22 21:53:48 +02:00
Chris Lord 52fefe5e91 Bug 1181555 - Add 'moz-extremely-unstable-and-will-change-webcomponents' permission. r=fabrice 2015-08-20 12:07:54 +01:00
Masayuki Nakano 5473d2dcb9 Bug 895274 part.1 Rename WidgetEvent::message to WidgetEvent::mMessage r=smaug 2015-08-22 10:34:51 +09:00
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