Fix ?dbg=1 loading with xsiframe linker
The xsiframe bootstrap uses str.indexOf("gerrit_ui.nocache.js") on
script tags to find the URL of the module. Add a prefix to the
debug module to ensure the indexOf still finds the debug code.
Change-Id: I77aa0cd3415f1e2d94cbf058ce5007e1dd475e34
This commit is contained in:
@@ -7,7 +7,7 @@ genrule(
|
|||||||
'unzip -q $SRCDIR/ui_dbg.zip;' +
|
'unzip -q $SRCDIR/ui_dbg.zip;' +
|
||||||
'mv' +
|
'mv' +
|
||||||
' gerrit_ui/gerrit_ui.nocache.js' +
|
' gerrit_ui/gerrit_ui.nocache.js' +
|
||||||
' gerrit_ui/gerrit_dbg.nocache.js;' +
|
' gerrit_ui/dbg_gerrit_ui.nocache.js;' +
|
||||||
'unzip -qo $SRCDIR/ui_opt.zip;' +
|
'unzip -qo $SRCDIR/ui_opt.zip;' +
|
||||||
'mkdir -p $(dirname $OUT);' +
|
'mkdir -p $(dirname $OUT);' +
|
||||||
'zip -qr $OUT .',
|
'zip -qr $OUT .',
|
||||||
|
|||||||
@@ -330,7 +330,7 @@ public class HostPageServlet extends HttpServlet {
|
|||||||
nocache.setAttribute("src", noCacheName);
|
nocache.setAttribute("src", noCacheName);
|
||||||
opt = new Content(hostDoc);
|
opt = new Content(hostDoc);
|
||||||
|
|
||||||
nocache.setAttribute("src", "gerrit_ui/gerrit_dbg.nocache.js");
|
nocache.setAttribute("src", "gerrit_ui/dbg_gerrit_ui.nocache.js");
|
||||||
debug = new Content(hostDoc);
|
debug = new Content(hostDoc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user