Page MenuHomePhabricator

User script preview do not work if "tog-uselivepreview" is enabled
Closed, ResolvedPublic


Version: unspecified
Severity: normal



Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:03 AM
bzimport set Reference to bz41655.
bzimport added a subscriber: Unknown Object (MLST).

ops.. sorry for the empty description.

  1. Go to
and make sure "Use live preview (requires JavaScript) (experimental)" is DISABLED.

  1. Go to
and type "alert( 'works' );"

  1. Click on "Show preview"
  2. The message appears as expected
  3. Now go back to your preferences and DISABLE "Use live preview (requires JavaScript) (experimental)".
  4. Type "alert( 'works' );" on your common.js again
  5. Hit "Show preview"
  6. Nothing happens

(well, there will be an API request and the following will be added to the page, but the code is not executed:
<pre class="mw-code mw-js" dir="ltr">console.log( 'works' );</pre>

(In reply to comment #1)

  1. Now go back to your preferences and DISABLE ...

I mean, ENABLE.

  • This bug has been marked as a duplicate of bug 43981 ***