mozilla

Mozilla Nederland LogoDe Nederlandse
Mozilla-gemeenschap

Mozilla tweaks “referer headers” in bid to limit website privacy grabs - Ars Technica

Nieuws verzameld via Google - wo, 21/01/2015 - 17:18

Ghacks Technology News

Mozilla tweaks “referer headers” in bid to limit website privacy grabs
Ars Technica
The "meta referrer," as the new feature is dubbed, is aimed at stemming the ballooning amount of information many sites stuff into Referer headers, Mozilla Security and Privacy Engineer Sid Stamm wrote in a blog post published Wednesday. Referer ...
Mozilla adds Security information to Firefox 37 Developer ToolsGhacks Technology News

alle 3 nieuwsartikelen »
Categorieën: Mozilla-nl planet

Thunderbird: Version 31.4.0 verbessert Add-on-Installation - COMPUTER BILD

Nieuws verzameld via Google - wo, 21/01/2015 - 16:27

COMPUTER BILD

Thunderbird: Version 31.4.0 verbessert Add-on-Installation
COMPUTER BILD
Open-Source-Hersteller Mozilla liefert zu neuen Programmversionen jeweils ein „Changelog“ mit, also eine Liste der Änderungen. Die fällt bei Thunderbird 31.4.0 kurz und knapp aus, enthält aber immerhin Korrekturen einiger sicherheitsrelevanter Fehler ...

Google Nieuws
Categorieën: Mozilla-nl planet

Pete Moore: Weekly review 2015-01-21

Mozilla planet - wo, 21/01/2015 - 16:25

This week I’ve started work on the Go port of the taskcluster client: https://github.com/petemoore/taskcluster-client-go.

This week I learned about AMQP, go routines and channels, Hawk authentication, TaskCluster architecture, and started using some go libraries.

Other activities:

  • b2g bumper code reviews
Categorieën: Mozilla-nl planet

You can refresh Firefox on the Mozilla website now - Ghacks Technology News

Nieuws verzameld via Google - wo, 21/01/2015 - 13:41

Ghacks Technology News

You can refresh Firefox on the Mozilla website now
Ghacks Technology News
Firefox users who experience issues when using the browser that they cannot resolve can use the browser's refresh feature (formerly known as Firefox Reset) instead as an automatic option to fix those issues. Firefox users had two options up until now ...

Categorieën: Mozilla-nl planet

Bogomil Shopov: Why is Bulgaria Web Summit 2015 so different from any other event?

Mozilla planet - wo, 21/01/2015 - 13:35

When I talk to sponsors and even to friends about the Summit, they always ask me what makes our event different.

So here’s the secret:

We started this event 11 years ago (under a different name) as an effort to create something amazing and affordable for IT guys in Bulgaria. At the same time we never compromise with quality. The main purpose of the event is for our attendees to learn new things, which they can apply in their work on the very next day and to return the “investment” they have made in the conference.

Speakers

In most of the conferences I’ve been in Europe, well-trained company folks talk about their success at Fakebook or Playpal and how to clone it to your company – This doesn’t work and you will not see it at our event and in the same time you have to spend tons of money just to listen to the guy.

In the most conferences I’ve been in Europe, well-respected gurus talk about some programming art – they do that all the time, they just talk, they don’t code anymore – You will not see this at our event – We invite only professionals and they share their experience with you and on the next day, they will not depart for another event, but they will go back to do the thing they do the best.

We have had amazing speakers over the years. Some of them became friends of the event and they can come again and again, even without paying them a dime. We build relationships with our speakers, because we are Balkan people and this is what we do.

Many people still remember Monty’s Black Vodka, Richard Stallman‘s socks and many other stories that must be kept secret :)

 

The audience

We do have the best audience ever! I mean it. We have people that haven’t missed an event since 2004. They are honest and if you screw up they will tell you and they will give you kudos if you do something amazing. In most of the years, the tickets are sold months before the event, even without a schedule and even without the speakers yet known, because we proved the event is good.

We have people who met at our event and got married, we have people who met at our event and started business together, we have companies that hired great professionals because of our events; we have kicked off many careers by showing the people great technologies and ways to use them.

 

The money

Of course it’s not all about money. We do need them to make the event great, but our main goal is not to make money out of it. As you can see the entrance fee is low – for the same event in Europe (same speakers) you would have to pay 5-10 times more. We realize that we live in a different country and the conditions are different, but we are trying to find a way to keep the fee low and at the same time to still keep up the quality of the talks and emotions. We can achieve this only thanks to our sponsors. Thank you, dear sponsors!

 

Experiments

We do experiment a lot. We are trying to make a stress-free event, full of nice surprises, parties and interesting topics.

We are not one of those conferences where you get tons of coffee in the breaks (sometime we even don’t have breaks, nor coffee for that matter, just beer!) and a schedule 3 months in advance or you can sit and pretend you are listening, because someone paid you the fee. With us you are a part of the event all the time: we have games, hackathons and other stuff you can take part in. We give you the bread and butter, use your mind to make a sandwich. :)

 

We grow

We failed many times at many tasks, but we are learning and improving. We are not a professional team doing this for the money. We are doing this for fun and to help our great and amazing community. We count on volunteers. Thank you, dear volunteers!

 

Marketing?

We are one of the few events that don’t have history of the event on their website. Duh! We do believe that if you visit us once (because a friend told you about us) you don’t need a silly website to convince you again to come :) We do not spend (a lot of) money on marketing or professional services. We count on word of mouth and you. Thank you!

Join us and see for yourself!
Categorieën: Mozilla-nl planet

Gervase Markham: Your Top 50 DOS Problems Solved

Mozilla planet - wo, 21/01/2015 - 10:29

I was clearing out some cupboards at our family home when I came across a copy of “Your Top 50 DOS Problems Solved”, a booklet published free with “PC Answers” magazine in 1992 – 23 years ago. PC Answers has sadly not survived, closing in 2010, and its domain is now a linkfarm. However, the sort of problems people had in those days make fascinating reading.

Now I’ve finished blogging quotes from “Producing Open Source Software” (the updated version of which has, sadly, yet to hit our shelves), I think I’ll blog through these on an occasional basis. Expect the first one soon.

Categorieën: Mozilla-nl planet

Mozilla adds Security information to Firefox 37 Developer Tools - Ghacks Technology News

Nieuws verzameld via Google - wo, 21/01/2015 - 09:25

Ghacks Technology News

Mozilla adds Security information to Firefox 37 Developer Tools
Ghacks Technology News
Mozilla added a new security panel to the Developer Tools of Firefox 37 that reveal those information and additional information in compact form. Firefox 37 means that it is currently available to Developer and Nightly versions of the web browser. It ...

Categorieën: Mozilla-nl planet

Mozilla wants to put Firefox in your virtual reality headset - VentureBeat

Nieuws verzameld via Google - wo, 21/01/2015 - 04:33

VentureBeat

Mozilla wants to put Firefox in your virtual reality headset
VentureBeat
Mozilla wants your virtual headset to access the web, and so the company announced that it will start adding VR capabilities directly into its “Firefox Nightly” developer release channel. As Mozilla engineering director Vlad Vukicevic said in a blog post:.

Categorieën: Mozilla-nl planet

Air Mozilla: Bay Area useR Group Official Meetup

Mozilla planet - wo, 21/01/2015 - 04:00

Bay Area useR Group Official Meetup The Bay Area R Users Group hosts Ryan Hafen, Hadley Wikham and Nick Elprin. Ryan Hafen - Tessera is a statistical computing environment that enables...

Categorieën: Mozilla-nl planet

Andreas Gal: WebVR is coming to Firefox Nightly

Mozilla planet - wo, 21/01/2015 - 00:54

In 2014 Mozilla started working on adding VR capabilities to the Web. Our VR team proposed a number of new Web APIs and made an experimental VR build of Firefox available that supports rendering VR content using the Web to Oculus Rift headsets.

Consumer VR products are still in a nascent state, but clearly there is great promise for this technology. We have enough confidence in the new APIs we have proposed that we are today taking the step of integrating them into our regular nightly Firefox builds. Head over to MozVR for all the details, and if you own an Oculus Rift headset or mobile VR-capable hardware we support, give it a spin!

 


Filed under: Mozilla
Categorieën: Mozilla-nl planet

ComScore: Yahoo grabs 1.6% US search share from Google following Mozilla ... - VentureBeat

Nieuws verzameld via Google - wo, 21/01/2015 - 00:12

Gizmodo Australia

ComScore: Yahoo grabs 1.6% US search share from Google following Mozilla ...
VentureBeat
More than 1 percent is thus a huge difference, though it's really no surprise given the five-year deal Yahoo struck with Mozilla on Nov. 19 to become its default search engine in the U.S. Given that Google was the default search engine of choice, it ...
10 Tricks to Make Youself a Firefox MasterGizmodo India

alle 5 nieuwsartikelen »
Categorieën: Mozilla-nl planet

Firefox 35+: Firefox-Profil zurücksetzen über Mozilla-Webseite - soeren-hentzschel.at

Nieuws verzameld via Google - ti, 20/01/2015 - 23:26

Firefox 35+: Firefox-Profil zurücksetzen über Mozilla-Webseite
soeren-hentzschel.at
Seit Firefox 35 geht dies auch über die Mozilla-Webseite. Über Hilfe → Informationen zur Fehlerbehebung oder auch durch Eingabe von about:support in die Adressleiste gelangt der Firefox-Nutzer zu einer Seite mit für den Support hilfreichen Informationen.

Categorieën: Mozilla-nl planet

Air Mozilla: Engineering Meeting

Mozilla planet - ti, 20/01/2015 - 20:00

Engineering Meeting The weekly Mozilla engineering meeting.

Categorieën: Mozilla-nl planet

Matt Thompson: What we’re working on this Heartbeat

Mozilla planet - ti, 20/01/2015 - 17:11

Transparency. Agililty. Radical participation. That’s how we want to work on Webmaker this year. We’ve got a long way to go,  but we’re building concrete improvements and momentum — every two weeks.

We work mostly in two-week sprints or “Heartbeats.” Here’s the priorities we’ve set together for the current Heartbeat ending January 30.

Questions? Want to get involved? Ask questions in any of the tickets linked below, say hello in #webmaker IRC, or get in touch with @OpenMatt.

What we’re working on now

See it all (always up to date): http://build.webmaker.org/now 

Or see the work broken down by:

Learning Networks
  • Design & test new teach.webmaker.org wireframes
  • Get the first Webmaker Club curriculum module ready for testing
  • Finalize our documentation for Badges / Credentialing
  • Document our Q1 / Q2 plan for Training

Learning Products

Desktop / Tablet:

  • Improve user on-boarding (Phase II)
  • Improve our email communications after users sign up
  • Create better moderation functionality for webmaker.org/explore (formerly known as “the gallery”)
  • Build a unified tool prototype (Phase II)

 Mobile

  • Draft demo script and plan our marketing activities for Mobile World Congress
  • Make localization improvements to the Webmaker App
  • Build and ship device integrations and a screenshot service for Webmaker App
  • Distribute the first draft of our Kenya Field Report

 Engagement
  • Prep and execute Data Privacy Day campaign (Jan 28)
  • Prep for Net Neutrality Campaign (Feb 5)
  • Draft a branding plan for Learning Products and Learning Networks
  • Design a splash page for Mobile World Congress

 Planning & Process
  • Design and execute a communications plan on our overall 2015 plan
  • Document all our Q1 goals and KPIs in one spot
  • Add those quarterly goals to our dashboard
  • Ship updated documentation to build.webmaker.org (including: “How we do Heartbeats” & “How to use Git Hub Issues”)
Categorieën: Mozilla-nl planet

Air Mozilla: Martes mozilleros

Mozilla planet - ti, 20/01/2015 - 17:00

Martes mozilleros Reunión bi-semanal para hablar sobre el estado de Mozilla, la comunidad y sus proyectos.

Categorieën: Mozilla-nl planet

Raniere Silva: Mathml January Meeting

Mozilla planet - ti, 20/01/2015 - 03:00
Mathml January Meeting

This is a report about the Mozilla MathML January IRC Meeting (see the announcement here). The topics of the meeting can be found in this PAD (local copy of the PAD) and the IRC log (local copy of the IRC log) is also available.

The next meeting will be in March 11th at 8pm UTC (check the time at your location here). Please add topics in the PAD.

Note

Our February meeting was cancelled. =(

Leia mais...

Categorieën: Mozilla-nl planet

Cameron Kaiser: Upgrading the unupgradeable: video card options for the Quad G5

Mozilla planet - mo, 19/01/2015 - 22:01
Now that the 2015 honeymoon and hangovers are over, it's back to business, including the annual retro-room photo spread (check out the new pictures of the iMac G3, the TAM and the PDP-11/44). And, as previously mentioned on my ripping yarn about long-life computing -- by this way, this winter the Quad G5's cores got all the way down to 30 C on the new CPU assembly, which is positively arctic -- 2015 is my year for a hard disk swap. I was toying with getting an apparently Power Mac compatible Seagate hybrid SSHD that Martin Kuka&ccaron was purchasing (perhaps he'll give his capsule review in the comments or on his blog?), but I couldn't find out if it failed gracefully to the HD when the flash eventually dies, and since I do large amounts of disk writes for video and development I decided to stick with a spinning disk. The Quad now has two 64MB-buffer 7200rpm SATA II Western Digital drives and the old ones went into storage as desperation backups; while 10K or 15Krpm was a brief consideration, their additional heat may be problematic for the Quad (especially with summers around here) and I think I'll go with what I know works. Since I'm down to only one swap left I think I might stretch the swap interval out to six years, and that will get me through 2027.

At the same time I was thinking of what more I could do to pump the Quad up. Obviously the CPU is a dead-end, and I already have 8GB of RAM in it, which Tiger right now indicates I am only using 1.5GB of (with TenFourFox, Photoshop, Terminal, Texapp, BBEdit and a music player open) -- I'd have to replace all the 1GB sticks with 2GB sticks to max it out, and I'd probably see little if any benefit except maybe as file cache. So I left the memory alone; maybe I'll do it for giggles if G5 RAM gets really cheap.

However, I'd consolidated the USB and FireWire PCIe cards into a Sonnet combo card, so that freed up a slot and meant I could think about the video card. When I bought my Quad G5 new I dithered over the options: the 6600LE, 7800GT and 2-slot Quadro FX 4500, all NVIDIA. I prefer(red) ATIAMD in general because of their long previous solid support for the classic Mac OS, but Apple only offered NVIDIA cards as BTO options at the time. The 6600LE's relatively anaemic throughput wasn't ever in the running, and the Quadro was incredibly expensive (like, 4x the cost!) for a marginal increase in performance in typical workloads, so I bought the 7800GT. Overall, it's been a good card; other than the fan failing on me once, it's been solid, and prices on G5-compatible 7800GTs are now dropping through the floor, making it a reasonably inexpensive upgrade for people still stuck on a 6600. (Another consideration is the aftermarket ATI X1900 GT, which is nearly as fast as the 7800GT.)

However, that also means that prices on other G5-compatible video cards are also dropping through the floor. Above the 7800GT are two options: the Quadro FX 4500, and various third-party hacked video cards, most notably the 2-slot 7800GTX. The GTX is flashed with a hacked Mac 7800GT ROM but keeps the core and memory clocks at the same high speed, yielding a chimera card that's anywhere between 15-30% faster than the Quadro. I bought one of these about a year and a half ago as a test, and while it was noticeably faster in certain tasks and mostly compatible, it had some severe glitchiness with older games and that was unacceptable to me (for example, No One Lives Forever had lots of flashing polygons and bad distortion). I also didn't like that it didn't come with a support extension to safely anchor it in the G5's card guide, leaving it to dangerously flex out of the card slot, so I pulled it and it's sitting in my junk box while I figure out what to do with it. Note that it uses a different power adapter cable than the 7800 or Quadro, so you'll need to make sure it's included if you want to try this card out, and if you dislike the lack of a card guide extension as much as I do you'll need a sacrificial card to steal one from.

Since then Quadro prices plummeted as well, so I picked up a working-pull used Apple OEM FX 4500 on eBay for about $130. The Quadro has 512MB of GDDR3 VRAM (same as the 7800GTX and double the 7800GT), two dual-link DVI ports and a faster core clock; although it also supports 3D glasses, something I found fascinating, it doesn't seem to work with LCD panels, so I can't evaluate that. Many things are not faster, but some things are: 1080p video playback is now much smoother because the Quadro can push more pixels, and high end games now run more reliably at higher resolutions as you would expect without the glitchiness I got in older titles with the 7800GTX. Indeed, returning to the BareFacts graph, the marginal performance improvement and the additional hardware rendering support is now at least for me worth $130 (I just picked up a spare for $80), it's a fully kitted and certified OEM card (no hacks!), and it uses the same power adapter cable as the 7800GT. One other side benefit is that, counterintuitively, the GPU is several degrees cooler (despite being bigger and beefier) and the fan is nearly inaudible, no doubt due to that huge honking heatsink.

It's not a big bump, but it's a step up, and I'm happy. I guess all that leaves is the RAM ...

In TenFourFox news, I'm done writing IonPower (phase 1). Phase 2 is compilation. That'll be some drudgery, but I think we're on target for release with 38ESR.

Categorieën: Mozilla-nl planet

Gervase Markham: Credit as Currency

Mozilla planet - mo, 19/01/2015 - 19:21

Credit is the primary currency of the free software world. Whatever people may say about their motivations for participating in a project, I don’t know any developers who would be happy doing all their work anonymously, or under someone else’s name. There are tangible reasons for this: one’s reputation in a project roughly governs how much influence one has, and participation in an open source project can also indirectly have monetary value, because some employers now look for it on resumés. There are also intangible reasons, perhaps even more powerful: people simply want to be appreciated, and instinctively look for signs that their work was recognized by others. The promise of credit is therefore one of best motivators the project has. When small contributions are acknowledged, people come back to do more.

— Karl Fogel, Producing Open Source Software

Categorieën: Mozilla-nl planet

Christian Heilmann: Be my eyes, my brain, my second pair of eyes…

Mozilla planet - mo, 19/01/2015 - 17:05

(cross published on Medium, in case you want to comment on paragraphs).

In the last few days, the “Be My Eyes” App made quite a splash. And with good reason, as it is a wonderful idea.

Be my eyes

The app plans to connect non-sighted people with sighted ones when they are stuck with a certain task. You ask for a pair of eyes, you connect over a smart phone, video the problem you have and get a volunteer human to help you out with a video call. Literally you offer to be the eyes for another person.

This is not that new, for example there were services that allow for annotation of inaccessible web content (WebVisum, IBM’s (now defunct) social accessibility project) before. But, be my eyes is very pretty and makes it much easier to take part and help people.

Only for the richer eyes…

Right now the app is iOS only, which is annoying. Whilst the accessibility features of iOS used to be exceptional it seems to be losing in quality with iOS8. Of course, the other issue is the price. Shiny Apple things are expensive, Android devices and computers with built-in cameras less so. The source code of be my eyes is on GitHub which is a great start. We might be able to see versions of it on Android and WebRTC driven versions for the web and mobile soon.

Concerns mentioned

As with any product of this ilk, concerns and criticism happen quickly:

  • This may portrait people with disabilities as people who are dependent on others to work. In essence, all you need to do is remove barriers. I know many, very independent blind people and it is depressing how many prejudices are still there that people with disabilities need our help for everything. They don’t. What they need is less people who make assumptions about abilities when building products.
  • There is a quality concern here. We assume that people signing up want to help and have good intentions. However, nothing stops trolls from using this either and deliberately giving people wrong advice. There are people who post seizure-inducing GIFs on epilepsy forums, for example. For a sociopath who wants to hurt people this could be “fun” to abuse. Personally, I want to believe that people are better than that, but only one incident where a blind user gets harmed “for the lulz” might be enough to discredit the whole product.

Extending the scope of this app

I don’t see why this app could not become more than it is now. We all could need a second pair of eyes from time to time. For example:

  • to help with some translation,
  • to recognise what breed a certain puppy is,
  • to help us find inspiration for a painting,
  • to learn how to fix a certain appliance in my kitchen without destroying it
  • to have some locals show us which roads are easier to walk,
  • to have an expert eye tell me if my makeup looks good and what could be done
  • to get fashion advice on what I could mix and match in my closet to look great

Some of those have great potential for monetisation, others were done before and died quickly (the local experts one was a product I was involved in at Yahoo called Yocal, which never saw the light of day and could have been foursquare years before foursquare).

Again, this would be nothing new: expert peer to peer systems have come and gone before. When I worked on Yahoo Answers there were discussions to allow for video upload for questions and answers. A prospect that scared the hell out of me seeing that “is my penis big enough” was one of the most asked questions in the Yahoo Answers Men’s health section (and any other, to be fair).

The defunct Google Answers had the idea to pay experts to answer your questions quickly and efficiently. Newer services like LiveNinja and AirPair do this with video chats (and Google, of course may want Hangouts to be a player in that space).

The issues that all of these services face is quality control and safety. Sooner or later any of the original attempts at this failed because of these. Skype services to pay for audio or video advice very quickly became camsex hangouts or phonesex alternatives. This even happens in the offline world – my sister used to run a call centre and they found out that one of their employees offered her phonesex services to eligible men on the line. Yikes.

Another issue is retain-ability and re-use. It is not fun to try to find a certain part of a video without a timed transcript. This can be automated to a degree – YouTube’s subtitling is a good start – but that brings up the question who else reads the private coaching session you had?

Can this be the start or will hype kill it again?

If anything, the user interface and interaction pattern of Be my Eyes is excellent, and the availability of video phones and chat abilities like WebRTC make it possible to have more of these services soon.

In the coding world, real live interaction is simple these days. JSFiddle’s collaboration button allows you to code together, JSBin allows people to watch you while you code and Mozilla’s together.js allows you to turn any web page into a live audio and video chat with multiple cursors.

We use Google Docs collaboratively, we probably have some live chat going with our colleagues. The technology is there. Firefox now has a built-in peer to peer chat system called Hello. Wouldn’t it be cool to have an API for that to embed it in your products?

The thing that might kill those is hype and inflated demands. Yahoo Answers was an excellent idea to let the human voice and communication patterns prevail over algorithmic results. It failed when all that it was measured against was the amount of users and interactions in the database. This is when the quality was thrown out the window and How is babby formed got through without a blip on the QA radar.

Let’s hope that Be my Eyes will survive the first spike of attention and get some support of people who are OK with a small amount of users who thoroughly want to help each other. I’d like to see that.

Categorieën: Mozilla-nl planet

Andrea Marchesini: RequestSync API

Mozilla planet - mo, 19/01/2015 - 17:01

Last week a new API just for B2G certified apps is landed in mozilla-central: RequestSync API. The basic purpose of this API is to allow apps to schedule tasks, while also letting the user decide when these tasks have to be executed.

Consider the following example: your mail app wants to synchronize your mailbox regularly.

Here is what it does:

navigator.sync.register('mail-synchronizer', { minInterval: 120 /* 2 minutes */, oneShot: false, data: { accountID: 123 }, wifiOnly: true, wakeUpPage: location.href }).then( function() { console.log("mail-synchronizer task has been registered"); }, function() { console.log("Something bad happened."); });

Through this process, the app has registered a new task, called ‘mail-synchronizer’. It will be scheduled every 2 minutes if the device is connected to the wifi. As you can see, the second parameter of the register method is a configuration object. Here are some more details:

  • minInterval is the number of seconds between 1 execution of the task and the next. This is not entirely precise, but it’s an indication for the RequestSyncService. It can happen that the device may be busy doing something, and this task may be postponed for a while.

  • oneShot: boolean. If we want just 1 execution of the task, we should set it to “true”.

  • data: this can be anything. It’s something useful for the app.

  • wifiOnly: by default it is true and it informs the RequestSyncService about the fact that this task must be executed only if we are using a wifi connection.

  • wakeUpPage: this is the page that will be activated when the task is about to be executed.

Register() method returns a Promise object and if called more than once, the app overwrites the previous task configuration.

In the navigator.sync object there are other methods: unregister(), registrations() and registration(), but we can skip them for now.

When the task is executed, the wakeUpPage is activated and it receives a message in this way:

navigator.mozSetMessageHandler('request-sync', function(e) { ... });

the message contains this attributes:

  • task - the task name. In our example this will be ‘mail-synchronizer’.

  • data - what we sent in the registration: { accountID: 123 }.

  • lastSync - This is a DOMTimeStamp containing the date/time of the last execution of this task.

  • minInterval, oneShot, wifiOnly, wakeUpPage - these attributes will be the same as what we set during the registration.

Now, back to our example, the synchronization of the mailbox may take a while. In order to help RequestSyncService to schedule tasks correctly, and to keep the device alive for the all operation (we internally use a CPU wakelock) the mail app may do an operation like this:

navigator.mozSetMessageHandler('request-sync', function(e) { // The synchornization of the mailbox will take a while. // Let's set a promise object and resolve/reject it when needed. navigator.mozSetMessageHandlerPromise(new Promise(function(resolve, reject) { do_the_magic_synchronization(resolve, reject); })); });

Setting a message handler promise, we know that the device will be kept alive until the promise is not resolved or rejected. Furthermore, no other tasks will be executed in the meantime (this is not properly correct, because if the promise takes more than a few minutes to be resolved/rejected, RequestSyncService will continue scheduling other tasks).

As far as the settings app is concerned, the RequestSync API has also a manager of tasks available only for certified apps with a particular permission, but reality just the settings app will have this permission.

Using the requestSync API, the settings app is able to do:

navigator.syncManager.registrations().then( function(results) { ... } );

In this piece of code, results is an array of RequestSyncTask objects. Each object is an active task with attributes such as lastSync, wakeUpPage, oneShot, minInterval, wifiOnly, data, and task, the name. From this object the settings-app can change the policy to this task:

for (var i = 0; i < results.length; ++i) { if (results[i].task == 'mail-synchronizer' && resukts[i].app.manifestURL == 'http://the/mail/app/manifest.url') { results[i].setPolicy('disabled'); } }

setPolicy receives 2 parameters, the second one is optional:

  • state, this is the new state of the task. It can be enabled, disabled or wifiOnly.

  • overwrittenMinInterval: a new minInterval value.

This is all. Any feedback is welcome!

Categorieën: Mozilla-nl planet

Pages