custom protocols

Can my extension set it's own protocol?


For example, say I wanted to have my error page be displayed with this
url:
myapp:error?page=home


I see that Firefox uses the following format for their blocked sites
page:
about:blocked?e=error_code&u=url

(I'd even be fine with doing about:myapp too)


I also found this page on MDC but it seems to be more for webpages not
content loaded in chrome:
https://developer.mozilla.org/en/Web-based_protocol_handlers



0
isnw
9/1/2009 10:53:56 PM
mozilla.dev.extensions 5694 articles. 0 followers. Post Follow

3 Replies
377 Views

Similar Articles

[PageSpeed] 37

On 2 =D3=C5=CE, 05:53, isnw <n...@summitsix.com> wrote:
> Can my extension set it's own protocol?
>
> For example, say I wanted to have my error page be displayed with this
> url:
> myapp:error?page=3Dhome
>
> I see that Firefox uses the following format for their blocked sites
> page:
> about:blocked?e=3Derror_code&u=3Durl
>
> (I'd even be fine with doing about:myapp too)
>
> I also found this page on MDC but it seems to be more for webpages not
> content loaded in chrome:https://developer.mozilla.org/en/Web-based_proto=
col_handlers

Please research into nsIProtocolHandler

also this acticle can help: http://www.nexgenmedia.net/docs/protocol/
0
ant_katcin
9/2/2009 1:00:44 PM
> Please research into nsIProtocolHandler
>
> also this acticle can help:http://www.nexgenmedia.net/docs/protocol/

Exactly what I was looking for, thanks!
0
isnw
9/2/2009 4:09:12 PM
On 02.09.2009 15:00, ant_katcin wrote:
> On 2 ���, 05:53, isnw <n...@summitsix.com> wrote:
>> Can my extension set it's own protocol?
>>
>> For example, say I wanted to have my error page be displayed with this
>> url:
>> myapp:error?page=home
>>
>> I see that Firefox uses the following format for their blocked sites
>> page:
>> about:blocked?e=error_code&u=url
>>
>> (I'd even be fine with doing about:myapp too)
>>
>> I also found this page on MDC but it seems to be more for webpages not
>> content loaded in chrome:https://developer.mozilla.org/en/Web-based_protocol_handlers
> 
> Please research into nsIProtocolHandler
> 
> also this acticle can help: http://www.nexgenmedia.net/docs/protocol/

Implementing an nsIAboutModule is also possible (and might be easier):
https://developer.mozilla.org/en/Code_snippets/JS_XPCOM#XPCOMUtils_-_About_protocol_handler
0
Nils
9/3/2009 11:42:29 AM
Reply:

Similar Artilces:

From Atlas Custom Extension to AJAX Custom Extension
Hi Guys, I try to develop Custom extension one month ago whit old tecnology ATLAS, when I think my develop problems are finished.....Change the card on the table. The question is this: In the old Extension of ATLAS, I can made a extension whitout specify the handled target ID control on the page, in the new AJAX extensio this is not possible in the  class base because the AjaxControlExtender are  changed in : [Designer(typeof(myAjaxControlExtenderDesigner))] [ClientScriptResource("myAjaxControlExtender.myAjaxControlExtenderBehavior", "myAjaxControlExtender.myAjaxControlExte...

How to customize IMAP protocol via an extension?
Hi, What does my TB extension have to do to achieve the following: TB connects to an IMAP server. I want to check whether the server runs on localhost. If it does, I want to send an additional message to it between the server greetings and the first regular command sent by TB. In other words the communication should start like this (S = server, C = client): S: * OK Server ready C: 1 MY CUSTOM COMMAND S: 1 OK C: 2 CAPABILITY .... Something like this would be okay, too (if it is easier to achieve): S: * OK Server ready C: MY CUSTOM COMMAND C: 1 CAPABILITY .... Is t...

How to getting custom protocol custom-protocol://some-uri-path to act like http to support page browser?
For example. custom-protocol://some-uri-path/test.html I want the test.html works like http://some-web-site/test.html That I can navigate in the html page. On 6/24/15 1:10 PM, Yonggang Luo wrote: > For example. > custom-protocol://some-uri-path/test.html > > I want the test.html works like > > http://some-web-site/test.html > That I can navigate in the html page. > Check out nsIProtocolHandler Here is an implementation that directly forwards to http(s): http://mxr.mozilla.org/comm-central/source/calendar/base/src/calProtocolHandler.js Ph...

Custom Data Processing Extensions/Custom Data Providers
I'm trying to understand the limitations that SSRS places on a developing reports involving multiple data sources and how I can possibly create a custom data provider for a report that will consolidate data from multiple data sources.. thanks in advance. Doug....

Custom protocols
Hello there, Not sure if this is the right group for this, but then I dont know any other. ===== I've added a custom url protocol to windows registery and when clicking on it in IE it launches my program perfectly. However whenever I click on it in Firefox, a message box pops up saying an application is needed to handle this protocol and gives no name. mailto: ftp: etc all work fine so the question is how do I get firefox to trust my protocol like mailto: is ? Regards Anthoni Anthoni Gardner wrote: > Hello there, > > Not sure if this is the right grou...

custom protocol handler
How can I define a custom protocol handler in Thunderbird to call an external program when a specially formatted link is clicked in an HTML email? I generate some HTML reports that are emailed. I want to have clickable links in the reports that will take various actions on a web server without opening a browser. My thought was to create a link like abcd://localhost:9999/do_something so that when user clicks the link it will call the external program which can do whatever I want (like a wget to call the webserver). So I need to somehow tell Thunderbird to call a specific exter...

nsScriptSecurityManager and a custom protocol
Hi, Apologies if this is a novice question... I am stuck with the following problem: there is an application (it used to be based on Mozilla-1.7 platform and I am trying to "upgrade" it to mozilla-1.9.1, I am using firefox-3.1b2 release). I have more or less got it compiling and "almost working" but there is one big issue which seems to be a blocker for now, namely the security policy which wasn't there for 1.7. In my case, it boils down to the following: there are some resources on the client side (either in the form of file://foo.html or in the form o...

Custom module or extension?
I am a newbie and I was wondering the best way of going about adding functionality to an existing module. For instance, say I want to add more fields to the register module...can I extend this module or do I create a new module? Any suggestions and links to resources would be greatly appreciated. Thanks in advance. Either way is possible. My suggestion and the way we do it is to create a copy of the module you want to extend, give it your own namespace and then extend it. then to use your module in place of the exisitng one just update the module controls table to point to your new ...

custom protocol handler
How can I define a custom protocol handler in Thunderbird to call an external program when a specially formatted link is clicked in an HTML email? I generate some HTML reports that are emailed. I want to have clickable links in the reports that will take various actions on a web server without opening a browser. My thought was to create a link like abcd://localhost:9999:/do_something so that when user clicks the link it will call the external program which can do whatever I want (like a wget to call the webserver). So I need to somehow tell Thunderbird to call a specific exte...

Turn on/off Protocol Extension
Thank you to anyone who takes the time to read this question and more thanks to any who can offer some advice. I have a working extension to Firefox which allows for an additional protocol which can be toggled on/off via a setting in Firefox's preferences. What I would like to do is make this setting only apply when navigating to different pages. For instance I want an <img src="..."> tag to still resolve using my protocol when I have my noredirect setting set to on. Where should I add this sort of check? -Kevin ...

Custom Extensions in VWD
Is it possible to configure VWD to use custom extensions and treat them as Web Forms? In VS.NET I can associate other extensions with the Web Form editor but VWD doesn't appear to allow this. I'd like to push out VWD as a user editor for some of our customers that are using custom extensions of our application that use filenames other than ASPX.  But it looks that this limitation makes this impossible. VWD displays the content fine as HTML does not display any controls...Rick StrahlWest Wind TechnologiesMaking waves on the Web www.west-wind.com/weblog You can associate any extension w...

Custom extensions and Createpopup
HiI recently made a custom extention with CTP which included a popupmenu. I downloaded the the beta1 some days ago and have been trying to migrate to it. I have been able to migrate most of the of the functionality to beta1, exept for one thing assigning controls(in my case one label) to a popup window. In the CTP I would assign the control like this:_contextMenu = new Sys.UI.Control($(_TargetLableId));_popupBehavior = new Sys.UI.PopupBehavior();_popupBehavior.set_parentElement(this.control.element);_contextMenu.get_behaviors().add(_popupBehavior);_popupBehavior.initializ...

Custom Schema Extensions
In eDir 8735 on NW65sp5, I'm trying to extend the schema by adding a boolean attribute to the user object class. I did this in iManager trying first to create the attribute, then an auxiliary class and then to add the attributes of the auxiliary class to the user object, but that only lets me add to on user object at a time. I want to add this attribute to all user objects. I also tried just creating the attribute and adding it directly to the user object, but it doesn't show up under the "Other Tab". Is there a way to do this to add an attribute to an entire object...

Extension on Customize Window
Hi everybody! I have a question, I have an Extension, that runs properly on FF 2.0, FF 3.0 and FF 3.5, but on the customize window if I drag the button of my extension to it, in FF 3.5 the picture of the button disapear, it doesn't happend on FF 2.0 or FF 3.0. Is there any changes on FF 3.5 about this issue? Thanks! ...

Web resources about - custom protocols - mozilla.dev.extensions

Kyoto Protocol - Wikipedia, the free encyclopedia
... in their carbon dioxide emissions from fuel combustion between 1990 and 2009. For more detailed country/region information, see Kyoto Protocol ...

Jarryd Hayne's return to San Francisco 49ers line-up may hinge on NFL's strict concussion protocol
After suffering a concussion in the disastrous loss to Cleveland, the man standing in Jarryd Hayne's way could find he has no choice but to sit ...

NAB joins global banks to design 'blockchain' protocols
National Australia Bank has joined 20 global global banks in a trial of technologies based on the "blockchain" that facilitates bitcoin transactions. ...

New attacks on Network Time Protocol can defeat HTTPS and create chaos
... or tamper with Bitcoin transactions, computer scientists warned Wednesday. The vulnerabilities reside in the N etwork Time Protocol , the widely ...

NFL Considering Changes to Officiating Protocol for Playoffs - Bleacher Report
With the NFL officials under the microscope more than ever, the league is contemplating making changes to officiating protocol for the postseason... ...

Theme parks add extra safety protocols - Videos - CBS News
Major U.S. theme parks across the country, including Disney, SeaWorld and Universal Studios, are tightening security measures at entry gates. ...

Terrence Jones returns to practice after passing concussion protocol
Rockets forward Terrence Jones returned to practice on Thursday after going through the NBA’s concussion protocol, saying he felt no loss of ...

IDG Contributor Network: OAuth 2.0: The protocol at the center of the universe
I am writing this article on the iPad Mini using the Editorial app. This app is connected to my Dropbox account and automatically synchronizes ...

'Routine,' 'standard,' and 'protocol' for police usually means overkill for black folks
A neighbor sees someone who may be breaking into a home. Civic-minded and filled with neighborly concern, the witness dials 911 and asks police ...

Imran promises to end VIP protocol in KP
Traffic will not be stopped for any VIP, including prime minister, says PTI chief

Resources last updated: 12/31/2015 1:46:49 PM