Closed Bug 910553 Opened 11 years ago Closed 11 years ago

create plugin to inject content before page loads (for shims)

Categories

(Testing Graveyard :: JSMarionette, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jlal, Unassigned)

References

Details

Attachments

(1 file)

      No description provided.
Comment on attachment 797087 [details]
Pointer to Github pull request: https://github.com/mozilla-b2g/marionette-content-script/pull/1

This is somewhat of a quick hack but it does what you need it to.. In addition I wanted to add a new api something like:

marionette.contentScripts.expose('navigator.mozAlarms', '/path/from/test/to/shim.js');

This needs more docs and probably more tests... I may have found a bug where marionette.apps.launch can only be called once until the app is closed as well and I will track that down.
Attachment #797087 - Flags: review?(evanxd)
Blocks: 910455
Hi James,

I already publish marionette-content-script as a alpha version in NPM.
You're also a maintainer of it in NPM.

And nice work!
Hi James,

The patch looks good and fantastic.
Help me a lot.

Just some nits in GitHub.
https://github.com/mozilla-b2g/marionette-content-script/commit/0bd1b2334d4d312707fb6330040433ec66096f9c

Addressed review comments and landed.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Comment on attachment 797087 [details]
Pointer to Github pull request: https://github.com/mozilla-b2g/marionette-content-script/pull/1

Nice work.
Attachment #797087 - Flags: review?(evanxd) → review+
Product: Testing → Testing Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: