Commit Graph

59 Commits

Author SHA1 Message Date
Marco Bonardo
c536e58644 Bug 977177 - Update favicons API consumers. r=adw
Updates consumers to the new behavior.
Some consumers are changed to use  the "page-icon:" protocol, since it's not
trivial to join the icons table and get a single result out of it. In most cases
the join would return multiple results since a page can have multiple icon payloads.
These consumers for now will return the biggest payload, bug 1347532 will fix
some of them to properly pass a #size=NN fragment.
Note that, even before, these were just "moz-anno:favicon:" uris, and the
payload had to be fetched from the database.
Some other consumers for now just fallback to the largest payload, by passing 0
to GetFaviconURLForPage.

The favicon optimization still happens on the main-thread, bug 1346139 will
handle that problem.

Most of the changes involve handling the modified IconData objects, that now
retain an array of payloads, rather than just one. But note that .ico files are
not yet split into single frames, due to imagelib missing APIs that will be handled
in bug 1337402.
The other changes involve fixing queries to properly join with the new tables.

Finally, note that thanks to the FOREIGN KEYS support, removing from moz_icons or
moz_pages_w_icons will also remove relations from moz_icons_to_pages.

The system only supports square icons, so icons are resized based on their larger side.

This doesn't include new tests, those will be in a following changeset.

MozReview-Commit-ID: JUkpquhpS8y
2016-09-28 16:14:30 +02:00
Makoto Kato
8a66aa54a4 Bug 1348177 - Part 2. Remove GetProcAddress for shell32 to use Vista+/7+ API (tookit part). r=jimm
It is unnecessary to use Vista/7+ API via GetProcAddress.

MozReview-Commit-ID: AT6OJhhf4r2
2017-03-17 11:04:33 +09:00
William Chen
ffb414a896 Bug 862395 - Part 1: Add requireInteraction property to web notifications. r=baku 2016-10-12 17:27:40 -07:00
Jim Chen
e9a9c7abea Bug 1288821 - Remove Android-specific code from nsAlertsService; r=kitcambridge
Remove Android-specific code from nsAlertsService now that we have a
proper nsIAlertsService backend on Android. However, we cannot use
nsXULAlerts because XUL windows are not fully supported on Android, so
we return nullptr in nsXULAlerts::GetInstance.
2016-08-04 09:17:54 -04:00
Jim Chen
14c2b632ad Bug 1288821 - Remove nsIAlertsProgressListener; r=kitcambridge r=snorp
nsIAlertsProgressListener is a relic from XUL Fennec and we no longer
use it in any code.
2016-08-04 09:17:54 -04:00
Jim Chen
e8f534d407 Bug 1287946 - Update existing code to use mozilla::java; r=me 2016-07-21 13:49:04 -04:00
Carsten "Tomcat" Book
58f5467519 Backed out changeset 684888aeee81 (bug 1287946) 2016-07-21 08:07:12 +02:00
Jim Chen
0ea27022be Bug 1287946 - Update existing code to use mozilla::java; r=me 2016-07-21 00:42:26 -04:00
SUN Haitao
b7f76abfcb Bug 1264815 - Add a 'showPersistentAlertNotification' method to GeckoAppShell. r=kcambridge 2016-04-17 21:18:20 +08:00
SUN Haitao
86fce9587d Bug 1264815 - Add a 'showPersistentNotification' method to nsIAlertService. r=kcambridge 2016-05-12 23:58:18 +08:00
Carsten "Tomcat" Book
102154539f Backed out changeset 8f6cc2d22ba7 (bug 1264815) 2016-05-31 07:05:04 +02:00
Carsten "Tomcat" Book
20891e607d Backed out changeset 20d0b05e708b (bug 1264815) 2016-05-31 07:05:01 +02:00
SUN Haitao
b5ed19b68a Bug 1264815 - Add a 'showPersistentAlertNotification' method to GeckoAppShell. r=wchen 2016-04-17 21:18:20 +08:00
SUN Haitao
4a2fec21d7 Bug 1264815 - Add a 'showPersistentNotification' method to nsIAlertService. r=kcambridge 2016-05-12 23:58:18 +08:00
Kit Cambridge
d1c4e655ab Bug 1250288 - Add a pref for showing favicons in web notifications. r=MattN
MozReview-Commit-ID: 9hxv7Ts8L8u
2016-02-22 13:16:27 -08:00
Kit Cambridge
a78b787b58 Bug 1224785, Part 3 - Don't include ShowWith{Icon}Backend on Android. r=me 2016-02-16 15:52:15 -08:00
Kit Cambridge
bc0285a16c Bug 1224785, Part 1 - Implement alert favicons backend. r=wchen
MozReview-Commit-ID: Day8Hj8lT1f
2016-01-07 13:15:55 -07:00
Kit Cambridge
a49ec41f73 Bug 1219855, Part 2 - Always use XUL notifications if the system backend fails. r=wchen 2016-01-05 12:20:38 -07:00
Kit Cambridge
2aa4705a88 Bug 1219855, Part 1 - Make nsXULAlerts implement nsIAlertsService. r=MattN,wchen 2015-12-31 13:27:09 -07:00
Kit Cambridge
3f426e5171 Bug 1227300, Part 2 - Implement showAlert. r=MattN,wchen 2015-12-31 12:04:24 -07:00
Kit Cambridge
ea45d8a39a Bug 1219030 - Collect notification management telemetry. r=wchen,MattN; p=ally 2015-11-13 21:22:59 -08:00
Chenxia Liu
1c3274a9cf Bug 1212611 - Use system notification for website notifications in Android. r=mfinkle 2015-12-03 10:56:04 -05:00
Matthew Noorenberghe
bd5de1c0f3 Bug 1208346 - Fix manualDoNotDisturb build bustage on Android. r=bustage 2015-10-18 20:39:35 -07:00
Matthew Noorenberghe
71d9590267 Bug 1208346 - Alert service Do Not Disturb backend. r=jaws
IGNORE IDL
2015-10-18 20:04:56 -07:00
Kit Cambridge
ee0940e331 Bug 1202933, Part 1 - Show the origin for XUL notifications. r=MattN,wchen 2015-10-05 19:45:04 -07:00
Juan Gomez
89035d527e Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-07-03 18:29:00 -07:00
Ryan VanderMeulen
7aba9d7002 Backed out changeset 8b4e4083639e (bug 1171931) for B2G debug emulator bustage. 2015-06-25 19:48:42 -04:00
Juan Gomez
7323e89a40 Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-06-24 14:11:00 -04:00
Jim Chen
60b2a7d4b1 Bug 1116589 - Use templated JNI classes in generated bindings; r=snorp 2015-01-09 19:33:57 -05:00
Ehsan Akhgari
02d309afa1 Bug 1106116 - Load images for notifications triggered from private browsing windows as private; r=jdm 2014-11-28 14:08:29 -05:00
Martin Stransky
c081579fb0 Bug 858919 - Add support for libnotify calls which was removed for new notification API. r=karlt 2014-11-14 04:04:00 +01:00
Robert Bindar
a0e0e8b231 Bug 899585 - Add custom data support in the Notification constructor r=baku 2014-08-20 17:56:12 -07:00
Birunthan Mohanathas
eeb9aaaa94 Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj 2014-04-27 03:06:00 -04:00
snigdha
724d084f99 Bug 798033 - Headers should generally not do "using namespace" at file scope. r=jib, r=jmathies, r=rjesup, r=ekr, r=ncameron, r=blassey 2014-04-01 08:29:25 -04:00
Ryan VanderMeulen
86af8bac61 Backed out changeset 6f05267b4afc (bug 798033) for Android bustage. 2014-03-05 09:55:52 -05:00
snigdha
238d3a6bf5 Bug 798033 - Headers should generally not do "using namespace" at file scope. r=jib, r=jmathies, r=rjesup, r=ekr, r=ncameron, r=blassey 2014-03-05 08:47:45 -05:00
Chris Kitching
69fdb42135 Bug 913985: Part 5 - Refactor the Bridge to use the generated code. r=kats 2013-11-12 10:41:01 -08:00
Ryan VanderMeulen
4501219603 Backed out 7 changesets (bug 913985) for intermittent Android crashes.
Backed out changeset 53513a959cf0 (bug 913985)
Backed out changeset d23d1e678417 (bug 913985)
Backed out changeset a9c9187b4f4a (bug 913985)
Backed out changeset c6b02e4a3e35 (bug 913985)
Backed out changeset 895dae322e3c (bug 913985)
Backed out changeset 3d97e6a53313 (bug 913985)
Backed out changeset 892bb017f8ba (bug 913985)
2013-11-19 10:56:09 -05:00
Chris Kitching
e115439e46 Bug 913985 - Part 5: refactor the Bridge to use the generated code. r=kats 2013-11-12 10:41:01 -08:00
Reuben Morais
988cb04771 Bug 904298 - Use CheckPermission to check for the desktop-notification permission. r=sicking 2013-11-11 21:56:21 -02:00
Birunthan Mohanathas
37fac24a80 Bug 784739 - Switch from NULL to nullptr in toolkit/components/ (2/2); r=ehsan 2013-10-10 16:38:19 -04:00
Wes Johnston
287328f432 Bug 896350 - Don't close notifications unless explicitly requested to. r=blassey 2013-08-02 11:04:49 -07:00
Joshua Cranmer
4c1f2d0784 Bug 884061 - Part 3v: Use NS_DECL_THREADSAFE_ISUPPORTS in toolkit/, r=Mossop 2013-07-18 21:24:15 -05:00
Brian R. Bondy
228097c106 Bug 856202 - Alert service always cancels in Metro right away. r=wchen 2013-04-08 20:39:55 -04:00
William Chen
5a513bcc76 Bug 782211 - Part 9: Remove native notification systems on desktop platforms. r=dougt 2013-03-18 06:24:55 -07:00
William Chen
e86f5ff604 Bug 782211 - Part 8: Updated existing XUL alerts to implement the Notification API. r=enn 2013-03-18 06:24:54 -07:00
William Chen
4c059d6277 Bug 782211 - Part 2: Updated the nsIAlertsService API and its implementation to include support for bidi overrides and a method to close notifications. r=dougt 2013-03-18 06:24:53 -07:00
William Chen
6d370e30f7 Bug 782211 - Part 1: Implemented additional functionality in Fennec to support Notification API. r=wesj 2013-03-18 06:24:53 -07:00
Neil Rashbrook
09004977a9 Bug 818861 Shouldn't allow promising a flat string from a flat string r=dbaron 2012-12-22 20:40:37 +00:00
Ehsan Akhgari
243c878d26 Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
This patch was generated by a script.  Here's the source of the script for
future reference:

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name nsXPCOMCID.h \
       ! -name prtypes.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t

convert PRIntn int
convert PRUintn unsigned

convert PRSize size_t

convert PROffset32 int32_t
convert PROffset64 int64_t

convert PRPtrdiff ptrdiff_t

convert PRFloat64 double
2012-08-22 11:56:38 -04:00