gecko-dev/accessible
Nicholas Nethercote 742fc7eb48 Bug 1297961 (part 1) - Introduce nsURI::GetSpecOrDefault(). r=hurley.
This function is an infallible alternative to nsIURI::GetSpec(). It's useful
when it's appropriate to handle a GetSpec() failure with a failure string, e.g.
for log/warning/error messages. It allows code like this:

  nsAutoCString spec;
  uri->GetSpec(spec);
  printf("uri: %s", spec.get());

to be changed to this:

  printf("uri: %s", uri->GetSpecOrDefault().get());

This introduces a slight behavioural change. Previously, if GetSpec() failed,
an empty string would be used here. Now, "[nsIURI::GetSpec failed]" will be
produced instead. In most cases this failure string will make for a clearer
log/warning/error message than the empty string.
* * *
Bug 1297961 (part 1b) - More GetSpecOrDefault() additions. r=hurley.

I will fold this into part 1 before landing.

--HG--
extra : rebase_source : ddc19a5624354ac098be019ca13cc24b99b80ddc
2016-08-26 16:02:31 +10:00
..
aom Bug 1296769 - introduce a11y API, r=smaug, yzen 2016-08-23 14:15:15 -04:00
atk Bug 1297647 - Fix misleading indentation in nsMaiHyperLink.cpp. r=tbsaunde 2016-08-31 19:55:37 +08:00
base Bug 1297961 (part 1) - Introduce nsURI::GetSpecOrDefault(). r=hurley. 2016-08-26 16:02:31 +10:00
generic Bug 1297982 - Replace NS_STYLE_BOX_ORIENT_* with enum class; r=xidorn 2016-08-26 12:48:41 +05:30
html merge mozilla-inbound to mozilla-central a=merge 2016-07-22 11:58:02 +02:00
interfaces Bug 527003 - separating XPCOM parts from nsAccessibilityService. Removing a11y service in favour of using nsAccessibilityService directly. Adding support for a11y service shutdown. r=surkov 2016-08-08 20:51:39 -04:00
ipc Bug 1298412: Fix Interceptor construction to use Move semantics for STAUniquePtr instead of pass-by-reference; r=jimm 2016-08-26 10:03:17 -06:00
jsat Bug 527003 - renaming all XPCOM uses of deprecated accessible retrieval to accessibility service. r=surkov 2016-08-09 15:38:54 -04:00
mac Bug 1268544: Refactor PDocAccessible and its dependencies, and add code to integrate remote COM objects; r=tbsaunde 2016-08-15 17:14:53 -06:00
other Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
tests Bug 1296784 - Disable test_markup.html on Windows debug for constant failures 2016-08-31 18:27:25 -07:00
windows bug 1296942 - AccessibleWrap::GetXPAccessibleFor() should check there is a child at an index before returning it r=davidb 2016-08-26 11:16:21 -04:00
xpcom Bug 527003 - make a11y service store info about its consumers. Only shut down a11y when there are no more consumers remaining. r=surkov, tbsaunde 2016-08-30 12:04:20 -04:00
xul Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
.eslintrc Bug 1186029 - e10s compatible name caching, events and tree update tests. r=eeejay 2016-05-02 11:09:28 -04:00
moz.build Bug 527003 - adding tests for accessibility service shutdown. r=surkov 2016-08-24 09:33:34 -04:00