Ticket #443 (closed defect: wontfix)

Opened 2 years ago

Last modified 2 years ago

context of eval() within loadPlugins()

Reported by: FND Owned by: JeremyRuston
Priority: minor Milestone: never
Component: core Version:
Severity: medium Keywords:
Cc:

Description

As described  here by Liyang, Safari ignores the restricted context of eval() within loadPlugins().

Suggested solutions:

  • passing the restricted context as second parameter to the global eval() function (cf.  Mozilla Developer Center):
    eval(tiddler.text, window);
    
  • using an anonymous function:
    (function() { eval(tiddler.text); })();
    

Change History

Changed 2 years ago by FND

N.B.:
The suggested solution of using an anonymous function has been  rejected due to substantial concerns with regards to backwards compatibility.

Changed 2 years ago by MartinBudden

  • status changed from new to closed
  • resolution set to wontfix
  • milestone set to never

Won't fix, since fixing will break backwards compatibility with too many plugins.

Note: See TracTickets for help on using tickets.