Jetpack weekly meeting minutes posted

17 views
Skip to first unread message

Will Bamberg

unread,
Jun 11, 2013, 6:29:26 PM6/11/13
to mozilla-la...@googlegroups.com
Rocketeers!

I've just posted the minutes of our weekly meeting to the Wiki:
https://wiki.mozilla.org/Jetpack/Weekly_Meeting/2013-06-11#Minutes.

Will

Alexandre poirot

unread,
Jun 11, 2013, 6:36:15 PM6/11/13
to mozilla-labs-jetpack
What I recently landed is the very final part of the big work made by gabor at platform level in order to allow content script to access more than the page domain:
https://bugzilla.mozilla.org/show_bug.cgi?id=786681

You can now add a `cross-domain-content` field in your package.json `permissions` attribute to allow accessing other domains, like having access to contentWindow of iframe on another domain, or doing XHR request to another domain, ...

### package.json
{
  "permissions": {
    "cross-domain-content": [
      "http://mydomain.com"
    ]
  }
}

### main.js:
PageMod({
  includes: "http://mozilla.org",
  contentScriptFile: "contentscript.js"
}

### contentscript.js
let xhr = new XMLHttpRequest();
xhr.open("GET", "http://mydomain.com/foo", true);
xhr.send();
xhr.onload = function () {
  // This request will now succeed!
}


2013/6/12 Will Bamberg <wbam...@mozilla.com>
Rocketeers!

I've just posted the minutes of our weekly meeting to the Wiki: https://wiki.mozilla.org/Jetpack/Weekly_Meeting/2013-06-11#Minutes.


Will

--
You received this message because you are subscribed to the Google Groups "mozilla-labs-jetpack" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mozilla-labs-jetpack+unsub...@googlegroups.com.
To post to this group, send email to mozilla-labs-jetpack@googlegroups.com.
Visit this group at http://groups.google.com/group/mozilla-labs-jetpack?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.



Will Bamberg

unread,
Jun 11, 2013, 6:47:16 PM6/11/13
to mozilla-la...@googlegroups.com
That's awesome Alex!


On 13-06-11 3:36 PM, Alexandre poirot wrote:
What I recently landed is the very final part of the big work made by gabor at platform level in order to allow content script to access more than the page domain:
https://bugzilla.mozilla.org/show_bug.cgi?id=786681

You can now add a `cross-domain-content` field in your package.json `permissions` attribute to allow accessing other domains, like having access to contentWindow of iframe on another domain, or doing XHR request to another domain, ...

### package.json
{
  "permissions": {
    "cross-domain-content": [
      "http://mydomain.com"
    ]
  }
}

### main.js:
PageMod({
  includes: "http://mozilla.org",
  contentScriptFile: "contentscript.js"
}

### contentscript.js
let xhr = new XMLHttpRequest();
xhr.open("GET", "http://mydomain.com/foo", true);
xhr.send();
xhr.onload = function () {
  // This request will now succeed!
}


2013/6/12 Will Bamberg <wbam...@mozilla.com>
Rocketeers!

I've just posted the minutes of our weekly meeting to the Wiki: https://wiki.mozilla.org/Jetpack/Weekly_Meeting/2013-06-11#Minutes.


Will

--
You received this message because you are subscribed to the Google Groups "mozilla-labs-jetpack" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mozilla-labs-jet...@googlegroups.com.
To post to this group, send email to mozilla-la...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "mozilla-labs-jetpack" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mozilla-labs-jet...@googlegroups.com.
To post to this group, send email to mozilla-la...@googlegroups.com.

Jeff Griffiths

unread,
Jun 12, 2013, 2:09:50 AM6/12/13
to mozilla-la...@googlegroups.com
I saw that mentioned last week, but thanks for the post and
description, verrrry cool stuff. Content Scripts now have super
powers!
Reply all
Reply to author
Forward
0 new messages