gecko-dev/dom/plugins/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
..
android merge mozilla-inbound to mozilla-central a=merge 2016-07-22 11:58:02 +02:00
moz.build Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
npapi.h Bug 1288686 - Avoid X11's |#define None 0L| intruding on other parts of the code. r=jrmuizel 2016-08-29 16:51:43 -04:00
npfunctions.h
npruntime.h
nptypes.h
nsIHTTPHeaderListener.idl
nsIPluginDocument.idl
nsIPluginHost.idl
nsIPluginInputStream.idl
nsIPluginInstanceOwner.idl
nsIPluginTag.idl
nsJSNPRuntime.cpp Bug 1114580 - Return a fixed name for @@toString on plugins. r=billm 2016-08-31 00:13:10 +02:00
nsJSNPRuntime.h
nsNPAPIPlugin.cpp Bug 1292892 part 5 - Replace most nsContentUtils::RootingCx calls with dom::RootingCx. r=bz,terrence 2016-08-11 14:39:23 +02:00
nsNPAPIPlugin.h
nsNPAPIPluginInstance.cpp Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj 2016-08-24 14:47:04 +08:00
nsNPAPIPluginInstance.h Bug 1252877 Part 4: Remove notification of plugins about scrolling from child. r=jimm 2016-07-18 09:54:02 +01:00
nsNPAPIPluginStreamListener.cpp
nsNPAPIPluginStreamListener.h
nsPluginDirServiceProvider.cpp Bug 1290641 - Remove VS2013 wcstok() workaround from dom/plugins/. r=jimm 2016-07-28 11:46:13 -07:00
nsPluginDirServiceProvider.h
nsPluginHost.cpp Bug 1297961 (part 1) - Introduce nsURI::GetSpecOrDefault(). r=hurley. 2016-08-26 16:02:31 +10:00
nsPluginHost.h Bug 1289672 - Remove unused nsPluginHost.mPluginsClickToPlay and observation for plugins.click_to_play. r=bsmedberg 2016-08-26 04:36:50 +09:00
nsPluginInstanceOwner.cpp Bug 1288686 - Avoid X11's |#define None 0L| intruding on other parts of the code. r=jrmuizel 2016-08-29 16:51:43 -04:00
nsPluginInstanceOwner.h Bug 1294479 - Remove presentation methods from nsWindow/AndroidBridge; r=snorp 2016-08-19 17:17:24 -04:00
nsPluginLogging.h
nsPluginManifestLineReader.h
nsPluginModule.cpp
nsPluginNativeWindow.cpp
nsPluginNativeWindow.h
nsPluginNativeWindowGtk.cpp Bug 1288686 - Avoid X11's |#define None 0L| intruding on other parts of the code. r=jrmuizel 2016-08-29 16:51:43 -04:00
nsPluginNativeWindowGtk.h
nsPluginNativeWindowWin.cpp
nspluginroot.idl
nsPluginsCID.h
nsPluginsDir.h Bug 1283274 - Disable windowless workaround if we detect a flash library that support async rendering. r=aklotz 2016-07-25 15:45:29 -05:00
nsPluginsDirDarwin.cpp
nsPluginsDirUnix.cpp
nsPluginsDirUtils.h
nsPluginsDirWin.cpp Bug 1283274 - Disable windowless workaround if we detect a flash library that support async rendering. r=aklotz 2016-07-25 15:45:29 -05:00
nsPluginStreamListenerPeer.cpp Bug 1297961 (part 1) - Introduce nsURI::GetSpecOrDefault(). r=hurley. 2016-08-26 16:02:31 +10:00
nsPluginStreamListenerPeer.h
nsPluginTags.cpp Bug 1293062 - Plugin permissions are confused between Flash and the VLC plugin. Fix this by checking that the plugin name for the special Flash plugin is "Shockwave Flash", which is true of Adobe Flash but not replacement plugins such as VLC or even gnash. This causes other plugins to have their own pref tag so that users can enable/disable them separately. r=jimm 2016-08-24 12:40:17 -04:00
nsPluginTags.h Bug 1283274 - Disable windowless workaround if we detect a flash library that support async rendering. r=aklotz 2016-07-25 15:45:29 -05:00
PluginPRLibrary.cpp Bug 1252877 Part 4: Remove notification of plugins about scrolling from child. r=jimm 2016-07-18 09:54:02 +01:00
PluginPRLibrary.h Bug 1252877 Part 4: Remove notification of plugins about scrolling from child. r=jimm 2016-07-18 09:54:02 +01:00