Parameter 3 to Unity.Notification.showNotification() does not appear to be optional

Bug #1088078 reported by Ronald McCollam
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
WebApps: libunity-webapps
New
Medium
Unassigned

Bug Description

Attempting to use Unity.Notification.showNotification() fails unless all three parameters are passed in. The documentation indicates that parameter 3 should be optional:
http://developer.ubuntu.com/api/ubuntu-12.04/javascript/unity-web-api-reference.html#unity-notification

It works fine if I call it like
Unity.Notification.showNotification("Test", "This is a test message", false);
But fails if I call it like
Unity.Notification.showNotification("Test", "This is a test message");

Revision history for this message
Ronald McCollam (fader) wrote :
Download full text (4.5 KiB)

Hmm, apport-collect didn't help me out here, so providing what I think might be relevant:

fader@baltar:~$ dpkg-query -s firefox
Package: firefox
Status: install ok installed
Priority: optional
Section: web
Installed-Size: 48069
Maintainer: Ubuntu Mozilla Team <email address hidden>
Architecture: amd64
Version: 17.0.1+build1-0ubuntu0.12.10.1
Replaces: kubuntu-firefox-installer
Provides: gnome-www-browser, iceweasel, www-browser
Depends: lsb-release, libasound2 (>= 1.0.16), libatk1.0-0 (>= 1.12.4), libc6 (>= 2.15), libcairo2 (>= 1.2.4), libdbus-1-3 (>= 1.0.2), libdbus-glib-1-2 (>= 0.78), libfontconfig1 (>= 2.9.0), libfreetype6 (>= 2.3.9), libgcc1 (>= 1:4.1.1), libgdk-pixbuf2.0-0 (>= 2.22.0), libglib2.0-0 (>= 2.31.8), libgtk2.0-0 (>= 2.24.0), libpango1.0-0 (>= 1.14.0), libstartup-notification0 (>= 0.8), libstdc++6 (>= 4.6), libx11-6, libxext6, libxrender1, libxt6
Recommends: xul-ext-ubufox, firefox-globalmenu, libcanberra0
Suggests: latex-xft-fonts, libthai0, firefox-gnome-support
Conffiles:
 /etc/apparmor.d/usr.bin.firefox 1e9622ff54b66ff14df4cbd6987599d9
 /etc/apport/native-origins.d/firefox 7c26b75c7c2b715c89cc6d85338252a4
 /etc/apport/blacklist.d/firefox ee63264f847e671832d42255912ce144
 /etc/firefox/syspref.js 09e457e65435a1a043521f2bd19cd2a1
Description: Safe and easy web browser from Mozilla
 Firefox delivers safe, easy web browsing. A familiar user interface,
 enhanced security features including protection from online identity theft,
 and integrated search let you get the most out of the web.
Xul-Appid: {ec8030f7-c20a-464f-9b0e-13a3a9e97384}

fader@baltar:~$ dpkg-query -s unity-webapps-common
Package: unity-webapps-common
Status: install ok installed
Priority: optional
Section: gnome
Installed-Size: 308
Maintainer: Ubuntu Developers <email address hidden>
Architecture: all
Source: webapps-applications
Version: 2.4.10-0ubuntu1
Replaces: unity-webapps
Depends: session-migration, unity-webapps-service (>= 2.3.8-0ubuntu3), xdg-utils
Suggests: xul-ext-unity (>= 0.3.1) | unity-chromium-extension
Breaks: unity-webapps
Conffiles:
 /etc/aptdaemon/high-trust-repository-whitelist.d/aptdaemon-trust-webapps.cfg 2dd13bd04292ada586c9a4fce1e35120
Description: Unity WebApp integration scripts
 Example scripts for WebApp integration with the Unity desktop
Homepage: https://launchpad.net/webapps-applications

fader@baltar:~$ dpkg-query -s unity
Package: unity
Status: install ok installed
Priority: optional
Section: gnome
Installed-Size: 4540
Maintainer: Ubuntu Developers <email address hidden>
Architecture: amd64
Version: 6.10.0-0ubuntu2
Provides: indicator-renderer
Depends: compiz-core, libatk-bridge2.0-0 (>= 2.5.3), libatk1.0-0 (>= 2.2.0), libbamf3-0 (>= 0.3.0), libc6 (>= 2.14), libcairo2 (>= 1.2.4), libdbusmenu-glib4 (>= 0.4.2), libdee-1.0-4 (>= 0.5.12), libgcc1 (>= 1:4.1.1), libgdk-pixbuf2.0-0 (>= 2.22.0), libgl1-mesa-glx | libgl1, libglew1.8 (>= 1.8.0), libglib2.0-0 (>= 2.33.14), libgtk-3-0 (>= 3.1.6), libindicator3-7, libjson-glib-1.0-0 (>= 0.12.0), libnotify4 (>= 0.7.0), libnux-3.0-0, libpango1.0-0 (>= 1.22.0), libsigc++-2.0-0c2a (>= 2.0.2), libstartup-notification0 (>= 0.2), libstdc++6 (>= 4.6...

Read more...

Omer Akram (om26er)
Changed in libunity-webapps:
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.