Skip to content
This repository was archived by the owner on Oct 16, 2025. It is now read-only.
This repository was archived by the owner on Oct 16, 2025. It is now read-only.

page-worker-x-domain-iframes example no longer works #5

Description

@oliyh

Hi,

After converting package.json to work with jpm (new version attached) I get the following error from the example.

I was trying this example because I was attempting similar functionality in an add-on that I am working on and it led me to suspect that the permissions/cross-domain-content key was being ignored in Firefox 40+.

I found that this example fails in the same way, i.e. an iframe with a src that is explicitly allowed as per the package.json entry does not load, and iframe.contentDocument is null (or not allowed).

Is it possible to update the example to work, so I can see how it should work, or is it a bug in Firefox that needs fixing?

Thanks

Error

page-worker-x-domain-iframes:Error: Permission denied to access property "document"
Stack trace:
@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/loader/sandbox.js -> resource://jid1-znbofqt8hrykrq-at-jetpack/data/page-script.js:3:5

package.json updated for jpm

{
   "name": "page-worker-x-domain-iframes",
   "title": "page-worker-x-domain-iframes",
   "id": "jid1-ZNBOfQt8HRykrQ@jetpack",
   "description": "a basic add-on",
   "author": "",
   "license": "MPL 2.0",
   "version": "0.1.0",
   "main": "lib/main.js",
   "permissions": {
      "cross-domain-content": ["http://en.m.wikipedia.org/"]
   }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions