gecko-dev/accessible/base
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
..
AccessibleOrProxy.cpp
AccessibleOrProxy.h
AccEvent.cpp Bug 1268320 - rename AccEvent::GetDocAccessible to AccEvent::Document, r=marcoz 2016-05-19 13:56:58 -04:00
AccEvent.h Bug 1268320 - rename AccEvent::GetDocAccessible to AccEvent::Document, r=marcoz 2016-05-19 13:56:58 -04:00
AccGroupInfo.cpp
AccGroupInfo.h
AccIterator.cpp
AccIterator.h bug 1278392 - use std::unique_ptr for AccIterators r=froydnj 2016-06-07 17:36:44 -04:00
AccTypes.h
ARIAMap.cpp Bug 1294086 - implement ARIA feed role, r=yzen 2016-08-10 14:07:29 -04:00
ARIAMap.h Bug 1285272 - Add functionality in ARIAMap to use integer index instead of a raw pointer for role map entries. r=yzen 2016-07-18 11:52:44 -04:00
ARIAStateMap.cpp
ARIAStateMap.h
Asserts.cpp
DocManager.cpp Bug 1268544: Integrate remote COM objects into a11y code; r=tbsaunde 2016-08-18 09:49:13 -06:00
DocManager.h
EmbeddedObjCollector.cpp
EmbeddedObjCollector.h
EventQueue.cpp Bug 1268320 - rename AccEvent::GetDocAccessible to AccEvent::Document, r=marcoz 2016-05-19 13:56:58 -04:00
EventQueue.h
EventTree.cpp Bug 1283268 - Change nsAutoPtr to UniquePtr in EventTree and Accessible classes. r=nfroyd 2016-06-29 12:57:00 +02:00
EventTree.h Bug 1283268 - Change nsAutoPtr to UniquePtr in EventTree and Accessible classes. r=nfroyd 2016-06-29 12:57:00 +02:00
Filters.cpp
Filters.h
FocusManager.cpp Bug 1268320 - rename AccEvent::GetDocAccessible to AccEvent::Document, r=marcoz 2016-05-19 13:56:58 -04:00
FocusManager.h Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
Logging.cpp Bug 1297961 (part 1) - Introduce nsURI::GetSpecOrDefault(). r=hurley. 2016-08-26 16:02:31 +10:00
Logging.h Bug 1296113 - accessible element insertion following inaccessible element insertions results in a wrong tree, r=yzen 2016-08-19 12:10:58 -04:00
MarkupMap.h Bug 634004 - Implement accessibility API support for html:details and html:summary elements, r=surkov 2016-06-01 17:07:56 +02:00
moz.build Bug 1268544: Integrate remote COM objects into a11y code; r=tbsaunde 2016-08-18 09:49:13 -06:00
NotificationController.cpp Bug 1268544: Integrate remote COM objects into a11y code; r=tbsaunde 2016-08-18 09:49:13 -06:00
NotificationController.h
nsAccCache.h
nsAccessibilityService.cpp 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
nsAccessibilityService.h 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
nsAccessiblePivot.cpp
nsAccessiblePivot.h Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
nsAccUtils.cpp
nsAccUtils.h
nsCoreUtils.cpp Bug 970346 - Add a DocShell attribute to override the default touch event options to a tab. r=bz 2016-07-18 10:26:38 -04:00
nsCoreUtils.h
nsEventShell.cpp
nsEventShell.h
nsTextEquivUtils.cpp Bug 1299066: Make NS_STYLE_DISPLAY_* an enum class. Prefer indexing instead of linear search in the frame constructor r=heycam,bz 2016-09-01 20:41:17 -07:00
nsTextEquivUtils.h
Platform.h Bug 1268544: Integrate remote COM objects into a11y code; r=tbsaunde 2016-08-18 09:49:13 -06:00
Relation.h bug 1278392 - use std::unique_ptr for AccIterators r=froydnj 2016-06-07 17:36:44 -04:00
RelationType.h
RelationTypeMap.h
Role.h Bug 634004 - Implement accessibility API support for html:details and html:summary elements, r=surkov 2016-06-01 17:07:56 +02:00
RoleMap.h Bug 634004 - Implement accessibility API support for html:details and html:summary elements, r=surkov 2016-06-01 17:07:56 +02:00
SelectionManager.cpp Bug 1185307 part.2 Replace upcast from nsISelection to mozilla::dom::Selection with nsISelection::AsSelection() r=smaug 2016-06-17 22:32:49 +09:00
SelectionManager.h
States.h
Statistics.h
StyleInfo.cpp
StyleInfo.h
TextAttrs.cpp Bug 1286317 - part 1 - remove Qt widget usage from gfx. r=jrmuizel 2016-07-12 20:27:57 -04:00
TextAttrs.h
TextRange-inl.h
TextRange.cpp
TextRange.h Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
TextUpdater.cpp
TextUpdater.h
TreeWalker.cpp Bug 1274381 - scope accessible elements search to inserted nodes, r=yzen, f=marcoz 2016-08-05 10:20:58 -04:00
TreeWalker.h Bug 1274381 - scope accessible elements search to inserted nodes, r=yzen, f=marcoz 2016-08-05 10:20:58 -04:00