a53b9958fa734f73aeffb9ddfe2fbad1ca65f90c
galt
  Mon Jan 30 16:18:41 2017 -0800
Check-in of CSP2 Content-Security-Policy work. All C-language CGIs should now support CSP2 in browser to stop major forms of XSS javascript injection. Javascript on pages is gathered together, and then emitted in a single script block at the end with a nonce that tells the browser, this is js that we generated instead of being injected by a hacker. Both inline script from script blocks and inline js event handlers had to be pulled out and separated. You will not see js sprinkled through-out the page now. Older browsers that support CSP1 or that do not understand CSP at all will still work, just without protection. External js libraries loaded at runtime need to be added to the CSP policy header in src/lib/htmshell.c.

diff --git src/hg/hgTables/hgTables.h src/hg/hgTables/hgTables.h
index f08b466..a11d0d8 100644
--- src/hg/hgTables/hgTables.h
+++ src/hg/hgTables/hgTables.h
@@ -78,35 +78,35 @@
 
 char *getScriptName();
 /* returns script name from environment or hardcoded for command line */
 
 void printTrackHtml(struct trackDb *tdb);
 /* If trackDb has html for table, print it out in a new section. */
 
 /* ---------- Other UI stuff. ----------------------*/
 
 boolean varOn(char *var);
 /* Return TRUE if variable exists and is set. */
 
 void printMainHelp();
 /* Put up main page help info. */
 
-struct grp *showGroupField(char *groupVar, char *groupScript,
+struct grp *showGroupField(char *groupVar, char *event, char *groupScript,
     struct sqlConnection *conn, boolean allTablesOk);
 /* Show group control. Returns selected group. */
 
-struct trackDb *showTrackField(struct grp *selGroup, char *trackVar, char *trackScript,
+struct trackDb *showTrackField(struct grp *selGroup, char *trackVar, char *event, char *trackScript,
                                boolean disableNoGenome);
 /* Show track control. Returns selected track. */
 
 char *showTableField(struct trackDb *track, char *varName, boolean useJoiner);
 /* Show table control and label. */
 
 struct slName *getDbListForGenome();
 /* Get list of selectable databases. */
 
 char *findSelDb();
 /* Find user selected database (as opposed to genome database). */
 
 struct slName *tablesForDb(char *db);
 /* Find tables associated with database. */