How to permanently allow an object (e.g. google talk)

Discussions about the Application Boundaries Enforcer (ABE) module
Elvey
Posts: 10
Joined: Thu Jun 23, 2011 7:08 pm

How to permanently allow an object (e.g. google talk)

Post by Elvey »

How do I permanently allow an object?

I'm trying to make google talk (within gmail) work better.
{Temporarily allow googletalk@https://mail.google.com/mail} works to make google talk work, but I'd like to make the change permanent.

Until I do that, google talk displays the misleading error message: "Please download the voice plugin to make a call." (I have 'Forbid other plugins' checked in Options..Embeddings; I don't recall if that's the default, but it seems like a good idea.)

I thought adding something to the ABE USER ruleset would work, but I tried this:

Site mail.google.com
Accept ALL from https://mail.google.com

and it didn't help.


PS: https://mail.google.com/rules.abe doesn't exist. I enabled 'Allow sites to push their own rulesets' and it didn't help (but it did cause the reload to take a LONG time.)
Last edited by Elvey on Thu Jun 23, 2011 8:26 pm, edited 1 time in total.
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:5.0) Gecko/20100101 Firefox/5.0
dhouwn
Bug Buster
Posts: 968
Joined: Thu Mar 19, 2009 12:51 pm

Re: How to permanently allow an object (e.g. google talk)

Post by dhouwn »

noscript.allowedMimeRegExp is what you are looking for.

ABE is something completely different, generally working on a different layer (the one where requests are made). It could theoretically be made into its own extension without much work.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0
Elvey
Posts: 10
Joined: Thu Jun 23, 2011 7:08 pm

Re: How to permanently allow an object (e.g. google talk)

Post by Elvey »

dhouwn wrote:noscript.allowedMimeRegExp is what you are looking for.

ABE is something completely different, generally working on a different layer (the one where requests are made). It could theoretically be made into its own extension without much work.
Aha. Thanks!

I tried simply setting that variable to "googletalk" (in about:config, and then reloading the gmail page), but that didn't do it. Nor did "googletalk.*", or "application/googletalk", or "application/googletalk" - including the double quotes, but I didn't really expect 'em to.

"application/pdf" is given as an example.

The NoScript changelog mentions:
· mime/type@http://site.com syntax support for noscript.allowedMimeRegExp preference

application/googletalk seems to be the mime type. :?


BTW, I already have google.com in my whitelist.
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:5.0) Gecko/20100101 Firefox/5.0
dhouwn
Bug Buster
Posts: 968
Joined: Thu Mar 19, 2009 12:51 pm

Re: How to permanently allow an object (e.g. google talk)

Post by dhouwn »

Is the MIME type the same as displayed at about:plugins?
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0
Elvey
Posts: 10
Joined: Thu Jun 23, 2011 7:08 pm

Re: How to permanently allow an object (e.g. google talk)

Post by Elvey »

@dhouwn: Yes.
about:plugins lists
MIME Type .......................Description ...............................Suffixes
application/googletalk......Google voice and video chat ....googletalk
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:5.0) Gecko/20100101 Firefox/5.0
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: How to permanently allow an object (e.g. google talk)

Post by Giorgio Maone »

Code: Select all

application/googletalk@https?://.*\.google\.com
Mozilla/5.0 (Windows NT 5.2; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0
Elvey
Posts: 10
Joined: Thu Jun 23, 2011 7:08 pm

Re: How to permanently allow an object (e.g. google talk)

Post by Elvey »

Awesome! Grazie mille!

FYI, this is a common problem! (There are many, many threads at https://www.google.com/support/chat/bin ... re%3Aforum) so I suggest adding an FAQ entry, or even perhaps adding this to the default config.
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:5.0.1) Gecko/20100101 Firefox/5.0.1
Elvey
Posts: 10
Joined: Thu Jun 23, 2011 7:08 pm

Re: How to permanently allow an object (e.g. google talk)

Post by Elvey »

Giorgio Maone wrote:

Code: Select all

application/googletalk@https?://.*\.google\.com
Ok, so if I want to allow google voice messages to play back,

application/shockwave-flash@https?://.*\.google\.com//voice
Should work, and if I want to allow both, use (foo|bar) syntax like this? Escaping the lost, I guess? :

\(application/googletalk@https?://.*\.google\.com\|application/shockwave-flash@https?://.*\.google\.com//voice\)

I guess I can try it and report back...
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:6.0.2) Gecko/20100101 Firefox/6.0.2
Elvey
Posts: 10
Joined: Thu Jun 23, 2011 7:08 pm

Re: How to permanently allow an object (e.g. google talk)

Post by Elvey »

No, that didn't work... What's wrong with this? :

\(application/googletalk@https?://.*\.google\.com\|application/shockwave-flash@https?://.*\.google\.com//voice\)


This works, but it's not as secure as I'd like:
application/.*@https?://.*\.google\.com
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:7.0.1) Gecko/20100101 Firefox/7.0.1
Post Reply