Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Jul 24, 2015
  1. @arantius

    Version bump: 3.3

    arantius authored
  2. @arantius
Commits on Jul 15, 2015
  1. @arantius

    Prevent content from detecting/interfering with menu commands.

    arantius 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. @arantius

    Fix indentation level.

    arantius authored
  3. @arantius

    Call menu command functions with undefined `this`.

    arantius authored
    Just in case, so the command object cannot be changed.
  4. @arantius
  5. @arantius

    Remove unused parameter.

    arantius authored
  6. @arantius
  7. @arantius
  8. @arantius
  9. @arantius

    Fully asynchronous menu command implementation.

    arantius 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
  10. @janekptacijarabaci @arantius

    Update remoteScript.js

    janekptacijarabaci authored arantius committed
  11. @arantius

    Improve the size of the script preferences dialog.

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

    Fix missing semicolons.

    arantius authored
  2. @arantius

    Avoid usage of 'const' keyword.

    arantius authored
    JsDev is incapable of understanding it.
    See: https://bugs.eclipse.org/bugs/show_bug.cgi?id=326842
Commits on May 29, 2015
  1. @arantius
  2. @arantius
  3. @arantius

    Switch from resource: to chrome: for JSM.

    arantius authored
    Content can see resource: but not chrome: URLs.  And chrome: works fine for JSM import.
    
    Fixes #1787
  4. @arantius
  5. @arantius

    Version bump: 3.2.

    arantius authored
  6. @arantius

    util ordering cleanup

    arantius authored
Commits on May 23, 2015
  1. @arantius
  2. @arantius
  3. @arantius

    Version bump: 3.2beta3

    arantius authored
  4. @arantius
  5. @arantius
  6. @arantius
  7. @arantius
  8. @arantius
  9. @arantius
  10. @arantius
  11. @arantius
  12. @arantius

    Always initialize name.

    arantius authored
  13. @arantius

    Alwyas initialize langMatch.

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