Accessing an Opera extension's background process

Forums » Dev.Opera » Archived Article Discussions

This topic has been closed. No new entries allowed.

Reason: You can now post comments on articles on Dev Opera

Forum rules and guidelines

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

12. April 2011, 06:05:07

Opera Software

tagawa

Posts: 143

Accessing an Opera extension's background process

One of the trickiest areas of building an Opera extension is messaging - sending information from one part of the extension to another. There is a comprehensive introduction to messaging already on Dev.Opera but in many cases, messaging could be avoided altogether thanks to the bgProcess object. This article shows you how...

( Read the article )

12. April 2011, 15:55:06

netwolf

Posts: 1786

Good article, thank you!

One thing though: after installing the demo extension, I always get "Problem fetching the headlines" on a fresh and brand new 11.10 installation.
Using Win 7 x64 and latest Opera snapshpot, lab build or final, whatever is newer...

13. April 2011, 05:27:37 (edited)

Opera Software

tagawa

Posts: 143

Thanks for the feedback, netwolf.
I just noticed the same thing with another extension I'm working on. The third xhr.open() parameter set to true seemed to be the problem. It looks like Opera 11.10 final executes the popup code too quickly for the XHR to return, so setting that parameter to false (i.e. making the XHR not asynchronous) seems to have fixed it. I've updated the article and example extension so it should be better now.

13. April 2011, 07:34:46

netwolf

Posts: 1786

Thank you again, working fine now after this change smile
Using Win 7 x64 and latest Opera snapshpot, lab build or final, whatever is newer...

Forums » Dev.Opera » Archived Article Discussions