Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Jul 24, 2015
  1. Version bump: 3.3

    authored
Commits on Jul 15, 2015
  1. Prevent content from detecting/interfering with menu commands.

    authored
    Prevent event propagation when appropriate.  Add a random suffix to the event names, so content cannot predict the event name, and thus cannot listen for it.
  2. Fix indentation level.

    authored
  3. Call menu command functions with undefined `this`.

    authored
    Just in case, so the command object cannot be changed.
  4. Remove unused parameter.

    authored
  5. Fully asynchronous menu command implementation.

    authored
    1) Store menu commmands' data in a private closure, *in the sandbox*.
    2) To list registered commands:
      a) Parent/chrome passes a message to child/frame.
      b) Frame passes an event (visible to content) into the sandbox.
      c) Sandbox passes private-closure-scoped commands' data to a frame-scoped callback.
      d) Frame passes data up to parent as a message.
      e) Chrome uses this data to populate the menu, at popupshowing time.
    3) To run a command:
      a) User clicks on the menu item.
      b) Chrome sends a message to the frame.
      c) Frame sends an event to the sandbox.
      d) Sandbox finds the related registered command, calls its callback.
    
    Phew!  But no references to documents/windows/browsers are ever stored anywhere, so they can't possibly leak anymore.
    
    Along the way, simplify frame script by moving object methods to standalone functions; less state, less binding to fix "this" references.  The ContentObserver object is now really just there for `.observe()`.
    
    TODO: Restore "delayed execution" feature, the only other usage of the (removed) ScriptRunner structure.
    
    Refs: #2200
    Refs: #2067
  6. @janekptacijarabaci

    Update remoteScript.js

    janekptacijarabaci authored committed
  7. Improve the size of the script preferences dialog.

    authored
    Start much smaller, allow the user to change the size, remember the size.
    
    Fixes #2191
Commits on Jul 13, 2015
  1. Fix missing semicolons.

    authored
  2. Avoid usage of 'const' keyword.

    authored
    JsDev is incapable of understanding it.
    See: https://bugs.eclipse.org/bugs/show_bug.cgi?id=326842
Commits on May 29, 2015
  1. Switch from resource: to chrome: for JSM.

    authored
    Content can see resource: but not chrome: URLs.  And chrome: works fine for JSM import.
    
    Fixes #1787
  2. Version bump: 3.2.

    authored
  3. util ordering cleanup

    authored
Commits on May 23, 2015
  1. Version bump: 3.2beta3

    authored
  2. Always initialize name.

    authored
  3. Alwyas initialize langMatch.

    authored
  4. @janekptacijarabaci
Something went wrong with that request. Please try again.